/************************************************************************************ * Produkt: virtualcityMAP * Copyright © 2011-2020 virtualcitySYSTEMS GmbH, Berlin, Germany. All rights reserved. *************************************************************************************/ (function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=951)})([function(e,t,i){"use strict";function n(e,t){for(var i=0;i>>0,n=0;n0)for(i=0;i0?"future":"past"];return P(i)?i(t):i.replace(/%s/i,t)}var K={};function Z(e,t){var i=e.toLowerCase();K[i]=K[i+"s"]=K[t]=e}function Q(e){return"string"===typeof e?K[e]||K[e.toLowerCase()]:void 0}function X(e){var t,i,n={};for(i in e)m(e,i)&&(t=Q(i),t&&(n[t]=e[i]));return n}var $={};function ee(e,t){$[e]=t}function te(e){var t=[];for(var i in e)t.push({unit:i,priority:$[i]});return t.sort((function(e,t){return e.priority-t.priority})),t}function ie(e,t,i){var n=""+Math.abs(e),r=t-n.length,a=e>=0;return(a?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ae={},se={};function oe(e,t,i,n){var r=n;"string"===typeof n&&(r=function(){return this[n]()}),e&&(se[e]=r),t&&(se[t[0]]=function(){return ie(r.apply(this,arguments),t[1],t[2])}),i&&(se[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function le(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ce(e){var t,i,n=e.match(ne);for(t=0,i=n.length;t=0&&re.test(e))e=e.replace(re,n),re.lastIndex=0,i-=1;return e}var de=/\d/,me=/\d\d/,fe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,pe=/\d\d?/,ve=/\d\d\d\d?/,_e=/\d\d\d\d\d\d?/,be=/\d{1,3}/,Le=/\d{1,4}/,we=/[+-]?\d{1,6}/,Me=/\d+/,ke=/[+-]?\d+/,Oe=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,Se=/[+-]?\d+(\.\d{1,3})?/,Ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,je={};function Ee(e,t,i){je[e]=P(t)?t:function(e,n){return e&&i?i:t}}function Ie(e,t){return m(je,e)?je[e](t._strict,t._locale):new RegExp(De(e))}function De(e){return Pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,i,n,r){return t||i||n||r})))}function Pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ae={};function xe(e,t){var i,n=t;for("string"===typeof e&&(e=[e]),u(t)&&(n=function(e,i){i[t]=T(e)}),i=0;i68?1900:2e3)};var Ke,Ze=Xe("FullYear",!0);function Qe(){return Je(this.year())}function Xe(e,t){return function(i){return null!=i?(et(this,e,i),r.updateOffset(this,t),this):$e(this,e)}}function $e(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function et(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&Je(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),rt(i,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](i))}function tt(e){return e=Q(e),P(this[e])?this[e]():this}function it(e,t){if("object"===typeof e){e=X(e);for(var i=te(e),n=0;n=0?(o=new Date(e+400,t,i,n,r,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,i,n,r,a,s),o}function Lt(e){var t;if(e<100&&e>=0){var i=Array.prototype.slice.call(arguments);i[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function wt(e,t,i){var n=7+t-i,r=(7+Lt(e,0,n).getUTCDay()-t)%7;return-r+n-1}function Mt(e,t,i,n,r){var a,s,o=(7+i-n)%7,l=wt(e,n,r),c=1+7*(t-1)+o+l;return c<=0?(a=e-1,s=qe(a)+c):c>qe(e)?(a=e+1,s=c-qe(e)):(a=e,s=c),{year:a,dayOfYear:s}}function kt(e,t,i){var n,r,a=wt(e.year(),t,i),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?(r=e.year()-1,n=s+Ot(r,t,i)):s>Ot(e.year(),t,i)?(n=s-Ot(e.year(),t,i),r=e.year()+1):(r=e.year(),n=s),{week:n,year:r}}function Ot(e,t,i){var n=wt(e,t,i),r=wt(e+1,t,i);return(qe(e)-n+r)/7}function Tt(e){return kt(e,this._week.dow,this._week.doy).week}oe("w",["ww",2],"wo","week"),oe("W",["WW",2],"Wo","isoWeek"),Z("week","w"),Z("isoWeek","W"),ee("week",5),ee("isoWeek",5),Ee("w",pe),Ee("ww",pe,me),Ee("W",pe),Ee("WW",pe,me),Ye(["w","ww","W","WW"],(function(e,t,i,n){t[n.substr(0,1)]=T(e)}));var St={dow:0,doy:6};function Ct(){return this._week.dow}function jt(){return this._week.doy}function Et(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function It(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Dt(e,t){return"string"!==typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"===typeof e?e:null):parseInt(e,10)}function Pt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function At(e,t){return e.slice(t,7).concat(e.slice(0,t))}oe("d",0,"do","day"),oe("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),oe("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),oe("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),oe("e",0,0,"weekday"),oe("E",0,0,"isoWeekday"),Z("day","d"),Z("weekday","e"),Z("isoWeekday","E"),ee("day",11),ee("weekday",11),ee("isoWeekday",11),Ee("d",pe),Ee("e",pe),Ee("E",pe),Ee("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ee("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ee("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ye(["dd","ddd","dddd"],(function(e,t,i,n){var r=i._locale.weekdaysParse(e,n,i._strict);null!=r?t.d=r:p(i).invalidWeekday=e})),Ye(["d","e","E"],(function(e,t,i,n){t[n]=T(e)}));var xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Yt(e,t){var i=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?At(i,this._week.dow):e?i[e.day()]:i}var Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Ft(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}var Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Ht(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gt(e,t,i){var n,r,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=g([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return i?"dddd"===t?(r=Ke.call(this._weekdaysParse,s),-1!==r?r:null):"ddd"===t?(r=Ke.call(this._shortWeekdaysParse,s),-1!==r?r:null):(r=Ke.call(this._minWeekdaysParse,s),-1!==r?r:null):"dddd"===t?(r=Ke.call(this._weekdaysParse,s),-1!==r?r:(r=Ke.call(this._shortWeekdaysParse,s),-1!==r?r:(r=Ke.call(this._minWeekdaysParse,s),-1!==r?r:null))):"ddd"===t?(r=Ke.call(this._shortWeekdaysParse,s),-1!==r?r:(r=Ke.call(this._weekdaysParse,s),-1!==r?r:(r=Ke.call(this._minWeekdaysParse,s),-1!==r?r:null))):(r=Ke.call(this._minWeekdaysParse,s),-1!==r?r:(r=Ke.call(this._weekdaysParse,s),-1!==r?r:(r=Ke.call(this._shortWeekdaysParse,s),-1!==r?r:null)))}function zt(e,t,i){var n,r,a;if(this._weekdaysParseExact)return Gt.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=g([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}}function Bt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Dt(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ut(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}var Wt=Ce;function qt(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=Wt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}var Jt=Ce;function Kt(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Jt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var Zt=Ce;function Qt(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,i,n,r,a,s=[],o=[],l=[],c=[];for(t=0;t<7;t++)i=g([2e3,1]).day(t),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),a=this.weekdays(i,""),s.push(n),o.push(r),l.push(a),c.push(n),c.push(r),c.push(a);for(s.sort(e),o.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)o[t]=Pe(o[t]),l[t]=Pe(l[t]),c[t]=Pe(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function $t(){return this.hours()%12||12}function ei(){return this.hours()||24}function ti(e,t){oe(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ii(e,t){return t._meridiemParse}function ni(e){return"p"===(e+"").toLowerCase().charAt(0)}oe("H",["HH",2],0,"hour"),oe("h",["hh",2],0,$t),oe("k",["kk",2],0,ei),oe("hmm",0,0,(function(){return""+$t.apply(this)+ie(this.minutes(),2)})),oe("hmmss",0,0,(function(){return""+$t.apply(this)+ie(this.minutes(),2)+ie(this.seconds(),2)})),oe("Hmm",0,0,(function(){return""+this.hours()+ie(this.minutes(),2)})),oe("Hmmss",0,0,(function(){return""+this.hours()+ie(this.minutes(),2)+ie(this.seconds(),2)})),ti("a",!0),ti("A",!1),Z("hour","h"),ee("hour",13),Ee("a",ii),Ee("A",ii),Ee("H",pe),Ee("h",pe),Ee("k",pe),Ee("HH",pe,me),Ee("hh",pe,me),Ee("kk",pe,me),Ee("hmm",ve),Ee("hmmss",_e),Ee("Hmm",ve),Ee("Hmmss",_e),xe(["H","HH"],Ge),xe(["k","kk"],(function(e,t,i){var n=T(e);t[Ge]=24===n?0:n})),xe(["a","A"],(function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),xe(["h","hh"],(function(e,t,i){t[Ge]=T(e),p(i).bigHour=!0})),xe("hmm",(function(e,t,i){var n=e.length-2;t[Ge]=T(e.substr(0,n)),t[ze]=T(e.substr(n)),p(i).bigHour=!0})),xe("hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[Ge]=T(e.substr(0,n)),t[ze]=T(e.substr(n,2)),t[Be]=T(e.substr(r)),p(i).bigHour=!0})),xe("Hmm",(function(e,t,i){var n=e.length-2;t[Ge]=T(e.substr(0,n)),t[ze]=T(e.substr(n))})),xe("Hmmss",(function(e,t,i){var n=e.length-4,r=e.length-2;t[Ge]=T(e.substr(0,n)),t[ze]=T(e.substr(n,2)),t[Be]=T(e.substr(r))}));var ri=/[ap]\.?m?\.?/i;function ai(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"}var si,oi=Xe("Hours",!0),li={calendar:N,longDateFormat:R,invalidDate:G,ordinal:B,dayOfMonthOrdinalParse:V,relativeTime:W,months:st,monthsShort:lt,week:St,weekdays:xt,weekdaysMin:Rt,weekdaysShort:Nt,meridiemParse:ri},ci={},ui={};function hi(e){return e?e.toLowerCase().replace("_","-"):e}function di(e){var t,i,n,r,a=0;while(a0){if(n=mi(r.slice(0,t).join("-")),n)return n;if(i&&i.length>=t&&S(r,i,!0)>=t-1)break;t--}a++}return si}function mi(t){var n=null;if(!ci[t]&&"undefined"!==typeof e&&e&&e.exports)try{n=si._abbr;i(651)("./"+t),fi(n)}catch(r){}return ci[t]}function fi(e,t){var i;return e&&(i=c(t)?pi(e):gi(e,t),i?si=i:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),si._abbr}function gi(e,t){if(null!==t){var i,n=li;if(t.abbr=e,null!=ci[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ci[e]._config;else if(null!=t.parentLocale)if(null!=ci[t.parentLocale])n=ci[t.parentLocale]._config;else{if(i=mi(t.parentLocale),null==i)return ui[t.parentLocale]||(ui[t.parentLocale]=[]),ui[t.parentLocale].push({name:e,config:t}),null;n=i._config}return ci[e]=new Y(x(n,t)),ui[e]&&ui[e].forEach((function(e){gi(e.name,e.config)})),fi(e),ci[e]}return delete ci[e],null}function yi(e,t){if(null!=t){var i,n,r=li;n=mi(e),null!=n&&(r=n._config),t=x(r,t),i=new Y(t),i.parentLocale=ci[e],ci[e]=i,fi(e)}else null!=ci[e]&&(null!=ci[e].parentLocale?ci[e]=ci[e].parentLocale:null!=ci[e]&&delete ci[e]);return ci[e]}function pi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return si;if(!s(e)){if(t=mi(e),t)return t;e=[e]}return di(e)}function vi(){return E(ci)}function _i(e){var t,i=e._a;return i&&-2===p(e).overflow&&(t=i[Re]<0||i[Re]>11?Re:i[He]<1||i[He]>rt(i[Fe],i[Re])?He:i[Ge]<0||i[Ge]>24||24===i[Ge]&&(0!==i[ze]||0!==i[Be]||0!==i[Ve])?Ge:i[ze]<0||i[ze]>59?ze:i[Be]<0||i[Be]>59?Be:i[Ve]<0||i[Ve]>999?Ve:-1,p(e)._overflowDayOfYear&&(tHe)&&(t=He),p(e)._overflowWeeks&&-1===t&&(t=Ue),p(e)._overflowWeekday&&-1===t&&(t=We),p(e).overflow=t),e}function bi(e,t,i){return null!=e?e:null!=t?t:i}function Li(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wi(e){var t,i,n,r,a,s=[];if(!e._d){for(n=Li(e),e._w&&null==e._a[He]&&null==e._a[Re]&&Mi(e),null!=e._dayOfYear&&(a=bi(e._a[Fe],n[Fe]),(e._dayOfYear>qe(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),i=Lt(a,0,e._dayOfYear),e._a[Re]=i.getUTCMonth(),e._a[He]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ge]&&0===e._a[ze]&&0===e._a[Be]&&0===e._a[Ve]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?Lt:bt).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function Mi(e){var t,i,n,r,a,s,o,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)a=1,s=4,i=bi(t.GG,e._a[Fe],kt(Ji(),1,4).year),n=bi(t.W,1),r=bi(t.E,1),(r<1||r>7)&&(l=!0);else{a=e._locale._week.dow,s=e._locale._week.doy;var c=kt(Ji(),a,s);i=bi(t.gg,e._a[Fe],c.year),n=bi(t.w,c.week),null!=t.d?(r=t.d,(r<0||r>6)&&(l=!0)):null!=t.e?(r=t.e+a,(t.e<0||t.e>6)&&(l=!0)):r=a}n<1||n>Ot(i,a,s)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(o=Mt(i,n,r,a,s),e._a[Fe]=o.year,e._dayOfYear=o.dayOfYear)}var ki=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Oi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ti=/Z|[+-]\d\d(?::?\d\d)?/,Si=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ci=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ji=/^\/?Date\((\-?\d+)/i;function Ei(e){var t,i,n,r,a,s,o=e._i,l=ki.exec(o)||Oi.exec(o);if(l){for(p(e).iso=!0,t=0,i=Si.length;t0&&p(e).unusedInput.push(s),o=o.slice(o.indexOf(i)+i.length),c+=i.length),se[a]?(i?p(e).empty=!1:p(e).unusedTokens.push(a),Ne(a,i,e)):e._strict&&!i&&p(e).unusedTokens.push(a);p(e).charsLeftOver=l-c,o.length>0&&p(e).unusedInput.push(o),e._a[Ge]<=12&&!0===p(e).bigHour&&e._a[Ge]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Ge]=Gi(e._locale,e._a[Ge],e._meridiem),wi(e),_i(e)}else Fi(e);else Ei(e)}function Gi(e,t,i){var n;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?(n=e.isPM(i),n&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function zi(e){var t,i,n,r,a;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:_()}));function Qi(e,t){var i,n;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Ji();for(i=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ln(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e={};if(L(e,this),e=Ui(e),e._a){var t=e._isUTC?g(e._a):Ji(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function wn(){return!!this.isValid()&&!this._isUTC}function Mn(){return!!this.isValid()&&this._isUTC}function kn(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}r.updateOffset=function(){};var On=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Tn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Sn(e,t){var i,n,r,a=e,s=null;return on(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(a={},t?a[t]=e:a.milliseconds=e):(s=On.exec(e))?(i="-"===s[1]?-1:1,a={y:0,d:T(s[He])*i,h:T(s[Ge])*i,m:T(s[ze])*i,s:T(s[Be])*i,ms:T(ln(1e3*s[Ve]))*i}):(s=Tn.exec(e))?(i="-"===s[1]?-1:1,a={y:Cn(s[2],i),M:Cn(s[3],i),w:Cn(s[4],i),d:Cn(s[5],i),h:Cn(s[6],i),m:Cn(s[7],i),s:Cn(s[8],i)}):null==a?a={}:"object"===typeof a&&("from"in a||"to"in a)&&(r=En(Ji(a.from),Ji(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),n=new sn(a),on(e)&&m(e,"_locale")&&(n._locale=e._locale),n}function Cn(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function jn(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function En(e,t){var i;return e.isValid()&&t.isValid()?(t=dn(t,e),e.isBefore(t)?i=jn(e,t):(i=jn(t,e),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function In(e,t){return function(i,n){var r,a;return null===n||isNaN(+n)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=i,i=n,n=a),i="string"===typeof i?+i:i,r=Sn(i,n),Dn(this,r,e),this}}function Dn(e,t,i,n){var a=t._milliseconds,s=ln(t._days),o=ln(t._months);e.isValid()&&(n=null==n||n,o&&dt(e,$e(e,"Month")+o*i),s&&et(e,"Date",$e(e,"Date")+s*i),a&&e._d.setTime(e._d.valueOf()+a*i),n&&r.updateOffset(e,s||o))}Sn.fn=sn.prototype,Sn.invalid=an;var Pn=In(1,"add"),An=In(-1,"subtract");function xn(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function Yn(e,t){var i=e||Ji(),n=dn(i,this).startOf("day"),a=r.calendarFormat(this,n)||"sameElse",s=t&&(P(t[a])?t[a].call(this,i):t[a]);return this.format(s||this.localeData().calendar(a,this,Ji(i)))}function Nn(){return new M(this)}function Fn(e,t){var i=k(e)?e:Ji(e);return!(!this.isValid()||!i.isValid())&&(t=Q(t)||"millisecond","millisecond"===t?this.valueOf()>i.valueOf():i.valueOf()9999?ue(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ue(i,"Z")):ue(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]';return this.format(i+n+r+a)}function Kn(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=ue(this,e);return this.localeData().postformat(t)}function Zn(e,t){return this.isValid()&&(k(e)&&e.isValid()||Ji(e).isValid())?Sn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Qn(e){return this.from(Ji(),e)}function Xn(e,t){return this.isValid()&&(k(e)&&e.isValid()||Ji(e).isValid())?Sn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function $n(e){return this.to(Ji(),e)}function er(e){var t;return void 0===e?this._locale._abbr:(t=pi(e),null!=t&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tr=j("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ir(){return this._locale}var nr=1e3,rr=60*nr,ar=60*rr,sr=3506328*ar;function or(e,t){return(e%t+t)%t}function lr(e,t,i){return e<100&&e>=0?new Date(e+400,t,i)-sr:new Date(e,t,i).valueOf()}function cr(e,t,i){return e<100&&e>=0?Date.UTC(e+400,t,i)-sr:Date.UTC(e,t,i)}function ur(e){var t;if(e=Q(e),void 0===e||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?cr:lr;switch(e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=or(t+(this._isUTC?0:this.utcOffset()*rr),ar);break;case"minute":t=this._d.valueOf(),t-=or(t,rr);break;case"second":t=this._d.valueOf(),t-=or(t,nr);break}return this._d.setTime(t),r.updateOffset(this,!0),this}function hr(e){var t;if(e=Q(e),void 0===e||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?cr:lr;switch(e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ar-or(t+(this._isUTC?0:this.utcOffset()*rr),ar)-1;break;case"minute":t=this._d.valueOf(),t+=rr-or(t,rr)-1;break;case"second":t=this._d.valueOf(),t+=nr-or(t,nr)-1;break}return this._d.setTime(t),r.updateOffset(this,!0),this}function dr(){return this._d.valueOf()-6e4*(this._offset||0)}function mr(){return Math.floor(this.valueOf()/1e3)}function fr(){return new Date(this.valueOf())}function gr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function yr(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function pr(){return this.isValid()?this.toISOString():null}function vr(){return v(this)}function _r(){return f({},p(this))}function br(){return p(this).overflow}function Lr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function wr(e,t){oe(0,[e,e.length],0,t)}function Mr(e){return Sr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function kr(e){return Sr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Or(){return Ot(this.year(),1,4)}function Tr(){var e=this.localeData()._week;return Ot(this.year(),e.dow,e.doy)}function Sr(e,t,i,n,r){var a;return null==e?kt(this,n,r).year:(a=Ot(e,n,r),t>a&&(t=a),Cr.call(this,e,t,i,n,r))}function Cr(e,t,i,n,r){var a=Mt(e,t,i,n,r),s=Lt(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function jr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}oe(0,["gg",2],0,(function(){return this.weekYear()%100})),oe(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),wr("gggg","weekYear"),wr("ggggg","weekYear"),wr("GGGG","isoWeekYear"),wr("GGGGG","isoWeekYear"),Z("weekYear","gg"),Z("isoWeekYear","GG"),ee("weekYear",1),ee("isoWeekYear",1),Ee("G",ke),Ee("g",ke),Ee("GG",pe,me),Ee("gg",pe,me),Ee("GGGG",Le,ge),Ee("gggg",Le,ge),Ee("GGGGG",we,ye),Ee("ggggg",we,ye),Ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,i,n){t[n.substr(0,2)]=T(e)})),Ye(["gg","GG"],(function(e,t,i,n){t[n]=r.parseTwoDigitYear(e)})),oe("Q",0,"Qo","quarter"),Z("quarter","Q"),ee("quarter",7),Ee("Q",de),xe("Q",(function(e,t){t[Re]=3*(T(e)-1)})),oe("D",["DD",2],"Do","date"),Z("date","D"),ee("date",9),Ee("D",pe),Ee("DD",pe,me),Ee("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),xe(["D","DD"],He),xe("Do",(function(e,t){t[He]=T(e.match(pe)[0])}));var Er=Xe("Date",!0);function Ir(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}oe("DDD",["DDDD",3],"DDDo","dayOfYear"),Z("dayOfYear","DDD"),ee("dayOfYear",4),Ee("DDD",be),Ee("DDDD",fe),xe(["DDD","DDDD"],(function(e,t,i){i._dayOfYear=T(e)})),oe("m",["mm",2],0,"minute"),Z("minute","m"),ee("minute",14),Ee("m",pe),Ee("mm",pe,me),xe(["m","mm"],ze);var Dr=Xe("Minutes",!1);oe("s",["ss",2],0,"second"),Z("second","s"),ee("second",15),Ee("s",pe),Ee("ss",pe,me),xe(["s","ss"],Be);var Pr,Ar=Xe("Seconds",!1);for(oe("S",0,0,(function(){return~~(this.millisecond()/100)})),oe(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),oe(0,["SSS",3],0,"millisecond"),oe(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),oe(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),oe(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),oe(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),oe(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),oe(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Z("millisecond","ms"),ee("millisecond",16),Ee("S",be,de),Ee("SS",be,me),Ee("SSS",be,fe),Pr="SSSS";Pr.length<=9;Pr+="S")Ee(Pr,Me);function xr(e,t){t[Ve]=T(1e3*("0."+e))}for(Pr="S";Pr.length<=9;Pr+="S")xe(Pr,xr);var Yr=Xe("Milliseconds",!1);function Nr(){return this._isUTC?"UTC":""}function Fr(){return this._isUTC?"Coordinated Universal Time":""}oe("z",0,0,"zoneAbbr"),oe("zz",0,0,"zoneName");var Rr=M.prototype;function Hr(e){return Ji(1e3*e)}function Gr(){return Ji.apply(null,arguments).parseZone()}function zr(e){return e}Rr.add=Pn,Rr.calendar=Yn,Rr.clone=Nn,Rr.diff=Vn,Rr.endOf=hr,Rr.format=Kn,Rr.from=Zn,Rr.fromNow=Qn,Rr.to=Xn,Rr.toNow=$n,Rr.get=tt,Rr.invalidAt=br,Rr.isAfter=Fn,Rr.isBefore=Rn,Rr.isBetween=Hn,Rr.isSame=Gn,Rr.isSameOrAfter=zn,Rr.isSameOrBefore=Bn,Rr.isValid=vr,Rr.lang=tr,Rr.locale=er,Rr.localeData=ir,Rr.max=Zi,Rr.min=Ki,Rr.parsingFlags=_r,Rr.set=it,Rr.startOf=ur,Rr.subtract=An,Rr.toArray=gr,Rr.toObject=yr,Rr.toDate=fr,Rr.toISOString=qn,Rr.inspect=Jn,Rr.toJSON=pr,Rr.toString=Wn,Rr.unix=mr,Rr.valueOf=dr,Rr.creationData=Lr,Rr.year=Ze,Rr.isLeapYear=Qe,Rr.weekYear=Mr,Rr.isoWeekYear=kr,Rr.quarter=Rr.quarters=jr,Rr.month=mt,Rr.daysInMonth=ft,Rr.week=Rr.weeks=Et,Rr.isoWeek=Rr.isoWeeks=It,Rr.weeksInYear=Tr,Rr.isoWeeksInYear=Or,Rr.date=Er,Rr.day=Rr.days=Bt,Rr.weekday=Vt,Rr.isoWeekday=Ut,Rr.dayOfYear=Ir,Rr.hour=Rr.hours=oi,Rr.minute=Rr.minutes=Dr,Rr.second=Rr.seconds=Ar,Rr.millisecond=Rr.milliseconds=Yr,Rr.utcOffset=fn,Rr.utc=yn,Rr.local=pn,Rr.parseZone=vn,Rr.hasAlignedHourOffset=_n,Rr.isDST=bn,Rr.isLocal=wn,Rr.isUtcOffset=Mn,Rr.isUtc=kn,Rr.isUTC=kn,Rr.zoneAbbr=Nr,Rr.zoneName=Fr,Rr.dates=j("dates accessor is deprecated. Use date instead.",Er),Rr.months=j("months accessor is deprecated. Use month instead",mt),Rr.years=j("years accessor is deprecated. Use year instead",Ze),Rr.zone=j("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gn),Rr.isDSTShifted=j("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ln);var Br=Y.prototype;function Vr(e,t,i,n){var r=pi(),a=g().set(n,t);return r[i](a,e)}function Ur(e,t,i){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Vr(e,t,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Vr(e,n,i,"month");return r}function Wr(e,t,i,n){"boolean"===typeof e?(u(t)&&(i=t,t=void 0),t=t||""):(t=e,i=t,e=!1,u(t)&&(i=t,t=void 0),t=t||"");var r,a=pi(),s=e?a._week.dow:0;if(null!=i)return Vr(t,(i+s)%7,n,"day");var o=[];for(r=0;r<7;r++)o[r]=Vr(t,(r+s)%7,n,"day");return o}function qr(e,t){return Ur(e,t,"months")}function Jr(e,t){return Ur(e,t,"monthsShort")}function Kr(e,t,i){return Wr(e,t,i,"weekdays")}function Zr(e,t,i){return Wr(e,t,i,"weekdaysShort")}function Qr(e,t,i){return Wr(e,t,i,"weekdaysMin")}Br.calendar=F,Br.longDateFormat=H,Br.invalidDate=z,Br.ordinal=U,Br.preparse=zr,Br.postformat=zr,Br.relativeTime=q,Br.pastFuture=J,Br.set=A,Br.months=ot,Br.monthsShort=ct,Br.monthsParse=ht,Br.monthsRegex=vt,Br.monthsShortRegex=yt,Br.week=Tt,Br.firstDayOfYear=jt,Br.firstDayOfWeek=Ct,Br.weekdays=Yt,Br.weekdaysMin=Ht,Br.weekdaysShort=Ft,Br.weekdaysParse=zt,Br.weekdaysRegex=qt,Br.weekdaysShortRegex=Kt,Br.weekdaysMinRegex=Qt,Br.isPM=ni,Br.meridiem=ai,fi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,i=1===T(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i}}),r.lang=j("moment.lang is deprecated. Use moment.locale instead.",fi),r.langData=j("moment.langData is deprecated. Use moment.localeData instead.",pi);var Xr=Math.abs;function $r(){var e=this._data;return this._milliseconds=Xr(this._milliseconds),this._days=Xr(this._days),this._months=Xr(this._months),e.milliseconds=Xr(e.milliseconds),e.seconds=Xr(e.seconds),e.minutes=Xr(e.minutes),e.hours=Xr(e.hours),e.months=Xr(e.months),e.years=Xr(e.years),this}function ea(e,t,i,n){var r=Sn(t,i);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function ta(e,t){return ea(this,e,t,1)}function ia(e,t){return ea(this,e,t,-1)}function na(e){return e<0?Math.floor(e):Math.ceil(e)}function ra(){var e,t,i,n,r,a=this._milliseconds,s=this._days,o=this._months,l=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*na(sa(o)+s),s=0,o=0),l.milliseconds=a%1e3,e=O(a/1e3),l.seconds=e%60,t=O(e/60),l.minutes=t%60,i=O(t/60),l.hours=i%24,s+=O(i/24),r=O(aa(s)),o+=r,s-=na(sa(r)),n=O(o/12),o%=12,l.days=s,l.months=o,l.years=n,this}function aa(e){return 4800*e/146097}function sa(e){return 146097*e/4800}function oa(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if(e=Q(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+aa(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(sa(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function la(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):NaN}function ca(e){return function(){return this.as(e)}}var ua=ca("ms"),ha=ca("s"),da=ca("m"),ma=ca("h"),fa=ca("d"),ga=ca("w"),ya=ca("M"),pa=ca("Q"),va=ca("y");function _a(){return Sn(this)}function ba(e){return e=Q(e),this.isValid()?this[e+"s"]():NaN}function La(e){return function(){return this.isValid()?this._data[e]:NaN}}var wa=La("milliseconds"),Ma=La("seconds"),ka=La("minutes"),Oa=La("hours"),Ta=La("days"),Sa=La("months"),Ca=La("years");function ja(){return O(this.days()/7)}var Ea=Math.round,Ia={ss:44,s:45,m:45,h:22,d:26,M:11};function Da(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}function Pa(e,t,i){var n=Sn(e).abs(),r=Ea(n.as("s")),a=Ea(n.as("m")),s=Ea(n.as("h")),o=Ea(n.as("d")),l=Ea(n.as("M")),c=Ea(n.as("y")),u=r<=Ia.ss&&["s",r]||r0,u[4]=i,Da.apply(null,u)}function Aa(e){return void 0===e?Ea:"function"===typeof e&&(Ea=e,!0)}function xa(e,t){return void 0!==Ia[e]&&(void 0===t?Ia[e]:(Ia[e]=t,"s"===e&&(Ia.ss=t-1),!0))}function Ya(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=Pa(this,!e,t);return e&&(i=t.pastFuture(+this,i)),t.postformat(i)}var Na=Math.abs;function Fa(e){return(e>0)-(e<0)||+e}function Ra(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n=Na(this._milliseconds)/1e3,r=Na(this._days),a=Na(this._months);e=O(n/60),t=O(e/60),n%=60,e%=60,i=O(a/12),a%=12;var s=i,o=a,l=r,c=t,u=e,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var m=d<0?"-":"",f=Fa(this._months)!==Fa(d)?"-":"",g=Fa(this._days)!==Fa(d)?"-":"",y=Fa(this._milliseconds)!==Fa(d)?"-":"";return m+"P"+(s?f+s+"Y":"")+(o?f+o+"M":"")+(l?g+l+"D":"")+(c||u||h?"T":"")+(c?y+c+"H":"")+(u?y+u+"M":"")+(h?y+h+"S":"")}var Ha=sn.prototype;return Ha.isValid=rn,Ha.abs=$r,Ha.add=ta,Ha.subtract=ia,Ha.as=oa,Ha.asMilliseconds=ua,Ha.asSeconds=ha,Ha.asMinutes=da,Ha.asHours=ma,Ha.asDays=fa,Ha.asWeeks=ga,Ha.asMonths=ya,Ha.asQuarters=pa,Ha.asYears=va,Ha.valueOf=la,Ha._bubble=ra,Ha.clone=_a,Ha.get=ba,Ha.milliseconds=wa,Ha.seconds=Ma,Ha.minutes=ka,Ha.hours=Oa,Ha.days=Ta,Ha.weeks=ja,Ha.months=Sa,Ha.years=Ca,Ha.humanize=Ya,Ha.toISOString=Ra,Ha.toString=Ra,Ha.toJSON=Ra,Ha.locale=er,Ha.localeData=ir,Ha.toIsoString=j("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ra),Ha.lang=tr,oe("X",0,0,"unix"),oe("x",0,0,"valueOf"),Ee("x",ke),Ee("X",Se),xe("X",(function(e,t,i){i._d=new Date(1e3*parseFloat(e,10))})),xe("x",(function(e,t,i){i._d=new Date(T(e))})),r.version="2.24.0",a(Ji),r.fn=Rr,r.min=Xi,r.max=$i,r.now=en,r.utc=g,r.unix=Hr,r.months=qr,r.isDate=h,r.locale=fi,r.invalid=_,r.duration=Sn,r.isMoment=k,r.weekdays=Kr,r.parseZone=Gr,r.localeData=pi,r.isDuration=on,r.monthsShort=Jr,r.weekdaysMin=Qr,r.defineLocale=gi,r.updateLocale=yi,r.locales=vi,r.weekdaysShort=Zr,r.normalizeUnits=Q,r.relativeTimeRounding=Aa,r.relativeTimeThreshold=xa,r.calendarFormat=xn,r.prototype=Rr,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}))}).call(this,i(650)(e))},function(e,t,i){"use strict";i.d(t,"d",(function(){return r})),i.d(t,"h",(function(){return a})),i.d(t,"g",(function(){return s})),i.d(t,"e",(function(){return o})),i.d(t,"f",(function(){return l})),i.d(t,"c",(function(){return c})),i.d(t,"a",(function(){return u})),i.d(t,"b",(function(){return h}));i(22),i(9),i(24),i(168),i(169),i(689),i(26),i(8),i(52),i(25),i(34),i(46),i(10);var n=i(37);function r(e){var t=/^[+a-zA-Z0-9_.!#$%&\'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;return t.test(e)}function a(e,t){if(null!=e){var i=Number.parseInt(String(e),10);if(null!=i&&!Number.isNaN(i))return i}return void 0!==t?t:0}function s(e,t){if(e){var i=Number.parseFloat(String(e));if(null!=i&&!Number.isNaN(i))return i}return void 0!==t?t:0}function o(e,t){return null==e?t:"boolean"===typeof e?e:1===e||0!==e&&("string"===typeof e&&("true"===e.toLowerCase()||"1"===e.toLowerCase())||("string"!==typeof e||"false"!==e.toLowerCase()&&"0"!==e.toLowerCase())&&t)}function l(e,t,i){if(null!=e){var n=Object.values(t).find((function(t){return t==e}));if(null!=n)return n}return i}function c(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,i="x"==e?t:3&t|8;return i.toString(16)}))}function u(e,t){Array.isArray(e)?e.forEach((function(e,i,n){t.call(n,e),u(n[i],t)})):e&&"object"===Object(n["a"])(e)&&Object.keys(e).forEach((function(i){t.call(e,e[i]),u(e[i],t)}))}function h(e){var t=e.target.tagName.toUpperCase();return e.defaultPrevented||"INPUT"===t||"SELECT"===t||"TEXTAREA"===t}},function(e,t,i){var n=i(167),r=i(62),a=i(625);n||r(Object.prototype,"toString",a,{unsafe:!0})},function(e,t,i){"use strict";var n=i(21),r=i(222);n({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,i){var n=i(31),r=i(225),a=i(222),s=i(61);for(var o in r){var l=n[o],c=l&&l.prototype;if(c&&c.forEach!==a)try{s(c,"forEach",a)}catch(u){c.forEach=a}}},,function(e,t,i){var n=i(42),r=i(39).f,a=Function.prototype,s=a.toString,o=/^\s*function ([^ (]*)/,l="name";n&&!(l in a)&&r(a,l,{configurable:!0,get:function(){try{return s.call(this).match(o)[1]}catch(e){return""}}})},function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i(118);function r(e){if(Array.isArray(e))return Object(n["a"])(e)}function a(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}var s=i(116);function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return r(e)||a(e)||Object(s["a"])(e)||o()}},function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i(13);function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e){for(var t=1;t=51||!r((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),v=h("concat"),_=function(e){if(!s(e))return!1;var t=e[f];return void 0!==t?!!t:a(e)},b=!p||!v;n({target:"Array",proto:!0,forced:b},{concat:function(e){var t,i,n,r,a,s=o(this),h=u(s,0),d=0;for(t=-1,n=arguments.length;tg)throw TypeError(y);for(i=0;i=g)throw TypeError(y);c(h,d++,a)}return h.length=d,h}})},function(e,t,i){"use strict";var n=i(21),r=i(57).map,a=i(28),s=i(108),o=s("map"),l=o&&!a((function(){[].map.call({length:-1,0:1},(function(e){throw e}))}));n({target:"Array",proto:!0,forced:!o||!l},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i.d(t,"a",(function(){return n}))},function(e,t,i){var n=i(31),r=i(225),a=i(232),s=i(61),o=i(32),l=o("iterator"),c=o("toStringTag"),u=a.values;for(var h in r){var d=n[h],m=d&&d.prototype;if(m){if(m[l]!==u)try{s(m,l,u)}catch(g){m[l]=u}if(m[c]||s(m,c,h),r[h])for(var f in a)if(m[f]!==a[f])try{s(m,f,a[f])}catch(g){m[f]=a[f]}}}},function(e,t,i){var n=i(31),r=i(98).f,a=i(61),s=i(62),o=i(146),l=i(190),c=i(127);e.exports=function(e,t){var i,u,h,d,m,f,g=e.target,y=e.global,p=e.stat;if(u=y?n:p?n[g]||o(g,{}):(n[g]||{}).prototype,u)for(h in t){if(m=t[h],e.noTargetGet?(f=r(u,h),d=f&&f.value):d=u[h],i=c(y?h:g+(p?".":"#")+h,e.forced),!i&&void 0!==d){if(typeof m===typeof d)continue;l(m,d)}(e.sham||d&&d.sham)&&a(m,"sham",!0),s(u,h,m,e)}}},function(e,t,i){"use strict";var n=i(21),r=i(57).find,a=i(113),s="find",o=!0;s in[]&&Array(1)[s]((function(){o=!1})),n({target:"Array",proto:!0,forced:o},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},function(e,t,i){"use strict";var n=i(21),r=i(57).filter,a=i(28),s=i(108),o=s("filter"),l=o&&!a((function(){[].filter.call({length:-1,0:1},(function(e){throw e}))}));n({target:"Array",proto:!0,forced:!o||!l},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";var n=i(42),r=i(31),a=i(127),s=i(62),o=i(44),l=i(80),c=i(141),u=i(99),h=i(28),d=i(97),m=i(91).f,f=i(98).f,g=i(39).f,y=i(162).trim,p="Number",v=r[p],_=v.prototype,b=l(d(_))==p,L=function(e){var t,i,n,r,a,s,o,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=y(c),t=c.charCodeAt(0),43===t||45===t){if(i=c.charCodeAt(2),88===i||120===i)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+c}for(a=c.slice(2),s=a.length,o=0;or)return NaN;return parseInt(a,n)}return+c};if(a(p,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var w,M=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof M&&(b?h((function(){_.valueOf.call(i)})):l(i)!=p)?c(new v(L(t)),i,M):L(t)},k=n?m(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;k.length>O;O++)o(v,w=k[O])&&!o(M,w)&&g(M,w,f(v,w));M.prototype=_,_.constructor=M,s(r,p,M)}},function(e,t,i){"use strict";var n=i(21),r=i(129);n({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,i){var n=i(21),r=i(63),a=i(121),s=i(28),o=s((function(){a(1)}));n({target:"Object",stat:!0,forced:o},{keys:function(e){return a(r(e))}})},function(e,t,i){"use strict";function n(e){if(Array.isArray(e))return e}function r(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var i=[],n=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done);n=!0)if(i.push(s.value),t&&i.length===t)break}catch(l){r=!0,a=l}finally{try{n||null==o["return"]||o["return"]()}finally{if(r)throw a}}return i}}i.d(t,"a",(function(){return o}));var a=i(116);function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){return n(e)||r(e,t)||Object(a["a"])(e,t)||s()}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,i){"use strict";function n(e,t,i,n,r,a,s){try{var o=e[a](s),l=o.value}catch(c){return void i(c)}o.done?t(l):Promise.resolve(l).then(n,r)}function r(e){return function(){var t=this,i=arguments;return new Promise((function(r,a){var s=e.apply(t,i);function o(e){n(s,r,a,o,l,"next",e)}function l(e){n(s,r,a,o,l,"throw",e)}o(void 0)}))}}i.d(t,"a",(function(){return r}))},function(e,t,i){"use strict";var n=i(21),r=i(102),a=i(71),s=i(41),o=i(63),l=i(149),c=i(140),u=i(108),h=Math.max,d=Math.min,m=9007199254740991,f="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!u("splice")},{splice:function(e,t){var i,n,u,g,y,p,v=o(this),_=s(v.length),b=r(e,_),L=arguments.length;if(0===L?i=n=0:1===L?(i=0,n=_-b):(i=L-2,n=d(h(a(t),0),_-b)),_+i-n>m)throw TypeError(f);for(u=l(v,n),g=0;g_-n+i;g--)delete v[g-1]}else if(i>n)for(g=_-n;g>b;g--)y=g+n-1,p=g+i-1,y in v?v[p]=v[y]:delete v[p];for(g=0;g=i.length?{value:void 0,done:!0}:(e=n(i,r),t.index+=e.length,{value:e,done:!1})}))},function(e,t,i){"use strict";var n=i(21),r=i(126).indexOf,a=i(96),s=[].indexOf,o=!!s&&1/[1].indexOf(1,-0)<0,l=a("indexOf");n({target:"Array",proto:!0,forced:o||l},{indexOf:function(e){return o?s.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";var n=i(21),r=i(126).includes,a=i(113);n({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,i){var n=i(42),r=i(186),a=i(40),s=i(99),o=Object.defineProperty;t.f=n?o:function(e,t,i){if(a(e),t=s(t,!0),a(i),r)try{return o(e,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},function(e,t,i){var n=i(43);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,i){var n=i(71),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},function(e,t,i){var n=i(28);e.exports=!n((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){(function(t){var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||Function("return this")()}).call(this,i(123))},function(e,t,i){"use strict";var n=i(130),r=i(40),a=i(63),s=i(41),o=i(71),l=i(60),c=i(165),u=i(131),h=Math.max,d=Math.min,m=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,y=function(e){return void 0===e?e:String(e)};n("replace",2,(function(e,t,i,n){return[function(i,n){var r=l(this),a=void 0==i?void 0:i[e];return void 0!==a?a.call(i,r,n):t.call(String(r),i,n)},function(e,a){if(n.REPLACE_KEEPS_$0||"string"===typeof a&&-1===a.indexOf("$0")){var l=i(t,e,this,a);if(l.done)return l.value}var m=r(e),f=String(this),g="function"===typeof a;g||(a=String(a));var v=m.global;if(v){var _=m.unicode;m.lastIndex=0}var b=[];while(1){var L=u(m,f);if(null===L)break;if(b.push(L),!v)break;var w=String(L[0]);""===w&&(m.lastIndex=c(f,s(m.lastIndex),_))}for(var M="",k=0,O=0;O=k&&(M+=f.slice(k,S)+D,k=S+T.length)}return M+f.slice(k)}];function p(e,i,n,r,s,o){var l=n+e.length,c=r.length,u=g;return void 0!==s&&(s=a(s),u=f),t.call(o,u,(function(t,a){var o;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return i.slice(0,n);case"'":return i.slice(l);case"<":o=s[a.slice(1,-1)];break;default:var u=+a;if(0===u)return t;if(u>c){var h=m(u/10);return 0===h?t:h<=c?void 0===r[h-1]?a.charAt(1):r[h-1]+a.charAt(1):t}o=r[u-1]}return void 0===o?"":o}))}}))},function(e,t,i){"use strict";var n=i(21),r=i(223),a=i(60),s=i(224);n({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~String(a(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";var n=i(21),r=i(31),a=i(101),s=i(100),o=i(42),l=i(150),c=i(192),u=i(28),h=i(44),d=i(128),m=i(43),f=i(40),g=i(63),y=i(70),p=i(99),v=i(90),_=i(97),b=i(121),L=i(91),w=i(628),M=i(178),k=i(98),O=i(39),T=i(138),S=i(61),C=i(62),j=i(147),E=i(125),I=i(107),D=i(119),P=i(32),A=i(233),x=i(629),Y=i(103),N=i(75),F=i(57).forEach,R=E("hidden"),H="Symbol",G="prototype",z=P("toPrimitive"),B=N.set,V=N.getterFor(H),U=Object[G],W=r.Symbol,q=a("JSON","stringify"),J=k.f,K=O.f,Z=w.f,Q=T.f,X=j("symbols"),$=j("op-symbols"),ee=j("string-to-symbol-registry"),te=j("symbol-to-string-registry"),ie=j("wks"),ne=r.QObject,re=!ne||!ne[G]||!ne[G].findChild,ae=o&&u((function(){return 7!=_(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,i){var n=J(U,t);n&&delete U[t],K(e,t,i),n&&e!==U&&K(U,t,n)}:K,se=function(e,t){var i=X[e]=_(W[G]);return B(i,{type:H,tag:e,description:t}),o||(i.description=t),i},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},le=function(e,t,i){e===U&&le($,t,i),f(e);var n=p(t,!0);return f(i),h(X,n)?(i.enumerable?(h(e,R)&&e[R][n]&&(e[R][n]=!1),i=_(i,{enumerable:v(0,!1)})):(h(e,R)||K(e,R,v(1,{})),e[R][n]=!0),ae(e,n,i)):K(e,n,i)},ce=function(e,t){f(e);var i=y(t),n=b(i).concat(fe(i));return F(n,(function(t){o&&!he.call(i,t)||le(e,t,i[t])})),e},ue=function(e,t){return void 0===t?_(e):ce(_(e),t)},he=function(e){var t=p(e,!0),i=Q.call(this,t);return!(this===U&&h(X,t)&&!h($,t))&&(!(i||!h(this,t)||!h(X,t)||h(this,R)&&this[R][t])||i)},de=function(e,t){var i=y(e),n=p(t,!0);if(i!==U||!h(X,n)||h($,n)){var r=J(i,n);return!r||!h(X,n)||h(i,R)&&i[R][n]||(r.enumerable=!0),r}},me=function(e){var t=Z(y(e)),i=[];return F(t,(function(e){h(X,e)||h(I,e)||i.push(e)})),i},fe=function(e){var t=e===U,i=Z(t?$:y(e)),n=[];return F(i,(function(e){!h(X,e)||t&&!h(U,e)||n.push(X[e])})),n};if(l||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=D(e),i=function(e){this===U&&i.call($,e),h(this,R)&&h(this[R],t)&&(this[R][t]=!1),ae(this,t,v(1,e))};return o&&re&&ae(U,t,{configurable:!0,set:i}),se(t,e)},C(W[G],"toString",(function(){return V(this).tag})),C(W,"withoutSetter",(function(e){return se(D(e),e)})),T.f=he,O.f=le,k.f=de,L.f=w.f=me,M.f=fe,A.f=function(e){return se(P(e),e)},o&&(K(W[G],"description",{configurable:!0,get:function(){return V(this).description}}),s||C(U,"propertyIsEnumerable",he,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),F(b(ie),(function(e){x(e)})),n({target:H,stat:!0,forced:!l},{for:function(e){var t=String(e);if(h(ee,t))return ee[t];var i=W(t);return ee[t]=i,te[i]=t,i},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(h(te,e))return te[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!o},{create:ue,defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:de}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:me,getOwnPropertySymbols:fe}),n({target:"Object",stat:!0,forced:u((function(){M.f(1)}))},{getOwnPropertySymbols:function(e){return M.f(g(e))}}),q){var ge=!l||u((function(){var e=W();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}));n({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,i){var n,r=[e],a=1;while(arguments.length>a)r.push(arguments[a++]);if(n=t,(m(t)||void 0!==e)&&!oe(e))return d(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!oe(t))return t}),r[1]=t,q.apply(null,r)}})}W[G][z]||S(W[G],z,W[G].valueOf),Y(W,H),I[R]=!0},function(e,t,i){"use strict";var n=i(21),r=i(42),a=i(31),s=i(44),o=i(43),l=i(39).f,c=i(190),u=a.Symbol;if(r&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var h={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new u(e):void 0===e?u():u(e);return""===e&&(h[t]=!0),t};c(d,u);var m=d.prototype=u.prototype;m.constructor=d;var f=m.toString,g="Symbol(test)"==String(u("test")),y=/^Symbol\((.*)\)[^)]+$/;l(m,"description",{configurable:!0,get:function(){var e=o(this)?this.valueOf():this,t=f.call(e);if(s(h,e))return"";var i=g?t.slice(7,-1):t.replace(y,"$1");return""===i?void 0:i}}),n({global:!0,forced:!0},{Symbol:d})}},function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"b",(function(){return a}));i(22),i(26);var n={NORTH:1,EAST:2,SOUTH:3,WEST:4},r={north:n.NORTH,east:n.EAST,south:n.SOUTH,west:n.WEST};function a(e){return Object.keys(r).find((function(t){return r[t]===e}))}},,function(e,t,i){var n=i(21),r=i(226).values;n({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,i){"use strict";i(17),i(23),i(9),i(66),i(18),i(33),i(30),i(24),i(26),i(25),i(687),i(46),i(55),i(10);var n=i(37),r=i(14),a=i(1),s=i(0);function o(e){var t=e.length-1;return e.filter((function(e,i){return""!==e||i===t}))}var l=function(){function e(t){Object(a["a"])(this,e),this.className=e.className,this.base=t.base,this.base.replace("/$",""),this.path=t.path||[],this.hashPath=t.hashPath||[],this.queryParams=t.queryParams||{}}return Object(s["a"])(e,null,[{key:"className",get:function(){return"vcs.Url"}}]),Object(s["a"])(e,[{key:"addQueryParams",value:function(e){var t=this;Object.keys(e).forEach((function(i){t.queryParams[i]=e[i]}))}},{key:"getQueryParams",value:function(){return this.queryParams}},{key:"clearQueryParams",value:function(){this.queryParams={}}},{key:"setPath",value:function(){for(var e=this,t=[],i=arguments.length,n=new Array(i),a=0;a0&&(e+="?".concat(this._getStringQueryParams())),this.hashPath.length>0&&(e+="#".concat(this.hashPath.join("/"))),e}},{key:"_getStringQueryParams",value:function(){var e=this;return Object.keys(this.queryParams).map((function(t){var i,n=e.queryParams[t];return i=n instanceof Object?JSON.stringify(n):String(n),"".concat(t,"=").concat(encodeURIComponent(i))})).join("&")}}],[{key:"parse",value:function(t){if(e.isUrl(t)){var i=t.split("?"),n=t.split("#"),r=null;if(i.length>1){var a=i[1].split("#")[0];a.endsWith("/")&&(a=a.split("/")[0]),r=e.parseQueryParams(a)}var s=[];if(n.length>1){var l=n[1].split("?")[0];s=l.split("/")}var c,u=i[0].split("#")[0].split("/");return c=/^(https?:\/\/).*/.test(t)?u.splice(0,3).join("/"):u.splice(0,1).join(""),u=o(u),new e({base:c,path:u,queryParams:r,hashPath:s})}throw new Error("Cannot parse url: ".concat(t))}},{key:"parseQueryParams",value:function(e){var t=e.split("&"),i={};return t.forEach((function(e){var t,n=e.split("=");2===n.length&&n[1].length>0&&(t=decodeURIComponent(n[1]),/^\d*\.?\d*$/.test(t)?t=Number(t):/^(\[|\{)(.*)(\]|\})$/.test(t)?t=JSON.parse(t):"true"===t?t=!0:"false"===t&&(t=!1));var r=i[n[0]];r?Array.isArray(r)?r.push(t):i[n[0]]=[r,t]:i[n[0]]=t})),i}},{key:"isUrl",value:function(e){var t=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i;return t.test(e)}},{key:"hasSameOrigin",value:function(t){if(!/^[a-z][a-z0-9+.-]*:/.test(t))return!0;if(/^data:/.test(t))return!0;var i=e.parse(window.location.href),n=e.parse(t);return i.base.toLowerCase()===n.base.toLocaleLowerCase()}}]),e}();t["a"]=l},function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return l})),i.d(t,"d",(function(){return c})),i.d(t,"c",(function(){return u})),i.d(t,"f",(function(){return h})),i.d(t,"e",(function(){return d}));i(22),i(9),i(18),i(33),i(30),i(8),i(10);var n=i(27),r=i(50);function a(e,t){var i=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(i*i+n*n)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.slice(),n=ol.extent.boundingExtent(i),s=[ol.extent.getBottomLeft(n),ol.extent.getBottomRight(n),ol.extent.getTopRight(n),ol.extent.getTopLeft(n)],o=s.map((function(e){var t=0,n=1/0;return i.forEach((function(i,r){var s=a(e,i);sa?(console.error("Number is much smaller than -1 or much larger than 1 in angleBetweenTwo2DVectors"),null):((r<-1||r>1)&&(r=Math.round(r)),Math.acos(r))}function l(e,t){var i,r,a=Object(n["a"])(e,2),s=Object(n["a"])(a[0],2),o=s[0],l=s[1],c=Object(n["a"])(a[1],2),u=c[0],h=c[1],d=Object(n["a"])(t,2),m=Object(n["a"])(d[0],2),f=m[0],g=m[1],y=Object(n["a"])(d[1],2),p=y[0],v=y[1],_={x:null,y:null,onLine1:!1,onLine2:!1},b=(v-g)*(u-o)-(p-f)*(h-l);if(0===b)return _;i=l-g,r=o-f;var L=(p-f)*i-(v-g)*r,w=(u-o)*i-(h-l)*r;return i=L/b,r=w/b,_.x=o+i*(u-o),_.y=l+i*(h-l),i>0&&i<1&&(_.onLine1=!0),r>0&&r<1&&(_.onLine2=!0),_}function c(e,t,i,n,r){for(var c=s(e,!i&&r),u=s(t,!!i&&r),h=[],d=0;d5)){var b=[c[f][0]-c[g][0],c[f][1]-c[g][1]],L=[c[g][0]-c[f][0],c[g][1]-c[f][1]],w=o(p,b);if(null!=w){var M=o(p,L);if(null!=M){var k=a(c[f],c[g]);if(0!==k){var O=a(c[f],[y.x,y.y])/k,T=0;0!==O&&(T=o(L,[y.x-c[f][0],y.y-c[f][1]]),null==T)||m.push({cornerPoint:d,intrX:y.x,intrY:y.y,angle:w<=M?w:M,edgeStart:f,edgeEnd:g,ratioStart2End:T/Math.PI*180>5?-1*O:O})}}}}}}}for(var S=-1,C=-1,j=0;jS&&(S=m[j].angle,C=j);-1!==C&&h.push(m[C])}if(h.length<2)return null;for(var E=[],I=0;I2&&void 0!==arguments[2]?arguments[2]:{},n=i.dataProjection?ol.proj.transform(t,i.dataProjection,e.projection):t;function r(){var t=e.transformRealWorld2Image(n);return{coords:t,height:e.averageHeight,estimate:!0}}if(t[2]){var a=e.transformRealWorld2Image(n,t[2]);return Promise.resolve({coords:a,height:t[2],estimate:!1})}return!i.dontUseTerrain&&e.terrainProvider?u(e.terrainProvider,[n],e.projection).then((function(){if(n[2]){var t=e.transformRealWorld2Image(n,n[2]);return{coords:t,height:n[2],estimate:!1}}return console.warn("The configured terrain on the oblique layer could not be queried, position might be inaccurate"),r()})).catch((function(){return r()})):Promise.resolve(r())}function d(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=ol.proj.get("EPSG:4326"),r=ol.proj.transform(e.transformImage2RealWorld(t,e.averageHeight),e.projection,n),a=i.terrainErrorThreshold||1,s=i.terrainErrorCountThreshold||3,o=0;function l(i,r){return o+=1,u(e.terrainProvider,[i]).then((function(){if(null!=i[2]){var c=ol.proj.transform(e.transformImage2RealWorld(t,i[2]),e.projection,n);return c[2]=i[2],Math.abs(r-i[2])s?{coords:c,estimate:!1}:l(c,i[2])}return console.log("The configured terrain on the oblique layer could not be queried, position might be inaccurate"),{coords:i,estimate:!0}})).catch((function(){return{coords:i,estimate:!0}}))}var c=!i.dontUseTerrain&&e.terrainProvider?l(r,e.getAverageHeight()):Promise.resolve({coords:r,estimate:!0});return c.then((function(t){return t.coords=i.dataProjection?ol.proj.transform(t.coords,n,i.dataProjection):ol.proj.transform(t.coords,n,e.projection),t}))}},function(e,t,i){"use strict";var n=i(130),r=i(164),a=i(40),s=i(60),o=i(142),l=i(165),c=i(41),u=i(131),h=i(129),d=i(28),m=[].push,f=Math.min,g=4294967295,y=!d((function(){return!RegExp(g,"y")}));n("split",2,(function(e,t,i){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,i){var n=String(s(this)),a=void 0===i?g:i>>>0;if(0===a)return[];if(void 0===e)return[n];if(!r(e))return t.call(n,e,a);var o,l,c,u=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,y=new RegExp(e.source,d+"g");while(o=h.call(y,n)){if(l=y.lastIndex,l>f&&(u.push(n.slice(f,o.index)),o.length>1&&o.index=a))break;y.lastIndex===o.index&&y.lastIndex++}return f===n.length?!c&&y.test("")||u.push(""):u.push(n.slice(f)),u.length>a?u.slice(0,a):u}:"0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:t.call(this,e,i)}:t,[function(t,i){var r=s(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,r,i):n.call(String(r),t,i)},function(e,r){var s=i(n,e,this,r,n!==t);if(s.done)return s.value;var h=a(e),d=String(this),m=o(h,RegExp),p=h.unicode,v=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(y?"y":"g"),_=new m(y?h:"^(?:"+h.source+")",v),b=void 0===r?g:r>>>0;if(0===b)return[];if(0===d.length)return null===u(_,d)?[d]:[];var L=0,w=0,M=[];while(wM;M++)if((d||M in b)&&(p=b[M],v=L(p,M,_),e))if(t)O[M]=v;else if(v)switch(e){case 3:return!0;case 5:return p;case 6:return M;case 2:l.call(O,p)}else if(u)return!1;return h?-1:c||u?u:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,i){var n=i(45),r=i(196),a=i(74),s=i(200),o=i(201),l=i(590),c=r("wks"),u=n.Symbol,h=l?u:u&&u.withoutSetter||s;e.exports=function(e){return a(c,e)||(o&&a(u,e)?c[e]=u[e]:c[e]=h("Symbol."+e)),c[e]}},function(e,t,i){"use strict";var n=i(235),r=i(632),a=Object.prototype.toString;function s(e){return"[object Array]"===a.call(e)}function o(e){return"[object ArrayBuffer]"===a.call(e)}function l(e){return"undefined"!==typeof FormData&&e instanceof FormData}function c(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function u(e){return"string"===typeof e}function h(e){return"number"===typeof e}function d(e){return"undefined"===typeof e}function m(e){return null!==e&&"object"===typeof e}function f(e){return"[object Date]"===a.call(e)}function g(e){return"[object File]"===a.call(e)}function y(e){return"[object Blob]"===a.call(e)}function p(e){return"[object Function]"===a.call(e)}function v(e){return m(e)&&p(e.pipe)}function _(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function b(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function L(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function w(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),s(e))for(var i=0,n=e.length;i1?arguments[1]:void 0)}}),a(s)},,function(e,t,i){"use strict";var n=i(21),r=i(124),a=i(70),s=i(96),o=[].join,l=r!=Object,c=s("join",",");n({target:"Array",proto:!0,forced:l||c},{join:function(e){return o.call(a(this),void 0===e?",":e)}})},function(e,t){!function(t){"use strict";var i,n=Object.prototype,r=n.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag",c="object"===typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{u=t.regeneratorRuntime=c?e.exports:{},u.wrap=b;var h="suspendedStart",d="suspendedYield",m="executing",f="completed",g={},y={};y[s]=function(){return this};var p=Object.getPrototypeOf,v=p&&p(p(D([])));v&&v!==n&&r.call(v,s)&&(y=v);var _=k.prototype=w.prototype=Object.create(y);M.prototype=_.constructor=k,k.constructor=M,k[l]=M.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===M||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(_),e},u.awrap=function(e){return{__await:e}},O(T.prototype),T.prototype[o]=function(){return this},u.AsyncIterator=T,u.async=function(e,t,i,n){var r=new T(b(e,t,i,n));return u.isGeneratorFunction(t)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},O(_),_[l]="Generator",_[s]=function(){return this},_.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){while(t.length){var n=t.pop();if(n in e)return i.value=n,i.done=!1,i}return i.done=!0,i}},u.values=D,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=i)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=i),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a],o=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var l=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),E(i),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;E(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=i),g}}}function b(e,t,i,n){var r=t&&t.prototype instanceof w?t:w,a=Object.create(r.prototype),s=new I(n||[]);return a._invoke=S(e,i,s),a}function L(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(n){return{type:"throw",arg:n}}}function w(){}function M(){}function k(){}function O(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function T(e){function t(i,n,a,s){var o=L(e[i],e,n);if("throw"!==o.type){var l=o.arg,c=l.value;return c&&"object"===typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):Promise.resolve(c).then((function(e){l.value=e,a(l)}),s)}s(o.arg)}var i;function n(e,n){function r(){return new Promise((function(i,r){t(e,n,i,r)}))}return i=i?i.then(r,r):r()}this._invoke=n}function S(e,t,i){var n=h;return function(r,a){if(n===m)throw new Error("Generator is already running");if(n===f){if("throw"===r)throw a;return P()}i.method=r,i.arg=a;while(1){var s=i.delegate;if(s){var o=C(s,i);if(o){if(o===g)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===h)throw n=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=m;var l=L(e,t,i);if("normal"===l.type){if(n=i.done?f:d,l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n=f,i.method="throw",i.arg=l.arg)}}}function C(e,t){var n=e.iterator[t.method];if(n===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=i,C(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=L(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,g;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=i),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function D(e){if(e){var t=e[s];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){while(++n1?arguments[1]:void 0)}})},function(e,t,i){var n=i(124),r=i(60);e.exports=function(e){return n(r(e))}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:i)(e)}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,i){var n=i(82);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){var n,r,a,s=i(584),o=i(31),l=i(43),c=i(61),u=i(44),h=i(125),d=i(107),m=o.WeakMap,f=function(e){return a(e)?r(e):n(e,{})},g=function(e){return function(t){var i;if(!l(t)||(i=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}};if(s){var y=new m,p=y.get,v=y.has,_=y.set;n=function(e,t){return _.call(y,e,t),t},r=function(e){return p.call(y,e)||{}},a=function(e){return v.call(y,e)}}else{var b=h("state");d[b]=!0,n=function(e,t){return c(e,b,t),t},r=function(e){return u(e,b)?e[b]:{}},a=function(e){return u(e,b)}}e.exports={set:n,get:r,has:a,enforce:f,getterFor:g}},,function(e,t,i){"use strict";function n(e,t,i){void 0===i&&(i={});var n={type:"Feature"};return(0===i.id||i.id)&&(n.id=i.id),i.bbox&&(n.bbox=i.bbox),n.properties=t||{},n.geometry=e,n}function r(e,t,i){switch(void 0===i&&(i={}),e){case"Point":return a(t).geometry;case"LineString":return c(t).geometry;case"Polygon":return o(t).geometry;case"MultiPoint":return m(t).geometry;case"MultiLineString":return d(t).geometry;case"MultiPolygon":return f(t).geometry;default:throw new Error(e+" is invalid")}}function a(e,t,i){void 0===i&&(i={});var r={type:"Point",coordinates:e};return n(r,t,i)}function s(e,t,i){return void 0===i&&(i={}),h(e.map((function(e){return a(e,t)})),i)}function o(e,t,i){void 0===i&&(i={});for(var r=0,a=e;r=0))throw new Error("precision must be a positive number");var i=Math.pow(10,t||0);return Math.round(e*i)/i}function p(e,i){void 0===i&&(i="kilometers");var n=t.factors[i];if(!n)throw new Error(i+" units is invalid");return e*n}function v(e,i){void 0===i&&(i="kilometers");var n=t.factors[i];if(!n)throw new Error(i+" units is invalid");return e/n}function _(e,t){return L(v(e,t))}function b(e){var t=e%360;return t<0&&(t+=360),t}function L(e){var t=e%(2*Math.PI);return 180*t/Math.PI}function w(e){var t=e%360;return t*Math.PI/180}function M(e,t,i){if(void 0===t&&(t="kilometers"),void 0===i&&(i="kilometers"),!(e>=0))throw new Error("length must be a positive number");return p(v(e,t),i)}function k(e,i,n){if(void 0===i&&(i="meters"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("area must be a positive number");var r=t.areaFactors[i];if(!r)throw new Error("invalid original units");var a=t.areaFactors[n];if(!a)throw new Error("invalid final units");return e/r*a}function O(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)&&!/^\s*$/.test(e)}function T(e){return!!e&&e.constructor===Object}function S(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!O(e))throw new Error("bbox must only contain numbers")}))}function C(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}function j(){throw new Error("method has been renamed to `radiansToDegrees`")}function E(){throw new Error("method has been renamed to `degreesToRadians`")}function I(){throw new Error("method has been renamed to `lengthToDegrees`")}function D(){throw new Error("method has been renamed to `lengthToRadians`")}function P(){throw new Error("method has been renamed to `radiansToLength`")}function A(){throw new Error("method has been renamed to `bearingToAzimuth`")}function x(){throw new Error("method has been renamed to `convertLength`")}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100*t.earthRadius,centimetres:100*t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084*t.earthRadius,inches:39.37*t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3*t.earthRadius,millimetres:1e3*t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:t.earthRadius/1.0936},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1/1.0936},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=n,t.geometry=r,t.point=a,t.points=s,t.polygon=o,t.polygons=l,t.lineString=c,t.lineStrings=u,t.featureCollection=h,t.multiLineString=d,t.multiPoint=m,t.multiPolygon=f,t.geometryCollection=g,t.round=y,t.radiansToLength=p,t.lengthToRadians=v,t.lengthToDegrees=_,t.bearingToAzimuth=b,t.radiansToDegrees=L,t.degreesToRadians=w,t.convertLength=M,t.convertArea=k,t.isNumber=O,t.isObject=T,t.validateBBox=S,t.validateId=C,t.radians2degrees=j,t.degrees2radians=E,t.distanceToDegrees=I,t.distanceToRadians=D,t.radiansToDistance=P,t.bearingToAngle=A,t.convertDistance=x},,,function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,i){var n=i(72);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t,i){var n=i(21),r=i(624);n({target:"Number",stat:!0},{isFinite:r})},function(e,t,i){var n=i(21),r=i(234),a=i(113);n({target:"Array",proto:!0},{fill:r}),a("fill")},function(e,t,i){"use strict";var n=i(21),r=i(71),a=i(649),s=i(241),o=i(28),l=1..toFixed,c=Math.floor,u=function(e,t,i){return 0===t?i:t%2===1?u(e,t-1,i*e):u(e*e,t/2,i)},h=function(e){var t=0,i=e;while(i>=4096)t+=12,i/=4096;while(i>=2)t+=1,i/=2;return t},d=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){l.call({})}));n({target:"Number",proto:!0,forced:d},{toFixed:function(e){var t,i,n,o,l=a(this),d=r(e),m=[0,0,0,0,0,0],f="",g="0",y=function(e,t){var i=-1,n=t;while(++i<6)n+=e*m[i],m[i]=n%1e7,n=c(n/1e7)},p=function(e){var t=6,i=0;while(--t>=0)i+=m[t],m[t]=c(i/e),i=i%e*1e7},v=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==m[e]){var i=String(m[e]);t=""===t?i:t+s.call("0",7-i.length)+i}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(f="-",l=-l),l>1e-21)if(t=h(l*u(2,69,1))-69,i=t<0?l*u(2,-t,1):l/u(2,t,1),i*=4503599627370496,t=52-t,t>0){y(0,i),n=d;while(n>=7)y(1e7,0),n-=7;y(u(10,n,1),0),n=t-1;while(n>=23)p(1<<23),n-=23;p(1<0?(o=g.length,g=f+(o<=d?"0."+s.call("0",d-o)+g:g.slice(0,o-d)+"."+g.slice(o-d))):g=f+g,g}})},,function(e,t,i){"use strict";var n=i(130),r=i(40),a=i(41),s=i(60),o=i(165),l=i(131);n("match",1,(function(e,t,i){return[function(t){var i=s(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,i):new RegExp(t)[e](String(i))},function(e){var n=i(t,e,this);if(n.done)return n.value;var s=r(e),c=String(this);if(!s.global)return l(s,c);var u=s.unicode;s.lastIndex=0;var h,d=[],m=0;while(null!==(h=l(s,c))){var f=String(h[0]);d[m]=f,""===f&&(s.lastIndex=o(c,a(s.lastIndex),u)),m++}return 0===m?null:d}]}))},function(e,t,i){"use strict";var n=i(21),r=i(57).some,a=i(96);n({target:"Array",proto:!0,forced:a("some")},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";var n,r=i(724),a=r.template;function s(e,t,i){return a(e,t,i)}s._=r,e.exports=s,n=function(){return s}.call(t,i,t,e),void 0===n||(e.exports=n)},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,i){var n=i(191),r=i(148),a=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},function(e,t,i){"use strict";var n=i(130),r=i(40),a=i(60),s=i(587),o=i(131);n("search",1,(function(e,t,i){return[function(t){var i=a(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,i):new RegExp(t)[e](String(i))},function(e){var n=i(t,e,this);if(n.done)return n.value;var a=r(e),l=String(this),c=a.lastIndex;s(c,0)||(a.lastIndex=0);var u=o(a,l);return s(a.lastIndex,c)||(a.lastIndex=c),null===u?-1:u.index}]}))},function(e,t,i){var n=i(81),r=i(94),a=i(153);e.exports=n?function(e,t,i){return r.f(e,t,a(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){var n=i(81),r=i(198),a=i(73),s=i(199),o=Object.defineProperty;t.f=n?o:function(e,t,i){if(a(e),t=s(t,!0),a(i),r)try{return o(e,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},function(e,t,i){var n=i(594),r=i(45),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e])||a(r[e]):n[e]&&n[e][t]||r[e]&&r[e][t]}},function(e,t,i){"use strict";var n=i(28);e.exports=function(e,t){var i=[][e];return!i||!n((function(){i.call(null,t||function(){throw 1},1)}))}},function(e,t,i){var n,r=i(40),a=i(372),s=i(148),o=i(107),l=i(623),c=i(187),u=i(125),h=">",d="<",m="prototype",f="script",g=u("IE_PROTO"),y=function(){},p=function(e){return d+f+h+e+d+"/"+f+h},v=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e,t=c("iframe"),i="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(i),e=t.contentWindow.document,e.open(),e.write(p("document.F=Object")),e.close(),e.F},b=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}b=n?v(n):_();var e=s.length;while(e--)delete b[m][s[e]];return b()};o[g]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(y[m]=r(e),i=new y,y[m]=null,i[g]=e):i=b(),void 0===t?i:a(i,t)}},function(e,t,i){var n=i(42),r=i(138),a=i(90),s=i(70),o=i(99),l=i(44),c=i(186),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=s(e),t=o(t,!0),c)try{return u(e,t)}catch(i){}if(l(e,t))return a(!r.f.call(e,t),e[t])}},function(e,t,i){var n=i(43);e.exports=function(e,t){if(!n(e))return e;var i,r;if(t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;if("function"==typeof(i=e.valueOf)&&!n(r=i.call(e)))return r;if(!t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=!1},function(e,t,i){var n=i(177),r=i(31),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e])||a(r[e]):n[e]&&n[e][t]||r[e]&&r[e][t]}},function(e,t,i){var n=i(71),r=Math.max,a=Math.min;e.exports=function(e,t){var i=n(e);return i<0?r(i+t,0):a(i,t)}},function(e,t,i){var n=i(39).f,r=i(44),a=i(32),s=a("toStringTag");e.exports=function(e,t,i){e&&!r(e=i?e:e.prototype,s)&&n(e,s,{configurable:!0,value:t})}},function(e,t,i){"use strict";var n=i(374),r=i(377);e.exports=n("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},function(e,t,i){var n=i(21),r=i(226).entries;n({target:"Object",stat:!0},{entries:function(e){return r(e)}})},,function(e,t){e.exports={}},function(e,t,i){var n=i(28),r=i(32),a=i(193),s=r("species");e.exports=function(e){return a>=51||!n((function(){var t=[],i=t.constructor={};return i[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t){e.exports=!1},function(e,t){e.exports={}},function(e,t,i){var n=i(45),r=i(93),a=i(74),s=i(151),o=i(158),l=i(157),c=l.get,u=l.enforce,h=String(String).split("String");(e.exports=function(e,t,i,o){var l=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,d=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||a(i,"name")||r(i,"name",t),u(i).source=h.join("string"==typeof t?t:"")),e!==n?(l?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=i:r(e,t,i)):c?e[t]=i:s(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||o(this)}))},function(e,t,i){var n=i(32),r=i(97),a=i(39),s=n("unscopables"),o=Array.prototype;void 0==o[s]&&a.f(o,s,{configurable:!0,value:r(null)}),e.exports=function(e){o[s][e]=!0}},function(e,t,i){"use strict";var n=i(374),r=i(377);e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},function(e,t){e.exports={}},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(118);function r(e,t){if(e){if("string"===typeof e)return Object(n["a"])(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Object(n["a"])(e,t):void 0}}},function(e,t,i){var n=i(663),r=i(664);function a(e,t,i){var a=t&&i||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||n)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var o=0;o<16;++o)t[a+o]=s[o];return t||r(s)}e.exports=a},function(e,t,i){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i-1,i&&(t=t.replace(/y/g,"")));var o=s(w?new v(e,t):v(e,t),n?this:_,O);return M&&i&&f(o,{sticky:i}),o},T=function(e){e in O||o(O,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},S=l(v),C=0;while(S.length>C)T(S[C++]);_.constructor=O,O.prototype=_,d(r,"RegExp",O)}g("RegExp")},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(n){"object"===typeof window&&(i=window)}e.exports=i},function(e,t,i){var n=i(28),r=i(80),a="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?a.call(e,""):Object(e)}:Object},function(e,t,i){var n=i(147),r=i(119),a=n("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},function(e,t,i){var n=i(70),r=i(41),a=i(102),s=function(e){return function(t,i,s){var o,l=n(t),c=r(l.length),u=a(s,c);if(e&&i!=i){while(c>u)if(o=l[u++],o!=o)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},function(e,t,i){var n=i(28),r=/#|\.prototype\./,a=function(e,t){var i=o[s(e)];return i==c||i!=l&&("function"==typeof t?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,i){var n=i(80);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,i){"use strict";var n=i(139),r=i(180),a=RegExp.prototype.exec,s=String.prototype.replace,o=a,l=function(){var e=/a/,t=/b*/g;return a.call(e,"a"),a.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),c=r.UNSUPPORTED_Y||r.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],h=l||u||c;h&&(o=function(e){var t,i,r,o,h=this,d=c&&h.sticky,m=n.call(h),f=h.source,g=0,y=e;return d&&(m=m.replace("y",""),-1===m.indexOf("g")&&(m+="g"),y=String(e).slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==e[h.lastIndex-1])&&(f="(?: "+f+")",y=" "+y,g++),i=new RegExp("^(?:"+f+")",m)),u&&(i=new RegExp("^"+f+"$(?!\\s)",m)),l&&(t=h.lastIndex),r=a.call(d?i:h,y),d?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),r.index=h.lastIndex,h.lastIndex+=r[0].length):h.lastIndex=0:l&&r&&(h.lastIndex=h.global?r.index+r[0].length:t),u&&r&&r.length>1&&s.call(r[0],i,(function(){for(o=1;o")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),h=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}));e.exports=function(e,t,i,d){var m=a(e),f=!r((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),g=f&&!r((function(){var t=!1,i=/a/;return"split"===e&&(i={},i.constructor={},i.constructor[l]=function(){return i},i.flags="",i[m]=/./[m]),i.exec=function(){return t=!0,null},i[m](""),!t}));if(!f||!g||"replace"===e&&(!c||!u)||"split"===e&&!h){var y=/./[m],p=i(m,""[e],(function(e,t,i,n,r){return t.exec===s?f&&!r?{done:!0,value:y.call(t,i,n)}:{done:!0,value:e.call(i,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:u}),v=p[0],_=p[1];n(String.prototype,e,v),n(RegExp.prototype,m,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}d&&o(RegExp.prototype[m],"sham",!0)}},function(e,t,i){var n=i(80),r=i(129);e.exports=function(e,t){var i=e.exec;if("function"===typeof i){var a=i.call(e,t);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},function(e,t,i){var n=i(194),r=i(195);e.exports=function(e){return n(r(e))}},function(e,t,i){var n=i(45),r=i(159).f,a=i(93),s=i(112),o=i(151),l=i(597),c=i(210);e.exports=function(e,t){var i,u,h,d,m,f,g=e.target,y=e.global,p=e.stat;if(u=y?n:p?n[g]||o(g,{}):(n[g]||{}).prototype,u)for(h in t){if(m=t[h],e.noTargetGet?(f=r(u,h),d=f&&f.value):d=u[h],i=c(y?h:g+(p?".":"#")+h,e.forced),!i&&void 0!==d){if(typeof m===typeof d)continue;l(m,d)}(e.sham||d&&d.sham)&&a(m,"sham",!0),s(u,h,m,e)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t){e.exports=function(e,t,i){if(!(e instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return e}},,function(e,t,i){"use strict";i(22),i(33),i(12),i(8);var n=i(27),r=i(1),a=i(0),s=i(653),o=i.n(s),l=i(655),c=i.n(l),u=i(54),h={LOADING:-1,INACTIVE:0,ACTIVE:1},d=function(){function e(t){Object(r["a"])(this,e),this.currentImage=null,this.currentView=null;var i=new ol.source.Vector({features:t.footPrintFeatures});this.footPrintsLayer=new ol.layer.Vector({source:i}),this.rTree=o()(),this.rTree.load(t.rTreeItems),this.olMap=null,this.state=h.INACTIVE,this.images=t.images||{},this.projection=t.projection,this.terrainProvider=t.terrainProvider||null,this.direction=t.direction}return Object(a["a"])(e,null,[{key:"STATE",get:function(){return h}}]),Object(a["a"])(e,[{key:"activate",value:function(e,t,i){var n=this;return this.olMap&&this.olMap!==e&&this.deactivate(),this.state===h.INACTIVE?(this.state=h.LOADING,this.olMap=e,this.setView(t,i).then((function(){n.state=h.ACTIVE}))):Promise.resolve(this.state)}},{key:"deactivate",value:function(){this.currentView&&(this.olMap.removeLayer(this.currentView.layer),this.currentView=null),this.currentImage=null,this.state=h.INACTIVE}},{key:"setView",value:function(e,t){var i=this,n=this.getImageNameForCoordinates(e);return null!==n?this.setImageOnMap(n).then((function(){var e=i.currentView.view;e.setZoom(t)})):Promise.reject(new Error("could not find an image in this direction"))}},{key:"addOptions",value:function(e){this.footPrintsLayer.getSource().addFeatures(e.footPrintFeatures),this.rTree.load(e.rTreeItems),Object.assign(this.images,e.images)}},{key:"postRenderHandler",value:function(t){var i=this;if(this.state===h.ACTIVE){var n=this._pullCoordinateToImageCenter(t.slice()),r=this.currentImage.transformImage2RealWorld(n),a=this.getImageNameForCoordinates(r);null!==a&&a!==this.currentImage.name&&(this.state=h.LOADING,Object(u["e"])(this.currentImage,t).then((function(e){return i.setImageOnMap(a,e.coords)})).catch((function(){console.warn("an error occured while setting image ".concat(a," onto the map")),i.state===e.STATE.LOADING&&(i.state=h.ACTIVE)})))}}},{key:"_pullCoordinateToImageCenter",value:function(e){if(this.currentImage){var t=[this.currentImage.size[0]/2,this.currentImage.size[1]/2];e[0]t?t:e}if(this.state===e.STATE.INACTIVE)return Promise.resolve();this.state=e.STATE.LOADING;var s=Promise.resolve();if(!this.currentImage||t!==this.currentImage.name){var o=this.images[t];s=o.calculateImageAverageHeight().then((function(){if(r.state!==e.STATE.INACTIVE){r.currentImage=o;var t=r.currentImage.view,i=!r.currentView||r.currentView&&r.currentView.id!==t.id;r.currentView&&r.currentView.id!==t.id&&r.olMap.removeLayer(r.currentView.layer),r.currentView=t,r.currentView.setImageName(r.currentImage.name),r.olMap.getView()&&r.olMap.getView().getResolution()&&r.currentView.view.setResolution(r.olMap.getView().getResolution()),r.olMap.setView(r.currentView.view),i&&r.olMap.addLayer(r.currentView.layer)}}))}return s.then((function(){if(r.state!==e.STATE.INACTIVE){var t=Object(n["a"])(r.currentImage.size,2),s=t[0],o=t[1],l=[s/2,o/2];if(i){var c=r.currentImage.transformRealWorld2Image(i,i[2]);c[0]=a(c[0],s),c[1]=a(c[1],o),l=c}r.currentView.view.setCenter(l),r.state=e.STATE.ACTIVE}}))}},{key:"getImageIdInDirection",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.PI/4;if(!this.currentImage)return null;var n=this.currentImage.centerPointOnGround,r=c()(this.rTree,n[0],n[1],20),a=r.find((function(r){if(r.name!==t.currentImage.name){var a=Math.atan2(r.minY-n[1],r.minX-n[0]);a<=0&&(a+=2*Math.PI);var s=a-e;if(s>Math.PI?s-=2*Math.PI:s<-Math.PI&&(s+=2*Math.PI),s<=i&&s>=-i)return r}return!1}));return a?a.name:null}},{key:"getImageNameForCoordinates",value:function(e){var t=c()(this.rTree,e[0],e[1],1);return t.length?t[0].name:null}}]),e}();t["a"]=d},function(e,t,i){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!n.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},function(e,t,i){"use strict";var n=i(40);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,i){"use strict";var n=i(99),r=i(39),a=i(90);e.exports=function(e,t,i){var s=n(t);s in e?r.f(e,s,a(0,i)):e[s]=i}},function(e,t,i){var n=i(43),r=i(161);e.exports=function(e,t,i){var a,s;return r&&"function"==typeof(a=t.constructor)&&a!==i&&n(s=a.prototype)&&s!==i.prototype&&r(e,s),e}},function(e,t,i){var n=i(40),r=i(179),a=i(32),s=a("species");e.exports=function(e,t){var i,a=n(e).constructor;return void 0===a||void 0==(i=n(a)[s])?t:r(i)}},function(e,t,i){var n=i(167),r=i(80),a=i(32),s=a("toStringTag"),o="Arguments"==r(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(i){}};e.exports=n?r:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=l(t=Object(e),s))?i:o?r(t):"Object"==(n=r(t))&&"function"==typeof t.callee?"Arguments":n}},,,function(e,t,i){var n=i(31),r=i(61);e.exports=function(e,t){try{r(n,e,t)}catch(i){n[e]=t}return t}},function(e,t,i){var n=i(100),r=i(189);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.1",mode:n?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,i){var n=i(43),r=i(128),a=i(32),s=a("species");e.exports=function(e,t){var i;return r(e)&&(i=e.constructor,"function"!=typeof i||i!==Array&&!r(i.prototype)?n(i)&&(i=i[s],null===i&&(i=void 0)):i=void 0),new(void 0===i?Array:i)(0===t?0:t)}},function(e,t,i){var n=i(28);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t,i){var n=i(45),r=i(93);e.exports=function(e,t){try{r(n,e,t)}catch(i){n[e]=t}return t}},function(e,t,i){var n=i(45),r=i(82),a=n.document,s=r(a)&&r(a.createElement);e.exports=function(e){return s?a.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,i){var n=i(196),r=i(200),a=n("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},function(e,t,i){var n,r,a,s=i(595),o=i(45),l=i(82),c=i(93),u=i(74),h=i(156),d=i(154),m=o.WeakMap,f=function(e){return a(e)?r(e):n(e,{})},g=function(e){return function(t){var i;if(!l(t)||(i=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}};if(s){var y=new m,p=y.get,v=y.has,_=y.set;n=function(e,t){return _.call(y,e,t),t},r=function(e){return p.call(y,e)||{}},a=function(e){return v.call(y,e)}}else{var b=h("state");d[b]=!0,n=function(e,t){return c(e,b,t),t},r=function(e){return u(e,b)?e[b]:{}},a=function(e){return u(e,b)}}e.exports={set:n,get:r,has:a,enforce:f,getterFor:g}},function(e,t,i){var n=i(197),r=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return r.call(e)}),e.exports=n.inspectSource},function(e,t,i){var n=i(81),r=i(208),a=i(153),s=i(132),o=i(199),l=i(74),c=i(198),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=s(e),t=o(t,!0),c)try{return u(e,t)}catch(i){}if(l(e,t))return a(!r.f.call(e,t),e[t])}},function(e,t,i){var n=i(94).f,r=i(74),a=i(58),s=a("toStringTag");e.exports=function(e,t,i){e&&!r(e=i?e:e.prototype,s)&&n(e,s,{configurable:!0,value:t})}},function(e,t,i){var n=i(40),r=i(622);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(i,[]),t=i instanceof Array}catch(a){}return function(i,a){return n(i),r(a),t?e.call(i,a):i.__proto__=a,i}}():void 0)},function(e,t,i){var n=i(60),r=i(163),a="["+r+"]",s=RegExp("^"+a+a+"*"),o=RegExp(a+a+"*$"),l=function(e){return function(t){var i=String(n(t));return 1&e&&(i=i.replace(s,"")),2&e&&(i=i.replace(o,"")),i}};e.exports={start:l(1),end:l(2),trim:l(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,i){var n=i(43),r=i(80),a=i(32),s=a("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==r(e))}},function(e,t,i){"use strict";var n=i(181).charAt;e.exports=function(e,t,i){return t+(i?n(e,t).length:1)}},function(e,t,i){var n=i(44),r=i(63),a=i(125),s=i(373),o=a("IE_PROTO"),l=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=r(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,i){var n=i(32),r=n("toStringTag"),a={};a[r]="z",e.exports="[object z]"===String(a)},function(e,t,i){var n=i(21);n({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,i){var n=i(21),r=i(626);n({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(e,t,i){var n=i(143),r=i(115),a=i(32),s=a("iterator");e.exports=function(e){if(void 0!=e)return e[s]||e["@@iterator"]||r[n(e)]}},function(e,t,i){"use strict";var n=i(21),r=i(378),a=i(166),s=i(161),o=i(103),l=i(61),c=i(62),u=i(32),h=i(100),d=i(115),m=i(231),f=m.IteratorPrototype,g=m.BUGGY_SAFARI_ITERATORS,y=u("iterator"),p="keys",v="values",_="entries",b=function(){return this};e.exports=function(e,t,i,u,m,L,w){r(i,t,u);var M,k,O,T=function(e){if(e===m&&I)return I;if(!g&&e in j)return j[e];switch(e){case p:return function(){return new i(this,e)};case v:return function(){return new i(this,e)};case _:return function(){return new i(this,e)}}return function(){return new i(this)}},S=t+" Iterator",C=!1,j=e.prototype,E=j[y]||j["@@iterator"]||m&&j[m],I=!g&&E||T(m),D="Array"==t&&j.entries||E;if(D&&(M=a(D.call(new e)),f!==Object.prototype&&M.next&&(h||a(M)===f||(s?s(M,f):"function"!=typeof M[y]&&l(M,y,b)),o(M,S,!0,!0),h&&(d[S]=b))),m==v&&E&&E.name!==v&&(C=!0,I=function(){return E.call(this)}),h&&!w||j[y]===I||l(j,y,I),d[t]=I,m)if(k={values:T(v),keys:L?I:T(p),entries:T(_)},w)for(O in k)(g||C||!(O in j))&&c(j,O,k[O]);else n({target:t,proto:!0,forced:g||C},k);return k}},function(e,t,i){"use strict";(function(t){var n=i(59),r=i(635),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function o(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t)&&(e=i(237)),e}var l={adapter:o(),transformRequest:[function(e,t){return r(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){l.headers[e]=n.merge(a)})),e.exports=l}).call(this,i(236))},function(e,t,i){"use strict";function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i(37),r=i(19);function a(e,t){return!t||"object"!==Object(n["a"])(t)&&"function"!==typeof t?Object(r["a"])(e):t}},,function(e,t,i){var n=i(31);e.exports=n},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,i){"use strict";var n=i(28);function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=n((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=n((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,i){var n=i(71),r=i(60),a=function(e){return function(t,i){var a,s,o=String(r(t)),l=n(i),c=o.length;return l<0||l>=c?e?"":void 0:(a=o.charCodeAt(l),a<55296||a>56319||l+1===c||(s=o.charCodeAt(l+1))<56320||s>57343?e?o.charAt(l):a:e?o.slice(l,l+2):s-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},function(e,t,i){"use strict";var n=i(101),r=i(39),a=i(32),s=i(42),o=a("species");e.exports=function(e){var t=n(e),i=r.f;s&&t&&!t[o]&&i(t,o,{configurable:!0,get:function(){return this}})}},function(e,t,i){"use strict";var n=i(21),r=i(630).left,a=i(96);n({target:"Array",proto:!0,forced:a("reduce")},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";i(33),i(12),i(8);var n=i(1),r=i(0),a=i(117),s=i.n(a),o=i(54),l=function(){function e(t){Object(n["a"])(this,e),this.id=s()(),this.name=t.name,this.meta=t.meta,this.viewDirection=t.viewDirection,this.viewDirectionAngle=null!=t.viewDirectionAngle&&this.meta.version>=3.4&&this.meta.buildNumber>=18?t.viewDirectionAngle:null,this.camera=t.camera,this.groundCoordinates=t.groundCoordinates,this.centerPointOnGround=t.centerPointOnGround,this.pToRealworld=t.pToRealworld||null,this.pToImage=t.pToImage||null,this.projectionCenter=t.projectionCenter||null,this.projection=t.projection,this.averageHeight=null,this.terrainProvider=t.terrainProvider||null}return Object(r["a"])(e,[{key:"getAverageHeight",value:function(){return null!=this.averageHeight?this.averageHeight:0}},{key:"transformImage2RealWorld",value:function(e,t){var i=e;if(!this.camera)return this.transformNoCamera(i,!0,t);this.camera.hasRadial&&(i=this.camera.radialDistortionCoordinate(i,!0));var n=new Cesium.Cartesian3(i[0],this.size[1]-i[1],1),r=Cesium.Matrix3.multiplyByVector(this.pToRealworld,n,new Cesium.Cartesian3),a=t||this.getAverageHeight(),s=new Cesium.Cartesian3(this.centerPointOnGround[0],this.centerPointOnGround[1],a),o=Cesium.Cartesian3.subtract(this.projectionCenter,s,new Cesium.Cartesian3),l=-1*Cesium.Cartesian3.dot(Cesium.Cartesian3.UNIT_Z,o),c=Cesium.Cartesian3.dot(Cesium.Cartesian3.UNIT_Z,r),u=l/c,h=Cesium.Cartesian3.add(this.projectionCenter,Cesium.Cartesian3.multiplyByScalar(r,u,new Cesium.Cartesian3),new Cesium.Cartesian3);return[h.x,h.y,a]}},{key:"transformRealWorld2Image",value:function(e,t){if(!this.camera)return this.transformNoCamera(e,!1,t);var i=t||this.getAverageHeight(),n=new Cesium.Cartesian4(e[0],e[1],i,1),r=Cesium.Matrix4.multiplyByVector(this.pToImage,n,new Cesium.Cartesian4),a=[r.x/r.z,r.y/r.z],s=[a[0],this.size[1]-a[1]];return this.camera.radialDistortionCoordinate(s,!1)}},{key:"transformNoCamera",value:function(e,t,i){var n=[[0,0],[this.size[0],0],this.size,[0,this.size[1]]],r=Object(o["d"])(t?n:this.groundCoordinates,t?this.groundCoordinates:n,t,e,this.viewDirection),a=i||this.getAverageHeight();if(null===r||null==r.x||null==r.y){console.error("Real world coordinate could not be determined from footprint data, center will be returned");var s=[this.centerPointOnGround[0],this.centerPointOnGround[1]];return t&&s.push(a),s}var l=[r.x,r.y];return t&&l.push(a),l}},{key:"calculateImageAverageHeight",value:function(){var e=this;if(null===this.averageHeight){var t=(this.groundCoordinates[0][2]+this.groundCoordinates[1][2]+this.groundCoordinates[2][2]+this.groundCoordinates[3][2])/4;if(0===t&&this.terrainProvider)return Object(o["c"])(this.terrainProvider,[this.centerPointOnGround.slice()],this.projection).then((function(t){t[0]&&null!=t[0][2]&&(e.averageHeight=t[0][2])})).catch((function(){e.averageHeight=t}));this.averageHeight=t}return Promise.resolve()}},{key:"size",get:function(){return this.camera&&this.camera.size?this.camera.size:this.meta.size}},{key:"view",get:function(){return this.camera&&this.camera.view?this.camera.view:this.meta.getView(this.viewDirection)}}]),e}();t["a"]=l},,function(e,t,i){var n=i(42),r=i(28),a=i(187);e.exports=!n&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,i){var n=i(31),r=i(43),a=n.document,s=r(a)&&r(a.createElement);e.exports=function(e){return s?a.createElement(e):{}}},function(e,t,i){var n=i(189),r=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return r.call(e)}),e.exports=n.inspectSource},function(e,t,i){var n=i(31),r=i(146),a="__core-js_shared__",s=n[a]||r(a,{});e.exports=s},function(e,t,i){var n=i(44),r=i(585),a=i(98),s=i(39);e.exports=function(e,t){for(var i=r(t),o=s.f,l=a.f,c=0;cl)n(o,i=t[l++])&&(~a(c,i)||c.push(i));return c}},function(e,t,i){var n=i(150);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,i){var n,r,a=i(31),s=i(586),o=a.process,l=o&&o.versions,c=l&&l.v8;c?(n=c.split("."),r=n[0]+n[1]):s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(r=n[1]))),e.exports=r&&+r},function(e,t,i){var n=i(72),r=i(109),a="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?a.call(e,""):Object(e)}:Object},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,i){var n=i(110),r=i(197);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,i){var n=i(45),r=i(151),a="__core-js_shared__",s=n[a]||r(a,{});e.exports=s},function(e,t,i){var n=i(81),r=i(72),a=i(152);e.exports=!n&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,i){var n=i(82);e.exports=function(e,t){if(!n(e))return e;var i,r;if(t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;if("function"==typeof(i=e.valueOf)&&!n(r=i.call(e)))return r;if(!t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){var i=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++i+n).toString(36)}},function(e,t,i){var n=i(72);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t,i){var n,r=i(73),a=i(591),s=i(155),o=i(154),l=i(207),c=i(152),u=i(156),h=">",d="<",m="prototype",f="script",g=u("IE_PROTO"),y=function(){},p=function(e){return d+f+h+e+d+"/"+f+h},v=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e,t=c("iframe"),i="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(i),e=t.contentWindow.document,e.open(),e.write(p("document.F=Object")),e.close(),e.F},b=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}b=n?v(n):_();var e=s.length;while(e--)delete b[m][s[e]];return b()};o[g]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(y[m]=r(e),i=new y,y[m]=null,i[g]=e):i=b(),void 0===t?i:a(i,t)}},function(e,t,i){var n=i(204),r=i(155);e.exports=Object.keys||function(e){return n(e,r)}},function(e,t,i){var n=i(74),r=i(132),a=i(592).indexOf,s=i(154);e.exports=function(e,t){var i,o=r(e),l=0,c=[];for(i in o)!n(s,i)&&n(o,i)&&c.push(i);while(t.length>l)n(o,i=t[l++])&&(~a(c,i)||c.push(i));return c}},function(e,t,i){var n=i(206),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:i)(e)}},function(e,t,i){var n=i(95);e.exports=n("document","documentElement")},function(e,t,i){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!n.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,i){var n=i(72),r=/#|\.prototype\./,a=function(e,t){var i=o[s(e)];return i==c||i!=l&&("function"==typeof t?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,i){"use strict";var n,r,a,s=i(212),o=i(93),l=i(74),c=i(58),u=i(110),h=c("iterator"),d=!1,m=function(){return this};[].keys&&(a=[].keys(),"next"in a?(r=s(s(a)),r!==Object.prototype&&(n=r)):d=!0),void 0==n&&(n={}),u||l(n,h)||o(n,h,m),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},function(e,t,i){var n=i(74),r=i(213),a=i(156),s=i(601),o=a("IE_PROTO"),l=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=r(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,i){var n=i(195);e.exports=function(e){return Object(n(e))}},function(e,t,i){var n=i(45);e.exports=n.Promise},function(e,t,i){var n=i(134);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,r){return e.call(t,i,n,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,i){var n=i(73),r=i(134),a=i(58),s=a("species");e.exports=function(e,t){var i,a=n(e).constructor;return void 0===a||void 0==(i=n(a)[s])?t:r(i)}},function(e,t,i){var n,r,a,s=i(45),o=i(72),l=i(109),c=i(215),u=i(207),h=i(152),d=i(218),m=s.location,f=s.setImmediate,g=s.clearImmediate,y=s.process,p=s.MessageChannel,v=s.Dispatch,_=0,b={},L="onreadystatechange",w=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},M=function(e){return function(){w(e)}},k=function(e){w(e.data)},O=function(e){s.postMessage(e+"",m.protocol+"//"+m.host)};f&&g||(f=function(e){var t=[],i=1;while(arguments.length>i)t.push(arguments[i++]);return b[++_]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(_),_},g=function(e){delete b[e]},"process"==l(y)?n=function(e){y.nextTick(M(e))}:v&&v.now?n=function(e){v.now(M(e))}:p&&!d?(r=new p,a=r.port2,r.port1.onmessage=k,n=c(a.postMessage,a,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||o(O)||"file:"===m.protocol?n=L in h("script")?function(e){u.appendChild(h("script"))[L]=function(){u.removeChild(this),w(e)}}:function(e){setTimeout(M(e),0)}:(n=O,s.addEventListener("message",k,!1))),e.exports={set:f,clear:g}},function(e,t,i){var n=i(219);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,i){var n=i(95);e.exports=n("navigator","userAgent")||""},function(e,t,i){var n=i(73),r=i(82),a=i(221);e.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var i=a.f(e),s=i.resolve;return s(t),i.promise}},function(e,t,i){"use strict";var n=i(134),r=function(e){var t,i;this.promise=new e((function(e,n){if(void 0!==t||void 0!==i)throw TypeError("Bad Promise constructor");t=e,i=n})),this.resolve=n(t),this.reject=n(i)};e.exports.f=function(e){return new r(e)}},function(e,t,i){"use strict";var n=i(57).forEach,r=i(96);e.exports=r("forEach")?function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(e,t,i){var n=i(164);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,i){var n=i(32),r=n("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[r]=!1,"/./"[e](t)}catch(n){}}return!1}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,i){var n=i(42),r=i(121),a=i(70),s=i(138).f,o=function(e){return function(t){var i,o=a(t),l=r(o),c=l.length,u=0,h=[];while(c>u)i=l[u++],n&&!s.call(o,i)||h.push(e?[i,o[i]]:o[i]);return h}};e.exports={entries:o(!0),values:o(!1)}},function(e,t,i){var n=i(107),r=i(43),a=i(44),s=i(39).f,o=i(119),l=i(627),c=o("meta"),u=0,h=Object.isExtensible||function(){return!0},d=function(e){s(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},m=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!h(e))return"F";if(!t)return"E";d(e)}return e[c].objectID},f=function(e,t){if(!a(e,c)){if(!h(e))return!0;if(!t)return!1;d(e)}return e[c].weakData},g=function(e){return l&&y.REQUIRED&&h(e)&&!a(e,c)&&d(e),e},y=e.exports={REQUIRED:!1,fastKey:m,getWeakData:f,onFreeze:g};n[c]=!0},function(e,t,i){var n=i(40),r=i(229),a=i(41),s=i(120),o=i(170),l=i(375),c=function(e,t){this.stopped=e,this.result=t},u=e.exports=function(e,t,i,u,h){var d,m,f,g,y,p,v,_=s(t,i,u?2:1);if(h)d=e;else{if(m=o(e),"function"!=typeof m)throw TypeError("Target is not iterable");if(r(m)){for(f=0,g=a(e.length);g>f;f++)if(y=u?_(n(v=e[f])[0],v[1]):_(e[f]),y&&y instanceof c)return y;return new c(!1)}d=m.call(e)}p=d.next;while(!(v=p.call(d)).done)if(y=l(d,_,v.value,u),"object"==typeof y&&y&&y instanceof c)return y;return new c(!1)};u.stop=function(e){return new c(!0,e)}},function(e,t,i){var n=i(32),r=i(115),a=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[a]===e)}},function(e,t,i){var n=i(62);e.exports=function(e,t,i){for(var r in t)n(e,r,t[r],i);return e}},function(e,t,i){"use strict";var n,r,a,s=i(166),o=i(61),l=i(44),c=i(32),u=i(100),h=c("iterator"),d=!1,m=function(){return this};[].keys&&(a=[].keys(),"next"in a?(r=s(s(a)),r!==Object.prototype&&(n=r)):d=!0),void 0==n&&(n={}),u||l(n,h)||o(n,h,m),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},function(e,t,i){"use strict";var n=i(70),r=i(113),a=i(115),s=i(75),o=i(171),l="Array Iterator",c=s.set,u=s.getterFor(l);e.exports=o(Array,"Array",(function(e,t){c(this,{type:l,target:n(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,i=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,i){var n=i(32);t.f=n},function(e,t,i){"use strict";var n=i(63),r=i(102),a=i(41);e.exports=function(e){var t=n(this),i=a(t.length),s=arguments.length,o=r(s>1?arguments[1]:void 0,i),l=s>2?arguments[2]:void 0,c=void 0===l?i:r(l,i);while(c>o)t[o++]=e;return t}},function(e,t,i){"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n0;(a>>>=1)&&(t+=t))1&a&&(i+=t);return i}},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,i,a,s){var o=n(t),l=r[e][n(t)];return 2===o&&(l=l[i?0:1]),l.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],o=e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return i[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return o}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,r,a,s){var o=i(t),l=n[e][i(t)];return 2===o&&(l=l[r?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],s=e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return s}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return i[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},i=e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,i){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var i=e%10,n=e%100-i,r=e>=100?100:null;return e+(t[i]||t[n]||t[r])},week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t){var i=e.split("_");return t%10===1&&t%100!==11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function i(e,i,n){var r={ss:i?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:i?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:i?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===n?i?"хвіліна":"хвіліну":"h"===n?i?"гадзіна":"гадзіну":e+" "+t(r[n],+e)}var n=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:i,mm:i,h:i,hh:i,d:"дзень",dd:i,M:"месяц",MM:i,y:"год",yy:i},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":i>10&&i<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},i={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},n=e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,i){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},i={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},n=e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,i){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i){var n={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+r(n[i],e)}function i(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function n(e){return e>9?n(e%10):e}function r(e,t){return 2===t?a(e):e}function a(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var s=e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:i},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){var t=1===e?"añ":"vet";return e+t},week:{dow:1,doy:4}});return s}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i){var n=e+" ";switch(i){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",n;case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",n;case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",n;case"dd":return n+=1===e?"dan":"dana",n;case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",n;case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",n}}var i=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var i=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(i="a"),e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),i="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),n=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],r=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!==~~(e/10)}function s(e,t,i,n){var r=e+" ";switch(i){case"s":return t||n?"pár sekund":"pár sekundami";case"ss":return t||n?r+(a(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?r+(a(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?r+(a(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?r+(a(e)?"dny":"dní"):r+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?r+(a(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?r+(a(e)?"roky":"let"):r+"lety"}}var o=e.defineLocale("cs",{months:t,monthsShort:i,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,i="",n=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?i=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(i=n[t]),e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[i][0]:r[i][1]}var i=e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[i][0]:r[i][1]}var i=e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[i][0]:r[i][1]}var i=e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],i=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],n=e.defineLocale("dv",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,i){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}var i=e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"===typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,i){return e>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,i){var n=this._calendarEl[e],r=i&&i.hours();return t(n)&&(n=n.apply(i)),n.replace("{}",r%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,i){return e>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[i][2]?r[i][2]:r[i][1]:n?r[i][0]:r[i][1]}var i=e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},i={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},n=e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,i){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return i[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),i=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function n(e,t,i,n){var a="";switch(i){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"ss":return n?"sekunnin":"sekuntia";case"m":return n?"minuutin":"minuutti";case"mm":a=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":a=n?"tunnin":"tuntia";break;case"d":return n?"päivän":"päivä";case"dd":a=n?"päivän":"päivää";break;case"M":return n?"kuukauden":"kuukausi";case"MM":a=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":a=n?"vuoden":"vuotta";break}return a=r(e,n)+" "+a,a}function r(e,n){return e<10?n?i[e]:t[e]:e}var a=e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),n=e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],i=["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],n=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],r=["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],a=["Do","Lu","Má","Ce","Dé","hA","Sa"],s=e.defineLocale("ga",{months:t,monthsShort:i,monthsParseExact:!0,weekdays:n,weekdaysShort:r,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return s}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],i=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],n=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],r=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],s=e.defineLocale("gd",{months:t,monthsShort:i,monthsParseExact:!0,weekdays:n,weekdaysShort:r,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return s}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?r[i][0]:r[i][1]}var i=e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},i={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},n=e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10===0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,i){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?i?'לפנה"צ':"לפני הצהריים":e<18?i?'אחה"צ':"אחרי הצהריים":"בערב"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i){var n=e+" ";switch(i){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",n;case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",n;case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",n;case"dd":return n+=1===e?"dan":"dana",n;case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",n;case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",n}}var i=e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function i(e,t,i,n){var r=e;switch(i){case"s":return n||t?"néhány másodperc":"néhány másodperce";case"ss":return r+(n||t)?" másodperc":" másodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return r+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" óra":" órája");case"hh":return r+(n||t?" óra":" órája");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return r+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" hónap":" hónapja");case"MM":return r+(n||t?" hónap":" hónapja");case"y":return"egy"+(n||t?" év":" éve");case"yy":return r+(n||t?" év":" éve")}return""}function n(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}var r=e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,i){return e<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e){return e%100===11||e%10!==1}function i(e,i,n,r){var a=e+" ";switch(n){case"s":return i||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(i||r?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return i?"mínúta":"mínútu";case"mm":return t(e)?a+(i||r?"mínútur":"mínútum"):i?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(i||r?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return i?"dagur":r?"dag":"degi";case"dd":return t(e)?i?a+"dagar":a+(r?"daga":"dögum"):i?a+"dagur":a+(r?"dag":"degi");case"M":return i?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?i?a+"mánuðir":a+(r?"mánuði":"mánuðum"):i?a+"mánuður":a+(r?"mánuð":"mánuði");case"y":return i||r?"ár":"ári";case"yy":return t(e)?a+(i||r?"ár":"árum"):a+(i||r?"ár":"ári")}}var n=e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,i){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},i=e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var i=e%10,n=e>=100?100:null;return e+(t[e]||t[i]||t[n])},week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},i={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},n=e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,i){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},i={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},n=e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,i){return e<12?"오전":"오후"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],r=e.defineLocale("ku",{months:n,monthsShort:n,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,i){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return i[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return r}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},i=e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var i=e%10,n=e>=100?100:null;return e+(t[e]||t[i]||t[n])},week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[i][0]:r[i][1]}function i(e){var t=e.substr(0,e.indexOf(" "));return r(t)?"a "+e:"an "+e}function n(e){var t=e.substr(0,e.indexOf(" "));return r(t)?"viru "+e:"virun "+e}function r(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10,i=e/10;return r(0===t?i:t)}if(e<1e4){while(e>=10)e/=10;return r(e)}return e/=1e3,r(e)}var a=e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:i,past:n,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,i){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function i(e,t,i,n){return t?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"}function n(e,t,i,n){return t?a(i)[0]:n?a(i)[1]:a(i)[2]}function r(e){return e%10===0||e>10&&e<20}function a(e){return t[e].split("_")}function s(e,t,i,s){var o=e+" ";return 1===e?o+n(e,t,i[0],s):t?o+(r(e)?a(i)[1]:a(i)[0]):s?o+a(i)[1]:o+(r(e)?a(i)[1]:a(i)[2])}var o=e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:i,ss:s,m:n,mm:s,h:n,hh:s,d:n,dd:s,M:n,MM:s,y:n,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return o}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function i(e,t,i){return i?t%10===1&&t%100!==11?e[2]:e[3]:t%10===1&&t%100!==11?e[0]:e[1]}function n(e,n,r){return e+" "+i(t[r],e,n)}function r(e,n,r){return i(t[r],e,n)}function a(e,t){return t?"dažas sekundes":"dažām sekundēm"}var s=e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:a,ss:n,m:r,mm:n,h:r,hh:n,d:r,dd:n,M:r,MM:n,y:r,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,n){var r=t.words[n];return 1===n.length?i?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}},i=e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":i>10&&i<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,i){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){switch(i){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}var i=e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,i){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function n(e,t,i,n){var r="";if(t)switch(i){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे";break}else switch(i){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां";break}return r.replace(/%d/i,e)}var r=e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return r}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},i={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},n=e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,i){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},i={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},n=e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function n(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function r(e,t,i){var r=e+" ";switch(i){case"ss":return r+(n(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(n(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(n(e)?"godziny":"godzin");case"MM":return r+(n(e)?"miesiące":"miesięcy");case"yy":return r+(n(e)?"lata":"lat")}}var a=e.defineLocale("pl",{months:function(e,n){return e?""===n?"("+i[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(n)?i[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i){var n={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},r=" ";return(e%100>=20||e>=100&&e%100===0)&&(r=" de "),e+r+n[i]}var i=e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t){var i=e.split("_");return t%10===1&&t%100!==11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function i(e,i,n){var r={ss:i?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:i?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===n?i?"минута":"минуту":e+" "+t(r[n],+e)}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],r=e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:i,m:i,mm:i,h:"час",hh:i,d:"день",dd:i,M:"месяц",MM:i,y:"год",yy:i},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}});return r}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],i=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],n=e.defineLocale("sd",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,i){return e>11?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),i="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function n(e){return e>1&&e<5}function r(e,t,i,r){var a=e+" ";switch(i){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?a+(n(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?a+(n(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(n(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?a+(n(e)?"dni":"dní"):a+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?a+(n(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?a+(n(e)?"roky":"rokov"):a+"rokmi"}}var a=e.defineLocale("sk",{months:t,monthsShort:i,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t,i,n){var r=e+" ";switch(i){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===e?t?"sekundo":"sekundi":2===e?t||n?"sekundi":"sekundah":e<5?t||n?"sekunde":"sekundah":"sekund",r;case"m":return t?"ena minuta":"eno minuto";case"mm":return r+=1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami",r;case"h":return t?"ena ura":"eno uro";case"hh":return r+=1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami",r;case"d":return t||n?"en dan":"enim dnem";case"dd":return r+=1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi",r;case"M":return t||n?"en mesec":"enim mesecem";case"MM":return r+=1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci",r;case"y":return t||n?"eno leto":"enim letom";case"yy":return r+=1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti",r}}var i=e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,i){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,n){var r=t.words[n];return 1===n.length?i?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}},i=e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,n){var r=t.words[n];return 1===n.length?i?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}},i=e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,i){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"e":1===t||2===t?"a":"e";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},i={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},n=e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,i){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},i=e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var i=e%10,n=e>=100?100:null;return e+(t[e]||t[i]||t[n])},week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,i){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq",t}function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret",t}function r(e,t,i,n){var r=a(e);switch(i){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function a(e){var i=Math.floor(e%1e3/100),n=Math.floor(e%100/10),r=e%10,a="";return i>0&&(a+=t[i]+"vatlh"),n>0&&(a+=(""!==a?" ":"")+t[n]+"maH"),r>0&&(a+=(""!==a?" ":"")+t[r]),""===a?"pagh":a}var s=e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:i,past:n,s:"puS lup",ss:r,m:"wa’ tup",mm:r,h:"wa’ rep",hh:r,d:"wa’ jaj",dd:r,M:"wa’ jar",MM:r,y:"wa’ DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},i=e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,i){switch(i){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var n=e%10,r=e%100-n,a=e>=100?100:null;return e+(t[n]||t[r]||t[a])}},week:{dow:1,doy:7}});return i}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,i){return e>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function i(e,t,i,n){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return n||t?r[i][0]:r[i][1]}return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"يېرىم كېچە":n<900?"سەھەر":n<1130?"چۈشتىن بۇرۇن":n<1230?"چۈش":n<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";function t(e,t){var i=e.split("_");return t%10===1&&t%100!==11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function i(e,i,n){var r={ss:i?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:i?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:i?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===n?i?"хвилина":"хвилину":"h"===n?i?"година":"годину":e+" "+t(r[n],+e)}function n(e,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};if(!0===e)return i["nominative"].slice(1,7).concat(i["nominative"].slice(0,1));if(!e)return i["nominative"];var n=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return i[n][e.day()]}function r(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var a=e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:n,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:i,m:i,mm:i,h:"годину",hh:i,d:"день",dd:i,M:"місяць",MM:i,y:"рік",yy:i},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});return a}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],i=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],n=e.defineLocale("ur",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return n}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,i=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},function(e,t,i){(function(e,t){t(i(6))})(0,(function(e){"use strict";var t=e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(77);function r(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function a(e){if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function s(e){if(e.length>1&&n.isNumber(e[0])&&n.isNumber(e[1]))return!0;if(Array.isArray(e[0])&&e[0].length)return s(e[0]);throw new Error("coordinates must only contain numbers")}function o(e,t,i){if(!t||!i)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+i+": must be a "+t+", given "+e.type)}function l(e,t,i){if(!e)throw new Error("No feature passed");if(!i)throw new Error(".featureOf() requires a name");if(!e||"Feature"!==e.type||!e.geometry)throw new Error("Invalid input to "+i+", Feature with geometry required");if(!e.geometry||e.geometry.type!==t)throw new Error("Invalid input to "+i+": must be a "+t+", given "+e.geometry.type)}function c(e,t,i){if(!e)throw new Error("No featureCollection passed");if(!i)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+i+", FeatureCollection required");for(var n=0,r=e.features;nc||m>u||f>h)return l=r,c=i,u=m,h=f,void(s=0);var g=n.lineString([l,r],e.properties);if(!1===t(g,i,a,f,s))return!1;s++,l=r}))&&void 0}}}))}function y(e,t,i){var n=i,r=!1;return g(e,(function(e,a,s,o,l){n=!1===r&&void 0===i?e:t(n,e,a,s,o,l),r=!0})),n}function p(e,t){if(!e)throw new Error("geojson is required");m(e,(function(e,i,r){if(null!==e.geometry){var a=e.geometry.type,s=e.geometry.coordinates;switch(a){case"LineString":if(!1===t(e,i,r,0,0))return!1;break;case"Polygon":for(var o=0;ol)r.f(e,i=n[l++],t[i]);return e}},function(e,t,i){var n=i(28);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,i){"use strict";var n=i(21),r=i(31),a=i(127),s=i(62),o=i(227),l=i(228),c=i(135),u=i(43),h=i(28),d=i(376),m=i(103),f=i(141);e.exports=function(e,t,i){var g=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),p=g?"set":"add",v=r[e],_=v&&v.prototype,b=v,L={},w=function(e){var t=_[e];s(_,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:function(e,i){return t.call(this,0===e?0:e,i),this})};if(a(e,"function"!=typeof v||!(y||_.forEach&&!h((function(){(new v).entries().next()})))))b=i.getConstructor(t,e,g,p),o.REQUIRED=!0;else if(a(e,!0)){var M=new b,k=M[p](y?{}:-0,1)!=M,O=h((function(){M.has(1)})),T=d((function(e){new v(e)})),S=!y&&h((function(){var e=new v,t=5;while(t--)e[p](t,t);return!e.has(-0)}));T||(b=t((function(t,i){c(t,b,e);var n=f(new v,t,b);return void 0!=i&&l(i,n[p],n,g),n})),b.prototype=_,_.constructor=b),(O||S)&&(w("delete"),w("has"),g&&w("get")),(S||k)&&w(p),y&&_.clear&&delete _.clear}return L[e]=b,n({global:!0,forced:b!=v},L),m(b,e),y||i.setStrong(b,e,g),b}},function(e,t,i){var n=i(40);e.exports=function(e,t,i,r){try{return r?t(n(i)[0],i[1]):t(i)}catch(s){var a=e["return"];throw void 0!==a&&n(a.call(e)),s}}},function(e,t,i){var n=i(32),r=n("iterator"),a=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){a=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!a)return!1;var i=!1;try{var n={};n[r]=function(){return{next:function(){return{done:i=!0}}}},e(n)}catch(l){}return i}},function(e,t,i){"use strict";var n=i(39).f,r=i(97),a=i(230),s=i(120),o=i(135),l=i(228),c=i(171),u=i(182),h=i(42),d=i(227).fastKey,m=i(75),f=m.set,g=m.getterFor;e.exports={getConstructor:function(e,t,i,c){var u=e((function(e,n){o(e,u,t),f(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),h||(e.size=0),void 0!=n&&l(n,e[c],e,i)})),m=g(t),y=function(e,t,i){var n,r,a=m(e),s=p(e,t);return s?s.value=i:(a.last=s={index:r=d(t,!0),key:t,value:i,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=s),n&&(n.next=s),h?a.size++:e.size++,"F"!==r&&(a.index[r]=s)),e},p=function(e,t){var i,n=m(e),r=d(t);if("F"!==r)return n.index[r];for(i=n.first;i;i=i.next)if(i.key==t)return i};return a(u.prototype,{clear:function(){var e=this,t=m(e),i=t.index,n=t.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete i[n.index],n=n.next;t.first=t.last=void 0,h?t.size=0:e.size=0},delete:function(e){var t=this,i=m(t),n=p(t,e);if(n){var r=n.next,a=n.previous;delete i.index[n.index],n.removed=!0,a&&(a.next=r),r&&(r.previous=a),i.first==n&&(i.first=r),i.last==n&&(i.last=a),h?i.size--:t.size--}return!!n},forEach:function(e){var t,i=m(this),n=s(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:i.first){n(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!p(this,e)}}),a(u.prototype,i?{get:function(e){var t=p(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),h&&n(u.prototype,"size",{get:function(){return m(this).size}}),u},setStrong:function(e,t,i){var n=t+" Iterator",r=g(t),a=g(n);c(e,t,(function(e,t){f(this,{type:n,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,i=e.last;while(i&&i.removed)i=i.previous;return e.target&&(e.last=i=i?i.next:e.state.first)?"keys"==t?{value:i.key,done:!1}:"values"==t?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),u(t)}}},function(e,t,i){"use strict";var n=i(231).IteratorPrototype,r=i(97),a=i(90),s=i(103),o=i(115),l=function(){return this};e.exports=function(e,t,i){var c=t+" Iterator";return e.prototype=r(n,{next:a(1,i)}),s(e,c,!1,!0),o[c]=l,e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";i(33),i(12);var n=i(1),r=i(0),a=i(54),s=function(){function e(t){Object(n["a"])(this,e),this.name=t.name,this.principalPoint=t["principal-point"],this.pixelSize=t["pixel-size"],this.radialE2F=t["radial-distorsion-expected-2-found"],this.radialF2E=t["radial-distorsion-found-2-expected"],this.hasRadial=!!(this.pixelSize&&this.radialE2F&&this.radialF2E),this.size=t.size||null,this.view=t.view||null}return Object(r["a"])(e,[{key:"radialDistortionCoordinate",value:function(e,t){if(this.hasRadial){var i=t?this.radialF2E:this.radialE2F,n=Object(a["a"])(this.principalPoint,e)*this.pixelSize[0];if(0===n)return e.slice();for(var r=e[0]-this.principalPoint[0],s=e[1]-this.principalPoint[1],o=0,l=0;l=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,i){var n=i(58),r=i(202),a=i(94),s=n("unscopables"),o=Array.prototype;void 0==o[s]&&a.f(o,s,{configurable:!0,value:r(null)}),e.exports=function(e){o[s][e]=!0}},function(e,t,i){var n=i(201);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,i){var n=i(81),r=i(94),a=i(73),s=i(203);e.exports=n?Object.defineProperties:function(e,t){a(e);var i,n=s(t),o=n.length,l=0;while(o>l)r.f(e,i=n[l++],t[i]);return e}},function(e,t,i){var n=i(132),r=i(205),a=i(593),s=function(e){return function(t,i,s){var o,l=n(t),c=r(l.length),u=a(s,c);if(e&&i!=i){while(c>u)if(o=l[u++],o!=o)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},function(e,t,i){var n=i(206),r=Math.max,a=Math.min;e.exports=function(e,t){var i=n(e);return i<0?r(i+t,0):a(i,t)}},function(e,t,i){var n=i(45);e.exports=n},function(e,t,i){var n=i(45),r=i(158),a=n.WeakMap;e.exports="function"===typeof a&&/native code/.test(r(a))},function(e,t,i){"use strict";var n=i(133),r=i(600),a=i(212),s=i(602),o=i(160),l=i(93),c=i(112),u=i(58),h=i(110),d=i(111),m=i(211),f=m.IteratorPrototype,g=m.BUGGY_SAFARI_ITERATORS,y=u("iterator"),p="keys",v="values",_="entries",b=function(){return this};e.exports=function(e,t,i,u,m,L,w){r(i,t,u);var M,k,O,T=function(e){if(e===m&&I)return I;if(!g&&e in j)return j[e];switch(e){case p:return function(){return new i(this,e)};case v:return function(){return new i(this,e)};case _:return function(){return new i(this,e)}}return function(){return new i(this)}},S=t+" Iterator",C=!1,j=e.prototype,E=j[y]||j["@@iterator"]||m&&j[m],I=!g&&E||T(m),D="Array"==t&&j.entries||E;if(D&&(M=a(D.call(new e)),f!==Object.prototype&&M.next&&(h||a(M)===f||(s?s(M,f):"function"!=typeof M[y]&&l(M,y,b)),o(M,S,!0,!0),h&&(d[S]=b))),m==v&&E&&E.name!==v&&(C=!0,I=function(){return E.call(this)}),h&&!w||j[y]===I||l(j,y,I),d[t]=I,m)if(k={values:T(v),keys:L?I:T(p),entries:T(_)},w)for(O in k)(g||C||!(O in j))&&c(j,O,k[O]);else n({target:t,proto:!0,forced:g||C},k);return k}},function(e,t,i){var n=i(74),r=i(598),a=i(159),s=i(94);e.exports=function(e,t){for(var i=r(t),o=s.f,l=a.f,c=0;c=51&&/native code/.test(R))return!1;var t=R.resolve(1),i=function(e){e((function(){}),(function(){}))},n=t.constructor={};return n[A]=i,!(t.then((function(){}))instanceof i)})),ie=te||!w((function(e){R.all(e)["catch"]((function(){}))})),ne=function(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t},re=function(e,t,i){if(!t.notified){t.notified=!0;var n=t.reactions;O((function(){var r=t.value,a=t.state==Q,s=0;while(n.length>s){var o,l,c,u=n[s++],h=a?u.ok:u.fail,d=u.resolve,m=u.reject,f=u.domain;try{h?(a||(t.rejection===ee&&le(e,t),t.rejection=$),!0===h?o=r:(f&&f.enter(),o=h(r),f&&(f.exit(),c=!0)),o===u.promise?m(H("Promise-chain cycle")):(l=ne(o))?l.call(o,d,m):d(o)):m(r)}catch(g){f&&!c&&f.exit(),m(g)}}t.reactions=[],t.notified=!1,i&&!t.rejection&&se(e,t)}))}},ae=function(e,t,i){var n,r;q?(n=G.createEvent("Event"),n.promise=t,n.reason=i,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:i},(r=c["on"+e])?r(n):e===J&&S("Unhandled promise rejection",i)},se=function(e,t){k.call(c,(function(){var i,n=t.value,r=oe(t);if(r&&(i=j((function(){W?z.emit("unhandledRejection",n,e):ae(J,e,n)})),t.rejection=W||oe(t)?ee:$,i.error))throw i.value}))},oe=function(e){return e.rejection!==$&&!e.parent},le=function(e,t){k.call(c,(function(){W?z.emit("rejectionHandled",e):ae(K,e,t.value)}))},ce=function(e,t,i,n){return function(r){e(t,i,r,n)}},ue=function(e,t,i,n){t.done||(t.done=!0,n&&(t=n),t.value=i,t.state=X,re(e,t,!0))},he=function(e,t,i,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===i)throw H("Promise can't be resolved itself");var r=ne(i);r?O((function(){var n={done:!1};try{r.call(i,ce(he,e,n,t),ce(ue,e,n,t))}catch(a){ue(e,n,a,t)}})):(t.value=i,t.state=Q,re(e,t,!1))}catch(a){ue(e,{done:!1},a,t)}}};te&&(R=function(e){v(this,R,x),p(e),n.call(this);var t=Y(this);try{e(ce(he,this,t),ce(ue,this,t))}catch(i){ue(this,t,i)}},n=function(e){N(this,{type:x,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},n.prototype=m(R.prototype,{then:function(e,t){var i=F(this),n=V(M(this,R));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=W?z.domain:void 0,i.parent=!0,i.reactions.push(n),i.state!=Z&&re(this,i,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new n,t=Y(e);this.promise=e,this.resolve=ce(he,e,t),this.reject=ce(ue,e,t)},C.f=V=function(e){return e===R||e===a?new r(e):U(e)},l||"function"!=typeof h||(s=h.prototype.then,d(h.prototype,"then",(function(e,t){var i=this;return new R((function(e,t){s.call(i,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof B&&o({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return T(R,B.apply(c,arguments))}}))),o({global:!0,wrap:!0,forced:te},{Promise:R}),f(R,x,!1,!0),g(x),a=u(x),o({target:x,stat:!0,forced:te},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),o({target:x,stat:!0,forced:l||te},{resolve:function(e){return T(l&&this===a?R:this,e)}}),o({target:x,stat:!0,forced:ie},{all:function(e){var t=this,i=V(t),n=i.resolve,r=i.reject,a=j((function(){var i=p(t.resolve),a=[],s=0,o=1;L(e,(function(e){var l=s++,c=!1;a.push(void 0),o++,i.call(t,e).then((function(e){c||(c=!0,a[l]=e,--o||n(a))}),r)})),--o||n(a)}));return a.error&&r(a.value),i.promise},race:function(e){var t=this,i=V(t),n=i.reject,r=j((function(){var r=p(t.resolve);L(e,(function(e){r.call(t,e).then(i.resolve,n)}))}));return r.error&&n(r.value),i.promise}})},function(e,t,i){var n=i(112);e.exports=function(e,t,i){for(var r in t)n(e,r,t[r],i);return e}},function(e,t,i){"use strict";var n=i(95),r=i(94),a=i(58),s=i(81),o=a("species");e.exports=function(e){var t=n(e),i=r.f;s&&t&&!t[o]&&i(t,o,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,i){if(!(e instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return e}},function(e,t,i){var n=i(73),r=i(609),a=i(205),s=i(215),o=i(610),l=i(613),c=function(e,t){this.stopped=e,this.result=t},u=e.exports=function(e,t,i,u,h){var d,m,f,g,y,p,v,_=s(t,i,u?2:1);if(h)d=e;else{if(m=o(e),"function"!=typeof m)throw TypeError("Target is not iterable");if(r(m)){for(f=0,g=a(e.length);g>f;f++)if(y=u?_(n(v=e[f])[0],v[1]):_(e[f]),y&&y instanceof c)return y;return new c(!1)}d=m.call(e)}p=d.next;while(!(v=p.call(d)).done)if(y=l(d,_,v.value,u),"object"==typeof y&&y&&y instanceof c)return y;return new c(!1)};u.stop=function(e){return new c(!0,e)}},function(e,t,i){var n=i(58),r=i(111),a=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[a]===e)}},function(e,t,i){var n=i(611),r=i(111),a=i(58),s=a("iterator");e.exports=function(e){if(void 0!=e)return e[s]||e["@@iterator"]||r[n(e)]}},function(e,t,i){var n=i(612),r=i(109),a=i(58),s=a("toStringTag"),o="Arguments"==r(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(i){}};e.exports=n?r:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=l(t=Object(e),s))?i:o?r(t):"Object"==(n=r(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,i){var n=i(58),r=n("toStringTag"),a={};a[r]="z",e.exports="[object z]"===String(a)},function(e,t,i){var n=i(73);e.exports=function(e,t,i,r){try{return r?t(n(i)[0],i[1]):t(i)}catch(s){var a=e["return"];throw void 0!==a&&n(a.call(e)),s}}},function(e,t,i){var n=i(58),r=n("iterator"),a=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){a=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!a)return!1;var i=!1;try{var n={};n[r]=function(){return{next:function(){return{done:i=!0}}}},e(n)}catch(l){}return i}},function(e,t,i){var n,r,a,s,o,l,c,u,h=i(45),d=i(159).f,m=i(109),f=i(217).set,g=i(218),y=h.MutationObserver||h.WebKitMutationObserver,p=h.process,v=h.Promise,_="process"==m(p),b=d(h,"queueMicrotask"),L=b&&b.value;L||(n=function(){var e,t;_&&(e=p.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(i){throw r?s():a=void 0,i}}a=void 0,e&&e.enter()},_?s=function(){p.nextTick(n)}:y&&!g?(o=!0,l=document.createTextNode(""),new y(n).observe(l,{characterData:!0}),s=function(){l.data=o=!o}):v&&v.resolve?(c=v.resolve(void 0),u=c.then,s=function(){u.call(c,n)}):s=function(){f.call(h,n)}),e.exports=L||function(e){var t={fn:e,next:void 0};a&&(a.next=t),r||(r=t,s()),a=t}},function(e,t,i){var n=i(45);e.exports=function(e,t){var i=n.console;i&&i.error&&(1===arguments.length?i.error(e):i.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,i){var n,r,a=i(45),s=i(219),o=a.process,l=o&&o.versions,c=l&&l.v8;c?(n=c.split("."),r=n[0]+n[1]):s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(r=n[1]))),e.exports=r&&+r},function(e,t,i){var n=i(133),r=i(620);n({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,i){"use strict";var n=i(81),r=i(72),a=i(203),s=i(209),o=i(208),l=i(213),c=i(194),u=Object.assign,h=Object.defineProperty;e.exports=!u||r((function(){if(n&&1!==u({b:1},u(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol(),r="abcdefghijklmnopqrst";return e[i]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[i]||a(u({},t)).join("")!=r}))?function(e,t){var i=l(e),r=arguments.length,u=1,h=s.f,d=o.f;while(r>u){var m,f=c(arguments[u++]),g=h?a(f).concat(h(f)):a(f),y=g.length,p=0;while(y>p)m=g[p++],n&&!d.call(f,m)||(i[m]=f[m])}return i}:u},function(e,t,i){"use strict";var n=i(133),r=i(110),a=i(214),s=i(72),o=i(95),l=i(216),c=i(220),u=i(112),h=!!a&&s((function(){a.prototype["finally"].call({then:function(){}},(function(){}))}));n({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(e){var t=l(this,o("Promise")),i="function"==typeof e;return this.then(i?function(i){return c(t,e()).then((function(){return i}))}:e,i?function(i){return c(t,e()).then((function(){throw i}))}:e)}}),r||"function"!=typeof a||a.prototype["finally"]||u(a.prototype,"finally",o("Promise").prototype["finally"])},function(e,t,i){var n=i(43);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,i){var n=i(101);e.exports=n("document","documentElement")},function(e,t,i){var n=i(31),r=n.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,i){"use strict";var n=i(167),r=i(143);e.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,i){var n=i(31),r=i(162).trim,a=i(163),s=n.parseFloat,o=1/s(a+"-0")!==-1/0;e.exports=o?function(e){var t=r(String(e)),i=s(t);return 0===i&&"-"==t.charAt(0)?-0:i}:s},function(e,t,i){var n=i(28);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,i){var n=i(70),r=i(91).f,a={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],o=function(e){try{return r(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==a.call(e)?o(e):r(n(e))}},function(e,t,i){var n=i(177),r=i(44),a=i(233),s=i(39).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});r(t,e)||s(t,e,{value:a.f(e)})}},function(e,t,i){var n=i(179),r=i(63),a=i(124),s=i(41),o=function(e){return function(t,i,o,l){n(i);var c=r(t),u=a(c),h=s(c.length),d=e?h-1:0,m=e?-1:1;if(o<2)while(1){if(d in u){l=u[d],d+=m;break}if(d+=m,e?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:h>d;d+=m)d in u&&(l=i(l,u[d],d,c));return l}};e.exports={left:o(!1),right:o(!0)}},function(e,t,i){"use strict";var n=i(59),r=i(235),a=i(633),s=i(172);function o(e){var t=new a(e),i=r(a.prototype.request,t);return n.extend(i,a.prototype,t),n.extend(i,t),i}var l=o(s);l.Axios=a,l.create=function(e){return o(n.merge(s,e))},l.Cancel=i(240),l.CancelToken=i(647),l.isCancel=i(239),l.all=function(e){return Promise.all(e)},l.spread=i(648),e.exports=l,e.exports.default=l},function(e,t){ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,i){"use strict";var n=i(172),r=i(59),a=i(642),s=i(643);function o(e){this.defaults=e,this.interceptors={request:new a,response:new a}}o.prototype.request=function(e){"string"===typeof e&&(e=r.merge({url:arguments[0]},arguments[1])),e=r.merge(n,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[s,void 0],i=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)i=i.then(t.shift(),t.shift());return i},r.forEach(["delete","get","head","options"],(function(e){o.prototype[e]=function(t,i){return this.request(r.merge(i||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){o.prototype[e]=function(t,i,n){return this.request(r.merge(n||{},{method:e,url:t,data:i}))}})),e.exports=o},function(e,t,i){(function(e){function i(e,t){for(var i=0,n=e.length-1;n>=0;n--){var r=e[n];"."===r?e.splice(n,1):".."===r?(e.splice(n,1),i++):i&&(e.splice(n,1),i--)}if(t)for(;i--;i)e.unshift("..");return e}function n(e){"string"!==typeof e&&(e+="");var t,i=0,n=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){i=t+1;break}}else-1===n&&(r=!1,n=t+1);return-1===n?"":e.slice(i,n)}function r(e,t){if(e.filter)return e.filter(t);for(var i=[],n=0;n=-1&&!n;a--){var s=a>=0?arguments[a]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,n="/"===s.charAt(0))}return t=i(r(t.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),s="/"===a(e,-1);return e=i(r(e.split("/"),(function(e){return!!e})),!n).join("/"),e||n||(e="."),e&&s&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,i){function n(e){for(var t=0;t=0;i--)if(""!==e[i])break;return t>i?[]:e.slice(t,i-t+1)}e=t.resolve(e).substr(1),i=t.resolve(i).substr(1);for(var r=n(e.split("/")),a=n(i.split("/")),s=Math.min(r.length,a.length),o=s,l=0;l=1;--a)if(t=e.charCodeAt(a),47===t){if(!r){n=a;break}}else r=!1;return-1===n?i?"/":".":i&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var i=n(e);return t&&i.substr(-1*t.length)===t&&(i=i.substr(0,i.length-t.length)),i},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,i=0,n=-1,r=!0,a=0,s=e.length-1;s>=0;--s){var o=e.charCodeAt(s);if(47!==o)-1===n&&(r=!1,n=s+1),46===o?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!r){i=s+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===i+1?"":e.slice(t,n)};var a="b"==="ab".substr(-1)?function(e,t,i){return e.substr(t,i)}:function(e,t,i){return t<0&&(t=e.length+t),e.substr(t,i)}}).call(this,i(236))},function(e,t,i){"use strict";var n=i(59);e.exports=function(e,t){n.forEach(e,(function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])}))}},function(e,t,i){"use strict";var n=i(238);e.exports=function(e,t,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?t(n("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},function(e,t,i){"use strict";e.exports=function(e,t,i,n,r){return e.config=t,i&&(e.code=i),e.request=n,e.response=r,e}},function(e,t,i){"use strict";var n=i(59);function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var a;if(i)a=i(t);else if(n.isURLSearchParams(t))a=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),a=s.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,i){"use strict";var n=i(59),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,i,a,s={};return e?(n.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=n.trim(e.substr(0,a)).toLowerCase(),i=n.trim(e.substr(a+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([i]):s[t]?s[t]+", "+i:i}})),s):s}},function(e,t,i){"use strict";var n=i(59);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(e){var n=e;return t&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=r(window.location.href),function(t){var i=n.isString(t)?r(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(e,t,i){"use strict";var n=i(59);e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,i,r,a,s){var o=[];o.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),n.isString(r)&&o.push("path="+r),n.isString(a)&&o.push("domain="+a),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,i){"use strict";var n=i(59);function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},function(e,t,i){"use strict";var n=i(59),r=i(644),a=i(239),s=i(172),o=i(645),l=i(646);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){c(e),e.baseURL&&!o(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return c(e),t.data=r(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,i){"use strict";var n=i(59);e.exports=function(e,t,i){return n.forEach(i,(function(i){e=i(e,t)})),e}},function(e,t,i){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,i){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,i){"use strict";var n=i(240);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var i=this;e((function(e){i.reason||(i.reason=new n(e),t(i.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},function(e,t,i){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,i){var n=i(80);e.exports=function(e){if("number"!=typeof e&&"Number"!=n(e))throw TypeError("Incorrect invocation");return+e}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,i){var n={"./af":242,"./af.js":242,"./ar":243,"./ar-dz":244,"./ar-dz.js":244,"./ar-kw":245,"./ar-kw.js":245,"./ar-ly":246,"./ar-ly.js":246,"./ar-ma":247,"./ar-ma.js":247,"./ar-sa":248,"./ar-sa.js":248,"./ar-tn":249,"./ar-tn.js":249,"./ar.js":243,"./az":250,"./az.js":250,"./be":251,"./be.js":251,"./bg":252,"./bg.js":252,"./bm":253,"./bm.js":253,"./bn":254,"./bn.js":254,"./bo":255,"./bo.js":255,"./br":256,"./br.js":256,"./bs":257,"./bs.js":257,"./ca":258,"./ca.js":258,"./cs":259,"./cs.js":259,"./cv":260,"./cv.js":260,"./cy":261,"./cy.js":261,"./da":262,"./da.js":262,"./de":263,"./de-at":264,"./de-at.js":264,"./de-ch":265,"./de-ch.js":265,"./de.js":263,"./dv":266,"./dv.js":266,"./el":267,"./el.js":267,"./en-SG":268,"./en-SG.js":268,"./en-au":269,"./en-au.js":269,"./en-ca":270,"./en-ca.js":270,"./en-gb":271,"./en-gb.js":271,"./en-ie":272,"./en-ie.js":272,"./en-il":273,"./en-il.js":273,"./en-nz":274,"./en-nz.js":274,"./eo":275,"./eo.js":275,"./es":276,"./es-do":277,"./es-do.js":277,"./es-us":278,"./es-us.js":278,"./es.js":276,"./et":279,"./et.js":279,"./eu":280,"./eu.js":280,"./fa":281,"./fa.js":281,"./fi":282,"./fi.js":282,"./fo":283,"./fo.js":283,"./fr":284,"./fr-ca":285,"./fr-ca.js":285,"./fr-ch":286,"./fr-ch.js":286,"./fr.js":284,"./fy":287,"./fy.js":287,"./ga":288,"./ga.js":288,"./gd":289,"./gd.js":289,"./gl":290,"./gl.js":290,"./gom-latn":291,"./gom-latn.js":291,"./gu":292,"./gu.js":292,"./he":293,"./he.js":293,"./hi":294,"./hi.js":294,"./hr":295,"./hr.js":295,"./hu":296,"./hu.js":296,"./hy-am":297,"./hy-am.js":297,"./id":298,"./id.js":298,"./is":299,"./is.js":299,"./it":300,"./it-ch":301,"./it-ch.js":301,"./it.js":300,"./ja":302,"./ja.js":302,"./jv":303,"./jv.js":303,"./ka":304,"./ka.js":304,"./kk":305,"./kk.js":305,"./km":306,"./km.js":306,"./kn":307,"./kn.js":307,"./ko":308,"./ko.js":308,"./ku":309,"./ku.js":309,"./ky":310,"./ky.js":310,"./lb":311,"./lb.js":311,"./lo":312,"./lo.js":312,"./lt":313,"./lt.js":313,"./lv":314,"./lv.js":314,"./me":315,"./me.js":315,"./mi":316,"./mi.js":316,"./mk":317,"./mk.js":317,"./ml":318,"./ml.js":318,"./mn":319,"./mn.js":319,"./mr":320,"./mr.js":320,"./ms":321,"./ms-my":322,"./ms-my.js":322,"./ms.js":321,"./mt":323,"./mt.js":323,"./my":324,"./my.js":324,"./nb":325,"./nb.js":325,"./ne":326,"./ne.js":326,"./nl":327,"./nl-be":328,"./nl-be.js":328,"./nl.js":327,"./nn":329,"./nn.js":329,"./pa-in":330,"./pa-in.js":330,"./pl":331,"./pl.js":331,"./pt":332,"./pt-br":333,"./pt-br.js":333,"./pt.js":332,"./ro":334,"./ro.js":334,"./ru":335,"./ru.js":335,"./sd":336,"./sd.js":336,"./se":337,"./se.js":337,"./si":338,"./si.js":338,"./sk":339,"./sk.js":339,"./sl":340,"./sl.js":340,"./sq":341,"./sq.js":341,"./sr":342,"./sr-cyrl":343,"./sr-cyrl.js":343,"./sr.js":342,"./ss":344,"./ss.js":344,"./sv":345,"./sv.js":345,"./sw":346,"./sw.js":346,"./ta":347,"./ta.js":347,"./te":348,"./te.js":348,"./tet":349,"./tet.js":349,"./tg":350,"./tg.js":350,"./th":351,"./th.js":351,"./tl-ph":352,"./tl-ph.js":352,"./tlh":353,"./tlh.js":353,"./tr":354,"./tr.js":354,"./tzl":355,"./tzl.js":355,"./tzm":356,"./tzm-latn":357,"./tzm-latn.js":357,"./tzm.js":356,"./ug-cn":358,"./ug-cn.js":358,"./uk":359,"./uk.js":359,"./ur":360,"./ur.js":360,"./uz":361,"./uz-latn":362,"./uz-latn.js":362,"./uz.js":361,"./vi":363,"./vi.js":363,"./x-pseudo":364,"./x-pseudo.js":364,"./yo":365,"./yo.js":365,"./zh-cn":366,"./zh-cn.js":366,"./zh-hk":367,"./zh-hk.js":367,"./zh-tw":368,"./zh-tw.js":368};function r(e){var t=a(e);return i(t)}function a(e){if(!i.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}r.keys=function(){return Object.keys(n)},r.resolve=a,e.exports=r,r.id=651},function(e,t,i){var n=i(21),r=i(241);n({target:"String",proto:!0},{repeat:r})},function(e,t,i){"use strict";e.exports=r,e.exports.default=r;var n=i(691);function r(e,t){if(!(this instanceof r))return new r(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function a(e,t,i){if(!i)return t.indexOf(e);for(var n=0;n=e.minX&&t.maxY>=e.minY}function p(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(e,t,i,r,a){var s,o=[t,i];while(o.length)i=o.pop(),t=o.pop(),i-t<=r||(s=t+Math.ceil((i-t)/r/2)*r,n(e,s,t,i,a),o.push(t,s,s,i))}r.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,i=[],n=this.toBBox;if(!y(e,t))return i;var r,a,s,o,l=[];while(t){for(r=0,a=t.children.length;r=0){if(!(a[t].children.length>this._maxEntries))break;this._split(a,t),t--}this._adjustParentBBoxes(r,a,t)},_split:function(e,t){var i=e[t],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);var a=this._chooseSplitIndex(i,r,n),o=p(i.children.splice(a,i.children.length-a));o.height=i.height,o.leaf=i.leaf,s(i,this.toBBox),s(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(i,o)},_splitRoot:function(e,t){this.data=p([e,t]),this.data.height=e.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,i){var n,r,a,s,l,c,u,d;for(c=u=1/0,n=t;n<=i-t;n++)r=o(e,0,n,this.toBBox),a=o(e,n,i,this.toBBox),s=f(r,a),l=h(r)+h(a),s=t;r--)a=e.children[r],l(u,e.leaf?s(a):a),h+=d(u);return h},_adjustParentBBoxes:function(e,t,i){for(var n=i;n>=0;n--)l(t[n],e)},_condense:function(e){for(var t,i=e.length-1;i>=0;i--)0===e[i].children.length?i>0?(t=e[i-1].children,t.splice(t.indexOf(e[i]),1)):this.clear():s(e[i],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},function(e,t,i){"use strict";(function(e){i(17),i(23),i(22),i(9),i(36),i(66),i(659),i(18),i(33),i(12),i(24),i(26),i(8),i(52),i(25),i(104),i(35),i(87),i(55),i(662),i(10),i(20);var n=i(371),r=i(14),a=i(1),s=i(0),o=i(117),l=i.n(o),c=i(16),u=i.n(c),h=i(673),d=i(184),m=i(578),f=i(674),g=i(7),y=i(137),p=function(){function t(e){Object(a["a"])(this,t),this.terrainProvider=e.terrainProvider||null,this.projection=e.projection||null,this.directions={},this.options=e,this.meta=[],this.extent=ol.extent.createEmpty(),this.minZoom=Object(g["h"])(e.minZoom,0),this.maxZoom=Object(g["h"])(e.maxZoom,0),this.hideLevels=Object(g["h"])(e.hideLevels,0),this.tiledSources=[],this.tileLevel=null,this.tileGrid=ol.tilegrid.createXYZ(),this.tileFootPrintsSource=new ol.source.Vector,this.tileFootPrintsLayer=new ol.layer.Vector({source:this.tileFootPrintsSource})}return Object(s["a"])(t,[{key:"loadData",value:function(e){var t=this,i=[],n=Array.isArray(e)?e:[e],r=u.a.create();return r.interceptors.response.use((function(e){return e}),(function(e){return String(e.response.status).startsWith("4")&&e.config&&!e.config.retriedWithNewURL?(e.config.retriedWithNewURL=!0,e.config.url="".concat(e.config.url,"/image.json"),r.request(e.config)):Promise.reject(e)})),n.forEach((function(e){i.push(r.get(e).then((function(e){var i=e.data,n=e.config,r=n.url.substring(0,n.url.lastIndexOf("/"));return t.handleMetadataResponse(i,r)})).catch((function(t){console.log("Invalid image.json data. Please correct, File: ".concat(e,", Error ").concat(t.message))})))})),Promise.all(i)}},{key:"handleMetadataResponse",value:function(e,i){var n=t.getVersion(e);return n.version>=3.5||3.4===n.version&&n.buildNumber>=36?this.handleMetadataResponseV35(e,i,n):(console.log("Could not load Meta Data, only meta data version 3.5 and higher are supported"),Promise.resolve())}},{key:"getImageMeta",value:function(e,t,i,n,r){var a=this.hideLevels?i.slice(0,i.length-this.hideLevels):i,s=this.meta.find((function(i){return i.isEqual(e,t,a)}));if(s)return s;var o=new f["a"]({url:e,size:t,tileSize:n,tileResolution:a,minZoom:this.minZoom,maxZoom:this.maxZoom}),l=new h["a"]({size:t,view:o,version:r.version,buildNumber:r.buildNumber});return this.meta.push(l),l}},{key:"handleMetadataResponseV35",value:function(t,i,n){var r=this,a=[t.generalImageInfo.width,t.generalImageInfo.height],s=t.generalImageInfo["tile-resolution"],o=[t.generalImageInfo["tile-width"],t.generalImageInfo["tile-width"]];t.generalImageInfo.width&&t.generalImageInfo.height&&t.generalImageInfo["tile-resolution"]&&this.getImageMeta(i,a,s,o,n);var c=[];t.generalImageInfo.cameraParameter&&Array.isArray(t.generalImageInfo.cameraParameter)&&t.generalImageInfo.cameraParameter.forEach((function(e){c.push(new m["a"](e))}));var u=null;if(t.generalImageInfo.crs){var h=l()();e.proj4.defs(h,t.generalImageInfo.crs),u=ol.proj.get(h)}var d={url:i,version:n,size:a,tileResolution:s,tileSize:o,cameras:c,imageProjection:u},f=null!=t.tileLevel?{}:this.handleImageResponse(t,d);if(t.tileLevel){if(this.tileLevel&&this.tileLevel!==t.tileLevel)throw new Error("Cannot add multiple tiled image.json data sources, if they do not have the same tile level");var g=!this.isTiled;this.tileLevel=t.tileLevel,this.tiledSources.push({imageConfig:d,availableTiles:new Set(t.availableTiles),cache:new Set});var y=t.availableTiles.map((function(e){var t=e.split("/").map((function(e){return Number(e)}));t[2]+=1,t[2]*=-1;var i=new ol.Feature({geometry:ol.geom.Polygon.fromExtent(r.tileGrid.getTileCoordExtent(t))});return i.setId(e),i})).filter((function(e){return!r.tileFootPrintsSource.getFeatureById(e.getId())}));if(this.tileFootPrintsSource.addFeatures(y),g)return this.loadTiledImageJson(ol.extent.getCenter(this.tileFootPrintsSource.getExtent()))}return this.handleDirectionOptions(f),Promise.resolve()}},{key:"handleDirectionOptions",value:function(e){var t=this;Object.keys(e).forEach((function(i){t.directions[i]?t.directions[i].addOptions(e[i]):t.directions[i]=t.createDirection(e[i]),t.extent=ol.extent.extend(t.extent,t.directions[i].footPrintsLayer.getSource().getExtent())}))}},{key:"getTileCoordinate",value:function(e){var t=this.tileGrid.getTileCoordForCoordAndZ(e,this.tileLevel);return t[2]*=-1,t[2]-=1,t}},{key:"loadTiledImageJson",value:function(e){return this.loadTile(this.getTileCoordinate(e).join("/"))}},{key:"loadTile",value:function(e){var t=this,i=this.tileFootPrintsSource.getFeatureById(e);return i&&this.tileFootPrintsSource.removeFeature(i),Promise.all(this.tiledSources.map((function(i){if(i.availableTiles.has(e)&&!i.cache.has(e)){i.cache.add(e);var n=i.imageConfig.url,r=u.a.create();return r.get("".concat(n,"/").concat(e,".json")).then((function(e){var n=e.data,r=t.handleImageResponse(n,i.imageConfig);t.handleDirectionOptions(r)})).catch((function(e){console.error(e)}))}return Promise.resolve()})))}},{key:"handleImageResponse",value:function(e,t){var i=this,a=t.url,s=t.version,o=t.size,l=t.tileResolution,c=t.tileSize,u=t.cameras,h=t.imageProjection,m=e.images.shift(),f={name:m.indexOf("name"),width:m.indexOf("width"),height:m.indexOf("height"),tileResolution:m.indexOf("tile-resolution"),viewDirection:m.indexOf("view-direction"),viewDirectionAngle:m.indexOf("view-direction-angle"),groundCoordinates:m.indexOf("groundCoordinates"),centerPointOnGround:m.indexOf("centerPointOnGround"),cameraIndex:m.indexOf("camera-index"),projectionCenter:m.indexOf("projection-center"),pToRealworld:m.indexOf("p-to-realworld"),pToImage:m.indexOf("p-to-image")},g={};return e.images.forEach((function(e){var t=[];e[f.pToRealworld]&&e[f.pToRealworld].forEach((function(e){t.push.apply(t,Object(r["a"])(e))}));var m=e[f.pToRealworld]?Object(n["a"])(Cesium.Matrix3,t):null,y=[];e[f.pToImage]&&(e[f.pToImage].forEach((function(e){y.push.apply(y,Object(r["a"])(e))})),y.push(0,0,0,1));var p=e[f.projectionCenter]?Cesium.Cartesian3.fromArray(e[f.projectionCenter]):null,v=e[f.pToImage]?Object(n["a"])(Cesium.Matrix4,y):null,_=e[f.width]&&e[f.height]?[e[f.width],e[f.height]]:o,b=e[f.tileResolution]?e[f.tileResolution]:l,L=i.getImageMeta(a,_,b,c,s),w={name:e[f.name],viewDirection:e[f.viewDirection],viewDirectionAngle:e[f.viewDirectionAngle],groundCoordinates:e[f.groundCoordinates],centerPointOnGround:e[f.centerPointOnGround],meta:L,camera:u[e[f.cameraIndex]],projectionCenter:p,pToRealworld:m,pToImage:v,projection:i.projection||h,terrainProvider:i.terrainProvider},M=new d["a"](w);g[M.viewDirection]||(g[M.viewDirection]={direction:M.viewDirection,images:{},rTreeItems:[],footPrintFeatures:[],projection:i.projection||h,terrainProvider:i.terrainProvider}),g[M.viewDirection].images[M.name]=M,g[M.viewDirection].rTreeItems.push({minX:M.centerPointOnGround[0],minY:M.centerPointOnGround[1],maxX:M.centerPointOnGround[0],maxY:M.centerPointOnGround[1],name:M.name});var k=new ol.geom.Polygon([M.groundCoordinates.concat([M.groundCoordinates[0]])]);k.transform(i.projection||h,ol.proj.get("EPSG:3857"));var O=new ol.Feature({geometry:k});O.setId(M.name),g[M.viewDirection].footPrintFeatures.push(O)})),g}},{key:"createDirection",value:function(e){return new y["a"](e)}},{key:"getImageByName",value:function(e){for(var t=Object.values(this.directions),i=0;i0}}],[{key:"getVersion",value:function(e){var t={version:null,buildNumber:null};if(e.version){var i=e.version.match(/\d+\.\d+/);i&&(t.version=Number(i[0]));var n=e.version.match(/-\d+-/);n&&(t.buildNumber=Number(n[0].match(/\d+/)[0]))}return t}}]),t}();t["a"]=p}).call(this,i(123))},function(e,t,i){"use strict";var n=i(692);function r(e,t,i,r,o,l){var c,u,h,d,m=e.data,f=[],g=e.toBBox,y=new n(null,a);while(m){for(c=0;c1&&(s=o(s,r(arguments[1]))),s<0&&(s=i+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},function(e,t,i){var n=i(42),r=i(39),a=i(139),s=i(180).UNSUPPORTED_Y;n&&("g"!=/./g.flags||s)&&r.f(RegExp.prototype,"flags",{configurable:!0,get:a})},function(e,t,i){"use strict";var n=i(21),r=i(98).f,a=i(41),s=i(223),o=i(60),l=i(224),c=i(100),u="".startsWith,h=Math.min,d=l("startsWith"),m=!c&&!d&&!!function(){var e=r(String.prototype,"startsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!m&&!d},{startsWith:function(e){var t=String(o(this));s(e);var i=a(h(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return u?u.call(t,n,i):t.slice(i,i+n.length)===n}})},function(e,t){var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(i){var n=new Uint8Array(16);e.exports=function(){return i(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},function(e,t){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);function r(e,t){var n=t||0,r=i;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}e.exports=r},function(e,t,i){"use strict";var n=i(31),r=i(42),a=i(56).NATIVE_ARRAY_BUFFER,s=i(61),o=i(230),l=i(28),c=i(135),u=i(71),h=i(41),d=i(666),m=i(694),f=i(91).f,g=i(39).f,y=i(234),p=i(103),v=i(75),_=v.get,b=v.set,L="ArrayBuffer",w="DataView",M="prototype",k="Wrong length",O="Wrong index",T=n[L],S=T,C=n[w],j=n.RangeError,E=m.pack,I=m.unpack,D=function(e){return[255&e]},P=function(e){return[255&e,e>>8&255]},A=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},x=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Y=function(e){return E(e,23,4)},N=function(e){return E(e,52,8)},F=function(e,t){g(e[M],t,{get:function(){return _(this)[t]}})},R=function(e,t,i,n){var r=d(i),a=_(e);if(r+t>a.byteLength)throw j(O);var s=_(a.buffer).bytes,o=r+a.byteOffset,l=s.slice(o,o+t);return n?l:l.reverse()},H=function(e,t,i,n,r,a){var s=d(i),o=_(e);if(s+t>o.byteLength)throw j(O);for(var l=_(o.buffer).bytes,c=s+o.byteOffset,u=n(+r),h=0;hV;)(G=B[V++])in S||s(S,G,T[G]);z.constructor=S}var U=new C(new S(2)),W=C[M].setInt8;U.setInt8(0,2147483648),U.setInt8(1,2147483649),!U.getInt8(0)&&U.getInt8(1)||o(C[M],{setInt8:function(e,t){W.call(this,e,t<<24>>24)},setUint8:function(e,t){W.call(this,e,t<<24>>24)}},{unsafe:!0})}else S=function(e){c(this,S,L);var t=d(e);b(this,{bytes:y.call(new Array(t),0),byteLength:t}),r||(this.byteLength=t)},C=function(e,t,i){c(this,C,w),c(e,S,w);var n=_(e).byteLength,a=u(t);if(a<0||a>n)throw j("Wrong offset");if(i=void 0===i?n-a:h(i),a+i>n)throw j(k);b(this,{buffer:e,byteLength:i,byteOffset:a}),r||(this.buffer=e,this.byteLength=i,this.byteOffset=a)},r&&(F(S,"byteLength"),F(C,"buffer"),F(C,"byteLength"),F(C,"byteOffset")),o(C[M],{getInt8:function(e){return R(this,1,e)[0]<<24>>24},getUint8:function(e){return R(this,1,e)[0]},getInt16:function(e){var t=R(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=R(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return x(R(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return x(R(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return I(R(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return I(R(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){H(this,1,e,D,t)},setUint8:function(e,t){H(this,1,e,D,t)},setInt16:function(e,t){H(this,2,e,P,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){H(this,2,e,P,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){H(this,4,e,A,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){H(this,4,e,A,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){H(this,4,e,Y,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){H(this,8,e,N,t,arguments.length>2?arguments[2]:void 0)}});p(S,L),p(C,w),e.exports={ArrayBuffer:S,DataView:C}},function(e,t,i){var n=i(71),r=i(41);e.exports=function(e){if(void 0===e)return 0;var t=n(e),i=r(t);if(t!==i)throw RangeError("Wrong length or index");return i}},function(e,t,i){var n=i(698);e.exports=function(e,t){var i=n(e);if(i%t)throw RangeError("Wrong offset");return i}},function(e,t,i){"use strict";var n=i(21),r=i(162).trim,a=i(725);n({target:"String",proto:!0,forced:a("trim")},{trim:function(){return r(this)}})},function(e,t,i){"use strict";i(35);var n,r=i(21),a=i(42),s=i(670),o=i(31),l=i(372),c=i(62),u=i(135),h=i(44),d=i(728),m=i(729),f=i(181).codeAt,g=i(730),y=i(103),p=i(671),v=i(75),_=o.URL,b=p.URLSearchParams,L=p.getState,w=v.set,M=v.getterFor("URL"),k=Math.floor,O=Math.pow,T="Invalid authority",S="Invalid scheme",C="Invalid host",j="Invalid port",E=/[A-Za-z]/,I=/[\d+\-.A-Za-z]/,D=/\d/,P=/^(0x|0X)/,A=/^[0-7]+$/,x=/^\d+$/,Y=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,F=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,R=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,H=/[\u0009\u000A\u000D]/g,G=function(e,t){var i,n,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return C;if(i=B(t.slice(1,-1)),!i)return C;e.host=i}else if(X(e)){if(t=g(t),N.test(t))return C;if(i=z(t),null===i)return C;e.host=i}else{if(F.test(t))return C;for(i="",n=m(t),r=0;r4)return e;for(i=[],n=0;n1&&"0"==r.charAt(0)&&(a=P.test(r)?16:8,r=r.slice(8==a?1:2)),""===r)s=0;else{if(!(10==a?x:8==a?A:Y).test(r))return e;s=parseInt(r,a)}i.push(s)}for(n=0;n=O(256,5-t))return null}else if(s>255)return null;for(o=i.pop(),n=0;n6)return;n=0;while(d()){if(r=null,n>0){if(!("."==d()&&n<4))return;h++}if(!D.test(d()))return;while(D.test(d())){if(a=parseInt(d(),10),null===r)r=a;else{if(0==r)return;r=10*r+a}if(r>255)return;h++}l[c]=256*l[c]+r,n++,2!=n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[c++]=t}else{if(null!==u)return;h++,c++,u=c}}if(null!==u){s=c-u,c=7;while(0!=c&&s>0)o=l[c],l[c--]=l[u+s-1],l[u+--s]=o}else if(8!=c)return;return l},V=function(e){for(var t=null,i=1,n=null,r=0,a=0;a<8;a++)0!==e[a]?(r>i&&(t=n,i=r),n=null,r=0):(null===n&&(n=a),++r);return r>i&&(t=n,i=r),t},U=function(e){var t,i,n,r;if("number"==typeof e){for(t=[],i=0;i<4;i++)t.unshift(e%256),e=k(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=V(e),i=0;i<8;i++)r&&0===e[i]||(r&&(r=!1),n===i?(t+=i?":":"::",r=!0):(t+=e[i].toString(16),i<7&&(t+=":")));return"["+t+"]"}return e},W={},q=d({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),J=d({},q,{"#":1,"?":1,"{":1,"}":1}),K=d({},J,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(e,t){var i=f(e,0);return i>32&&i<127&&!h(t,e)?e:encodeURIComponent(e)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},X=function(e){return h(Q,e.scheme)},$=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var i;return 2==e.length&&E.test(e.charAt(0))&&(":"==(i=e.charAt(1))||!t&&"|"==i)},ie=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ne=function(e){var t=e.path,i=t.length;!i||"file"==e.scheme&&1==i&&te(t[0],!0)||t.pop()},re=function(e){return"."===e||"%2e"===e.toLowerCase()},ae=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},se={},oe={},le={},ce={},ue={},he={},de={},me={},fe={},ge={},ye={},pe={},ve={},_e={},be={},Le={},we={},Me={},ke={},Oe={},Te={},Se=function(e,t,i,r){var a,s,o,l,c=i||se,u=0,d="",f=!1,g=!1,y=!1;i||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(R,"")),t=t.replace(H,""),a=m(t);while(u<=a.length){switch(s=a[u],c){case se:if(!s||!E.test(s)){if(i)return S;c=le;continue}d+=s.toLowerCase(),c=oe;break;case oe:if(s&&(I.test(s)||"+"==s||"-"==s||"."==s))d+=s.toLowerCase();else{if(":"!=s){if(i)return S;d="",c=le,u=0;continue}if(i&&(X(e)!=h(Q,d)||"file"==d&&($(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,i)return void(X(e)&&Q[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?c=_e:X(e)&&r&&r.scheme==e.scheme?c=ce:X(e)?c=me:"/"==a[u+1]?(c=ue,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=ke)}break;case le:if(!r||r.cannotBeABaseURL&&"#"!=s)return S;if(r.cannotBeABaseURL&&"#"==s){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,c=Te;break}c="file"==r.scheme?_e:he;continue;case ce:if("/"!=s||"/"!=a[u+1]){c=he;continue}c=fe,u++;break;case ue:if("/"==s){c=ge;break}c=Me;continue;case he:if(e.scheme=r.scheme,s==n)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==s||"\\"==s&&X(e))c=de;else if("?"==s)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",c=Oe;else{if("#"!=s){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),c=Me;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Te}break;case de:if(!X(e)||"/"!=s&&"\\"!=s){if("/"!=s){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,c=Me;continue}c=ge}else c=fe;break;case me:if(c=fe,"/"!=s||"/"!=d.charAt(u+1))continue;u++;break;case fe:if("/"!=s&&"\\"!=s){c=ge;continue}break;case ge:if("@"==s){f&&(d="%40"+d),f=!0,o=m(d);for(var p=0;p65535)return j;e.port=X(e)&&b===Q[e.scheme]?null:b,d=""}if(i)return;c=we;continue}return j}d+=s;break;case _e:if(e.scheme="file","/"==s||"\\"==s)c=be;else{if(!r||"file"!=r.scheme){c=Me;continue}if(s==n)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==s)e.host=r.host,e.path=r.path.slice(),e.query="",c=Oe;else{if("#"!=s){ie(a.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),ne(e)),c=Me;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Te}}break;case be:if("/"==s||"\\"==s){c=Le;break}r&&"file"==r.scheme&&!ie(a.slice(u).join(""))&&(te(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),c=Me;continue;case Le:if(s==n||"/"==s||"\\"==s||"?"==s||"#"==s){if(!i&&te(d))c=Me;else if(""==d){if(e.host="",i)return;c=we}else{if(l=G(e,d),l)return l;if("localhost"==e.host&&(e.host=""),i)return;d="",c=we}continue}d+=s;break;case we:if(X(e)){if(c=Me,"/"!=s&&"\\"!=s)continue}else if(i||"?"!=s)if(i||"#"!=s){if(s!=n&&(c=Me,"/"!=s))continue}else e.fragment="",c=Te;else e.query="",c=Oe;break;case Me:if(s==n||"/"==s||"\\"==s&&X(e)||!i&&("?"==s||"#"==s)){if(ae(d)?(ne(e),"/"==s||"\\"==s&&X(e)||e.path.push("")):re(d)?"/"==s||"\\"==s&&X(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(s==n||"?"==s||"#"==s))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==s?(e.query="",c=Oe):"#"==s&&(e.fragment="",c=Te)}else d+=Z(s,J);break;case ke:"?"==s?(e.query="",c=Oe):"#"==s?(e.fragment="",c=Te):s!=n&&(e.path[0]+=Z(s,W));break;case Oe:i||"#"!=s?s!=n&&("'"==s&&X(e)?e.query+="%27":e.query+="#"==s?"%23":Z(s,W)):(e.fragment="",c=Te);break;case Te:s!=n&&(e.fragment+=Z(s,q));break}u++}},Ce=function(e){var t,i,n=u(this,Ce,"URL"),r=arguments.length>1?arguments[1]:void 0,s=String(e),o=w(n,{type:"URL"});if(void 0!==r)if(r instanceof Ce)t=M(r);else if(i=Se(t={},String(r)),i)throw TypeError(i);if(i=Se(o,s,null,t),i)throw TypeError(i);var l=o.searchParams=new b,c=L(l);c.updateSearchParams(o.query),c.updateURL=function(){o.query=String(l)||null},a||(n.href=Ee.call(n),n.origin=Ie.call(n),n.protocol=De.call(n),n.username=Pe.call(n),n.password=Ae.call(n),n.host=xe.call(n),n.hostname=Ye.call(n),n.port=Ne.call(n),n.pathname=Fe.call(n),n.search=Re.call(n),n.searchParams=He.call(n),n.hash=Ge.call(n))},je=Ce.prototype,Ee=function(){var e=M(this),t=e.scheme,i=e.username,n=e.password,r=e.host,a=e.port,s=e.path,o=e.query,l=e.fragment,c=t+":";return null!==r?(c+="//",$(e)&&(c+=i+(n?":"+n:"")+"@"),c+=U(r),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==o&&(c+="?"+o),null!==l&&(c+="#"+l),c},Ie=function(){var e=M(this),t=e.scheme,i=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(n){return"null"}return"file"!=t&&X(e)?t+"://"+U(e.host)+(null!==i?":"+i:""):"null"},De=function(){return M(this).scheme+":"},Pe=function(){return M(this).username},Ae=function(){return M(this).password},xe=function(){var e=M(this),t=e.host,i=e.port;return null===t?"":null===i?U(t):U(t)+":"+i},Ye=function(){var e=M(this).host;return null===e?"":U(e)},Ne=function(){var e=M(this).port;return null===e?"":String(e)},Fe=function(){var e=M(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Re=function(){var e=M(this).query;return e?"?"+e:""},He=function(){return M(this).searchParams},Ge=function(){var e=M(this).fragment;return e?"#"+e:""},ze=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&l(je,{href:ze(Ee,(function(e){var t=M(this),i=String(e),n=Se(t,i);if(n)throw TypeError(n);L(t.searchParams).updateSearchParams(t.query)})),origin:ze(Ie),protocol:ze(De,(function(e){var t=M(this);Se(t,String(e)+":",se)})),username:ze(Pe,(function(e){var t=M(this),i=m(String(e));if(!ee(t)){t.username="";for(var n=0;n0?arguments[0]:void 0,u=this,m=[];if(S(u,{type:O,entries:m,updateURL:function(){},updateSearchParams:H}),void 0!==c)if(y(c))if(e=b(c),"function"===typeof e){t=e.call(c),i=t.next;while(!(n=i.call(t)).done){if(r=_(g(n.value)),a=r.next,(s=a.call(r)).done||(o=a.call(r)).done||!a.call(r).done)throw TypeError("Expected sequence with length 2");m.push({key:s.value+"",value:o.value+""})}}else for(l in c)d(c,l)&&m.push({key:l,value:c[l]+""});else R(m,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},V=B.prototype;o(V,{append:function(e,t){G(arguments.length,2);var i=C(this);i.entries.push({key:e+"",value:t+""}),i.updateURL()},delete:function(e){G(arguments.length,1);var t=C(this),i=t.entries,n=e+"",r=0;while(re.key){r.splice(t,0,e);break}t===i&&r.push(e)}n.updateURL()},forEach:function(e){var t,i=C(this).entries,n=m(e,arguments.length>1?arguments[1]:void 0,3),r=0;while(r1&&(t=arguments[1],y(t)&&(i=t.body,f(i)===O&&(n=t.headers?new M(t.headers):new M,n.has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=p(t,{body:v(0,String(i)),headers:v(0,n)}))),r.push(t)),w.apply(this,r)}}),e.exports={URLSearchParams:B,getState:C}},,function(e,t,i){"use strict";i(9),i(114),i(8),i(52),i(35),i(10),i(20);var n=i(1),r=i(0),a=i(50),s=function(){function e(t){var i=this;Object(n["a"])(this,e),this.size=t.size,this.views=new Map,t.view&&Object.values(a["a"]).forEach((function(e){i.views.set(e,t.view.clone())})),this.version=t.version||3.1,this.buildNumber=t.buildNumber||0}return Object(r["a"])(e,[{key:"getView",value:function(e){return this.views.get(e)}},{key:"isEqual",value:function(e,t,i){return this.size[0]===t[0]&&this.size[1]===t[1]&&(this.views.values().next().value.tileResolution.length===i.length&&this.views.values().next().value.url===e)}}]),e}();t["a"]=s},function(e,t,i){"use strict";i(17);var n=i(27),r=i(14),a=i(1),s=i(0),o=i(53),l=0,c=function(){function e(t){Object(a["a"])(this,e),this.id=l,l+=1,this.size=t.size,this.url=t.url,this.tileSize=t.tileSize,this.tileResolution=t.tileResolution,this.format=t.format||"jpg",this.minZoom=t.minZoom,this.maxZoom=t.maxZoom,this._createViewAndLayer()}return Object(s["a"])(e,[{key:"_createViewAndLayer",value:function(){var e=[0,0].concat(Object(r["a"])(this.size)),t=new ol.proj.Projection({code:"ZOOMIFY",units:"pixels",extent:e});this.view=new ol.View({projection:t,center:[this.size[0]/2,this.size[1]/2],minZoom:this.minZoom,maxZoom:this.maxZoom>0?this.maxZoom:this.tileResolution.length+4,extent:[-2e3,-2e3,this.size[0]+2e3,this.size[1]+2e3],zoom:this.minZoom});var i={projection:t,tileGrid:new ol.tilegrid.TileGrid({origin:[0,0],extent:e,resolutions:this.tileResolution,tileSize:this.tileSize})};o["a"].hasSameOrigin(this.url)||(i.crossOrigin="anonymous"),this.tileImageSource=new ol.source.TileImage(i),this.layer=new ol.layer.Tile({source:this.tileImageSource,extent:e})}},{key:"clone",value:function(){return new e({size:this.size,url:this.url,tileSize:this.tileSize,tileResolution:this.tileResolution,minZoom:this.minZoom,maxZoom:this.maxZoom})}},{key:"setSize",value:function(e){this.size=e,this._createViewAndLayer()}},{key:"setImageName",value:function(e){var t=this;this.tileImageSource.setTileUrlFunction((function(i){var r=Object(n["a"])(i,3),a=r[0],s=r[1],o=r[2];return"".concat(t.url,"/").concat(e,"/").concat(a,"/").concat(s,"/").concat(o,".").concat(t.format)})),this.tileImageSource.refresh()}}]),e}();t["a"]=c},function(e,t,i){"use strict";var n=Array.isArray,r=Object.keys,a=Object.prototype.hasOwnProperty;e.exports=function e(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){var s,o,l,c=n(t),u=n(i);if(c&&u){if(o=t.length,o!=i.length)return!1;for(s=o;0!==s--;)if(!e(t[s],i[s]))return!1;return!0}if(c!=u)return!1;var h=t instanceof Date,d=i instanceof Date;if(h!=d)return!1;if(h&&d)return t.getTime()==i.getTime();var m=t instanceof RegExp,f=i instanceof RegExp;if(m!=f)return!1;if(m&&f)return t.toString()==i.toString();var g=r(t);if(o=g.length,o!==r(i).length)return!1;for(s=o;0!==s--;)if(!a.call(i,g[s]))return!1;for(s=o;0!==s--;)if(l=g[s],!e(t[l],i[l]))return!1;return!0}return t!==t&&i!==i}},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAJhSURBVFiF7ZW/a1pRFMc/70XFYqVFUCq1hSClvCIShw6FItQ9U8EtHVySuYvg0C2BLB0KDeQf6NLFxU0KLRSKGMmDtKldqg3FEKVNaoqa6Hsd9JXrxR9tYsziF85wzzucz/fd++55cHYtAt97sXiOPmdSEPgFmL04Bu5OC24DPghwK/KAYxoGVgfArVi9aPhDoD3CQAd4dFHw60BJBPp8vhOfz3cimSj1aieuVyJIVVUznU4XM5lMUVVVQzLxetLwJxLAXFlZqZimmTdNM7+8vLwvPweWJgWfB47E5pqm/W42m1uWgVartRUKhY4lA3XgznnhNuC92NjhcHRyudxHC25FoVDYcTqdHclEDrCPAsyNMfAMaSvX1tb24vH4kVzo9/vbdru9k81mrwnpm3RvxtsxnIG6D/R94dFo9NAwjLz89mLEYrGf9O/CKfBgGEQZkr8KFBDO0OPxtHVd/xQIBE5Hua5UKrZwOHyvVquJW/8VWKA7vvukDunzUoQrisLGxkZpHBy6R7G5uVlSlL53mwdeDKof9A08RhqpiUTiIJVKHYyDW9I0rVUul23b29suIb0AfAF2xFr5CAKADnisRDAYbOi6/tnlchn/agCg0WgokUhEKxaLV4T0Yc9IeZCBOeANELUSqqqyvr7+TdO0pgzwer1tt9ttANTrdbVardrkmt3dXWcymbxtGH3e3wExurejT0mG/2QmHUkZDlCbooGaBRVvwY9Bri5If1niuS0Bz4EbUvEtaT1ytNIdPKL2pPU+8NRaDBtEo2SOef5fPYcNoqlpZmBmYGZgZuDSDfwBYHFBvEfx+bgAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABOSURBVFiF7dexDQAgCETRO+My7r+GveNga7AmNP86aHihAkvaaszoHA5AkmZuRMSpHGh7vXX7BgAAAAAAAAAAAAAAAPD9Bflur077BgBceZ8FPDUm8YQAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAPnSURBVFiFtZdNTGNVFMd/fZ1SCjPFxohtnyGY8SMhMaRm2LkRmrqYgG2gJCbETBcTNEZXysLERU10oTvjAhIIloWbBpuujE1oWKgLP1IYYWF00uQlfbwymRJgmBHKe3XxaH1zbUvLlP/ynHPv+d97zr3nHButoxd4DRgBXgJ8wLUz3SGwA/wJ/Ar8CDxsZVNbCzYDwC0gBHS3SPYf4AcgASgXJeAE3gXeAuwtOhZxCnwLzAMn7RAYAL4Erl/QsYg/gA+B+60QeBn4GvCIClmWTyKRyOHo6OhRIBA49vv9OoCqqvZcLufMZrO9qVTKXSgUHHX23QU+AP5uRmAAWBKdy7Jcjsfju7FY7ECSpIbHBDAMg8XFxb54PP6MqqoikSLwNpabsBLoAr7BzPAawuHwfiKR0Nxut9HUs4C9vT17NBr1ra2tXRNUd4B3OMsJa3K9D7xutZydnS2trKxo3d3dlXacA7hcrsrMzMyBoij2jY0Nl0X1LGAAv8N/NzAAJK2EwuHw/urqqnrelZ8HwzAIhULPCTfxEIgA96u737I6l2W5nEgktCd1DiBJEslkcqe/v//UIu4BbgNImD9cyLooHo/vthvzZvB4PPrc3Nw9QXwT6LEBbwCfVaWyLJ8oinK3E6e3olwu2wYHB68LL+NjCfNvryESiRx22jmAw+GojI+PHwjiGxLCswsGg0cd936GUCgk7v2iBPitkuHh4ePLIhAIBMR6IFeTsAav16tfFgGv13sqiK52PthtQgIei4umaRctvedC07QrguiBBKhWSS6Xc14WgVwu1yWIChJmG1VDNpvt5ZKQyWSuCqK/JMweroZUKuXWdb2VVq0t6LpuS6fTYmX8RUJoIAuFgmNpacndaQILCwtuTdOsv+Aj4OfqST8B3qxq/H5/eWtrK+/xeDryJEulkn1oaOj5YrFoJfAd8Hn1GSYwG0gAVFV1RKNRn2E8eT0yDIOpqSm/4Lx85rNWgvcxS+Rw1SKfzzsVRbFPTEwc2WwXSwnDMIjFYt50Ot0nqFaANfh/S7YAvGK1HBsbO0wmkzvthqNUKtknJyf96+vrYuY3bMl0zIQMAbVF+Xzeuby83CdJkjEyMnJstzf/p3Rdt83Pz/dNT0/L29vbLkF9D3gPc5IC6rflLwBfAf2iwuv1liORyEEwGDwKBAInPp/vtFKpoKrqlc3Nza5MJtObTqfFbK+iiNmW37UKGwX3KeAL4NVGJ20Td4CPqDOYNLrP6mxnAENAvRO1gjJmwn0KPKhn0Ep6P43ZQN4ExJg2wiPge8w5Q21m2M776sEcz29gdlF+Hh/PVcy68hvwEy2O5/8CzKw/sVG0Ap4AAAAASUVORK5CYII="},function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(i(733)),a=n(i(734)),s=i(370),o=n(i(738));function l(e,t){var i=!0;return s.flattenEach(e,(function(e){s.flattenEach(t,(function(t){if(!1===i)return!1;i=c(e.geometry,t.geometry)}))})),i}function c(e,t){switch(e.type){case"Point":switch(t.type){case"Point":return!g(e.coordinates,t.coordinates);case"LineString":return!u(t,e);case"Polygon":return!r.default(e,t)}break;case"LineString":switch(t.type){case"Point":return!u(e,t);case"LineString":return!h(e,t);case"Polygon":return!d(t,e)}break;case"Polygon":switch(t.type){case"Point":return!r.default(t,e);case"LineString":return!d(e,t);case"Polygon":return!m(t,e)}}return!1}function u(e,t){for(var i=0;i0}function d(e,t){for(var i=0,n=t.coordinates;i0}function m(e,t){for(var i=0,n=e.coordinates[0];i0}function f(e,t,i){var n=i[0]-e[0],r=i[1]-e[1],a=t[0]-e[0],s=t[1]-e[1],o=n*s-r*a;return 0===o&&(Math.abs(a)>=Math.abs(s)?a>0?e[0]<=i[0]&&i[0]<=t[0]:t[0]<=i[0]&&i[0]<=e[0]:s>0?e[1]<=i[1]&&i[1]<=t[1]:t[1]<=i[1]&&i[1]<=e[1])}function g(e,t){return e[0]===t[0]&&e[1]===t[1]}t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(739),r=i(77);function a(e,t,i){void 0===i&&(i={});for(var a=i.steps||64,s=i.properties?i.properties:!Array.isArray(e)&&"Feature"===e.type&&e.properties?e.properties:{},o=[],l=0;l1?arguments[1]:void 0,n=a(t.length),r=void 0===i?n:h(a(i),n),l=String(e);return u?u.call(t,l,r):t.slice(r-l.length,r)===l}})},function(e,t,i){var n=i(21),r=i(28),a=i(63),s=i(166),o=i(373),l=r((function(){s(1)}));n({target:"Object",stat:!0,forced:l,sham:!o},{getPrototypeOf:function(e){return s(a(e))}})},function(e,t,i){var n=i(21),r=i(690);n({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(e,t,i){var n=i(31),r=i(162).trim,a=i(163),s=n.parseInt,o=/^[+-]?0[Xx]/,l=8!==s(a+"08")||22!==s(a+"0x16");e.exports=l?function(e,t){var i=r(String(e));return s(i,t>>>0||(o.test(i)?16:10))}:s},function(e,t,i){"use strict";function n(e,t,i,n,a){r(e,t,i||0,n||e.length-1,a||s)}function r(e,t,i,n,s){while(n>i){if(n-i>600){var o=n-i+1,l=t-i+1,c=Math.log(o),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(o-u)/o)*(l-o/2<0?-1:1),d=Math.max(i,Math.floor(t-l*u/o+h)),m=Math.min(n,Math.floor(t+(o-l)*u/o+h));r(e,t,d,m,s)}var f=e[t],g=i,y=n;a(e,i,t),s(e[n],f)>0&&a(e,i,n);while(g0)y--}0===s(e[i],f)?a(e,i,y):(y++,a(e,y,n)),y<=t&&(i=y+1),t<=y&&(n=y-1)}}function a(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function s(e,t){return et?1:0}e.exports=n,e.exports.default=n},function(e,t,i){"use strict";function n(e,t){if(!(this instanceof n))return new n(e,t);if(this.data=e||[],this.length=this.data.length,this.compare=t||r,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)}function r(e,t){return et?1:0}e.exports=n,e.exports.default=n,n.prototype={push:function(e){this.data.push(e),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var e=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),e}},peek:function(){return this.data[0]},_up:function(e){var t=this.data,i=this.compare,n=t[e];while(e>0){var r=e-1>>1,a=t[r];if(i(n,a)>=0)break;t[e]=a,e=r}t[e]=n},_down:function(e){var t=this.data,i=this.compare,n=this.length>>1,r=t[e];while(e=0)break;t[e]=o,e=a}t[e]=r}}},function(e,t,i){"use strict";var n=i(21),r=i(28),a=i(665),s=i(40),o=i(102),l=i(41),c=i(142),u=a.ArrayBuffer,h=a.DataView,d=u.prototype.slice,m=r((function(){return!new u(2).slice(1,void 0).byteLength}));n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:m},{slice:function(e,t){if(void 0!==d&&void 0===t)return d.call(s(this),e);var i=s(this).byteLength,n=o(e,i),r=o(void 0===t?i:t,i),a=new(c(this,u))(l(r-n)),m=new h(this),f=new h(a),g=0;while(n>1,y=23===t?r(2,-24)-r(2,-77):0,p=e<0||0===e&&1/e<0?1:0,v=0;for(e=n(e),e!=e||e===i?(u=e!=e?1:0,c=f):(c=a(s(e)/o),e*(h=r(2,-c))<1&&(c--,h*=2),e+=c+g>=1?y/h:y*r(2,1-g),e*h>=2&&(c++,h/=2),c+g>=f?(u=0,c=f):c+g>=1?(u=(e*h-1)*r(2,t),c+=g):(u=e*r(2,g-1)*r(2,t),c=0));t>=8;d[v++]=255&u,u/=256,t-=8);for(c=c<0;d[v++]=255&c,c/=256,m-=8);return d[--v]|=128*p,d},c=function(e,t){var n,a=e.length,s=8*a-t-1,o=(1<>1,c=s-7,u=a-1,h=e[u--],d=127&h;for(h>>=7;c>0;d=256*d+e[u],u--,c-=8);for(n=d&(1<<-c)-1,d>>=-c,c+=t;c>0;n=256*n+e[u],u--,c-=8);if(0===d)d=1-l;else{if(d===o)return n?NaN:h?-i:i;n+=r(2,t),d-=l}return(h?-1:1)*n*r(2,d-t)};e.exports={pack:l,unpack:c}},function(e,t,i){var n=i(696);n("Uint8",(function(e){return function(t,i,n){return e(this,t,i,n)}}))},function(e,t,i){"use strict";var n=i(21),r=i(31),a=i(42),s=i(697),o=i(56),l=i(665),c=i(135),u=i(90),h=i(61),d=i(41),m=i(666),f=i(667),g=i(99),y=i(44),p=i(143),v=i(43),_=i(97),b=i(161),L=i(91).f,w=i(699),M=i(57).forEach,k=i(182),O=i(39),T=i(98),S=i(75),C=i(141),j=S.get,E=S.set,I=O.f,D=T.f,P=Math.round,A=r.RangeError,x=l.ArrayBuffer,Y=l.DataView,N=o.NATIVE_ARRAY_BUFFER_VIEWS,F=o.TYPED_ARRAY_TAG,R=o.TypedArray,H=o.TypedArrayPrototype,G=o.aTypedArrayConstructor,z=o.isTypedArray,B="BYTES_PER_ELEMENT",V="Wrong length",U=function(e,t){var i=0,n=t.length,r=new(G(e))(n);while(n>i)r[i]=t[i++];return r},W=function(e,t){I(e,t,{get:function(){return j(this)[t]}})},q=function(e){var t;return e instanceof x||"ArrayBuffer"==(t=p(e))||"SharedArrayBuffer"==t},J=function(e,t){return z(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},K=function(e,t){return J(e,t=g(t,!0))?u(2,e[t]):D(e,t)},Z=function(e,t,i){return!(J(e,t=g(t,!0))&&v(i)&&y(i,"value"))||y(i,"get")||y(i,"set")||i.configurable||y(i,"writable")&&!i.writable||y(i,"enumerable")&&!i.enumerable?I(e,t,i):(e[t]=i.value,e)};a?(N||(T.f=K,O.f=Z,W(H,"buffer"),W(H,"byteOffset"),W(H,"byteLength"),W(H,"length")),n({target:"Object",stat:!0,forced:!N},{getOwnPropertyDescriptor:K,defineProperty:Z}),e.exports=function(e,t,i){var a=e.match(/\d+$/)[0]/8,o=e+(i?"Clamped":"")+"Array",l="get"+e,u="set"+e,g=r[o],y=g,p=y&&y.prototype,O={},T=function(e,t){var i=j(e);return i.view[l](t*a+i.byteOffset,!0)},S=function(e,t,n){var r=j(e);i&&(n=(n=P(n))<0?0:n>255?255:255&n),r.view[u](t*a+r.byteOffset,n,!0)},D=function(e,t){I(e,t,{get:function(){return T(this,t)},set:function(e){return S(this,t,e)},enumerable:!0})};N?s&&(y=t((function(e,t,i,n){return c(e,y,o),C(function(){return v(t)?q(t)?void 0!==n?new g(t,f(i,a),n):void 0!==i?new g(t,f(i,a)):new g(t):z(t)?U(y,t):w.call(y,t):new g(m(t))}(),e,y)})),b&&b(y,R),M(L(g),(function(e){e in y||h(y,e,g[e])})),y.prototype=p):(y=t((function(e,t,i,n){c(e,y,o);var r,s,l,u=0,h=0;if(v(t)){if(!q(t))return z(t)?U(y,t):w.call(y,t);r=t,h=f(i,a);var g=t.byteLength;if(void 0===n){if(g%a)throw A(V);if(s=g-h,s<0)throw A(V)}else if(s=d(n)*a,s+h>g)throw A(V);l=s/a}else l=m(t),s=l*a,r=new x(s);E(e,{buffer:r,byteOffset:h,byteLength:s,length:l,view:new Y(r)});while(u1?arguments[1]:void 0,y=void 0!==g,p=a(m);if(void 0!=p&&!s(p)){h=p.call(m),d=h.next,m=[];while(!(u=d.call(h)).done)m.push(u.value)}for(y&&f>2&&(g=o(g,arguments[2],2)),i=r(m.length),c=new(l(this))(i),t=0;i>t;t++)c[t]=y?g(m[t],t):m[t];return c}},function(e,t,i){"use strict";var n=i(56),r=i(701),a=n.aTypedArray,s=n.exportTypedArrayMethod;s("copyWithin",(function(e,t){return r.call(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,i){"use strict";var n=i(63),r=i(102),a=i(41),s=Math.min;e.exports=[].copyWithin||function(e,t){var i=n(this),o=a(i.length),l=r(e,o),c=r(t,o),u=arguments.length>2?arguments[2]:void 0,h=s((void 0===u?o:r(u,o))-c,o-l),d=1;c0)c in i?i[l]=i[c]:delete i[l],l+=d,c+=d;return i}},function(e,t,i){"use strict";var n=i(56),r=i(57).every,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("every",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=i(234),a=n.aTypedArray,s=n.exportTypedArrayMethod;s("fill",(function(e){return r.apply(a(this),arguments)}))},function(e,t,i){"use strict";var n=i(56),r=i(57).filter,a=i(142),s=n.aTypedArray,o=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod;l("filter",(function(e){var t=r(s(this),e,arguments.length>1?arguments[1]:void 0),i=a(this,this.constructor),n=0,l=t.length,c=new(o(i))(l);while(l>n)c[n]=t[n++];return c}))},function(e,t,i){"use strict";var n=i(56),r=i(57).find,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("find",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=i(57).findIndex,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("findIndex",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=i(57).forEach,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("forEach",(function(e){r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=i(126).includes,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("includes",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=i(126).indexOf,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("indexOf",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(31),r=i(56),a=i(232),s=i(32),o=s("iterator"),l=n.Uint8Array,c=a.values,u=a.keys,h=a.entries,d=r.aTypedArray,m=r.exportTypedArrayMethod,f=l&&l.prototype[o],g=!!f&&("values"==f.name||void 0==f.name),y=function(){return c.call(d(this))};m("entries",(function(){return h.call(d(this))})),m("keys",(function(){return u.call(d(this))})),m("values",y,!g),m(o,y,!g)},function(e,t,i){"use strict";var n=i(56),r=n.aTypedArray,a=n.exportTypedArrayMethod,s=[].join;a("join",(function(e){return s.apply(r(this),arguments)}))},function(e,t,i){"use strict";var n=i(56),r=i(660),a=n.aTypedArray,s=n.exportTypedArrayMethod;s("lastIndexOf",(function(e){return r.apply(a(this),arguments)}))},function(e,t,i){"use strict";var n=i(56),r=i(57).map,a=i(142),s=n.aTypedArray,o=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod;l("map",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(a(e,e.constructor)))(t)}))}))},function(e,t,i){"use strict";var n=i(56),r=i(630).left,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("reduce",(function(e){return r(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=i(630).right,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("reduceRight",(function(e){return r(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=n.aTypedArray,a=n.exportTypedArrayMethod,s=Math.floor;a("reverse",(function(){var e,t=this,i=r(t).length,n=s(i/2),a=0;while(a1?arguments[1]:void 0,1),i=this.length,n=s(e),o=r(n.length),c=0;if(o+t>i)throw RangeError("Wrong length");while(ca)u[a]=i[a++];return u}),u)},function(e,t,i){"use strict";var n=i(56),r=i(57).some,a=n.aTypedArray,s=n.exportTypedArrayMethod;s("some",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,i){"use strict";var n=i(56),r=n.aTypedArray,a=n.exportTypedArrayMethod,s=[].sort;a("sort",(function(e){return s.call(r(this),e)}))},function(e,t,i){"use strict";var n=i(56),r=i(41),a=i(102),s=i(142),o=n.aTypedArray,l=n.exportTypedArrayMethod;l("subarray",(function(e,t){var i=o(this),n=i.length,l=a(e,n);return new(s(i,i.constructor))(i.buffer,i.byteOffset+l*i.BYTES_PER_ELEMENT,r((void 0===t?n:a(t,n))-l))}))},function(e,t,i){"use strict";var n=i(31),r=i(56),a=i(28),s=n.Int8Array,o=r.aTypedArray,l=r.exportTypedArrayMethod,c=[].toLocaleString,u=[].slice,h=!!s&&a((function(){c.call(new s(1))})),d=a((function(){return[1,2].toLocaleString()!=new s([1,2]).toLocaleString()}))||!a((function(){s.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return c.apply(h?u.call(o(this)):o(this),arguments)}),d)},function(e,t,i){"use strict";var n=i(56).exportTypedArrayMethod,r=i(28),a=i(31),s=a.Uint8Array,o=s&&s.prototype||{},l=[].toString,c=[].join;r((function(){l.call({})}))&&(l=function(){return c.call(this)});var u=o.toString!=l;n("toString",l,u)},function(e,t,i){"use strict";var n={},r=Array.prototype,a=Object.prototype,s=r.slice,o=a.toString,l=a.hasOwnProperty,c=r.forEach,u=Object.keys,h=Array.isArray,d=function(){},m=d.each=d.forEach=function(e,t,i){if(null!=e)if(c&&e.forEach===c)e.forEach(t,i);else if(e.length===+e.length){for(var r=0,a=e.length;r":">",'"':""","'":"'"}},g={escape:new RegExp("["+d.keys(f.escape).join("")+"]","g")};d.each(["escape"],(function(e){d[e]=function(t){return null==t?"":(""+t).replace(g[e],(function(t){return f[e][t]}))}})),d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var y=/(.)^/,p={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},v=/\\|'|\r|\n|\t|\u2028|\u2029/g;d.template=function(e,t,i){var n;i=d.defaults({},i,d.templateSettings);var r=new RegExp([(i.escape||y).source,(i.interpolate||y).source,(i.evaluate||y).source].join("|")+"|$","g"),a=0,s="__p+='";e.replace(r,(function(t,i,n,r,o){return s+=e.slice(a,o).replace(v,(function(e){return"\\"+p[e]})),i&&(s+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"),n&&(s+="'+\n((__t=("+n+"))==null?'':__t)+\n'"),r&&(s+="';\n"+r+"\n__p+='"),a=o+t.length,t})),s+="';\n",i.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{n=new Function(i.variable||"obj","_",s)}catch(l){throw l.source=s,l}if(t)return n(t,d);var o=function(e){return n.call(this,e,d)};return o.source="function("+(i.variable||"obj")+"){\n"+s+"}",o},e.exports=d},function(e,t,i){var n=i(28),r=i(163),a="​…᠎";e.exports=function(e){return n((function(){return!!r[e]()||a[e]()!=a||r[e].name!==e}))}},function(e,t,i){var n=i(727);e.exports=n},function(e,t,i){i(669),i(732),i(671);var n=i(177);e.exports=n.URL},function(e,t,i){"use strict";var n=i(42),r=i(28),a=i(121),s=i(178),o=i(138),l=i(63),c=i(124),u=Object.assign,h=Object.defineProperty;e.exports=!u||r((function(){if(n&&1!==u({b:1},u(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol(),r="abcdefghijklmnopqrst";return e[i]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[i]||a(u({},t)).join("")!=r}))?function(e,t){var i=l(e),r=arguments.length,u=1,h=s.f,d=o.f;while(r>u){var m,f=c(arguments[u++]),g=h?a(f).concat(h(f)):a(f),y=g.length,p=0;while(y>p)m=g[p++],n&&!d.call(f,m)||(i[m]=f[m])}return i}:u},function(e,t,i){"use strict";var n=i(120),r=i(63),a=i(375),s=i(229),o=i(41),l=i(140),c=i(170);e.exports=function(e){var t,i,u,h,d,m=r(e),f="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,p=void 0!==y,v=0,_=c(m);if(p&&(y=n(y,g>2?arguments[2]:void 0,2)),void 0==_||f==Array&&s(_))for(t=o(m.length),i=new f(t);t>v;v++)l(i,v,p?y(m[v],v):m[v]);else for(h=_.call(m),d=h.next,i=new f;!(u=d.call(h)).done;v++)l(i,v,p?a(h,y,[u.value,v],!0):u.value);return i.length=v,i}},function(e,t,i){"use strict";var n=2147483647,r=36,a=1,s=26,o=38,l=700,c=72,u=128,h="-",d=/[^\0-\u007E]/,m=/[.\u3002\uFF0E\uFF61]/g,f="Overflow: input needs wider integers to process",g=r-a,y=Math.floor,p=String.fromCharCode,v=function(e){var t=[],i=0,n=e.length;while(i=55296&&r<=56319&&i>1,e+=y(e/t);e>g*s>>1;n+=r)e=y(e/g);return y(n+(g+1)*e/(e+o))},L=function(e){var t=[];e=v(e);var i,o,l=e.length,d=u,m=0,g=c;for(i=0;i=d&&oy((n-m)/k))throw RangeError(f);for(m+=(M-d)*k,d=M,i=0;in)throw RangeError(f);if(o==d){for(var O=m,T=r;;T+=r){var S=T<=g?a:T>=g+s?s:T-g;if(Oe[1]!==c>e[1]&&e[0]<(l-s)*(e[1]-o)/(c-o)+s;h&&(n=!n)}return n}function s(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}t.default=r},function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=i(77),a=i(369),s=n(i(735)),o=i(370),l=n(i(736));function c(e,t){var i={},n=[];if("LineString"===e.type&&(e=r.feature(e)),"LineString"===t.type&&(t=r.feature(t)),"Feature"===e.type&&"Feature"===t.type&&null!==e.geometry&&null!==t.geometry&&"LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var c=u(e,t);return c&&n.push(c),r.featureCollection(n)}var h=l.default();return h.load(s.default(t)),o.featureEach(s.default(e),(function(e){o.featureEach(h.search(e),(function(t){var r=u(e,t);if(r){var s=a.getCoords(r).join(",");i[s]||(i[s]=!0,n.push(r))}}))})),r.featureCollection(n)}function u(e,t){var i=a.getCoords(e),n=a.getCoords(t);if(2!==i.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==n.length)throw new Error(" line2 must only contain 2 coordinates");var s=i[0][0],o=i[0][1],l=i[1][0],c=i[1][1],u=n[0][0],h=n[0][1],d=n[1][0],m=n[1][1],f=(m-h)*(l-s)-(d-u)*(c-o),g=(d-u)*(o-h)-(m-h)*(s-u),y=(l-s)*(o-h)-(c-o)*(s-u);if(0===f)return null;var p=g/f,v=y/f;if(p>=0&&p<=1&&v>=0&&v<=1){var _=s+p*(l-s),b=o+p*(c-o);return r.point([_,b])}return null}t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(77),r=i(369),a=i(370);function s(e){if(!e)throw new Error("geojson is required");var t=[];return a.flattenEach(e,(function(e){o(e,t)})),n.featureCollection(t)}function o(e,t){var i=[],n=e.geometry;if(null!==n){switch(n.type){case"Polygon":i=r.getCoords(n);break;case"LineString":i=[r.getCoords(n)]}i.forEach((function(i){var n=l(i,e.properties);n.forEach((function(e){e.id=t.length,t.push(e)}))}))}}function l(e,t){var i=[];return e.reduce((function(e,r){var a=n.lineString([e,r],t);return a.bbox=c(e,r),i.push(a),r})),i}function c(e,t){var i=e[0],n=e[1],r=t[0],a=t[1],s=ir?i:r,c=n>a?n:a;return[s,o,l,c]}t.default=s},function(e,t,i){var n=i(653),r=i(77),a=i(370),s=i(737).default,o=a.featureEach,l=(a.coordEach,r.polygon,r.featureCollection);function c(e){var t=n(e);return t.insert=function(e){if("Feature"!==e.type)throw new Error("invalid feature");return e.bbox=e.bbox?e.bbox:s(e),n.prototype.insert.call(this,e)},t.load=function(e){var t=[];return Array.isArray(e)?e.forEach((function(e){if("Feature"!==e.type)throw new Error("invalid features");e.bbox=e.bbox?e.bbox:s(e),t.push(e)})):o(e,(function(e){if("Feature"!==e.type)throw new Error("invalid features");e.bbox=e.bbox?e.bbox:s(e),t.push(e)})),n.prototype.load.call(this,t)},t.remove=function(e,t){if("Feature"!==e.type)throw new Error("invalid feature");return e.bbox=e.bbox?e.bbox:s(e),n.prototype.remove.call(this,e,t)},t.clear=function(){return n.prototype.clear.call(this)},t.search=function(e){var t=n.prototype.search.call(this,this.toBBox(e));return l(t)},t.collides=function(e){return n.prototype.collides.call(this,this.toBBox(e))},t.all=function(){var e=n.prototype.all.call(this);return l(e)},t.toJSON=function(){return n.prototype.toJSON.call(this)},t.fromJSON=function(e){return n.prototype.fromJSON.call(this,e)},t.toBBox=function(e){var t;if(e.bbox)t=e.bbox;else if(Array.isArray(e)&&4===e.length)t=e;else if(Array.isArray(e)&&6===e.length)t=[e[0],e[1],e[3],e[4]];else if("Feature"===e.type)t=s(e);else{if("FeatureCollection"!==e.type)throw new Error("invalid geojson");t=s(e)}return{minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}},t}e.exports=c,e.exports.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(370);function r(e){var t=[1/0,1/0,-1/0,-1/0];return n.coordEach(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]1?n.multiLineString(e,t):n.lineString(e[0],t)}t.default=a,t.polygonToLine=s,t.multiPolygonToLine=o,t.coordsToLine=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(77),r=i(369);function a(e,t,i,a){void 0===a&&(a={});var s=r.getCoord(e),o=n.degreesToRadians(s[0]),l=n.degreesToRadians(s[1]),c=n.degreesToRadians(i),u=n.lengthToRadians(t,a.units),h=Math.asin(Math.sin(l)*Math.cos(u)+Math.cos(l)*Math.sin(u)*Math.cos(c)),d=o+Math.atan2(Math.sin(c)*Math.sin(u)*Math.cos(l),Math.cos(u)-Math.sin(l)*Math.sin(h)),m=n.radiansToDegrees(d),f=n.radiansToDegrees(h);return n.point([m,f],a.properties)}t.default=a},function(e,t,i){var n,r,a=i(663),s=i(664),o=0,l=0;function c(e,t,i){var c=t&&i||0,u=t||[];e=e||{};var h=e.node||n,d=void 0!==e.clockseq?e.clockseq:r;if(null==h||null==d){var m=a();null==h&&(h=n=[1|m[0],m[1],m[2],m[3],m[4],m[5]]),null==d&&(d=r=16383&(m[6]<<8|m[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:l+1,y=f-o+(g-l)/1e4;if(y<0&&void 0===e.clockseq&&(d=d+1&16383),(y<0||f>o)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=f,l=g,r=d,f+=122192928e5;var p=(1e4*(268435455&f)+g)%4294967296;u[c++]=p>>>24&255,u[c++]=p>>>16&255,u[c++]=p>>>8&255,u[c++]=255&p;var v=f/4294967296*1e4&268435455;u[c++]=v>>>8&255,u[c++]=255&v,u[c++]=v>>>24&15|16,u[c++]=v>>>16&255,u[c++]=d>>>8|128,u[c++]=255&d;for(var _=0;_<6;++_)u[c+_]=h[_];return t||s(u)}e.exports=c},function(e,t){ol.Feature.prototype.getProperty=function(e){if("attributes"===e){var t=this.getProperties();return this.getGeometryName()&&delete t[this.getGeometryName()],t}if("olcs_geometryType"===e){var i=this.getGeometry().getType();return"Polygon"===i?1:"LineString"===i?2:"Point"===i?3:"Circle"===i||"MultiPolygon"===i?1:"MultiLineString"===i?2:"MultiPoint"===i?3:void 0}return this.get(e)}},function(e,t){Cesium.Material._materialCache.addMaterial("Wallpaper",{fabric:{type:"Wallpaper",uniforms:{image:Cesium.Material.DefaultImageId,anchor:new Cesium.Cartesian2(0,0)},components:{diffuse:"texture2D(image, fract((gl_FragCoord.xy - anchor.xy) / vec2(imageDimensions.xy))).rgb",alpha:"texture2D(image, fract((gl_FragCoord.xy - anchor.xy) / vec2(imageDimensions.xy))).a"}},translucent:!1})},function(e,t,i){i(17),Cesium.Cesium3DTilePointFeature.prototype.getId=function(){return this.getProperty("id")||"".concat(this.content.url).concat(this._batchId)}},function(e,t,i){i(17),Cesium.Cesium3DTileFeature.prototype.getId=function(){return this.getProperty("id")||"".concat(this.content.url).concat(this._batchId)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";i.r(t),i.d(t,"vcs",(function(){return vv}));var n={};i.r(n),i.d(n,"Buildings",(function(){return Ua})),i.d(n,"CesiumTilesetLayer",(function(){return Ba})),i.d(n,"Czml",(function(){return Ka})),i.d(n,"Gltf",(function(){return Qa})),i.d(n,"PointCloud",(function(){return es})),i.d(n,"Terrain",(function(){return is})),i.d(n,"ObliqueLayer",(function(){return Yi})),i.d(n,"GeoJSON",(function(){return rs})),i.d(n,"SingleImage",(function(){return ls})),i.d(n,"OpenStreetMap",(function(){return us})),i.d(n,"TMSBase",(function(){return ds})),i.d(n,"Vector",(function(){return _n})),i.d(n,"TiledLayer",(function(){return or})),i.d(n,"VectorCluster",(function(){return fs})),i.d(n,"WFS",(function(){return ys})),i.d(n,"WMS",(function(){return _s})),i.d(n,"WMTS",(function(){return Ls})),i.d(n,"Wsv",(function(){return Ts})),i.d(n,"FeatureStore",(function(){return Ps}));var r={};i.r(r),i.d(r,"Legend",(function(){return ko})),i.d(r,"Planning",(function(){return Ec})),i.d(r,"Query",(function(){return Qh})),i.d(r,"Search",(function(){return Dd})),i.d(r,"AdvancedWalkMode",(function(){return Yd})),i.d(r,"BalloonInfo",(function(){return Fd})),i.d(r,"Copyright",(function(){return Hd})),i.d(r,"CreateLink",(function(){return zd})),i.d(r,"DisplayQuality",(function(){return mm})),i.d(r,"Drawing",(function(){return pm})),i.d(r,"Export",(function(){return nf})),i.d(r,"FeatureList",(function(){return af})),i.d(r,"Locator",(function(){return hd})),i.d(r,"Measurement",(function(){return Af})),i.d(r,"SingleMeasurement",(function(){return Yf})),i.d(r,"NavigationControls",(function(){return Rf})),i.d(r,"OverviewMap",(function(){return Gf})),i.d(r,"PDFCreator",(function(){return tg})),i.d(r,"PositionDisplay",(function(){return ag})),i.d(r,"Shadow",(function(){return og})),i.d(r,"TransparentTerrainMode",(function(){return fg})),i.d(r,"SwipeTool",(function(){return _g})),i.d(r,"Flight",(function(){return Lg})),i.d(r,"HeightProfile",(function(){return Pg})),i.d(r,"ClippingTool",(function(){return Gg})),i.d(r,"MultiView",(function(){return Bg})),i.d(r,"AttributeEditor",(function(){return vy})),i.d(r,"Viewshed",(function(){return Fy}));i(23),i(25),i(92),i(588),i(604),i(619),i(621);var a=i(53),s=(i(17),i(69),i(22),i(64),i(9),i(66),i(18),i(24),i(83),i(688),i(26),i(8),i(34),i(87),i(46),i(10),i(37));function o(e,t,i){var n,r=function(e,t){if(null==t)return e!==t&&"Expected ".concat(c.getErrorValue(e)," to be ").concat(t);var n=c.atomic(e,t);if(null!==n)return n;var r=c.value(e,t);if(null!==r)return r;if(Array.isArray(t))return c.array(e,t,i);if(t instanceof Function)return!(e instanceof t)&&"Expected ".concat(c.getErrorValue(e,!0)," to be of Type ").concat(c.getConstructorString(t));if(t===Object)return c.object(e,{});if("object"!==Object(s["a"])(t))throw new Error("Cannot handler pattern ".concat(t));var a=c.object(e,t);return a||!!i&&c.requireKeys(e,t)};if(Array.isArray(t)&&t.length>1){var a=t.every((function(t){var i=r(e,t);return i}));a&&(n="Expected ".concat(c.getErrorValue(e)," to be a ").concat(t.map((function(e){return c.getConstructorString(e)})).join(" or ")))}else n=r(e,t);if(n)throw new Error("Match failed: ".concat(n));return!1}function l(e,t,i){var n=[null,void 0];return Array.isArray(t)&&t.length>1?t.forEach((function(e){n.push(e)})):n.push(t),o(e,n.reverse(),i)}var c={};c.patterns=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void 0,"undefined"]],c.getErrorValue=function(e,t){if(null===e)return"null";if("undefined"===typeof e)return"undefined";if(t)return Object(s["a"])(e);var i;if(Array.isArray(e)){var n=e.map((function(e){return c.getErrorValue(e,t)}));i="[".concat(n.join(","),"]")}else try{i=JSON.stringify(e)}catch(r){i=Object(s["a"])(e)}return i.length>20?"".concat(i.substr(0,20),"..."):i},c.getConstructorString=function(e){if(null===e)return"null";var t=c.patterns.find((function(t){return t[0]===e}));if(t)return t[1];var i=e.toString();if(e.className)return e.className;var n=i.match(/function (.*)\(/);if(n&&n.length>1)return n[1];if(c.isPlainObject(e)){var r={};Object.keys(e).forEach((function(t){r[t]=c.getConstructorString(e[t])}));try{i="Object of ".concat(JSON.stringify(r))}catch(a){i="Object"}}return i},c.atomic=function(e,t){if(t===Number)return!Number.isFinite(e)&&"expected ".concat(c.getErrorValue(e)," to be a number, excluding NaN");for(var i=c.patterns.length;i--;)if(t===c.patterns[i][0])return Object(s["a"])(e)!==c.patterns[i][1]&&"expected ".concat(c.getErrorValue(e)," to be a ").concat(c.patterns[i][1]);return null},c.value=function(e,t){return"string"===typeof t||"number"===typeof t||"boolean"===typeof t?e!==t&&"Expected ".concat(c.getErrorValue(e)," to equal ").concat(t):null},c.array=function(e,t,i){if(Array.isArray(t)){if(1!==t.length)throw new Error("Array patterns may only have on type");if(Array.isArray(e)){var n=!1,r=e.findIndex((function(e){try{o(e,t[0],i)}catch(r){n=r.message.replace(/Match failed:\s/,"")}return n}));return r>-1&&"".concat(n," in ").concat(c.getErrorValue(e))}return"Expected ".concat(c.getErrorValue(e)," to be an Array")}return null},c.object=function(e,t,i){var n=i?"".concat(i,"."):"",r=c.isPlainObject(e);if(!r)return"Expected ".concat(c.getErrorValue(e)," to be a plain Object");var a=!1,s=Object.keys(t).find((function(i){var r=e[i];if(c.isPlainObject(t[i]))a=c.object(r,t[i],n+i);else try{o(r,t[i])}catch(s){a=s.message.replace(/Match failed:\s/,"")}return a}));return!!s&&"".concat(a," in object.").concat(n).concat(s)},c.isPlainObject=function(e){var t={};if(!e||"[object Object]"!==t.toString(e))return!1;var i=Object.getPrototypeOf(e);if(!i)return!0;var n=t.hasOwnProperty,r=n.call(i,"constructor")&&i.constructor;return"function"===typeof r&&n.toString.call(r)===n.toString.call(Object)},c.requireKeys=function(e,t,i){var n=i?"".concat(i,"."):"",r=!1,a=Object.keys(e).find((function(i){if(c.isPlainObject(t[i])){var a=e[i];r=c.requireKeys(a,t[i],n+i)}else t[i]||(r="Found additional key ".concat(n).concat(i));return r=!!r&&r.replace(/\sin.*/,""),r}));return!!a&&"".concat(r," in ").concat(c.getErrorValue(e))};var u=i(7),h=i(50),d=(i(114),i(104),i(35),i(20),i(1)),m=i(0),f=(i(48),i(49),i(36),i(33),i(30),i(12),i(52),i(55),i(67),i(29)),g=i(14),y={OFF:1,ERROR:2,WARN:4,INFO:8,DEBUG:16},p={ERROR:0,WARN:0,INFO:0,DEBUG:0};p.ERROR=y.ERROR|y.WARN|y.INFO|y.DEBUG,p.WARN=y.WARN|y.INFO|y.DEBUG,p.INFO=y.INFO|y.DEBUG,p.DEBUG=y.DEBUG;var v,_=y.INFO,b=!1,L={},w=new Map;w.set(y.ERROR,"error"),w.set(y.WARN,"warn"),w.set(y.INFO,"info"),w.set(y.DEBUG,"log");var M=function(){function e(t){Object(d["a"])(this,e),this.className=t,this.deprecations=new Map}return Object(m["a"])(e,null,[{key:"loggers",get:function(){return L}},{key:"enabled",get:function(){return Object.keys(y).find((function(e){return y[e]===_}))||"OFF"},set:function(e){if(e){var t="string"===typeof e?e.toUpperCase():"INFO";_=y[t]||y.INFO}else _=y.OFF}},{key:"timestamp",get:function(){return b},set:function(e){b=e}}]),Object(m["a"])(e,[{key:"error",value:function(e){if(o(e,String),_&p.ERROR){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n=0&&(this.defaultLocale=a)}},{key:"setDefaultLocale",value:function(e){this.defaultLocale=this.availableLocales[0],e&&this.isLanguageAvailable(e)&&(this.defaultLocale=e);var t=this.detectBrowserLocale();t&&this.isLanguageAvailable(t)&&(this.defaultLocale=t)}},{key:"setConfig",value:function(e){for(var t in e)if(this.isLanguageAvailable(t)){for(var i=0;i0?this.languages[0].data:null}},{key:"getLocale",value:function(){return this.currentlocale?this.currentlocale:this.defaultLocale}},{key:"setLocale",value:function(e){e||(e=this.defaultLocale),this.currentlocale!=e&&(this.currentlocale=e,this.translateAll(),G.getInstance().publish(O.LOCALE_CHANGED,this.currentlocale))}},{key:"getRegisteredLanguages",value:function(){for(var e=[],t=0;t0&&0==this.publishDepth_)while(l=this.pendingKeys_.pop())this.unsubscribeByKey(l)}}return 0!=a}return!1}},{key:"clear",value:function(e){if(e){var t=this.topics_[e];t&&(t.forEach(this.unsubscribeByKey,this),delete this.topics_[e])}else this.subscriptions_.length=0,this.topics_={}}},{key:"getCount",value:function(e){if(e){var t=this.topics_[e];return t?t.length:0}var i=0;for(var n in this.topics_)i+=this.getCount(n);return i}},{key:"disposeInternal",value:function(){this.clear(),this.pendingKeys_.length=0}}]),e}(),x=A,Y=function e(){Object(d["a"])(this,e),this.projection=null},N=new Y,F=0,R=Symbol("VcsConfigStyle"),H=function(){function e(){Object(d["a"])(this,e),this.widgets={},this.maps={},this.layers={},this.viewpoints={},this.styles={},this.flights={},this.activemap=null,this.lastactivemap=null,this.startingmap="",this.startViewPoint=null,this.mapcontainer=null,this.urlParameter=null,this.pubsub=new x,this.logger=k.getLogger("vcs.vcm.Framework"),this.layerIndexCounter=0,this.numberOfLocales=0,this.initialized=!1,this.exclusiveListener={id:null,listeners:[],removedCallback:null},this.config={},this.currentLocale=null,this.libraryBasePath="",this.baseUrl="",this.isIE11=!!window.MSInputMethodContext&&!!document.documentMode}return Object(m["a"])(e,[{key:"setInitialized",value:function(e){this.initialized=e}},{key:"isInitialized",value:function(){return this.initialized}},{key:"loadLibraries",value:function(e,t,i){this.libs||(this.libs={});for(var n=[],r=0;r0)this.unsubscribeByKey(this.exclusiveListener.listeners.shift())}P.getInstance().deactivateClickBehavior(),this.exclusiveListener.id=e,this.exclusiveListener.removedCallback=t}},{key:"clearExclusive",value:function(){P.getInstance().activateClickBehavior(),this.exclusiveListener.id=null,this.exclusiveListener.removedCallback=null}},{key:"unsubscribe",value:function(e,t,i){this.logger.deprecate("unsubscribe","use the unsubscribeByKey mechanic"),this.pubsub.unsubscribe(e,t,i)}},{key:"unsubscribeByKey",value:function(e){var t=this.exclusiveListener.listeners.indexOf(e);t>-1&&(this.exclusiveListener.listeners.splice(t,1),0===this.exclusiveListener.listeners.length&&this.clearExclusive()),this.pubsub.unsubscribeByKey(e)}},{key:"publish",value:function(e){for(var t,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};Object(d["a"])(this,e),this._proj4=null;var i="";if(t.epsg&&(i=e.parseEPSGCode(t.epsg),i&&(t.proj4&&(this._proj4=t.proj4,proj4.defs(i,t.proj4)),t.alias&&Array.isArray(t.alias)))){var n=t.alias;n.forEach((function(e){proj4.defs(e,proj4.defs(i))}),this)}this._epsg=i,this.proj||(this._epsg=N.projection?N.projection.epsg:"EPSG:4326")}return Object(m["a"])(e,[{key:"getProjection",value:function(){return Z.deprecate("getProjection","Access the property proj directly"),this.proj}},{key:"getEPSG",value:function(){return Z.deprecate("getEPSG","Access the property epsg directly"),this.epsg}},{key:"getPROJ4",value:function(){return Z.deprecate("getPROJ4","Access the property proj4 directly"),this.proj4}},{key:"transformTo",value:function(t,i){return e.transform(t,this,i)}},{key:"transformFrom",value:function(t,i){return e.transform(this,t,i)}},{key:"getConfigObject",value:function(){var e={epsg:this.epsg};return this.proj4&&(e.proj4=this.proj4),e}},{key:"epsg",get:function(){return this._epsg}},{key:"proj4",get:function(){return this._proj4}},{key:"proj",get:function(){return ol.proj.get(this.epsg)}}],[{key:"transform",value:function(e,t,i){var n=ol.proj.getTransform(t.proj,e.proj),r=new Array(2);return n([i[0],i[1]],r,2),i.length>2&&r.push(i[2]),r}},{key:"transformCoordinates",value:function(t,i,n){for(var r=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:"EPSG:",i="".concat(e).match(/^(?:epsg:)?(\d+)/i);return i&&i[1]?"".concat(t).concat(i[1]):""}}]),e}(),X=Q,$=new Q({epsg:4326}),ee=new Q({epsg:3857}),te=1,ie=function(){function e(){Object(d["a"])(this,e)}return Object(m["a"])(e,null,[{key:"getNextBit",value:function(e){return e<<1}},{key:"interactionTypeCounter",get:function(){return te}}]),e}(),ne={NONE:te=ie.getNextBit(te),ALT:te=ie.getNextBit(te),CTRL:te=ie.getNextBit(te),SHIFT:te=ie.getNextBit(te),ALL:0};ne.ALL=ne.NONE|ne.ALT|ne.CTRL|ne.SHIFT;var re={NONE:0,CLICK:te=ie.getNextBit(te),DBLCLICK:te=ie.getNextBit(te),DRAG:te=ie.getNextBit(te),DRAGSTART:te=ie.getNextBit(te),DRAGEND:te=ie.getNextBit(te),MOVE:te=ie.getNextBit(te),DRAGEVENTS:0,CLICKMOVE:0,ALL:0};re.DRAGEVENTS=re.DRAG|re.DRAGEND|re.DRAGSTART,re.CLICKMOVE=re.CLICK|re.MOVE,re.ALL=Object.values(re).reduce((function(e,t){return e|t}),0);var ae={LEFT:te=ie.getNextBit(te),RIGHT:te=ie.getNextBit(te),MIDDLE:te=ie.getNextBit(te),ALL:0};ae.ALL=ae.LEFT|ae.RIGHT|ae.CENTER;var se=0;function oe(){return se+=1,se}var le=function(){function e(){Object(d["a"])(this,e),this.id=oe(),this._defaultActive=re.NONE,this.active=this._defaultActive,this._defaultModificationKey=ne.NONE,this.modificationKey=this._defaultModificationKey,this._defaultPointerKey=ae.LEFT,this.pointerKey=this._defaultPointerKey}return Object(m["a"])(e,[{key:"initialize",value:function(){this.handleMapChange(G.getInstance().getActiveMap())}},{key:"handleMapChange",value:function(e){}},{key:"pipe",value:function(e){return this.pipeThrough(e)}},{key:"pipeThrough",value:function(e){return Promise.resolve(e)}},{key:"setActive",value:function(e){"undefined"===typeof e?(this.active=this._defaultActive,this.modificationKey=this._defaultModificationKey,this.pointerKey=this._defaultPointerKey):this.active="boolean"===typeof e?e?this._defaultActive:re.NONE:e}},{key:"setModification",value:function(e){this.modificationKey=e||this._defaultModificationKey}},{key:"setPointer",value:function(e){this.pointerKey=e||this._defaultPointerKey}}]),e}(),ce=le,ue=i(3),he=i(4),de=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.chain=e||[],n._defaultActive=re.ALL,n._defaultModificationKey=ne.ALL,n._defaultPointerKey=ae.ALL,n.setActive(),n}return Object(m["a"])(i,[{key:"addInteraction",value:function(e,t){null!=t?this.chain.splice(t,0,e):this.chain.push(e)}},{key:"removeInteraction",value:function(e){var t=this.chain.findIndex((function(t){return t.id===e.id}));return t>-1&&this.chain.splice(t,1),t}},{key:"initialize",value:function(){this.chain.forEach((function(e){e.initialize()}))}},{key:"handleMapChange",value:function(e){this.chain.forEach((function(t){t.handleMapChange(e)}))}},{key:"pipe",value:function(e){for(var t=Promise.resolve(e),i=this.chain.length,n=0;n1&&this.groundPosition.length<4}if(!e&&!t)throw new Error("Viewpoint is missing position");return t&&o(this.distance,Number),o(this.heading,Number),o(this.pitch,Number),o(this.roll,Number),!0}catch(i){return!1}}},{key:"easingFunction",get:function(){return this.easingFunctionName?Cesium.EasingFunction[this.easingFunctionName]:null}}],[{key:"createViewPointFromExtent",value:function(t){if(t&&4===t.length){var i=t[0],n=t[1],r=t[2],a=t[3],s=[(r-i)/2+i,(a-n)/2+n],o=0,l=Math.max(r-i,a-n);return o=l<.001?400:3e5*l,new e({name:"viewpointFromExtend",distance:o,groundPosition:s,heading:360,pitch:-90,roll:0,animate:!0})}return null}},{key:"parseURLparameter",value:function(t){var i=t.cameraPosition,n=t.groundPosition;if(null!=i&&(i=i.split(",").map((function(e){return Number(e)}))),null!=n&&(n=n.split(",").map((function(e){return Number(e)}))),null!=t.epsg){var r=X.parseUrlParameter(t),a=$;n&&(n=X.transform(a,r,n)),i&&(i=X.transform(a,r,i))}var s={cameraPosition:i,groundPosition:n,distance:Number(t.distance),pitch:Number(t.pitch),heading:Number(t.heading),roll:Number(t.roll)};return new e(s)}}]),e}(),ke=Me,Oe=(i(168),i(169),i(105),i(661),i(27)),Te=null,Se=function(){function e(){Object(d["a"])(this,e),this.className="vcs.vcm.NavigationMode",this.logger=k.getLogger(this.className),this.timeLastTick=null,this.lookFactor=.05,this.moveFactor=1,this.framework=G.getInstance(),this.allowHeightChanges=!1,this.useAbsoluteHeight=!1,this.referenceHeight=1.6,this.navActive=!1,this.initialized=!1,this.clockListenerRemover=null,this.boundClockTickHandler=this.clockOnTickHandler.bind(this),this.values={referenceHeight:this.referenceHeight,active:!1,walkmode:!1},this.flags={looking:!1,moveForward:!1,moveBackward:!1,moveUp:!1,moveDown:!1,moveLeft:!1,moveRight:!1,increaseFOV:!1,decreaseFOV:!1,rotation:!1,tiltUp:!1,tiltDown:!1,rotateEast:!1,rotateWest:!1},this.heading=null,this.defaultFOV=null}return Object(m["a"])(e,[{key:"setOptions",value:function(e){this.referenceHeight=e.referenceHeight||this.referenceHeight,this.moveFactor=e.moveFactor||this.moveFactor}},{key:"getLink",value:function(e){var t=this.framework.getActiveMap();this.navActive&&"vcs.vcm.maps.Cesium"===t.className&&e.addQueryParams({nav_uah:this.useAbsoluteHeight,nav_ahc:this.allowHeightChanges,nav_rh:this.referenceHeight})}},{key:"handleURLParameter",value:function(e){e.nav_rh&&(this.referenceHeight=e.nav_rh,this.values.referenceHeight=this.referenceHeight,this.activateFirstPersonMode(null,null,null,e.nav_ahc,e.nav_uah))}},{key:"isActive",value:function(){return this.logger.deprecate("isActive","access the navActive property directly"),this.navActive}},{key:"setFlags",value:function(e){var t=this;Object.entries(e).forEach((function(e){var i=Object(Oe["a"])(e,2),n=i[0],r=i[1];null!=t.flags[n]&&(t.flags[n]=r)}))}},{key:"setFlag",value:function(e,t){this.logger.deprecate("setFlag","access the flags property directly."),this.flags[e]=t}},{key:"activateFirstPersonMode",value:function(e,t,i,n,r){var a=this,s=this.framework.getActiveMap();if("vcs.vcm.maps.Cesium"===s.className){if(this.activateOverviewControls(!1),this.useAbsoluteHeight=r||!1,this.allowHeightChanges="boolean"===typeof n?n:this.allowHeightChanges,e){e.animate=!0,e.duration=t||e.duration;var o=i||null;this.navActive=!1,s.gotoViewPoint(e,null,o).then((function(){a.navActive=!0,a.activateFirstPersonControls(!0)}))}else this.navActive=!0,this.activateFirstPersonControls(!0);Object.keys(this.flags).forEach((function(e){a.flags[e]=!1})),this.values.walkmode=!0}else this.logger.warning("First person mode only available on Cesium (3D) map")}},{key:"activateOverviewMode",value:function(e,t,i){var n=this,r=this.framework.getActiveMap();if("vcs.vcm.maps.Cesium"===r.className)if(this.useAbsoluteHeight=!1,this.values.referenceHeight=1.6,this.navActive=!1,this.values.walkmode=!1,this.activateFirstPersonControls(!1),e){e.animate=!0,e.duration=t||e.duration;var a=i||null;r.gotoViewPoint(e,null,a).then((function(){n.activateOverviewControls(!0)}))}else this.activateOverviewControls(!0);else this.logger.warning("First person mode only available on Cesium (3D) map")}},{key:"activateFirstPersonControls",value:function(e){var t=this;if(e&&this.navActive)if(this.initializeCesium()){var i=this.cesiumMap.getViewPoint(!1),n=this.cesiumScene.globe.getHeight(Cesium.Cartographic.fromDegrees(i.cameraPosition[0],i.cameraPosition[1]));this.useAbsoluteHeight&&(this.values.referenceHeight=i.cameraPosition[2]-n),this.correctCurrentHeight(n),this.cesiumHandler.setInputAction((function(e){t.flags.looking=!0,t.startMousePosition=Cesium.Cartesian3.clone(e.position),t.mousePosition=t.startMousePosition}),Cesium.ScreenSpaceEventType.LEFT_DOWN),this.cesiumHandler.setInputAction((function(e){t.mousePosition=e.endPosition}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),this.cesiumHandler.setInputAction((function(){t.flags.looking=!1}),Cesium.ScreenSpaceEventType.LEFT_UP),this.clockListenerRemover&&this.clockListenerRemover(),this.clockListenerRemover=this.cesiumViewer.clock.onTick.addEventListener(this.boundClockTickHandler)}else this.logger.warning("Could not initialize, is Cesium active");else this.initialized&&(null!==this.defaultFOV&&(this.cesiumViewer.camera.frustum.fov=this.defaultFOV),this.clockListenerRemover&&this.clockListenerRemover(),this.cesiumHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOWN),this.cesiumHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_UP),this.cesiumHandler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE))}},{key:"initializeCesium",value:function(){return this.initialized||(this.cesiumMap=this.framework.getMapByType("vcs.vcm.maps.Cesium"),this.cesiumMap&&(this.cesiumViewer=this.cesiumMap.getCesiumWidget(),this.defaultFOV=this.cesiumViewer.camera.frustum.fov,this.cesiumScene=this.cesiumMap.getScene(),this.cesiumCanvas=this.cesiumScene.canvas,this.cesiumCanvas.setAttribute("tabindex","0"),this.cesiumCanvas.onclick=function(){this.cesiumCanvas.focus()}.bind(this),this.cesiumHandler=new Cesium.ScreenSpaceEventHandler(this.cesiumCanvas),this.cesiumEllipsoid=this.cesiumScene.globe.ellipsoid,this.initialized=!0)),!0}},{key:"activateOverviewControls",value:function(e){this.initializeCesium()?(this.cesiumScene.screenSpaceCameraController.enableRotate=e,this.cesiumScene.screenSpaceCameraController.enableTranslate=e,this.cesiumScene.screenSpaceCameraController.enableZoom=e,this.cesiumScene.screenSpaceCameraController.enableTilt=e,this.cesiumScene.screenSpaceCameraController.enableLook=e):this.logger.warning("Could not initialize, is Cesium active")}},{key:"clockOnTickHandler",value:function(e){if(!this.cesiumMap.movementDisabled){var t=this.timeLastTick?e.currentTime.secondsOfDay-this.timeLastTick.secondsOfDay:1/60;(t<=0||t>1)&&(t=1/60);var i=t/(1/60);this.timeLastTick=e.currentTime;var n=this.cesiumViewer.camera,r=this.lookFactor*i;if(this.flags.increaseFOV&&(n.frustum.fov=n.frustum.fov+.01>=5*Math.PI/8?n.frustum.fov:n.frustum.fov+.01),this.flags.decreaseFOV&&(n.frustum.fov=n.frustum.fov-.01<=Math.PI/10?Math.PI/10:n.frustum.fov-.01),this.flags.looking){var a=this.cesiumCanvas.clientWidth,s=this.cesiumCanvas.clientHeight,o=(this.mousePosition.x-this.startMousePosition.x)/a,l=-(this.mousePosition.y-this.startMousePosition.y)/s;n.look(n.position,r*o),n.lookUp(l*r)}if(this.flags.rotation&&n.look(n.position,r/10),this.flags.tiltUp&&n.lookUp(r/10),this.flags.tiltDown&&n.lookUp(-r/10),this.flags.rotateEast&&n.look(n.position,r/10),this.flags.rotateWest&&n.look(n.position,-r/10),null!==this.heading){var c=Cesium.Math.toRadians(this.heading)-n.heading;n.look(n.position,c),this.heading=null}var u=this.cesiumEllipsoid.cartesianToCartographic(n.position).height,h=this.cesiumScene.globe.getHeight(this.cesiumEllipsoid.cartesianToCartographic(n.position));h&&!this.useAbsoluteHeight||(h=u-this.referenceHeight);var d=(u-h)/30*i*this.moveFactor,m={heading:n.heading,pitch:n.pitch,roll:0},f=Cesium.Math.PI/2-.1;m.pitch>f&&(m.pitch=f),n.setView({orientation:{heading:n.heading,pitch:0,roll:0}}),this.flags.moveForward&&n.moveForward(d),this.flags.moveBackward&&n.moveBackward(d),this.flags.moveUp&&(this.referenceHeight+=d/2,this.values.referenceHeight=Number(this.referenceHeight.toFixed(2))),this.flags.moveDown&&(this.referenceHeight-=d/2,this.referenceHeight<1&&(this.referenceHeight=1),this.values.referenceHeight=Number(this.referenceHeight.toFixed(2))),this.flags.moveLeft&&n.moveLeft(d),this.flags.moveRight&&n.moveRight(d),this.correctCurrentHeight(h,m)}}},{key:"correctCurrentHeight",value:function(e,t){var i,n=this.cesiumViewer.camera,r=t||{heading:n.heading,pitch:n.pitch,roll:0};if(null==e||this.allowHeightChanges)n.setView({orientation:r});else{var a=n.positionCartographic,s=Number.parseFloat(this.values.referenceHeight.toString());Number.isNaN(s)||s.toFixed(2)===this.referenceHeight.toFixed(2)||(this.referenceHeight=s),this.values.referenceHeight=Number(this.referenceHeight.toFixed(2)),a.height=e+this.referenceHeight,i=Cesium.Cartesian3.fromRadians(a.longitude,a.latitude,a.height),n.setView({destination:i,orientation:r})}}},{key:"setValues",value:function(e){o(e,{referenceHeight:Number,active:Boolean,walkmode:Boolean},!1),this.values=e}},{key:"setHeading",value:function(e){this.logger.deprecate("setHeading","set the heading property instead"),this.heading=e}}],[{key:"getInstance",value:function(){return Te||(Te=new e),Te}},{key:"dispose",value:function(){Te=null}}]),e}(),Ce=Se,je=k.getLogger("vcs.vcm.util.Extent");function Ee(e){return!(!e||!Array.isArray(e)||4!==e.length)&&(!!(Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2])&&Number.isFinite(e[3]))&&(e[0]<=e[2]&&e[1]<=e[3]))}var Ie=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(d["a"])(this,e),this.projection=new X({epsg:t.epsg,proj4:t.proj4,alias:t.alias}),this.extent=t.coordinates||this.projection.proj.getExtent()}return Object(m["a"])(e,[{key:"getProjection",value:function(){return je.deprecate("getProjection","access the .projection property directly"),this.projection}},{key:"getCoordinatesInProjection",value:function(e,t){if(e.epsg===this.projection.epsg){var i=t?t.splice.apply(t,[0,4].concat(Object(g["a"])(this.extent))):this.extent.slice();return i}var n=X.getTransformer(e,this.projection),r=t||[];return n(this.extent,r,2),r}},{key:"isValid",value:function(){return Ee(this.extent)}},{key:"getConfigObject",value:function(){return Object.assign({coordinates:this.extent.slice()},this.projection.getConfigObject())}},{key:"clone",value:function(){return new e(this.getConfigObject())}},{key:"inputCoordinates",get:function(){return je.deprecate("inputCoordinates","use .extent instead"),this.extent},set:function(e){je.deprecate("inputCoordinates","use .extent instead"),this.extent=e}}],[{key:"validateOptions",value:function(e){return X.validateOptions(e)&&Ee(e.coordinates)}},{key:"WGS_84_EXTENT",get:function(){return[-180,-90,180,90]}}]),e}(),De=Ie,Pe={VECTOR:"vector",DECLARATIVE:"declarative",REFERENCE:"reference"},Ae=function(){function e(t){Object(d["a"])(this,e),this.className=t.className||"vcs.vcm.util.style.StyleItem",this.name=t.name||t.id||Object(u["c"])(),this.title=t.title||this.name.toString(),this.legend=t.legend||[],this.supportedLayers=[],this.cesiumStyle=new Cesium.Cesium3DTileStyle({show:!0}),this.styleChanged=new Cesium.Event,this.colorBlendMode=Object(u["f"])(t.colorBlendMode,Cesium.Cesium3DTileColorBlendMode,Cesium.Cesium3DTileColorBlendMode.HIGHLIGHT),this.style=null}return Object(m["a"])(e,[{key:"isSupported",value:function(e){return 0===this.supportedLayers.length||this.supportedLayers.indexOf(e)>-1}},{key:"getOptions",value:function(e){return e&&e.meta?{name:this.name.toString(),title:this.title,legend:this.legend.length?this.legend:void 0}:{}}},{key:"clone",value:function(e){return e}},{key:"assign",value:function(e){return e}},{key:"getReference",value:function(){return{type:Pe.REFERENCE,name:this.name.toString()}}},{key:"_styleChanged",value:function(){this.styleChanged.raiseEvent()}}]),e}(),xe=Ae,Ye=k.getLogger("vcs.vcm.util.style.StyleHelpers"),Ne={NWSE:1,SWNE:2,DIAGONALCROSS:3,NS:4,WE:5,CROSS:6};function Fe(e,t){var i=e.substring(1);return 3===i.length&&(i=i.replace(/([\w\d])/g,"$1$1")),[parseInt(i.substring(0,2),16),parseInt(i.substring(2,4),16),parseInt(i.substring(4,6),16),null!=t?t:1]}function Re(e){var t=e.toBytes();return t[3]/=255,t}function He(e){if(Array.isArray(e))return 3===e.length&&e.push(1),e;if("string"===typeof e){if(/^#/.test(e))return Fe(e);if(/^rgba?\((\d+(,\s?)?){3}((0|1)(\.\d+)?)?\)/.test(e)){var t=e.replace(/^rgba?\(([\s\S]+?)\)/,"$1").replace(/\s/,"").split(",").map((function(e){return Number(e)}));return 3===t.length&&t.push(1),t}}if(e instanceof CanvasPattern)return[255,255,255,.4];throw new Error("Cannot parse color ".concat(e))}function Ge(e){return"rgba(".concat(He(e).join(","),")")}function ze(e,t){var i=ol.has.DEVICE_PIXEL_RATIO,n=t||document.createElement("canvas");t&&n.width||(n.width=(e.pattern.size||10)*i,n.height=(e.pattern.size||10)*i);var r=n.getContext("2d"),a=n.width;function s(t,i){r.strokeStyle=Ge(e.pattern.color),r.lineWidth=e.pattern.width,r.lineCap="square",r.beginPath(),r.moveTo(t[0],t[1]),r.lineTo(i[0],i[1]),r.stroke()}switch(r.fillStyle=Ge(e.color),r.fillRect(0,0,a,a),e.pattern.type){case 1:s([a/2,a],[a,a/2]),s([0,a/2],[a/2,0]);break;case 2:s([a/2,a],[0,a/2]),s([a,a/2],[a/2,0]);break;case 3:s([a/2,a],[a,a/2]),s([0,a/2],[a/2,0]),s([a/2,a],[0,a/2]),s([a,a/2],[a/2,0]);break;case 4:s([a/2,0],[a/2,a]);break;case 5:s([0,a/2],[a,a/2]);break;case 6:s([a/2,0],[a/2,a]),s([0,a/2],[a,a/2]);break;default:return null}return r.createPattern(n,"repeat")}function Be(e){function t(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}return e.slice(0,3).reduce((function(e,i){return"".concat(e).concat(t(i))}),"#")}function Ve(e){return/^#[0-9a-f]{6}$/.test(e)}function Ue(e){if("string"!==typeof e)return e;var t=null,i=null,n="normal",r="normal",a="normal",s="normal";return e.split(/\s+/).forEach((function(e){switch(e){case"normal":break;case"italic":case"oblique":n=e;break;case"small-caps":a=e;break;case"bold":case"bolder":case"lighter":case"100":case"200":case"300":case"400":case"500":case"600":case"700":case"800":case"900":r=e;break;default:if(!i){var o=e.split("/");i=o[0],o.length>1&&(s=o[1]);break}t=t?"".concat(t," ").concat(e):e;break}})),{fontStyle:n,fontVariant:a,fontWeight:r,fontSize:i,lineHeight:s,fontFamily:t}}function We(e){var t=["fontStyle","fontVariant","fontWeight","fontSize","fontFamily"],i=null;return Object.entries(e).filter((function(e){return"normal"!==e[1]&&"lineWeight"!==e[0]})).sort((function(e,i){var n=t.indexOf(e[0]),r=t.indexOf(i[0]);return nr?1:0})).forEach((function(e){i=i?"".concat(i," ").concat(e[1]):e[1]})),i||""}function qe(e,t,i,n){for(var r=n||[0,0],a=e.getImageData(r[0],r[1],i[0],i[1]),s=a.data,o=Object(Oe["a"])(t,3),l=o[0],c=o[1],u=o[2],h=s.length,d=0;d=0))&&t.supportsLayer(this)}},{key:"isActive",value:function(){return this.logger.deprecate("isActive","access the active property"),this.active}},{key:"activate",value:function(e){var t=this;return null!=e&&this.logger.deprecate("activate","activate no longer accepts an argument, use deactivate to deactivate the layer"),!1===e?(this.deactivate(),Promise.resolve()):this.isSupported()?(this._state&Yt.CANCELED&&this.setStateLoading(),this._loadingPromise?this._loadingPromise:this._state&(Yt.INACTIVE|Yt.SYNCING)?(this.setStateLoading(),this.framework.publish(O.LAYER_CHANGED,this),this._loadingPromise=this.initialize().then((function(){if(t._state&Yt.LOADING){var e=!(t._state&Yt.SYNCING);t._state=Yt.ACTIVE,t.show(),t.globalHider.hideObjects(t.hiddenObjectIds),e&&t.framework.publish(O.LAYER_ACTIVATED,t)}else{var i=t._state&Yt.SYNCING;t._state=Yt.INACTIVE,i&&(t.framework.publish(O.LAYER_DEACTIVATED,t),t.globalHider.showObjects(t.hiddenObjectIds))}t.framework.publish(O.LAYER_CHANGED,t),t._loadingPromise=null})).catch((function(e){return t._state=Yt.INACTIVE,t._loadingPromise=null,Promise.reject(e)})),this._loadingPromise):Promise.resolve()):Promise.resolve()}},{key:"deactivate",value:function(){this.active&&this.initialized?(this.hide(),this._state=Yt.INACTIVE,this.framework.publish(O.LAYER_DEACTIVATED,this),this.framework.publish(O.LAYER_CHANGED,this),this.globalHider.showObjects(this.hiddenObjectIds)):this._state&Yt.LOADING&&this._setStateCanceled()}},{key:"setStateLoading",value:function(){this._state|=Yt.LOADING,this._state&Yt.CANCELED&&(this._state^=Yt.CANCELED)}},{key:"_setStateCanceled",value:function(){this._state|=Yt.CANCELED,this._state&Yt.LOADING&&(this._state^=Yt.LOADING)}},{key:"dispose",value:function(){this.framework.removeLayer(this)}},{key:"show",value:function(){}},{key:"hide",value:function(){}},{key:"getGenericFeatureFromClickedObject",value:function(e){return this.logger.warning("This method should be implemented by any specific layers"),null}},{key:"addGenericFeatureProperties",value:function(e){o(e,Object),Object.assign(this._genericFeatureProperties,e)}},{key:"isCommonLayer",value:function(){return!1}},{key:"handleURLParameter",value:function(e){}},{key:"highlight",value:function(e){this.featureVisibility&&this.featureVisibility.highlight(e)}},{key:"unHighlight",value:function(e){this.featureVisibility&&this.featureVisibility.unHighlight(e)}},{key:"clearHighlighting",value:function(){this.featureVisibility&&this.featureVisibility.clearHighlighting()}},{key:"hideObjects",value:function(e){this.featureVisibility&&this.featureVisibility.hideObjects(e)}},{key:"showObjects",value:function(e){this.featureVisibility&&this.featureVisibility.showObjects(e)}},{key:"clearHiddenObjects",value:function(){this.featureVisibility&&this.featureVisibility.clearHiddenObjects()}},{key:"determineHighlightStyle",value:function(e,t){return null}},{key:"getStyleOrDefaultStyle",value:function(e,t){if("string"===typeof e){var i=this.framework.getStyleByName(e);if(i)return i;this.logger.warning("could not find style with name ".concat(e))}else{if(e&&e instanceof xe)return e;if(e){if(e.type===Pe.DECLARATIVE||e.declarativeStyle)return new Ct(e);if(e.type!==Pe.REFERENCE){var n=new dt(e);return t?t.assign(n):n}var r=e.name,a=this.framework.getStyleByName(r);if(a)return a;this.logger.warning("could not find style with name ".concat(r))}}return t||jt.clone()}},{key:"setStyle",value:function(e,t){o(e,[ol.style.Style,xe,Function,String]);var i=this._style;if("string"===typeof e){var n=this.framework.getStyleByName(e);if(!n)return void this.logger.warning("could not find style with name ".concat(e));this._style=n}else e instanceof xe?this._style=e:(this._style=new dt({}),this._style.style=e);this.styleChanged.raiseEvent(this._style,i)}},{key:"clearStyle",value:function(){this.setStyle(this.defaultStyle)}},{key:"active",get:function(){return this._state===Yt.ACTIVE}},{key:"style",get:function(){return this._style}},{key:"loading",get:function(){return!!(this._state&Yt.LOADING)}},{key:"url",get:function(){if(this._url){if("string"===typeof this._url||Array.isArray(this._url))return this._url;var e=this.framework.getLocale();return this._url[e]?this._url[e]:Object.values(this._url)[0]}return""},set:function(e){o(e,[String,Object]),this._url=e}},{key:"exclusive",get:function(){return!!this.exclusiveGroup}},{key:"exclusiveGroup",get:function(){return this._exclusiveGroup},set:function(e){l(e,String),this._exclusiveGroup!==e&&(this._exclusiveGroup&&V().unregisterLayer(this),this._exclusiveGroup=e,this._exclusiveGroup&&V().registerLayer(this))}}]),i}(ve),Ht=Rt,Gt={};function zt(e){if(!Gt[e.url])return Gt[e.url]=new Cesium.CesiumTerrainProvider(e),Gt[e.url];var t=Gt[e.url];return!t.requestVertexNormals&&e.requestVertexNormals&&(Gt[e.url]=new Cesium.CesiumTerrainProvider(e),t=Gt[e.url]),t}function Bt(e,t,i){var n=i?X.getTransformer($,i):null,r=t.map((function(e){var t=n?n(e,e.slice(),e.length):e;return Cesium.Cartographic.fromDegrees(t[0],t[1])}));return new Promise((function(i,n){Cesium.sampleTerrainMostDetailed(e,r).then((function(e){e.forEach((function(e,i){t[i][2]=e.height||0})),i(t)}),n)}))}var Vt=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n._cesiumWidget=null,n.debugMode=!1,n.enableLightning=Object(u["e"])(e.enableLightning,!0),n.tileCacheSize=Object(u["h"])(e.tileCacheSize,1),n.eventHandler=null,n.invertClickBehavior=!1,n.defaultJDate=Cesium.JulianDate.fromDate(new Date(2014,6,20,13,0,0,0)),n.supportedlayers=[At.CESIUM_BUILDINGSLAYER,At.CESIUM_TERRAIN,At.CESIUM_POINTCLOUDLAYER,At.CESIUM_GLTFLAYER,At.CESIUM_ENTITIESLAYER,At.CESIUM_CZMLLAYER,At.CESIUM_TILESET_LAYER,At.TMSBase,At.VECTOR,At.FEATURESTORE,At.CLUSTER,At.WMS,At.WMTS,At.WSV,At.GEOJSON,At.IMAGE,At.OPENSTREETMAP,At.TILED_LAYER],n.urlParameter=null,n.webGLaa=Object(u["e"])(e.webGLaa,!1),n.enableTerrainAdjustmentWhenLoading=Object(u["e"])(e.enableTerrainAdjustmentWhenLoading,!0),n.limitCameraHeight=null!=e.limitCameraHeight?Object(u["g"])(e.limitCameraHeight,0):null,n.globeColor=e.globeColor?Cesium.Color.fromCssColorString(e.globeColor):Cesium.Color.fromBytes(63,71,204),n._clusterDataSourceDisplay=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.maps.Cesium"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;if(!this.initialized){try{this._cesiumWidget=new Cesium.CesiumWidget(this.mapElement.getAttribute("id"),{requestRenderMode:!1,scene3DOnly:!0,imageryProvider:!1,shadows:!1,terrainShadows:Cesium.ShadowMode.ENABLED,contextOptions:{webgl:{failIfMajorPerformanceCaveat:!1,antialias:this.webGLaa}}})}catch(s){return this.hide(),document.getElementById("error-message").classList.remove("vcm_ui_hidden"),this.initialized=!1,!1}this._cesiumWidget.scene.globe.tileCacheSize=this.tileCacheSize,this._cesiumWidget.scene.globe.baseColor=this.globeColor,this.dataSourceDisplay=new Cesium.DataSourceDisplay({scene:this._cesiumWidget.scene,dataSourceCollection:new Cesium.DataSourceCollection}),this._cesiumWidget.scene.frameState.creditDisplay.update=function(){},this._cesiumWidget.scene.frameState.creditDisplay.beginFrame=function(){},this._cesiumWidget.scene.frameState.creditDisplay.endFrame=function(){};var t=this._cesiumWidget.clock;t.shouldAnimate=!0,t.onTick.addEventListener((function(){var i=t.currentTime;e.dataSourceDisplay.update(i)})),Cesium.RequestScheduler.maximumRequestsPerServer=12,this._cesiumWidget.scene.shadowMap.maximumDistance=5e3,this._cesiumWidget.scene.shadowMap.darkness=.6,this._cesiumWidget.scene.globe.depthTestAgainstTerrain=!0,this._cesiumWidget.scene.highDynamicRange=!1,this._cesiumWidget.scene.imagerySplitPosition=.5,this._cesiumWidget.scene.globe.enableLighting=this.enableLightning,this._cesiumWidget.scene.camera.enableTerrainAdjustmentWhenLoading=this.enableTerrainAdjustmentWhenLoading,this.setDay(this.defaultJDate);var i=document.getElementsByClassName("cesium-widget-credits");if(i)for(var n=0;nn?s[o][2]:n,r=s[o][2]n?u+c:n,r=u-c0?(n=f||n,n=r+h>n?r+h:n):(n=r>n?r:n,r=r+hn?r:n,min:r}}function fi(e,t,i,n){function r(e){var r=e.length;while(r--)null==e[r][2]||n?e[r][2]=i:e[r][2]+=t;return e}var a=e.getCoordinates(),s=di(e,a);r(s),e.setCoordinates(a)}function gi(e){e.unset("olcs_groundLevel",!0);var t=G.getInstance().getActiveMap();if(t instanceof Ut){var i=e.getGeometry();if(i){var n=i.getCoordinates(),r=di(i,n);return t.getHeightFromTerrain(r).then((function(){i.setCoordinates(n)}))}}return Promise.resolve()}function yi(e){e.set("olcs_altitudeMode","clampToGround")}function pi(e){return e instanceof ol.geom.Circle?ol.geom.Polygon.fromCircle(e):(e instanceof ol.geom.Polygon&&e.unset("_vcsGeomType"),e)}function vi(e,t){var i=Zt.offset(X.mercatorToWgs84(e),t,Math.PI/2),n=X.wgs84ToMercator(i),r=e[0]-n[0],a=e[1]-n[1],s=r*r,o=a*a,l=Math.sqrt(s+o);return new ol.geom.Circle(e,l,"XYZ")}function _i(e){for(var t=0,i=0;i=e.length&&(n=0);var r=e[i],a=e[n],s=Kt(r,a);s>t&&(t=s)}return t}function bi(e,t){var i=_i(t.groundCoordinates),n=Math.PI/3,r=e.getViewport(),a={height:r.offsetHeight,width:r.offsetWidth},s=a.width/a.height,o=2*Math.atan(Math.tan(.5*n)/s),l=Object(Oe["a"])(t.size,2),c=l[0],u=l[1],h=c>u?c:u,d=i/h;return{size:a,fovy:o,metersPerUnit:d}}function Li(e,t,i){var n=e instanceof ol.geom.Circle?ol.geom.Polygon.fromCircle(e):e,r=n.getCoordinates(),a=di(n,r),s=ol.proj.getTransform(ol.proj.get("EPSG:4326"),i.projection),o=a.map((function(e){return X.mercatorToWgs84(e,!0),Cesium.Cartographic.fromDegrees(e[0],e[1])}));return Cesium.sampleTerrainMostDetailed(i.terrainProvider,o).then((function(e){return a.forEach((function(e){return s(e,e,3)})),e.forEach((function(e,t){var n=i.transformRealWorld2Image(a[t],e.height);a[t][0]=n[0],a[t][1]=n[1]})),t.setCoordinates(r),t}))}function wi(e,t,i){var n=e.getCoordinates(),r=ol.proj.get("EPSG:3857"),a=di(e,n),s=a.map((function(e){return Object(Wt["e"])(i,e,{dataProjection:r}).then((function(t){e[0]=t.coords[0],e[1]=t.coords[1],e[2]=t.coords[2]}))}));return Promise.all(s).then((function(){return t.setCoordinates(n),t}))}function Mi(e){var t=e.getGeometry(),i=t instanceof ol.geom.Circle,n=pi(t);return i&&e.setGeometry(n),n}var ki,Oi=i(654),Ti=i(184),Si=i(578),Ci=i(137),ji=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.footPrintFeatures.forEach((function(t){t.set("direction",e.direction)})),n=t.call(this,e),n.layer=e.layer||null,n.suppressPublish=!1,n}return Object(m["a"])(i,[{key:"addOptions",value:function(e){var t=this;e.footPrintFeatures.forEach((function(e){e.set("direction",t.direction)})),ye(Object(fe["a"])(i.prototype),"addOptions",this).call(this,e)}},{key:"activateWithViewPoint",value:function(e,t){var i=this;return this.olMap!==e&&this.deactivate(),this.state===Ci["a"].STATE.INACTIVE&&(this.state=Ci["a"].STATE.LOADING,this.olMap=e,t)?this.setViewPoint(t).then((function(){i.state=Ci["a"].STATE.ACTIVE})):Promise.resolve(this.state)}},{key:"setImageOnMap",value:function(e,t){var n=this,r=!this.suppressPublish&&(!this.currentImage||this.currentImage.name!==e);return ye(Object(fe["a"])(i.prototype),"setImageOnMap",this).call(this,e,t).then((function(){r&&G.getInstance().publish(O.OBLIQUE_IMAGE_CHANGED,n.layer,n.currentImage)}))}},{key:"setViewPoint",value:function(e,t){var i=this,n=e.groundPosition;n||(n=e.cameraPosition);var r=ol.proj.transform(n,$.proj,this.projection),a=this.getImageNameForCoordinates(r);if(null!=a){var s=n[2]||!this.terrainProvider?Promise.resolve([r]):Object(Wt["c"])(this.terrainProvider,[r],this.projection);return s.then((function(e){var t=Object(Oe["a"])(e,1),n=t[0];return i.setImageOnMap(a,n)})).catch((function(){return i.setImageOnMap(a,r)})).then((function(){var n=e.distance;n||(n=e.cameraPosition?e.cameraPosition[2]:1e3);var r=bi(i.olMap,i.currentImage),a=r.size,s=r.fovy,o=r.metersPerUnit,l=2*n*Math.tan(s/2),c=l/o,u=c/a.height,h=i.currentView.view;h.setResolution(t?u:h.constrainResolution(u))}))}return Promise.reject(new Error("could not find an image in this direction"))}},{key:"canShowViewpoint",value:function(e){var t=e.groundPosition;t||(t=e.cameraPosition);var i=ol.proj.transform(t,$.proj,this.projection),n=this.getImageNameForCoordinates(i);if(null!=n){var r=this.images[n],a=ol.extent.boundingExtent(r.groundCoordinates);return ol.extent.containsCoordinate(a,i)}return!1}}]),i}(Ci["a"]),Ei=ji,Ii=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.layer=e.layer,n.directions={},n}return Object(m["a"])(i,[{key:"handleMetadataResponse",value:function(e,t){var i=Oi["a"].getVersion(e);return i.version>=3.5||3.4===i.version&&i.buildNumber>=36?this.handleMetadataResponseV35(e,t,i):(i.version>=3.1||null===i.version?this.handleMetadataResponseV34(e,t,i):console.log("Could not load Meta Data, only meta data version 3.4 and higher are supported"),Promise.resolve())}},{key:"createDirection",value:function(e){return new Ei(Object.assign({layer:this.layer},e))}},{key:"handleMetadataResponseV34",value:function(e,t,n){var r=this,a=[e.generalImageInfo.width,e.generalImageInfo.height],s=e.generalImageInfo["tile-resolution"],o=[e.generalImageInfo["tile-width"],e.generalImageInfo["tile-width"]];e.generalImageInfo.width&&e.generalImageInfo.height&&e.generalImageInfo["tile-resolution"]&&this.getImageMeta(t,a,s,o,n);var l=[],c=e.generalImageInfo.cameraParameter;c&&Object.keys(c).forEach((function(e){var t=new Si["a"](Object.assign({name:e},c[e]));l.push(t)}));var u={};e.images&&Array.isArray(e.images)&&(e.images.forEach((function(e){var h=i.getImageOptionsFromJSON(e,l,c),d=e.width&&e.height?[e.width,e.height]:a,m=e["tile-resolution"]?e["tile-resolution"]:s,f=r.getImageMeta(t,d,m,o,n),g=new Ti["a"](Object.assign({terrainProvider:r.terrainProvider,projection:r.projection,meta:f},h));u[g.viewDirection]||(u[g.viewDirection]={direction:g.viewDirection,images:{},rTreeItems:[],footPrintFeatures:[],projection:r.projection,terrainProvider:r.terrainProvider}),u[g.viewDirection].images[g.name]=g,u[g.viewDirection].rTreeItems.push({minX:g.centerPointOnGround[0],minY:g.centerPointOnGround[1],maxX:g.centerPointOnGround[0],maxY:g.centerPointOnGround[1],name:g.name});var y=new ol.geom.Polygon([g.groundCoordinates.concat([g.groundCoordinates[0]])]);y.transform(r.projection,ol.proj.get("EPSG:3857"));var p=new ol.Feature({geometry:y});p.setId(g.name),u[g.viewDirection].footPrintFeatures.push(p)})),this.handleDirectionOptions(u))}},{key:"destroy",value:function(){ye(Object(fe["a"])(i.prototype),"destroy",this).call(this),this.layer=null}}],[{key:"getImageOptionsFromJSON",value:function(e,t,i){var n=h["c"][e["view-direction"]],r=e["view-directionAngle"],a=e["projection-center"],s=e.name,o=e.groundCoordinates,l=e.centerPointOnGround,c=e["camera-name"],u=t.find((function(e){return e.name===c})),d={name:s,viewDirection:n,viewDirectionAngle:r,groundCoordinates:o,centerPointOnGround:l};if(u){var m,f,y=i[c],p=Cesium.Matrix3.fromRowMajorArray((m=[]).concat.apply(m,Object(g["a"])(y["camera-matrix"]))),v=Cesium.Matrix3.inverse(p,new Cesium.Matrix3),_=Cesium.Matrix3.fromRowMajorArray((f=[]).concat.apply(f,Object(g["a"])(e["rotation-matrix"]))),b=Cesium.Matrix3.transpose(_,new Cesium.Matrix3),L=-1*y["focal-length"];Cesium.Matrix3.multiplyByScalar(v,L,v);var w=Cesium.Matrix3.multiply(b,v,new Cesium.Matrix3),M=Cesium.Matrix4.fromRotationTranslation(p,Cesium.Cartesian3.ZERO,new Cesium.Matrix4),k=Cesium.Cartesian3.fromArray(a),O=Cesium.Matrix4.fromTranslation(Cesium.Cartesian3.multiplyByScalar(k,-1,new Cesium.Cartesian3),new Cesium.Matrix4),T=Cesium.Matrix4.fromRotationTranslation(_,Cesium.Cartesian3.ZERO,new Cesium.Matrix4),S=Cesium.Matrix4.multiply(M,Cesium.Matrix4.multiply(T,O,new Cesium.Matrix4),new Cesium.Matrix4);d.projectionCenter=k,d.camera=u,d.pToRealworld=w,d.pToImage=S}return d}}]),i}(Oi["a"]),Di=Ii;At.OBLIQUE_OBLIQUELAYER=At.lastLayerId,At.lastLayerId+=1,O.OBLIQUE_IMAGE_CHANGED="OBLIQUE_IMAGE_CHANGED",O.OBLIQUE_DIRECTION_CHANGED="OBLIQUE_DIRECTION_CHANGED";var Pi=(ki={},Object(U["a"])(ki,h["a"].NORTH,0),Object(U["a"])(ki,h["a"].EAST,90),Object(U["a"])(ki,h["a"].SOUTH,180),Object(U["a"])(ki,h["a"].WEST,270),ki);function Ai(e){var t=e.heading,i=h["a"].NORTH;return t>=45&&t<135?i=h["a"].EAST:t>=135&&t<225?i=h["a"].SOUTH:t>=225&&t<315&&(i=h["a"].WEST),i}var xi=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.layertype=At.OBLIQUE_OBLIQUELAYER,e.className=i.className,n=t.call(this,e);var r=e.terrain?e.terrain.url:e.terrainUrl;return n.terrainProvider=r?zt({url:r}):null,n.sourceProjection=e.projection?new X(e.projection):new X({epsg:e.epsg,proj4:e.proj4}),n.terrainErrorThreshold=Object(u["g"])(e.terrainErrorThreshold,1),n.terrainErrorCountThreshold=Object(u["h"])(e.terrainErrorCountThreshold,3),n.obliqueCollection=new Di({terrainProvider:n.terrainProvider,projection:n.sourceProjection.proj,minZoom:e.minZoom,maxZoom:e.maxZoom,hideLevels:e.hideLevels,layer:Object(gt["a"])(n)}),n.obliqueMap=null,n.currentDirection=null,n.isDefaultObliqueLayer=n.activeOnStartup,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.oblique.ObliqueLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this.initialized?Promise.resolve():(this.obliqueMap||(this.obliqueMap=this.framework.getMapByType("vcs.vcm.maps.Oblique"),this.obliqueMap||this.logger.warning("Oblique layer is not loading on top of an oblique map, please check: ".concat(this.name)),this.olMap=this.obliqueMap.olMap),this.obliqueCollection.loadData(this.url).then((function(){e.initialized=!0,e.currentDirection=e.obliqueCollection.directions[h["a"].NORTH]})))}},{key:"activate",value:function(e){if(null!=e&&this.logger.deprecate("activate","activate no longer accepts an argument, use deactivate to deactivate the layer"),!1===e)return this.deactivate(),Promise.resolve();if(this._state&Yt.INACTIVE&&this.isSupported()){var t=this.framework.getActiveMap();return this.olMap=t.olMap,this._state|=Yt.LOADING,t.setObliqueLayer(this)}return Promise.resolve()}},{key:"deactivate",value:function(){this.logger.warning("cannot deactivate oblique base layer")}},{key:"show",value:function(e){var t=this;return this._state=Yt.ACTIVE,this.initialize().then((function(){return e?t.setViewPoint(e):t.currentDirection.activate(t.olMap,[0,0],t.obliqueCollection.options.minZoom)}))}},{key:"hide",value:function(){this._state=Yt.INACTIVE,this.currentDirection&&this.currentDirection.deactivate()}},{key:"canShowViewpoint",value:function(e){var t=this;return this.initialize().then((function(){return t.obliqueCollection.isTiled?t.obliqueCollection.loadTiledImageJson(X.wgs84ToMercator(e.groundPosition||e.cameraPosition)):Promise.resolve()})).then((function(){var i=Ai(e);return!!t.obliqueCollection.directions[i]&&t.obliqueCollection.directions[i].canShowViewpoint(e)}))}},{key:"getExtentOfCurrentImage",value:function(){return this.currentImage&&this.currentImage.groundCoordinates?new De({coordinates:ol.extent.boundingExtent(this.currentImage.groundCoordinates),epsg:this.sourceProjection.epsg}):(this.logger.warning("No currentImage, cannot compute extent"),null)}},{key:"computeViewpoint",value:function(e){var t=this;if(!this.currentImage)return e?Promise.resolve(null):null;if(e)return Object(Wt["e"])(this.currentImage,this.olMap.getView().getCenter(),{dataProjection:ol.proj.get("EPSG:4326")}).then((function(e){var i=e.coords;return t._computeViewpointInternal(i)}));var i=this.olMap.getView().getCenter(),n=this.currentImage.transformImage2RealWorld(i,this.currentImage.averageHeight),r=this.sourceProjection.transformTo($,n);return this._computeViewpointInternal(r)}},{key:"_computeViewpointInternal",value:function(e){var t=bi(this.olMap,this.currentImage),i=t.size,n=t.fovy,r=t.metersPerUnit,a=this.olMap.getView(),s=a.getResolution(),o=s*i.height,l=o*r,c=Math.abs(l/2/Math.tan(n/2)),u=e[2]||this.currentImage.averageHeight,h=c+u;return new ke({cameraPosition:[e[0],e[1],h],groundPosition:e,heading:Pi[this.currentImage.viewDirection],pitch:0,roll:0,distance:c})}},{key:"setViewPoint",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=Ai(t),!this.obliqueCollection.isTiled){e.next=4;break}return e.next=4,this.obliqueCollection.loadTiledImageJson(X.wgs84ToMercator(t.groundPosition||t.cameraPosition));case 4:if(!this.currentDirection){e.next=10;break}if(this.currentDirection.direction!==i){e.next=9;break}if(this.currentDirection.state!==Ci["a"].STATE.ACTIVE){e.next=8;break}return e.abrupt("return",this.currentDirection.setViewPoint(t));case 8:return e.abrupt("return",this.currentDirection.activateWithViewPoint(this.olMap,t));case 9:this.currentDirection.deactivate();case 10:return this.obliqueCollection.directions[i]&&(this.currentDirection=this.obliqueCollection.directions[i]),this.currentDirection.suppressPublish=!0,e.abrupt("return",this.currentDirection.activateWithViewPoint(this.olMap,t).then((function(){n.framework.publish(O.OBLIQUE_DIRECTION_CHANGED,n,n.currentDirection),n.framework.publish(O.OBLIQUE_IMAGE_CHANGED,n,n.currentImage),n.currentDirection.suppressPublish=!1})).catch((function(e){n.logger.error(e.message),n.currentDirection.suppressPublish=!1})));case 13:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getImageIdInDirection",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i){var n,r,a,s,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=2*Math.PI-(t*Math.PI/180-Math.PI/2),r=this.currentDirection.getImageIdInDirection(n,i),r||!this.obliqueCollection.isTiled){e.next=10;break}return a=this.currentImage,s=ol.proj.getTransform(a.projection,ee.proj),o=this.obliqueCollection.getTileCoordinate(s(this.currentImage.centerPointOnGround.slice(0,2))),t>315||t<=45?o[2]-=1:t>45&&t<=135?o[1]+=1:t>135&&t<=225?o[2]+=1:o[1]-=1,e.next=9,this.obliqueCollection.loadTile(o.join("/"));case 9:return e.abrupt("return",this.currentDirection.getImageIdInDirection(n,i));case 10:return e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{key:"getCurrentImage",value:function(){return this.currentImage}},{key:"existsImageForViewDirection",value:function(e){var t=this.currentImage.transformRealWorld2Image(e);return!(t[0]<0||t[0]>this.currentImage.size[0]||t[1]<0||t[1]>this.currentImage.size[1])}},{key:"dispose",value:function(){ye(Object(fe["a"])(i.prototype),"dispose",this).call(this),this.obliqueCollection.destroy()}},{key:"currentImage",get:function(){return this.currentDirection?this.currentDirection.currentImage:null}}]),i}(Ht),Yi=xi,Ni=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.olMap=null,n.mouseClickEvents=!1,n.activeLayer=null,n.listenerKey=null,n.mapChangeEvent=e.changeOnMoveEnd?"moveend":"postrender",n.switchThreshold=Object(u["g"])(e.switchThreshold,0),n.switchThreshold>1&&(n.switchThreshold=.2),n._switchOnEdge=null==e.switchOnEdge||e.switchOnEdge,n.switchEnabled=!0,n.supportedlayers=[At.OBLIQUE_OBLIQUELAYER,At.VECTOR,At.GEOJSON,At.WSV,At.CLUSTER],n.interactionsDefaultsObject={altShiftDragRotate:!1,pinchRotate:!1,shiftDragZoom:!1,doubleClickZoom:!1},n._initialViewpoint=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.maps.Oblique"}}]),Object(m["a"])(i,[{key:"_getInitialLayer",value:function(){var e=Object.values(this.framework.getLayers()).filter((function(e){return e instanceof Yi}));return e.find((function(e){return e.isDefaultObliqueLayer}))||e[0]}},{key:"initialize",value:function(){var e=this;if(!this.initializedPromise){this.olMap||(this.olMap=new ol.Map({layers:[],logo:!1,controls:[],loadTilesWhileInteracting:!0,interactions:this.getMapInteractions(),target:this.mapElement}));var t=this._getInitialLayer();if(!t)return Promise.reject(new Error("Could not find an oblique layer for configured oblique map"));this.setLayerLoading(t,!0),this.initializedPromise=t.activate().then((function(){e.initialized=!0,e.olMap.on(e.mapChangeEvent,e._postRenderHandler.bind(e))}))}return this.initializedPromise}},{key:"canShowViewpoint",value:function(e){if(this.initialized&&this.activeLayer)return this.activeLayer.canShowViewpoint(e);var t=this._getInitialLayer();return t?t.canShowViewpoint(e):Promise.reject(new Error("Could not find an oblique layer for configured oblique map"))}},{key:"getOl3Map",value:function(){return this.logger.deprecate("getOl3Map","access the olMap property directly"),this.olMap}},{key:"setObliqueLayer",value:function(e){var t=this;this.switchEnabled=!1;var i=Promise.resolve(null);if(this.activeLayer){var n=this.activeLayer;i=n.computeViewpoint(!0).then((function(e){return n.hide(),t.framework.publish(O.LAYER_CHANGED,n),t.framework.publish(O.LAYER_DEACTIVATED,n),e}))}else this._initialViewpoint&&(this.olMap.updateSize(),i=Promise.resolve(this._initialViewpoint));return this.setLayerLoading(e,!0),this.activeLayer=e,i.then((function(e){return t.activeLayer.show(e)})).then((function(){t.framework.getActiveMap().setLayerLoading(e,!1),t.switchEnabled=!0,t.framework.publish(O.LAYER_CHANGED,t.activeLayer),t.framework.publish(O.LAYER_ACTIVATED,t.activeLayer)})).catch((function(i){t.activeLayer=null,t.logger.warning("could not show oblique layer ".concat(e.name)),t.logger.warning("".concat(i.message))}))}},{key:"_postRenderHandler",value:function(){if(this.active&&this._switchOnEdge&&this.switchEnabled){var e=this.olMap.getView().getCenter(),t=this.activeLayer,i=t.currentImage,n=t.currentDirection,r=t.obliqueCollection,a=this.switchThreshold,s=1-a;if(!i||e[0]/i.size[0]>a&&e[0]/i.size[0]a&&e[1]/i.size[1]m)return null;u(c,o,a);var g=d(i,c);if(g<0||f+g>m)return null;var y=d(s,c)/m;return e[0]=t[0]+y*i[0],e[1]=t[1]+y*i[1],e[2]=t[2]+y*i[2],e}function Wi(e){var t=4;e||console.error("b3dmBuffer is not defined.");var i=new Uint8Array(e),n=Cesium.getStringFromTypedArray(i,0,4);"b3dm"!==n&&console.error('Invalid magic, expected "b3dm", got: "'.concat(n,'".'));var r=new DataView(e),a=4,s=r.getUint32(a,!0);1!==s&&console.error('Invalid version, only "1" is valid, got: "'.concat(s,'".')),a+=t;var o=r.getUint32(a,!0);a+=t;var l=r.getUint32(a,!0);a+=t;var c=r.getUint32(a,!0);a+=t;var u=r.getUint32(a,!0);a+=t;var h,d=r.getUint32(a,!0);a+=t,u>=570425344?(a-=2*t,h=l,u=c,d=0,l=0,c=0):d>=570425344&&(a-=t,h=u,u=l,d=c,l=0,c=0),a+=u,a+=d,a+=l,a+=c,0!==d&&console.error("The length of the binary BatchTable is not zero, currently only JSON based BatchTables are supported");var m=new Uint8Array(e,a,o-a);return{header:{magic:n,version:s,batchLength:h},batchTable:null,binaryGLTF:m}}function qi(e){var t=4;function i(e){var t=Cesium.getMagic(e);return"glTF"===t}i(e)||console.error("bgltf is not a valid Binary glTF file.");var n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=t,a=n.getUint32(r,!0);if(1!==a&&2!==a&&console.error("Only Binary glTF version 1 is supported. Version ".concat(a," is not.")),1===a){r+=t;var s=n.getUint32(r,!0);console.log("len",s),r+=t;var o=n.getUint32(r,!0);r+=t;var l=n.getUint32(r,!0);0!==l&&console.error("content format should be 0 (-> JSON)");var c=20+o;r+=t;var u=r,h=u+o,d=Cesium.getStringFromTypedArray(e,u,o),m=e.subarray(c,s);return{glTF:JSON.parse(d),binaryOffset:h,binaryData:m,version:a,contentLength:o}}var f=null;r+=t;var g,y=n.getUint32(r,!0),p=12;while(p=n){var c=r(l.positionAccessor),u=r(l.batchIdAccessor),h=void 0,d=void 0;1===i.version?(h=null!=l.positionAccessor.byteStride?l.positionAccessor.byteStride:c,d=null!=l.batchIdAccessor.byteStride?l.batchIdAccessor.byteStride:u):(h=null!=l.positionBufferView.byteStride?l.positionBufferView.byteStride:c,d=null!=l.batchIdBufferView.byteStride?l.batchIdBufferView.byteStride:u);for(var m=l.positionBufferView,f=l.batchIdBufferView,g=new DataView(i.binaryData.buffer,i.binaryData.byteOffset+f.byteOffset,f.byteLength),y=new DataView(i.binaryData.buffer,i.binaryData.byteOffset+m.byteOffset,m.byteLength),p=null!=l.positionAccessor.byteOffset?l.positionAccessor.byteOffset:0,v=0,_=l.batchIdAccessor.byteOffset;v=o&&(r=o,n=s)}}return null==n?(console.error("No intersection found!"),null):n}function $i(e,t,i,n){return Cesium.Resource.fetchArrayBuffer({url:e}).then((function(e){var r=Wi(e),a=r.binaryGLTF,s=qi(a),o=Ji(s.glTF),l=Qi(a,o,s,t),c=Ki(l),u={origin:[i.origin.x,i.origin.y,i.origin.z],direction:[i.direction.x,i.direction.y,i.direction.z]},h=Xi(u,c);if(h)return Cesium.Cartesian3.fromElements(h[0],h[1],h[2],n)})).otherwise((function(e){console.error(e)}))}var en,tn=i(15),nn=i(675),rn=i.n(nn),an=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.specificImpl={},n.options.commonLayer=Object(gt["a"])(n),n}return Object(m["a"])(i,[{key:"getImplementation",value:function(e){var t=e.id;return this.specificImpl[t]||(this.specificImpl[t]=this.getImplementationObject(e.className)),this.specificImpl[t]}},{key:"getImplementations",value:function(){return Object.values(this.specificImpl).filter((function(e){return e}))}},{key:"getImplementationObject",value:function(e){return Le.specificLayerImpl[e]&&Le.specificLayerImpl[e][this.className]?new Le.specificLayerImpl[e][this.className](this.options):null}},{key:"isCommonLayer",value:function(){return!0}},{key:"initialize",value:function(){this.initialized=!0;var e=this.framework.getActiveMap();if(e){var t=this.getImplementation(e);if(t&&!t.initialized)return t.initialize()}return Promise.resolve()}},{key:"synchronizeImplementations",value:function(e,t){var i=Promise.resolve();if(t){var n=this.getImplementation(t);n&&(i=i.then((function(){return n.mapDeactivated(t)})))}if(e){var r=this.getImplementation(e);r&&(i=i.then((function(){return r.mapActivated(e)})))}return i}},{key:"synchronize",value:function(e,t){var i=this;return this.synchronizeImplementations(e,t).then((function(){var t=i.getImplementation(e);if(t&&i.isSupported(e)){if(i.active)return i.setSyncing(),i.activate();if(!i.initialized&&i.activeOnStartup)return i.activate()}return Promise.resolve()}))}},{key:"setSyncing",value:function(){this.active&&(this._state|=Yt.SYNCING)}},{key:"show",value:function(){var e=this.getImplementation(this.framework.getActiveMap());e&&e.initialized&&e.show()}},{key:"hide",value:function(){this.getImplementations().forEach((function(e){e.initialized&&e.hide()}))}},{key:"setStyle",value:function(e,t){ye(Object(fe["a"])(i.prototype),"setStyle",this).call(this,e,t),this.getImplementations().forEach((function(e){e.updateStyle(t)}))}},{key:"dispose",value:function(){this.getImplementations().forEach((function(e){e.dispose()})),this.initialized=!1,this._state=Yt.INACTIVE,this.specificImpl={},ye(Object(fe["a"])(i.prototype),"dispose",this).call(this)}}]),i}(Ht),sn=an,on=ie.interactionTypeCounter,ln={NONE:on=ie.getNextBit(on),SELECT:on=ie.getNextBit(on),TRANSLATE:on=ie.getNextBit(on),ROTATE:on=ie.getNextBit(on),SCALE:on=ie.getNextBit(on),CREATE:on=ie.getNextBit(on),EDIT:on=ie.getNextBit(on),REMOVEVERTEX:on=ie.getNextBit(on),TRANSLATEVERTEX:on=ie.getNextBit(on),PAINTBUCKET:on=ie.getNextBit(on),PIPETTE:on=ie.getNextBit(on),FEATUREMODES:0,GEOMETRYMODES:0,PROPAGATEONSELECT:0};ln.FEATUREMODES=ln.SELECT|ln.TRANSLATE|ln.ROTATE|ln.SCALE|ln.PAINTBUCKET|ln.PIPETTE,ln.GEOMETRYMODES=ln.CREATE|ln.EDIT|ln.REMOVEVERTEX|ln.TRANSLATEVERTEX,ln.PROPAGATEONSELECT=ln.TRANSLATE|ln.PAINTBUCKET|ln.PIPETTE;var cn={UNEDITABLE:on=ie.getNextBit(on),EDITING:on=ie.getNextBit(on),EDITABLE:on=ie.getNextBit(on),VERTEX:on=ie.getNextBit(on),HEIGHTVERTEX:on=ie.getNextBit(on)},un={none:ln.NONE,select:ln.SELECT,translate:ln.TRANSLATE,rotate:ln.ROTATE,scale:ln.SCALE,create:ln.CREATE,edit:ln.EDIT,removeVertex:ln.REMOVEVERTEX,translateVertex:ln.TRANSLATEVERTEX,paintBucket:ln.PAINTBUCKET,pipette:ln.PIPETTE,geometryModes:ln.GEOMETRYMODES,featureModes:ln.FEATUREMODES},hn={CLAMP:1,ABSOLUTE:2,ZPLANE:4},dn={clampToGround:hn.CLAMP,absolute:hn.ABSOLUTE,zPlane:hn.ZPLANE},mn={both:Cesium.ClassificationType.BOTH,terrain:Cesium.ClassificationType.TERRAIN,cesium3DTile:Cesium.ClassificationType.CESIUM_3D_TILE},fn=(en={},Object(U["a"])(en,mn.both,"both"),Object(U["a"])(en,mn.terrain,"terrain"),Object(U["a"])(en,mn.cesium3DTile,"cesium3DTile"),en);function gn(e,t){if(e.image&&e.image.src&&/^data:/.test(e.image.src))if(t){var i=t.indexOf(e.image.src);-1===i&&(t.push(e.image.src),i=t.length-1),e.image.src=":".concat(i)}else e.image={radius:5};return e}function yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e[G.configContentSymbol]?t.style=e.getReference():e instanceof dt?t.style=gn(e.getOptions(),t.embeddedIcons):e instanceof Ct&&(t.style=e.getOptions()),t}var pn=yn;At.VECTOR=At.lastLayerId,At.lastLayerId+=1,O.FEATURE_REMOVED="FEATURE_REMOVED";var vn=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=e.layertype?e.layertype:At.VECTOR,e.className=e.className?e.className:i.className,n=t.call(this,e),n.source=new ol.source.Vector({}),n.projection=new X(e.projection),n.maxResolution=null!=e.maxResolution?e.maxResolution:null,n.minResolution=null!=e.minResolution?e.minResolution:null,n.dontUseTerrainForOblique=!!e.dontUseTerrainForOblique,n.sourceProjection=n.projection.proj,n._altitudeMode=e.altitudeMode||"relativeToGround",n._skirt=Object(u["g"])(e.skirt,null),n._storeyHeight=Object(u["g"])(e.storeyHeight,null),n._classificationType=e.classificationType,n.balloonHeightOffset=Object(u["h"])(e.balloonHeightOffset,10),n.zIndex=Object(u["h"])(e.zIndex,50),n.zCoordinateEyeOffset=Object(u["h"])(e.zCoordinateEyeOffset,0),n.heightAboveGround=null!=e.heightAboveGround?e.heightAboveGround:null,n.scaleByDistance=e.scaleByDistance||null,n.internalProjection=ee,n.destinationProjection=n.internalProjection.proj,n.highlightStyle=e.highlightStyle?new dt(e.highlightStyle):null,n.featureVisibility=e.featureVisibility||new It,n.hasFeatureUUID=!1,n.visibility=!0,n.isDynamic=e.isDynamic,n.FVlastUpdated=0,n._onStyleChangeRemover=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.Vector"}},{key:"alreadyTransformedToMercator",get:function(){return yt}},{key:"alreadyTransformedToImage",get:function(){return pt}},{key:"imageGeometryChanged",get:function(){return vt}},{key:"obliqueGeometry",get:function(){return _t}},{key:"doNotTransform",get:function(){return bt}},{key:"originalFeatureSymbol",get:function(){return Lt}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e._trackStyleChanges()}))}},{key:"getVcsMeta",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={version:Ft};if(this.skirt&&(t.skirt=this.skirt),this.storeyHeight&&(t.storeyHeight=this.storeyHeight),this.classificationType&&(t.classificationType=this.classificationType),this.altitudeMode&&(t.altitudeMode=this.altitudeMode),e.embedIcons&&(t.embeddedIcons=[]),e.writeStyle){var i=this.getStyleOrDefaultStyle(this.options.activeStyleName||this.options.style);!e.writeDefaultStyle&&rn()(i.getOptions(),this.style.getOptions())||pn(this.style,t)}return t}},{key:"setVcsMeta",value:function(e){e.skirt!==this.skirt&&(this.skirt=e.skirt),e.storeyHeight!==this.storeyHeight&&(this.storeyHeight=e.storeyHeight),e.altitudeMode&&e.altitudeMode!==this.altitudeMode&&(this.altitudeMode=e.altitudeMode),e.classificationType!==this.classificationType&&(this.classificationType=e.classificationType)}},{key:"getStyleOrDefaultStyle",value:function(e,t){return ye(Object(fe["a"])(i.prototype),"getStyleOrDefaultStyle",this).call(this,e,t||mt.clone())}},{key:"setStyle",value:function(e,t){var n=this;ye(Object(fe["a"])(i.prototype),"setStyle",this).call(this,e,t),this._trackStyleChanges();var r=e instanceof Ct;this.getFeatures().forEach((function(e){e[ut]&&(r?n.featureVisibility.highlightedObjects[e.getId()]&&n.featureVisibility.highlightedObjects[e.getId()].features.has(e)?n.featureVisibility.highlightedObjects[e.getId()].features.set(e,void 0):e.setStyle(void 0):e.getStyle()?n.featureVisibility.highlightedObjects[e.getId()]&&n.featureVisibility.highlightedObjects[e.getId()].features.has(e)&&n.featureVisibility.highlightedObjects[e.getId()].features.set(e,e[ut].style):e.setStyle(e[ut].style))}))}},{key:"_trackStyleChanges",value:function(){var e=this;this._onStyleChangeRemover&&(this._onStyleChangeRemover(),this._onStyleChangeRemover=null);var t=this.style instanceof Ct;this._onStyleChangeRemover=this.style.styleChanged.addEventListener((function(){e.getFeatures().forEach((function(e){!t&&e[ut]||e.changed()}))}))}},{key:"setHighlightStyle",value:function(e){o(e,[ol.style.Style,dt,Function]),e instanceof dt?this.highlightStyle=e:(this.highlightStyle||(this.highlightStyle=new dt({})),this.highlightStyle.style=e)}},{key:"postRenderStyling",value:function(){if(this.FVlastUpdated1?i-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3?arguments[3]:void 0;return o(e,ce),o(t,Function),o(i,Number),l(n,String),this._exclusiveInteraction&&this._exclusiveInteraction.id!==n&&this._removeExclusive(),e.handleMapChange(G.getInstance().getActiveMap()),In.addInteraction(e,i),this._exclusiveInteraction?(this._exclusiveInteraction.interactions.push(e),this._exclusiveInteraction.cb.push(t)):this._exclusiveInteraction={id:n||Object(u["c"])(),cb:[t],interactions:[e]},null===this._exclusiveFrameworkKey&&(this._exclusiveFrameworkKey=G.getInstance().subscribeExclusive(O.CLICKED,(function(){}),"vcs:EventHandler",this._removeExclusive.bind(this))),this._exclusiveUnListen.bind(this,e,this._exclusiveInteraction.id)}},{key:"_removeExclusive",value:function(){this._exclusiveInteraction&&(this._exclusiveInteraction.interactions.filter((function(e){return e})).forEach((function(e){In.removeInteraction(e)})),this._exclusiveInteraction.cb.filter((function(e){return e})).forEach((function(e){e()})),this._exclusiveInteraction=null)}},{key:"_exclusiveUnListen",value:function(e,t){if(!this._exclusiveInteraction||this._exclusiveInteraction&&this._exclusiveInteraction.id!==t)return 0;var i=In.removeInteraction(e),n=this._exclusiveInteraction.interactions.findIndex((function(t){return t&&t.id===e.id}));return n>-1&&(this._exclusiveInteraction.interactions.splice(n,1,void 0),this._exclusiveInteraction.cb.splice(n,1,void 0)),this._exclusiveInteraction.interactions.every((function(e){return void 0===e}))&&(this._exclusiveInteraction=null,G.getInstance().unsubscribeByKey(this._exclusiveFrameworkKey),this._exclusiveFrameworkKey=null),-1!==i?1:0}},{key:"addPersistentInteraction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return o(e,ce),o(t,Number),e.handleMapChange(G.getInstance().getActiveMap()),In.addInteraction(e,t),function(){return-1!==In.removeInteraction(e)?1:0}}},{key:"handleMapChange",value:function(e){this.listeners.forEach((function(e){e()})),this.listeners.splice(0),e instanceof Vi||e instanceof Fi?this._setupOpenlayersHandlers(e):e instanceof Ut&&this._setupCesiumHandlers(e),In.handleMapChange(e)}},{key:"_mouseDown",value:function(e,t,i){if(this._lastDown)this._multiples=!0;else{var n=e(t,i);0===n.windowPosition.x&&0===n.windowPosition.y||(this._lastDown=n,this._lastDown.time=Date.now())}}},{key:"_mouseUp",value:function(e,t,i){var n=e(t,i);return n.multipleTouch?(this._multiples=!0,void(this._lastDown=null)):this._multiples?(this._lastDown=null,void(this._multiples=!1)):(this._dragging?(n.type=re.DRAGEND,n.key=this._dragging.key,n.pointer=this._dragging.pointer,this._startChain(n)):this._lastDown&&(this._lastClick.time&&Date.now()-this._lastClick.timethis.dragDuration&&(n=Object.assign({type:re.DRAGSTART},this._lastDown),this._dragging=n,this._startChain(n,!0)):(n.type=re.MOVE,this._startChain(n,!0))}},{key:"_startChain",value:function(e,t){this._running&&t||(this._running?this._eventQueue.push(e):(this._running=!0,In.pipe(e).then(this._endChain.bind(this)).catch(this._endChain.bind(this))))}},{key:"_endChain",value:function(){this._running=!1,this._eventQueue.length>0&&this._startChain(this._eventQueue.shift())}},{key:"_setupOpenlayersHandlers",value:function(e){var t=function(e,t){var i={"-1":ae.ALL,0:ae.LEFT,1:ae.MIDDLE,2:ae.RIGHT},n=t.originalEvent.shiftKey?ne.SHIFT:ne.NONE;n=t.originalEvent.ctrlKey?ne.CTRL:n,n=t.originalEvent.altKey?ne.ALT:n,n!==ne.NONE&&t.preventDefault(),t.originalEvent.preventDefault();var r=[t.coordinate[0],t.coordinate[1],0];return{position:r,positionOrPixel:r,windowPosition:Cesium.Cartesian2.fromArray(t.pixel,0,new Cesium.Cartesian2),key:n,pointer:i[t.originalEvent.button||0]}},i=e.olMap,n=[];n.push(i.on("pointerdown",this._mouseDown.bind(this,t,null))),n.push(i.on("pointerup",this._mouseUp.bind(this,t,null))),n.push(i.on("pointermove",this._mouseMove.bind(this,t,null))),this.listeners=n.map((function(e){return function(){ol.Observable.unByKey(e)}}))}},{key:"_setupCesiumHandlers",value:function(e){var t,i,n=this,r=(t={},Object(U["a"])(t,Cesium.KeyboardEventModifier.ALT,ne.ALT),Object(U["a"])(t,Cesium.KeyboardEventModifier.CTRL,ne.CTRL),Object(U["a"])(t,Cesium.KeyboardEventModifier.SHIFT,ne.SHIFT),t),a=function(t,i){var n=t.mod,a=t.pointer,s=e.eventHandler._positions.length>1;return{windowPosition:i.position||i.endPosition,key:r[n]||ne.NONE,pointer:a,multipleTouch:s}},s=(i={},Object(U["a"])(i,Cesium.ScreenSpaceEventType.LEFT_DOWN,{handler:this._mouseDown,pointer:ae.LEFT}),Object(U["a"])(i,Cesium.ScreenSpaceEventType.LEFT_UP,{handler:this._mouseUp,pointer:ae.LEFT}),Object(U["a"])(i,Cesium.ScreenSpaceEventType.RIGHT_DOWN,{handler:this._mouseDown,pointer:ae.RIGHT}),Object(U["a"])(i,Cesium.ScreenSpaceEventType.RIGHT_UP,{handler:this._mouseUp,pointer:ae.RIGHT}),Object(U["a"])(i,Cesium.ScreenSpaceEventType.MIDDLE_DOWN,{handler:this._mouseDown,pointer:ae.MIDDLE}),Object(U["a"])(i,Cesium.ScreenSpaceEventType.MIDDLE_UP,{handler:this._mouseUp,pointer:ae.MIDDLE}),Object(U["a"])(i,Cesium.ScreenSpaceEventType.MOUSE_MOVE,{handler:this._mouseMove,pointer:ae.ALL}),i);Object.keys(s).forEach((function(t){var i=Object.keys(r);i.push(void 0),i.forEach((function(i){var r=s[t],o=r.handler,l=r.pointer;null!=i?(e.eventHandler.setInputAction(o.bind(n,a,{mod:i,pointer:l}),t,i),n.listeners.push((function(){e.eventHandler.removeInputAction(t,i)}))):(e.eventHandler.setInputAction(o.bind(n,a,{mod:i,pointer:l}),t),n.listeners.push((function(){e.eventHandler.removeInputAction(t)})))}))}))}},{key:"positionInteraction",get:function(){return Cn}},{key:"featureInteraction",get:function(){return jn}},{key:"eventEmitter",get:function(){return En}},{key:"interactions",get:function(){return In.chain.slice()}}],[{key:"destroy",value:function(){Dn&&(Dn._removeExclusive(),Dn.listeners.forEach((function(e){e()}))),Dn=null}}]),e}(),An=Pn;function xn(){return null===Dn&&(Dn=new Pn),Dn}function Yn(e){for(var t=e.getPropertyNames(),i={},n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n="string"===typeof e?JSON.parse(e):e,r=Jn(n),a=r?{epsg:r}:i.dataProjection,s={formatOptions:{dataProjection:a?a.epsg:$.epsg,featureProjection:i.targetProjection?i.targetProjection.epsg:ee.epsg},dontReadStyle:i.dontReadStyle,readLegacyStyleOptions:i.readLegacyStyleOptions,defaultStyle:i.defaultStyle};if(i.dynamicStyle&&!s.defaultStyle&&(s.defaultStyle=mt),"FeatureCollection"===n.type)return n.vcsMeta=n.vcsMeta||{embeddedIcons:n.vcsEmbeddedIcons,style:n.vcsStyle},n.vcsMeta.embeddedIcons&&(s.embeddedIcons=n.vcsMeta.embeddedIcons),n.vcsMeta.style&&i.dynamicStyle&&(n.vcsMeta.style.type===Pe.REFERENCE?(t=G.getInstance().getStyleByName(n.vcsMeta.style.name),t?t instanceof dt&&(s.defaultStyle=t):Vn.warning("could not load referenced style ".concat(n.vcsMeta.style.name))):n.vcsMeta.style.type===Pe.DECLARATIVE?t=new Ct(n.vcsMeta.style):(n.vcsMeta.style=Qn(n.vcsMeta.style,s),s.defaultStyle=s.defaultStyle.clone().assign(new dt(n.vcsMeta.style)),t=s.defaultStyle)),{features:n.features.map((function(e){return $n(e,s)})).filter((function(e){return e})),style:n.vcsMeta.style?t:void 0,vcsMeta:n.vcsMeta?n.vcsMeta:void 0};if("Feature"===n.type){var o=$n(n,s);return{features:o?[o]:[],vcsMeta:n.vcsMeta?n.vcsMeta:void 0}}return null!=n.type?{features:[Zn(n,s)]}:{features:[]}}function tr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,n={type:"Feature",properties:e.getProperties()};t.writeId&&(n.id=e.getId()),delete n.properties[e.getGeometryName()],delete n.properties.style,delete n.properties.olcs_allowPicking;var r=e.getGeometry(),a=null;if(r instanceof ol.geom.Circle){var s=r.getCoordinates();a=Bn.haversineDistance(X.mercatorToWgs84(s[0],!0),X.mercatorToWgs84(s[1],!0)),r=new ol.geom.Point(r.getCenter())}else if(r instanceof ol.geom.Polygon){var o=r.getCoordinates();o.forEach((function(e){Un(e)})),r.setCoordinates(o)}else if(r instanceof ol.geom.MultiPolygon){var l=r.getCoordinates();l.forEach((function(e){e.forEach((function(e){Un(e)}))})),r.setCoordinates(l)}return n.geometry=Gn.writeGeometryObject(r,{featureProjection:zn,rightHanded:!0}),a&&(n.geometry.olcs_radius=a),n.vcsMeta={},t.writeStyle&&e[ut]&&(n.vcsMeta.style=gn(e[ut].getOptionsForFeature(e),i)),n}function ir(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.vcsMeta||{};i.version=Ft;var n=e.features.map((function(e){return tr(e,t,i.embeddedIcons)})),r={type:"FeatureCollection",features:n,vcsMeta:i};return t.writeStyle&&e.style&&(Vn.deprecate("data.style","use layer.getVcsMeta and pass that in instead"),pn(e.style,r.vcsMeta)),t.asObject?r:JSON.stringify(r,null,t.prettyPrint?2:null)}function nr(e){for(var t=0,i=e.length,n=0;n<=i-2;n++){var r=e[n],a=e[n+1];t+=r[0]*a[1]-r[1]*a[0]}return t/=2,t}function rr(e){var t=nr(e);return t<0&&e.reverse(),e}At.TILED_LAYER=At.lastLayerId,At.lastLayerId+=1;var ar=Symbol("isTiledFeature"),sr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=e.layertype?e.layertype:At.TILED_LAYER,e.className=e.className?e.className:i.className,n=t.call(this,e),n.featureVisibility=e.featureVisibility||new It,n.highlightStyle=null,e.highlightStyle&&(n.highlightStyle=e.highlightStyle instanceof dt?e.highlightStyle:new dt(e.highlightStyle)),n.cesiumTilesetLayerOptions=Object.assign({},e.cesiumTilesetLayerOptions,{featureVisibility:n.featureVisibility,highlightStyle:n.highlightStyle,genericFeatureProperties:n._genericFeatureProperties}),n.openlayersTiledLayerOptions=Object.assign({},e.openlayersTiledLayerOptions,{featureVisibility:n.featureVisibility,highlightStyle:n.highlightStyle,genericFeatureProperties:n._genericFeatureProperties}),n._dataFetched=!1,n.source=new ol.source.Vector({}),n.projection=ee,n.sourceProjection=n.projection.proj,n.internalProjection=ee,n.zIndex=50,n.editing=null,n.addedEditingSymbol=!1,n.FVlastUpdated=0,n._dataFetchedPromise=null,n._featureExtent=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.TiledLayer"}}]),Object(m["a"])(i,[{key:"getSource",value:function(){return this.source}},{key:"postRenderStyling",value:function(){_n.prototype.postRenderStyling.call(this)}},{key:"setEditing",value:function(e,t){this._dataFetched?this.addedEditingSymbol&&!t?(this.source.getFeatures().forEach((function(t){delete t[e]})),this.addedEditingSymbol=!1):t&&(this.addedEditingSymbol=!0,this.source.getFeatures().forEach((function(i){i[e]=t}))):this.editing={symbol:e,featureType:t}}},{key:"getFeatureById",value:function(e){var t=e;return-1!==String(e).indexOf("_OBLIQUE")&&(t=String(e).split("_OBLIQUE")[0]),this.source.getFeatureById(t)}},{key:"initialize",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.framework.getActiveMap(),n="vcs.vcm.maps.Cesium"===t.className?!!this.cesiumTilesetLayerOptions.url:!!this.openlayersTiledLayerOptions.url,!n){e.next=6;break}return e.next=5,ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);case 5:this.getFeatureExtent();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"activate",value:function(e){if(null!=e&&this.logger.deprecate("activate","activate no longer accepts an argument, use deactivate to deactivate the layer"),!1===e)return this.deactivate(),Promise.resolve();var t=this.framework.getActiveMap(),n="vcs.vcm.maps.Cesium"===t.className?!!this.cesiumTilesetLayerOptions.url:!!this.openlayersTiledLayerOptions.url;return n?ye(Object(fe["a"])(i.prototype),"activate",this).call(this):Promise.resolve()}},{key:"setHighlightStyle",value:function(e){this.highlightStyle=e}},{key:"determineHighlightStyle",value:function(e,t){var i=this.framework.getActiveMap();if(this.highlightStyle)return this.highlightStyle;if("vcs.vcm.maps.Cesium"===i.className){var n=this.getImplementation(this.framework.getActiveMap());return n.determineHighlightStyle()}return _n.prototype.determineHighlightStyle.call(this,e,t)}},{key:"setMaximumScreenSpaceError",value:function(e){var t=this.framework.getMapByType("vcs.vcm.maps.Cesium");if(t){var i=this.getImplementation(t);i&&i.setMaximumScreenSpaceError(e)}}},{key:"fetchData",value:function(){var e=this;return this._dataFetchedPromise||(null!=this.openlayersTiledLayerOptions.url?(this.framework.getActiveMap().setLayerLoading(this,!0),this._dataFetchedPromise=q.a.get(this.openlayersTiledLayerOptions.url).then((function(t){var i=t.data,n=er({features:i.features,type:"FeatureCollection"},{defaultStyle:e.defaultStyle instanceof dt?e.defaultStyle:mt}),r=n.features;r.forEach((function(e){e[ar]=!0})),_n.prototype.addFeatures.call(e,r),e.editing&&(e.setEditing(e.editing.symbol,e.editing.featureType),e.editing=null)})).catch((function(t){return e.logger.warning("Could not send request for loading layer content (".concat(t.message,")")),Promise.reject(t)})).then((function(){e.framework.getActiveMap().setLayerLoading(e,!1)}))):(this._dataFetched=!0,this._dataFetchedPromise=Promise.resolve())),this._dataFetchedPromise}},{key:"objectClickedHandler",value:function(e,t,i){if(this.allowPicking){var n=this.framework.getActiveMap();if((e instanceof Cesium.Cesium3DTileFeature||e instanceof Cesium.Cesium3DTilePointFeature)&&"vcs.vcm.maps.Cesium"===n.className){var r=this.getImplementation(n);return r.objectClickedHandler(e,t,i||this)}if(e instanceof ol.Feature&&("vcs.vcm.maps.Openlayers"===n.className||"vcs.vcm.maps.Oblique"===n.className))return _n.prototype.objectClickedHandler.call(this,e,t,i||this)}return!1}},{key:"getGenericFeatureFromClickedObject",value:function(e){var t=this.framework.getActiveMap(),i=this.getImplementation(t);return i?i.getGenericFeatureFromClickedObject(e):null}},{key:"getFeatureExtent",value:function(){if(!this._featureExtent){var e=this.framework.getActiveMap();if(this.initialized&&"vcs.vcm.maps.Cesium"===e.className){var t=this.getImplementation(e);this._featureExtent=t.getFeatureExtent()}else{if(!this.initialized||"vcs.vcm.maps.Openlayers"!==e.className){var i=new De(ee.getConfigObject());return i.extent=ol.extent.createEmpty(),i}this._featureExtent=new De(ee.getConfigObject()),this._featureExtent.extent=this.source.getExtent()}}return this._featureExtent.clone()}},{key:"screenSpaceErrorMobile",get:function(){var e=this.framework.getMapByType("vcs.vcm.maps.Cesium");if(e){var t=this.getImplementation(e);if(t)return t.screenSpaceErrorMobile}return null}},{key:"screenSpaceError",get:function(){var e=this.framework.getMapByType("vcs.vcm.maps.Cesium");if(e){var t=this.getImplementation(e);if(t)return t.screenSpaceError}return null}}]),i}(sn),or=sr,lr=k.getLogger("vcs.vcm.util.clipping.ClippingObject"),cr=Symbol("ClippingObjectGlobe"),ur=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(d["a"])(this,e),this.id=Fn()(),this.layerNames=t.layerNames||[],this.entities=t.entities||[],this.targets=new Map,this._clippingPlaneCollection=t.clippingPlaneCollection||null,this._terrain=Object(u["e"])(t.terrain,!1),this._local=Object(u["e"])(t.local,!1),this.targetsUpdated=new Cesium.Event,this.clippingPlaneUpdated=new Cesium.Event,this._cachedTiledLayers=new Set}return Object(m["a"])(e,[{key:"handleLayerChanged",value:function(e){var t,i=this,n=G.getInstance().getActiveMap();if(n instanceof Ut){if(this.layerNames.includes(e.name))if(e.active)if(e.cesium3DTileset?t=e:e instanceof or&&(t=e.getImplementation(n)),t)t.cesium3DTileset.readyPromise.then((function(t){i.layerNames.includes(e.name)&&e.active&&(i.targets.set(e.name,t),i.targetsUpdated.raiseEvent())}));else{var r=this.layerNames.indexOf(e.name);lr.warning("layer ".concat(e.name," cannot have a ClippingObject applied")),this.layerNames.splice(r,1)}else this.targets.has(e.name)&&(this.targets.delete(e.name),this.targetsUpdated.raiseEvent());else if(this.entities.find((function(t){return t.layerName===e.name}))){var a=!1;this.entities.filter((function(t){return t.layerName===e.name})).forEach((function(t){var n="".concat(t.layerName,"-").concat(t.entityId);if(e.active){var r=e.entities.getById(t.entityId);if(r)i.targets.set(n,r),a=!0;else{var s=i.entities.indexOf(t);lr.warning("could not find entity with id ".concat(t.entityId," in layer ").concat(t.layerName)),i.entities.splice(s,1)}}else i.targets.has(n)&&(i.targets.delete(n),a=!0)})),a&&this.targetsUpdated.raiseEvent()}}else this.layerNames.includes(e.name)&&e instanceof or&&(e.active?this._cachedTiledLayers.add(e):this._cachedTiledLayers.has(e)&&this._cachedTiledLayers.delete(e))}},{key:"handleMapChanged",value:function(e){var t=this;if(e instanceof Ut){var i=e.getScene(),n=i.globe,r=!1;this._terrain&&!this.targets.has(cr)?(this.targets.set(cr,n),r=!0):!this._terrain&&this.targets.has(cr)&&(this.targets.delete(cr),r=!0),r&&this.targetsUpdated.raiseEvent(),this._cachedTiledLayers.size>0&&(this._cachedTiledLayers.forEach((function(e){t.handleLayerChanged(e)})),this._cachedTiledLayers.clear())}}},{key:"addLayer",value:function(e){if(o(e,String),!this.layerNames.includes(e)){this.layerNames.push(e);var t=G.getInstance().getLayerByName(e);t&&t.active&&this.handleLayerChanged(t)}}},{key:"removeLayer",value:function(e){o(e,String);var t=this.layerNames.indexOf(e);t>-1&&this.layerNames.splice(t,1),this.targets.has(e)&&(this.targets.delete(e),this.targetsUpdated.raiseEvent())}},{key:"addEntity",value:function(e,t){if(o(e,String),o(t,String),!this.entities.find((function(i){return i.layerName===e&&i.entityId===t}))){this.entities.push({layerName:e,entityId:t});var i=G.getInstance().getLayerByName(e);i&&i.active&&this.handleLayerChanged(i)}}},{key:"removeEntity",value:function(e,t){o(e,String),o(t,String);var i=this.entities.findIndex((function(i){return i.layerName===e&&i.entityId===t}));i>-1&&this.entities.splice(i,1);var n="".concat(e,"-").concat(t);this.targets.has(n)&&(this.targets.delete(n),this.targetsUpdated.raiseEvent())}},{key:"clippingPlaneCollection",get:function(){return this._clippingPlaneCollection},set:function(e){this._clippingPlaneCollection=e,this.clippingPlaneUpdated.raiseEvent()}},{key:"terrain",get:function(){return this._terrain},set:function(e){o(e,Boolean),this._terrain!==e&&(this._terrain=e,this.handleMapChanged(G.getInstance().getActiveMap()))}},{key:"local",get:function(){return this._local},set:function(e){o(e,Boolean),this._local!==e&&(this._local=e,this.clippingPlaneUpdated.raiseEvent())}}]),e}(),hr=ur,dr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.zPlane=e.zPlane,n.scene=null,n.plane=null,n.ray=new Cesium.Ray,n.cartographic=new Cesium.Cartographic,n}return Object(m["a"])(i,[{key:"handleMapChange",value:function(e){this.plane=null,this.scene=e instanceof Ut?e.getScene():null}},{key:"createPlane",value:function(e){this.scene&&(this.plane=this.zPlane?hi(e,this.scene):ui(e,this.scene))}},{key:"getPosition",value:function(e){var t=e.positionOrPixel.slice();if(this.plane){this.ray=this.scene.camera.getPickRay(e.windowPosition,this.ray);var i=Cesium.IntersectionTests.rayPlane(this.ray,this.plane);i&&(this.cartographic=this.scene.globe.ellipsoid.cartesianToCartographic(i,this.cartographic),this.zPlane?t=X.wgs84ToMercator([Cesium.Math.toDegrees(this.cartographic.longitude),Cesium.Math.toDegrees(this.cartographic.latitude),this.cartographic.height]):t[2]=this.cartographic.height)}return t}}]),i}(ce),mr=dr,fr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n,r){var a;return Object(d["a"])(this,i),a=t.call(this,{zPlane:!0}),a.editor=e,a.finished=!0,a.onFinish=n,a._lastVertex=null,a.maxVertices=r,a._lastPosition=null,a._defaultActive=re.CLICKMOVE,a.setActive(!1),a}return Object(m["a"])(i,[{key:"pipe",value:function(e){return this.finished||(e.type&re.MOVE?(t=this.getPosition(e),this.editor.vertices.length1e-4?this._aspectRatio=e:(this._aspectRatio=null,e&&Cr.warning("aspect ratio ".concat(e," is too small or too large")))},get:function(){return this._aspectRatio}}]),i}(Sr),Er=jr,Ir=new ol.style.Style({});function Dr(){}var Pr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){var r;return Object(d["a"])(this,i),r=t.call(this),r.editor=e,r.finished=!0,r.onFinish=n||Dr,r._defaultActive=re.CLICKMOVE,r.setActive(!1),r}return Object(m["a"])(i,[{key:"pipe",value:function(e){return this.finished||(e.type&re.MOVE&&this.editor.changeVertex(this._lastVertex,e.positionOrPixel,!this.editor.state.transformGeometryOnMove),e.type&re.CLICK&&(this.editor.changeVertex(this._lastVertex,e.positionOrPixel),this._lastVertex.setStyle(null),this.editor.feature.setStyle(this._featureStyle),this.onFinish(),this.setActive(!1))),Promise.resolve(e)}},{key:"setActive",value:function(e){e&&0===this.editor.vertices.length?(this.finished=!1,this._lastVertex=this.editor.pushVertex([0,0,0]),this._lastVertex.setStyle(Ir),this._featureStyle=this.editor.feature.getStyle(),this.editor.feature.setStyle(Ir)):this.finished=!0,ye(Object(fe["a"])(i.prototype),"setActive",this).call(this,!this.finished&&e)}}]),i}(ce),Ar=Pr,xr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.editor=e,n._defaultActive=re.CLICK,n._defaultModificationKey=ne.SHIFT,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){return!this.editor.state.onlyAllowTranslation&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.VERTEX&&this.editor.removeVertex(e.feature),Promise.resolve(e)}}]),i}(ce),Yr=xr,Nr=i(89),Fr=i.n(Nr),Rr=[/\+/,/-/,/\*/,new RegExp("\\/")],Hr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.balloonContent=e.balloonContent,n.template=e.template,n.attributes=e.attributes,n.layerName=e.layerName,n.longitude=e.longitude,n.latitude=e.latitude,n.height=e.height||0,n.relativeToGround=e.relativeToGround,n.minTop=e.minTop||"0",n.viewerTopOffset=0,n.minLeft=e.minLeft||"0",n.containerId=e.containerId||"balloonContainer",n.balloonWidget=e.balloonWidget,n.balloonId=Object(u["c"])(),n.initialized=!1,n.initializedFor=null,n.cartographic=new Cesium.Cartographic,n.cartesian3=null,n.mercatorCoordinates=null,n.obliqueCoordinates=null,n.obliqueImageChangedSubscriptionKey=n.framework.subscribe(O.OBLIQUE_IMAGE_CHANGED,n.obliqueChangedListener.bind(Object(gt["a"])(n))),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.util.Balloon"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this.framework.getActiveMap();e instanceof Ut?this.initializeForCesium():e instanceof Vi?this.initializeForOpenlayers():e instanceof Fi&&this.initializeForOblique()}},{key:"setPosition",value:function(e){var t=this;if("cesium"===this.initializedFor)X.mercatorToWgs84(e,!0),this.relativeToGround?(this.cartographic.longitude=Cesium.Math.toRadians(e[0]),this.cartographic.latitude=Cesium.Math.toRadians(e[1])):this.cartesian3=Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2],this.cesiumScene.globe.ellipsoid,this.cartesian3);else if("openlayers"===this.initializedFor)this.mercatorCoordinates.splice(0,3,e[0],e[1],e[2]);else if("oblique"===this.initializedFor){var i=this.framework.getActiveMap();if(i instanceof Fi)return Object(Wt["f"])(i.activeLayer.currentImage,[e[0],e[1],e[2]],{dataProjection:ol.proj.get("EPSG:3857")}).then((function(e){var i=e.coords;t.obliqueCoordinates.splice(0,2,i[0],i[1])}))}return Promise.resolve()}},{key:"obliqueChangedListener",value:function(){this.close()}},{key:"getDomNodes",value:function(){var e;if(this.balloonContent)e=this.balloonContent;else try{e=Fr()(this.template)(this.attributes)}catch(a){return this.logger.warning("Could not render the template for layer: ".concat(this.layerName,". Please verify that the balloon template is correct")),null}var t=document.createElement("div");if(t.setAttribute("id",this.balloonId),e instanceof HTMLElement?t.appendChild(e):t.innerHTML=e,!t.children.length){var i=document.createElement("div");i.innerHTML=e,t.appendChild(i)}for(var n=0;n0?(t=this.editor.reverse?this.editor.vertices[0]:this.editor.vertices.slice(-1)[0],t=t.getGeometry().getCoordinates()):t=[0,0,0],this._lastVertex=this.editor.reverse?this.editor.unshiftVertex(t):this.editor.pushVertex(t),this._lastVertex.setStyle(Jr)):this.finished=!0;ye(Object(fe["a"])(i.prototype),"setActive",this).call(this,e)}}]),i}(ce),Zr=Kr,Qr=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){var r;return Object(d["a"])(this,i),r=t.call(this),r.editor=e,r.callback=n,r.timeOut=null,r.clickDuration=xn().clickDuration,r._defaultActive=re.CLICK|re.DBLCLICK,r.setActive(),r}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(!this.editor.state.onlyAllowTranslation){if(e.type&re.DBLCLICK)return this.editor.reverse=!1,clearTimeout(this.timeOut),Promise.resolve(e);if(e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.VERTEX){var t=this.editor.getVertexIndex(e.feature);0===t?(this.editor.reverse=!0,this.doCallback()):t===this.editor.vertices.length-1&&this.doCallback()}}return Promise.resolve(e)}},{key:"doCallback",value:function(){this.timeOut=setTimeout(this.callback,this.clickDuration)}}]),i}(ce),Xr=Qr,$r=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.editor=e,n._defaultActive=re.CLICK,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){return!this.editor.state.onlyAllowTranslation&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.EDITING&&this.editor.insertVertex(e.positionOrPixel),Promise.resolve(e)}}]),i}(ce),ea=$r,ta=k.getLogger("vcs.vcm.util.editor.LineGeometryEditor"),ia=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n._create=new Zr(Object(gt["a"])(n),n._validateOnFinish.bind(Object(gt["a"])(n))),n.interactionChain.addInteraction(n._create),n.geometry=n.geometry,n.reverse=!1,n._lastVertex=new Xr(Object(gt["a"])(n),(function(){n.getRootEditor().setMode(ln.CREATE)})),n.interactionChain.addInteraction(n._lastVertex),n._insertVertex=new ea(Object(gt["a"])(n)),n.interactionChain.addInteraction(n._insertVertex),n._removeVertex=new Yr(Object(gt["a"])(n)),n.interactionChain.addInteraction(n._removeVertex),n}return Object(m["a"])(i,[{key:"_createVertices",value:function(){for(var e=this.geometry.getCoordinates(),t=0;t-1){var i=this.geometry.getCoordinates();i.splice(t,1),this.geometry.setCoordinates(i),this.vertices.splice(t,1),this.scratchLayer.removeFeaturesById([e.getId()])}}},{key:"stopCreation",value:function(){if(ye(Object(fe["a"])(i.prototype),"stopCreation",this).call(this),this.creationActive&&this.validate()){var e=this.reverse?this.vertices[0]:this.vertices[this.vertices.length-1];this.removeVertex(e)}}},{key:"setMode",value:function(e){ta.debug("LineGeometryEditor ".concat(e," ").concat(Object.keys(ln).find((function(t){return ln[t]===e})))),ye(Object(fe["a"])(i.prototype),"setMode",this).call(this,e),this.feature.set("olcs_allowPicking",!!(e&ln.EDIT)),this.state.mode&ln.EDIT?(this._lastVertex.setActive(),this._insertVertex.setActive(),this._removeVertex.setActive()):this.state.mode&ln.REMOVEVERTEX&&(this._removeVertex.setActive(!0),this._removeVertex.setModification(ne.NONE))}},{key:"validate",value:function(){var e=1;return this.creationActive&&(e+=1),"LinearRing"===this.geometry.getType()&&(e+=1),this.geometry.getCoordinates().length>e}}]),i}(Sr),na=ia,ra=new ol.Sphere(6378137),aa=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),n=t.call(this,e),n._create=new gr(Object(gt["a"])(n),n._validateOnFinish.bind(Object(gt["a"])(n)),2),n.interactionChain.addInteraction(n._create),n.geometry=n.geometry,n.radius=null;var r=n.feature.get("olcs.circle_type");return r&&"sphere"===r||(n._translateVertex.forceZPlane=!0),n.setAltitudeModeToAbsoluteOnClassification=!1,n}return Object(m["a"])(i,[{key:"initialize",value:function(){var e=this.geometry.getCenter();e[2]=e[2]||0;var t=this.geometry.getRadius();this.geometry.setCenterAndRadius(e,t,"XYZ"),ye(Object(fe["a"])(i.prototype),"initialize",this).call(this)}},{key:"_createVertices",value:function(){var e=this.geometry.getFirstCoordinate();if(!e.every((function(e){return 0===e}))){this.vertices.push(this._createVertex(e,0));var t=this.geometry.getLastCoordinate();t.length&&this.vertices.push(this._createVertex(t,1)),this.scratchLayer.addFeatures(this.vertices)}}},{key:"updateGeometry",value:function(){2===this.vertices.length&&this.geometry.setCoordinates([this.vertices[0].getGeometry().getCoordinates(),this.vertices[1].getGeometry().getCoordinates()])}},{key:"pushVertex",value:function(e){if(this.vertices.length<2){var t=!1,i=this.vertices.length;1===i&&(this.geometry.setCenter(this.vertices[0].getGeometry().getCoordinates()),this.radius&&(this.geometry.setRadius(this.radius),e[0]+=this.radius,this.radius=null,t=!0));var n=this._createVertex(e,i);return this.vertices.push(n),this.scratchLayer.addFeatures([n]),t&&this.stopCreation(),n}return this.vertices[1]}},{key:"validate",value:function(){return!this.creationActive}},{key:"translateVertex",value:function(e,t,n,r,a){if(0===r[kr])ye(Object(fe["a"])(i.prototype),"translateVertex",this).call(this,e,t,n,r,!0),a||(this.geometry.setCenter(r.getGeometry().getCoordinates()),this.vertices[1].getGeometry().setCoordinates(this.geometry.getLastCoordinate()));else{var s,o=this.feature.get("olcs.circle_type");if(o&&"sphere"===o?(s=oi,ye(Object(fe["a"])(i.prototype),"translateVertex",this).call(this,e,t,n,r,!0)):(s=si,r.getGeometry().translate(e,t)),!a){var l=this.vertices[0].getGeometry().getCoordinates(),c=r.getGeometry().getCoordinates(),u=s(l,c);this.geometry.setRadius(u)}}}},{key:"translateVertexHeight",value:function(e,t,i){var n=2;while(n--){var r=this.vertices[n].getGeometry(),a=r.getCoordinates();a[2]+=e,r.setCoordinates(a)}i||this.geometry.setCenter(this.vertices[0].getGeometry().getCoordinates())}},{key:"setPosition",value:function(e){o(e,[Number]),o(e.length,3),this.geometry.setCenter(e),this._clearVertices(),this._createVertices()}},{key:"setRadius",value:function(e){o(e,Number);var t=this.geometry.getCenter(),i=ra.offset(X.mercatorToWgs84(t),e,Math.PI/2);i[2]=t[2],this.geometry.setCoordinates([t,X.wgs84ToMercator(i,!0)]),this.vertices.length>1?(this.vertices[1].getGeometry().setCoordinates(this.geometry.getLastCoordinate()),this.creationActive&&this._validateOnFinish()):this.radius=Math.abs(i[0]-t[0])}}]),i}(Sr),sa=aa,oa=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n,r,a){var s;return Object(d["a"])(this,i),s=t.call(this),s.geometry=e,s.cb=n,s.isEditingGeometry=r,s.featureTypeSymbol=a,s._defaultActive=re.CLICK,s.setActive(),s}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(e.feature&&e.feature[this.featureTypeSymbol]&cn.EDITING&&this.geometry[this.isEditingGeometry]){var t=Qt(this.geometry);if(0===t.length)return this.cb(0),Promise.resolve(e);for(var i=1/0,n=0,r=0;ra*(t?1:10)&&(i/=a,r="k".concat(r)),"".concat(i.toFixed(this.decimalPlaces)," ").concat(r)}},{key:"addLabel",value:function(){var e=fa.Point(),t=new ol.Feature({geometry:e});return this.map instanceof Fi&&(e[_n.alreadyTransformedToImage]=!0,t[_n.doNotTransform]=!0),t.setStyle(new ol.style.Style({text:this.parent.featureLayer.style.text.clone()})),this.parent.featureLayer.addFeatures([t]),t[this.parent.geometryEditor.state.featureTypeSymbol]=0,this.featureIds.push(t.getId()),t}},{key:"destroy",value:function(){this.parent.featureLayer.removeFeaturesById(this.featureIds)}}],[{key:"setTextOnLabel",value:function(e,t){e.getStyle().getText().setText(t)}}]),e}(),va=pa,_a=new ol.Sphere(6378137);function ba(e,t){var i=Cesium.Cartesian3.subtract(e,t,new Cesium.Cartesian3);Cesium.Cartesian3.normalize(i,i);var n=Cesium.Plane.fromPointNormal(e,i);return Cesium.ClippingPlane.fromPlane(n)}function La(e){for(var t=[],i=e.map((function(e){var t;return(t=Cesium.Cartesian3).fromDegrees.apply(t,Object(g["a"])(X.mercatorToWgs84(e)))})),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;o(e,ol.Feature),o(t,Object),l(i,Cesium.Matrix4);var n=[],r=e.getGeometry(),a=r.getType();if("Point"===a)n.push.apply(n,Object(g["a"])(wa(e,[r.getCoordinates()],t)));else{var s=di(r);if(s.length<2||s[0][0]===s[1][0]&&s[0][1]===s[1][1])return null;"Polygon"===a?(Un(s),rr(s)):"LineString"===a&&2===s.length&&t.createEndingPlanes&&n.push.apply(n,Object(g["a"])(Ma(s))),t.createVerticalPlanes&&n.push.apply(n,Object(g["a"])(La(s))),"absolute"===e.get("olcs_altitudeMode")&&(t.createBottomPlane||t.createTopPlane)&&n.push.apply(n,Object(g["a"])(wa(e,s,t)))}return i&&n.forEach((function(e){var t=Cesium.Plane.transform(e,i);e.normal=t.normal,e.distance=t.distance})),t.reverse&&n.forEach((function(e){Cesium.Cartesian3.negate(e.normal,e.normal),e.distance*=-1})),new Cesium.ClippingPlaneCollection({planes:n,unionClippingRegions:t.reverse})}function Oa(e,t,i,n){o(e,Cesium.ClippingPlaneCollection),o(t,Cesium.ClippingPlaneCollection),t.length>0&&t.removeAll();for(var r=0;r1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:25;if(o(e,[Number]),o(i,Boolean),o(n,Number),i){var r=G.getInstance().getMapByType("vcs.vcm.maps.Cesium").getScene(),a=r.camera,s=_a.offset(e,-n,a.heading),l=_a.offset(e,n,a.heading);t=new ol.geom.LineString([[s[0],s[1],e[2]],[l[0],l[1],e[2]]],"XYZ")}else{t=fa.Polygon();var c=2*Math.PI-Math.PI/4,u=Object(g["a"])(new Array(4)).map((function(){var t=_a.offset(e,n,c);return c-=Math.PI/2,[t[0],t[1],e[2]]}));t.setCoordinates([u])}var h=new ol.Feature({geometry:t});return h.set("olcs_altitudeMode","absolute"),i&&h.set("olcs_extrudedHeight",2*n),t.transform($.proj,ee.proj),h}function Da(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];l(e,ol.Feature),o(t,Boolean);var i=!!e&&"LineString"===e.getGeometry().getType();return i?{createBottomPlane:!t,createTopPlane:!t,createEndingPlanes:!t,createVerticalPlanes:!0}:{createVerticalPlanes:!t,createBottomPlane:!0}}var Pa,Aa=null,xa=function(){function e(){Object(d["a"])(this,e),this._defaultClippingObjects=new Set,this._exclusiveClippingObjects=null,this._targetsMap=new Map,this._listenersMap=new Map,this._exclusiveRemovedCb=null,this.initialized=!1,this._updateSuspended=!1,this._dirty=!1}return Object(m["a"])(e,null,[{key:"className",get:function(){return"vcs.vcm.util.clipping.ClippingObjectManager"}}]),Object(m["a"])(e,[{key:"initialize",value:function(){var e=this;if(!this.initialized){var t=G.getInstance();t.subscribe(O.LAYER_CHANGED,(function(t){e.suspendUpdate=!0,e._defaultClippingObjects.forEach((function(e){e.handleLayerChanged(t)})),e._exclusiveClippingObjects&&e._exclusiveClippingObjects.forEach((function(e){e.handleLayerChanged(t)})),e.suspendUpdate=!1})),t.subscribe(O.MAP_ACTIVATED,(function(t){e.suspendUpdate=!0,e._defaultClippingObjects.forEach((function(e){e.handleMapChanged(t)})),e._exclusiveClippingObjects&&e._exclusiveClippingObjects.forEach((function(e){e.handleMapChanged(t)})),e.suspendUpdate=!1}))}}},{key:"addClippingObject",value:function(e){if(o(e,hr),this.hasClippingObject(e))throw new Error("ClippingObject already managed, remove it first");this._defaultClippingObjects.add(e);var t=G.getInstance(),i=t.getActiveMap();i instanceof Ut&&(e.handleMapChanged(i),t.getLayers().forEach((function(t){e.handleLayerChanged(t)}))),this._listenersMap.set(e,[e.targetsUpdated.addEventListener(this._update.bind(this)),e.clippingPlaneUpdated.addEventListener(this._clippingPlaneUpdated.bind(this,e))]),this._update()}},{key:"removeClippingObject",value:function(e){o(e,hr),this._defaultClippingObjects.has(e)&&(this._defaultClippingObjects.delete(e),this._listenersMap.get(e).forEach((function(e){e()})),this._listenersMap.delete(e),this._update())}},{key:"hasClippingObject",value:function(e){return o(e,hr),this._defaultClippingObjects.has(e)||!(!this._exclusiveClippingObjects||!this._exclusiveClippingObjects.includes(e))}},{key:"setExclusiveClippingObjects",value:function(e,t){var i=this;if(o(e,[hr]),o(t,Function),e.find((function(e){return i._defaultClippingObjects.has(e)})))throw new Error("Some ClippingObjects are already managed, remove them first");var n=G.getInstance(),r=n.getActiveMap(),a=n.getLayers();this._clearExclusiveClippingObjects(),this._exclusiveRemovedCb=t,this._exclusiveClippingObjects=e,this._exclusiveClippingObjects.forEach((function(e){r instanceof Ut&&(e.handleMapChanged(r),a.forEach((function(t){e.handleLayerChanged(t)}))),i._listenersMap.set(e,[e.targetsUpdated.addEventListener(i._update.bind(i)),e.clippingPlaneUpdated.addEventListener(i._clippingPlaneUpdated.bind(i,e))])})),this._update()}},{key:"_clearExclusiveClippingObjects",value:function(e){var t=this;this._exclusiveClippingObjects&&(this._exclusiveClippingObjects.forEach((function(e){t._listenersMap.get(e).forEach((function(e){e()})),t._listenersMap.delete(e)})),this._exclusiveClippingObjects=null),!e&&this._exclusiveRemovedCb&&this._exclusiveRemovedCb(),this._exclusiveRemovedCb=null}},{key:"clearExclusiveClippingObjects",value:function(e){this._clearExclusiveClippingObjects(e),this._update()}},{key:"_update",value:function(){var e=this;if(this._updateSuspended)this._dirty=!0;else{var t=new Set(this._targetsMap.keys()),i=function(i){i.targets.forEach((function(n){e._targetsMap.set(n,i),t.delete(n)}))};this._targetsMap.clear(),this._defaultClippingObjects.forEach(i),this._exclusiveClippingObjects&&this._exclusiveClippingObjects.forEach(i),t.forEach((function(e){Ta(e)})),this._targetsMap.forEach((function(e,t){e.clippingPlaneCollection&&Ea(t,e.clippingPlaneCollection,e.local)}))}}},{key:"_clippingPlaneUpdated",value:function(e){this._targetsMap.forEach((function(t,i){t===e&&e.clippingPlaneCollection&&Ea(i,e.clippingPlaneCollection)}))}},{key:"suspendUpdate",get:function(){return this._updateSuspended},set:function(e){o(e,Boolean),this._updateSuspended=e,!this._updateSuspended&&this._dirty&&(this._dirty=!1,this._update())}}],[{key:"getInstance",value:function(){return Aa||(Aa=new e,Aa.initialize()),Aa}}]),e}(),Ya=xa;O.SPLIT_DIRECTION_CHANGED="SPLIT_DIRECTION_CHANGED";var Na=function(){function e(){Object(d["a"])(this,e),this._position=.5,this.scene=null,this.olMap=null,this.initialized=!1,this.leftScreenClippingObject=new hr,this.rightScreenClippingObject=new hr,this._cameraListener=null,this.originalCameraPercentageChanged=null}return Object(m["a"])(e,[{key:"initialize",value:function(){if(!this.initialized){var e=G.getInstance();this.handleMapChange(e.getActiveMap()),this.mapListener=e.subscribe(O.MAP_ACTIVATED,this.handleMapChange,this),this.rightScreenClippingObject.targetsUpdated.addEventListener(this._targetsChanged,this),this.leftScreenClippingObject.targetsUpdated.addEventListener(this._targetsChanged,this),Ya.getInstance().addClippingObject(this.rightScreenClippingObject),Ya.getInstance().addClippingObject(this.leftScreenClippingObject),this.initialized=!0}}},{key:"_targetsChanged",value:function(){if(this.scene){var e=this.rightScreenClippingObject.targets.size+this.leftScreenClippingObject.targets.size,t=this.scene.camera;this._cameraListener&&0===e?(this._cameraListener(),this._cameraListener=null,t.percentageChanged=this.originalCameraPercentageChanged):!this._cameraListener&&e>0&&(this.originalCameraPercentageChanged=t.percentageChanged,t.percentageChanged=0,this._cameraListener=t.changed.addEventListener(this._updateClippingPlanes.bind(this)),this._updateClippingPlanes())}}},{key:"_updatePosition",value:function(e){this._position=e,this.scene?(this.scene.imagerySplitPosition=e,this._updateClippingPlanes()):this.olMap&&this.olMap.render()}},{key:"handleMapChange",value:function(e){e instanceof Ut?(this.scene=e.getScene(),this.olMap=null,this._targetsChanged()):e instanceof Vi&&(this.scene=null,this.olMap=e.olMap),this._updatePosition(this.position)}},{key:"_calcClippingPlane",value:function(){var e,t=this.scene.camera,i=t.frustum,n=i.fov,r=i.near,a=this.scene.canvas.width,s=this.scene.canvas.height;e=s>a?r*Math.tan(.5*n)*2/s:r*Math.tan(.5*n)*2/a;var o=a*this.position-a/2,l=s/2,c=new Cesium.Cartesian3(e*o,e*l,-1*r),u=new Cesium.Cartesian3(e*o,-1*e*l,-1*r);Cesium.Matrix4.multiplyByPoint(t.inverseViewMatrix,c,c),Cesium.Matrix4.multiplyByPoint(t.inverseViewMatrix,u,u);var h=t.positionWC;Cesium.Cartesian3.subtract(h,c,c),Cesium.Cartesian3.subtract(h,u,u);var d=Cesium.Cartesian3.cross(c,u,new Cesium.Cartesian3);Cesium.Cartesian3.normalize(d,d);var m=Cesium.Plane.fromPointNormal(h,d);return Cesium.ClippingPlane.fromPlane(m)}},{key:"_updateClippingPlanes",value:function(){var e=this._calcClippingPlane();this.leftScreenClippingObject.clippingPlaneCollection=new Cesium.ClippingPlaneCollection({planes:[e]});var t=Cesium.ClippingPlane.clone(e);t.normal=Cesium.Cartesian3.negate(t.normal,t.normal),t.distance*=-1,this.rightScreenClippingObject.clippingPlaneCollection=new Cesium.ClippingPlaneCollection({planes:[t]})}},{key:"getClippingObjectForDirection",value:function(e){return o(e,[Cesium.ImagerySplitDirection.LEFT,Cesium.ImagerySplitDirection.RIGHT,Cesium.ImagerySplitDirection.NONE]),e===Cesium.ImagerySplitDirection.LEFT?this.leftScreenClippingObject:e===Cesium.ImagerySplitDirection.RIGHT?this.rightScreenClippingObject:null}},{key:"destroy",value:function(){this.initialized&&(G.getInstance().unsubscribeByKey(this.mapListener),Ya.getInstance().removeClippingObject(this.rightScreenClippingObject),Ya.getInstance().removeClippingObject(this.leftScreenClippingObject),this.rightScreenClippingObject.targetsUpdated.removeEventListener(this._targetsChanged,this),this.leftScreenClippingObject.targetsUpdated.removeEventListener(this._targetsChanged,this)),this._cameraListener&&(this._cameraListener(),this._cameraListener=null),Pa=null}},{key:"position",get:function(){return this._position},set:function(e){if(o(e,Number),e<0||e>1)throw new Error("Position must be between 0 and 1");Math.abs(this._position-e)>1e-4&&this._updatePosition(e)}}]),e}();function Fa(){return Pa||(Pa=new Na,Pa.initialize()),Pa}var Ra=Symbol("_lastUpdated"),Ha=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),n=t.call(this,e),n.url&&!/\.json$/.test(n.url)&&(n.url="".concat(n.url.replace(/\/$/,""),"/tileset.json")),n.featureVisibility=e.featureVisibility||new It,n.highlightStyle=e.highlightStyle?new dt(e.highlightStyle):null,n.jumpToLocation=!!e.jumpToLocation,n.screenSpaceError=Object(u["h"])(e.screenSpaceError,16),n.screenSpaceErrorMobile=Object(u["h"])(e.screenSpaceErrorMobile,32),n.maximumMemoryUsage=Object(u["h"])(e.maximumMemoryUsage,16),n._featureExtent=null;var r=e.tilesetOptions||{};return n.tilesetOptions=Object.assign({url:n.url,maximumScreenSpaceError:n.framework.isMobile()?n.screenSpaceErrorMobile:n.screenSpaceError,maximumMemoryUsage:n.maximumMemoryUsage},r),n._styleLastUpdated=Date.now(),n._loadProgressListener=null,n._splitDirection=Cesium.ImagerySplitDirection.NONE,e.splitDirection&&(n._splitDirection="left"===e.splitDirection?Cesium.ImagerySplitDirection.LEFT:Cesium.ImagerySplitDirection.RIGHT),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.AbstractCesiumTilesetLayer"}},{key:"lastUpdated",get:function(){return Ra}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this._initializedPromise||(this.cesium3DTileset=new Cesium.Cesium3DTileset(this.tilesetOptions),this.cesium3DTileset[Ht.vcsLayerNameSymbol]=this.name,this.cesium3DTileset.tileVisible.addEventListener(this.applyStyle.bind(this)),this.cesium3DTileset.tileUnload.addEventListener((function(e){delete e[i.lastUpdated]})),this.layerLoadingEventListener=function(e,t){0===e&&0===t?this.framework.getActiveMap().setLayerLoading(this,!1):this.framework.getActiveMap().setLayerLoading(this,!0)}.bind(this),this._initializedPromise=new Promise((function(t,i){e.cesium3DTileset.readyPromise.then((function(i){if(e.jumpToLocation){var n=e.framework.getActiveMap();n.getCesiumWidget().camera.viewBoundingSphere(i.boundingSphere,new Cesium.HeadingPitchRange(0,-2,0)),n.getCesiumWidget().camera.lookAtTransform(Cesium.Matrix4.IDENTITY)}e.initialized=!0,e.setStyle(e.style),t()}),i)}))),this._initializedPromise}},{key:"show",value:function(){var e=this.framework.getActiveMap();if(e&&"vcs.vcm.maps.Cesium"===e.className&&(e.getScene().primitives.contains(this.cesium3DTileset)||e.getScene().primitives.add(this.cesium3DTileset)),this._loadProgressListener||(this._loadProgressListener=this.cesium3DTileset.loadProgress.addEventListener(this.layerLoadingEventListener)),this.splitDirection){var t=Fa().getClippingObjectForDirection(this.splitDirection);t&&t.addLayer(this.name)}this.cesium3DTileset.show=!0}},{key:"hide",value:function(){if(this._loadProgressListener&&(this._loadProgressListener(),this._loadProgressListener=null),this.splitDirection){var e=Fa().getClippingObjectForDirection(this.splitDirection);e&&e.removeLayer(this.name)}this.cesium3DTileset.show=!1,this.framework.getActiveMap().setLayerLoading(this,!1)}},{key:"objectClickedHandler",value:function(e,t,i){if(this.allowPicking){var n=Yn(e);if(n)return this.raiseFeatureEvent(t,n.id,n,i||this),!0}return!1}},{key:"getGenericFeatureFromClickedObject",value:function(e){var t=Object.assign({},this._genericFeatureProperties,e.attributes||e);return{layerName:this.name,layerClass:this.className,attributes:t,longitude:e.clickedPosition.longitude,latitude:e.clickedPosition.latitude,height:e.clickedPosition.height,relativeToGround:!1}}},{key:"getCesium3DTileset",value:function(){return this.logger.warning("Function getCesium3DTileset is deprecated and will be removed in the next release. Access the property cesium3DTileset directly instead"),this.cesium3DTileset}},{key:"getFeatureExtent",value:function(){if(this._featureExtent)return this._featureExtent.clone();var e=new De(ee.getConfigObject());if(e.extent=ol.extent.createEmpty(),this.cesium3DTileset){var t=this.cesium3DTileset.root.boundingVolume.rectangle;if(t){var i=Cesium.Rectangle.southwest(t),n=Cesium.Rectangle.northeast(t),r=X.wgs84ToMercator([Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude)]),a=X.wgs84ToMercator([Cesium.Math.toDegrees(n.longitude),Cesium.Math.toDegrees(n.latitude)]);e.extent=[r[0],r[1],a[0],a[1]]}else{var s=this.cesium3DTileset.boundingSphere,o=s.center,l=s.radius,c=Cesium.Cartographic.fromCartesian(o),u=X.wgs84ToMercator([Cesium.Math.toDegrees(c.longitude),Cesium.Math.toDegrees(c.latitude),c.height]),h=vi(u,l);e.extent=h.getExtent()}e.isValid()&&(this._featureExtent=e.clone())}return e}},{key:"setStyle",value:function(e,t){var n=this;ye(Object(fe["a"])(i.prototype),"setStyle",this).call(this,e,t),this.initialized&&(this.cesium3DTileset.style=this.style.cesiumStyle,this._onStyleChangeRemover&&this._onStyleChangeRemover(),this._onStyleChangeRemover=this.style.styleChanged.addEventListener((function(){n.cesium3DTileset.makeStyleDirty(),n._styleLastUpdated=Date.now(),n._lastUpdated=Date.now()})),this._styleLastUpdated=Date.now(),this.featureVisibility.lastUpdated=Date.now(),this.cesium3DTileset.readyPromise.then((function(){n.cesium3DTileset.colorBlendMode!==n.style.colorBlendMode&&(n.style.colorBlendMode!==Cesium.Cesium3DTileColorBlendMode.HIGHLIGHT?n.cesium3DTileset.extras&&n.cesium3DTileset.extras._3DTILESDIFFUSE&&(n.cesium3DTileset.colorBlendMode=n.style.colorBlendMode):n.cesium3DTileset.colorBlendMode=n.style.colorBlendMode)})))}},{key:"applyStyle",value:function(e){if(e.content instanceof Cesium.Composite3DTileContent)for(var t=0;te[i.lastUpdated])&&this.featureVisibility.highlightedObjects[a].features.set(r,r.color.clone()),r.color=this.featureVisibility.highlightedObjects[a].style.cesiumFillColor),this.featureVisibility.hiddenObjects[a]?(this.featureVisibility.hiddenObjects[a].add(r),r.show=!1):this.globalHider.hiddenObjects[a]&&(this.globalHider.addFeature(a,r),r.show=!1)}}e[i.lastUpdated]=Date.now()}}},{key:"determineHighlightStyle",value:function(){return this.highlightStyle?this.highlightStyle:P.getInstance()._currentItemHighlightColor}},{key:"setMaximumScreenSpaceError",value:function(e){this.cesium3DTileset&&(this.cesium3DTileset.maximumScreenSpaceError=e)}},{key:"dispose",value:function(){if(this.cesium3DTileset){this.hide();var e=this.framework.getMapByType("vcs.vcm.maps.CesiumMap"),t=!1;e&&e.initialized&&(t=e.getScene().primitives.remove(this.cesium3DTileset)),t||this.cesium3DTileset.destroy(),this.cesium3DTileset=null}this.initialized=!1,this._state=Yt.INACTIVE,ye(Object(fe["a"])(i.prototype),"dispose",this).call(this)}},{key:"handleURLParameter",value:function(e){e.debug&&(this.cesium3DTileset?(this.cesium3DTileset.debugShowRenderingStatistics=!0,this.cesium3DTileset.debugShowBoundingVolume=!0,this.cesium3DTileset.debugShowContentBoundingVolume=!0):(this.tilesetOptions.debugShowRenderingStatistics=!0,this.tilesetOptions.debugShowBoundingVolume=!0,this.tilesetOptions.debugShowContentBoundingVolume=!0))}},{key:"splitDirection",get:function(){return this._splitDirection},set:function(e){if(e!==this._splitDirection){var t=Fa(),i=t.getClippingObjectForDirection(this._splitDirection);if(i&&i.removeLayer(this.name),this._splitDirection=e,this.active){var n=t.getClippingObjectForDirection(this._splitDirection);n&&n.addLayer(this.name)}this.framework.publish(O.SPLIT_DIRECTION_CHANGED,this,e)}}}]),i}(Ht),Ga=Ha;At.CESIUM_TILESET_LAYER=At.lastLayerId,At.lastLayerId+=1;var za=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=e.layertype||At.CESIUM_TILESET_LAYER,e.className=e.className||i.className,n=t.call(this,e),n.pickMode=e.pickMode||"topLevelFeature",n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.CesiumTilesetLayer"}}]),i}(Ga),Ba=za;At.CESIUM_BUILDINGSLAYER=At.lastLayerId,At.lastLayerId+=1;var Va=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.layertype=At.CESIUM_BUILDINGSLAYER,e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Buildings"}}]),i}(Ba),Ua=Va;At.CESIUM_ENTITIESLAYER=At.lastLayerId,At.lastLayerId+=1;var Wa=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.CESIUM_ENTITIESLAYER,e.className=e.className||i.className,n=t.call(this,e),n.dataSource=e.dataSource||new Cesium.CustomDataSource(n.name),n.entities=n.dataSource.entities,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Entities"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=this.framework.getActiveMap();e.getDatasources().add(this.dataSource),this.initialized=!0}return Promise.resolve()}},{key:"getEntities",value:function(){return this.logger.deprecate("getEntities","access the entities property directly"),this.entities}},{key:"getDataSource",value:function(){return this.logger.deprecate("getEntities","access the dataSource property directly"),this.dataSource}},{key:"show",value:function(){this.dataSource.show=!0}},{key:"hide",value:function(){this.dataSource.show=!1}},{key:"dispose",value:function(){if(this.entities.removeAll(),this.initialized){var e=this.framework.getMapByType("vcs.vcm.maps.Cesium");e&&e.getDatasources().contains(this.dataSource)&&e.getDatasources().remove(this.dataSource)}this.initialized=!1,this._state=Yt.INACTIVE,ye(Object(fe["a"])(i.prototype),"dispose",this).call(this)}},{key:"hideObjects",value:function(e){var t=this;e.forEach((function(e){var i=t.entities.getById(e);i&&(i.show=!1)}))}},{key:"showObjects",value:function(e){var t=this;e.forEach((function(e){var i=t.entities.getById(e);i&&(i.show=!0)}))}},{key:"addEntity",value:function(e,t,i){var n=this.entities.add(e);return n[Ht.vcsLayerNameSymbol]=this.name,n.attributes=t||null,n.allowPicking=null!=i?i:this.allowPicking,n.id}},{key:"flyToEntity",value:function(e){var t=this.framework.getActiveMap(),i=this.entities.getById(e);if(i){var n,r=t.getDataSourceDisplay(),a=t.getScene(),s=a.camera,o=new Cesium.BoundingSphere,l=t.getViewPoint(),c=l.heading,u=l.pitch,h=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(c),Cesium.Math.toRadians(u<-45?u:-45),void 0),d=0,m=r.defaultDataSource;if(m.isLoading)var f=m.loadingEvent.addEventListener((function(){n=a.postRender.addEventListener(g),f()}));else n=a.postRender.addEventListener(g)}else this.logger.warning("could not find entity on this layer");function g(){var e=r.getBoundingSphere(i,!0,o);if(e!==Cesium.BoundingSphereState.PENDING){if(e===Cesium.BoundingSphereState.FAILED)return d+=1,void(d>3&&n());s.flyToBoundingSphere(o,{duration:1,offset:h}),n()}}}},{key:"removeObjectById",value:function(e){return this.entities.removeById(e)}},{key:"objectClickedHandler",value:function(e,t,i){if(this.allowPicking&&e.id.allowPicking){var n=e.id,r=n.id;return n.clickedPosition=e.clickedPosition,this.raiseFeatureEvent(t,r,n,i||this),!0}return!1}},{key:"getGenericFeatureFromClickedObject",value:function(e){var t=Object.assign({},this._genericFeatureProperties,e.attributes||{});return{layerName:this.name,layerClass:this.className,attributes:t,longitude:e.clickedPosition.longitude,latitude:e.clickedPosition.latitude,height:e.clickedPosition.height,relativeToGround:!1}}}]),i}(Ht),qa=Wa;At.CESIUM_CZMLLAYER=At.lastLayerId,At.lastLayerId+=1;var Ja=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.CESIUM_CZMLLAYER,e.className=i.className,e.dataSource=new Cesium.CzmlDataSource,n=t.call(this,e),n.sourceUri=e.sourceUri||null,n._loadedResolve=function(){},n._loadedReject=function(){},n.loaded=new Promise((function(e,t){n._loadedResolve=e,n._loadedReject=t})),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Czml"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this.initialized?Promise.resolve():ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){var t=e.dataSource.load(e.url,e.sourceUri?{sourceUri:e.sourceUri}:void 0);return t.then(e._handleLoaded.bind(e),e._loadedReject),t}))}},{key:"_handleLoaded",value:function(){var e=this;this.entities.values.forEach((function(t){t[Ht.vcsLayerNameSymbol]=e.name,t.allowPicking=e.allowPicking})),this._loadedResolve()}}]),i}(qa),Ka=Ja;At.CESIUM_GLTFLAYER=At.lastLayerId,At.lastLayerId+=1;var Za=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.CESIUM_GLTFLAYER,e.className=i.className,n=t.call(this,e),n.modelConfigs=e.models||[],n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Gltf"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this.initialized?Promise.resolve():ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e.modelConfigs.forEach(e.addObject,e)}))}},{key:"addObject",value:function(e){var t=this.getEntityOptionsFromModel(e);if(!t)return null;var i={uri:t.url,scale:t.scale};i=e.modelOptions?Object.assign({},e.modelOptions,i):i;var n={name:t.url,position:t.position,orientation:t.orientation,show:t.show,model:i};return this.addEntity(n,t.attributes,t.allowPicking)}},{key:"getEntityOptionsFromModel",value:function(e){var t={};if("string"!==typeof e.url)return this.logger.warning("Could not find URL for model ".concat(e)),null;t.url=e.url;var i=[e.longitude,e.latitude,e.height].every((function(e){return Number.isFinite(e)}));if(!i)return this.logger.warning("Could not find longitude/latitude/height for model".concat(e)),null;t.position=Cesium.Cartesian3.fromDegrees(e.longitude,e.latitude,e.height);var n=0;Number.isFinite(e.heading)?n=e.heading/180*Math.PI:Number.isFinite(e.rotation)&&(n=e.rotation/180*Math.PI);var r=0;Number.isFinite(e.pitch)&&(r=e.pitch/180*Math.PI);var a=0;Number.isFinite(e.roll)&&(a=e.roll/180*Math.PI);var s=new Cesium.HeadingPitchRoll(n,r,a);return t.orientation=Cesium.Transforms.headingPitchRollQuaternion(t.position,s),t.scale=1,Number.isFinite(e.scale)&&(t.scale=e.scale),t.attributes={},e.attributes&&(t.attributes=e.attributes),t.allowPicking=null==e.allowPicking||e.allowPicking,t.show=null==e.show||e.show,t}},{key:"updateEntityById",value:function(e,t){var i=this.entities.getById(e),n=this.getEntityOptionsFromModel(t);i&&n&&(i.model.scale=n.scale,i.orientation=n.orientation,i.position=n.position,i.attributes=n.attributes,i.allowPicking=n.allowPicking)}}]),i}(qa),Qa=Za;At.CESIUM_POINTCLOUDLAYER=At.lastLayerId,At.lastLayerId+=1;var Xa=new Ct({}),$a=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.CESIUM_POINTCLOUDLAYER,e.className=i.className,n=t.call(this,e),n.defaultPointSize=null!=e.pointSize?e.pointSize:null,n._pointSize=n.defaultPointSize,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.PointCloud"}}]),Object(m["a"])(i,[{key:"getStyleOrDefaultStyle",value:function(e,t){return ye(Object(fe["a"])(i.prototype),"getStyleOrDefaultStyle",this).call(this,e,t||Xa)}},{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e._assignPointSize()}))}},{key:"clearStyle",value:function(){ye(Object(fe["a"])(i.prototype),"clearStyle",this).call(this),this.pointSize=this.defaultPointSize}},{key:"setStyle",value:function(e,t){e instanceof dt?this.logger.warning("trying to apply vector style to point cloud layer."):ye(Object(fe["a"])(i.prototype),"setStyle",this).call(this,e,t)}},{key:"_assignPointSize",value:function(){this.initialized&&(this.cesium3DTileset.style?(this.cesium3DTileset.style.pointSize=this._pointSize,this.cesium3DTileset.makeStyleDirty()):null!=this._pointSize&&(this.cesium3DTileset.style=new Cesium.Cesium3DTileStyle({pointSize:this._pointSize.toString()})))}},{key:"pointSize",get:function(){return this._pointSize},set:function(e){l(e,[Number,String]),this._pointSize=e,this._assignPointSize()}}]),i}(Ga),es=$a;At.CESIUM_TERRAIN=At.lastLayerId,At.lastLayerId+=1;var ts=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.CESIUM_TERRAIN,e.className=i.className,n=t.call(this,e),n.requestVertexNormals=null==e.requestVertexNormals||e.requestVertexNormals,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.Terrain"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){return this.initialized||(this.cesiumTerrainProvider=zt({url:this.url,requestVertexNormals:this.requestVertexNormals}),this.initialized=!0),Promise.resolve()}},{key:"show",value:function(){var e=this,t=this.framework.getActiveMap();if(t&&t.initialized){this.framework.getLayers().filter((function(t){return t instanceof i&&t!==e})).forEach((function(e){e.deactivate()}));var n=t.getScene(),r=n.globe;r.depthTestAgainstTerrain=!0,r.terrainProvider=this.cesiumTerrainProvider}}},{key:"hide",value:function(){var e=this.framework.getActiveMap();if(e){this.ellipsoidProvider||(this.ellipsoidProvider=new Cesium.EllipsoidTerrainProvider({}));var t=e.getScene(),i=t.globe;i.depthTestAgainstTerrain=!1,i.terrainProvider=this.ellipsoidProvider}}},{key:"dispose",value:function(){var e=this.framework.getActiveMap();e&&(e.getCesiumWidget().terrainProvider=new Cesium.EllipsoidTerrainProvider({})),this.ellipsoidProvider=null,this.cesiumTerrainProvider=null,this.initialized=!1,this._state=Yt.INACTIVE,ye(Object(fe["a"])(i.prototype),"dispose",this).call(this)}},{key:"getHeightForWGS84Coordinates",value:function(e){return Bt(this.cesiumTerrainProvider,e)}}]),i}(Ht),is=ts;At.GEOJSON=At.lastLayerId,At.lastLayerId+=1;var ns=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,e.projection||(e.projection=$.getConfigObject()),n=t.call(this,e),n.url=e.url||null,n.altitudeMode=e.altitudeMode||"none",n._dataFetchedPromise=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.GeoJSON"}}]),Object(m["a"])(i,[{key:"fetchData",value:function(){var e=this;return this._dataFetchedPromise?this._dataFetchedPromise:null!=this.url?(this.framework.getActiveMap().setLayerLoading(this,!0),this._dataFetchedPromise=q.a.get(this.url).then((function(t){e.dataFetchedHandler(t.data)})).catch((function(t){return e.logger.warning("Could not send request for loading layer content (".concat(t.message,")")),Promise.reject(t)})).then((function(){e.framework.getActiveMap().setLayerLoading(e,!1)})),this._dataFetchedPromise):(this.logger.warning("Could not load GeoJSON layer, no url is set"),Promise.reject(new Error("missing url in GeoJSON layer")))}},{key:"dataFetchedHandler",value:function(e){var t=er(e,{dataProjection:this.projection,dynamicStyle:!0});this.addFeatures(t.features),t.style&&this.setStyle(t.style)}}]),i}(_n),rs=ns,as=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.url=e.url||"",n=t.call(this,e);var r=null!=e.minLevel?e.minLevel:e.minZoom,a=null!=e.maxLevel?e.maxLevel:e.maxZoom;return n.minLevel=Object(u["h"])(r,0),n.maxLevel=Object(u["h"])(a,18),n.tilingSchema=e.tilingSchema,null==r&&e.extent&&n.calculateMinLevel(),n.opacity=Object(u["g"])(e.opacity,1),n.opacity=n.opacity<0?0:n.opacity,n.opacity=n.opacity>1?1:n.opacity,"string"!==typeof n.url&&n.framework.subscribe("LOCALE_CHANGED",n.handleLocaleChange,Object(gt["a"])(n)),n._splitDirection=Cesium.ImagerySplitDirection.NONE,e.splitDirection&&(n._splitDirection="left"===e.splitDirection?Cesium.ImagerySplitDirection.LEFT:Cesium.ImagerySplitDirection.RIGHT),n}return Object(m["a"])(i,[{key:"handleLocaleChange",value:function(){var e=this.active;e&&this.deactivate(),this.getImplementations().forEach((function(e){e.initialized=!1})),e&&this.activate()}},{key:"getUrl",value:function(){return this.logger.deprecate("getUrl","access the url property directly"),this.url}},{key:"getTilingScheme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"mercator"===this.tilingSchema?new Cesium.WebMercatorTilingScheme(e):new Cesium.GeographicTilingScheme(e)}},{key:"_getExtentPoints",value:function(){var e=this.extent.getCoordinatesInProjection($),t=[ol.extent.getBottomLeft(e),ol.extent.getBottomRight(e),ol.extent.getTopRight(e),ol.extent.getTopLeft(e)];return t.map((function(e){return Cesium.Cartographic.fromDegrees(e[0],e[1])}))}},{key:"calculateMinLevel",value:function(){var e=this;if(this.extent.isValid()){var t=this.getTilingScheme(),i=this._getExtentPoints();while(this.minLevel1||r[1]>1){this.minLevel-=1;break}this.minLevel+=1}}}},{key:"setOpacity",value:function(e){o(e,Number),this.opacity=e,this.getImplementations().forEach((function(e){e.updateOpacity()}))}},{key:"splitDirection",get:function(){return this._splitDirection},set:function(e){e!==this._splitDirection&&(this._splitDirection=e,this.getImplementations().forEach((function(e){e.updateSplitDirection()})),this.framework.publish(O.SPLIT_DIRECTION_CHANGED,this,e))}}]),i}(sn),ss=as;At.IMAGE=At.lastLayerId,At.lastLayerId+=1;var os=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.IMAGE,e.className=i.className,n=t.call(this,e),n.imageExtent=e.imageExtent,n.credit=e.credit,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.SingleImage"}}]),Object(m["a"])(i,[{key:"setExtent",value:function(e){this.imageExtent=e;var t=this.getImplementation(this.framework.getActiveMap());t&&t.updateLayer()}}]),i}(ss),ls=os;At.OPENSTREETMAP=At.lastLayerId,At.lastLayerId+=1;var cs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.OPENSTREETMAP,e.className=i.className,n=t.call(this,e),n._splitDirection=Cesium.ImagerySplitDirection.NONE,e.splitDirection&&(n._splitDirection="left"===e.splitDirection?Cesium.ImagerySplitDirection.LEFT:Cesium.ImagerySplitDirection.RIGHT),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.OpenStreetMap"}}]),Object(m["a"])(i,[{key:"splitDirection",get:function(){return this._splitDirection},set:function(e){e!==this._splitDirection&&(this._splitDirection=e,this.getImplementations().forEach((function(e){e.updateSplitDirection()})),this.framework.publish(O.SPLIT_DIRECTION_CHANGED,this,e))}}]),i}(sn),us=cs;At.TMSBase=At.lastLayerId,At.lastLayerId+=1;var hs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.layertype=At.TMSBase,e.className=i.className,e.tilingSchema=e.tilingSchema||"mercator",n=t.call(this,e),n.format=e.format||"jpeg",n.tileWidth=Object(u["h"])(e.tileWidth,256),n.tileHeight=Object(u["h"])(e.tileHeight,256),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.TMSBase"}}]),i}(ss),ds=hs;At.CLUSTER=At.lastLayerId,At.lastLayerId+=1;var ms=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.layertype=At.CLUSTER,e.className=i.className,e.zCoordinateEyeOffset=Object(u["h"])(e.zCoordinateEyeOffset,-200),e.heightAboveGround=Object(u["h"])(e.heightAboveGround,65),e.activeOnStartup=!0,e.altitudeMode=e.altitudeMode||"none",e.zIndex=Object(u["h"])(e.zIndex,60),n=t.call(this,e),n.clusterSource=new ol.source.Cluster({source:n.source,distance:Object(u["h"])(e.clusterDistance,40)}),n.clusterLayers=e.clusterLayers||[],n.activeClusterLayers=[],n.activeClusterLayersLastUpdated={},n.lastClickedFeatures=[];var r=e.defaultFeatureTemplate||"<%=title%>";Array.isArray(r)&&(r=r.join(" ")),n.defaultFeatureTemplate=Fr()(r),n.showInContent=Object(u["e"])(e.showInContent,!0);var a=e.style||{};return n.icon=a.icon||"images/clusterIcon.svg",n.selectedIcon=a.selectedIcon||"images/clusterSelectedIcon.svg",n.iconWidth=Object(u["h"])(a.iconWidth,40),n.iconHeight=Object(u["h"])(a.iconHeight,44),n.iconScaleFactor=Object(u["h"])(a.iconScaleFactor,.05),n.fontSize=Object(u["h"])(a.fontSize,16),n.textOffset=Object(u["h"])(a.textOffset,-4),n.breaks=a.breaks||[2,3,4,5,10,15,20,25],n.zeroScaleOffset=Object(u["h"])(a.zeroScaleOffset,3),n._icons=new Array(n.breaks.length),n._selectedIcons=new Array(n.breaks.length),n._images=new Array(n.breaks.length),n._inactive2dClustering=!0,n._resultLayer=new _n({name:"_clusterResultLayer".concat(n.name),altitudeMode:n.altitudeMode,activeOnStartup:!0,zCoordinateEyeOffset:n.zCoordinateEyeOffset-20,zIndex:1e3,projection:ee.getConfigObject(),allowPicking:!1}),n._resultFeature=null,n._initializedPromise=null,n.framework.subscribe(O.LAYER_ACTIVATED,n._handleActivation.bind(Object(gt["a"])(n))),n.framework.subscribe(O.LAYER_DEACTIVATED,n._handleDeactivation.bind(Object(gt["a"])(n))),n.framework.subscribe(O.SELECTED_ITEM_CHANGED,n._handleSelectedItemChanged.bind(Object(gt["a"])(n))),n.mapNames=[],n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.VectorCluster"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return null===this._initializedPromise&&(this.clusterLayers=this._validateLayers(this.clusterLayers),this._initializedPromise=this.framework.loadLibraries(["./lib/thirdparty/canvg-1.4/rgbcolor.js","./lib/thirdparty/canvg-1.4/StackBlur.js","./lib/thirdparty/canvg-1.4/canvg.js"]).then(this._createIcons.bind(this)).then((function(){e.setStyle(e._styleFunction.bind(e)),e._resultLayer.setStyle(e._getSelectedStyle()),e.framework.addLayer(e._resultLayer)}))),this._initializedPromise.then((function(){return ye(Object(fe["a"])(i.prototype),"initialize",e).call(e)}))}},{key:"synchronize",value:function(e,t){return"vcs.vcm.maps.Openlayers"!==e.className?(this._inactive2dClustering=!0,this.clusterSource.setPause(!0)):(this._inactive2dClustering=!1,this.clusterSource.setPause(!1)),ye(Object(fe["a"])(i.prototype),"synchronize",this).call(this,e,t)}},{key:"deactivate",value:function(){throw this.logger.error("trying to deactivate cluster layer!"),new Error("cannot deactivate cluster layer")}},{key:"_validateLayers",value:function(e,t){var i=this;return e.filter((function(e){var n=i.framework.getLayerByName(e.name);if(!(n&&n instanceof _n))return i.logger.warning("Missconfigured cluster layer, failed with layer: ".concat(n)),!1;if("string"===typeof e.featureTemplate&&(e.featureTemplate=Fr()(e.featureTemplate)),n.heightAboveGround=i.heightAboveGround,n.altitudeMode=i.altitudeMode,n.setVisibility(!1),t){var r=i.clusterLayers.find((function(t){return t.name===e.name}));r?(r.title=e.title||r.title,r.featureTemplate=e.featureTemplate||r.featureTemplate):i.clusterLayers.push(e)}return!0}))}},{key:"_createIcons",value:function(){var e=this;function t(e,t,i,n,r){var a=this,s=t-this.zeroScaleOffset;s=s>0?s:0,s=r?s:s+.2;var o=Math.round(this.iconWidth*(1+this.iconScaleFactor*s)),l=Math.round(this.iconHeight*(1+this.iconScaleFactor*s));return new Promise((function(e){var t=document.createElement("canvas");t.width=o,t.height=l,canvg(t,i,{renderCallback:function(){e(t)}})})).then((function(i){return new Promise((function(n){var r,s=a.fontSize;r=t')+'').concat(r,""),u=document.createElement("canvas");u.width=o,u.height=l,canvg(u,c,{ignoreDimensions:!0,renderCallback:function(){var e=document.createElement("canvas");e.width=o,e.height=l;var t=e.getContext("2d");t.drawImage(i,0,0),t.drawImage(u,0,0),n(e)}})}))})).then((function(e){return r&&(a._images[t]=e),n[t]=new ol.style.Style({image:new ol.style.Icon({img:e,imgSize:[o,l],anchor:[.5,.5]})}),Promise.resolve()}))}var i=this.breaks.map((function(i,n){return Promise.all([t.bind(e)(i,n,e.icon,e._icons,!0),t.bind(e)(i,n,e.selectedIcon,e._selectedIcons,!1)])}));return Promise.all(i)}},{key:"getSource",value:function(){return this.clusterSource}},{key:"_styleFunction",value:function(e){var t=this,i=e.get("features");if(i&&i.length>1){var n=i.length,r=this.breaks.findIndex((function(e,i){return i>t.zeroScaleOffset?nthis.zeroScaleOffset?r-1:r,-1===r?this._icons[this._icons.length-1]:this._icons[r]}var a=i?i[0]:e,s=a[_n.originalFeatureSymbol]||a,o=this.framework.getLayerByName(s.get("_layerName"));if(o){if(s.getId()&&P.getInstance().getCurrentItem().id===s.getId())return o.highlightStyle?o.highlightStyle.style:null;var l=o.style.style;if(l instanceof ol.style.Style)return l;if("function"===typeof l)return l(s)}return new ol.style.Style({})}},{key:"_getSelectedStyle",value:function(){return function(e){var t=this,i=e[_n.originalFeatureSymbol]||e,n=i.get("features");if(n&&n.length>1){var r=n.length,a=this.breaks.findIndex((function(e,i){return i>t.zeroScaleOffset?rthis.zeroScaleOffset?a-1:a,-1===a?this._selectedIcons[this._selectedIcons.length-1]:this._selectedIcons[a]}return this._selectedIcons[0]}.bind(this)}},{key:"cesiumStyleFunction",value:function(e,t){var i=this;if(!(e.length<2)){var n,r=e.length,a=this.breaks.findIndex((function(e,t){return t>i.zeroScaleOffset?rthis.zeroScaleOffset?a-1:a,n=-1===a?this._images[this._images.length-1]:this._images[a],t.billboard.setImage(this.name+a,n),t.billboard.show=!0}}},{key:"objectClickedHandler",value:function(e,t,i){var n=this;this.unSelect();var r=e.get("features");if(r&&r.length>1){this.lastClickedFeatures.splice(0),r.forEach((function(e){var t=e[_n.originalFeatureSymbol]||e,i=n.clusterLayers.find((function(e){return e.name===t.get("_layerName")})),r=t.getProperties();r.template=i&&i.featureTemplate?i.featureTemplate(r):n.defaultFeatureTemplate(r),r.template=r.template.replace(/\[br\]/g,"
");var a={id:t.getId()||r.id,template:r.template,_layerName:r._layerName};n.lastClickedFeatures.push(a)})),this.raiseFeatureEvent(O.CLUSTER_CLICKED,"",r,this),this.framework.getSelectBehavior().clearCurrentItem();var a=e.getGeometry().clone();return a[_n.alreadyTransformedToImage]="vcs.vcm.maps.Oblique"===this.framework.getActiveMap().className,this._resultFeature=new ol.Feature({geometry:a,features:this.lastClickedFeatures}),this._resultLayer.addFeatures([this._resultFeature]),!0}var s=r?r[0]:e,o=s[_n.originalFeatureSymbol]||s,l=this.framework.getLayerByName(o.get("_layerName"));return l.objectClickedHandler(o,t,i)}},{key:"contains",value:function(e){var t=this.clusterLayers.findIndex((function(t){return t.name===e}));return t>-1}},{key:"_handleActivation",value:function(e){var t=this,i=this.activeClusterLayers.findIndex((function(t){return t===e.name}));if(this.contains(e.name)&&-1===i&&e instanceof _n){var n=e.getSource();if("ready"===n.getState()){var r=e.name,a=n.getFeatures();a.forEach((function(e){e.set("_layerName",r,!0),e.getId()||e.setId(t.framework.getNextUniqueId())})),this.source.addFeatures(a),this.activeClusterLayers.push(r)}else n.once("change",this._handleActivation.bind(this,e))}}},{key:"_handleDeactivation",value:function(e){var t=this;if(this.contains(e.name)&&e instanceof _n){this._inactive2dClustering||this.clusterSource.setPause(!0);var i=e.getSource();i.getFeatures().forEach((function(e){t.source.removeFeature(e,!0)})),this.source.changed();var n=this.activeClusterLayers.findIndex((function(t){return t===e.name}));this.activeClusterLayers.splice(n,1),delete this.activeClusterLayersLastUpdated[e.name],this._inactive2dClustering||this.clusterSource.setPause(!1);var r=this.lastClickedFeatures.slice();this.lastClickedFeatures.splice(0),r.forEach((function(i){i._layerName!==e.name&&t.lastClickedFeatures.push(i)})),this._resultFeature&&this._resultFeature.changed()}}},{key:"_handleSelectedItemChanged",value:function(e){var t=this.lastClickedFeatures.find((function(t){return t.id===e}));e&&!t&&this.unSelect()}},{key:"postRenderStyling",value:function(){for(var e=this,t=!1,i=function(i){var n=e.activeClusterLayers[i],r=e.framework.getLayerByName(n);if(r&&(!e.activeClusterLayersLastUpdated[n]||e.activeClusterLayersLastUpdated[n]0&&void 0!==arguments[0]?arguments[0]:{};return"text/xml"===this.featureInfoResponseType?(e.gmlFormat=e.gmlFormat?new ol.format[e.gmlFormat]:new ol.format.GML2,new ol.format.WFS(e)):ps.includes(this.featureInfoResponseType)?new ol.format.GeoJSON(e):"application/vnd.ogc.gml"===this.featureInfoResponseType?new ol.format.GML2(e):"application/vnd.ogc.gml/3.1.1"===this.featureInfoResponseType?new ol.format.GML3(e):null}},{key:"_defaultFeatureClickedDataHandler",value:function(e,t){var i,n=this;try{i=this.featureInfoResponseFormat.readFeatures(e,{dataProjection:this.featureInfoProjection?this.featureInfoProjection.proj:void 0,featureProjection:ee.proj})}catch(o){return void this.logger.warning("Features could not be read, please verify the featureInfoResponseType with the capabilities from the server")}if(Array.isArray(i)&&i.length>=1){var r=i[0],a=r.getGeometry();if(a||r.setGeometry(new ol.geom.Point(t)),this.showFeatureInfoGeometry){var s=this._getResultLayer();s.removeAllFeatures(),s.addFeatures([r])}r[Ht.vcsLayerNameSymbol]=this.name,this.framework.publish(O.FEATURE_CLICKED,"wmsFeatureInfo",r,this),this.showFeatureInfoGeometry&&this.framework.subscribeOnce(O.SELECTED_ITEM_CHANGED,(function(){n._getResultLayer().removeFeaturesById([r.getId()])}))}}},{key:"getTilingOptions",value:function(){for(var e="geographic"===this.tilingSchema?$:ee,t=e.proj.getExtent(),i=ol.extent.getWidth(t),n="geographic"===this.tilingSchema?i/(2*this.tileSize[0]):i/this.tileSize[0],r=this.maxLevel+1,a=[],s=0;s0&&void 0!==arguments[0]?arguments[0]:{};return this.numberOfLevelZeroTilesX&&this.numberOfLevelZeroTilesY&&(e.numberOfLevelZeroTilesX=this.numberOfLevelZeroTilesX,e.numberOfLevelZeroTilesY=this.numberOfLevelZeroTilesY),ye(Object(fe["a"])(i.prototype),"getTilingScheme",this).call(this,e)}}]),i}(ss),Ls=bs,ws=null,Ms=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(){var e;Object(d["a"])(this,i),e=t.call(this,{className:i.className}),e.colorLayerMap={},e.layerLegendCanvasMap={},e.baseUrl="./images/icons.json",e.iconMap={0:{stroke:"inner_0.svg"},1:{stroke:"inner_2.svg",fill:"inner_2_fill_shaded.svg",colorizeInner:!0},2:{stroke:"inner_3.svg",fill:"inner_3_fill_white.svg",colorizeOuter:!0},3:{stroke:"inner_4.svg"},4:{stroke:"inner_1.svg",fill:"inner_1_fill_shaded.svg",colorizeInner:!0},5:{stroke:"inner_5.svg",fill:"inner_5_fill_white.svg",colorizeOuter:!0},6:{stroke:"inner_10.svg"},7:{stroke:"inner_9.svg",fill:"inner_9_fill_shaded.svg",colorizeInner:!0},8:{stroke:"inner_8.svg",fill:"inner_8_fill_white.svg",colorizeOuter:!0},9:{stroke:"inner_6.svg"},10:{stroke:"inner_12.svg",fill:"inner_12_fill_shaded.svg",colorizeInner:!0},11:{stroke:"inner_7.svg",fill:"inner_7_fill_white.svg",colorizeOuter:!0},12:{stroke:"inner_11.svg"},13:{stroke:"inner_0.svg",fill:"inner_0_fill_shaded.svg",colorizeInner:!0},14:{stroke:"inner_2.svg",fill:"inner_2_fill_white.svg",colorizeOuter:!0},15:{stroke:"inner_3.svg"},16:{stroke:"inner_4.svg",fill:"inner_4_fill_shaded.svg",colorizeInner:!0},17:{stroke:"inner_1.svg",fill:"inner_1_fill_white.svg",colorizeOuter:!0},18:{stroke:"inner_5.svg"},19:{stroke:"inner_10.svg",fill:"inner_10_fill_shaded.svg",colorizeInner:!0},20:{stroke:"inner_9.svg",fill:"inner_9_fill_white.svg",colorizeOuter:!0},21:{stroke:"inner_8.svg"},22:{stroke:"inner_6.svg",fill:"inner_6_fill_shaded.svg",colorizeInner:!0},23:{stroke:"inner_12.svg",fill:"inner_12_fill_white.svg",colorizeOuter:!0},24:{stroke:"inner_7.svg"},25:{stroke:"inner_11.svg",fill:"inner_11_fill_shaded.svg",colorizeInner:!0},26:{stroke:"inner_0.svg",fill:"inner_0_fill_white.svg",colorizeOuter:!0},27:{stroke:"inner_2.svg"},28:{stroke:"inner_3.svg",fill:"inner_3_fill_shaded.svg",colorizeInner:!0},29:{stroke:"inner_4.svg",fill:"inner_4_fill_white.svg",colorizeOuter:!0},30:{stroke:"inner_1.svg"},31:{stroke:"inner_5.svg",fill:"inner_5_fill_shaded.svg",colorizeInner:!0},32:{stroke:"inner_10.svg",fill:"inner_10_fill_white.svg",colorizeOuter:!0},33:{stroke:"inner_9.svg"},34:{stroke:"inner_8.svg",fill:"inner_8_fill_shaded.svg",colorizeInner:!0},35:{stroke:"inner_6.svg",fill:"inner_6_fill_white.svg",colorizeOuter:!0},36:{stroke:"inner_12.svg"},37:{stroke:"inner_7.svg",fill:"inner_7_fill_shaded.svg",colorizeInner:!0},38:{stroke:"inner_11.svg",fill:"inner_11_fill_white.svg",colorizeOuter:!0},39:{stroke:"inner_last.svg"}},e._svgMap={};var n=e.framework.loadLibraries(["./lib/thirdparty/canvg-1.4/rgbcolor.js","./lib/thirdparty/canvg-1.4/StackBlur.js","./lib/thirdparty/canvg-1.4/canvg.js"]),r=q.a.get(e.baseUrl).then((function(t){return e._svgMap=t.data,!0}));return e.readyPromise=Promise.all([n,r]),e.dedicatedIconMap={berlinpartner:"outerCircle.svg",sbahn:"SBahn.svg",ubahn:"UBahn.svg",haltestelle:"Haltestelle.svg",top200:"Top200.svg",gewerbeimmobilien:"GewerbeImmobilien-rot.svg"},e.width=40,e.height=44,e}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.util.IconManager"}}]),Object(m["a"])(i,[{key:"getStyleForColor",value:function(e,t,i){var n,r=this,a=ol.color.asArray(t);return a?(this.colorLayerMap[t]?-1!==this.colorLayerMap[t].indexOf(e)?n=this.colorLayerMap[t].indexOf(e):(n=this.colorLayerMap[t].length,this.colorLayerMap[t].push(e)):(this.colorLayerMap[t]=[e],n=0),n=n>39?39:n,this.readyPromise.then((function(){var t=a[0],s=a[1],o=a[2],l=[];return i?(l.push(r.createOutline(t,s,o,n,r._svgMap["outerSquare.svg"])),l.push(r.createFill(t,s,o,n,r._svgMap["innerWhiteSquare.svg"],r._svgMap["innerShadedSquare.svg"])),l.push(r.createOutline(t,s,o,n,r._svgMap["legendSquare_outer.svg"])),l.push(r.createFill(t,s,o,n,r._svgMap["legendSquare_inner_white.svg"],r._svgMap["legendSquare_inner_shaded.svg"]))):(l.push(r.createOutline(t,s,o,n,r._svgMap["outerCircle.svg"])),l.push(r.createFill(t,s,o,n,r._svgMap["innerWhiteCircle.svg"],r._svgMap["innerShadedCircle.svg"])),l.push(r.createOutline(t,s,o,n,r._svgMap["legendCircle_outer.svg"])),l.push(r.createFill(t,s,o,n,r._svgMap["legendCircle_inner_white.svg"],r._svgMap["legendCircle_inner_shaded.svg"]))),l.push(r.createInner(t,s,o,n)),Promise.all(l).then((function(t){var n=t[0],a=t[1],s=t[2],o=t[3],l=t[4],c=document.createElement("canvas");c.width=22,c.height=22;var u=c.getContext("2d");i?(u.drawImage(s,0,0,25,28,0,0,22,22),u.drawImage(o,0,0,25,28,0,0,22,22),u.drawImage(l,8,6,26,26,2.1,2.4,15,15)):(u.drawImage(o,0,0,28,28,0,0,22,22),u.drawImage(s,0,0,28,28,0,0,22,22),u.drawImage(l,8,6,26,26,3.7,2.9,15,15)),r.layerLegendCanvasMap[e]=c;var h=document.createElement("canvas");h.width=r.width,h.height=r.height;var d=h.getContext("2d");return d.drawImage(n,0,0),d.drawImage(a,0,0),i?d.drawImage(l,-.7,-.52):d.drawImage(l,0,0),h.id=e,new ol.style.Style({image:new ol.style.Icon({img:h,imgSize:[r.width,r.height],anchor:[.5,1]})})}))}))):Promise.reject(new Error("Not a valid color is provided for the layer with name ".concat(e,", no style is provided")))}},{key:"getStyleForDedicatedIcon",value:function(e,t){var i=this;return this.readyPromise.then((function(){return new Promise((function(n,r){if(t=t.toLowerCase(),i.dedicatedIconMap[t]){var a=document.createElement("canvas");a.width=i.width,a.height=i.height,canvg(a,i._svgMap.dedicatedIcons[i.dedicatedIconMap[t]],{renderCallback:function(){var t=new ol.style.Style({image:new ol.style.Icon({img:a,imgSize:[this.width,this.height],scale:.8})}),i=document.createElement("canvas");i.width=22,i.height=22;var r=i.getContext("2d");r.drawImage(a,0,0,39,44,0,0,22,22),this.layerLegendCanvasMap[e]=i,n(t)}.bind(i)})}else r(new Error("This icon is not known, please check"))}))}))}},{key:"getLegendCanvas",value:function(e){var t=this;if(this.layerLegendCanvasMap[e])return Promise.resolve(this.layerLegendCanvasMap[e]);var i=this.framework.getLayerByName(e);return i?i.dedicatedIcon?this.getStyleForDedicatedIcon(i.name,i.dedicatedIcon).then((function(){return t.getLegendCanvas(e)})):this.getStyleForColor(i.name,i.iconColor,i.useSquareShapeAsOuter).then((function(){return t.getLegendCanvas(e)})):Promise.reject(new Error("Could not find layer: ".concat(e)))}},{key:"createOutline",value:function(e,t,i,n,r){var a=this;return new Promise((function(n,s){var o=document.createElement("canvas");o.width=a.width,o.height=a.height;var l=o.getContext("2d");canvg(o,r,{renderCallback:function(){qe(l,[e,t,i,0],[this.width,this.height]),n(o)}.bind(a)})}))}},{key:"createFill",value:function(e,t,i,n,r,a){var s=this;return new Promise((function(o,l){var c=s.iconMap[n];if(c.colorizeOuter){var u=[];u.push(new Promise((function(e,t){var i=document.createElement("canvas");i.width=s.width,i.height=s.height,canvg(i,r,{renderCallback:function(){e(i)}})}))),u.push(new Promise((function(n,r){var o=document.createElement("canvas");o.width=s.width,o.height=s.height;var l=o.getContext("2d");canvg(o,a,{renderCallback:function(){qe(l,[e,t,i,0],[this.width,this.height]),n(o)}.bind(s)})}))),Promise.all(u).then((function(e){var t=e[0],i=e[1],n=document.createElement("canvas");n.width=s.width,n.height=s.height;var r=n.getContext("2d");t&&r.drawImage(t,0,0),i&&r.drawImage(i,0,0),o(n)}))}else{var h=document.createElement("canvas");h.width=s.width,h.height=s.height,canvg(h,r,{renderCallback:function(){o(h)}})}}))}},{key:"createInner",value:function(e,t,i,n){var r=this;return new Promise((function(a,s){var o=r.iconMap[n],l=[];l.push(new Promise((function(n,a){if(o.stroke){var s=document.createElement("canvas");s.width=r.width,s.height=r.height;var l=s.getContext("2d");canvg(s,r._svgMap[o.stroke],{renderCallback:function(){qe(l,[e,t,i,0],[this.width,this.height]),n(s)}.bind(r)})}else n()}))),l.push(new Promise((function(n,a){if(o.fill){var s=document.createElement("canvas");s.width=r.width,s.height=r.height;var l=s.getContext("2d");canvg(s,r._svgMap[o.fill],{renderCallback:function(){o.colorizeInner&&qe(l,[e,t,i,0],[this.width,this.height]),n(s)}.bind(r)})}else n()}))),Promise.all(l).then((function(e){var t=e[0],i=e[1],n=document.createElement("canvas");n.width=r.width,n.height=r.height;var s=n.getContext("2d");i&&s.drawImage(i,0,0),t&&s.drawImage(t,0,0),a(n)}))}))}}],[{key:"getInstance",value:function(){return ws||(ws=new i),ws}}]),i}(ve),ks=Ms;At.WSV=At.lastLayerId,At.lastLayerId+=1;var Os=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.projection={epsg:"EPSG:4326",proj4:"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs "},e.zCoordinateEyeOffset=-100,e.heightAboveGround=10,e.altitudeMode="relativeToGround",e.zIndex=e.zIndex||60,e.className=i.className,e.layertype=At.WSV,n=t.call(this,e),n.dedicatedIcon=e.dedicatedIcon||null,n.iconColor=e.iconColor||null,n.useSquareShapeAsOuter=!!e.useSquareShape,n.iconManagerInUse=!(!n.dedicatedIcon&&!n.iconColor),n.baseUrl=e.baseurl||"/wsv-live",n.name=e.name,n.logo="adf33bbe08057b9251536c73ff627f512955ffc7.png",n.scaleUnselected=n.iconManagerInUse?.8:.5,n.scaleSelected=n.iconManagerInUse?0:1,e.wsvProjection||(e.wsvProjection={proj4:"+proj=cass +lat_0=52.41864827777778 +lon_0=13.62720366666667 +x_0=40000 +y_0=10000 +ellps=bessel +datum=potsdam +units=m +no_defs",epsg:"3068"}),n.wsvProjection=new X(e.wsvProjection),n.noFilterValue=e.noFilterValue?e.noFilterValue:"Keine Angabe",n.filter=e.filter?e.filter:null,n.filterAttribute=e.filterAttribute?e.filterAttribute:"tags",n.filterAttributeName=e.filterAttributeName?e.filterAttributeName:null,n._dataFetchedPromise=null,n._initializedPromise=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.Wsv"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this._initializedPromise||(this.framework.subscribe(O.LOCALE_CHANGED,this.handleLocaleChanged,this),this._initializedPromise=this.framework.loadLibraries(["./lib/thirdparty/canvg-1.4/rgbcolor.js","./lib/thirdparty/canvg-1.4/StackBlur.js","./lib/thirdparty/canvg-1.4/canvg.js"])),this._initializedPromise.then((function(){return e.fetchData()})).then((function(){return ye(Object(fe["a"])(i.prototype),"initialize",e).call(e)}))}},{key:"fetchData",value:function(){var e=this;if(!this._dataFetchedPromise){this.framework.getActiveMap().setLayerLoading(this,!0);var t="".concat(this.baseUrl,"/api/").concat(this.framework.getLocale(),"/layer/").concat(this.name,".json");this._dataFetchedPromise=q.a.get(t).then((function(t){return e.dataFetchedHandler(t.data)})).catch((function(t){return e.logger.warning("Could not send request for loading layer content (".concat(t.message,")")),Promise.reject(t)})).then((function(){e.framework.getActiveMap().setLayerLoading(e,!1)}))}return this._dataFetchedPromise}},{key:"handleLocaleChanged",value:function(){if(this._dataFetchedPromise){var e=this.active;e&&this.deactivate(),this.removeAllFeatures(),this._dataFetchedPromise=null,e&&this.activate()}}},{key:"getFilter",value:function(){if(this.filter)return this.filter;for(var e=this.source.getFeatures(),t={},i=0;i-1){r=!0;break}}}else{var l=e.indexOf(n[a]);if(l>-1){r=!0;break}}else if("string"===typeof n){var c=e.indexOf(n);if(c>-1){r=!0;break}}else if("object"===Object(s["a"])(n)&&this.filterAttributeName){var u=e.indexOf(n[this.filterAttributeName]);if(u>-1){r=!0;break}}}else{var h=e.indexOf(this.noFilterValue);h>-1&&(r=!0)}r?t[i].setGeometryName("geometry"):t[i].setGeometryName("hidden")}}},{key:"dataFetchedHandler",value:function(e){var t=this;try{return e?(e.logo&&(this.logo=this.baseUrl+e.logo),e.name&&(this.options.title=e.name),e.category&&(this.options.category=e.category),this._createStyle().then((function(){var i=e.locations;if(i){var n=[];i.forEach((function(e){var i=t._createLocation(e);i&&n.push(i)})),t.addFeatures(n)}return t.activeFilter&&t.setFilter(t.activeFilter),!0}))):Promise.resolve()}catch(i){return this.logger.warning("Could not load WSV json: ".concat(i.message)),Promise.reject(i)}}},{key:"_createStyle",value:function(){var e,t=this;return this.iconManagerInUse?(e=this.dedicatedIcon?ks.getInstance().getStyleForDedicatedIcon(this.name,this.dedicatedIcon):ks.getInstance().getStyleForColor(this.name,this.iconColor,this.useSquareShapeAsOuter),e.then((function(e){e.getImage().setScale(t.scaleUnselected),t.setStyle(e);var i=e.clone();return i.getImage().setOpacity(0),t.setHighlightStyle(i),!0}))):(this.setStyle(new ol.style.Style({image:new ol.style.Icon({src:this.logo,scale:this.scaleUnselected})})),this.setHighlightStyle(new ol.style.Style({image:new ol.style.Icon({src:this.logo,scale:this.scaleSelected})})),Promise.resolve())}},{key:"_createLocation",value:function(e){if(!e.address||!e.address.x||!e.address.y||!e.name||!e.id)return!1;var t="&",i=/&(?!([a-zA-Z0-9]+|#([0-9]+|x[A-Z0-9]+));)/g,n=new ol.Feature;e.id="".concat(this.name,"_").concat(e.id),n.setId(e.id),n.setProperties({name:e.name.replace(i,t)});var r=this.wsvProjection.transformTo(this.projection,[e.address.x,e.address.y]),a=new ol.geom.Point(r);if(this.extent.isValid()){var s=a.clone();if(s.transform(ol.proj.get("EPSG:4326"),this.extent.projection.proj),!s.intersectsExtent(this.extent.extent))return!1}return n.setGeometry(a),n.setProperties(e),e.logo&&(n.setProperties({logo:this.baseUrl+e.logo}),e.logosize&&e.logosize.width&&e.logosize.height&&(n.setProperties({width:e.logosize.width}),n.setProperties({height:e.logosize.height}))),e.address&&e.address.city?n.setProperties({city:e.address.city.replace(i,t)}):n.setProperties({city:""}),e.address&&e.address.zip?n.setProperties({zip:e.address.zip}):n.setProperties({zip:""}),e.address&&e.address.street?n.setProperties({street:e.address.street.replace(i,t)}):n.setProperties({street:""}),e.contact&&e.contact.website?n.setProperties({website:e.contact.website}):n.setProperties({website:""}),n.setProperties({placemarkurl:"".concat(this.baseUrl,"/").concat(this.framework.getLocale(),"/location/").concat(e.id)}),this.options.title&&n.setProperties({layername:this.options.title}),this.options.category&&n.setProperties({category:this.options.category}),n}}]),i}(_n),Ts=Os;function Ss(e,t,i,n){return Ss="undefined"!==typeof Reflect&&Reflect.set?Reflect.set:function(e,t,i,n){var r,a=ge(e,t);if(a){if(r=Object.getOwnPropertyDescriptor(a,t),r.set)return r.set.call(n,i),!0;if(!r.writable)return!1}if(r=Object.getOwnPropertyDescriptor(n,t),r){if(!r.writable)return!1;r.value=i,Object.defineProperty(n,t,r)}else Object(U["a"])(n,t,i);return!0},Ss(e,t,i,n)}function Cs(e,t,i,n,r){var a=Ss(e,t,i,n||e);if(!a&&r)throw new Error("failed to set property");return i}var js=k.getLogger("vcs.vcm.layer.FeatureStoreChanges"),Es=function(){function e(t){Object(d["a"])(this,e),this.layer=t,this._changesListeners={addfeature:null,changefeature:null,removefeature:null},this._addedFeatures=new Set,this._editedFeatures=new Set,this._removedFeatures=new Set,this._convertedFeatures=new Set,this.values={changed:!1}}return Object(m["a"])(e,[{key:"track",value:function(){null===this._changesListeners.addfeature&&(this._changesListeners.addfeature=this.layer.source.on("addfeature",this._featureAdded.bind(this))),null===this._changesListeners.changefeature&&(this._changesListeners.changefeature=this.layer.source.on("changefeature",this._featureChanged.bind(this))),null===this._changesListeners.removefeature&&(this._changesListeners.removefeature=this.layer.source.on("removefeature",this._featureRemoved.bind(this)))}},{key:"getChanges",value:function(){return{add:Object(g["a"])(this._addedFeatures),edit:Object(g["a"])(this._editedFeatures),remove:Object(g["a"])(this._removedFeatures)}}},{key:"commitChanges",value:function(e){var t=this,i=[];this._addedFeatures.forEach((function(e){var t=tr(e,{writeStyle:!0});i.push({action:"add",feature:t,original:e,success:function(t){e.setId(t),e[Rn]=Hn.DYNAMIC}})})),this._editedFeatures.forEach((function(e){var t=tr(e,{writeStyle:!0});t._id=e.getId(),t.geomety="test",i.push({action:"edit",original:e,feature:t,success:function(){e[Rn]===Hn.STATIC&&(e[Rn]=Hn.EDITED)}})})),this._removedFeatures.forEach((function(e){var t=e.getId();i.push({original:e,action:"remove",feature:{_id:t},success:function(){}})}));var n=Promise.resolve();return i.length&&(n=q.a.post(e.toString(),i.map((function(e){return{action:e.action,feature:e.feature}}))).then((function(e){var n=e.data,r=n.failedActions.map((function(e){var n=e.index,r=e.error,a=i[n];return js.log("failed action ".concat(a.action,": ").concat(r)),i[n]=null,t._resetFeature(a.original)}));return i.filter((function(e){return e})).forEach((function(e){var t=e.action,i=e.success;"add"===t?i(n.insertedIds.shift()._id):i()})),Promise.all(r)}))),n.then((function(){var e=[];t._convertedFeatures.forEach((function(i){e.push(t._resetFeature(i))})),Promise.all(e)})).then((function(){t._resetValues()})).catch((function(e){t._resetValues(),js.error(e.message)}))}},{key:"reset",value:function(){var e=this,t=[];return this._addedFeatures.forEach((function(i){t.push(e._resetFeature(i))})),this._editedFeatures.forEach((function(i){t.push(e._resetFeature(i))})),this._removedFeatures.forEach((function(i){t.push(e._resetFeature(i))})),this._convertedFeatures.forEach((function(i){t.push(e._resetFeature(i))})),Promise.all(t).then((function(){e._resetValues()})).catch((function(t){js.error(t),e._resetValues()}))}},{key:"_resetFeature",value:function(e){var t=this,i=[e.getId()];return e[Rn]?e[Rn]===Hn.STATIC?(this.layer.removeFeaturesById(i),this.layer.hiddenStaticFeatureIds.delete(e.getId()),this.layer.showObjects(i),Promise.resolve()):this.layer.injectedFetchDynamicFeatureFunc(e.getId()).then((function(e){var n=er(e),r=n.features;t.layer.removeFeaturesById(i),t.layer.addFeatures(r)})).catch((function(e){js.error("failed to reset feature, giving up",e.message)})):(this.layer.removeFeaturesById(i),Promise.resolve())}},{key:"_resetValues",value:function(){this._addedFeatures.clear(),this._editedFeatures.clear(),this._removedFeatures.clear(),this._convertedFeatures.clear(),this.values.changed=!1}},{key:"unTrack",value:function(){ol.Observable.unByKey(Object.values(this._changesListeners)),this._changesListeners.addfeature=null,this._changesListeners.changefeature=null,this._changesListeners.removefeature=null,this._resetValues()}},{key:"pauseTracking",value:function(e){this._changesListeners[e]&&(ol.Observable.unByKey(this._changesListeners[e]),this._changesListeners[e]=null)}},{key:"_featureAdded",value:function(e){var t=e.feature;t[Rn]?t[Rn]===Hn.STATIC&&(this._convertedFeatures.add(t),this.values.changed=!0):(this._addedFeatures.add(t),this.values.changed=!0)}},{key:"_featureChanged",value:function(e){var t=e.feature;t[Rn]&&(this._convertedFeatures.delete(t),this._editedFeatures.add(t),this.values.changed=!0)}},{key:"_featureRemoved",value:function(e){var t=e.feature;t[Rn]?(this._removedFeatures.add(t),this._editedFeatures.delete(t),this._convertedFeatures.delete(t),this.values.changed=!0):this._addedFeatures.delete(t)}},{key:"removeFeature",value:function(e){o(e,ol.Feature),this._featureRemoved({feature:e})}},{key:"addFeature",value:function(e){o(e,ol.Feature),this._featureAdded({feature:e})}},{key:"editFeature",value:function(e){o(e,ol.Feature),this._featureChanged({feature:e})}},{key:"dispose",value:function(){this.unTrack(),this.layer=null}},{key:"active",get:function(){return Object.values(this._changesListeners).some((function(e){return null!==e}))}}]),e}(),Is=Es;At.FEATURESTORE=At.lastLayerId,At.lastLayerId+=1;var Ds=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i);var r=Object.assign({altitudeMode:"clampToGround",layerType:At.FEATURESTORE,className:i.className,projection:ee.getConfigObject()},e);if(n=t.call(this,r),n.extent.projection=ee,n.layerId=e.id,n.staticRepresentation=e.staticRepresentation||{},n.hiddenStaticFeatureIds=new Set(e.hiddenStaticFeatureIds||[]),n.changeTracker=new Is(Object(gt["a"])(n)),n.vcsMeta=e.vcsMeta||{},n.setVcsMeta(n.vcsMeta),n.injectedFetchDynamicFeatureFunc=e.injectedFetchDynamicFeatureFunc,n._staticFeaturesLayer=new or({cesiumTilesetLayerOptions:{url:n.staticRepresentation.threeDim,screenSpaceError:n.vcsMeta.screenSpaceError?n.vcsMeta.screenSpaceError:4},openlayersTiledLayerOptions:n.staticRepresentation.twoDim?{url:n.staticRepresentation.twoDim}:void 0,name:n.name,style:n.style,genericFeatureProperties:n._genericFeatureProperties}),n._setEditing=null,e.features){var a={type:"FeatureCollection",features:e.features,vcsMeta:e.vcsMeta},s=er(a,{targetProjection:ee,dynamicStyle:!0}),o=s.style,l=s.features;o&&(n.defaultStyle=o,n._staticFeaturesLayer.defaultStyle=o,n.setStyle(o)),n.addFeatures(l)}return n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.FeatureStore"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this.initialized?ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){return e._staticFeaturesLayer.initialize()})):ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){return e._staticFeaturesLayer.initialize()})).then((function(){e._hideDynamicFeatures()}))}},{key:"getVcsMeta",value:function(e){var t=ye(Object(fe["a"])(i.prototype),"getVcsMeta",this).call(this,e);return t}},{key:"synchronizeImplementations",value:function(e,t){var n=this;return ye(Object(fe["a"])(i.prototype),"synchronizeImplementations",this).call(this,e,t).then((function(){return n._staticFeaturesLayer.synchronizeImplementations(e,t)}))}},{key:"_hideDynamicFeatures",value:function(){var e=[];this.hiddenStaticFeatureIds.forEach((function(t){e.push(t)})),this._staticFeaturesLayer.hideObjects(e)}},{key:"setSyncing",value:function(){ye(Object(fe["a"])(i.prototype),"setSyncing",this).call(this),this._staticFeaturesLayer.setSyncing()}},{key:"activate",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null!=t&&this.logger.deprecate("activate","activate no longer accepts an argument, use deactivate to deactivate the layer"),!1!==t){e.next=4;break}return this.deactivate(),e.abrupt("return");case 4:if(this.isSupported()){e.next=6;break}return e.abrupt("return");case 6:if(this._state&Yt.CANCELED&&this.setStateLoading(),!this._loadingPromise){e.next=11;break}return e.next=10,this._loadingPromise;case 10:return e.abrupt("return");case 11:return e.next=13,ye(Object(fe["a"])(i.prototype),"activate",this).call(this);case 13:if(!this.active){e.next=17;break}return e.next=16,this._staticFeaturesLayer.activate();case 16:this._setEditing&&this.setEditing(this._setEditing.symbol,this._setEditing.featureType);case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this._staticFeaturesLayer.deactivate()}},{key:"setStyle",value:function(e,t){var n=this.changeTracker.active;n&&this.changeTracker.pauseTracking("changefeature"),ye(Object(fe["a"])(i.prototype),"setStyle",this).call(this,e,t),this._staticFeaturesLayer.setStyle(e,t),n&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"getFeatureExtent",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getFeatureExtent",this).call(this);if(this._staticFeaturesLayer.initialized){var t=this._staticFeaturesLayer.getFeatureExtent();ol.extent.extend(e.extent,t.extent)}return e}},{key:"setEditing",value:function(e,t){var i=this.framework.getMapByType("vcs.vcm.maps.Cesium");if(this._staticFeaturesLayer.setEditing(e,t),i){var n=this._staticFeaturesLayer.getImplementation(i);n.initialized?(null!=t?n.cesium3DTileset[e]=t:delete n.cesium3DTileset[e],this._setEditing=null):this._setEditing={symbol:e,featureType:t}}}},{key:"hideObjects",value:function(e){ye(Object(fe["a"])(i.prototype),"hideObjects",this).call(this,e),this._staticFeaturesLayer.hideObjects(e)}},{key:"showObjects",value:function(e){var t=this;ye(Object(fe["a"])(i.prototype),"showObjects",this).call(this,e);var n=e.filter((function(e){return!t.hiddenStaticFeatureIds.has(e)}));this._staticFeaturesLayer.showObjects(n)}},{key:"clearHiddenObjects",value:function(){ye(Object(fe["a"])(i.prototype),"clearHiddenObjects",this).call(this),this._staticFeaturesLayer.clearHiddenObjects(),this._hideDynamicFeatures()}},{key:"highlight",value:function(e){ye(Object(fe["a"])(i.prototype),"highlight",this).call(this,e),this._staticFeaturesLayer.highlight(e)}},{key:"unHighlight",value:function(e){ye(Object(fe["a"])(i.prototype),"unHighlight",this).call(this,e),this._staticFeaturesLayer.unHighlight(e)}},{key:"clearHighlighting",value:function(){ye(Object(fe["a"])(i.prototype),"clearHighlighting",this).call(this),this._staticFeaturesLayer.clearHighlighting()}},{key:"objectClickedHandler",value:function(e,t,n){return e[ar]?this._staticFeaturesLayer.objectClickedHandler(e,t,n||this):e instanceof ol.Feature&&ye(Object(fe["a"])(i.prototype),"objectClickedHandler",this).call(this,e,t,n||this)}},{key:"getGenericFeatureFromClickedObject",value:function(e){if(e instanceof ol.Feature)return ye(Object(fe["a"])(i.prototype),"getGenericFeatureFromClickedObject",this).call(this,e);var t=this._staticFeaturesLayer.getGenericFeatureFromClickedObject(e);return t.layerName=this.name,t.layerClass=this.className,t}},{key:"determineHighlightStyle",value:function(e,t){var n=this.getFeatureById(e);return n||t instanceof ol.Feature?ye(Object(fe["a"])(i.prototype),"determineHighlightStyle",this).call(this,e,t):this._staticFeaturesLayer.determineHighlightStyle(e,t)}},{key:"setMaximumScreenSpaceError",value:function(e){this._staticFeaturesLayer.setMaximumScreenSpaceError(e)}},{key:"switchStaticFeatureToDynamic",value:function(e){var t=this;return this.hiddenStaticFeatureIds.has(e)?Promise.resolve(this.getFeatureById(e)):this.injectedFetchDynamicFeatureFunc?this.injectedFetchDynamicFeatureFunc(e).then((function(i){var n=er(i,{targetProjection:ee,defaultStyle:t.defaultStyle instanceof dt?t.defaultStyle:mt}),r=n.features;return t._staticFeaturesLayer.hideObjects([e]),t.hiddenStaticFeatureIds.add(e),t.addFeatures(r),r[0]})).catch((function(e){t.logger.error(e.message)})):Promise.reject(new Error("no injected fetching function"))}},{key:"removeStaticFeature",value:function(e){this._staticFeaturesLayer.hideObjects([e]),this.hiddenStaticFeatureIds.add(e);var t=new ol.Feature;t.setId(e),t[Rn]=Hn.STATIC,this.changeTracker.removeFeature(t)}},{key:"dispose",value:function(){this.removeAllFeatures(),this._staticFeaturesLayer.dispose(),this.changeTracker.dispose(),ye(Object(fe["a"])(i.prototype),"dispose",this).call(this)}},{key:"altitudeMode",get:function(){return this._altitudeMode},set:function(e){var t=this.changeTracker.active;t&&this.changeTracker.pauseTracking("changefeature"),Cs(Object(fe["a"])(i.prototype),"altitudeMode",e,this,!0),t&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"skirt",get:function(){return this._skirt},set:function(e){var t=this.changeTracker.active;t&&this.changeTracker.pauseTracking("changefeature"),Cs(Object(fe["a"])(i.prototype),"skirt",e,this,!0),t&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"storeyHeight",get:function(){return this._storeyHeight},set:function(e){var t=this.changeTracker.active;t&&this.changeTracker.pauseTracking("changefeature"),Cs(Object(fe["a"])(i.prototype),"storeyHeight",e,this,!0),t&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"classificationType",get:function(){return this._classificationType},set:function(e){var t=this.changeTracker.active;t&&this.changeTracker.pauseTracking("changefeature"),Cs(Object(fe["a"])(i.prototype),"classificationType",e,this,!0),t&&(this.changeTracker.track(),this.changeTracker.values.changed=!0)}},{key:"screenSpaceErrorMobile",get:function(){return this._staticFeaturesLayer.screenSpaceErrorMobile}},{key:"screenSpaceError",get:function(){return this._staticFeaturesLayer.screenSpaceError}}]),i}(_n),Ps=Ds;O.WIDGET_ACTIVATED="WIDGET_ACTIVATED",O.WIDGET_DEACTIVATED="WIDGET_DEACTIVATED",O.WIDGET_STATE_CHANGED="WIDGET_STATE_CHANGED";var As,xs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),n=t.call(this,e);var r=i.getDefaultOptions();return n.supportedMaps=e.supportedMaps?e.supportedMaps:r.supportedMaps,n.initializeKey=null,n.initialized=!1,n.active=!1,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return{supportedMaps:["ALL"]}}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){if("ALL"===this.supportedMaps[0])return!0;var e=this.framework.getActiveMap();return this.isSupported(e)?(this.initializeKey&&this.framework.unsubscribeByKey(this.initializeKey),this.framework.subscribe(O.MAP_ACTIVATED,this.handleMapChangeEvent.bind(this)),!0):(this.initializeKey||(this.initializeKey=this.framework.subscribe(O.MAP_ACTIVATED,this.initialize.bind(this))),!1)}return!0}},{key:"initializedFinished",value:function(){"ALL"!==this.supportedMaps[0]&&this.handleMapChangeEvent(this.framework.getActiveMap())}},{key:"dispose",value:function(){}},{key:"isActive",value:function(){return this.logger.deprecate("isActive","please use the property .active directly"),this.active}},{key:"activate",value:function(){this.active||(this.active=!0,this.framework.publish(O.WIDGET_ACTIVATED,this))}},{key:"deactivate",value:function(){this.active&&(this.active=!1,this.framework.publish(O.WIDGET_DEACTIVATED,this))}},{key:"handleURLParameter",value:function(e){}},{key:"getLink",value:function(e){}},{key:"isSupported",value:function(e){o(e,[Le,String]);var t=e instanceof Le?e.className:e;return"ALL"===this.supportedMaps[0]||-1!==this.supportedMaps.indexOf(t)}},{key:"getSupportedMaps",value:function(){return this.supportedMaps}},{key:"handleMapChangeEvent",value:function(e){this.isSupported(e)?this.framework.publish(O.WIDGET_STATE_CHANGED,this):(this.framework.publish(O.WIDGET_STATE_CHANGED,this),this.deactivate())}},{key:"isInitialized",value:function(){return this.logger.deprecate("isInitialized","access the initialized property directly."),this.initialized}}]),i}(ve),Ys=xs,Ns=k.getLogger("vcs.vcm.widgets.legend.TreeItem"),Fs={ACTIVE:"active",INACTIVE:"inactive",LOADING:"loading",INDETERMINATE:"indeterminate"},Rs=function(){function e(t){Object(d["a"])(this,e),this.className=t.className,this.titleObject=t.title,this.infoUrl=t.infoUrl?t.infoUrl:null,this.infoUrlTarget=t.infoUrlTarget?t.infoUrlTarget:null,this.viewpointName=t.viewpointName?t.viewpointName:null,this.level=0,this.visible=!1,this.disabled=!1,this.id=t.name||Object(u["c"])(),this.focus=!1,this.initialized=!1,this.showInLegendIfDisabled=Object(u["e"])(t.showInLegendIfDisabled,!0),this.icon=t.icon||null}return Object(m["a"])(e,[{key:"initialize",value:function(e){return this.initialized||(this.level=e),!0}},{key:"isIconManagerInUse",value:function(){return!1}},{key:"isInitialized",value:function(){return Ns.deprecate("isInitialized","access the property .initialized directly."),this.initialized}},{key:"activate",value:function(e,t){return Promise.resolve()}},{key:"mapChanged",value:function(e){}},{key:"layerChanged",value:function(e){}},{key:"getViewPoint",value:function(){return Ns.deprecate("getViewPoint","use goToViewpoint instead or access the .viewpointName property."),this.viewpointName?G.getInstance().getViewPointByName(this.viewpointName):null}},{key:"gotoViewpoint",value:function(){if(this.viewpointName){var e=G.getInstance(),t=e.getViewPointByName(this.viewpointName);t&&e.getActiveMap().gotoViewPoint(t)}}}]),e}(),Hs=Rs,Gs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;if(Object(d["a"])(this,i),n=t.call(this,e),n.factory=e.factory,n.startopen=Object(u["e"])(e.startOpen,!1),n.clickable=Object(u["e"])(e.clickable,!0),n.open=n.startopen,n.children=[],n.state=Fs.INACTIVE,Array.isArray(e.children)){for(var r=e.children,a=0;a-1;r--)this.children.splice(n[r],1)}return!0}},{key:"setState",value:function(){if(this.visible){var e=null,t=function(t){t.visible&&t.state&&(e?e===Fs.ACTIVE||e===Fs.INACTIVE?e!==t.state&&(e=t.state===Fs.LOADING?t.state:Fs.INDETERMINATE):e===Fs.INDETERMINATE&&t.state===Fs.LOADING&&(e=t.state):e=t.state)};this.children.forEach(t),this.state=e}}},{key:"activate",value:function(e,t){var i=this.children.map((function(t){return t.activate(e,!0)}));return this.setState(),e&&!t&&this.gotoViewpoint(),Promise.all(i)}},{key:"mapChanged",value:function(e){this.children.forEach((function(t){t.mapChanged(e)}),this),this.visible=!!this.children.find((function(e){return e.visible})),this.setState()}},{key:"layerChanged",value:function(e){this.children.forEach((function(t){t.layerChanged(e)}),this),this.visible=!!this.children.find((function(e){return e.visible})),this.setState()}}]),i}(Hs),zs=Gs,Bs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.startopen=!0,n.clickable=!1,n.open=!0,n.breakAfter=!!e.breakAfter,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.ClusterItem"}}]),i}(zs),Vs=Bs,Us=k.getLogger("vcs.vcm.widgets.legend.LayerItem"),Ws=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.layerName=e.layerName?e.layerName:"",n.state=Fs.INACTIVE,n.activeStyleName=null,n.hasFeatureListView=!1,n._styleListener=null,n}return Object(m["a"])(i,[{key:"initialize",value:function(e){if(!this.initialized){if(!ye(Object(fe["a"])(i.prototype),"initialize",this).call(this,e))return!1;var t=G.getInstance().getLayerByName(this.layerName);if(!t)return Us.warning("Could not find Layer with name ".concat(this.layerName," Legend LayerItem for layer ").concat(this.layerName," is not shown")),this.visible=!1,!1;this.activeStyleName=t.style?t.style.name:null,this._styleListener=t.styleChanged.addEventListener(this._styleChangedHandler,this),this.initialized=!0}return!0}},{key:"_styleChangedHandler",value:function(e){this.activeStyleName!==e.name&&(this.activeStyleName=e.name)}},{key:"layerChanged",value:function(e){e.name===this.layerName&&this.setState()}},{key:"mapChanged",value:function(e){var t=G.getInstance().getLayerByName(this.layerName);t&&(this.visible=t.isSupported(e),this.setState())}},{key:"setState",value:function(){if(this.visible){var e=G.getInstance().getLayerByName(this.layerName);e&&(e.active?this.state=Fs.ACTIVE:e.loading?this.state=Fs.LOADING:this.state=Fs.INACTIVE)}}},{key:"activate",value:function(e,t){var i=this,n=G.getInstance().getLayerByName(this.layerName);if(n&&n.isSupported()&&(n.active||n.loading)!==e){var r=Promise.resolve();return e?(this.state=Fs.LOADING,r=n.activate()):n.deactivate(),r.then((function(){i.setState(),e&&!t&&i.gotoViewpoint()})).catch((function(){i.visible=!1}))}return Promise.resolve()}},{key:"isIconManagerInUse",value:function(){var e=G.getInstance().getLayerByName(this.layerName);return e&&e.iconManagerInUse}},{key:"destroy",value:function(){this._styleListener&&(this._styleListener(),this._styleListener=null)}}]),i}(Hs),qs=Ws,Js=k.getLogger("vcs.vcm.widgets.legend.LayerItem"),Ks=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.availableStyles=e.availableStyles||[],e.styles&&(Js.deprecate("styles","define styles in the config and add their names as availableStyles, do not define them in the LayerItem config"),e.styles.forEach((function(e){e.name||("string"===typeof e.title?e.name=e.title:e.name=Object(u["c"])()),G.getInstance().addStyle(new Ct(e)),n.availableStyles.push(e.name)}))),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.LayerItem"}}]),i}(qs),Zs=Ks,Qs=k.getLogger("vcs.vcm.widgets.legend.GroupLayerItem"),Xs=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.layerNames=e.layerNames||e.layerName||[],e.layerName&&Qs.deprecate("option.layerName","Use option.layerNames instead"),n.state=Fs.INACTIVE,n.availableStyles=e.availableStyles||[],n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.GroupLayerItem"}}]),Object(m["a"])(i,[{key:"initialize",value:function(e){var t=this;if(!this.initialized){ye(Object(fe["a"])(i.prototype),"initialize",this).call(this,e);var n,r=G.getInstance(),a=[],s=this.layerNames.every((function(e){var i=r.getLayerByName(e);return i?(a.push(i),n?n=!(!i.style||i.style.name!==n)&&n:!1!==n&&(n=!!i.style&&i.style.name),t.activeStyleName=n,!0):(Qs.warning("Could not find Layer with name ".concat(e," Legend GroupLayerItem is not shown")),!1)}));if(!s)return!1;this.visible=a.some((function(e){return e.isSupported()})),this.state=a.every((function(e){return e.active||e.activeOnStartup}))?Fs.ACTIVE:Fs.INACTIVE}return!0}},{key:"activate",value:function(e,t){var i=this;if(this.setState(),this.state!==Fs.ACTIVE&&e||!e){var n=G.getInstance();this.state=e?Fs.LOADING:Fs.INACTIVE;var r=this.layerNames.map((function(e){return n.getLayerByName(e)})).map((function(t){return e?t.activate():(t.deactivate(),Promise.resolve())}));return e&&!t&&this.gotoViewpoint(),Promise.all(r).then((function(){i.state=Fs.INDETERMINATE,i.setState()}))}return Promise.resolve()}},{key:"setState",value:function(){var e=G.getInstance(),t=this.layerNames.map((function(t){return e.getLayerByName(t)})).filter((function(e){return e.isSupported()})).map((function(e){return e.active}));(this.state!==Fs.LOADING||t.every((function(e){return e})))&&(t.every((function(e){return e}))?this.state=Fs.ACTIVE:t.some((function(e){return e}))?this.state=Fs.INDETERMINATE:this.state=Fs.INACTIVE)}},{key:"mapChanged",value:function(e){var t=G.getInstance();this.visible=this.layerNames.map((function(e){return t.getLayerByName(e)})).some((function(t){return t.isSupported(e)})),this.visible&&this.state===Fs.ACTIVE&&this.activate(!0)}},{key:"layerChanged",value:function(e){if(this.visible&&this.layerNames.includes(e.name)){if(this.state===Fs.ACTIVE||this.state===Fs.LOADING)return void this.setState();var t=G.getInstance(),i=this.layerNames.map((function(e){return t.getLayerByName(e)})).every((function(e){return e.initialized&&!e.active||!e.initialized&&!e.activeOnStartup}));i&&this.setState()}}}]),i}(Hs),$s=Xs,eo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.GroupItem"}}]),i}(zs),to=eo,io=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.name=e.name,n.id=e.id||Fn()(),n.plugin=e.plugin,n.config=e.config||{},n.visible=!0,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.PluginItem"}}]),i}(Hs),no=io,ro=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.layerNames=e.layerNames||[],n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.ViewpointItem"}}]),Object(m["a"])(i,[{key:"initialize",value:function(e){if(!this.initialized){if(!ye(Object(fe["a"])(i.prototype),"initialize",this).call(this,e))return!1;this.viewpointName&&(this.visible=!!G.getInstance().getViewPointByName(this.viewpointName))}return!0}},{key:"activate",value:function(e,t){return t||!e?Promise.resolve():(this.gotoViewpoint(),Promise.all(this.layerNames.map((function(e){var t=G.getInstance().getLayerByName(e);return t?t.activate():Promise.resolve()}))))}}]),i}(Hs),ao=ro,so=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.planningInstance=e.planningInstance,n.titleObject=n.planningInstance.name,n.visible=!0,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.PlanningInstanceItem"}}]),i}(Hs),oo=so,lo=i(175),co=k.getLogger("vcs.vcm.widgets.legend.PlanningClusterItem"),uo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),As?(co.warning("trying to instanciate PlanningClusterItem more then once!"),Object(lo["a"])(n,As)):(n=t.call(this,e),As=Object(gt["a"])(n),n)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.PlanningClusterItem"}}]),Object(m["a"])(i,[{key:"destroy",value:function(){As=void 0}}]),i}(Vs),ho=uo;function mo(){return As}var fo,go=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.flightInstance=e.flightName?G.getInstance().getFlightByName(e.flightName):e.flightInstance,n.titleObject=e.title||n.flightInstance.name,n.allowPlayer=Object(u["e"])(e.allowPlayer,!1),n.visible=!0,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.FlightInstanceItem"}}]),Object(m["a"])(i,[{key:"mapChanged",value:function(e){this.visible=e instanceof Ut}}]),i}(Hs),yo=go,po=k.getLogger("vcs.vcm.widgets.legend.StyledLayerItem"),vo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.styleName=e.styleName,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.legend.StyledLayerItem"}}]),Object(m["a"])(i,[{key:"initialize",value:function(e){var t=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this,e);if(t){var n=G.getInstance().getStyleByName(this.styleName);if(!n)return this.visible=!1,this.initialized=!1,po.warning("cannot created styled layer item for layer ".concat(this.layerName,". style ").concat(this.styleName," cannot be found")),!1}return t}},{key:"_styleChangedHandler",value:function(e){this.activeStyleName!==e.name&&(ye(Object(fe["a"])(i.prototype),"_styleChangedHandler",this).call(this,e),this.setState())}},{key:"setState",value:function(){this.activeStyleName===this.styleName||this.state===Fs.LOADING?ye(Object(fe["a"])(i.prototype),"setState",this).call(this):this.state=Fs.INACTIVE}},{key:"activate",value:function(e,t){var n=this;return ye(Object(fe["a"])(i.prototype),"activate",this).call(this,e,t).then((function(){var e=G.getInstance().getLayerByName(n.layerName);e.setStyle(n.styleName)}))}}]),i}(qs),_o=vo;O.LEGEND_INITIALIZED="LEGEND_INITIALIZED";var bo=(fo={},Object(U["a"])(fo,Vs.className,Vs),Object(U["a"])(fo,Zs.className,Zs),Object(U["a"])(fo,$s.className,$s),Object(U["a"])(fo,to.className,to),Object(U["a"])(fo,no.className,no),Object(U["a"])(fo,oo.className,oo),Object(U["a"])(fo,ao.className,ao),Object(U["a"])(fo,yo.className,yo),Object(U["a"])(fo,ho.className,ho),Object(U["a"])(fo,_o.className,_o),fo),Lo=k.getLogger("vcs.vcm.widgets.legend.Legend");function wo(e){if(!e.type)return Lo.warning("Need a type to instanciate a Legend Entry"),null;var t=bo[e.type];return t?(e.factory=wo,new t(e)):(Lo.warning("could not find constructor for ".concat(e.type)),null)}var Mo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.cluster=[],n.level=-1;var a=[];if(Array.isArray(e.children))for(var s=e.children,o=0;o0){var h=new Vs({children:a,factory:wo});n.cluster.push(h)}n.layerTitles={};var m=function e(t){t.children?t.children.forEach(e,this):t.layerName&&(this.layerTitles[t.layerName]=t.titleObject)};return n.cluster.forEach(m,Object(gt["a"])(n)),n.zoomToFirstLayer=Object(u["e"])(e.zoomToFirstLayer,r.zoomToFirstLayer),n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{children:[],zoomToFirstLayer:!1})}},{key:"className",get:function(){return"vcs.vcm.widgets.legend.Legend"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return;this.cluster.forEach((function(e){e.initialize(this.level)}),this);var t=this.framework.getActiveMap();this.cluster.forEach((function(e){e.mapChanged(t)}),this),this.initialized=!0,this.framework.publish(O.LEGEND_INITIALIZED,this),this.framework.subscribe(O.MAP_ACTIVATED,this.mapChanged.bind(this)),this.framework.subscribe(O.LAYER_CHANGED,this.layerChanged.bind(this)),this.framework.subscribe(O.PLANNINGINSTANCES_CHANGED,this.layerChanged.bind(this,{}))}}},{key:"handleURLParameter",value:function(e){if(this.zoomToFirstLayer&&e.layerToActivate){var t=Array.isArray(e.layerToActivate)?e.layerToActivate:[e.layerToActivate],i=function e(i){if(i.children){var n=i.children.find(e);return n&&(i.open=!0,i.startopen=!0,(n instanceof Zs||n instanceof $s)&&(n.level>0?i.focus=!0:n.focus=!0)),n}return i.layerNames?i.visible&&i.layerNames.every((function(e){return t.includes(e)})):i.visible&&i.layerName&&t.includes(i.layerName)};this.cluster.find(i)}}},{key:"mapChanged",value:function(e){this.cluster.forEach((function(t){t.mapChanged(e)}),this)}},{key:"layerChanged",value:function(e){this.cluster.forEach((function(t){t.layerChanged(e)}),this)}},{key:"resetLayer",value:function(){this.framework.getLayers().forEach((function(e){e.active!==e.activeOnStartup&&(e.activeOnStartup?e.activate():e.deactivate())}))}},{key:"getLayerTitle",value:function(e){return o(e,String),this.layerTitles[e]||null}},{key:"findTreeItems",value:function(e){var t=[];function i(n){for(var r=0;r-1}},{key:"save",value:function(){var e=this.serviceUrl.clone().extendPath("edit-object");return q.a.post(e.toString(),this.getDefinition()).then((function(){G.getInstance().publish(O.PLANNING_OBJECT_SAVED)}))}},{key:"delete",value:function(){var e=this.serviceUrl.clone().extendPath("delete-object");return q.a.post(e.toString(),{_id:this._id,planningId:this.planningInstanceId})}},{key:"getDefinitionUrl",value:function(){return this._onServiceUrl}},{key:"load",value:function(){}},{key:"unload",value:function(){}},{key:"hide",value:function(){this.visible=!1,this.unload()}},{key:"show",value:function(){this.visible=!0}},{key:"isPlaced",value:function(){return!0}},{key:"zoomTo",value:function(){}},{key:"destroy",value:function(){}},{key:"getConfigObject",value:function(){return{url:this.url,attributes:{name:this.name,description:this.description}}}}]),e}(),Co=So,jo=["longitude","latitude","height","heading","pitch","roll","scale"],Eo=k.getLogger("vcs.vcm.widgets.planning.PlanningObjectGltf"),Io=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.planningInstanceGltfLayerName=e.planningInstanceGltfLayerName,n.latitude=e.modelMeta.latitude,n.longitude=e.modelMeta.longitude,n.height=null!=e.modelMeta.height?e.modelMeta.height:0,n.heading=e.modelMeta.heading,n.heading=n.heading>180?n.heading-360:n.heading,n.pitch=e.modelMeta.pitch,n.roll=e.modelMeta.roll,n.scale=e.modelMeta.scale,n.supportedMaps=["vcs.vcm.maps.Cesium"],n.entityId=null,n.loaded=Promise.resolve(),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectGltf"}}]),Object(m["a"])(i,[{key:"handleMapChange",value:function(e){if(ye(Object(fe["a"])(i.prototype),"handleMapChange",this).call(this,e),this.supported&&!this.entityId){var t=this.getModelLayer();this.entityId=t.addObject(this.getConfigObject())}}},{key:"getModelLayer",value:function(){var e=G.getInstance().getLayerByName(this.planningInstanceGltfLayerName);return e}},{key:"getDefinition",value:function(){var e=this,t=ye(Object(fe["a"])(i.prototype),"getDefinition",this).call(this),n={};return jo.forEach((function(t){n[t]=e[t]})),t.modelMeta=n,t}},{key:"resetModelMatrix",value:function(){if(this.entityId){var e=this.getModelLayer();e.updateEntityById(this.entityId,this.getConfigObject())}}},{key:"zoomTo",value:function(){this.isPlaced()&&this.getModelLayer().flyToEntity(this.entityId)}},{key:"hide",value:function(){ye(Object(fe["a"])(i.prototype),"hide",this).call(this),this.entityId&&this.getModelLayer().hideObjects([this.entityId])}},{key:"show",value:function(){ye(Object(fe["a"])(i.prototype),"show",this).call(this),this.entityId&&this.getModelLayer().showObjects([this.entityId])}},{key:"setObjectOntoTerrain",value:function(){var e=this;Eo.deprecate("setObjectOntoTerrain","use vcs.vcm.maps.Cesium.getHeightFromTerrain with this object coordinates instead");var t=G.getInstance().getLayers(),i=t.find((function(e){return e instanceof is&&e.active}));return Bt(i.cesiumTerrainProvider,[[this.longitude,this.latitude]]).then((function(t){e.height=t[0][2]}))}},{key:"isPlaced",value:function(){var e=this,t=[];return jo.forEach((function(i){var n=e[i];-1===t.indexOf(n)&&t.push(n)})),!(0===t[0]&&1===t[1]&&2===t.length)}},{key:"destroy",value:function(){this.entityId&&this.getModelLayer().removeObjectById(this.entityId)}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.latitude=this.latitude,e.longitude=this.longitude,e.height=this.height,e.heading=this.heading,e.pitch=this.pitch,e.roll=this.roll,e.scale=this.scale,e.allowPicking=this.allowPicking,e.show=this.visible,e}}]),i}(Co),Do=Io,Po=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),n=t.call(this,e),n.extent=[-.5,-.5,.5,.5],e.imageMeta.extent&&n._setExtent(e.imageMeta.extent);var r=e.imageMeta.size;return n._size=r&&Array.isArray(r)&&2===r.length?r:null,n.opacity=e.imageMeta.opacity,n.credit=e.imageMeta.credit,n.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers"],n.editorId=e.editorId,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectImage"}}]),Object(m["a"])(i,[{key:"load",value:function(){var e=this;if(!this.getImageLayer()){var t=new ls({name:this._id,url:this.url,imageExtent:this.extent,opacity:this.opacity,credit:this.credit});G.getInstance().addLayer(t)}if(!this.size){var i=new Image;i.src=this.url,i.onload=function(){e._size=[i.width,i.height]}}this.visible&&this.getImageLayer().activate()}},{key:"unload",value:function(){var e=this.getImageLayer();e&&e.deactivate()}},{key:"isPlaced",value:function(){return!this.extent.every((function(e){return.5===Math.abs(e)}))}},{key:"getAspectRatio",value:function(){if(this.isPlaced()){var e=new De({coordinates:this.extent,epsg:$.epsg});if(e.isValid()){var t=ol.extent.getSize(e.getCoordinatesInProjection(ee));return t[1]/t[0]}}return this._size?this._size[1]/this._size[0]:null}},{key:"getImageLayer",value:function(){var e=G.getInstance().getLayerByName(this._id);return e}},{key:"getDefinition",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getDefinition",this).call(this);return e.imageMeta={extent:this.extent,size:this.size,opacity:this.opacity,credit:this.credit},e}},{key:"zoomTo",value:function(){if(this.isPlaced()){var e=G.getInstance().getActiveMap(),t=ke.createViewPointFromExtent(this.extent);t.heading=0,t.pitch=-90,t.roll=0,e.gotoViewPoint(t)}}},{key:"show",value:function(){ye(Object(fe["a"])(i.prototype),"show",this).call(this);var e=this.getImageLayer();e&&e.activate()}},{key:"setOpacity",value:function(e){o(e,Number),this.opacity=e,this.getImageLayer().setOpacity(e)}},{key:"setExtent",value:function(e,t){o(e,[Number]),o(e.length,4),l(t,X);var i=this._setExtent(e,t);i.isValid()&&this.getImageLayer().setExtent(this.extent)}},{key:"_setExtent",value:function(e,t){var i=t?t.epsg:void 0;if(!i){var n=ol.extent.containsExtent(De.WGS_84_EXTENT,e);i=n?"EPSG:4326":i}var r=new De({coordinates:e,epsg:i});return r.isValid()&&r.getCoordinatesInProjection($,this.extent),r}},{key:"destroy",value:function(){var e=this.getImageLayer();e&&e.dispose()}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.extent=this.extent,e.credit=this.credit,e.opacity=this.opacity,e}},{key:"size",get:function(){return this._size?this._size.slice(0):null}}]),i}(Co),Ao=Po,xo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n._onSelect=[],n._onCesiumSelect=[],n.featureMap=new Map,n.cesiumFeatureMap=new Map,n.state=e,n._defaultActive=re.CLICK,n._defaultModificationKey=ne.NONE,n.modificationKey=n._defaultModificationKey,n.maintainSelection=!1,n.setActive(!1),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){return e.feature&&e.feature[this.state.featureTypeSymbol]&cn.EDITABLE&&!(e.feature[this.state.featureTypeSymbol]&cn.EDITING)?(e.key&ne.NONE?this.selectFeature(e.feature):e.key&ne.CTRL&&this.selectionSetClick(e.feature),e.stopPropagation=!(this.state.mode&ln.PROPAGATEONSELECT)):e.key&ne.NONE&&(!e.feature||!e.feature[this.state.featureTypeSymbol]&&this.state.mode&(ln.EDIT|ln.SELECT))&&this.state.selectedFeatures>0&&this.clearSelectionSet(),Promise.resolve(e)}},{key:"setActive",value:function(e){ye(Object(fe["a"])(i.prototype),"setActive",this).call(this,e),this.maintainSelection=!1}},{key:"hasMultiSelect",value:function(){this._defaultModificationKey&ne.CTRL||(this._defaultModificationKey|=ne.CTRL,this.setModification())}},{key:"selectFeature",value:function(e){this.state.mode&ln.TRANSLATE&&this.featureMap.has(e.getId())||(this.clearSelectionSet(!0),e[ar]?(this.cesiumFeatureMap.set(e.getId(),e),this.state.selectedCesiumFeatures=this.cesiumFeatureMap.size,this.state.selectedFeatures=this.featureMap.size+this.cesiumFeatureMap.size,this._setState(e),this._cesiumCb()):(this.featureMap.set(e.getId(),e),this.state.selectedFeatures=this.featureMap.size+this.cesiumFeatureMap.size,this._setState(e)),this._cb())}},{key:"_setState",value:function(e){if(e){this.state.selectedFeatureId=e.getId(),this.state.layerName=e[Ht.vcsLayerNameSymbol];var t=e.getProperty("olcs_classificationType");t&&mn[t]?this.state.classificationType=mn[t]:this.state.classificationType=this.state.defaultClassificationType;var i=e.getProperty("olcs_altitudeMode");if(i&&dn[i]){var n=dn[i];this.state.altitudeMode&hn.ZPLANE&&n&hn.ABSOLUTE||(this.state.altitudeMode=n)}else this.state.altitudeMode=this.state.defaultAltitudeMode}else this.state.altitudeMode=this.state.defaultAltitudeMode,this.state.classificationType=this.state.defaultClassificationType,this.state.selectedCesiumFeatures=0,this.state.selectedFeatures=0,this.state.selectedFeatureId=null}},{key:"selectionSetClick",value:function(e,t){var i=e.getId(),n=!e[ar],r=n?this.featureMap.delete(i):this.cesiumFeatureMap.delete(i);r||(n?this.featureMap.set(i,e):this.cesiumFeatureMap.set(i,e)),r?r&&i===this.state.selectedFeatureId&&(this.featureMap.size?this._setState(this.featureMap.values().next().value):this.cesiumFeatureMap.size?this._setState(this.cesiumFeatureMap.values().next().value):this._setState()):(n&&1===this.featureMap.size&&!this.cesiumFeatureMap.size||!n&&1===this.cesiumFeatureMap.size&&!this.featureMap.size)&&this._setState(e),this.state.selectedFeatures=this.featureMap.size+this.cesiumFeatureMap.size,this.state.selectedCesiumFeatures=this.cesiumFeatureMap.size,t||(n?this._cb():this._cesiumCb())}},{key:"clearCesiumSelectionSet",value:function(){var e=!!this.cesiumFeatureMap.size;this.cesiumFeatureMap.has(this.state.selectedFeatureId)&&(this.featureMap.size?this._setState(this.featureMap.values().next().value):this._setState()),this.state.selectedCesiumFeatures=0,this.cesiumFeatureMap.clear(),e&&this._cesiumCb()}},{key:"clearSelectionSet",value:function(e){this.featureMap.clear(),this.clearCesiumSelectionSet(),this._setState(),e||this._cb()}},{key:"onSelect",value:function(e){o(e,Function),this._onSelect.push(e)}},{key:"onCesiumSelect",value:function(e){o(e,Function),this._onCesiumSelect.push(e)}},{key:"_cb",value:function(){for(var e=0;e0}));e.forEach((function(e){gi(e).then((function(){e.set("olcs_altitudeMode","absolute")}))}))};if("vcs.vcm.maps.Cesium"===G.getInstance().getActiveMap().className)r();else var a=G.getInstance().subscribe("MAP_ACTIVATED",(function(e){"vcs.vcm.maps.Cesium"===e.className&&(r(),G.getInstance().unsubscribeByKey(a))}))}},{key:"_writeToGeoJSON",value:function(){var e=this.getDrawingLayer(),t={asObject:!0,writeStyle:!0,embedIcons:!0};return ir({features:e.getFeatures(),vcsMeta:e.getVcsMeta(t)},t)}},{key:"getDrawingLayer",value:function(){return G.getInstance().getLayerByName(this._id)}},{key:"zoomTo",value:function(){var e=this.getDrawingLayer();if(e.getFeatures().length>0){var t=e.source.getExtent(),i=X.getTransformer($,ee);i(t,t,2);var n=ke.createViewPointFromExtent(t);G.getInstance().getActiveMap().gotoViewPoint(n)}}},{key:"greyOut",value:function(){var e=this.getDrawingLayer();this.loaded&&e.active&&!this.greyed&&(Jo[this._id]=e.style,e.setStyle(qo),this.greyed=!0)}},{key:"unGrey",value:function(){this.greyed&&Jo[this._id]&&(this.getDrawingLayer().setStyle(Jo[this._id]),this.greyed=!1)}},{key:"show",value:function(){ye(Object(fe["a"])(i.prototype),"show",this).call(this),this.getDrawingLayer().activate()}},{key:"setDrawing",value:function(e){var t=Bo(this.editorId);e?t.addEditingLayer(this.getDrawingLayer()):t.removeEditingLayer(this.getDrawingLayer())}},{key:"getDefinition",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getDefinition",this).call(this);return e.geoJSON=this._writeToGeoJSON(),e}},{key:"reset",value:function(){this.getDrawingLayer().removeAllFeatures(),this._setFeaturesFromGeoJSON()}},{key:"destroy",value:function(){this.getDrawingLayer().removeAllFeatures(),this.getDrawingLayer().dispose()}}]),i}(Co),Zo=Ko,Qo=k.getLogger("vcs.vcm.widgets.planning.PlanningObjectProcessing"),Xo=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.description=e.stdoutMsgs&&Array.isArray(e.stdoutMsgs)?e.stdoutMsgs.join("\n"):"",n._pollingInterval=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectProcessing"}}]),Object(m["a"])(i,[{key:"load",value:function(){this._observeStatus()}},{key:"unload",value:function(){clearInterval(this._pollingInterval),this._pollingInterval=null}},{key:"observeStatus",value:function(){Qo.deprecate("observeStatus","Use load to start polling the status & unload to stop."),this._observeStatus()}},{key:"_observeStatus",value:function(){var e=this;null!=this._pollingInterval&&clearInterval(this._pollingInterval),this._pollingInterval=window.setInterval((function(){var t=e.serviceUrl.clone().extendPath("get-object-status",e._id);q.a.post(t.toString()).then((function(t){if(e.status=t.data,e.status===To.FAILED||e.status===To.READY){var i=G.getInstance().getWidgetByType("vcs.vcm.widgets.Planning").planningInstances.find((function(t){return t._id===e.planningInstanceId}));return i.updatePlanningObject(e).then((function(){e.destroy()}))}return Promise.resolve()})).catch((function(t){if(t.response&&t.response.data&&"notFound"===t.response.data.error){var i=G.getInstance().getWidgetByType("vcs.vcm.widgets.Planning").planningInstances.find((function(t){return t._id===e.planningInstanceId}));i.updatePlanningObjects()}else Qo.error("Could not update PlanningObject ".concat(e._id,", polling is stopped Error: ").concat(t.toString())),e.destroy()}))}),1e4)}},{key:"destroy",value:function(){clearInterval(this._pollingInterval),this._pollingInterval=null}}]),i}(Co),$o=Xo,el=k.getLogger("vcs.vcm.widgets.planning.PlanningObjectFeatureStore"),tl=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.loaded=null,n.featureStoreUrl=n.serviceUrl.clone(),n.featureStoreUrl.extendPath("feature-store"),n.featureStoreUrl.addQueryParams({planningId:n.planningInstanceId,planningObjectId:n._id}),n.layerId=e.layerId,n.editorId=e.editorId,n.trackerValues={},n.terrainUrl=e.terrainUrl,n._balloonTemplate=e.balloonTemplate||"",n._pollingInterval=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectFeatureStore"}}]),Object(m["a"])(i,[{key:"getLayer",value:function(){return G.getInstance().getLayerByName(this.layerId)}},{key:"load",value:function(){var e=this;if(this.status===To.READY){if(!this.loaded){var t=this.featureStoreUrl.clone();t.extendPath("get-layer"),this.loaded=q.a.get(t.toString()).then((function(t){var i=t.data;if(i.staticRepresentation&&i.staticRepresentation.threeDim){var n="".concat(e.serviceUrl.base);if(e.serviceUrl.path.length>1){var r=e.serviceUrl.path.slice(0,e.serviceUrl.path.length-1);n="".concat(n,"/").concat(r.join("/"))}i.staticRepresentation.threeDim="".concat(n,"/").concat(i.staticRepresentation.threeDim);var a=e.featureStoreUrl.clone().extendPath("get-layer-file");a.addQueryParams({asJson:!0,onlyStatic:!0}),i.staticRepresentation.twoDim=a.toString()}i.injectedFetchDynamicFeatureFunc=e.getDynamicFeature.bind(e),i.name=e.layerId;var s=G.getInstance();i.genericFeatureProperties={planningName:e.name,planningDescription:e.description};var o=new Ps(i);if(s.addLayer(o),e._balloonTemplate){var l=s.getWidgetByType("vcs.vcm.widgets.BalloonInfo");l&&l.addTypeForLayer(e.layerId,e._balloonTemplate)}})).catch((function(e){el.log(e)}))}this.loaded.then((function(){e.visible&&e.getLayer().activate()}))}else this._observeStatus()}},{key:"unload",value:function(){var e=this.getLayer();e&&e.deactivate(),this._pollingInterval&&(clearInterval(this._pollingInterval),this._pollingInterval=null),this._removeModeChangeListener&&(this._removeModeChangeListener(),this._removeModeChangeListener=null)}},{key:"getDynamicFeature",value:function(e){var t=this.featureStoreUrl.clone();return t.extendPath("get-feature",this.planningInstanceId,this._id,e.toString()),q.a.post(t.toString()).then((function(e){var t=e.data;return t}))}},{key:"show",value:function(){this.getLayer()?(ye(Object(fe["a"])(i.prototype),"show",this).call(this),this.getLayer().activate()):el.warning("FeatureStoreLayer for PlanningObjectFeatureStore does not exists, check code")}},{key:"setEditing",value:function(e){var t=Bo(this.editorId),i=this.getLayer();this._removeModeChangeListener&&(this._removeModeChangeListener(),this._removeModeChangeListener=null),e?(this._removeModeChangeListener=t.modeChange.addEventListener((function(e){e&ln.NONE?i.changeTracker.pauseTracking("changefeature"):i.changeTracker.track()})),i.changeTracker.track(),this.trackerValues=i.changeTracker.values,t.addEditingLayer(i),Bo(this.editorId).state.dedicatedFeatureStyle=!1):(i.changeTracker.unTrack(),t.removeEditingLayer(i),Bo(this.editorId).state.dedicatedFeatureStyle=!0)}},{key:"appendFile",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(e,Object),o(i,Object),this.terrainUrl&&(i.terrain=i.terrain||this.terrainUrl),e.append("converterOptions",JSON.stringify(i));var n=this.featureStoreUrl.clone();return n.extendPath("append"),q.a.post(n.toString(),e).then((function(){t.status=To.CONVERTING,t._observeStatus()}))}},{key:"calculateStatic",value:function(){var e=this,t=this.featureStoreUrl.clone();t.extendPath("calculate-static");var i=this.terrainUrl?{terrain:this.terrainUrl}:void 0;return q.a.post(t.toString(),i).then((function(){e.status=To.OPTIMIZING,e._observeStatus()}))}},{key:"_observeStatus",value:function(){var e=this;null!=this._pollingInterval&&clearInterval(this._pollingInterval),this._pollingInterval=window.setInterval((function(){var t=e.serviceUrl.clone().extendPath("get-object-status",e._id);q.a.post(t.toString()).then((function(t){if(e.status=t.data,e.status===To.FAILED)el.warning("conversion failed"),clearInterval(e._pollingInterval),e._pollingInterval=null;else if(e.status===To.READY){G.getInstance().removeLayerByName(e.layerId);var i=G.getInstance().getWidgetByType("vcs.vcm.widgets.Planning").planningInstances.find((function(t){return t._id===e.planningInstanceId}));e.loaded=null,i.loaded&&e.load(),clearInterval(e._pollingInterval),e._pollingInterval=null}})).catch((function(e){el.error(e)}))}),2e4)}},{key:"getDefinition",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getDefinition",this).call(this);return e.balloonTemplate=this._balloonTemplate&&""!==this._balloonTemplate?this._balloonTemplate:void 0,e}},{key:"save",value:function(){var e=this,t=this.getLayer(),n=Bo(this.editorId);n.state.active&&n.setMode(ln.NONE);var r=this.featureStoreUrl.clone();return r.extendPath("bulk"),t.changeTracker.commitChanges(r.toString()).then((function(){return e.saveVcsMeta()})).then((function(){return ye(Object(fe["a"])(i.prototype),"save",e).call(e)}))}},{key:"saveVcsMeta",value:function(){var e=this.getLayer().getVcsMeta({writeStyle:!0}),t=this.featureStoreUrl.clone();return t.extendPath("edit-meta"),q.a.post(t.toString(),e)}},{key:"reset",value:function(){var e=this.getLayer(),t=Bo(this.editorId);return t.setMode(ln.NONE),e.changeTracker.reset()}},{key:"destroy",value:function(){var e=this.getLayer();e&&e.dispose(),this._pollingInterval&&(clearInterval(this._pollingInterval),this._pollingInterval=null)}},{key:"zoomTo",value:function(){var e=this.getLayer(),t=e.getFeatureExtent();if(t.isValid()){var i=t.getCoordinatesInProjection($),n=ke.createViewPointFromExtent(i);n.distance=n.distance<4e3?n.distance:4e3,G.getInstance().getActiveMap().gotoViewPoint(n)}}},{key:"balloonTemplate",get:function(){return this._balloonTemplate},set:function(e){this._balloonTemplate=e;var t=G.getInstance().getWidgetByType("vcs.vcm.widgets.BalloonInfo");if(t)if(this._balloonTemplate&&""!==this._balloonTemplate)if(t.layerNamesToBalloonTypes[this.layerId]){var i=t.balloonTypes[t.layerNamesToBalloonTypes[this.layerId]];i.template=this._balloonTemplate}else t.addTypeForLayer(this.layerId,this._balloonTemplate);else delete t.layerNamesToBalloonTypes[this.layerId]}},{key:"name",get:function(){return this._name},set:function(e){this._name=e;var t=this.getLayer();t&&t.addGenericFeatureProperties({planningName:e})}},{key:"description",get:function(){return this._description},set:function(e){this._description=e;var t=this.getLayer();t&&t.addGenericFeatureProperties({planningDescription:e})}}]),i}(Co),il=tl,nl=i(6),rl=i.n(nl),al="
\n

<%= obj.title %>

\n
\n <%= obj.description %>\n
\n \n <% if (obj.edited) {%>\n <%= obj.edited %>\n <% }%>\n <%= obj.author %> <%= obj.date %>\n \n
\n
\n \n
\n
\n
\n
\n",sl=null,ll=function(){function e(){var t=this;Object(d["a"])(this,e),this.active=!1,this.setupResolve=null,this.setupPromise=new Promise((function(e){t.setupResolve=e})),this.serviceUrl=null,this.scenarioId=null,this.projectId=null,this.currentUser={userSettings:null},this.projectGroups=[],this.projectUsers=[],this.projectSettings={hasMail:!1,selfRegister:!1,userInvite:!1},this.onLogin=[],this.onLogout=[],this.beforeLogout=[],window.addEventListener("beforeunload",(function(){t.logout()}))}return Object(m["a"])(e,null,[{key:"className",get:function(){return"vcs.vcm.util.Login"}}]),Object(m["a"])(e,[{key:"handleURLParameter",value:function(e){e["reset-token"]?e.enrollment?window.location.hash="#/login/enroll/".concat(e["reset-token"]):window.location.hash="#/login/reset/".concat(e["reset-token"]):e["verify-token"]&&(window.location.hash="#/login/verify/".concat(e["verify-token"]))}},{key:"registerWidget",value:function(e){if(this.active){var t=this.serviceUrl===e.serviceUrl,i=this.projectId===e.projectId,n=this.scenarioId===e.scenarioId;return t&&n&&i?(e.onLogin.forEach((function(e){this.onLogin.push(e)}),this),e.onLogout.forEach((function(e){this.onLogout.push(e)}),this),e.beforeLogout.forEach((function(e){this.beforeLogout.push(e)}),this),Promise.resolve()):Promise.reject(new Error("Login recieved two different configurations"))}return this.serviceUrl=e.serviceUrl,this.url=a["a"].parse(this.serviceUrl),this.url.addQueryParams({version:3.7}),this.projectId=e.projectId,this.scenarioId=e.scenarioId,e.onLogin.forEach((function(e){this.onLogin.push(e)}),this),e.onLogout.forEach((function(e){this.onLogout.push(e)}),this),e.beforeLogout.forEach((function(e){this.beforeLogout.push(e)}),this),this._getProject()}},{key:"registerHook",value:function(e,t){o(e,["onLogin","onLogout","beforeLogout"]),o(t,Function),"onLogin"===e?this.onLogin.push(t):"onLogout"===e?this.onLogout.push(t):"beforeLogout"===e&&this.beforeLogout.push(t)}},{key:"_getProject",value:function(){var e=this.url.clone();return q.a.post(e.extendPath("project","get").toString(),{projectId:this.projectId}).then(this._setProject.bind(this)).catch((function(){})).then(this.setupResolve)}},{key:"_setProject",value:function(e){return e.data&&e.data._id===this.projectId?(Object.assign(this.projectSettings,e.data),this.active=!0,Promise.resolve()):Promise.reject("Login project was not found or did not match registered project")}},{key:"login",value:function(t,i){if(o(t,String),o(i,String),!this.active)return Promise.reject("Login has not been activated!");var n=e.sha256(i),r=this.url.clone();return q.a.post(r.extendPath("user","login").toString(),{email:t,password:n,mapId:this.scenarioId}).then(this.setUser.bind(this))}},{key:"logout",value:function(){var e=this.beforeLogout.map((function(e){return e()})).filter((function(e){return null!=e})),t=function(e){return q.a.post("".concat(this.serviceUrl,"/user/logout?access_token=").concat(this.getBearerToken())).then(this.clearUser.bind(this)),e?Promise.reject(new Error("logout failed")):Promise.resolve()};return Promise.all(e).then(t.bind(this,!1)).catch(t.bind(this,!0))}},{key:"register",value:function(t,i,n){if(o(t,String),o(i,String),l(n,String),!Object(u["d"])(t))throw new Error("i18n_error_invalidEmail");var r=n?{name:n}:null,a=e.sha256(i);return q.a.post("".concat(this.serviceUrl,"/user/register"),{email:t,password:a,projectId:this.projectId,profile:r,mapId:this.scenarioId})}},{key:"invite",value:function(e){if(o(e,String),!Object(u["d"])(e))throw new Error("i18n_error_invalidEmail");var t=this.getBearerToken();return q.a.post("".concat(this.serviceUrl,"/user/register")+"?access_token=".concat(t),{email:e,projectId:this.projectId,mapId:this.scenarioId})}},{key:"verifyEmail",value:function(e){return o(e,String),q.a.post("".concat(this.serviceUrl,"/user/verify-email"),{token:e})}},{key:"requestResetPassword",value:function(e){return o(e,String),q.a.post("".concat(this.serviceUrl,"/user/request-reset"),{email:e,mapId:this.scenarioId})}},{key:"resetPassword",value:function(t,i){o(t,String),o(i,String);var n=e.sha256(t);return q.a.post("".concat(this.serviceUrl,"/user/reset-password"),{password:n,token:i}).then(this.setUser.bind(this))}},{key:"getCurrentUser",value:function(){return this.currentUser}},{key:"getUserById",value:function(e){return this.projectUsers.find((function(t){return t._id===e}))}},{key:"getBearerToken",value:function(){return this.currentUser?this.currentUser.token:null}},{key:"setUser",value:function(e){var t=this;Object.assign(this.currentUser,e.data),this.url.addQueryParams({access_token:this.currentUser.token});var i=this.url.clone(),n=q.a.post(i.extendPath("group","get-shareable").toString(),{projectId:this.projectId}),r=this.url.clone(),a=q.a.post(r.extendPath("user","get").toString(),{userId:this.currentUser.id}),s=this.url.clone(),o=q.a.get(s.extendPath("project-users",this.projectId).toString());return Promise.all([n,a,o]).then((function(e){t.setProjectGroups(e[0]),t.setProfile(e[1]),t._setProjectUsers(e[2]),t.onLogin.forEach((function(e){e()}))}))}},{key:"setProjectGroups",value:function(e){this.projectGroups.splice(0,this.projectGroups.length),e.data.forEach((function(e){var t={};t.id=e._id,t.name=e.name,this.projectGroups.push(t)}),this)}},{key:"setProfile",value:function(e){this.currentUser.userSettings=e.data}},{key:"_setProjectUsers",value:function(e){var t=e.data;t.users&&t.users.forEach((function(e){this.projectUsers.push(e)}),this)}},{key:"clearUser",value:function(){Object.keys(this.currentUser).forEach((function(e){"userSettings"===e?this.currentUser[e]=null:delete this.currentUser[e]}),this),this.projectGroups.splice(0,this.projectGroups.length),this.onLogout.forEach((function(e){e()})),console.log("logged out",this.currentUser)}},{key:"searchUser",value:function(e){var t=this.url.clone();return q.a.post(t.extendPath("user","search").toString(),{text:e,projectId:this.projectId})}}],[{key:"getInstance",value:function(){return sl||(sl=new e),sl}},{key:"sha256",value:function(e){var t=8,i=0;function n(e,t){var i=(65535&e)+(65535&t),n=(e>>16)+(t>>16)+(i>>16);return n<<16|65535&i}function r(e,t){return e>>>t|e<<32-t}function a(e,t){return e>>>t}function s(e,t,i){return e&t^~e&i}function o(e,t,i){return e&t^e&i^t&i}function l(e){return r(e,2)^r(e,13)^r(e,22)}function c(e){return r(e,6)^r(e,11)^r(e,25)}function u(e){return r(e,7)^r(e,18)^a(e,3)}function h(e){return r(e,17)^r(e,19)^a(e,10)}function d(e,t){var i,r,a,d,m,f,g,y,p,v,_=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),b=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),L=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var w=0;w>5]|=(e.charCodeAt(r/t)&n)<<24-r%32;return i}function f(e){for(var t="",i=0;i127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t}function g(e){for(var t=i?"0123456789ABCDEF":"0123456789abcdef",n="",r=0;r<4*e.length;r++)n+=t.charAt(e[r>>2]>>8*(3-r%4)+4&15)+t.charAt(e[r>>2]>>8*(3-r%4)&15);return n}return e=f(e),g(d(m(e),e.length*t))}}]),e}(),cl=ll,ul=k.getLogger("vcs.vcm.widgets.planning.PlanningComment");function hl(e){var t,i,n=e.properties;n.editedBy&&n.editedOn?(t=n.editedBy,i=n.editedOn,n.edited=C.getInstance().getSingleMessage("i18n_planning_comment_edited")):(t=n.createdBy,i=n.createdOn);var r=cl.getInstance().getUserById(t);n.author=r&&r.profile?r.profile.name:"anonymous",n.date=rl()(i).format("LLL")}function dl(e){var t=ir({features:[e]},{asObject:!0}),i=t.features[0];return i.id=e.getId(),delete i.properties.selected,i}var ml={DEFAULT:"default",INFO:"info",SUCCESS:"success",WARNING:"warning"},fl=function(){function e(t,i,n){var r=this;Object(d["a"])(this,e),this.planningId=t,this.url=i.clone(),this.url.addQueryParams({planningId:t}),this.url.extendPath("comment"),this.dataLoaded=!1,this.ready=new Promise((function(e){r._readyResolve=e})),this.permissions=n,this.comments=[];var a=G.getInstance(),s=a.getWidgetByType("vcs.vcm.widgets.BalloonInfo");s&&s.addTypeForLayer("".concat(this.planningId,"_comments"),al),a.subscribe("LOCALE_CHANGED",this.localeChanged.bind(this)),this.localeChanged(a.getLocale()),this.active=!1}return Object(m["a"])(e,[{key:"getLayer",value:function(){var e=G.getInstance(),t=e.getLayerByName("".concat(this.planningId,"_comments"));return t||(t=new _n({altitudeMode:"absolute",name:"".concat(this.planningId,"_comments"),allowPicking:!0,projection:ee.getConfigObject(),balloonHeightOffset:1,style:"planningCommentStyle"}),e.addLayer(t)),t}},{key:"load",value:function(){var e=this;if(!this.dataLoaded){var t=this.getLayer(),i=this.url.clone();i.extendPath("get-comments"),q.a.get(i.toString()).then((function(i){var n,r=i.data;(n=e.comments).push.apply(n,Object(g["a"])(r.features)),e.comments.forEach(hl);var a=er(r),s=a.features;t.addFeatures(s),e.dataLoaded=!0,e._readyResolve()})).catch((function(t){ul.error(t.message),e.dataLoaded=!0,e._readyResolve()}))}this.ready.then((function(){e.getLayer().activate(),e.active=!0}))}},{key:"localeChanged",value:function(e){if(rl.a.locale(e),this.dataLoaded){var t=this.getLayer();this.comments.forEach((function(e){hl(e);var i=t.getFeatureById(e.id);i&&(e.properties.edited&&i.set("edited",e.properties.edited,!0),i.set("author",e.properties.author,!0),i.set("date",e.properties.date))}))}}},{key:"unLoad",value:function(){this.getLayer().deactivate(),this.active=!1}},{key:"lookAt",value:function(e){var t=G.getInstance(),i=this.getLayer(),n=i.getFeatureById(e),r=t.getActiveMap(),a=r.getViewPoint();a.pitch>-45&&(a.pitch=-45),a.distance||(a.distance=2e3),a.cameraPosition=null,a.groundPosition=X.mercatorToWgs84(n.getGeometry().getCoordinates()),a.animate=!0,r.gotoViewPoint(a),t.publish("FEATURE_CLICKED",n.getId(),n,i)}},{key:"addComment",value:function(e){var t=this;o(e,ol.Feature);var i=dl(e),n=this.url.clone();return n.extendPath("add"),q.a.post(n.toString(),i).then((function(i){var n=i.data;hl(n),t.comments.push(n),e.setId(n.id),e.set("author",n.properties.author,!0),e.set("date",n.properties.date)}))}},{key:"editComment",value:function(e){var t=this;o(e,ol.Feature);var i=dl(e),n=this.url.clone();return n.extendPath("edit"),q.a.post(n.toString(),i).then((function(i){var n=i.data,r=t.comments.findIndex((function(e){return e.id===n.id}));t.comments.splice(r,1,n),hl(n),e.set("author",n.properties.author,!0),e.set("date",n.properties.date)}))}},{key:"deleteComment",value:function(e){var t=this;o(e,ol.Feature);var i=dl(e),n=this.url.clone();return n.extendPath("delete"),q.a.post(n.toString(),i).then((function(){var e=t.comments.findIndex((function(e){return e.id===i.id}));t.comments.splice(e,1),t.getLayer().removeFeaturesById([i.id])}))}},{key:"destroy",value:function(){this.comments.splice(0);var e=G.getInstance().getLayerByName("".concat(this.planningId,"_comments"));e&&e.dispose()}}]),e}(),gl=fl;function yl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.viewpoints.map((function(e){e.duration=null!=e.duration?e.duration:null;var t=J(e.cameraPosition.slice(),void 0,3),i=new ol.Feature({geometry:new ol.geom.Point(t)});return i.setProperties(Object.assign({},e)),i})),n={features:i,vcsMeta:{flightOptions:{name:e.name,loop:e.loop,interpolation:e.interpolation}}};return ir(n,t)}function pl(e){var t=er(e),i=t.vcsMeta&&t.vcsMeta.flightOptions?t.vcsMeta.flightOptions:{name:"ImportedFlight"};return i.viewpoints=t.features.map((function(e){var t={name:e.get("name"),distance:e.get("distance"),groundPosition:e.get("groundPosition"),cameraPosition:e.get("cameraPosition"),heading:e.get("heading"),pitch:e.get("pitch"),roll:e.get("roll"),animate:!1,duration:null!=e.get("duration")?e.get("duration"):null};return t})),i}var vl={SPLINE:"spline",LINEAR:"linear"},_l=function(){function e(t){Object(d["a"])(this,e),this.id=Object(u["c"])(),this.name=t.name,this.viewpoints=t.viewpoints||[],this.multiplier=Object(u["g"])(t.multiplier,1),this.loop=Object(u["e"])(t.loop,!1),this.interpolation=t.interpolation||vl.SPLINE,this.changed=new Cesium.Event,this.url=t.url,this._readyPromise=null}return Object(m["a"])(e,null,[{key:"className",get:function(){return"vcs.vcm.util.flight.FlightInstance"}}]),Object(m["a"])(e,[{key:"isValid",value:function(){var e=this;return this.viewpoints.forEach((function(t,i){t.cameraPosition||e.viewpoints.splice(i,1)})),this.viewpoints.length>=2}},{key:"assign",value:function(e){this.name=e.name,this.viewpoints=e.viewpoints,this.multiplier=e.multiplier,this.loop=e.loop,this.interpolation=e.interpolation,this.changed.raiseEvent()}},{key:"getConfigObject",value:function(){return{name:this.name,multiplier:this.multiplier,loop:this.loop,interpolation:this.interpolation,viewpoints:this.viewpoints.map((function(e){return Object.assign({},e)}))}}},{key:"ready",get:function(){var e=this;return this._readyPromise||(this.url?this._readyPromise=q.a.get(this.url).then((function(t){var i=t.data,n=pl(i);e.assign(n)})):this._readyPromise=Promise.resolve()),this._readyPromise}}]),e}(),bl=_l,Ll=k.getLogger("vcs.vcm.widgets.planning.PlanningObjectTiled"),wl=new Cesium.Cartographic,Ml=new Cesium.Cartesian3,kl=new Cesium.Cartesian3,Ol=new Cesium.HeadingPitchRoll,Tl=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.supportedMaps=["vcs.vcm.maps.Cesium"],n._translationModelMeta=e.modelMatrix||null,n.longitude=0,n.latitude=0,n.height=0,n.heading=0,n.pitch=0,n.roll=0,n.scale=1,n.usesCesiumRTC=!1,n._loadedResolve=function(){},n.loaded=new Promise((function(e){n._loadedResolve=e})),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningObjectTiled"}}]),Object(m["a"])(i,[{key:"getLayer",value:function(){return G.getInstance().getLayerByName(this._id)}},{key:"load",value:function(){var e=this,t=this.getLayer();t||(t=new Ba({name:this._id,url:this.url.toString()}),G.getInstance().addLayer(t));var i=this.visible?t.activate():t.initialize();return i.then((function(){var i=Cesium.Cartesian3.pack(t.cesium3DTileset.boundingSphere.center,new Array(3));i.some((function(e){return 0!==e}))&&Cesium.Matrix4.equals(t.cesium3DTileset.root.transform,Cesium.Matrix4.IDENTITY)&&(e.usesCesiumRTC=!0),e._translationModelMeta&&!e.usesCesiumRTC&&Cesium.Matrix4.unpack(e._translationModelMeta,0,t.cesium3DTileset.root.transform),e._setPositionFields(t.cesium3DTileset.boundingSphere.center,t.cesium3DTileset.root.transform),e._loadedResolve()}))}},{key:"_setPositionFields",value:function(e,t){var i=Cesium.Cartographic.fromCartesian(e,null,wl);i&&(this.longitude=Cesium.Math.toDegrees(i.longitude),this.latitude=Cesium.Math.toDegrees(i.latitude),this.height=i.height),this.usesCesiumRTC||(Cesium.Matrix4.getScale(t,Ml),this.scale=Ml.x,Cesium.Transforms.fixedFrameToHeadingPitchRoll(t,void 0,void 0,Ol),this.heading=Cesium.Math.toDegrees(Ol.heading),this.pitch=Cesium.Math.toDegrees(Ol.pitch),this.roll=Cesium.Math.toDegrees(Ol.roll))}},{key:"unload",value:function(){var e=this.getLayer();e&&e.deactivate()}},{key:"show",value:function(){this.getLayer()?(ye(Object(fe["a"])(i.prototype),"show",this).call(this),this.getLayer().activate()):Ll.warning("TilesetLayer for PlanningObjectTiled does not exists, check code")}},{key:"resetModelMatrix",value:function(){var e=this.getLayer();e&&e.initialized&&!this.usesCesiumRTC&&(Cesium.Cartesian3.fromDegrees(this.longitude,this.latitude,this.height,null,kl),Cesium.HeadingPitchRoll.fromDegrees(this.heading,this.pitch,this.roll,Ol),Cesium.Cartesian3.fromElements(this.scale,this.scale,this.scale,Ml),e.cesium3DTileset.root.transform=Cesium.Transforms.headingPitchRollToFixedFrame(kl,Ol),Cesium.Matrix4.multiplyByScale(e.cesium3DTileset.root.transform,Ml,e.cesium3DTileset.root.transform))}},{key:"isPlaced",value:function(){var e=this,t=[];return jo.forEach((function(i){var n=e[i];-1===t.indexOf(n)&&t.push(n)})),!(0===t[0]&&1===t[1]&&2===t.length)}},{key:"zoomTo",value:function(){var e=this.getLayer();if(e&&e.initialized){var t=G.getInstance().getActiveMap(),i=t.getViewPoint(),n=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(i.heading),Cesium.Math.toRadians(i.pitch<-45?i.pitch:-45),void 0);t.getScene().camera.flyToBoundingSphere(e.cesium3DTileset.boundingSphere,{duration:1,offset:n})}}},{key:"getDefinition",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getDefinition",this).call(this),t=this.getLayer();if(t&&t.initialized&&!this.usesCesiumRTC){var n=!t.cesium3DTileset.root.transform.equals(Cesium.Matrix4.IDENTITY);n&&(e.modelMatrix=Cesium.Matrix4.pack(t.cesium3DTileset.root.transform,new Array(16)))}return e}},{key:"destroy",value:function(){var e=this.getLayer();e&&e.dispose()}}]),i}(Co),Sl=Tl;O.PLANNING_INSTANCE_LOADED="PLANNING_INSTANCE_LOADED",O.PLANNING_INSTANCE_UNLOADED="PLANNING_INSTANCE_UNLOADED";var Cl=Pt(),jl=function(){function e(t){var i=this;Object(d["a"])(this,e),this.maintainLockInterval=null,this._id=t._id,this.name=t.name&&""!==t.name?t.name:"planning: ".concat(t._id),this.hiddenObjects=t.hiddenObjects?t.hiddenObjects:[],this.planningObjects=[],this.viewpoints=[],t.viewpoints&&t.viewpoints.length>0?this.viewpoints=t.viewpoints:t.viewpoint&&(t.viewpoint.default=!0,this.viewpoints.push(t.viewpoint)),this.flights=[],t.flights&&t.flights.forEach((function(e){var t=pl(e);i.flights.push(new bl(t))})),this.description=t.description?t.description:null,this.permissions=t.permissions||[],this.owner=t.created,this.lastUpdated=t.lastUpdated||null,this.public=t.public;var n=new Qa({allowPicking:!0,name:"_".concat(this._id,"_model")});G.getInstance().addLayer(n),this.layerName=n.name,this.sharedUsers=[],this.mapId=t.mapId,this.url=t.url,this.editorId=t.editorId,this.terrainUrl=t.terrainUrl,t.planningObjects&&t.planningObjects.forEach((function(e){i.addPlanningObject(e)})),this.loaded=!1,this.comments=new gl(this._id,this.url,this.permissions),this.properties=t.properties||{}}return Object(m["a"])(e,null,[{key:"className",get:function(){return"vcs.vcm.widgets.planning.PlanningInstance"}}]),Object(m["a"])(e,[{key:"load",value:function(e){var t=G.getInstance(),i=t.getLayerByName(this.layerName),n=t.getActiveMap();"vcs.vcm.maps.Cesium"===n.className&&(i.initialized||i.initialize(),i.activate()),Cl.hideObjects(this.hiddenObjects),this.planningObjects.forEach((function(e){e.handleMapChange(n),e.load()})),e||this.gotoViewpoint(),this.comments.load(),this.loaded=!0,t.publish(O.PLANNING_INSTANCE_LOADED,this)}},{key:"unLoad",value:function(){var e=G.getInstance(),t=e.getLayerByName(this.layerName);t.deactivate(),Cl.showObjects(this.hiddenObjects),this.planningObjects.forEach((function(e){e.unload()})),this.comments.unLoad(),this.loaded=!1,e.publish(O.PLANNING_INSTANCE_UNLOADED,this)}},{key:"handleMapChange",value:function(e){if(this.loaded){var t=G.getInstance().getLayerByName(this.layerName);"vcs.vcm.maps.Cesium"===e.className&&t.activate(),this.planningObjects.forEach((function(t){t.handleMapChange(e)}))}}},{key:"addPlanningObject",value:function(e){var t;return"geojson"===e.type&&(e.type="drawing"),"ready"!==e.status?(t="featureStore"===e.type?new il(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId,terrainUrl:this.terrainUrl},e)):new $o(Object.assign({planningInstanceId:this._id,serviceUrl:this.url},e)),"failed"!==t.status&&this.loaded&&t.load(),this.planningObjects.push(t)):"gltf"===e.type?(t=new Do(Object.assign({planningInstanceId:this._id,planningInstanceGltfLayerName:this.layerName,serviceUrl:this.url},e)),this.planningObjects.push(t)):"featureStore"===e.type?(t=new il(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId,terrainUrl:this.terrainUrl},e)),this.loaded&&!t.loaded&&t.load(),this.planningObjects.push(t)):"image"===e.type?(t=new Ao(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId},e)),this.loaded&&t.load(),this.planningObjects.push(t)):"tiled"===e.type?(t=new Sl(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId},e)),this.loaded&&t.load(),this.planningObjects.push(t)):"drawing"===e.type&&(t=new Zo(Object.assign({planningInstanceId:this._id,serviceUrl:this.url,editorId:this.editorId},e)),this.loaded&&!t.loaded&&t.load(),this.planningObjects.push(t)),t.initialize(),t}},{key:"updatePlanningObject",value:function(e){var t=this,i=this.url.clone();return q.a.post(i.extendPath("get-id").toString(),{id:this._id}).then((function(i){var n=i.data,r=t.planningObjects.findIndex((function(t){return t._id===e._id}));t.planningObjects.splice(r,1);var a=n.planningObjects.find((function(t){return t._id===e._id}));t.addPlanningObject(a)}))}},{key:"updatePlanningObjects",value:function(){var e=this,t=this.url.clone();return q.a.post(t.extendPath("get-id").toString(),{id:this._id}).then((function(t){var i=t.data;e.planningObjects.forEach((function(e){e.destroy()})),e.planningObjects.splice(0),i.planningObjects.forEach(e.addPlanningObject.bind(e))}))}},{key:"deletePlanningObject",value:function(e,t){var i=this;o(e,Co),l(t,Function);var n=this.planningObjects.findIndex((function(t){return t._id===e._id}));return this.planningObjects.splice(n,1),e.delete().then((function(){e.destroy(),t(null)})).catch((function(n){var r=e.getConfigObject();e.destroy(),i.addPlanningObject(r),t(n)}))}},{key:"lock",value:function(){var e=this,t=this.url.clone();return q.a.post(t.extendPath("lock").toString(),{_id:this._id}).then((function(){e.maintainLockInterval||(e.maintainLockInterval=setInterval(e.maintainLock.bind(e),1e5))}))}},{key:"maintainLock",value:function(){var e=this;this.lock().catch((function(){e.unlock()}))}},{key:"unlock",value:function(){this.maintainLockInterval&&clearInterval(this.maintainLockInterval),this.maintainLockInterval=null;var e=this.url.clone();return q.a.post(e.extendPath("unlock").toString(),{_id:this._id})}},{key:"save",value:function(){var e={_id:this._id,mapId:this.mapId,name:this.name,description:this.description,viewpoint:void 0,viewpoints:this.viewpoints,flights:this.flights.map((function(e){return yl(e,{asObject:!0})})),hiddenObjects:this.hiddenObjects},t=this.url.clone();return q.a.post(t.extendPath("update").toString(),e)}},{key:"getPlanningObjectDefinitions",value:function(){return Object.values(this.planningObjects).map((function(e){return e.getDefinition()}))}},{key:"addHiddenObject",value:function(e){return o(e,String),!this.hiddenObjects.includes(e)&&(Cl.hideObjects([e]),this.hiddenObjects.push(e),!0)}},{key:"removeHiddenObject",value:function(e){if(o(e,[String,Number]),this.hiddenObjects.includes(e)){Cl.showObjects([e]);var t=this.hiddenObjects.indexOf(e);return this.hiddenObjects.splice(t,1),!0}return!1}},{key:"destroy",value:function(){this.loaded&&this.unLoad();for(var e=0;e-1}},{key:"isLocked",value:function(){return null!==this.maintainLockInterval}},{key:"uploadNewModel",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(e,Object),o(t,{percentage:[Number,String,null]}),o(n,Object);var r={};t&&(r.onUploadProgress=function(e){t.percentage=Math.round(100*e.loaded/e.total)}),this.terrainUrl&&(n.terrain=n.terrain||this.terrainUrl),n.defaultProjection=G.getInstance().projection.epsg,e.append("converterOptions",JSON.stringify(n));var a=this.url.clone().extendPath("upload");return a.addQueryParams({planning_id:this._id}),q.a.post(a.toString(),e,r).then((function(e){var t=e.data,n=null;return t.planningObjects.forEach((function(e){var t=i.planningObjects.find((function(t){return t._id===e._id}));t||(n=i.addPlanningObject(e))})),n}))}},{key:"createFeatureStoreObject",value:function(){var e=this,t=this.url.clone().extendPath("feature-store","create");return t.addQueryParams({planningId:this._id}),q.a.post(t.toString()).then((function(t){var i=t.data;return e.addPlanningObject(i)}))}}]),e}(),El=jl,Il=i(116);function Dl(e,t){var i;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=Object(Il["a"])(e))||t&&e&&"number"===typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==i["return"]||i["return"]()}finally{if(o)throw a}}}}var Pl=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,{zPlane:!0}),n.editor=e,n._lastPosition=null,n._firstPosition=null,n._translationOptions={},n._defaultActive=re.DRAGEVENTS,n._defaultModificationKey=ne.ALT,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(this._lastPosition){var t=this.getPosition(e),i=t[0]-this._lastPosition[0],n=t[1]-this._lastPosition[1];e.type&re.DRAGEND?(this._translationOptions.dxTotal=t[0]-this._firstPosition[0],this._translationOptions.dyTotal=t[1]-this._firstPosition[1],this._translationOptions.isMoving=!1,this._translationOptions.toTransform=this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.GEOMETRY,this.editor.translate(this.editor.state.transformGeometryOnMove?i:this._translationOptions.dxTotal,this.editor.state.transformGeometryOnMove?n:this._translationOptions.dyTotal,this._translationOptions),this._lastPosition=null,this._firstPosition=null):e.type&re.DRAG?(this.editor.translate(i,n,this._translationOptions),this._lastPosition=t):this._lastPosition=null}else e.type&re.DRAGSTART&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.EDITABLE&&this.editor.features.has(e.feature.getId())&&(this.scene?(this.createPlane(e.positionOrPixel),this._lastPosition=this.getPosition(e),this._firstPosition=this.getPosition(e)):(this._lastPosition=e.positionOrPixel,this._firstPosition=e.positionOrPixel),this._translationOptions={toTransform:this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.VERTEX,isMoving:!0});return Promise.resolve(e)}}]),i}(mr),Al=Pl,xl=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,{zPlane:!0}),n.editor=e,n._defaultActive=re.DRAGEVENTS,n._defaultModificationKey=ne.SHIFT|ne.ALT,n._lastPosition=null,n._firstPosition=null,n.setActive(),n._scaleOptions={},n}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(this._lastPosition){var t=this.getPosition(e),i=t[0]-this._lastPosition[0],n=t[1]-this._lastPosition[1];e.type&re.DRAGEND?(this._scaleOptions.dxTotal=t[0]-this._firstPosition[0],this._scaleOptions.dyTotal=t[1]-this._firstPosition[1],this._scaleOptions.isMoving=!1,this._scaleOptions.toTransform=this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.GEOMETRY,this.editor.scale(this.editor.state.transformGeometryOnMove?i:this._scaleOptions.dxTotal,this.editor.state.transformGeometryOnMove?n:this._scaleOptions.dyTotal,this._scaleOptions),this._lastPosition=null,this._firstPosition=null):(this._lastPosition=t,this.editor.scale(i,n,this._scaleOptions))}else if(e.type&re.DRAGSTART&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.VERTEX){var r=e.feature.getGeometry().getCoordinates()[2]?e.feature.getGeometry().getCoordinates():e.positionOrPixel;this._scaleOptions={maintainAspectRatio:!!(e.key&ne.SHIFT),vertex:e.feature,toTransform:this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.VERTEX,isMoving:!0},this._lastPosition=r,this._firstPosition=r,this.scene&&this.createPlane(this._lastPosition)}return Promise.resolve(e)}}]),i}(mr),Yl=xl;function Nl(e,t,i){var n=e.x*t.y-e.y*t.x;return n>0?i:-1*i}var Fl=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,{zPlane:!0}),n.editor=e,n._defaultActive=re.DRAGEVENTS,n._defaultModificationKey=ne.CTRL,n._lastPosition=new Cesium.Cartesian2,n._firstPosition=new Cesium.Cartesian2,n._newPosition=new Cesium.Cartesian2,n._scratchCenter=new Cesium.Cartesian2,n._rotationOptions={},n._rotating=!1,n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(this._rotating){var t,i=this.getPosition(e);this._newPosition=Cesium.Cartesian2.fromElements(i[0],i[1],this._newPosition),this._newPosition=Cesium.Cartesian2.subtract(this._scratchCenter,this._newPosition,this._newPosition),e.type&re.DRAGEND?(this._rotationOptions.angleTotal=Nl(this._firstPosition,this._newPosition,Cesium.Cartesian2.angleBetween(this._firstPosition,this._newPosition)),this._rotationOptions.isMoving=!1,this._rotationOptions.toTransform=this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.GEOMETRY,t=this.editor.state.transformGeometryOnMove?Nl(this._lastPosition,this._newPosition,Cesium.Cartesian2.angleBetween(this._lastPosition,this._newPosition)):this._rotationOptions.angleTotal,this._rotating=!1):t=Nl(this._lastPosition,this._newPosition,Cesium.Cartesian2.angleBetween(this._lastPosition,this._newPosition)),this.editor.rotate(t,this._rotationOptions),this._lastPosition=this._newPosition.clone(this._lastPosition)}else if(e.type&re.DRAGSTART&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.VERTEX){var n=e.feature.getGeometry().getCoordinates()[2]?e.feature.getGeometry().getCoordinates():e.positionOrPixel;this.scene&&this.createPlane(n),this._scratchCenter=Cesium.Cartesian2.fromArray(ol.extent.getCenter(this.editor.extent),0,this._scratchCenter),this._firstPosition=Cesium.Cartesian2.fromArray(n,0,this._firstPosition),this._firstPosition=Cesium.Cartesian2.subtract(this._scratchCenter,this._firstPosition,this._firstPosition),this._lastPosition=this._firstPosition.clone(this._lastPosition),this._rotationOptions={toTransform:this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.VERTEX,isMoving:!0},this._rotating=!0}return Promise.resolve(e)}}]),i}(mr),Rl=Fl,Hl=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,{zPlane:!1}),n.editor=e,n._defaultActive=re.DRAGEVENTS,n._defaultModificationKey=ne.ALT|ne.SHIFT,n._lastHeight=null,n._firstHeight=null,n._isExtrusion=!1,n._heightOptions={},n.setActive(),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(this.scene)if(null!==this._lastHeight){var t,i=this.getPosition(e);e.type&(re.CLICK|re.DRAGEND)?(this._heightOptions.heightTotal=i[2]-this._firstHeight,this._heightOptions.isMoving=!1,this.editor.state.transformGeometryOnMove?t=i[2]-this._lastHeight:(this._heightOptions.toTransform=Wl.GEOMETRY,t=this._heightOptions.heightTotal),this._lastHeight=null,this._firstHeight=null):(t=i[2]-this._lastHeight,this._lastHeight=i[2]),this._isExtrusion?this.editor.extrude(t,i[2],this._heightOptions):this.editor.translateHeight(t,i[2],this._heightOptions)}else if(e.type&(re.DRAGSTART|re.CLICK)&&e.feature&&e.feature[this.editor.state.featureTypeSymbol]&cn.HEIGHTVERTEX){var n=e.feature.getGeometry().getCoordinates();this._lastHeight=n[2]||e.positionOrPixel[2],this._firstHeight=this._lastHeight,this._isExtrusion=!!(e.key&ne.SHIFT),this._heightOptions={toTransform:this.editor.state.transformGeometryOnMove?Wl.BOTH:Wl.VERTEX,isMoving:!0},this.createPlane(n)}return Promise.resolve(e)}}]),i}(mr),Gl=Hl,zl=i(676),Bl=i.n(zl),Vl=i(677),Ul=i.n(Vl),Wl={VERTEX:1,GEOMETRY:2,BOTH:0};Wl.BOTH=Wl.VERTEX|Wl.GEOMETRY;var ql=Symbol("isTransformation"),Jl=Symbol("isEmpty"),Kl=k.getLogger("vcs.vcm.util.editor.FeatureLayerEditor"),Zl=new ol.style.Icon({src:Bl.a,anchor:[.5,.8],scale:.6}),Ql=new ol.style.Style({image:Zl}),Xl={olcs_altitudeMode:"altitudeMode",olcs_skirt:"skirt",olcs_storeyHeight:"storeyHeight"};function $l(e){e instanceof Ut?Ql.setImage(Zl):Ql.setImage(null)}var ec=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(d["a"])(this,i),e=t.call(this,n),e.translateInteraction=new Al(Object(gt["a"])(e)),e.interactionChain.addInteraction(e.translateInteraction),e.scaleTransformation=new Yl(Object(gt["a"])(e)),e.interactionChain.addInteraction(e.scaleTransformation),e.rotationTransformation=new Rl(Object(gt["a"])(e)),e.interactionChain.addInteraction(e.rotationTransformation),e.heightTransformation=new Gl(Object(gt["a"])(e)),e.interactionChain.addInteraction(e.heightTransformation),e.selectFeatureInteraction.hasMultiSelect(),e.mouseOverInteraction.hasMultiSelect=!0,(null==n.allowSelectMode||n.allowSelectMode)&&e.state.allowedModes.push(Object.keys(un).find((function(e){return un[e]===ln.SELECT}))),e._scratchCenter=new Cesium.Cartesian2,e.flippedY=!1,e.flippedX=!1,e.heights={min:0,max:0,clamped:!0},e.extent=ol.extent.createEmpty(),e.geometry=e._createExtent(),e.feature=new ol.Feature({geometry:e.geometry}),e.feature[ql]=!0,e.feature[_n.doNotTransform]=!0,e.feature.set("olcs_altitudeMode",e.heights.clamped?"clampToGround":"absolute"),e.feature.setId("_transformationFeature"),e.vertices=[],e.style=new ol.style.Style({stroke:new ol.style.Stroke({color:"#444444",width:2}),image:new ol.style.Icon({src:Ul.a,scale:.45})}),e}return Object(m["a"])(i,[{key:"className",get:function(){return"vcs.vcm.util.editor.FeatureLayerEditor"}}]),Object(m["a"])(i,[{key:"onSelect",value:function(){this.state.mode&ln.FEATUREMODES&&this.state.active?this.recalculateExtent():this._clearGeometriesFromLayer()}},{key:"activate",value:function(){ye(Object(fe["a"])(i.prototype),"activate",this).call(this),$l(G.getInstance().getActiveMap())}},{key:"_createExtent",value:function(){var e=this,t=ol.extent.createEmpty(),i=-1/0,n=1/0,r=!0;this.features.forEach((function(a){var s=e.isOblique?a[_n.obliqueGeometry]:a.getGeometry();t=ol.extent.extend(t,s.getExtent());var o=a.get("olcs_altitudeMode");if(("clampToGround"===o||null==o&&"clampToGround"===e.activeLayer.altitudeMode)&&null==a.get("olcs_groundLevel"))n=n>0?0:n;else{r=!1;var l=mi(a,e.activeLayer.storeyHeight);i=l.max>i?l.max:i,n=l.min=0;a--)this.vertices[a].getGeometry().translate(e,t);r&Wl.GEOMETRY&&(this.feature.getGeometry().translate(e,t),this.features.forEach((function(i){n.isOblique?i[_n.obliqueGeometry].translate(e,t):i.getGeometry().translate(e,t)})))}},{key:"translateHeight",value:function(e,t,i){var n=this;this.state.altitudeMode&hn.CLAMP&&(this.state.altitudeMode=hn.ABSOLUTE);var r=i&&i.toTransform?i.toTransform:Wl.BOTH,a=!1;if(r&Wl.GEOMETRY&&(this.features.forEach((function(i){var r=i.get("olcs_altitudeMode");a=a||"clampToGround"===r||!r&&"clampToGround"===n.activeLayer.altitudeMode,i.set("olcs_altitudeMode","absolute",!0);var s=i.get("olcs_groundLevel");i.unset("olcs_groundLevel");var o=s&&(i.get("olcs_extrudedHeight")||i.get("olcs_storeyNumber")&&i.get("olcs_storeyHeight"));fi(i.getGeometry(),e,o?s+e:t,o)})),fi(this.geometry,e,t)),r&Wl.VERTEX){var s=this.vertices.length;while(s--)this.vertices[s].set("olcs_altitudeMode","absolute",!0),fi(this.vertices[s].getGeometry(),e,t)}this.heights.min+=e,this.heights.max+=e,a&&this.recalculateExtent(),this.heights.clamped=!1}},{key:"extrude",value:function(e,t,i){var n=this,r=i||{};this.state.altitudeMode&hn.CLAMP&&(this.state.altitudeMode=hn.ABSOLUTE);var a=r.toTransform||Wl.BOTH,s=[];if(a&Wl.GEOMETRY)this.features.forEach((function(i){var a=i.get("olcs_extrudedHeight"),o=i.get("olcs_altitudeMode"),l="absolute"===o||"absolute"===n.activeLayer.altitudeMode&&null==o||null!=i.get("olcs_groundLevel");if(!l){i.set("olcs_altitudeMode","absolute",!0);var c=gi(i);s.push(c)}if(null==a)r.setHeight?i.set("olcs_extrudedHeight",t):i.set("olcs_extrudedHeight",e);else{if(Array.isArray(a)){var u=a.length;if(r.setHeight)while(u--)a[u]=t;else while(u--)a[u]+=e}else null!=a&&(r.setHeight?a=t:a+=e);i.set("olcs_extrudedHeight",a)}})),this.recalculateExtent();else if(a&Wl.VERTEX){var o=this.vertices.length;while(o--)this.vertices[o].set("olcs_altitudeMode","absolute",!0),fi(this.vertices[o].getGeometry(),e,t)}return s.length?Promise.all(s).then((function(){n.recalculateExtent()})):Promise.resolve()}},{key:"placeOnTerrain",value:function(){var e=this,t=[];return this.features.forEach((function(e){t.push(gi(e))})),t.length?Promise.all(t).then((function(){e.recalculateExtent()})):Promise.resolve()}},{key:"setProperty",value:function(e,t,i){this.features.forEach((function(n){n.set(e,t,i)})),0===this.features.size&&Xl[e]&&(this.activeLayer[Xl[e]]=t),!i&&this.features.size&&this.recalculateExtent()}},{key:"unsetProperty",value:function(e,t){this.features.forEach((function(i){i.unset(e,t)})),0===this.features.size&&Xl[e]&&(this.activeLayer[Xl[e]]=void 0),!t&&this.features.size&&this.recalculateExtent()}},{key:"scale",value:function(e,t,i){var n=this,r=i||{},a=r.toTransform||Wl.BOTH,s=r.vertex||this.vertices[2],o=s[kr],l=s.getGeometry(),c=ol.extent.getSize(this.extent),u=t;if(r.maintainAspectRatio){var h=c[1]/c[0];h<1e3&&h>1e-4?(u=e*h,u=1===o||3===o?-u:u):r.maintainAspectRatio=!1}var d=[{dx:1,dy:3,across:2,flipY:!1,flipX:!1},{dx:0,dy:2,across:3,flipY:!0,flipX:!1},{dx:3,dy:1,across:0,flipY:!0,flipX:!0},{dx:2,dy:0,across:1,flipY:!1,flipX:!0}],m=d[o];if(a&Wl.VERTEX&&(l.translate(e,u),this.vertices[m.dx].getGeometry().translate(e,0),this.vertices[m.dy].getGeometry().translate(0,u),this.vertices[4].getGeometry().translate(e/2,u/2)),a&Wl.GEOMETRY){for(var f=this.vertices[m.across].getGeometry().getCoordinates(),g=l.getCoordinates(),y=f[1]-g[1]>0===m.flipY,p=f[0]-g[0]>0===m.flipX,v=[],_=0;_<4;_++)v[_]=this.vertices[_].getGeometry().getCoordinates();var b=ol.extent.boundingExtent(v),L=ol.extent.getSize(b),w=0!==c[0]?L[0]/c[0]:L[0],M=0!==c[1]?L[1]/c[1]:L[1];this.flippedY!==y&&(this.flippedY=y,M*=-1),this.flippedX!==p&&(this.flippedX=p,w*=-1),this.features.forEach((function(e){var t=n.isOblique?e[_n.obliqueGeometry]:e.getGeometry(),i=t.get("_vcsGeomType");!i||"bbox"!==i&&"rectangle"!==i||r.maintainAspectRatio||t.unset("_vcsGeomType",!0),t.scale(w,M,f)})),this.extent=b,this.feature.getGeometry().scale(w,M,f)}}},{key:"rotate",value:function(e,t){var i=this,n=t||{},r=n.toTransform||Wl.BOTH,a=ol.extent.getCenter(this.extent);if(r&Wl.VERTEX)for(var s=this.vertices.length-1;s>=0;s--)this.vertices[s].getGeometry().rotate(e,a);r&Wl.GEOMETRY&&(this.feature.getGeometry().rotate(e,a),this.features.forEach((function(t){var n=i.isOblique?t[_n.obliqueGeometry]:t.getGeometry();"bbox"===n.get("_vcsGeomType")&&n.set("_vcsGeomType","rectangle",!0),n.rotate(e,a)}))),n.isMoving||this.recalculateExtent()}},{key:"_clearGeometriesFromLayer",value:function(){var e=this.vertices.length,t=new Array(e+1);t[e]=this.feature.getId();while(e--)t[e]=this.vertices[e].getId();this.vertices.splice(0),this.scratchLayer.removeFeaturesById(t)}},{key:"recalculateExtent",value:function(){if(this.state.mode&ln.FEATUREMODES){var e=this._createExtent();if(this._clearGeometriesFromLayer(),e[Jl])return;this.geometry=e,this.feature.set("olcs_altitudeMode",this.heights.clamped?"clampToGround":"absolute",!0),this.feature.setGeometry(e),this.flippedY=!1,this.flippedX=!1,this.feature.setStyle(this.style),this._createVertices()}}},{key:"handleMapChange",value:function(e){$l(e),5===this.vertices.length&&this.vertices[4].changed(),ye(Object(fe["a"])(i.prototype),"handleMapChange",this).call(this,e)}}]),i}(Wo),tc=ec,ic=i(678),nc=i.n(ic),rc=k.getLogger("vcs.vcm.util.editor.GeometryLayerEditor"),ac=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(d["a"])(this,i),e=t.call(this,n),e.state.allowedGeometries=n.allowedGeometries||["Point","LineString","Polygon","BBox","Circle","Rectangle","Label"],e.lastFeatureType=null,(null==n.allowEditMode||n.allowEditMode)&&e.state.allowedModes.push(Object.keys(un).find((function(e){return un[e]===ln.EDIT}))),e.geometryEditor=null,e.defaultMode=un[n.defaultMode]||ln.CREATE,e.scratchLayer.setStyle(new ol.style.Style({image:new ol.style.Icon({src:nc.a,scale:.45})})),e.state.dedicatedFeatureStyle=n.dedicatedFeatureStyle,e}return Object(m["a"])(i,[{key:"className",get:function(){return"vcs.vcm.util.editor.GeometryLayerEditor"}}]),Object(m["a"])(i,[{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.isOblique&&(G.getInstance().getActiveMap().switchEnabled=!0)}},{key:"beforeSetMode",value:function(e){ye(Object(fe["a"])(i.prototype),"beforeSetMode",this).call(this,e),e&ln.GEOMETRYMODES||this.clearGeometryEditor()}},{key:"setMode",value:function(e){if(rc.debug("GeometryLayerEditor ".concat(e," ").concat(Object.keys(ln).find((function(t){return ln[t]===e})))),ye(Object(fe["a"])(i.prototype),"setMode",this).call(this,e),this.isOblique&&(G.getInstance().getActiveMap().switchEnabled=!(e&ln.GEOMETRYMODES)||0===this.features.size),e&ln.GEOMETRYMODES)if(this.geometryEditor)this.geometryEditor.validate()?(this.geometryEditor.setMode(e),this.geometryEditor.interactionChain.setActive(!0)):this.clearGeometryEditor();else if(this.features.size){var t=this.features.values().next().value;if(this.features.size>1)return void this.selectFeatureInteraction.selectFeature(t);this.editingFeature=t,this.editingFeature[this.state.featureTypeSymbol]|=cn.EDITING,this.geometryEditor=ga({parent:this,layer:this.activeLayer,geometry:this.isOblique?this.editingFeature[_n.obliqueGeometry]:this.editingFeature.getGeometry(),feature:this.editingFeature,onFinish:this._onCreationFinish.bind(this),onRemoved:this._onCreationFinish.bind(this)}),this.geometryEditor.initialize(),this.geometryEditor.setMode(e),this.interactionChain.addInteraction(this.geometryEditor.interactionChain)}}},{key:"setAltitudeMode",value:function(e){var t=this;return e&this.state.altitudeMode?Promise.resolve():ye(Object(fe["a"])(i.prototype),"setAltitudeMode",this).call(this,e).then((function(){t.geometryEditor&&t.geometryEditor.setAltitudeMode(e)}))}},{key:"createFeature",value:function(e,t,i){o(e,Object.keys(fa)),l(t,[String,Number]);var n=i||fa[e](),r=new ol.Feature({geometry:n});if(this._setFeatureEditable(r),this.state.altitudeMode!==this.state.defaultAltitudeMode){var a=this.state.altitudeMode!==hn.CLAMP&&G.getInstance().getActiveMap()instanceof Ut?"absolute":"clampToGround";r.set("olcs_altitudeMode",a)}else this.state.defaultAltitudeMode!==hn.ABSOLUTE||G.getInstance().getActiveMap()instanceof Ut||r.set("olcs_altitudeMode","clampToGround");if(this.state.classificationType!==this.state.defaultClassificationType&&r.set("olcs_classificationType",fn[this.state.classificationType]),t&&r.setId(t),this.lastFeatureType=e,this.state.layerName){var s=G.getInstance().getLayerByName(this.state.layerName);if(s&&s instanceof _n&&(t&&s.removeFeaturesById([t]),this.isOblique&&(n[_n.alreadyTransformedToImage]=!0),s.addFeatures([r]),this.state.dedicatedFeatureStyle||"Label"===e)){var c=s.defaultStyle instanceof dt?s.defaultStyle:mt;r[ut]=c.clone(new dt({name:r.getId().toString()})),r.setStyle(r[ut].style)}}return r}},{key:"setModeAndSelectFeature",value:function(e,t){this.getRootEditor().beforeSetMode(e),this.state.mode=e,this.selectFeatureInteraction.selectFeature(t)}},{key:"clearGeometryEditor",value:function(){if(this.editingFeature&&(this.editingFeature[this.state.featureTypeSymbol]^=cn.EDITING,this.editingFeature=null),this.geometryEditor){var e=this.geometryEditor.feature.getId();this.features.has(e)&&!this.geometryEditor.validate()&&this.selectFeatureInteraction.clearSelectionSet(!0),this.geometryEditor.stopCreation(),this.interactionChain.removeInteraction(this.geometryEditor.interactionChain),this.geometryEditor.destroy(),this.geometryEditor=null}}},{key:"onSelect",value:function(){if(this.clearGeometryEditor(),this.state.active){var e=this.state.mode;this.state.mode&ln.GEOMETRYMODES&&this.features.size>1&&this.parent?(e=ln.SELECT,this.getRootEditor().setMode(e)):e&ln.CREATE&&0===this.features.size?this._onCreationFinish():e&ln.GEOMETRYMODES&&this.getRootEditor().setMode(e)}}},{key:"_onCreationFinish",value:function(){if(this.state.mode===ln.CREATE&&this.defaultMode===ln.CREATE){var e=this.createFeature(this.lastFeatureType);this.setModeAndSelectFeature(this.state.mode,e)}else this.getRootEditor().setMode(this.defaultMode)}},{key:"convertEditingFeatureToPolygon",value:function(){if(this.editingFeature&&1===this.features.size){var e=this.isOblique?this.editingFeature[_n.obliqueGeometry]:this.editingFeature.getGeometry(),t=pi(e);this.isOblique&&(t[_n.alreadyTransformedToImage]=!0),this.editingFeature.setGeometry(t);var i=this.editingFeature;this.selectFeatureInteraction.clearSelectionSet(!0),this.selectFeatureInteraction.selectFeature(i)}}},{key:"setEditingFeatureTypeProperty",value:function(e,t){this.editingFeature&&1===this.features.size&&(this.editingFeature.set(e,t),this.selectFeatureInteraction.clearSelectionSet(!0),this.selectFeatureInteraction.selectFeature(this.editingFeature))}},{key:"handleMapChange",value:function(e){ye(Object(fe["a"])(i.prototype),"handleMapChange",this).call(this,e)}}]),i}(Wo),sc=ac,oc=window.localStorage,lc=k.getLogger("vcs.vcm.util.storage");function cc(){if(!oc)return!1;try{var e="__storage_test__";return oc.setItem(e,e),oc.removeItem(e),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==oc.length}}var uc=function(){function e(t){Object(d["a"])(this,e),this.namespace=t}return Object(m["a"])(e,[{key:"setItem",value:function(e,t){cc()?oc.setItem("".concat(this.namespace,".").concat(e),t):lc.warning("storage unavailable or full")}},{key:"getItem",value:function(e){return oc?oc.getItem("".concat(this.namespace,".").concat(e)):null}},{key:"removeItem",value:function(e){oc&&oc.removeItem("".concat(this.namespace,".").concat(e))}}]),e}(),hc=uc,dc=k.getLogger("vcs.vcm.util.editor.StyleLayerEditor"),mc=new hc("StyleLayerEditor"),fc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(d["a"])(this,i),e=t.call(this,n),e.icons=n.icons||[],e.customIcons=[],e.allowCustomIcons=n.allowCustomIcons||!1,e.storeCustomIcons=n.storeCustomIcons||!1,e.currentStyleOptions={text:null,fill:null,stroke:null,image:null},e.currentStyleItem=mt.clone(),!n.noDefaultIcons){var r=G.getInstance().libraryBasePath;e._fetchIcons("".concat(r,"images/editor/defaultIconsCategory.json"))}return n.iconLibraries&&n.iconLibraries.forEach(e._fetchIcons.bind(Object(gt["a"])(e))),e.allowCustomIcons&&e.storeCustomIcons&&cc()&&e._fetchCustomIcons(),e._syncOptions(mt.getOptions()),e}return Object(m["a"])(i,[{key:"className",get:function(){return"vcs.vcm.util.editor.StyleLayerEditor"}}]),Object(m["a"])(i,[{key:"_fetchIcons",value:function(e){var t=this;return q.a.get(e).then((function(i){var n=i.data,r=e.replace(/\/?[^/]+$/,"");Array.isArray(n)?n.forEach((function(e){if("string"===typeof e){var i=/^data/.test(e)?e:"".concat(r,"/").concat(e);t.icons.push({src:i})}else e.src="".concat(r,"/").concat(e.src),t.icons.push(e)})):dc.error("could not load icon library, content of ".concat(e," is not a JSONArray"))}))}},{key:"_fetchCustomIcons",value:function(){var e=this,t=mc.getItem("customIconIndex");t&&JSON.parse(t).forEach((function(t){var i=mc.getItem("".concat(t));i&&e.customIcons.push({src:i})}))}},{key:"readIconFromFile",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.allowCustomIcons?new Promise((function(n,r){var a=new FileReader;a.onloadend=function(){var e=a.result;if(t.customIcons.push(Object.assign(i,{src:e})),t.storeCustomIcons&&cc()){var r=JSON.parse(mc.getItem("customIconIndex")||"[]"),s=Object(u["c"])();r.push(s),mc.setItem("customIconIndex",JSON.stringify(r)),mc.setItem("".concat(s),e)}n()},a.onerror=r,a.readAsDataURL(e)})):(dc.warning("custom icons are not supported at this time"),Promise.resolve())}},{key:"deleteCustomIcon",value:function(e){if(this.storeCustomIcons){var t=JSON.parse(mc.getItem("customIconIndex")||"[]"),i=t.filter((function(t){var i=mc.getItem(t);return i!==e||(mc.removeItem(t),!1)}));mc.setItem("customIconIndex",JSON.stringify(i))}var n=this.customIcons.findIndex((function(t){return t.src===e}));n>-1&&this.customIcons.splice(n,1)}},{key:"addEditingLayer",value:function(e){ye(Object(fe["a"])(i.prototype),"addEditingLayer",this).call(this,e),this.onSelect()}},{key:"setMode",value:function(){this.onSelect()}},{key:"onSelect",value:function(){if(this.activeLayer){this.state.isDeclarativeStyle=!1;var e=this.activeLayer.style;if(e instanceof Ct&&(this.state.isDeclarativeStyle=!0,e=null),!this.state.isDeclarativeStyle&&this.features.size){var t=this.features.get(this.state.selectedFeatureId);e=t[ut]||e}this.state.isLayerStyle=this.activeLayer.style===e,e?this.currentStyleItem&&this.currentStyleItem===e||(this.currentStyleItem=e,this._syncOptions(e.getOptions())):(this.currentStyleOptions.text=null,this.currentStyleOptions.fill=null,this.currentStyleOptions.stroke=null,this.currentStyleOptions.image=null,this.currentStyleItem=null)}}},{key:"setLayerStyle",value:function(e){this.activeLayer.setStyle(e||this.activeLayer.defaultStyle),this.onSelect()}},{key:"_syncOptions",value:function(e){e.fill?(this.currentStyleOptions.fill?this.currentStyleOptions.fill.color=e.fill.color:(e.fill.pattern||(e.fill.pattern=null),this.currentStyleOptions.fill=e.fill),e.fill.pattern&&this.currentStyleOptions.fill.pattern?Object.assign(this.currentStyleOptions.fill.pattern,e.fill.pattern):this.currentStyleOptions.fill.pattern={type:0,color:[0,0,0,1],width:1,size:10}):this.currentStyleOptions.fill=null,this.currentStyleOptions.stroke=e.stroke||null,e.text?(this.currentStyleOptions.text=e.text,this.currentStyleOptions.text.font=Ue(e.text.font||"18px sans-serif")):this.currentStyleOptions.text=null,e.image?(this.currentStyleOptions.image=e.image,this.currentStyleOptions.image.currentImage=e.image.radius?this.currentStyleItem.image.getImage(1).toDataURL():e.image.src):this.currentStyleOptions.image=null}},{key:"addDedicatedStyleFromCurrentStyle",value:function(){var e,t=this;!this.state.isDeclarativeStyle&&this.features.size&&(this.features.forEach((function(i){var n=t.currentStyleItem.clone(new dt({id:i.getId()}));e||(e=n),i[ut]=n,i.setStyle(i[ut].style),i.changed()})),this.currentStyleItem=e,this.state.isLayerStyle=!1)}},{key:"cloneCurrentStyleOntoLayer",value:function(){var e=this.currentStyleItem.clone();this.activeLayer.setStyle(e),this.currentStyleItem=e}},{key:"updateFont",value:function(e){this.currentStyleItem.text||(this.currentStyleItem.text=new ol.style.Text);var t=We(e);this.currentStyleItem.text.setFont(t),this.currentStyleOptions.text||(this.currentStyleOptions.text={}),this.currentStyleOptions.text.font?Object.assign(this.currentStyleOptions.text.font,e):this.currentStyleOptions.text.font=e}},{key:"setImage",value:function(e){var t,i=Object.assign({},e);t=i.radius?rt(i):new ol.style.Icon(i),this.currentStyleItem.image=t;var n=this.currentStyleItem.getOptions({image:!0});n.image?(this.currentStyleOptions.image=n.image,this.currentStyleOptions.image.currentImage=this.currentStyleOptions.image.src||this.currentStyleItem.image.getImage(1).toDataURL()):this.currentStyleOptions.image=null}},{key:"updateStyle",value:function(e){var t=this;this.features.size&&this.currentStyleItem&&this.features.forEach((function(e){if(!e[ut]||e[ut].name!==t.currentStyleItem.name){var i=e[ut];i?t.currentStyleItem.clone(i):e[ut]=t.currentStyleItem.clone(new dt({id:e.getId()})),e.setStyle(e[ut].style)}e.changed()})),e&&this._syncOptions(this.currentStyleItem.getOptions())}},{key:"updateStyleSection",value:function(e,t){var i=this;o(e,["fill","stroke","text","image"]),this.features.size&&this.currentStyleItem&&this.features.forEach((function(n){n[ut]||(n[ut]=i.activeLayer.style.clone(new dt({id:n.getId()})),n.setStyle(n[ut].style)),n[ut].name!==i.currentStyleItem.name&&("fill"===e?(n[ut].fillColor=i.currentStyleItem.fillColor.slice(),n[ut].pattern=i.currentStyleItem.pattern?Object.assign({},i.currentStyleItem.pattern):void 0):n[ut][e]=i.currentStyleItem[e].clone()),t||n.changed()}))}}]),i}(Wo),gc=fc,yc=k.getLogger("vcs.vcm.util.editor.CompositeLayerEditor"),pc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;if(Object(d["a"])(this,i),n=t.call(this,e),n.children=[],e.featureLayerEditor&&n.children.push(new tc(Object.assign(e.featureLayerEditor,{parent:Object(gt["a"])(n)}))),e.geometryLayerEditor){var r=Object.assign(e.geometryLayerEditor,{parent:Object(gt["a"])(n)});r.dedicatedFeatureStyle=!(null!=r.dedicatedFeatureStyle||!e.styleLayerEditor),n.children.push(new sc(r))}return e.styleLayerEditor&&n.children.push(new gc(Object.assign(e.styleLayerEditor,{parent:Object(gt["a"])(n)}))),n}return Object(m["a"])(i,[{key:"className",get:function(){return"vcs.vcm.util.editor.CompositeLayerEditor"}}]),Object(m["a"])(i,[{key:"getFeatureLayerEditor",value:function(){return this.children.find((function(e){return e instanceof tc}))}},{key:"getGeometryLayerEditor",value:function(){return this.children.find((function(e){return e instanceof sc}))}},{key:"getStyleLayerEditor",value:function(){return this.children.find((function(e){return e instanceof gc}))}},{key:"initialize",value:function(){this.interactionChain.initialize(),this.children.forEach((function(e){e.initialize()})),this.selectFeatureInteraction.onCesiumSelect(this.onCesiumSelect.bind(this))}},{key:"activate",value:function(){this.children.forEach((function(e){e.activate()})),ye(Object(fe["a"])(i.prototype),"activate",this).call(this)}},{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.children.forEach((function(e){e.deactivate()}))}},{key:"beforeSetMode",value:function(e){ye(Object(fe["a"])(i.prototype),"beforeSetMode",this).call(this),this.children.forEach((function(t){t.beforeSetMode(e)}))}},{key:"setMode",value:function(e){yc.debug("CompositeLayerEditor ".concat(e," ").concat(Object.keys(ln).find((function(t){return ln[t]===e})))),ye(Object(fe["a"])(i.prototype),"setMode",this).call(this,e),this.children.forEach((function(t){t.setMode(e)}))}},{key:"setAltitudeMode",value:function(e){var t=this,n=Promise.resolve();return this.children.forEach((function(t){n=n.then((function(){return t.setAltitudeMode(e)}))})),n.then((function(){return ye(Object(fe["a"])(i.prototype),"setAltitudeMode",t).call(t,e)}))}},{key:"addEditingLayer",value:function(e){ye(Object(fe["a"])(i.prototype),"addEditingLayer",this).call(this,e),this.children.forEach((function(t){t.addEditingLayer(e)}))}},{key:"destroy",value:function(){ye(Object(fe["a"])(i.prototype),"destroy",this).call(this),this.children.forEach((function(e){e.destroy()}))}}]),i}(Wo),vc=pc,_c=(i(668),"
\n

<%= obj.planningName %>

\n
\n <%= obj.planningDescription %>\n
\n
\n \n
\n
\n
\n
\n"),bc="
\n
\n

Available Attributes

\n <% for (var key in obj) { %>\n <% if (obj[key] instanceof Object){%>\n <% for (var key2 in obj[key]) { %>\n

<%=key%>.<%=key2%> : <%=obj[key][key2]%>

\n <% } %>\n <% } else{ %>\n

<%=key%> : <%=obj[key]%>

\n <% } %>\n <% } %>\n
\n
\n \n
\n
\n
\n
\n",Lc=[{title:{de:"Leerer Balloon",en:"Empty Balloon"},template:""},{title:{de:"Ebenen Name & Beschreibung",en:"Layer Name & Description"},template:_c.trim()},{title:{de:"Alle Attribute",en:"All Properties"},template:bc.trim()}],wc=Lc;O.PLANNINGINSTANCES_CHANGED="PLANNINGINSTANCES_CHANGED";var Mc,kc,Oc,Tc,Sc,Cc,jc=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r,s=i.getDefaultOptions();(n.serviceUrl=e.serviceUrl||"https://planning.virtualcityplanner.de",n.scenarioId=e.scenarioId,n.projectId=e.projectId,n.useLocalCRS=Object(u["e"])(e.useLocalCRS,s.useLocalCRS),n.showInLegend=Object(u["e"])(e.showInLegend,s.showInLegend),n.legendTitle=e.legendTitle||s.legendTitle,n.loginManager=cl.getInstance(),n.url=a["a"].parse(n.serviceUrl),n.url.extendPath("planning"),n.loginManager.registerWidget({onLogin:[n.fetchUserPlannings.bind(Object(gt["a"])(n)),n.fetchUserCreate.bind(Object(gt["a"])(n))],onLogout:[n.fetchUserPlannings.bind(Object(gt["a"])(n))],beforeLogout:[n.clear.bind(Object(gt["a"])(n)),n.setUserMayCreate.bind(Object(gt["a"])(n),{data:!1})],serviceUrl:n.serviceUrl,projectId:n.projectId,scenarioId:n.scenarioId}).then((function(){n.url=n.loginManager.url.clone(),n.url.extendPath("planning"),n.url.queryParams=n.loginManager.url.queryParams})).catch((function(e){n.logger.warning(e.message),n.logger.warning("could not initialize planning, missing login url")})),n.planningInstances=[],n.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers"],n._linkedPlannings=[],n.activePlanningInstance=null,n.userMayCreate={permission:!1},n.fetching=null,n.legendCluster=new Vs({title:n.legendTitle}),n.commentIcons=n._setupCommentStyle(e.commentIcons),n.terrainUrl=e.terrainUrl||null,n.useDefaultTerrain=Object(u["e"])(e.useDefaultTerrain,s.useDefaultTerrain),n.allowBalloonEditor=Object(u["e"])(e.allowBalloonEditor,s.allowBalloonEditor),n.predefinedBalloons=wc,Array.isArray(e.predefinedBalloons))&&(r=n.predefinedBalloons).push.apply(r,Object(g["a"])(e.predefinedBalloons));return n.editorOptions=Object.assign(e.editorOptions||{},{hideExport:!0,showStyleSelector:Object(u["e"])(e.showStyleSelector,s.showStyleSelector)}),n.allowedFeatureStoreGeometries=e.allowedFeatureStoreGeometries,n.featureStoreEditorDefaultMode=e.featureStoreEditorDefaultMode||s.featureStoreEditorDefaultMode,n.simpleEditorUi=Object(u["e"])(e.simpleEditorUi,s.simpleEditorUi),n.allowEditorSwitch=Object(u["e"])(e.allowEditorSwitch,s.allowEditorSwitch),n.isExtendedPlanner=Object(u["e"])(e.isExtendedPlanner,s.isExtendedPlanner),n.styleLayerEditorOptions=e.styleLayerEditorOptions||s.styleLayerEditorOptions,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{serviceUrl:"",scenarioId:"",projectId:"",useLocalCRS:!1,showInLegend:!0,legendTitle:{en:"Plannings",de:"Planungen",pl:"Planowanie"},commentIcons:void 0,useDefaultTerrain:!0,allowBalloonEditor:!1,predefinedBalloons:void 0,editorOptions:void 0,styleLayerEditorOptions:{},showStyleSelector:!1,allowedFeatureStoreGeometries:void 0,featureStoreEditorDefaultMode:"create",simpleEditorUi:!1,allowEditorSwitch:!1,isExtendedPlanner:!1})}},{key:"className",get:function(){return"vcs.vcm.widgets.Planning"}}]),Object(m["a"])(i,[{key:"_setupCommentStyle",value:function(e){var t;if(this.framework.getStyleByName("planningCommentStyle"))return{};var i=this.framework.libraryBasePath,n=e||(t={},Object(U["a"])(t,ml.DEFAULT,"".concat(i,"images/editor/icon-bubble.png")),Object(U["a"])(t,ml.WARNING,"".concat(i,"images/editor/icon-bubble-red.png")),Object(U["a"])(t,ml.INFO,"".concat(i,"images/editor/icon-bubble-blue.png")),Object(U["a"])(t,ml.SUCCESS,"".concat(i,"images/editor/icon-bubble-green.png")),t),r={strokeColor:'color("#AAAAAA")'};if("string"===typeof n)r.image='"'.concat(n,'"');else{var a=Object.values(ml),s=[];Object.entries(n).forEach((function(e){var t=Object(Oe["a"])(e,2),i=t[0],n=t[1];a.includes(i)&&i!==ml.DEFAULT&&s.push(['${commentType} === "'.concat(i,'"'),'"'.concat(n,'"')])})),n[ml.DEFAULT]=n[ml.DEFAULT]||"".concat(i,"images/editor/icon-bubble.png"),s.push(["true",'"'.concat(n[ml.DEFAULT],'"')]),r.image={conditions:s},a.forEach((function(e){n[e]||(n[e]=n[ml.DEFAULT])}))}var o=new Ct({name:"planningCommentStyle",declarativeStyle:r});return o.cesiumStyle.ready?(this.framework.addStyle(o),"string"===typeof n?{}:n):(this.logger.warning("could not setup custom comment style, using default"),this._setupCommentStyle())}},{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;if(this.layerEditor=new vc({geometryLayerEditor:{allowedGeometries:this.allowedFeatureStoreGeometries,defaultMode:this.featureStoreEditorDefaultMode},featureLayerEditor:{},styleLayerEditor:this.styleLayerEditorOptions}),this.layerEditor.initialize(),this.commentsLayerEditor=new vc({geometryLayerEditor:{allowedGeometries:["Point"],defaultMode:"edit"},styleLayerEditor:{}}),this.useDefaultTerrain&&!this.terrainUrl){var t=this.framework.getLayers().find((function(e){return e.activeOnStartup&&e instanceof is}));this.terrainUrl=t?t.url:null}if(this.terrainUrl&&!/https?:/.test(this.terrainUrl)){var n=a["a"].parse(window.location.href);n.queryParams={},n.hashPath=[],/^\//.test(this.terrainUrl)?(n.path=[],this.terrainUrl="".concat(n.toString()).concat(this.terrainUrl)):this.terrainUrl="".concat(n.toString().replace(/\/$/,""),"/").concat(this.terrainUrl.replace(/^\.\//,""))}if(this.fetchUserPlannings(),this.showInLegend&&(this.legendCluster=mo(),!this.legendCluster)){this.legendCluster=new Vs({title:this.legendTitle});var r=this.framework.getWidgetByType("vcs.vcm.widgets.legend.Legend");r&&r.cluster.push(this.legendCluster)}this.initialized=!0,this.initializedFinished()}return!0}},{key:"handleMapChangeEvent",value:function(e){ye(Object(fe["a"])(i.prototype),"handleMapChangeEvent",this).call(this,e),-1===this.supportedMaps.indexOf(e.className)?this.legendCluster.visible=!1:this.legendCluster.visible=!0,this.planningInstances.forEach((function(t){t.handleMapChange(e)}))}},{key:"fetchUserCreate",value:function(){var e=this.url.clone();q.a.post(e.extendPath("permission").toString(),{mapId:this.scenarioId}).then(this.setUserMayCreate.bind(this))}},{key:"setUserMayCreate",value:function(e){null!==e.data&&(this.userMayCreate.permission=e.data)}},{key:"fetchUserPlannings",value:function(){var e=this,t=this.url.clone();this.fetching=q.a.post(t.extendPath("list").toString(),{mapId:this.scenarioId}).then(this.setPlannings.bind(this)).catch((function(t){e.logger.error(t)}))}},{key:"setPlannings",value:function(e){var t=this;this.clear().then((function(){var i=e.data;i.forEach(t.createPlanningInstance,t),t._linkedPlannings=[],t.fetching=null,t.framework.publish(O.PLANNINGINSTANCES_CHANGED,t.planningInstances)}))}},{key:"setActivePlanning",value:function(e){if(o(e,El),this.activePlanningInstance){if(this.activePlanningInstance._id===e._id)return;this.activePlanningInstance.maintainLockInterval&&this.activePlanningInstance.unlock(),this.activePlanningInstance.unLoad()}this.activePlanningInstance=e,this.activePlanningInstance&&this.activePlanningInstance.load()}},{key:"deactivateActivePlanning",value:function(){this.activePlanningInstance&&(this.activePlanningInstance.maintainLockInterval&&this.activePlanningInstance.unlock(),this.activePlanningInstance.unLoad()),this.activePlanningInstance=null}},{key:"createPlanningInstance",value:function(e){e.url=this.url;var t=new El(Object.assign(e,{editorId:this.layerEditor.id,commentsEditorId:this.commentsLayerEditor.id,terrainUrl:this.terrainUrl}));return this._linkedPlannings.indexOf(e._id)>-1&&e.public&&t.load(),this.planningInstances.push(t),this.legendCluster.children.push(new oo({planningInstance:t})),this.legendCluster.visible=!0,t}},{key:"addPlanningInstance",value:function(e,t,i){var n=this;o(e,String),l(t,String),l(i,Object);var r={name:e,description:t,mapId:this.scenarioId};i&&(r.properties=i);var a=this.url.clone();return q.a.post(a.extendPath("add").toString(),r).then((function(e){var t=e.data,i=n.createPlanningInstance(t);return n.framework.publish(O.PLANNINGINSTANCES_CHANGED,n.planningInstances),i})).catch((function(e){n.logger.warning(e.response.data)}))}},{key:"deletePlanning",value:function(e){var t=this;o(e,El);var i=this.url.clone();return q.a.post(i.extendPath("remove").toString(),{_id:e._id}).then((function(){var i=t.planningInstances.findIndex((function(t){return t._id===e._id}));t.planningInstances.splice(i,1),t.activePlanningInstance&&t.activePlanningInstance._id===e._id&&(t.activePlanningInstance=null);var n=t.legendCluster.children.findIndex((function(t){return t instanceof oo&&t.planningInstance._id===e._id}));return t.legendCluster.children.splice(n,1),e.destroy(),t.framework.publish(O.PLANNINGINSTANCES_CHANGED,t.planningInstances),e._id}))}},{key:"clear",value:function(){var e=this,t=this.planningInstances.map((function(t){return t.destroy().then((function(){return Promise.resolve()})).catch((function(){return e.logger.error("could not unlock planning instance".concat(t.name)),Promise.resolve()}))}));return Promise.all(t).then((function(){return e.planningInstances.splice(0),e.activePlanningInstance=null,e.legendCluster.children.splice(0),e.legendCluster.visible=!1,Promise.resolve()}))}},{key:"getConfigObject",value:function(){return{useLocalCRS:this.useLocalCRS}}},{key:"handleURLParameter",value:function(e){var t=this;e.plannings&&Array.isArray(e.plannings)&&this.framework.subscribeOnce("PLANNINGINSTANCES_CHANGED",(function(){t.planningInstances.filter((function(t){return e.plannings.includes(t._id)})).forEach((function(e){e.load()}))}))}},{key:"getLink",value:function(e){var t=this.planningInstances.filter((function(e){return e.public&&e.loaded})).map((function(e){return e._id}));e.queryParams.plannings&&delete e.queryParams.plannings,t.length>0&&e.addQueryParams({plannings:JSON.stringify(t)})}}]),i}(Ys),Ec=jc,Ic=function(){function e(t,i,n){Object(d["a"])(this,e),this.id=t,this.symbol=i,this.openlayersFilter=n}return Object(m["a"])(e,[{key:"getId",value:function(){return this.id}},{key:"getOpenlayersFilter",value:function(){return this.openlayersFilter}}]),e}(),Dc={IS_NULL:new Ic("IS_NULL","isNull",ol.format.filter.isNull),EQUAL_TO:new Ic("EQUAL_TO"," = ",ol.format.filter.EqualTo),NOT_EQUAL_TO:new Ic("NOT_EQUAL_TO"," != ",ol.format.filter.NotEqualTo),LESS_THAN:new Ic("LESS_THAN"," < ",ol.format.filter.LessThan),GREATER_THAN:new Ic("GREATER_THAN"," > ",ol.format.filter.GreaterThan),LESS_THAN_OR_EQUAL_TO:new Ic("LESS_THAN_OR_EQUAL_TO"," <= ",ol.format.filter.LessThanOrEqualTo),GREATER_THAN_OR_EQUAL_TO:new Ic("GREATER_THAN_OR_EQUAL_TO"," >= ",ol.format.filter.GreaterThanOrEqualTo),LIKE:new Ic("LIKE","like",ol.format.filter.IsLike),BETWEEN:new Ic("BETWEEN","between",ol.format.filter.IsBetween),BBOX:new Ic("BBOX","bbox",ol.format.filter.Bbox),INTERSECTS:new Ic("INTERSECTS","intersects",ol.format.filter.Intersects),DWITHIN:new Ic("DWITHIN","distance within",ol.format.filter.DWithin),WITHIN:new Ic("WITHIN","within",ol.format.filter.Within),AND:new Ic("AND","and",ol.format.filter.and),OR:new Ic("OR","or",ol.format.filter.or)},Pc=Ic,Ac=k.getLogger("vcs.vcm.cityGML.property.Property"),xc={GEOMETRY:0,ATTRIBUTE:1,GENERICATTRIBUTE:2,GENERICDATEATTRIBUTE:3,DATEATTRIBUTE:4,DATEYEARATTRIBUTE:5,FILTER:6},Yc={GEOMETRY:0,STRING:1,DOUBLE:2,INTEGER:3,BOOLEAN:4,DATE:5,DATETIME:6,FILTER:7},Nc=function(){function e(t,i,n,r,a,s,o){Object(d["a"])(this,e),this.id=t,this.type=n,this.dataType=o,this.allowedComparisons=[],this.prefix=s,this.valueReference=r||"".concat(s,":").concat(this.id);for(var l=0;l0){var e=ol.extent.createEmpty();this.foundFeatures.forEach((function(t){t.children&&t.children.forEach((function(t){"_3"===t.type&&(e=ol.extent.extend(e,t.attributes.extent))}))}));var t=ol.proj.getTransform(this.framework.projection.proj,ol.proj.get("EPSG:4326"));e=ol.extent.applyTransform(e,t);var i=ke.createViewPointFromExtent(e);this.framework.getActiveMap().gotoViewPoint(i)}}},{key:"zoomToFeature",value:function(e){var t=ol.extent.createEmpty();e.children&&e.children.forEach((function(e){"_3"===e.type&&(t=ol.extent.extend(t,e.attributes.extent))}));var i=ol.proj.getTransform(this.framework.projection.proj,ol.proj.get("EPSG:4326"));t=ol.extent.applyTransform(t,i);var n=ke.createViewPointFromExtent(t);this.framework.getActiveMap().gotoViewPoint(n)}},{key:"clear",value:function(){var e=this.framework.getSelectBehavior();e.clearSelectionSet(),this.foundFeatures.splice(0)}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.allFeatureTypes=this.allFeatureTypes,e.allProperties=this.allProperties,e.allLogicalRelations=this.allLogicalRelations,e.allSpatialFilters=this.allSpatialFilters,e.freeQueries=this.freeQueriesOption,e.predefinedQueries=this.predefinedQueries,e.maximumLevel=this.maximumLevel,e.wfs={maxFeatures:this.wfs.maxFeatures},e.showDownload=this.showDownload,e}}]),i}(Ys),Qh=Zh,Xh=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.middleware=e.middleware||[],n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return{middleware:void 0}}}]),Object(m["a"])(i,[{key:"initialize",value:function(){}},{key:"search",value:function(e,t,i){}}]),i}(ve),$h=Xh,ed=k.getLogger("vcs.vcm.widgets.search.Nominatim"),td=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions(),s=e.url||r.url;return n.url=a["a"].parse(s),n.city=e.city||null,n.state=e.state||null,n.countrycode=e.countrycode||r.countrycode,n.extent=e.extent?new De(e.extent):null,n.limit=e.limit||r.limit,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},$h.getDefaultOptions()),{},{type:i.className,url:"https://nominatim.openstreetmap.org/search",city:void 0,state:void 0,countrycode:"de",extent:void 0,limit:20})}},{key:"className",get:function(){return"vcs.vcm.widgets.search.Nominatim"}}]),Object(m["a"])(i,[{key:"search",value:function(e,t,n){var r=this.url.clone(),a={q:e,countrycodes:this.countrycode,format:"json",polygon_geojson:1,addressdetails:1,limit:this.limit};this.city&&(a.q+=",".concat(this.city)),this.state&&(a.q+=",".concat(this.state)),this.extent&&(a.viewbox=this.extent.getCoordinatesInProjection($).join(","),a.bounded=1),r.addQueryParams(a),q.a.get(r.toString()).then((function(e){var t=i.handleSearchResults(e);n(t)})).catch((function(){ed.error("got an error from the server"),n([])}))}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return Object.assign({},e,{url:this.url.toString(),city:this.city,state:this.state,countrycode:this.countrycode,extent:this.extent?this.extent.getConfigObject():null,limit:this.limit})}}],[{key:"handleSearchResults",value:function(e){var t=e.data;return t.map((function(e){return e.point=[Number(e.lon),Number(e.lat)],e.geojson?e.type="geojson":e.type="point",e}))}}]),i}($h),id=td,nd={NEVER:0,MOBILE:1,DESKTOP:2,ALWAYS:3};function rd(e,t){if(e){var i=e.toUpperCase();return null!=nd[i]?nd[i]:t}return t}var ad,sd,od,ld,cd,ud=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions(),a=new dt(r.style);return n.vectorLayer=new _n({name:"_locatorVector",altitudeMode:"clampToGround",classificationType:e.classificationType||r.classificationType,allowPicking:!1,heightAboveGround:2,projection:{epsg:"EPSG:4326"},style:e.style?a.assign(new dt(e.style)):a}),n.show=rd(e.show,nd[r.show.toUpperCase()]),n.showInToolbox=rd(e.showInToolbox,nd[r.showInToolbox.toUpperCase()]),n.tracker=null,n.flatError=0,n.zoomDistance=Object(u["g"])(e.zoomDistance,r.zoomDistance),n.locatorExtrusion=!1!==e.extrusion&&Object(u["h"])(e.extrusion,r.extrusion),n.values={locatorVisibility:!1},n._pickingTerrain=!1,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{classificationType:"both",style:{fill:{color:[85,110,255,.4]},stroke:{color:[0,0,0,1],width:1.25},image:{fill:{color:[255,255,255,1]},stroke:{color:[0,0,0,1],width:1},radius:5}},show:"always",showInToolbox:"mobile",zoomDistance:1e3,extrusion:80})}},{key:"className",get:function(){return"vcs.vcm.widgets.Locator"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;if(!this.initialized){var t=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!t)return!1;var n=i.testForApi();if(!n)return this.logger.warning("Locator Widget is not supported"),!1;this.framework.addLayer(this.vectorLayer),this.locatorPoint=new ol.Feature({geometry:new ol.geom.Point([0,0,0],"XYZ"),heading:!1}),this.locatorExtrusion&&this.locatorPoint.set("olcs_extrudedHeight",this.locatorExtrusion),this.errorCircle=new ol.Feature({geometry:new ol.geom.Circle([0,0],5e3)}),this.vectorLayer.addFeatures([this.locatorPoint,this.errorCircle]),this.framework.subscribe("MAP_ACTIVATED",(function(t){"vcs.vcm.maps.Cesium"===t.className&&e.tracker&&e._placeLocatorOnTerrain()})),this.initialized=!0,this.initializedFinished()}return!0}},{key:"locatorClicked",value:function(){if(null===this.tracker)this.tracker=navigator.geolocation.watchPosition(this.trackLocator.bind(this),this.handleError.bind(this));else if(this.locatorInsideView())this.toggleVisibility(),navigator.geolocation.clearWatch(this.tracker),this.tracker=null;else{var e=this.locatorPoint.getGeometry().getCoordinates(),t=X.mercatorToWgs84(e);this.goToLocator(null,{coords:{longitude:t[0],latitude:t[1]}})}}},{key:"toggleVisibility",value:function(){this.values.locatorVisibility=!this.values.locatorVisibility,this.values.locatorVisibility?this.vectorLayer.activate():this.vectorLayer.deactivate()}},{key:"goToLocator",value:function(e,t){var i=this.framework.getActiveMap().getViewPoint();i.animate=!0,i.cameraPosition=null,i.groundPosition=[t.coords.longitude,t.coords.latitude],null!=e&&(i.distance=e),this.framework.getActiveMap().gotoViewPoint(i,1,0)}},{key:"trackLocator",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i,n,r,a,s,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._pickingTerrain){e.next=2;break}return e.abrupt("return");case 2:if(i=function(e){var t=ol.geom.Polygon.circular(new ol.Sphere(6378137),e,o.flatError,128);t.applyTransform((function(e,t,i){for(var n=e.length,r=0;r0){var r=i.hits.hits;n=r.map((function(e){return Object.assign(e._source,{type:e._type})}))}}catch(a){}e(n)}}},{key:"parseSearchQuery",value:function(e,t){var i,n={},r=t.hasOwnProperty("filter"),a=t.hasOwnProperty("function")||t.decayByLocation,s=t.hasOwnProperty("rescore");if(t.hasOwnProperty("values")&&Object.assign(n,this.makeTemplateValues(e,t.values)),r&&a){if(t.hasOwnProperty("function")&&t.decayByLocation){var o=this.getDecayByLocation();l=t.functions.concat(o)}else l=t.hasOwnProperty("function")?t.function:this.getDecayByLocation();i={query:{filtered:{query:{function_score:{query:t.query,functions:l}},filter:t.filter}}}}else if(r)i={query:{filtered:{query:t.query,filter:t.filter}}};else if(a){var l;if(t.hasOwnProperty("function")&&t.decayByLocation){o=this.getDecayByLocation();l=t.functions.concat(o)}else l=t.hasOwnProperty("function")?t.function:this.getDecayByLocation();i={query:{function_score:{query:t.query,functions:l}}}}else i={query:t.query};return s&&(i.rescore=t.rescore),this.resultSize&&(i.size=this.resultSize),{query:i,values:n}}},{key:"initSearchQuery",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i){var n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i.decayByLocation){e.next=14;break}if(n=this.location.coords&&Date.now()-this.location.setAt>3e5,r=!this.location.coords&&hd.testForApi(),!n&&!r){e.next=14;break}return e.prev=4,e.next=7,hd.getLocation();case 7:a=e.sent,this.location={coords:{lat:a.coords.latitude,lon:a.coords.longitude},setAt:Date.now()},e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](4),this.logger.warning(e.t0.message);case 14:return e.abrupt("return",this.parseSearchQuery(t,i));case 15:case"end":return e.stop()}}),e,this,[[4,11]])})));function t(t,i){return e.apply(this,arguments)}return t}()},{key:"getDecayByLocation",value:function(){var e;return e=this.location.hasOwnProperty("coords")?[{gauss:{geoLocation:{origin:this.location.coords,offset:"1km",scale:"2km"}}}]:[],e}},{key:"makeTemplateValues",value:function(e,t){var i={};return Object.values(t).forEach((function(t){var n=new RegExp(t.regex),r=e.match(n)[0];t.hasOwnProperty("replace")&&(r=r.replace(new RegExp(t.replace.regex,"g"),t.replace.value)),i[t.name]=r.trim()})),i}}]),i}($h),md=dd,fd=function(){function e(t){Object(d["a"])(this,e)}return Object(m["a"])(e,[{key:"initialize",value:function(){}},{key:"addToQuery",value:function(e){return e}},{key:"addFilter",value:function(e,t){var i=JSON.parse(e);if(i.query.hasOwnProperty("filtered")){var n=i.query.filtered.filter;if(n.hasOwnProperty("bool")){var r=n.bool;if(r.hasOwnProperty("must")){var a=r.must;if(Array.isArray(a))a.push(t);else{var s={};Object.assign(s,a),r.must=[s,t]}}else r.must=t}else{var o={};Object.assign(o,n);var l={bool:{must:[o,t]}};i.query.filtered.filter=l}return JSON.stringify(i)}var c={query:{filtered:{query:i.query,filter:t}}};return JSON.stringify(c)}},{key:"handleResult",value:function(e){}},{key:"clear",value:function(){}}]),e}(),gd=fd,yd=k.getLogger("vcs.vcm.widgets.search.middleware.Near"),pd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.className=i.className,n.tags=[],n.activeTags=[],n.doHandle=!0,n.tagOrder=e.tagOrder?e.tagOrder:[],n.combineTagsWithOr=!!e.combineTagsWithOr,n.isActive=!1,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.middleware.Tags"}}]),Object(m["a"])(i,[{key:"addToQuery",value:function(e){var t=this._addTagAggregation(e);return this._filterByTags(t)}},{key:"_addTagAggregation",value:function(e){var t=JSON.parse(e);return t.aggregations?t.aggregations.tagCount={terms:{field:"tags"}}:t.aggregations={tagCount:{terms:{field:"tags"}}},JSON.stringify(t)}},{key:"_filterByTags",value:function(e){if(0===this.activeTags.length)return e;var t={};if(1===this.activeTags.length)t.term={tags:this.activeTags[0].key};else{var i=this.activeTags.map((function(e){return{term:{tags:e.key}}}));t=this.combineTagsWithOr?{or:i}:{and:i}}return this.addFilter(e,t)}},{key:"handleResult",value:function(e){if(this.doHandle)if(e.aggregations&&e.aggregations.tagCount){var t=e.aggregations.tagCount.buckets;if(t.length){var i=this.sortTags(t),n=i.filter((function(e){return this.activeTags.find((function(t){return t.key===e.key}))}),this);this.clear(),i.forEach((function(e){this.tags.push(e)}),this),n.forEach((function(e){this.activeTags.push(e)}),this)}else this.clear()}else this.clear()}},{key:"setHandle",value:function(e){yd.deprecate("setHandle","access the doHandle property."),this.doHandle=e}},{key:"sortTags",value:function(e){var t=this;return e=this.tagOrder.length>0?e.sort((function(e,i){var n=t.tagOrder.indexOf(e.key),r=t.tagOrder.indexOf(i.key);return n=n>-1?n:t.tagOrder.length+1,r=r>-1?r:t.tagOrder.length+1,n-r})):e.sort((function(e,t){return e.key.toLocaleString()-20)&&(a.pitch=-20),a.groundPosition=o,a.distance=2e3,a.cameraPosition=null,e.next=19,r.gotoViewPoint(a);case 19:this.isActive=!0;case 20:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{key:"setDistance",value:function(e){var t=Number(/^[0-9]+/.exec(e)[0]),i=/\D+$/.exec(e);i&&"m"!==i[0]&&(t*=1e3),this.searchDistance=t,this.isActive&&this.showLayer()}},{key:"getDistance",value:function(){return _d.deprecate("getDistance","access the searchDistance property directly"),this.searchDistance}},{key:"showLayer",value:function(){var e=G.getInstance().getLayerByName(this.layerName);return this.searchCenter?(e.updateGeometryOfFeature(this.pointId,new ol.geom.Point(this.searchCenter)),e.updateGeometryOfFeature(this.circleId,ol.geom.Polygon.circular(new ol.Sphere(6378137),this.searchCenter,this.searchDistance,128)),e.activate()):Promise.resolve()}},{key:"hideLayer",value:function(){if(this.layerName){var e=G.getInstance().getLayerByName(this.layerName);e.deactivate()}}},{key:"clear",value:function(){this.hideLayer(),this.isActive=!1,this.title=null}}]),i}(gd),Ld=bd,wd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADcAAAA3CAYAAACo29JGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4BpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2RUM4Mzk3QUJERDQxMUU1QjJEN0FDNDY2NkM0MTA0RiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo3Nzc1MkM2NkRCQTExMUU1QUUwQjhGQjIwQjM0ODRBNyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo3Nzc1MkM2NURCQTExMUU1QUUwQjhGQjIwQjM0ODRBNyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoV2luZG93cykiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2NjMwYzU0NC03NmE3LWEzNGMtOWQ0OC1jNGU5OTZkMGIxYWMiIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDpkYmYzYzlmNi1kYmEwLTExZTUtYjFiYi1iMWYzNDcxM2ZjNzQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4hNWn9AAAJk0lEQVR42txafWwUxxV/t3t3Pp8/LtgEG0zBJC20caJijN1CpSYEWqXBFqJNaRAUsI0cJFQI1P2DSoVgKtqmSexQsJQmjogaF5IUU1onsdoGqNQUCjU2Ul1RigOJC8R8nO2zfT77dm/7ZvXGGfbWt3t3Nm4z0mN9y87O++3vzZv33owTxr85UCQUma4S3XMIz2gkERKVrtp4KuIcR0BOEheJW7gnghRBKSQjKGESfk+bbHCyACQVxYOSQve5OARgInOcKVWQYZQQypAAWE3miyfSJAFQGl05U7LAnplpmpmkyBhnkgEcFIBGJhocNz8GJoOAeeiem1hzJfjRNAI5TGAU+nsApZ9AxmWupkpoWnR/h8MhkfLpBMxLgDwkMn928+bNs1esWDF/zpw5n8vKyvqM1+u91+l0pqKkKYoyiDIUDAZv+v3+rsuXL//72LFj7QcOHPhQGE4l8wwR0CABZECHUb+IiX6JgcOOMrHlQ8kkkCnEnA5q9erVOdu2bXusoKDgUQQzPV7aEOz1jo6O47W1tS2HDh3qFkAOEoNMAih9jEXUUbUCB2OB40ImxwDNQnkQpQjlqyhfY1JeXr6+s7Pzj5FIRNHGobH3sPex9/IxaLwiGn8W6eM06Bkfc/g1nMTOFDLFFHqxnJeX5z569OiTRUVF35EkyTXeiyWCDLe2tr65cuXKQ1evXh0hFgPEIDPRHsYq6qrEzRyZGwOSj/IQSgnKUvYlKyoqNvT29l7S7kJj47DxiMGlpMdDpJf+ocdiLparTycT4MCWsQHq6+t3hMPhQe0uNjYejvtDArhMADiL9JTi8aDME84kGy/mwBobG/eoqhrWJqGxcdn4AoPFpN9M0tdhFmEYm4u84j3kIRn1Ul1d3fzKyspdOL+cMAmNLUXoiRfj0tLR0tLSTXoqxJpqttDLJuaYRsDSyIm40ObzampqnpVl2QOT2BjAhQsXLr5+/fr7586dGxCAaUJsqpl5Swd5w2yULA6OeUVcf+p8Pt9n4/J2ff0Q/N0fIPTn0zDS3gFq9y2IBPpBykgHOfdecM8vAM/DXwbviq+DlJkRF8i+vr5LyOLT5EX7aS30o9wmb6oZwXHvOE1gTz5z5sy64uLitfGA6nvhJeh/qRG0oZA1G6keyHhqLfi2V4Hksw/y7NmzjSUlJa8Rc70E8CYt8qrRLFMIEA+tUnAhnbFp06YdFKFYtsE3fw83nqiC0IlTOBsUe1ric8Onz8HAa2+Bc0YOuAvm2eo2ffr0L3R1dZ1sb28fFAJxHo8qInMOYi2HXCtbtCWM+3bk5+cvsbEwQs+u5yHwYkPS8yrz6UqY8sz32QSzfPbKlSsnMH79CQHrodizm0w1IgseMkNgzbNu3boZGzZs2OqwsfT37q6FQN0r4+I0hk+34T8j4HlkkeWz6AfykYDj58+fHyBT5OkSYy/CFU+luXYPiRu9UUVhYeGTlqb4VjPc2viDMVJhGdK++Th4y5aB64G5IE/NAvWWH8L/vAjB5vdg8MjbqI55Ljr1lZ9D2rdLLQG2tbW9sWDBggYC1UtygwXXPIFkjOWSSTJP6cAo/Vepqak5sV6s3rwN14q+oTsRY/MsWQzZL+wC532zxp5uH3wEt7fvxjn61+gQCZ3LjL+/C/K07JjghoaGbmAWspbmnZ9M82NmmjxLdgkZtGPLli2zrYDpLvln9abA0tc/ATlNL8cEphOL/59z5Jf686Ze99l6S+ZQz2lMXyJJxCHxKpVbuAmlpaVftOPyB15vMmes9hl6tZ0qjKw/z/oZG3u/2cczNtR3vuA7RvFw5pxCQQfQA821TC5xgTauYw6XE7Kf36krHF+ZSdb7sf53OGF8PxvHqrGMX1irZV5xE8HxKhVg/DbT6oWhk6ei7nm/9Tg475+dWBkO+7H+dsYxNkFfSajzjIITq1SAE9Ryvo3840I0uOVLk1oGvKXLbI0T1c/rnSaAG622SQbE+m9WzLF6oXq1O+qe3ehirOZ+YK6tcaJYdzq9QjDiEME5Yjw8tkPpH4h231N8SYEz6282jgW40atkVgdUFCVoqUhGerQiPX3J1U1M+kvpaTbCU2VIqH2OXrlZRoTgU3x4bAeXFz0tRzDySKaZ9Zdn5toBFzTZYNEkwy5LhGqIlobufvDz0ctD85+SAmfW32wck5pnt0BSxAhOEZnz+/3/sXqh5+HowDZ45B09pEqkKZ0f6v3tjGNsgr7cAhmeiAiO77QAK3Fbul/MoFmieceiG1b0WBHUODdmMGXyV+/R+xsTWTaOVRP0VYXsICIWV/huCzQ3N7dbOhQMbNPXrIxedDEIvr1tN6uq2gOGH8K/vQaGjr8fHaPi++1k54K+YRFPrKzgdRaUxtTrBmYFCycwKzj7Dsg5Uy2zgszMzO+iU+EJa7+YFYhbR6PsXbhw4YSlx8R0JIvFkmbhGSp8rWQ53KqshuBvWyB86QpEegP6lf1m9699qdQUmB5SPfcjS2BcTwSmCawN8yoYj1QV2i7iNQh3XV3duwcPHlxllYmzhDLccRH6al+Onko4hwZ/87YucZUatlZC2qoyO2V/jenJk3gCFTLWUCQyzcRrKDufg8C+V5OvoWypgCk11XZrKCcxI9hrVUPRhGQvhcC6A4HAB2VlZcstq1+oSOqjXwEXRvahv5wBLTScUOiV/Ys9kPm9clvA2C5QdXX1j9va2hiQIDEWIGBhu3XL9cXFxWsmtm65Bnzbn4q3bvnrkpKSg7HqlnYrzi/6fL77E6o4Yz42WnHGIFivOKOj0CvOjyxKtOLcWVBQsNWq4gwmewWMvftQWOqu76Bu3LixPBwOD2j/A43pwfSBT3Zc55O+mWDYyjLOJR6C8TqEXpdgmw7Z2dn/QjNYQhv/k9LYlvL+/ft37t279yJ5xAGaa33EoBoLnBGgi36nsG2jefPmdbFtpMkAyIAdPnz4p1VVVX8j/foFJ9JLUQlYgQMhU+D1FfY7pamp6aPc3NyLhYWFiyZiH3zsCE0NNjQ01JSXl5+ijy0C66G/7e0df1r2xJM9zbC6qKho1QSdZlBaW1vfmJDTDJ/6cyifBCBxnSBa6vV6c+NlCrOQj3E9fW88TxBNyNkvVrtnJW7h7FeO0+n0sCoVq3eghFhpgJ/9YvnYvn37rM5+8QNuyZ39ihUtwZ2n9tIJ8P/PqT07cS6Yn7d0CbX6eM5bKkI+xk8lBOEun7c0Wyd5JsHNM5GTsuJ+NjfHYZikk7JmTIqMJXvGWU2EqYkCZ3xnvKfTuXmO6+n0/wowALmncfsG1yHoAAAAAElFTkSuQmCC",Md=wd,kd=function(){function e(t){Object(d["a"])(this,e),this.className=t.className,this.title=t.title?t.title:null,this.description=t.description?t.description:null,this.initialized=!1}return Object(m["a"])(e,[{key:"initialize",value:function(){return!0}},{key:"handleClickEvent",value:function(e){}},{key:"destroy",value:function(){this.initialized=!1}}]),e}(),Od=kd,Td=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.pointWGS84=e.pointWGS84||null,n.geometry=e.geometry||null,n.balloonContent=e.balloonContent||null,n.result=e.result||{},n.layerName=e.layerName,n.icon=e.icon||Md,n.clearLayerOnClick=null==e.clearLayerOnClick||e.clearLayerOnClick,n._featureId=null,n.zoomDistance="number"===typeof e.zoomDistance?e.zoomDistance:2e3,n.initialize(),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.FeatureItem"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=G.getInstance();if(ye(Object(fe["a"])(i.prototype),"initialize",this).call(this),!this.initialized){if(!this.pointWGS84&&!this.geometry)return console.log("you need to specify a geometry or a point"),!1;if(!this.pointWGS84){var t=(new ol.format.GeoJSON).readFeature(this.geometry);if(!t)return!1;this.pointWGS84=ol.extent.getCenter(t.getGeometry().getExtent())}var n=this.layerName&&e.getLayerByName(this.layerName)instanceof _n;if(!n)return console.log("could not find the result layer vector layer: ".concat(this.layerName)),!1;this.initialized=!0}return!0}},{key:"handleClickEvent",value:function(){if(this.initialized){var e=G.getInstance(),t=e.getActiveMap(),i=t.getViewPoint();i.animate=!0;var n=i.groundPosition,r=this.pointWGS84.slice();n&&n[2]&&(r[2]=n[2]),i.groundPosition=r,i.distance=this.zoomDistance,i.cameraPosition=null;var a=i.pitch;(!a||a>-20)&&(i.pitch=-20);var s=e.getLayerByName(this.layerName),o=this.getFeature();this.clearLayerOnClick&&s.removeAllFeatures(),s.addFeatures([o]),s.activate(),t.gotoViewPoint(i);var l=P.getInstance();l.getCurrentItem()&&l.getCurrentItem().id===o.getId()||l.setCurrentItem(o.getId(),o,s)}}},{key:"getFeature",value:function(){if(this.initialized){var e,t=G.getInstance();if(null!=this._featureId){var i=t.getLayerByName(this.layerName),n=i.getFeatureById(this._featureId);if(n)return n}if(this.geometry){var r=new ol.format.GeoJSON;e=r.readGeometry(this.geometry)}else e=new ol.geom.Point(this.pointWGS84);var a=new ol.Feature(Object.assign({},{geometry:e},this.result));return this._featureId=Object(u["c"])(),a.setId(this._featureId),this.balloonContent&&a.set("balloonContent",this.balloonContent),a}return null}},{key:"destroy",value:function(){if(ye(Object(fe["a"])(i.prototype),"destroy",this).call(this),null!=this._featureId){var e=G.getInstance(),t=e.getLayerByName(this.layerName);t.removeFeaturesById([this._featureId])}this._featureId=null}}]),i}(Od),Sd=Td,Cd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.slug=e.slug,n.initialize(),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.search.LayerItem"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(ye(Object(fe["a"])(i.prototype),"initialize",this).call(this),!this.initialized){if(!this.slug)return console.log("Could not find layer for LayerItem"),!1;var e=G.getInstance().getLayerByName(this.slug);if(!e)return console.log("Could not find layer for LayerItem"),!1;this.initialized=!0}return!0}},{key:"isActive",value:function(){return G.getInstance().getLayerByName(this.slug).active}},{key:"handleClickEvent",value:function(e){if(this.initialized){var t=G.getInstance().getLayerByName(this.slug);t&&(t.active||t.loading?(t.deactivate(),e()):t.activate().then(e))}}}]),i}(Od),jd=Cd,Ed=(ad={},Object(U["a"])(ad,id.className,id),Object(U["a"])(ad,md.className,md),ad),Id=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.autocomplete=Object(u["e"])(e.autocomplete,r.autocomplete),n.autocompleteRequest=e.autocompleteRequest||null,n.fullAddressRequest=e.fullAddressRequest||null,n.extendedSearches=e.extendedSearches||[],n.middleware=[],n.extendedSearches.forEach((function(t){var i;"string"===typeof t?"searchTags"===t?this.middleware.push(new vd(e)):"searchNear"===t&&this.middleware.push(new Ld(e)):("vcs.vcm.widgets.search.middleware.Near"===t.type?i=new Ld(t):"vcs.vcm.widgets.search.middleware.Tags"===t.type&&(i=new vd(t)),i&&i instanceof gd&&this.middleware.push(i))}),Object(gt["a"])(n)),n.searchImplementations=[];var a=e.searchImplementations||r.searchImplementations;if(a)for(var s=0;s-1){var i=e[t],n=Array.isArray(i)?i.join("\n"):i;e[t]=Fr()(n)}}))})),n.currentResults=[],n.justSearched=!1;var c=r.style;e.resultIcon&&(c.image.src=e.resultIcon,n.logger.deprecate("resultIcon","use style instead."));var h=e.style||c;return n.resultLayer=new _n({projection:{epsg:4326},style:h,highlightStyle:e.highlightStyle||h,name:"_searchResultVector",zCoordinateEyeOffset:-100,heightAboveGround:10,altitudeMode:"clampToGround",classificationType:e.classificationType||r.classificationType}),n.showAllResults=!!e.showAllResults,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{autocomplete:!1,autocompleteRequest:void 0,fullAddressRequest:void 0,extendedSearches:void 0,searchImplementations:[id.getDefaultOptions()],searchQueries:[{endpoints:[{searchImpl:"vcs.vcm.widgets.search.Nominatim"}],regex:".*"}],searchResultItems:{address:{zoomTo:!0,pointType:!0,geomProperty:"geometry",title:"",description:"<%= obj.fulladdress %>",balloonContent:["
","

<%= obj.fulladdress %>

","
"]},point:{pointType:!0,geomProperty:"point",title:"<%= obj.display_name %>",description:"<%= obj.licence %>",balloonContent:["

<%= obj.display_name %>

","
","

<%= obj.licence %>

","
"]},geojson:{zoomTo:!0,pointType:!1,geomProperty:"geojson",pointProperty:"point",title:"<%= obj.display_name %>",description:"<%= obj.licence %>",balloonContent:["

<%= obj.display_name %>

","
","

<%= obj.licence %>

","
"]}},style:{image:{src:Md,scale:.5},fill:{color:"rgba(168, 192, 43, 0.6)"},stroke:{color:"rgb(168, 192, 32)",width:1.25}},highlightStyle:{image:{src:Md,scale:.5},fill:{color:"rgba(168, 192, 43, 0.6)"},stroke:{color:"rgb(168, 192, 32)",width:1.25}},classificationType:void 0,showAllResults:!1})}},{key:"className",get:function(){return"vcs.vcm.widgets.search.Search"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return;this.searchImplementations.forEach((function(e){e.initialize()})),this.middleware.forEach((function(e){e.initialize()})),this.framework.addLayer(this.resultLayer),this.initialized=!0;var t=this.framework.getWidgetByType("vcs.vcm.widgets.BalloonInfo");t&&!t.hasTypeForLayerName("_searchResultVector")&&t.addTypeForLayer("_searchResultVector",["
"," <%= balloonContent %>","
"," ","
","
","
","
"],"balloonHeight + 30","70"),this.initializedFinished()}}},{key:"search",value:function(e){var t=this;return this.clearSearch(),new Promise((function(i){var n=t._handleSearchResults.bind(t,i);t._handleSearch(e,n)}))}},{key:"_handleSearch",value:function(e,t,i){var n;if(this.runningRequest&&this.runningRequest.cancel(),this.justSearched=!0,Number.isFinite(i)){if(!(i-1}));if(0!==a.length){var s=this.searchCascade.bind(this,e,r.cascade,n,t);a.forEach((function(t){t.search(e,r,s)}))}else t([])}},{key:"searchCascade",value:function(e,t,i,n,r){0===r.length&&t?this._handleSearch(e,n,i):n(r)}},{key:"_handleSearchResults",value:function(e,t){var i=this._getResultItems(t),n=i.map((function(e){return!!(e.initialized&&(this.currentResults.push(e),this.showAllResults&&e instanceof Sd))&&e.getFeature()}),this).filter((function(e){return e}));this.showAllResults&&(this.resultLayer.addFeatures(n),this.resultLayer.activate()),e()}},{key:"_getResultItems",value:function(e){var t;if(0===e.length)return[];var i=[];return e.forEach((function(e){var n,r=this.searchResultItems[e.type];if(!r&&!t)throw new Error("Got undefined result type");if(t)n=e;else if(r.geomProperty){var a,s;if(r.pointType)s=e[r.geomProperty],a=!1;else{a=e[r.geomProperty];var o=new ol.format.GeoJSON,l=o.readGeometry(a);s=r.pointProperty&&e[r.pointProperty]?e[r.pointProperty]:ol.extent.getCenter(l.getExtent())}r.geomProperty&&e[r.geomProperty]&&delete e[r.geomProperty],r.pointProperty&&e[r.pointProperty]&&delete e[r.pointProperty],e.zoomTo=r.zoomTo,n=new Sd({geometry:a,result:e,balloonContent:r.balloonContent(e),title:r.title(e),pointWGS84:s,description:r.description(e),layerName:"_searchResultVector",clearLayerOnClick:!this.showAllResults,icon:Md,zoomDistance:r.zoomTo})}else"layer"===e.type&&(n=new jd({slug:e.slug,title:r.title(e),description:r.description(e)}));i.push(n)}),this),i}},{key:"clearSearch",value:function(){this.runningRequest&&this.runningRequest.cancel(),this.resultLayer.removeAllFeatures(),this.currentResults.splice(0,this.currentResults.length),this.resultLayer.deactivate()}},{key:"getAutocomplete",value:function(e,t){var i=this,n=JSON.parse(JSON.stringify(this.autocompleteRequest)),r=new RegExp(/\b[0-9]+/g),a=new RegExp(/\b[0-9]{5}\b/);if(r.test(e)&&null!==this.fullAddressRequest){var s=e.match(r);1===s.length&&a.test(e)||(n.query=Object.assign(n.query,this.fullAddressRequest))}var o=Fr()(JSON.stringify(n.query));this.runningRequest&&this.runningRequest.cancel();var l=C.getInstance().getLocaleAwareString(n.endPoint);return this.runningRequest=q.a.CancelToken.source(),new Promise((function(n,r){q.a.post(l,o({query:e}),{cancelToken:i.runningRequest.token}).then((function(e){var r=e.data;r=r.suggest||r;var a=[];if(i.justSearched)return t&&(n(a),t(a)),void(i.justSearched=!1);r.fullAddressSuggest&&r.fullAddressSuggest[0].options.length>0&&r.fullAddressSuggest[0].options.forEach((function(e){a.push(e.text)})),0===a.length&&r.nameSuggest[0].options.length>0&&r.nameSuggest[0].options.forEach((function(e){a.push(e.text)})),a=a.filter((function(e,t,i){return i.indexOf(e)===t})),t&&t(a),n(a)})).catch((function(e){t&&t([]),n([])})).then((function(){i.runningRequest=null}))}))}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.autocomplete=this.autocomplete,e.autocompleteRequest=this.autocompleteRequest,e.searchImplementations=[],e.extendedSearches=this.extendedSearches,e.searchImplementations.push(new id({}).getConfigObject()),e}}]),i}(Ys),Dd=Id,Pd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){var r;return Object(d["a"])(this,i),r=t.call(this),r.cb=n,r.scratchLayer=e,r._defaultActive=re.CLICK,r.coordinates=[],r.setActive(),r}return Object(m["a"])(i,[{key:"pipe",value:function(e){if(!e.position.every((function(e){return 0===e}))){var t=e.position.slice();e.feature||2===this.coordinates.length||(t[2]+=1.6),this.coordinates.push(t),2===this.coordinates.length?(this.scratchLayer.addFeatures([new ol.Feature({geometry:new ol.geom.Point(t)}),new ol.Feature({geometry:new ol.geom.LineString(this.coordinates)})]),this.setActive(!1),this.cb(this.coordinates)):this.scratchLayer.addFeatures([new ol.Feature({geometry:new ol.geom.Point(t)})])}return Promise.resolve(e)}}]),i}(ce),Ad=Pd,xd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.navigationControls=null,n.color=e.color||r.color,n.featureLayer=new _n({projection:{epsg:3857},name:"_advancedWalkMode",altitudeMode:"none"}),n.supportedMaps=["vcs.vcm.maps.Cesium"],n._removeInteraction=null,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{color:"#A8C02B"})}},{key:"className",get:function(){return"vcs.vcm.widgets.AdvancedWalkMode"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.initialized=!0,this.initializedFinished();var t=new ol.style.Fill({color:this.color}),n=new ol.style.Stroke({color:this.color,width:2});this.featureLayer.setStyle(new ol.style.Style({image:new ol.style.Circle({fill:t,stroke:n,radius:5}),fill:t,stroke:n}))}return!0}},{key:"isSupported",value:function(e){return!(!this.navigationControls&&this.framework.isInitialized()&&(this.navigationControls=this.framework.getWidgetByType("vcs.vcm.widgets.NavigationControls"),!this.navigationControls))&&ye(Object(fe["a"])(i.prototype),"isSupported",this).call(this,e)}},{key:"activate",value:function(){this.featureLayer.activate(),this.navigationControls.navigationMode.values.walkmode&&this.navigationControls.navigationMode.activateOverviewMode(),this.active&&this.deactivate();var e=new Ad(this.featureLayer,this.calculateViewPoint.bind(this));this._removeInteraction=xn().addExclusiveInteraction(e,this.deactivate.bind(this)),ye(Object(fe["a"])(i.prototype),"activate",this).call(this)}},{key:"deactivate",value:function(){this._removeInteraction&&this._removeInteraction(),this.featureLayer.getSource().clear(),this.featureLayer.deactivate(),ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this)}},{key:"calculateViewPoint",value:function(e){var t,i,n,r,a=e.map((function(e){return X.mercatorToWgs84(e)})),s=Object(Oe["a"])(a,2),o=s[0],l=s[1],c={};o[2]>l[2]?(c=o.slice(),c[2]=l[2]):(c=l.slice(),c[2]=o[2]),sd=(t=Cesium.Cartesian3).fromDegrees.apply(t,Object(g["a"])(o).concat([Cesium.Ellipsoid.WGS84,sd])),od=(i=Cesium.Cartesian3).fromDegrees.apply(i,Object(g["a"])(l).concat([Cesium.Ellipsoid.WGS84,od])),ld=(n=Cesium.Cartesian3).fromDegrees.apply(n,Object(g["a"])(c).concat([Cesium.Ellipsoid.WGS84,ld])),od=Cesium.Cartesian3.subtract(od,sd,new Cesium.Cartesian3),ld=Cesium.Cartesian3.subtract(ld,sd,new Cesium.Cartesian3),Cesium.Cartesian3.normalize(od,od),Cesium.Cartesian3.normalize(ld,ld),r=o[2]>l[2]?Cesium.Math.toDegrees(Math.acos(Cesium.Cartesian3.dot(od,ld)))-90:Cesium.Math.toDegrees(Math.acos(Cesium.Cartesian3.dot(od,ld)));var u={groundPosition:o,distance:0,animate:!0,heading:Jt(o,l),pitch:r},h=new ke(u);this.navigationControls.navigationMode.activateFirstPersonMode(h,null,null,null,!0),setTimeout(this.deactivate.bind(this),1e3)}}]),i}(Ys),Yd=xd,Nd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.balloonTypes=[],n.layerNamesToBalloonTypes={},n.layerTypesToBalloonTypes={};var a=e.balloonTypes||r.balloonTypes;return a.forEach((function(e,t){var i=e.template;"string"!==typeof e.template&&(i=e.template.join("\n")),n.balloonTypes.push({template:i,minTop:e.minTop?e.minTop:0,minLeft:e.minLeft?e.minLeft:0,layerNames:e.layerNames?e.layerNames:[],layerTypes:e.layerTypes?e.layerTypes:[]}),e.layerTypes&&e.layerTypes.forEach((function(e){n.layerTypesToBalloonTypes[e]=t})),e.layerNames&&e.layerNames.forEach((function(e){n.layerNamesToBalloonTypes[e]=t}))})),n.balloon=null,n.excludedLayerNames=e.excludedLayerNames||[],n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{balloonTypes:[{template:["
","

<%= obj.title %>

","
"," <%= obj.description %>","
","
"," ","
","
","
","
"],minTop:"balloonHeight + 70",minLeft:"70",layerTypes:["vcs.vcm.layer.Vector"],layerNames:[]}],excludedLayerNames:void 0})}},{key:"className",get:function(){return"vcs.vcm.widgets.BalloonInfo"}}]),Object(m["a"])(i,[{key:"createBalloonForGenericFeature",value:function(e){this.clearBalloon();var t,i=e.layerName,n=e.layerClass;if(!this.excludedLayerNames.includes(i)){if(null!=this.layerNamesToBalloonTypes[i])t=this.balloonTypes[this.layerNamesToBalloonTypes[i]];else{if(null==this.layerTypesToBalloonTypes[n])return;t=this.balloonTypes[this.layerTypesToBalloonTypes[n]]}var r,a=e.attributes||e,s={};Object.keys(a).forEach((function(e){/^olcs_/.test(e)||(s[e]=a[e])}));try{r=Fr()(t.template)(s)}catch(l){return void this.logger.warning("Could not render the template for layer: ".concat(i,". Please verify that the balloon template is correct"))}var o=Object.assign(e,{balloonWidget:this,minTop:t.minTop,minLeft:t.minLeft,balloonContent:r});this.balloon=new Gr(o),this.balloon.initialize()}}},{key:"clearBalloon",value:function(){this.balloon&&(this.balloon.close(),this.balloon=null)}},{key:"hasTypeForLayerName",value:function(e){return o(e,String),null!=this.layerNamesToBalloonTypes[e]}},{key:"addTypeForLayer",value:function(e,t,i,n){Array.isArray(t)&&(t=t.join("")),o(e,String),o(t,String),l(n,String),l(i,String);var r={layerTypes:[],layerNames:[e],template:t,minTop:i||"balloonHeight + 30",minLeft:n||"70"},a=this.balloonTypes.length;this.balloonTypes.push(r),this.layerNamesToBalloonTypes[e]=a}},{key:"getLink",value:function(e){this.balloon&&this.balloon.getLink(e)}},{key:"dispose",value:function(){this.clearBalloon()}},{key:"getBalloon",value:function(){return this.logger.deprecate("getBalloon","access the balloon property directly"),this.balloon}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.balloonTypes=this.balloonTypes,e.balloonTypes.forEach((function(e){e.template&&(e.template=e.template.split("\n"))})),e.excludedLayerNames=this.excludedLayerNames,e}}]),i}(Ys),Fd=Nd,Rd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.data={},n.headerLogoBox=e.headerLogoBox||null,Array.isArray(n.headerLogoBox)&&(n.headerLogoBox=n.headerLogoBox.join("\n")),n.headerTitle=e.headerTitle||null,Array.isArray(n.headerTitle)&&(n.headerTitle=n.headerTitle.join("\n")),n.footerLogoBox=e.footerLogoBox||null,Array.isArray(n.footerLogoBox)&&(n.footerLogoBox=n.footerLogoBox.join("\n")),n.showOverflow=!!e.showOverflow,n.layerItems=[],n.uiOptions={headerLogoBox:n.headerLogoBox,headerTitle:n.headerTitle,footerLogoBox:n.footerLogoBox},n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.Copyright"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return;this.updateLayers(),this.framework.subscribe(O.MAP_ACTIVATED,this.updateLayers.bind(this)),this.framework.subscribe(O.LAYER_CHANGED,this.layerChanged.bind(this)),this.initialized=!0,this.initializedFinished()}}},{key:"updateLayers",value:function(){var e=this.framework.getLayers(),t=this.framework.getActiveMap();t&&(this.layerItems.splice(0),e.forEach((function(e){if(e.isSupported(t)&&e.active){var i=this.createLayerItem(e);i&&this.layerItems.push(i)}}),this))}},{key:"layerChanged",value:function(e){var t=this.layerItems.findIndex((function(t){return t.layerName===e.name}));if(e.active){if(-1===t){var i=this.createLayerItem(e);i&&this.layerItems.push(i)}}else t>-1&&this.layerItems.splice(t,1)}},{key:"createLayerItem",value:function(e){var t=e.options.copyright;if(t&&t.provider&&""!==t.provider){t.layerName=e.name;var i="";return e.options.category&&(i+="".concat(e.options.category," - ")),e.options.title?i+=e.options.title:i+=e.name,t.title=i,t}return null}},{key:"handleURLParameter",value:function(e){var t=e.headerTitle;null!=t&&(this.uiOptions.headerTitle=t)}},{key:"getLink",value:function(e){this.headerTitle!==this.uiOptions.headerTitle&&e.addQueryParams({headerTitle:this.uiOptions.headerTitle})}}]),i}(Ys),Hd=Rd,Gd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.CreateLink"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return;this.initializedFinished()}}}]),i}(Ys),zd=Gd,Bd={AMBIENT_OCCLUSION:"ambientOcclusion",BLOOM:"bloom",BLACK_AND_WHITE:"blackAndWhite",BLUR:"blur",BRIGHTNESS:"brightness",DEPTH_OF_FIELD:"depthOfField",LENS_FLARE:"lensFlare",NIGHT_VISION:"nightVision",SILHOUTTE:"silhouette"},Vd=function(){function e(t,i){var n=this;Object(d["a"])(this,e),this._enabled=t.enabled,this.uniforms={},Object.keys(i).forEach((function(e){"color"===i[e].type?Object.defineProperty(n.uniforms,e,{get:function(){var i=t.uniforms[e].toBytes();return i[3]/=255,i},set:function(i){t.uniforms[e]=Cesium.Color.fromBytes(i[0],i[1],i[2],255*i[3],t.uniforms[e])}}):n.uniforms[e]=t.uniforms[e]})),this.uniformTypes=i,this.update=this._update.bind(this,t),this.setEnabled=this._setEnabled.bind(this,t)}return Object(m["a"])(e,[{key:"_setEnabled",value:function(e){e.enabled=this._enabled}},{key:"_update",value:function(e){var t=this;Object.keys(this.uniforms).forEach((function(i){e.uniforms[i]=t.uniforms[i]}))}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this.setEnabled()}}],[{key:"isSupported",value:function(e){return!0}}]),e}(),Ud=Vd,Wd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e,{intensity:{type:"number"},bias:{type:"number"},lengthCap:{type:"number"},stepSize:{type:"number",step:.2},frustumLength:{type:"number",step:10},ambientOcclusionOnly:{type:"boolean"}}),n.uniforms.lengthCap=3,n.update(),n}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.AMBIENT_OCCLUSION}}]),Object(m["a"])(i,null,[{key:"isSupported",value:function(e){return Cesium.PostProcessStageLibrary.isAmbientOcclusionSupported(e)}}]),i}(Ud),qd=Wd,Jd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{contrast:{type:"number",step:2},brightness:{type:"number"},delta:{type:"number"},sigma:{type:"number"},stepSize:{type:"number"},glowOnly:{type:"boolean"}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.BLOOM}}]),i}(Ud),Kd=Jd,Zd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{gradations:{type:"number",step:1}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.BLACK_AND_WHITE}}]),Object(m["a"])(i,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createBlackAndWhiteStage()}}]),i}(Ud),Qd=Zd,Xd=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{delta:{type:"number"},sigma:{type:"number"},stepSize:{type:"number"}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.BLUR}}]),Object(m["a"])(i,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createBlurStage()}}]),i}(Ud),$d=Xd,em=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{brightness:{type:"number"}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.BRIGHTNESS}}]),Object(m["a"])(i,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createBrightnessStage()}}]),i}(Ud),tm=em,im=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{focalDistance:{type:"number",step:1},delta:{type:"number"},sigma:{type:"number"},stepSize:{type:"number"}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.DEPTH_OF_FIELD}}]),Object(m["a"])(i,null,[{key:"isSupported",value:function(e){return Cesium.PostProcessStageLibrary.isDepthOfFieldSupported(e)}},{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createDepthOfFieldStage()}}]),i}(Ud),nm=im,rm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{intensity:{type:"number"},distortion:{type:"number",step:1},ghostDispersal:{type:"number"},haloWidth:{type:"number"},earthRadius:{type:"number",step:1e3}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.LENS_FLARE}}]),Object(m["a"])(i,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createLensFlareStage()}}]),i}(Ud),am=rm,sm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.NIGHT_VISION}}]),Object(m["a"])(i,null,[{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createNightVisionStage()}}]),i}(Ud),om=sm,lm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),t.call(this,e,{color:{type:"color"},length:{type:"number"}})}return Object(m["a"])(i,null,[{key:"type",get:function(){return Bd.SILHOUTTE}}]),Object(m["a"])(i,null,[{key:"isSupported",value:function(e){return Cesium.PostProcessStageLibrary.isSilhouetteSupported(e)}},{key:"createStage",value:function(){return Cesium.PostProcessStageLibrary.createSilhouetteStage()}}]),i}(Ud),cm=lm,um=(cd={},Object(U["a"])(cd,qd.type,qd),Object(U["a"])(cd,Kd.type,Kd),Object(U["a"])(cd,Qd.type,Qd),Object(U["a"])(cd,$d.type,$d),Object(U["a"])(cd,tm.type,tm),Object(U["a"])(cd,nm.type,nm),Object(U["a"])(cd,am.type,am),Object(U["a"])(cd,om.type,om),Object(U["a"])(cd,cm.type,cm),cd),hm=k.getLogger("vcs.vcm.widets.DisplayQuality"),dm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.defaultQualityLevel=e.defaultQualityLevel||r.defaultQualityLevel,n.defaultMobileQualityLevel=e.defaultMobileQualityLevel||r.defaultMobileQualityLevel,n.viewModel=null;var a={},s=e.low||{};a.low=i.createViewModel(r.low,s);var o=e.medium||{};a.medium=i.createViewModel(r.medium,o);var l=e.high||{};a.high=i.createViewModel(r.high,l),n.viewModelSettings=a,n.showAdvancedSettings=Object(u["e"])(e.showAdvancedSettings,r.showAdvancedSettings),n.sseLayerTypes=["vcs.vcm.layer.cesium.AbstractCesiumTilesetLayer","vcs.vcm.layer.TiledLayer","vcs.vcm.layer.FeatureStore"],n.supportedMaps=["vcs.vcm.maps.Cesium"],n.cesiumMap=null,n.layers=[],n.activePreset={preset:null},n.postProcessStages={};var c=e.allowedPostRenderStages||r.allowedPostRenderStages;return c.forEach((function(e){n.postProcessStages[e]=null})),n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{defaultQualityLevel:"medium",defaultMobileQualityLevel:"low",low:{sse:4,fxaa:!1,fog:{enabled:!0,density:9e-4,screenSpaceErrorFactor:6},resolutionScale:.9,layerSSEFactor:2},medium:{sse:2.333,fxaa:!1,fog:{enabled:!0,density:5e-4,screenSpaceErrorFactor:4},resolutionScale:1,layerSSEFactor:1.1},high:{sse:4/3,fxaa:!0,fog:{enabled:!1,density:0,screenSpaceErrorFactor:0},resolutionScale:1,layerSSEFactor:.5},showAdvancedSettings:!1,allowedPostRenderStages:[qd.type,Kd.type,Qd.type,$d.type,tm.type,nm.type,om.type,cm.type]})}},{key:"className",get:function(){return"vcs.vcm.widgets.DisplayQuality"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;if(!this.initialized){var t=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!t)return!1;this.cesiumMap=this.framework.getMapByType("vcs.vcm.maps.Cesium");var n=this.cesiumMap.getScene(),r=n.postProcessStages;Object.keys(this.postProcessStages).forEach((function(t){um[t]&&um[t].isSupported(e.cesiumMap.getScene())?r[t]&&(e.postProcessStages[t]=new um[t](r[t])):delete e.postProcessStages[t]})),this.viewModel={sse:n.globe.maximumScreenSpaceError,fxaa:r.fxaa.enabled,fog:n.fog,resolutionScale:1},this.initializeLayers(),this.framework.subscribe(O.LAYER_ACTIVATED,this.layerActivated,this),this.framework.isMobile()?this.setPreset(this.defaultMobileQualityLevel):this.setPreset(this.defaultQualityLevel),this.initialized=!0,this.initializedFinished()}return!0}},{key:"addPostProcessingStage",value:function(e){this.postProcessStages[e]&&hm.warning("trying to add existing stage");var t=um[e],i=this.cesiumMap.getScene();if(t&&t.isSupported(i)){var n=t.createStage();i.postProcessStages.add(n),this.postProcessStages[e]=new t(n)}else hm.error("could not find ".concat(e," or ").concat(e," is not supported"))}},{key:"initializeLayers",value:function(){var e=this;this.framework.getLayers().filter((function(e){return e instanceof Ga||e instanceof or||e instanceof Ps})).forEach((function(t){var i=e.framework.isMobile()?t.screenSpaceErrorMobile:t.screenSpaceError;e.layers.push({layerName:t.name,sse:i,defaultSse:i})}))}},{key:"layerActivated",value:function(e){var t=this.layers.find((function(t){return t.layerName===e.name}));t&&this.setLayerQuality(e.name)}},{key:"setQuality",value:function(e){if(l(e,Boolean),e||(this.activePreset.preset=null),this.cesiumMap.initialized&&this.viewModel){var t=this.cesiumMap.getCesiumWidget();t.scene.globe.maximumScreenSpaceError=this.viewModel.sse,t.scene.postProcessStages.fxaa.enabled=this.viewModel.fxaa,t.resolutionScale=this.viewModel.resolutionScale,t.scene.fog.enabled=this.viewModel.fog.enabled,t.scene.fog.density=this.viewModel.fog.density,t.scene.fog.screenSpaceErrorFactor=this.viewModel.fog.screenSpaceErrorFactor}}},{key:"setPreset",value:function(e){var t=this;o(e,["high","medium","low"]),this.activePreset.preset=e;var i={};"high"===e?Object.assign(i,this.viewModelSettings.high):"medium"===e?Object.assign(i,this.viewModelSettings.medium):Object.assign(i,this.viewModelSettings.low),Object.assign(this.viewModel,i),this.layers.forEach((function(e){e.sse=e.defaultSse*i.layerSSEFactor,t.setLayerQuality(e.layerName)})),this.setQuality(!0)}},{key:"setLayerQuality",value:function(e){o(e,String);var t=this.framework.getLayerByName(e);if(t&&t.active){var i=this.layers.find((function(t){return t.layerName===e}));i&&t.setMaximumScreenSpaceError(i.sse)}}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.low=this.viewModelSettings.low,e.medium=this.viewModelSettings.medium,e.high=this.viewModelSettings.high,e.defaultQualityLevel=this.defaultQualityLevel,e.showAdvancedSettings=this.showAdvancedSettings,e.allowedPostRenderStages=this.options.allowedPostRenderStages||[qd.type,Kd.type,Qd.type,$d.type,tm.type,nm.type,om.type,cm.type],e}}],[{key:"createViewModel",value:function(e,t){var i=new Cesium.Fog,n=Object.assign(e.fog,"object"===Object(s["a"])(t.fog)?t.fog:{});i.enabled=!!n.enabled,i.density=Number(n.density),i.screenSpaceErrorFactor=Number(n.screenSpaceErrorFactor);var r=Object.assign(e,t);return{sse:Number(r.sse),fxaa:!!r.fxaa,fog:i,resolutionScale:Number(r.resolutionScale),layerSSEFactor:Number(r.layerSSEFactor)}}}]),i}(Ys),mm=dm;function fm(){return{image:{fill:{color:"rgba(255, 255, 255, 0.4)"},stroke:{color:"rgb(0, 0, 0)",width:1},radius:5},stroke:{color:"rgb(51, 153, 204)",width:2},fill:{color:"rgba(255, 255, 255, 0.4)"},text:{font:"bold 18px Arial, Helvetica, sans-serif",textBaseline:"bottom",fill:{color:"rgb(0, 0, 0)"},offsetY:-15,offsetX:0,stroke:{color:"rgb(255, 255, 255)",width:2}}}}var gm=new dt(fm()),ym=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers","vcs.vcm.maps.Oblique"],n.allowedGeometries=e.allowedGeometries||r.allowedGeometries,n.allowEditMode=Object(u["e"])(e.allowEditMode,r.allowEditMode),n.allowSelectMode=Object(u["e"])(e.allowSelectMode,r.allowSelectMode),n.defaultMode=null!=un[e.defaultMode]?e.defaultMode:r.defaultMode,n.editorOptions={hideAltitudeMode:Object(u["e"])(e.hideAltitudeMode,r.hideAltitudeMode),simpleStyleUi:Object(u["e"])(e.simpleStyleUi,r.simpleStyleUi),hideExport:Object(u["e"])(e.hideExport,r.hideExport),hideHelp:Object(u["e"])(e.hideHelp,r.hideHelp),showFeatureEditorUiInEditMode:!n.allowSelectMode&&n.allowEditMode},("select"===n.defaultMode&&!n.allowSelectMode||"edit"===n.defaultMode&&!n.allowEditMode)&&(n.defaultMode="create"),n.editingLayer=null,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{allowedGeometries:["Point","LineString","Polygon","BBox","Circle","Rectangle","Label"],allowEditMode:!0,allowSelectMode:!0,defaultMode:"create",hideAltitudeMode:!1,simpleStyleUi:!1,hideExport:!1,hideHelp:!1,style:fm()})}},{key:"className",get:function(){return"vcs.vcm.widgets.Drawing"}}]),Object(m["a"])(i,[{key:"activate",value:function(){ye(Object(fe["a"])(i.prototype),"activate",this).call(this)}},{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.layerEditor.deactivate()}},{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.initialized=!0;var t=gm.clone();this.options.style&&t.assign(new dt(this.options.style)),this.editingLayer=new _n({altitudeMode:"clampToGround",projection:ee,style:t,isDynamic:!0}),this.framework.addLayer(this.editingLayer),this.editingLayer.activate(),this.layerEditor=new vc({geometryLayerEditor:{allowEditMode:this.allowEditMode,defaultMode:this.defaultMode,allowedGeometries:this.allowedGeometries},featureLayerEditor:{allowSelectMode:this.allowSelectMode},styleLayerEditor:{}}),this.layerEditor.initialize(),this.layerEditor.addEditingLayer(this.editingLayer),this.initializedFinished()}return!0}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this),t=gm.clone();return this.options.style&&t.assign(new dt(this.options.style)),Object(tn["a"])(Object(tn["a"])({},e),{},{allowedGeometries:this.allowedGeometries,allowSelectMode:this.allowSelectMode,allowEditMode:this.allowEditMode,defaultMode:this.defaultMode,simpleStyleUi:this.editorOptions.simpleStyleUi,hideHelp:this.editorOptions.hideHelp,hideExport:this.editorOptions.hideExport,hideAltitudeMode:this.editorOptions.hideAltitudeMode,style:t.getOptions()})}}]),i}(Ys),pm=ym,vm=i(656),_m=i.n(vm);function bm(e){var t=e[_n.obliqueGeometry];if(t){var i=t.clone(),n=G.getInstance().getActiveMap();return wi(t,i,n.activeLayer.currentImage)}return Promise.resolve(null)}function Lm(e){return e<1e3?"".concat(e," kB"):e<1e6?"".concat(e/1e3," MB"):"".concat(e/1e6," GB")}var wm=i(679),Mm=i.n(wm),km=i(77),Om=i(680),Tm=i.n(Om),Sm=new ol.Sphere(6378137);function Cm(e,t){var i=e.clone();i.transform("EPSG:3857","EPSG:4326");var n=i.getType(),r=i.getCoordinates();if("Polygon"===n)return r.forEach(Un),Object(km["polygon"])(r,t);if("LineString"===n)return Object(km["lineString"])(r,t);if("Point"===n)return Object(km["point"])(r,t);if("Circle"===n){var a=Sm.haversineDistance(r[0],r[1]),s=Tm()(Object(km["point"])(r[0]),a);return s.properties=t||s.properties,s}if("MultiPolygon"===n)return r.forEach((function(e){e.forEach(Un)})),Object(km["multiPolygon"])(r);if("MultiPoint"===n)return Object(km["multiPoint"])(r);if("MultiLineString"===n)return Object(km["multiLineString"])(r);throw Error("unsupported geometry type ".concat(n))}var jm=k.getLogger("vcs.vcm.widgets.export.AbstractExportDataSource"),Em=function(){function e(t){Object(d["a"])(this,e),this.title=t.title,this.url=t.baseUrl?t.baseUrl.replace(/\/$/,""):"",this.resultLayerName="_exportResultLayer",this.initialized=!1,this.results=[]}return Object(m["a"])(e,[{key:"initialize",value:function(){return Promise.resolve()}},{key:"getResultLayer",value:function(){return G.getInstance().getLayerByName(this.resultLayerName)}},{key:"query",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i,n,r,a,s,l=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o(t,ol.Feature),this.initialized){e.next=4;break}return e.next=4,this.initialize();case 4:if(this.clear(),"vcs.vcm.maps.Oblique"!==G.getInstance().getActiveMap().className){e.next=11;break}return e.next=8,bm(t);case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0=t.getGeometry();case 12:if(i=e.t0,!i){e.next=22;break}if(n=new De(Object(tn["a"])({coordinates:i.getExtent()},ee.getConfigObject())),!n.isValid()){e.next=22;break}return r=Cm(i),e.next=19,this._getFeatureInExtent(n);case 19:a=e.sent.map((function(e){var t=Cm(e.getGeometry());if(!Mm()(t,r)){var i=l._getResultFromFeature(e);return l.results.push(i),e}return null})).filter((function(e){return e})),s=this.getResultLayer(),s&&s.addFeatures(a);case 22:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"clear",value:function(){this.results.splice(0);var e=this.getResultLayer();e&&e.removeAllFeatures()}},{key:"_getResultFromFeature",value:function(e){throw new Error("Implementation Error")}},{key:"_getFeatureInExtent",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}],[{key:"validateOptions",value:function(e){try{l(e.baseUrl,String),o(e.title,[String,Object])}catch(t){return jm.error(t.message),!1}return!0}}]),e}(),Im=Em,Dm=function(){function e(t){Object(d["a"])(this,e),this.title=t.title,this.featureId=t.featureId,this.fileSize=t.fileSize}return Object(m["a"])(e,[{key:"download",value:function(){return Promise.resolve()}}]),e}(),Pm=Dm;i(669);function Am(e,t){var i=document.createElement("a");i.download=t,i.href=e,a["a"].hasSameOrigin(e)||(i.target="_blank"),document.body.appendChild(i),i.click(),document.body.removeChild(i)}function xm(e,t){window.navigator.msSaveBlob?window.navigator.msSaveOrOpenBlob(e,t):Am(URL.createObjectURL(e),t)}function Ym(e,t){window.navigator.msSaveBlob?xm(new Blob([e]),t):Am("data:text/plain;charset=utf-8,".concat(encodeURIComponent(e)),t)}function Nm(e,t,i){null!=e.toBlob?e.toBlob((function(e){xm(e,t)}),i):window.navigator.msSaveBlob&&xm(e.msToBlob(),t)}var Fm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.href=e.href,n}return Object(m["a"])(i,[{key:"download",value:function(){return Am(this.href,""),Promise.resolve()}}]),i}(Pm),Rm=Fm,Hm=k.getLogger("vcs.vcm.widgets.export.GeoJSONExportDataSource"),Gm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.geojsonUrl=e.geojsonUrl,n.layerName=null,n}return Object(m["a"])(i,[{key:"getLayer",value:function(){return this.layerName?G.getInstance().getLayerByName(this.layerName):null}},{key:"initialize",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.initialized){e.next=2;break}return e.abrupt("return");case 2:return this.layerName?t=this.getLayer():(t=new rs({url:this.geojsonUrl,altitudeMode:"clampToGround"}),this.layerName=t.name,G.getInstance().addLayer(t),t.initialize()),e.next=5,t.fetchData();case 5:this.initialized=!0;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_getResultFromFeature",value:function(e){var t=e.getProperties();return new Rm({href:"".concat(this.url,"/").concat(t.url.replace(/^\//,"")),title:t.url,featureId:e.getId(),fileSize:t.fileSize?Lm(t.fileSize):null})}},{key:"_getFeatureInExtent",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=this.getLayer(),!i){e.next=3;break}return e.abrupt("return",i.source.getFeaturesInExtent(t.extent));case 3:return e.abrupt("return",[]);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}],[{key:"validateOptions",value:function(e){var t=Im.validateOptions(e);if(!t)return!1;try{o(e.geojsonUrl,String)}catch(i){return Hm.error(i.message),!1}return!0}}]),i}(Im),zm=Gm;function Bm(e){return/jpe?g$/i.test(e)?"image/jpeg":/png$/i.test(e)?"image/png":/tiff?$/i.test(e)?"image/tiff":""}function Vm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"jpg",i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;o(e,Ti["a"]),l(t,["jpg","jpeg","png","tif","tiff"]),l(i,Number),n&&o(n,{progress:Number});var r=e.view.clone();r.setImageName(e.name);var s=r.tileImageSource,c=s.getTileGrid(),u=s.getTileUrlFunction(),h=i?c.getResolutions().indexOf(i):c.getMaxZoom(),d=document.createElement("canvas"),m=c.getTileSize(h),f=e.size.slice();i&&(f[0]/=i,f[1]/=i),d.width=f[0],d.height=f[1];var g=d.getContext("2d"),y=[],p=0;return c.forEachTileCoord([0,0,e.size[0],e.size[1]],h,(function(e){var t=new Image;a["a"].hasSameOrigin(r.url)||(t.crossOrigin="anonymous"),y.push(new Promise((function(i,r){t.onload=function(){g.drawImage(t,0,0,m[0],m[1],e[1]*m[0],f[1]-(e[2]+1)*m[1],m[0],m[1]),p+=1,n&&(n.progress=p/y.length),i()},t.onerror=r}))),t.src=u(e)})),Promise.all(y).then((function(){Nm(d,"".concat(e.name,".").concat(t),Bm(t))}))}var Um=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.obliqueLayerName=e.obliqueLayerName,n.direction=e.direction,n.imageName=e.imageName,n.fileExtension=e.fileExtension,n.resolution=e.resolution,n.progress={progress:0},n}return Object(m["a"])(i,[{key:"download",value:function(){var e=this,t=G.getInstance().getLayerByName(this.obliqueLayerName),i=t.obliqueCollection.directions[this.direction.toString()].images[this.imageName];return Vm(i,this.fileExtension,this.resolution,this.progress).then((function(){e.progress.progress=0}))}}]),i}(Pm),Wm=Um,qm=k.getLogger("vcs.vcm.widgets.export.ObliqueExportDataSource"),Jm=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.dedicatedSource=Object(u["e"])(e.dedicatedSource,!1),n.obliqueLayerName=e.obliqueLayerName,n.fileExtension=e.fileExtension||"jpg",n.viewDirectionFilter=null,n.resolution=e.resolution,n}return Object(m["a"])(i,[{key:"initialize",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.initialized){e.next=2;break}return e.abrupt("return");case 2:return t=G.getInstance().getLayerByName(this.obliqueLayerName),e.next=5,t.initialize();case 5:this.initialized=!0;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getUriForImage",value:function(e){return"".concat(this.url,"/").concat(e,".").concat(this.fileExtension)}},{key:"_getResultFromFeature",value:function(e){var t=e.getId();return this.dedicatedSource?new Rm({title:t,href:this.getUriForImage(t),featureId:t}):new Wm({title:t,featureId:t,obliqueLayerName:this.obliqueLayerName,imageName:t,direction:e.get("direction"),fileExtension:this.fileExtension,resolution:this.resolution})}},{key:"_getFeatureInExtent",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i,n,r,a,s,o,l,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=G.getInstance().getLayerByName(this.obliqueLayerName),n=i.obliqueCollection,!n.isTiled){e.next=7;break}return r=n.tileFootPrintsSource.getFeaturesInExtent(t.extent),a=r.map((function(e){return n.loadTile(e.getId())})),e.next=7,Promise.all(a);case 7:if(s=n.directions,!this.viewDirectionFilter){e.next=14;break}if(o=s[this.viewDirectionFilter],!o){e.next=12;break}return e.abrupt("return",o.footPrintsLayer.getSource().getFeaturesInExtent(t.extent));case 12:e.next=16;break;case 14:return c=Object.values(s).map((function(e){return e.footPrintsLayer.getSource().getFeaturesInExtent(t.extent)})),e.abrupt("return",(l=[]).concat.apply(l,Object(g["a"])(c)));case 16:return e.abrupt("return",[]);case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}],[{key:"validateOptions",value:function(e){var t=Im.validateOptions(e);if(!t)return!1;try{o(e.obliqueLayerName,String),o(G.getInstance().getLayerByName(e.obliqueLayerName),Yi),l(e.fileExtension,String),l(e.resolution,Number)}catch(i){return qm.error(i.message),!1}return!0}}]),i}(Im),Km=Jm,Zm={GEOJSON:"geojson",OBLIQUE:"oblique"};function Qm(e){return e.type===Zm.GEOJSON&&zm.validateOptions(e)?new zm(e):e.type===Zm.OBLIQUE&&Km.validateOptions(e)?new Km(e):null}var Xm=[{type:"2D Shape",texture:!1,localCoordinates:!1,genericAttributes:!0},{type:"3D Shape - PolygonZ",texture:!1,localCoordinates:!1,genericAttributes:!0},{type:"3D Shape - Multipatch",texture:!1,localCoordinates:!1,genericAttributes:!0},{type:"ESRI FGDB",texture:!1,localCoordinates:!1,genericAttributes:!0},{type:"KMZ",texture:!0,localCoordinates:!1,genericAttributes:!1},{type:"CityGML",texture:!0,localCoordinates:!1,genericAttributes:!0},{type:"DXF",texture:!1,localCoordinates:!0,genericAttributes:!1},{type:"DWG",texture:!1,localCoordinates:!0,genericAttributes:!1},{type:"3DS",texture:!0,localCoordinates:!0,genericAttributes:!1},{type:"SketchUp",texture:!0,localCoordinates:!0,genericAttributes:!1},{type:"OBJ",texture:!0,localCoordinates:!0,genericAttributes:!1},{type:"VRML",texture:!0,localCoordinates:!0,genericAttributes:!1},{type:"COLLADA",texture:!0,localCoordinates:!0,genericAttributes:!1},{type:"3DPDF",texture:!0,localCoordinates:!1,genericAttributes:!1},{type:"FMEAR",texture:!0,localCoordinates:!1,genericAttributes:!1}];function $m(e){return Array.isArray(e)?e.map((function(e){return"string"===typeof e?Xm.find((function(t){return t.type===e})):e})).filter((function(e){return e})):null}var ef,tf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.showFreeFormCrsInput=Object(u["e"])(e.showFreeFormCrsInput,r.showFreeFormCrsInput),n.dataProjection=e.dataProjection?new X(e.dataProjection):n.framework.projection;var a=n.dataProjection?n.dataProjection.epsg:"";n.coordinateSystem=e.coordinateSystem||a,n.heightMode=e.heightMode||r.heightMode;var s=e.formats&&Array.isArray(e.formats)?e.formats:r.formats;n.formatOptions=$m(s),n.lodOptions=e.lod||r.lod,n.citygmlclassesOptions=e.citygmlclasses||r.citygmlclasses,n.appearanceThemesOptions=e.appearanceThemes||r.appearanceThemes,n.maxArea=Object(u["h"])(e.maxarea,r.maxarea),n.serverUrl=e.serverUrl||r.serverUrl,n.token=e.securityToken&&""!==e.securityToken?e.securityToken:null;var o=mt.clone();e.style&&o.assign(new dt(e.style)),n._layerOptions={projection:ee,name:"_exportLayer",classificationType:e.classificationType||r.classificationType,altitudeMode:"clampToGround",style:o},n.singleFeatureId=Object(u["c"])();var l=e.dataSources||r.dataSources;return n.dataSources=l.map((function(e){return Qm(e)})).filter((function(e){return e})),n.disableWarehouse=Object(u["e"])(e.disableWarehouse,r.disableWarehouse),n.allowTerrainExport=Object(u["e"])(e.allowTerrainExport,r.allowTerrainExport),n.terrainUrl=e.terrainUrl,n.terrainZoomLevel=Object(u["h"])(e.terrainZoomLevel,-1),n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{showFreeFormCrsInput:!1,dataProjection:void 0,coordinateSystem:void 0,heightMode:"absolute",formats:Xm.map((function(e){return e.type})).sort(),lod:["LoD1","LoD2","LoD3","LoD4","haLoD"].sort(),citygmlclasses:["26","7","14","5","21","85","64","45","43","46","8","9","4"].sort(),appearanceThemes:["rgbTexture"],maxarea:2e6,securityToken:"",serverUrl:"http://fmeserver/fmedatadownload/Repository/workbench.fmw",dataSources:[],disableWarehouse:!1,classificationType:"both",allowTerrainExport:!0,style:tt()})}},{key:"className",get:function(){return"vcs.vcm.widgets.Export"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;if(this.geometryLayer=new _n(this._layerOptions),this.resultLayer=new _n({projection:ee,name:"_exportResultLayer",classificationType:"both",altitudeMode:"clampToGround",allowPicking:!1}),this.framework.addLayer(this.geometryLayer),this.framework.addLayer(this.resultLayer),this.layerEditor=new sc({allowedGeometries:["Polygon","BBox"],defaultMode:"edit"}),this.layerEditor.initialize(),this.layerEditor.addEditingLayer(this.geometryLayer),!this.disableWarehouse&&null==this.token)return this.logger.warning("Could not authentificate FME: missing security token"),!1;this.initialized=!0,this.initializedFinished()}return!0}},{key:"validateFeature",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("vcs.vcm.maps.Oblique"!==this.framework.getActiveMap().className){e.next=6;break}return e.next=3,bm(t);case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=t.getGeometry();case 7:if(i=e.t0,i&&"Polygon"===i.getType()){e.next=10;break}throw new Error("i18n_export_geometry_error");case 10:if(null==this.maxArea){e.next=14;break}if(n=ol.Sphere.getArea(i),!(n>this.maxArea)){e.next=14;break}throw new Error("i18n_export_maxArea_error");case 14:return e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"prepareRequestAndSend",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i,n){var r,a,s,o,l,c,h,d,m,f,g;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.token||n){e.next=2;break}throw new Error("i18n_export_authentification_error");case 2:if(t.cityGmlClasses&&0!==t.cityGmlClasses.length){e.next=4;break}throw new Error("i18n_export_themclass_error");case 4:if(r={COORD_SYS:t.crs||(Array.isArray(this.coordinateSystem)?this.coordinateSystem[0]:this.coordinateSystem),HEIGHT_MODE:this.heightMode,TOKEN:n||this.token,OPT_SERVICEMODE:"async"},r.EXPORT_FORMAT=t.format.type,r.THEM_CLASS=t.cityGmlClasses.map((function(e){return e.value})),t.format.texture&&(r.TEXTURE=t.texture?"Yes":"No"),t.format.localCoordinates&&(r.LOCAL=t.localCoordinates?"Yes":"No"),t.format.genericAttributes&&(r.GENERIC_ATTRIB=t.genericAttributes?"Yes":"No"),r.APP_THEME=t.appearance||"none",r.LOD_SELECTION=t.level,r.TERRAIN="No",this.allowTerrainExport&&t.terrainExport&&"2D Shape"!==t.format.type&&(a=this.framework.getLayers().find((function(e){return"vcs.vcm.layer.cesium.Terrain"===e.className&&e.active})),this.terrainUrl?(r.TERRAIN="Yes",r.LAYER_JSON=this.terrainUrl):a&&(r.TERRAIN="Yes",s=new _m.a(window.location.href),o=new _m.a(a.url,s).toString(),l=/layer.json/.test(o)?o:"".concat(o,"/layer.json"),r.LAYER_JSON=l),this.terrainZoomLevel>=0&&(r.ZOOM=this.terrainZoomLevel)),!t.useFeatureGeometry){e.next=27;break}if(r.SELECTION="Polygon",c=this.geometryLayer.getFeatureById(this.singleFeatureId),c){e.next=19;break}throw new Error("i18n_export_geometry_error");case 19:return e.next=21,this.validateFeature(c);case 21:h=c.getGeometry().clone(),h.transform(ee.proj,this.dataProjection.proj),d=h.getCoordinates()[0],r.POLYGON=d.map((function(e){var t=Object(Oe["a"])(e,2),i=t[0],n=t[1];return"".concat(i,",").concat(n)})).join(";"),e.next=32;break;case 27:if(m=this.framework.getSelectBehavior(),!(m.getSelectionSet().length<=0)){e.next=30;break}throw new Error("i18n_export_feature_error");case 30:r.SELECTION="Einzelobjekte",r.GMLID=m.getSelectionSet();case 32:if(Object(u["d"])(t.email)){e.next=34;break}throw new Error("i18n_export_email_error");case 34:return r.OPT_REQUESTEREMAIL=t.email,f=Object.keys(r).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(r[e]))})).join("&"),g=i||this.serverUrl,e.abrupt("return",q.a.post(g,f,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}));case 38:case"end":return e.stop()}}),e,this)})));function t(t,i,n){return e.apply(this,arguments)}return t}()},{key:"getCitygmlClassOptions",value:function(){var e={26:"Building",7:"SolitaryVegetationObjects",5:"GenericCityObject",21:"CityFurniture",14:"ReliefFeature",85:"Tunnel",64:"Bridge",45:"Road",43:"Track",46:"Square",8:"Plant Cover",9:"WaterBody",4:"LandUse"},t={85:!0,45:!0,43:!0,46:!0,8:!0,9:!0,4:!0};return this.citygmlclassesOptions.map((function(i){return{value:i,title:e[i],citygmlOnly:t[i]}})).filter((function(e){return e.title}))}},{key:"deactivate",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.framework.getSelectBehavior().deactivateClickBehavior())}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.formats=this.formatOptions,e.coordinateSystem=this.coordinateSystem,e.heightMode=this.heightMode,e.lod=this.lodOptions,e.citygmlclasses=this.citygmlclassesOptions,e.appearanceThemes=this.appearanceThemesOptions,e.maxarea=this.maxArea,e.serverUrl=this.serverUrl,e.securityToken=this.token,e}}]),i}(Ys),nf=tf,rf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.layers=new Set,n._setLayers(e.layerTypes,e.layers,e.excludedLayers),n.headerTemplate=e.headerTemplate?n._makeHeaderTemplate(e.headerTemplate):null,n.itemTemplate=e.itemTemplate||r.itemTemplate,Array.isArray(n.itemTemplate)&&(n.itemTemplate=n.itemTemplate.join("")),n.layerTemplateMap={},Array.isArray(e.layerTemplates)&&e.layerTemplates.forEach(n._setLayerTemplates,Object(gt["a"])(n)),n.queryProperties=e.queryProperties||r.queryProperties,n.values={currentHeader:n.headerTemplate,query:!0},n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{layerTypes:void 0,layers:void 0,excludedLayers:void 0,headerTemplate:void 0,itemTemplate:["
","<%= data.feature.properties.name %>","<% if(data.feature.properties.website){ %>","
<%= data.feature.properties.website %>","<% } %>","
","
","
","<%= data.feature.properties.street %>
<%= data.feature.properties.zip %> <%= data.feature.properties.city %>
","
"],layerTemplates:void 0,queryProperties:["name"]})}},{key:"className",get:function(){return"vcs.vcm.widgets.FeatureList"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return;var t=function e(t){t.children?t.children.forEach(e,this):this.layers.has(t.layerName)&&(t.hasFeatureListView=!0)},n=this.framework.getWidgetsByType(ko.className)[0];n&&n.cluster.forEach(t,this),this.initialized=!0,this.initializedFinished()}}},{key:"_setLayers",value:function(e,t,i){e&&this.framework.getLayers().filter((function(t){return e.includes(t.className)&&!/^_/.test(t.name)})).forEach((function(e){this.layers.add(e.name)}),this),t&&t.forEach((function(e){this.layers.add(e)}),this),i&&i.forEach((function(e){this.layers.delete(e)}),this)}},{key:"_setLayerTemplates",value:function(e){var t=e.layers,i=e.itemTemplate,n=e.headerTemplate;i=Array.isArray(i)?i.join(""):i;var r={item:i,header:n?this._makeHeaderTemplate(n):this.headerTemplate,queryProperties:e.queryProperties||this.queryProperties};t.filter((function(e){return this.layers.has(e)}),this).forEach((function(e){this.layerTemplateMap[e]=r}),this)}},{key:"_makeHeaderTemplate",value:function(e){return Array.isArray(e)?e.join(""):("object"===Object(s["a"])(e)&&(e=e,Object.keys(e).forEach((function(t){e[t]=Array.isArray(e[t])?e[t].join(""):e[t]}))),e)}},{key:"getItems",value:function(e){if(!this.layers.has(e))return this.logger.warning("Could not render listview for layer ".concat(e,". Please check your configuration.")),null;var t=this.framework.getLayerByName(e),i=t.getFeatures(),n=this.layerTemplateMap[e]?this.layerTemplateMap[e]:{item:this.itemTemplate,header:this.headerTemplate,queryProperties:this.queryProperties};this.values.currentHeader=n.header,this.values.query=!!n.queryProperties.length;var r=i.map((function(e){var t=e.getProperties();return delete t[e.getGeometryName()],{id:e.getId(),properties:t,query:n.queryProperties.reduce((function(t,i){var n=e.get(i);return null!=n?t+" "+n.toString():t}),"")}}));return r.map((function(e,t){return{template:Fr()(n.item)({data:{featureCount:t+1,feature:e}}),id:e.id,query:e.query}}))}}]),i}(Ys),af=rf,sf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.type=e.type||i.measurementType,n=t.call(this,e),n.segmentDistance=[],n.values.distance="0",n.values.estimate=!1,n.label=n.addLabel(),n._createFeature({geometryType:"LineString",startPosition:e.startPosition}),n}return Object(m["a"])(i,null,[{key:"measurementType",get:function(){return ya.DISTANCE}}]),Object(m["a"])(i,[{key:"geometryChangedCallback",value:function(e){var t=this,i=e.target.getCoordinates(),n=i.length;if(n>1&&(i[0][0]!==i[1][0]||i[0][1]!==i[1][1])){this.values.isValid=this.values.isValid||n>2,this.label.getGeometry().setCoordinates(i[n-1]);var r,a=Promise.resolve([]);if(this.map instanceof Fi){r=new Array(n);var s=i.map((function(e,i){return Object(Wt["e"])(t.map.activeLayer.currentImage,e,{dataProjection:ol.proj.get("EPSG:4326")}).then((function(e){r[i]=e.coords,t.values.estimate=e.estimate}))}));a=Promise.all(s)}else{for(var o=0;o2){this.values.isValid=this.values.isValid||n>3;for(var a=0;a2&&(this.values.isValid=!0),this.values.isValid){if(this.parent.geometryEditor.state.mode===ln.CREATE&&this.parent.geometryEditor.setMode(ln.EDIT),i.length<2)return void this.parent.removeMeasurement(this);var n=i[0][2]1&&(t[0][0]!==t[1][0]||t[0][1]!==t[1][1])){this.values.isValid=this.values.isValid||i>2,this.label.getGeometry().setCoordinates(t[i-1]),this.segmentDistance=new Array(i-1);var n=0;X.mercatorToWgs84(t[0],!0),wf=Cesium.Cartesian3.fromDegrees(t[0][0],t[0][1],t[0][2],void 0,wf);for(var r=1;r3||this.values.isValid){this.values.isValid=!0;for(var a=new Array(n),s=new Array(n),o=i[0][2],l=0,c=0;co?i[c][2]:o,X.mercatorToWgs84(i[c],!0),a[c]=Cesium.Cartesian3.fromDegrees(i[c][0],i[c][1],i[c][2]),s[c]=Cesium.Cartesian2.fromCartesian3(a[c]),c&&(l+=Cesium.Cartesian3.distance(a[c-1],a[c]));l+=Cesium.Cartesian3.distance(a[n-1],a[0]);for(var u=Cesium.PolygonPipeline.triangulate(s),h=u.length,d=0;de+.5)&&(this.values.heading=e)}},{key:"activateForOpenlayers",value:function(){this.initializedForOpenlayers||(this.ol3MapObject=this.framework.getActiveMap(),this.ol3Map=this.ol3MapObject.olMap,this.ol3Map.on("postrender",this.postRenderHandlerOpenlayers.bind(this)),this.initializedForOpenlayers=!0)}},{key:"postRenderHandlerOpenlayers",value:function(){var e=this.framework.getActiveMap();if(e){var t=e.getViewPoint(!1);t&&(this.values.heading=t.heading)}}},{key:"activateForOblique",value:function(){this.initializedForOblique||(this.framework.subscribe(O.OBLIQUE_IMAGE_CHANGED,this.obliqueImageChange,this),this.initializedForOblique=!0);var e=this.framework.getActiveMap(),t=e.activeLayer;t&&t.currentImage&&this.obliqueImageChange(t)}},{key:"obliqueImageChange",value:function(e,t){var i,n=t||e.currentImage,r=(i={},Object(U["a"])(i,h["a"].NORTH,0),Object(U["a"])(i,h["a"].EAST,90),Object(U["a"])(i,h["a"].SOUTH,180),Object(U["a"])(i,h["a"].WEST,270),i);this.values.heading=n.viewDirectionAngle?90-Cesium.Math.toDegrees(n.viewDirectionAngle):r[n.viewDirection]}},{key:"computeNewGroundPosition",value:function(e,t){var i=t.groundPosition,n=this.calculateBearing(e,t.heading),r=t.distance/this.moveFactor,a=qt([i[0],i[1]],r,n);return a[2]=i[2],a}},{key:"calculateBearing",value:function(e,t){var i;return i="north"===e?t:"east"===e?t+90:"south"===e?t+180:"west"===e?t+270:t,i%=360,i}},{key:"computeNewCameraPosition",value:function(e,t){var i=t.cameraPosition,n=this.calculateBearing(e,t.heading),r=2e3/this.moveFactor,a=qt([i[0],i[1]],r,n);return a[2]=i[2],a}},{key:"moveButtonPressed",value:function(e){var t=this;if(this.navigationMode.navActive)this.navigationMode.flags[Nf[e]]=!0;else{var i=this.framework.getActiveMap();if(this.obliqueMoveImage&&i instanceof Fi){if(this._obliqueMoving||!i.activeLayer)return;var n=i.activeLayer.currentDirection;this._obliqueMoving=!0,i.getViewPoint(null,!0).then((function(n){var r=n.heading,a=t.calculateBearing(e,r);return i.activeLayer.getImageIdInDirection(a,t.obliqueMoveImageDirectionDeviation)})).then((function(e){return e?n.setImageOnMap(e):e})).catch((function(e){t.logger.warning(e.message)})).then((function(){t._obliqueMoving=!1}))}else i.getViewPoint(null,!0).then((function(n){n.groundPosition?(n.groundPosition=t.computeNewGroundPosition(e,n),n.cameraPosition=null):(n.cameraPosition=t.computeNewCameraPosition(e,n),n.groundPosition=null),n.animate=t.animation,n.duration=t.animationDuration,i.gotoViewPoint(n)}))}}},{key:"moveButtonUp",value:function(e){this.navigationMode.navActive&&(this.navigationMode.flags[Nf[e]]=!1)}},{key:"compassPointerClicked",value:function(e){var t=this;this.navigationMode.navActive?this.navigationMode.heading=e:this.framework.getActiveMap().getViewPoint(!0,!0).then((function(i){i.heading=e,i.animate=!0,i.roll=0,i.groundPosition&&(i.cameraPosition=null),t.framework.getActiveMap().gotoViewPoint(i,1,0)}))}},{key:"compassPointerDown",value:function(){var e=this.framework.getActiveMap().getViewPoint();e.animate=!1,e.groundPosition&&(e.cameraPosition=null),this.compassPointerPressedViewpoint=e}},{key:"compassPointerDragged",value:function(e){this.navigationMode.navActive?this.navigationMode.heading=e:this.compassPointerPressedViewpoint&&(this.compassPointerPressedViewpoint.heading=e,this.framework.getActiveMap().gotoViewPoint(this.compassPointerPressedViewpoint,1,0))}},{key:"fovButtonPressed",value:function(e){this.navigationMode.navActive&&(this.navigationMode.flags[Nf[e]]=!0)}},{key:"fovButtonUp",value:function(e){this.navigationMode.navActive&&(this.navigationMode.flags[Nf[e]]=!1)}},{key:"zoomButtonPressed",value:function(e){var t=this;this.navigationMode.navActive||this.framework.getActiveMap().getViewPoint(null,!0).then((function(i){i.distance="zoomIn"===e?i.distance/t.zoomFactor:i.distance*t.zoomFactor,i.animate=t.animation,i.duration=t.animationDuration,i.cameraPosition=null,t.framework.getActiveMap().gotoViewPoint(i)}))}},{key:"tiltButtonPressed",value:function(e){if(this.navigationMode.navActive)this.navigationMode.flags[Nf[e]]=!0;else if(this.framework.getActiveMap()instanceof Ut){var t=this.framework.getActiveMap().getViewPoint(),i=t.pitch,n=i;if(n="tiltUp"===e?i-this.tiltFactor:i+this.tiltFactor,n>-10&&(n=-10),n<-90&&(n=-90),t.pitch=n,t.animate=this.animation,t.duration=this.animationDuration,!t.groundPosition)return;t.cameraPosition=null,this.framework.getActiveMap().gotoViewPoint(t)}}},{key:"tiltButtonUp",value:function(e){this.navigationMode.navActive&&(this.navigationMode.flags[Nf[e]]=!1)}},{key:"rotateButtonPressed",value:function(e){if(this.navigationMode.navActive)this.navigationMode.flags[Nf[e]]=!0;else{var t=this.framework.getActiveMap();if(t instanceof Ut||t instanceof Vi&&!t.fixedNorthOrientation){var i=this.framework.getActiveMap().getViewPoint(),n=i.heading,r=n;if("rotateEast"===e?r+=10:r-=10,i.heading=r,i.animate=this.animation,!i.groundPosition)return;i.cameraPosition=null,this.framework.getActiveMap().gotoViewPoint(i,this.animationDuration,0)}}}},{key:"rotateButtonUp",value:function(e){this.navigationMode.navActive&&(this.navigationMode.flags[Nf[e]]=!1)}},{key:"rotateCenterClicked",value:function(){var e=this.framework.getActiveMap();e instanceof Ut&&(this.rotationActive?this.navigationMode.navActive?(this.navigationMode.flags.rotation=!1,this.rotationActive=!1,this.values.rotation=!1):this.rotateAroundCenterPosition(e,!1):this.navigationMode.navActive?(this.navigationMode.flags.rotation=!0,this.rotationActive=!0,this.values.rotation=!0):this.rotateAroundCenterPosition(e,!0))}},{key:"rotateAroundCenterPosition",value:function(e,t){var i=e.getCesiumWidget(),n=i.scene;if(t!==this.rotationActive)if(t){var r=this.framework.getActiveMap().getViewPoint();r.groundPosition&&(this.rotationActive=!0,this.values.rotation=!0,r.cameraPosition=null,this.cesiumRotateCenterBind=this.rotateCenter.bind(this,r),n.postRender.addEventListener(this.cesiumRotateCenterBind))}else this.cesiumRotateCenterBind&&(n.postRender.removeEventListener(this.cesiumRotateCenterBind),this.cesiumRotateCenterBind=null,this.rotationActive=!1,this.values.rotation=!1)}},{key:"rotateCenter",value:function(e){var t=this.timeLastTick?this.cesiumViewer.clock.currentTime.secondsOfDay-this.timeLastTick.secondsOfDay:1/60;(t<=0||t>1)&&(t=1/60);var i=t/(1/60);this.timeLastTick=this.cesiumViewer.clock.currentTime;var n=360/(60*this.timePerRotation/i);e.heading=e.heading+n,this.framework.getActiveMap().gotoViewPoint(e)}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.zoomFactor=this.zoomFactor,e.moveFactor=this.moveFactor,e.tiltFactor=this.tiltFactor,e.animationDuration=this.animationDuration,e.animation=this.animation,e.showZoomButtons=this.showZoomButtons,e.showTiltButtons=this.showTiltButtons,e.showHomeButton=this.showHomeButton,e.pedestrianMode=this.pedestrianMode,e.pedestrianModeReferenceHeight=this.pedestrianModeReferenceHeight,e.showCompass=this.showCompass,e.rotationPerFrame=this.rotationPerFrame,e.walkModeMoveFactor=this.walkModeMoveFactor,e}},{key:"dispose",value:function(){document.removeEventListener("keyup",this.keyUpListener.bind(this),!1),document.removeEventListener("keydown",this.keyDownListener.bind(this),!1)}},{key:"getValuesObject",value:function(){return this.logger.deprecate("getValuesObject","access the values property."),this.values}},{key:"mapClicked",value:function(e){if(e&&e.longitude&&e.latitude&&e.height){var t=[e.longitude,e.latitude,e.height];t[2]+=Number.parseFloat(this.values.referenceHeight);var i=this.framework.getActiveMap().getViewPoint();i.animate=!0,i.groundPosition=t,i.cameraPosition=null,i.distance=0,i.pitch=0,i.roll=0,this.navigationMode.activateFirstPersonMode(i),this.framework.getMapContainer().style.cursor="auto",this.mapClickListenerKey=null}}},{key:"activateNavigationMode",value:function(e){if(e)if(null==this.mapClickListenerKey){var t=function(e){var t=encodeURIComponent(e).replace(/%20/g," ").replace(/%3D/g,"=").replace(/%3A/g,":").replace(/%2F/g,"/").replace(/%22/g,"'");return"data:image/svg+xml,".concat(t)},i='\n\t';this.framework.getMapContainer().style.cursor='url("'.concat(t(i),'"), pointer'),this.mapClickListenerKey=this.framework.subscribeOnceExclusive("MAP_CLICKED",this.mapClicked.bind(this),"walkMode",this.activateNavigationMode.bind(this,!0))}else this.framework.unsubscribeByKey(this.mapClickListenerKey),this.mapClickListenerKey=null,this.framework.getMapContainer().style.cursor="auto";else this.navigationMode.activateOverviewMode()}},{key:"setReferenceHeight",value:function(e){this.values.referenceHeight=e}}]),i}(Ys),Rf=Ff,Hf=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.initialized=!1,n.mapContainerId=e.containerId||r.containerId,n.imageStyle=new ol.style.Icon({src:e.cameraIcon||r.cameraIcon,anchor:e.anchorPosition||r.anchorPosition}),n.singleVectorObliqueResolutionFactor=Object(u["h"])(e.singleVectorObliqueResolutionFactor,r.singleVectorObliqueResolutionFactor),n.activeOnStartup=Object(u["e"])(e.activeOnStartup,r.activeOnStartup);var a=Object.assign({},r.oblique,e.oblique||{});n.showOnlyActiveObliqueTile=Object(u["e"])(a.showOnlyActiveTile,r.oblique.showOnlyActiveTile);var s=a.unselectedStyle,o=a.selectedStyle;return n.unselectedObliqueTileStyle=new ol.style.Style({fill:s.fill?new ol.style.Fill(s.fill):null,stroke:s.stroke?new ol.style.Stroke(s.stroke):null}),n.selectedObliqueTileStyle=new ol.style.Style({fill:o.fill?new ol.style.Fill(o.fill):null,stroke:o.stroke?new ol.style.Stroke(o.stroke):null}),n.featureSet=!1,n.layerName=e.layerName||null,n.selectInteraction=null,n.layer=null,n.vectorSource=new ol.source.Vector({}),n.overviewMap=null,n.activeListener=null,n.oblique=!1,n.values={active:!1},n.initialized=!1,n._cachedViewPoint=null,n.minimumHeight=Object(u["h"])(e.minimumHeight,r.minimumHeight),n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{containerId:"vcm_overviewmap_container",cameraIcon:"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==",anchorPosition:[.5,.5],singleVectorObliqueResolutionFactor:2,activeOnStartup:!1,oblique:{showOnlyActiveTile:!1,unselectedStyle:{fill:{color:"rgba(255, 255, 255, 0.1)"},stroke:{color:"rgb(168, 192, 43)",width:1}},selectedStyle:{fill:{color:"rgba(255, 255, 255, 0.8)"},stroke:{color:"rgb(168, 192, 43)",width:3}}},layerName:void 0,minimumHeight:150})}},{key:"className",get:function(){return"vcs.vcm.widgets.OverviewMap"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e||!this.layerName)return!1;this.layer=this.framework.getLayerByName(this.layerName);try{o(this.layer,[ds,_s,Ls,us])}catch(t){return!1}this.mapActivatedSubscribeKey=this.framework.subscribe(O.MAP_ACTIVATED,this.resetOverviewWidget.bind(this)),this.initialized=!0,this.initializedFinished()}return!0}},{key:"resetOverviewWidget",value:function(){this.values.active&&(this.deactivate(),this.activate())}},{key:"createMap",value:function(){var e=this,t=this.layer.getImplementationObject(Vi.className),i=t.getOLLayer(),n=new ol.layer.Vector({source:this.vectorSource});return this.overviewMap=new ol.Map({target:this.mapContainerId,layers:[i,n],controls:[],interactions:[new ol.interaction.DragPan({kinetic:new ol.Kinetic(-.005,.05,100)})],renderer:"canvas"}),i.setVisible(!0),this.overviewMap.setSize([320,190]),new Promise((function(t){e.overviewMap.once("postrender",t)}))}},{key:"updateSize",value:function(){this.overviewMap&&(this.overviewMap.updateSize(),this.oblique||this.addCameraFeature())}},{key:"activate",value:function(){var e=this;this.values.active=!0;var t=this.overviewMap?Promise.resolve():this.createMap();t.then((function(){ye(Object(fe["a"])(i.prototype),"activate",e).call(e),e.overviewMap.once("postcompose",e.updateSize,e);var t=e.framework.getActiveMap();t instanceof Ut?e.initializeForCesium(t):t instanceof Vi?e.initializeForOpenlayers(t):t instanceof Fi&&e.initializeForOblique(t)}))}},{key:"deactivate",value:function(){this.activeListener&&(this.activeListener(),this.activeListener=null),ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.values.active=!1,this.vectorSource.clear(),this.featureSet=!1}},{key:"initializeForCesium",value:function(e){if(e.initialized){var t=e.getCesiumWidget(),i=t.scene;this.addCameraFeature();var n=this._addNavigationListener(e),r=i.postRender.addEventListener(this.addCameraFeature,this);this.activeListener=function(){r(),ol.Observable.unByKey(n)}}}},{key:"initializeForOpenlayers",value:function(e){var t=e.olMap;this.addCameraFeature();var i=this._addNavigationListener(e),n=t.on("postrender",this.addCameraFeature,this);this.activeListener=function(){ol.Observable.unByKey(n),ol.Observable.unByKey(i)}}},{key:"initializeForOblique",value:function(e){var t=this;this.vectorSource.clear();var i=[];i.push(new ol.interaction.MouseWheelZoom),i.push(new ol.interaction.PinchZoom),i.push(new ol.interaction.DragZoom),this.selectInteraction=new ol.interaction.Select({style:this.selectedObliqueTileStyle}),i.push(this.selectInteraction),i.forEach((function(e){t.overviewMap.addInteraction(e)}));var n=this.overviewMap.on("singleclick",(function(e){t.overviewMap.hasFeatureAtPixel(e.pixel)?t.overviewMap.forEachFeatureAtPixel(e.pixel,(function(i,n){var r=i.getId().toString();return n===t.obliqueCollection.tileFootPrintsLayer?(t.obliqueCollection.loadTile(r).then((function(){t.overviewMap.renderSync(),t.overviewMap.dispatchEvent(e)})),e.stopPropagation()):t.obliqueDirection.setImageOnMap(r),!0})):e.stopPropagation()}));e.activeLayer&&(this.obliqueDirectionChange(e.activeLayer),this.obliqueImageChange(e.activeLayer),this.obliqueCollection=e.activeLayer.obliqueCollection,this.obliqueCollection.isTiled&&(this.obliqueCollection.tileFootPrintsLayer.setStyle(this.unselectedObliqueTileStyle),this.overviewMap.addLayer(this.obliqueCollection.tileFootPrintsLayer)));var r=[];r.push(this.framework.subscribe(O.LAYER_ACTIVATED,this.obliqueLayerActivated,this)),r.push(this.framework.subscribe(O.LAYER_DEACTIVATED,this.obliqueLayerDeactivated,this)),r.push(this.framework.subscribe(O.OBLIQUE_DIRECTION_CHANGED,this.obliqueDirectionChange,this)),r.push(this.framework.subscribe(O.OBLIQUE_IMAGE_CHANGED,this.obliqueImageChange,this)),this.activeListener=function(){t.obliqueDirection&&t.overviewMap.removeLayer(t.obliqueDirection.footPrintsLayer),t.obliqueCollection.isTiled&&t.overviewMap.removeLayer(t.obliqueCollection.tileFootPrintsLayer),i.forEach((function(e){t.overviewMap.removeInteraction(e)})),r.forEach((function(e){t.framework.unsubscribeByKey(e)})),ol.Observable.unByKey(n),t.oblique=!1},this.oblique=!0}},{key:"obliqueLayerDeactivated",value:function(e){e instanceof Yi&&(this.selectInteraction.getFeatures().clear(),this.obliqueDirection&&this.overviewMap.removeLayer(this.obliqueDirection.footPrintsLayer),this.obliqueCollection.isTiled&&this.overviewMap.removeLayer(this.obliqueCollection.tileFootPrintsLayer))}},{key:"obliqueLayerActivated",value:function(e){e instanceof Yi&&(this.obliqueDirectionChange(e),this.obliqueImageChange(e),this.obliqueCollection=e.obliqueCollection,this.obliqueCollection.isTiled&&(this.obliqueCollection.tileFootPrintsLayer.setStyle(this.unselectedObliqueTileStyle),this.overviewMap.addLayer(this.obliqueCollection.tileFootPrintsLayer)))}},{key:"obliqueDirectionChange",value:function(e,t){var i=this;if(this.obliqueDirection&&this.overviewMap.removeLayer(this.obliqueDirection.footPrintsLayer),this.obliqueDirection=t||e.currentDirection,this.obliqueDirection){var n=this.obliqueDirection.footPrintsLayer;this.showOnlyActiveObliqueTile?n.setStyle((function(e){var t=i.obliqueDirection.currentImage;return t&&e.getId()===t.name?i.unselectedObliqueTileStyle:null})):n.setStyle(this.unselectedObliqueTileStyle),this.overviewMap.addLayer(n)}}},{key:"obliqueImageChange",value:function(e,t){if(this.obliqueDirection){var i=t||e.currentImage,n=this.selectInteraction.getFeatures();n.clear();var r=this.obliqueDirection.footPrintsLayer.getSource().getFeatureById(i.name);if(r){this.selectInteraction.getFeatures().push(r),this.overviewMap.getView().fit(r.getGeometry().getExtent());var a=this.overviewMap.getView().getResolution();this.overviewMap.getView().setResolution(a*this.singleVectorObliqueResolutionFactor)}}}},{key:"_detectChange",value:function(e,t,i){var n=!0;if(this.featureSet&&this._cachedViewPoint){var r=this._cachedViewPoint.position.some((function(t,i){return e[i]!==t}));n=r||this._cachedViewPoint.heading!==t||this._cachedViewPoint.distance!==i}return n&&(this._cachedViewPoint={position:e,heading:t,distance:i}),n}},{key:"_addNavigationListener",value:function(e){return this.overviewMap.on("singleclick",(function(t){var i=e.getViewPoint(),n=i.groundPosition[2]?i.groundPosition[2]:0;i.groundPosition=[].concat(Object(g["a"])(K(t.coordinate)),[n]),i.cameraPosition=null,e.gotoViewPoint(i)}))}},{key:"addCameraFeature",value:function(){var e=this.framework.getActiveMap().getViewPoint();if(e&&e.isValid()){var t=e.groundPosition,i=e.cameraPosition||t,n=e.heading,r=e.distance;!i[2]||r&&r<4*i[2]||(r=4*i[2]);var a=!this._detectChange(i,n,r);if(!a){var s=Ce.getInstance();if(s.values.walkmode&&(r=s.referenceHeight),r=r>this.minimumHeight?r:this.minimumHeight,null!=n&&null!=r){var o;if(this.featureSet)o=this.vectorSource.getFeatureById("cameraFeature");else{var l=new ol.geom.Point([i[0],i[1]]);o=new ol.Feature({geometry:l}),o.setId("cameraFeature"),o.setStyle(new ol.style.Style({image:this.imageStyle})),this.vectorSource.addFeature(o),this.featureSet=!0}o.getGeometry().setCoordinates(X.wgs84ToMercator(i));var c=e.heading,u=Cesium.Math.toRadians(c);this.imageStyle.setRotation(u),e.heading=0,e.cameraPosition=i,e.groundPosition=null,e.distance=4*r,Vi.prototype.gotoViewPoint.call({olMap:this.overviewMap},e)}}}}},{key:"getConfigObject",value:function(){var e=ye(Object(fe["a"])(i.prototype),"getConfigObject",this).call(this);return e.layerName=this.layerName,e.iconStyleObject={src:this.imageStyle.getSrc(),anchor:this.imageStyle.getAnchor()},e.minimumHeight=this.minimumHeight,e}},{key:"dispose",value:function(){var e=this;this.deactivate(),this.overviewMap&&(this.overviewMap.getLayers().forEach((function(t){e.overviewMap.removeLayer(t)})),this.overviewMap.setTarget(null),this.overviewMap=null),this.framework.unsubscribeByKey(this.mapActivatedSubscribeKey)}}]),i}(Ys),Gf=Hf,zf=i(657),Bf=i.n(zf);function Vf(e,t){return!e.active||e.cesium3DTileset.tilesLoaded?Promise.resolve():new Promise((function(i){var n,r=e.cesium3DTileset.allTilesLoaded.addEventListener((function(){n&&clearTimeout(n),r(),i()}));null!=t&&(n=setTimeout((function(){r(),i()}),t))}))}function Uf(e,t){return e.tilesLoaded?Promise.resolve():new Promise((function(i){var n,r=e.tileLoadProgressEvent.addEventListener((function(e){e<1&&(n&&clearTimeout(n),r(),i())}));null!=t&&(n=setTimeout((function(){r(),i()}),t))}))}function Wf(e){return new Promise((function(t){var i,n=e.getLayers().getArray().filter((function(e){return e instanceof ol.layer.Tile&&e.getVisible()})).map((function(e){return e.getSource()})),r=n.length,a=new Array(3*r),s=-1,o=0,l=null;function c(){o+=1}function u(){s+=1,l&&(clearTimeout(l),l=null),o<=s&&(l=setTimeout((function(){ol.Observable.unByKey(a),t(i)}),500))}e.once("postcompose",(function(e){if(i=e.context.canvas,0===r)setTimeout((function(){t(i)}),500);else{for(var s=0;s0?e[0]:null;return t?(0===t.clientHeight&&(t.style.height="5.5rem"),window.html2canvas(t,{scale:3}).then((function(e){return e.toDataURL()}))):Promise.reject(new Error("Could get Image DOM"))}},{key:"getTitle",value:function(){if(this.title)return Promise.resolve(this.title);var e=document.getElementsByClassName("vcm_copyright_headerTitle"),t=e.length>0?e[0]:null;return t?Promise.resolve(t.textContent):Promise.reject(new Error("Could get Title from DOM"))}},{key:"rotateNorthArrow",value:function(e){var t=this;return this.showNorthPoint?new Promise((function(i,n){var r=t.northPointImage,a=document.createElement("canvas"),s=68,o=68;a.width=s,a.height=o;var l=a.getContext("2d"),c=new Image;c.onload=function(){l.translate(s/2,o/2),l.rotate(-Cesium.Math.toRadians(e)),l.translate(-s/2,-o/2),l.drawImage(c,0,0),i(a.toDataURL())},c.onerror=function(){n(new Error("could not load northArrow"))},c.src=r})):Promise.resolve("")}},{key:"getPixelCount",value:function(e,t,i){var n=this.defaultRenderingWidth[t],r=this.getImageWidth(e,t),a=r/n,s=a*i/72;return n*s*(n/this.aspectRatio[t]*s)}},{key:"getScale",value:function(e,t,i){var n=this.defaultRenderingWidth[t],r=this.getImageWidth(e,t),a=r/n,s=a*i/72,o=n*s*(n/this.aspectRatio[t]*s),l=G.getInstance().isIE11?Xf:Qf;if(o>l){var c=Math.sqrt(l/o);return Math.round(s*c*100)/100}return Math.round(100*s)/100}},{key:"getImageWidth",value:function(e,t){var i=Bf.a[e],n="portrait"===t?i[0]:i[1],r=n-this.pageMargins[0]-this.pageMargins[2];return r}},{key:"getImagePixel",value:function(e,t){var i=this.getImageWidth(e,t);return[i,i/this.aspectRatio[t]]}},{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.initialized=!0,this.initializedFinished()}return!0}},{key:"_cancelCheck",value:function(){if(this._cancelled)throw new Error("cancelled")}},{key:"cancelRunning",value:function(){this._cancelled=!0,this._reset(),this._reset=function(){}}},{key:"createPDF",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i,n,r){var a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._renderImage(t,i,n);case 2:return a=e.sent,s=a.toDataURL(),e.abrupt("return",this.makePDF(s,t,i,r));case 5:case"end":return e.stop()}}),e,this)})));function t(t,i,n,r){return e.apply(this,arguments)}return t}()},{key:"createImage",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._renderImage(t,i,n);case 2:return r=e.sent,Nm(r,"screenshot.png",this.imageMimetype),e.abrupt("return",!0);case 5:case"end":return e.stop()}}),e,this)})));function t(t,i,n){return e.apply(this,arguments)}return t}()},{key:"_renderImage",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,n,r){var a,s,l,c,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o(t,String),o(n,["landscape","portrait"]),o(r,Number),this._cancelled=!1,this.libraryPromise||(this.libraryPromise=this.framework.loadLibraries(["lib/vcm_pdf_thirdparty.js"])),e.next=7,this.libraryPromise;case 7:if(this._cancelCheck(),a=document.createElement("canvas"),s=this.defaultRenderingWidth[n],l=this.getScale(t,n,r),c=[s,s/this.aspectRatio[n]],a.width=c[0]*l,a.height=c[1]*l,u=this.framework.getActiveMap(),e.prev=15,!(u instanceof Ut)){e.next=23;break}return this._reset=i.prepareCesiumMap(u,c,l),e.next=20,this.getImageFromCesium(u,a);case 20:a=e.sent,e.next=31;break;case 23:if(!(u instanceof Vi||u instanceof Fi)){e.next=30;break}return this._reset=i.prepareOlMap(u,c,l),e.next=27,this.getImageFromOpenlayers(u,a);case 27:a=e.sent,e.next=31;break;case 30:throw new Error("wrong Map");case 31:return this._cancelCheck(),e.next=34,this.copyBalloon(a,c,l);case 34:a=e.sent,this._cancelCheck();case 36:return e.prev=36,this._reset(),this._reset=function(){},e.finish(36);case 40:return e.abrupt("return",a);case 41:case"end":return e.stop()}}),e,this,[[15,,36,40]])})));function t(t,i,n){return e.apply(this,arguments)}return t}()},{key:"copyBalloon",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t,i,n){var r,a,s,o,l,c,u,h,d,m;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=document.getElementById("balloonContainer"),a=Object(Oe["a"])(i,2),s=a[0],o=a[1],!this.showBalloons||!r){e.next=12;break}return e.next=5,window.html2canvas(r,{width:s,height:o,scale:n,backgroundColor:null});case 5:for(l=e.sent,c=t.getContext("2d"),u=c.getImageData(0,0,s*n,o*n),h=l.getContext("2d").getImageData(0,0,s*n,o*n),d=!1,m=0;m1&&void 0!==arguments[1]?arguments[1]:2,i={heading:e.heading.toFixed(t),pitch:e.pitch.toFixed(t),roll:e.roll.toFixed(t)};return null!=e.distance&&(i.distance=e.distance.toFixed(t)),e.cameraPosition&&(i.cameraPosition=e.cameraPosition.map((function(e){return e.toFixed(t)}))),e.groundPosition&&(i.groundPosition=e.groundPosition.map((function(e){return e.toFixed(t)}))),i}},{key:"getHeaderBottomColorFromElements",value:function(){var e=document.getElementsByTagName("header"),t=e.length>0?e[0]:null;if(t){var i=window.getComputedStyle(t);if(i){var n=i.getPropertyValue("border-bottom-color");if(n){var r=He(n);return Be(r)}}}return"#a8c02b"}},{key:"getCopyrightText",value:function(){var e=G.getInstance().getWidgetByType("vcs.vcm.widgets.Copyright"),t="";if(e){var i=e.layerItems,n={};i.forEach((function(e){var t=n[e.provider];if(t){var i=t.years.indexOf(e.year);-1===i&&(t.years.every((function(t){return Number(t).01&&i<.99){var n=Fa();n.position=i,this.element.style.left="".concat(100*n.position,"%")}}}}]),e}(),pg=yg,vg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();return n.options=n.options,n.supportedMaps=["vcs.vcm.maps.Cesium","vcs.vcm.maps.Openlayers"],n.activeLayerState={},n._initialLayerState={},n._firstActivation=!0,n._initializedCesium=!1,n.noUi=Object(u["e"])(e.noUi,r.noUi),n.hideSwipeElement=Object(u["e"])(e.hideSwipeElement,r.hideSwipeElement),n.swipeElement=null,n._listeners=[],n._unsupportedLayerToActivate=new Set,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{noUi:!1,hideSwipeElement:!1,layers:void 0,splitPosition:.5})}},{key:"className",get:function(){return"vcs.vcm.widgets.swipeTool.SwipeTool"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;if(!this.initialized){var t=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!t)return!1;if(this.options.splitPosition&&(Fa().position=Object(u["g"])(this.options.splitPosition,i.getDefaultOptions().splitPosition)),this.swipeElement=new pg,this.availableLayers=this.framework.getLayers().filter((function(e){return e instanceof Ga||e instanceof ss||e instanceof us})),this.options.layers)if(Array.isArray(this.options.layers)){var n={};this.options.layers.forEach((function(e){var t=e.layerName,i=e.splitDirection;n[t]=i})),this.assignConfig(n)}else this.assignConfig(this.options.layers);this.availableLayers.forEach((function(t){void 0===e.activeLayerState[t.name]&&(e.activeLayerState[t.name]=null)})),this.initialized=!0}return!0}},{key:"handleMapChangeEvent",value:function(e){var t=this;this._unsupportedLayerToActivate.size>0&&this._unsupportedLayerToActivate.forEach((function(i){i.isSupported(e)&&(i.activate(),t._unsupportedLayerToActivate.delete(i))})),ye(Object(fe["a"])(i.prototype),"handleMapChangeEvent",this).call(this,e),this.active&&(this.swipeElement.handleMapChange(),!this._initializedCesium&&e instanceof Ut&&Object.entries(this._initialLayerState).forEach((function(e){var i=Object(Oe["a"])(e,2),n=i[0],r=i[1];if("cesium3DTileset"===r.type){var a=t.framework.getLayerByName(n);a&&(r.active=a.active)}}))),this._initializedCesium||(this._initializedCesium=e instanceof Ut)}},{key:"activate",value:function(){var e=this;this.active||(this.hideSwipeElement||this.swipeElement.activate(),this._setCurrentState(this._initialLayerState),this._initializedCesium||(this._initializedCesium=this.framework.getActiveMap()instanceof Ut),this._firstActivation&&(Object.entries(this._initialLayerState).forEach((function(t){var i=Object(Oe["a"])(t,2),n=i[0],r=i[1];null==e.activeLayerState[n]&&(e.activeLayerState[n]=Object.assign({},r))})),this._firstActivation=!1),this._applyState(this.activeLayerState),this._listeners.push(this.framework.subscribe(O.LAYER_CHANGED,this.handleLayerChanged,this)),this._listeners.push(this.framework.subscribe(O.SPLIT_DIRECTION_CHANGED,this.handleSplitDirectionChanged,this)),this._listeners.push(this.framework.subscribe(O.WIDGET_ACTIVATED,(function(t){"vcs.vcm.widgets.ClippingTool"!==t.className&&"vcs.vcm.widgets.TransparentTerrainMode"!==t.className||e.deactivate()}))),ye(Object(fe["a"])(i.prototype),"activate",this).call(this))}},{key:"handleLayerChanged",value:function(e){null!=this.activeLayerState[e.name]&&(this.activeLayerState[e.name].active=e.active)}},{key:"handleSplitDirectionChanged",value:function(e,t){null!=this.activeLayerState[e.name]&&(this.activeLayerState[e.name].splitDirection=t)}},{key:"deactivate",value:function(){var e=this;this.active&&(ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this._listeners.forEach((function(t){e.framework.unsubscribeByKey(t)})),this._listeners=[],this._applyState(this._initialLayerState),this.swipeElement.deactivate())}},{key:"_applyState",value:function(e){var t=this;this._unsupportedLayerToActivate.clear();var i=this.framework.getActiveMap();Object.entries(e).forEach((function(e){var n=Object(Oe["a"])(e,2),r=n[0],a=n[1],s=t.framework.getLayerByName(r);s&&(s.splitDirection=a.splitDirection,a.active?s.isSupported(i)?s.activate():t._unsupportedLayerToActivate.add(s):s.deactivate())}))}},{key:"_setCurrentState",value:function(e){this.availableLayers.forEach((function(t){e[t.name]={active:t.active||t.loading,splitDirection:t.splitDirection,type:t instanceof Ga?"cesium3DTileset":"imagery"}})),this._unsupportedLayerToActivate.forEach((function(t){e[t.name]={active:!0,splitDirection:t.splitDirection,type:t instanceof Ga?"cesium3DTileset":"imagery"}}))}},{key:"assignConfig",value:function(e){var t=this;o(e,Object),Object.entries(e).forEach((function(e){var i=Object(Oe["a"])(e,2),n=i[0],r=i[1],a=t.availableLayers.find((function(e){return e.name===n}));a&&(t.activeLayerState[n]={active:!0,splitDirection:r,type:a instanceof Ga?"cesium3DTileset":"imagery"})}))}},{key:"handleURLParameter",value:function(e){ye(Object(fe["a"])(i.prototype),"handleURLParameter",this).call(this,e),e.split&&(this.assignConfig(e.split.l),Fa().position=e.split.p,this.hideSwipeElement=e.split.hE,this.activate())}},{key:"getLink",value:function(e){if(this.active){var t={},i={l:t,p:Fa().position,hE:!this.swipeElement.active};Object.entries(this.activeLayerState).forEach((function(e){var i=Object(Oe["a"])(e,2),n=i[0],r=i[1],a=r.active,s=r.splitDirection;a&&(t[n]=s)})),e.addQueryParams({split:JSON.stringify(i)})}}},{key:"dispose",value:function(){var e=this;ye(Object(fe["a"])(i.prototype),"dispose",this).call(this),this._listeners.forEach((function(t){e.framework.unsubscribeByKey(t)})),this._listeners=[],this.swipeElement&&this.swipeElement.deactivate(),this.swipeElement=null,this.availableLayers=[],this.activeLayerState={},this._initialLayerState={},this._firstActivation=!0,this.initialized=!1,this.active=!1}}]),i}(Ys),_g=vg,bg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.supportedMaps=["vcs.vcm.maps.Cesium"],n.flightInstances=n.framework.getFlights(),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.Flight"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.initialized=!0,this.initializedFinished()}return!0}},{key:"addFlight",value:function(e){this.flightInstances.push(e)}},{key:"deleteFlight",value:function(e){var t=this.flightInstances.indexOf(e);this.flightInstances.splice(t,1)}}]),i}(Ys),Lg=bg,wg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this),n.featureTypeSymbol=e.featureTypeSymbol,n.cb=e.cb,n._defaultActive=re.DRAGSTART|re.DRAGEND,n._defaultModificationKey=ne.ALT,n.setActive(!1),n}return Object(m["a"])(i,[{key:"pipe",value:function(e){return e.type&re.DRAGSTART&&e.feature&&e.feature[this.featureTypeSymbol]&cn.VERTEX?this._feature=!0:e.type&re.DRAGEND&&this._feature&&(this._feature=!1,this.cb()),Promise.resolve(e)}}]),i}(ce),Mg=wg,kg=new Cesium.Cartesian3,Og=new Cesium.Cartesian3,Tg=new Cesium.Cartesian3,Sg=new Cesium.Cartographic,Cg=new Cesium.Cartographic,jg=new Cesium.Cartographic,Eg=new Map;function Ig(){return{image:{fill:{color:"rgba(168, 192, 43, 0.8)"},stroke:{color:"rgb(0, 0, 0)",width:1},radius:5},stroke:{color:"rgb(168, 192, 43)",width:3},fill:{color:"rgba(168, 192, 43, 0.8)"},text:{font:"bold 18px Arial, Helvetica, sans-serif",textBaseline:"bottom",offsetY:-15,offsetX:0,fill:{color:"rgb(0, 0, 0)"},stroke:{color:"rgb(255, 255, 255)",width:2}}}}var Dg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e);var r=i.getDefaultOptions();n.style=new dt(r.style),e.style&&n.style.assign(new dt(e.style)),n.supportedMaps=["vcs.vcm.maps.Cesium"],n.maxNrOfPoints=Object(u["h"])(e.maxNrOfPoints,r.maxNrOfPoints),n.maxCombinedMemoryUsage=Object(u["h"])(e.maxCombinedMemoryUsage,r.maxCombinedMemoryUsage),n._cancelled=!1,n._geometryChangedCB=null;var a=Object(u["g"])(e.defaultResolution,r.defaultResolution);return n.values={profilePoints:[],progress:0,running:!1,includeObjects:!0,resolution:a},n.allowSmallExport=Object(u["e"])(e.allowSmallExport,r.allowSmallExport),n._cachedProfile=null,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{style:Ig(),maxNrOfPoints:5e4,maxCombinedMemoryUsage:1024,defaultResolution:2,allowSmallExport:!0})}},{key:"className",get:function(){return"vcs.vcm.widgets.heightProfile.HeightProfile"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.featureLayer=new _n({projection:{epsg:3857},name:"_profile",style:this.style,altitudeMode:"clampToGround",classificationType:"both"}),this.framework.addLayer(this.featureLayer),this.geometryEditor=new sc({allowedGeometries:["LineString"],defaultMode:"edit",dedicatedFeatureStyle:!1}),this.geometryEditor.initialize(),this.geometryEditor.addEditingLayer(this.featureLayer),this.geometryEditor.selectFeatureInteraction.onSelect(this._onSelect.bind(this)),this.geometryEditor.state.onlyAllowTranslation=!0,this.vertexChangedInteraction=new Mg({cb:this.calculateProfile.bind(this),featureTypeSymbol:this.geometryEditor.state.featureTypeSymbol}),this.initialized=!0,this.initializedFinished()}return!0}},{key:"activate",value:function(){var e=this;ye(Object(fe["a"])(i.prototype),"activate",this).call(this),this.geometryEditor.activate(),this._cachedProfile&&this.geometryEditor.setMode(ln.EDIT),this.featureLayer.activate();var t=this.framework.getLayers().filter((function(e){return e.active&&(e instanceof Ga||e instanceof or)}));t.length>0&&t.forEach((function(i){var n;if(i instanceof or){var r=i.getImplementation(e.framework.getActiveMap());n=r.cesium3DTileset}else n=i.cesium3DTileset;Eg.set(n,n.maximumMemoryUsage),n.maximumMemoryUsage=e.maxCombinedMemoryUsage/t.length}))}},{key:"deactivate",value:function(){ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.cancel(),this._geometryChangedCB&&ol.Observable.unByKey(this._geometryChangedCB),this.geometryEditor.state.active&&(this.geometryEditor.interactionChain.removeInteraction(this.vertexChangedInteraction),this.vertexChangedInteraction.setActive(!1),this.geometryEditor.setMode(ln.NONE),this.geometryEditor.deactivate()),this.featureLayer.deactivate(),Eg.forEach((function(e,t){t.maximumMemoryUsage=e}))}},{key:"cancel",value:function(){this._cancelled=!0,this._reset(),this._cachedProfile&&this.feature&&this.feature.getGeometry().setCoordinates(this._cachedProfile)}},{key:"_reset",value:function(){this.values.running=!1,this.values.progress=0,this._cachedProfile||this.featureLayer.removeAllFeatures()}},{key:"_onSelect",value:function(){this.geometryEditor.features.size?(this.geometryEditor.interactionChain.chain.includes(this.vertexChangedInteraction)||this.geometryEditor.interactionChain.addInteraction(this.vertexChangedInteraction),this.values.running?this.geometryEditor.selectFeatureInteraction.clearSelectionSet():this.vertexChangedInteraction.setActive()):(this.geometryEditor.interactionChain.removeInteraction(this.vertexChangedInteraction),this.vertexChangedInteraction.setActive(!1))}},{key:"newProfile",value:function(){this._reset(),this.featureLayer.removeFeaturesById(["_start","_end"]),this.feature=this.geometryEditor.createFeature("LineString","_profileLine"),this.feature.set("olcs_classificationType","both"),this._geometryChangedCB=this.feature.getGeometry().on("change",this.geometryChangedCallback.bind(this)),this.geometryEditor.setModeAndSelectFeature(ln.CREATE,this.feature)}},{key:"geometryChangedCallback",value:function(e){var t=e.target.getCoordinates(),i=t.length;i>2&&(this.geometryEditor.setMode(ln.EDIT),ol.Observable.unByKey(this._geometryChangedCB),this._geometryChangedCB=null,this.calculateProfile())}},{key:"calculateProfile",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(){var t,i,n,r,a,s,o,l,c,u,h,d,m=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this._cancelled=!1,this.geometryEditor.selectFeatureInteraction.clearSelectionSet(),this.values.running=!0,this.values.progress=0,t=this.framework.getActiveMap(),i=t.getScene(),n=this.values.includeObjects?i.sampleHeightMostDetailed.bind(i):Cesium.sampleTerrainMostDetailed.bind(null,i.terrainProvider),r=this.feature.getGeometry().getCoordinates(),a=X.mercatorToWgs84(r[0]),Cesium.Cartographic.fromDegrees(a[0],a[1],null,Sg),s=X.mercatorToWgs84(r[1]),Cesium.Cartographic.fromDegrees(s[0],s[1],null,Cg),o=new Cesium.EllipsoidGeodesic(Sg,Cg),l=o.surfaceDistance,this._addLabels(r,l),c=Math.floor(l/this.values.resolution),c>this.maxNrOfPoints&&(c=this.maxNrOfPoints,this.values.resolution=Number((l/this.maxNrOfPoints).toFixed(1))),u=new Array(c),Cesium.Cartographic.toCartesian(Sg,null,kg),Cesium.Cartographic.toCartesian(Cg,null,Og),h=0;case 20:if(!(h.01)){e.next=36;break}return e.next=35,n([Cg]);case 35:u.push(Cg.height);case 36:this._cancelled||(this._cachedProfile=this.feature.getGeometry().getCoordinates(),this.values.profilePoints=u.map((function(e,t){return new Cesium.Cartesian2(t*m.values.resolution,e)})),this.values.running=!1,this.values.progress=0);case 37:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_addLabels",value:function(e,t){var i=this,n=function(e,t,n){var r=new ol.Feature({geometry:new ol.geom.Point(e)});r.setId(t),r[_n.alreadyTransformedToMercator]=!0;var a=i.featureLayer.style.style.clone();return a.getText().setText(n),a.setImage(null),r.setStyle(a),r[i.geometryEditor.state.featureTypeSymbol]=cn.UNEDITABLE,r};this.featureLayer.removeFeaturesById(["_start","_end"]),this.featureLayer.addFeatures([n(e[0],"_start","0"),n(e[1],"_end",t.toFixed(1))])}},{key:"isActiveTerrain",value:function(){var e=this.framework.getLayers(),t=e.find((function(e){return e instanceof is&&e.active}));return!!t}}]),i}(Ys),Pg=Dg,Ag=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e,n){var r;return Object(d["a"])(this,i),r=t.call(this),r.clippingObjectEditor=e,r.vertical=n,r._defaultActive=re.CLICK,r._defaultModificationKey=ne.NONE,r.setActive(),r}return Object(m["a"])(i,[{key:"pipe",value:function(){var e=Object(f["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.position&&(t.stopPropagation=!0,this.clippingObjectEditor.feature=Ia(X.mercatorToWgs84(t.position),this.vertical)),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),i}(ce),xg=Ag,Yg={};function Ng(e){return Yg[e]}var Fg=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(d["a"])(this,e),this.id=Fn()(),this.clippingObject=new hr(t),this.editor=new tc({}),this.active=!1,this._reverse=Object(u["e"])(t.reverse,!1),this._createVerticalPlanes=Object(u["e"])(t.createVerticalPlanes,!0),this._createTopPlane=Object(u["e"])(t.createTopPlane,!0),this._createBottomPlane=Object(u["e"])(t.createBottomPlane,!0),this._createEndingPlanes=Object(u["e"])(t.createEndingPlanes,!0),this._createClippingFeatureInteraction=null,this._feature=null,this._olListeners=new Array(3),this.initialized=!1,this.modeChange=new Cesium.Event,this._mode=ln.SELECT,Yg[this.id]=this}return Object(m["a"])(e,[{key:"initialize",value:function(){this.initialized||(this.scratchLayer=new _n({projection:ee.getConfigObject(),altitudeMode:"absolute"}),G.getInstance().addLayer(this.scratchLayer),this.editor.initialize(),this.editor.state.altitudeMode=hn.ABSOLUTE,this.editor.addEditingLayer(this.scratchLayer),this.initialized=!0)}},{key:"activate",value:function(){this.editor.state.active||(this.editor.activate(),this._mode&ln.SELECT&&this._feature&&(this.editor.setMode(ln.SELECT),this.editor.selectFeatureInteraction.selectFeature(this._feature))),this.active||(this.scratchLayer.activate(),this._setFeatureListeners(),this._updateClippingPlaneCollection(),this.active=!0)}},{key:"deactivate",value:function(){this.active&&(this.editor.deactivate(),this.scratchLayer.deactivate(),this.active=!1,ol.Observable.unByKey(this._olListeners),this._olListeners=new Array(3),this._postRenderListener&&(this._postRenderListener(),this._postRenderListener=null))}},{key:"setOptions",value:function(e){var t,i=this,n={reverse:[Boolean,void 0],createVerticalPlanes:[Boolean,void 0],createTopPlane:[Boolean,void 0],createBottomPlane:[Boolean,void 0],createEndingPlanes:[Boolean,void 0]};o(e,n);var r=function(n){null!=e[n]&&i["_".concat(n)]!==e[n]&&(i["_".concat(n)]=e[n],t=!0)};Object.keys(n).forEach(r),t&&this._updateClippingPlaneCollection()}},{key:"setMode",value:function(e,t){o(e,[ln.SELECT,ln.CREATE]),l(t,Boolean),this.activate(),this._createClippingFeatureInteraction&&(this.editor.interactionChain.removeInteraction(this._createClippingFeatureInteraction),this._createClippingFeatureInteraction=null),this.editor.setMode(e),e&ln.CREATE&&(this._createClippingFeatureInteraction=new xg(this,t),this.editor.interactionChain.addInteraction(this._createClippingFeatureInteraction,0)),e&this._mode||(this._mode=e,this.modeChange.raiseEvent()),this._mode&ln.SELECT&&this._feature&&this.editor.selectFeatureInteraction.selectFeature(this._feature)}},{key:"_setFeatureListeners",value:function(){var e=this,t=function(){ol.Observable.unByKey(e._olListeners[2]),e.feature.getGeometry()&&(e._olListeners[2]=e.feature.getGeometry().on("change",(function(){e._updateClippingPlaneCollection()})))};ol.Observable.unByKey(this._olListeners),this._olListeners=new Array(3),this.feature&&(this._olListeners[0]=this.feature.on("propertychange",(function(){e._updateClippingPlaneCollection()})),this._olListeners[1]=this.feature.on("change:geometry",(function(){t()})),t())}},{key:"_updateClippingPlaneCollection",value:function(){this.feature&&this.feature.getGeometry()?this.clippingObject.clippingPlaneCollection=ka(this.feature,{reverse:this._reverse,createBottomPlane:this._createBottomPlane,createTopPlane:this._createTopPlane,createVerticalPlanes:this._createVerticalPlanes,createEndingPlanes:this._createEndingPlanes}):this.clippingObject.clippingPlaneCollection=new Cesium.ClippingPlaneCollection}},{key:"destroy",value:function(){ol.Observable.unByKey(this._olListeners),this._olListeners=new Array(3),this._feature=null,this.clippingObject=null,this.editor.destroy(),this.initialized&&this.scratchLayer.dispose(),delete Yg[this.id],this._postRenderListener&&(this._postRenderListener(),this._postRenderListener=null)}},{key:"createVerticalPlanes",get:function(){return this._createVerticalPlanes},set:function(e){o(e,Boolean),this._createVerticalPlanes!==e&&(this._createVerticalPlanes=e,this._updateClippingPlaneCollection())}},{key:"createTopPlane",get:function(){return this._createTopPlane},set:function(e){o(e,Boolean),this._createTopPlane!==e&&(this._createTopPlane=e,this._updateClippingPlaneCollection())}},{key:"createBottomPlane",get:function(){return this._createBottomPlane},set:function(e){o(e,Boolean),this._createBottomPlane!==e&&(this._createBottomPlane=e,this._updateClippingPlaneCollection())}},{key:"createEndingPlanes",get:function(){return this._createEndingPlanes},set:function(e){o(e,Boolean),this._createEndingPlanes!==e&&(this._createEndingPlanes=e,this._updateClippingPlaneCollection())}},{key:"reverse",get:function(){return this._reverse},set:function(e){o(e,Boolean),this._reverse!==e&&(this._reverse=e,this._updateClippingPlaneCollection())}},{key:"feature",get:function(){return this._feature},set:function(e){var t=this;if(l(e,ol.Feature),this._feature=e,this.initialized){var i=this.scratchLayer.getFeatureById("_clippingObject");if(i&&i!==e&&this.scratchLayer.removeAllFeatures(),e&&(e.setId("_clippingObject"),this.scratchLayer.addFeatures([e])),this.active){this.setMode(ln.SELECT),this._setFeatureListeners();var n=xn(),r=n.featureInteraction,a=r.active;r.setActive(!1),this._updateClippingPlaneCollection(),this._postRenderListener&&this._postRenderListener(),this._postRenderListener=G.getInstance().getActiveMap().getScene().postRender.addEventListener((function(){r.setActive(a),t._postRenderListener()}))}}}},{key:"mode",get:function(){return this._mode}}]),e}(),Rg=Fg,Hg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.supportedMaps=["vcs.vcm.maps.Cesium"],n.availableLayerNames=[],n.layerChangedListener=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.ClippingTool"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.clippingEditor=new Rg,this.clippingEditor.initialize(),this.initialized=!0}return!0}},{key:"activate",value:function(){var e=this;this.active||(this.clippingEditor.activate(),this.availableLayerNames.splice(0),this.framework.getLayers().filter((function(e){return e.active&&e instanceof Ga})).forEach((function(t){e.availableLayerNames.push(t.name)})),this.layerChangedListener=this.framework.subscribe(O.LAYER_CHANGED,(function(t){if(t instanceof Ga)if(t.active)e.availableLayerNames.push(t.name);else{var i=e.availableLayerNames.indexOf(t.name);i>-1&&e.availableLayerNames.splice(i,1)}})),this.widgetChangedListener=this.framework.subscribe(O.WIDGET_ACTIVATED,(function(t){"vcs.vcm.widgets.swipeTool.SwipeTool"===t.className&&e.deactivate()})),this._syncLayers(this.availableLayerNames),Ya.getInstance().setExclusiveClippingObjects([this.clippingEditor.clippingObject],this.deactivate.bind(this)),ye(Object(fe["a"])(i.prototype),"activate",this).call(this))}},{key:"deactivate",value:function(){this.active&&(this.framework.unsubscribeByKey(this.layerChangedListener),this.framework.unsubscribeByKey(this.widgetChangedListener),this.clippingEditor.deactivate(),Ya.getInstance().clearExclusiveClippingObjects(!0),ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this))}},{key:"_syncLayers",value:function(e){var t=this.clippingEditor.clippingObject,i=new Set(t.layerNames);e.forEach((function(e){i.has(e)?i.delete(e):t.addLayer(e)})),i.forEach((function(e){t.removeLayer(e)}))}},{key:"handleURLParameter",value:function(e){var t=e.clip;if(t){this.activate();var i=new ol.Feature({olcs_altitudeMode:"absolute"});t.e&&i.set("olcs_extrudedHeight",t.e);var n="number"===typeof t.c[0][0]?new ol.geom.LineString(t.c,"XYZ"):new ol.geom.Polygon(t.c,"XYZ");n[_n.alreadyTransformedToMercator]=!0,i.setGeometry(n),this._syncLayers(t.l),this.clippingEditor.feature=i,this.clippingEditor.setOptions(Da(i,!!t.i)),this.clippingEditor.reverse=!!t.r,this.clippingEditor.clippingObject.terrain=!!t.t,t.a||this.clippingEditor.deactivate()}}},{key:"getLink",value:function(e){if(this.active&&this.clippingEditor.feature){var t="LineString"===this.clippingEditor.feature.getGeometry().getType(),i=t?this.clippingEditor.createEndingPlanes:this.clippingEditor.createVerticalPlanes,n={c:this.clippingEditor.feature.getGeometry().getCoordinates(),i:i?0:1,a:this.clippingEditor.active?1:0,r:this.clippingEditor.reverse?1:0,t:this.clippingEditor.clippingObject.terrain?1:0,l:this.clippingEditor.clippingObject.layerNames},r=this.clippingEditor.feature.get("olcs_extrudedHeight");r&&(n.e=r),e.addQueryParams({clip:n})}}},{key:"dispose",value:function(){this.deactivate(),this.clippingEditor.destroy()}}]),i}(Ys),Gg=Hg,zg=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,e.supportedMaps=["vcs.vcm.maps.Oblique"],n=t.call(this,e),n.maps={},n.values={active:n.active,activeDirection:h["a"].NORTH,availableDirections:[]},n._activeLayer=null,n._running=!1,n._directionChangeListener=null,n._layerChangedListener=null,n._postRenderListener=null,n._clone=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.MultiView"}}]),Object(m["a"])(i,[{key:"activate",value:function(){var e=this;if(!this.active){ye(Object(fe["a"])(i.prototype),"activate",this).call(this),Object.values(h["a"]).forEach((function(t){e.maps[t]=new ol.Map({controls:[],interactions:[]})}));var t=this.framework.getActiveMap();t.initializedPromise.then((function(){e._setObliqueLayer(t.activeLayer),e._layerChangedListener=e.framework.subscribe(O.LAYER_ACTIVATED,e._setObliqueLayer.bind(e)),e._directionChangeListener=e.framework.subscribe(O.OBLIQUE_DIRECTION_CHANGED,e._setDirection.bind(e)),e._postRenderListener=t.olMap.on("postrender",e._postRenderHandler.bind(e)),e.values.active=e.active}))}}},{key:"_setObliqueLayer",value:function(e){var t=this;if(e instanceof Yi){if(this._activeLayer){var i=this._activeLayer.obliqueCollection.directions;Object.keys(i).forEach((function(e){e!==t.values.activeDirection.toString()&&i[e].deactivate()}))}this.values.availableDirections=Object.values(e.obliqueCollection.directions).map((function(e){return e.direction})),this._activeLayer=e,this._setDirection(this._activeLayer,this._activeLayer.currentDirection)}}},{key:"_setDirection",value:function(e,t){var i=this,n=e.computeViewpoint();this.values.activeDirection=t.direction;var r=e.obliqueCollection.directions;Object.keys(r).forEach((function(e){e!==i.values.activeDirection.toString()&&(r[e].suppressPublish=!0,r[e].activateWithViewPoint(i.maps[e],n))})),this._clone&&this._clone.deactivate(),this._clone=new Ei({direction:t.direction,projection:t.projection,terrainProvider:t.terrainProvider,images:t.images,layer:t.layer,footPrintFeatures:[],rTreeItems:[]}),this._clone.suppressPublish=!0,Object.defineProperty(this._clone,"currentView",{get:function(){return this._currentView},set:function(e){e?this._originalView&&this._originalView===e||(this._originalView=e,this._currentView=e.clone()):(this._originalView=null,this._currentView=null)}}),this._clone.rTree=t.rTree,this._clone.activateWithViewPoint(this.maps[t.direction],n)}},{key:"_postRenderHandler",value:function(){var e=this;this.active&&!this._running&&(this._running=!0,this._activeLayer.computeViewpoint(!0).then((function(t){if(t){var i=e._activeLayer.obliqueCollection.directions;Object.keys(i).forEach((function(n){n!==e.values.activeDirection.toString()&&i[n].setViewPoint(t,!0)})),e._clone.setViewPoint(t,!0)}e._running=!1})).catch((function(t){e.logger.error(t),e._running=!1})))}},{key:"deactivate",value:function(){var e=this;if(this.active){if(ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this._directionChangeListener&&(this.framework.unsubscribeByKey(this._directionChangeListener),this._directionChangeListener=null),this._layerChangedListener&&(this.framework.unsubscribeByKey(this._layerChangedListener),this._layerChangedListener=null),this._postRenderListener&&(ol.Observable.unByKey(this._postRenderListener),this._postRenderListener=null),this._activeLayer){var t=this._activeLayer.obliqueCollection.directions;Object.keys(t).forEach((function(i){i!==e.values.activeDirection.toString()&&t[i].deactivate()})),this._activeLayer=null}this._clone&&this._clone.deactivate(),Object.keys(this.maps).forEach((function(t){e.maps[t].setTarget(null),delete e.maps[t]})),this.values.active=this.active}}},{key:"dispose",value:function(){ye(Object(fe["a"])(i.prototype),"dispose",this).call(this),this.deactivate()}}]),i}(Ys),Bg=zg,Vg=i(579),Ug=i.n(Vg),Wg=function(){function e(t,i,n){Object(d["a"])(this,e),this.type=i||null,this.id=t||null,this.featureType=n||null,this.attributes=[],this.parts=[],this.featureIds=[]}return Object(m["a"])(e,[{key:"reset",value:function(){var e,t=this.attributes.filter((function(e){return!e.new&&(e.reset(),!0)}));t.length1&&c.forEach((function(e){e.parents&&e.parents.length&&e.parents.forEach((function(i){var n,r,a=l[i];(a&&(e.parentFeatureType=a.featureType,a.parts.push(e)),a!==t.root)&&(n=a.featureIds).push.apply(n,Object(g["a"])((r=[]).concat.apply(r,Object(g["a"])(a.parts.map((function(e){return e.featureIds}))))))}))}));case 13:case"end":return i.stop()}}),i)}))))}},{key:"update",value:function(){var e=this,t=this.root.featureType,i=this.root.getChangedAttributes();if(0===i.length)return Promise.resolve();var n=new ol.Feature,r={},a=new Set,s=[],o=[],l=i.filter((function(e){if(e.new&&/gen:/.test(e.key))return s.push(e),!1;if(e.deleted)return o.push(e),!1;var t=e.targetReference?"".concat(e.targetReference,"/").concat(e.key):e.key;r[t]=e.type===Yc.DATE?e.value.toISOString().split("T")[0]:e.value;var i=t.match(/[^\/@]([\w\d])+:/g);return i&&i.forEach((function(e){a.add(e.replace(":",""))})),!0}));n.setProperties(r),n.setId(this.selectedFeatureId);var c=(new ol.format.WFS2).writeTransaction([],[n],[],{featureNS:t.featureNs,featurePrefix:t.featurePrefix,featureType:t.featureType,nativeElements:[]});return o.forEach((function(e){a.add("vcs"),a.add("gen"),a.add("gml"),oy(c,e)})),s.length&&(a.add("vcs"),a.add("gen"),a.add("gml"),ly(c,s,t),l.length||o.length||c.removeChild(c.firstChild)),a.delete(t.featurePrefix),a.forEach((function(e){var t=Iu[e];t&&c.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:".concat(e),t)})),q.a.post(this.url,sy(c)).then((function(){e.root.updated()}))}},{key:"reset",value:function(){this.root.reset()}},{key:"clear",value:function(){var e=Pt();this.featureLayer.removeAllFeatures(),this.selectedFeatureId&&e.hiddenObjects[this.selectedFeatureId]&&e.showObjects([this.selectedFeatureId]),ye(Object(fe["a"])(i.prototype),"clear",this).call(this)}}]),i}(Qg),yy=gy,py=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.supportedMaps=["vcs.vcm.maps.Cesium"],n.editor=new yy(e),n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.widgets.AttributeEditor"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;this.editor.initialize(),this.initialized=!0,this.initializedFinished()}return!0}}]),i}(Ys),vy=py,_y=i(371),by=new Cesium.Cartesian3,Ly=new Cesium.Matrix3,wy=new Cesium.Quaternion,My=new Cesium.Color,ky=[1,1e5],Oy=function(){function e(t){Object(d["a"])(this,e),this._outlinePrimitives=[],this._planesPrimitives=[],this.show="undefined"===typeof t.show||t.show,this._camera=t.camera,this._color=t.color||Cesium.Color.YELLOW,this.allowPicking="undefined"===typeof t.allowPicking||t.allowPicking,this.id=t.id||{}}return Object(m["a"])(e,[{key:"update",value:function(e){if(this.show){var t,i,n=this._planesPrimitives,r=this._outlinePrimitives;if(0===n.length){var a=this._camera,s=a.frustum,o=s.clone(),l=ky;l[0]=this._camera.frustum.near,l[1]=this._camera.frustum.far;var c=a.positionWC,u=a.directionWC,h=a.upWC,d=a.rightWC;d=Cesium.Cartesian3.negate(d,by);var m=Ly;Cesium.Matrix3.setColumn(m,0,d,m),Cesium.Matrix3.setColumn(m,1,h,m),Cesium.Matrix3.setColumn(m,2,u,m);var f=Cesium.Quaternion.fromRotationMatrix(m,wy);n.length=1,r.length=1,o.near=l[0],o.far=l[1],n[0]=new Cesium.Primitive({allowPicking:this.allowPicking,geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.FrustumGeometry({origin:c,orientation:f,frustum:o,_drawNearPlane:!0}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromAlpha(this._color,.1,My))},id:this.id,pickPrimitive:this}),appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,flat:!0}),asynchronous:!1}),r[0]=new Cesium.Primitive({allowPicking:this.allowPicking,geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.FrustumOutlineGeometry({origin:c,orientation:f,frustum:o,_drawNearPlane:!0}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(this._color)},id:this.id,pickPrimitive:this}),appearance:new Cesium.PerInstanceColorAppearance({translucent:!1,flat:!0}),asynchronous:!1})}for(i=n.length,t=0;t1&&void 0!==arguments[1]?arguments[1]:{},r=new Cesium.Camera(e);r.frustum.fov=Cesium.Math.PI/3,r.frustum.near=1,r.frustum.aspectRatio=1,r.frustum.far=300;var a={getShadowCamera:function(){return r},getShadowMap:function(){return i},setShadowMap:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?(i=new Cesium.ShadowMap(Object(tn["a"])({context:e.context,lightCamera:r},t)),i.viewshed=n,e.shadowMap=i):i&&(i.destroy(),i=null)},setPrimitive:function(i){this.removePrimitive(),t=new Ey({camera:r,allowPicking:!1,spot:i}),e.primitives.add(t)},removePrimitive:function(){t&&(e.primitives.remove(t),t.destroy(),t=null)},destroy:function(){t&&(e.primitives.remove(t),t.destroy(),t=null),i&&(i.destroy(),i=null)}};return new Py(a,n)}var xy,Yy,Ny=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.supportedMaps=["vcs.vcm.maps.Cesium"],n._viewshedOptions={},e.shadowColor&&(n._viewshedOptions.shadowColor=Cesium.Color.fromCssColorString(e.shadowColor)),e.visibleColor&&(n._viewshedOptions.visibleColor=Cesium.Color.fromCssColorString(e.visibleColor)),n._shadowMapCache=null,n.viewshed=null,n}return Object(m["a"])(i,null,[{key:"getDefaultOptions",value:function(){return Object(tn["a"])(Object(tn["a"])({},Ys.getDefaultOptions()),{},{shadowColor:"rgba(51, 51, 51, 0.1)",visibleColor:"rgba(255, 153, 0, 0.5)"})}},{key:"className",get:function(){return"vcs.vcm.widgets.viewshed.Viewshed"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){var e=ye(Object(fe["a"])(i.prototype),"initialize",this).call(this);if(!e)return!1;var t=this.framework.getActiveMap().getScene();this.viewshed=Ay(t,this._viewshedOptions)}return!0}},{key:"activate",value:function(){var e=this;if(!this.active){ye(Object(fe["a"])(i.prototype),"activate",this).call(this),this._widgetActivationListener=this.framework.subscribe(O.WIDGET_ACTIVATED,(function(t){"vcs.vcm.widgets.Shadow"===t.className&&e.deactivate()}));var t=this.framework.getActiveMap().getScene();this._shadowMapCache=t.shadowMap,this.viewshed.activate()}}},{key:"deactivate",value:function(){if(this.active){this.framework.unsubscribeByKey(this._widgetActivationListener),ye(Object(fe["a"])(i.prototype),"deactivate",this).call(this),this.viewshed.deactivate();var e=this.framework.getMapByType("vcs.vcm.maps.Cesium").getScene();e.shadowMap=this._shadowMapCache}}},{key:"getLink",value:function(e){if(this.active&&this.viewshed.position){var t={p:this.viewshed.position,hpr:[this.viewshed.headingPitchRoll.heading,this.viewshed.headingPitchRoll.pitch,this.viewshed.headingPitchRoll.roll],f:this.viewshed.fov,d:this.viewshed.distance,h:this.viewshed.heightOffset,s:this.viewshed.spot?1:0,sP:this.viewshed.showPrimitive?1:0};e.addQueryParams({vs:JSON.stringify(t)})}}},{key:"handleURLParameter",value:function(e){ye(Object(fe["a"])(i.prototype),"handleURLParameter",this).call(this,e);var t=e.vs;t&&(this.viewshed.showPrimitive=1===t.sP,this.viewshed.fov=t.f,this.viewshed.distance=t.d,this.viewshed.heightOffset=t.h,this.viewshed.spot=1===t.s,this.viewshed.position=t.p,this.viewshed.headingPitchRoll=Object(_y["a"])(Cesium.HeadingPitchRoll,Object(g["a"])(t.hpr)),this.activate())}},{key:"dispose",value:function(){ye(Object(fe["a"])(i.prototype),"dispose",this).call(this),this.deactivate(),this.viewshed.destroy(),this._shadowMapCache=null}}]),i}(Ys),Fy=Ny;i(662);function Ry(e,t,i){var n=P.getInstance(),r=e.slLayer;if(r===i.name){var a=e.slId?e.slId.toString():Object(u["c"])(),s=null,o=e.slPos;if(o){var l=o.split(",");s={longitude:parseFloat(l[0]),latitude:parseFloat(l[1]),height:parseFloat(l[2])}}if(i instanceof _n){var c=i.getFeatureById(a);s&&c?(c.set("clickedPosition",s),n.setCurrentItem(a,c,i)):s&&(c=new ol.Feature({}),c.setProperties(e.slAt||{}),c.clickedPosition=s,n.setCurrentItem(a,c,i))}else if(s){var h=e.slAt||{},d={attributes:h,clickedPosition:s};n.setCurrentItem(a,d,i)}else n.setCurrentItem(a,null,i);null!=xy&&t.unsubscribeByKey(xy)}}function Hy(e,t){null!=e.slLayer&&(xy=e.slLayer.startsWith("_searchResultVector")?t.subscribe(O.MAP_ACTIVATED,(function(){var i=t.getLayerByName("_searchResultVector");i&&Ry(e,t,i)})):t.subscribe(O.LAYER_ACTIVATED,Ry.bind(null,e,t)))}function Gy(e,t){var i=a["a"].parse(window.location.href).getQueryParams();if(null!=i.startingmap&&(t.startingmap=i.startingmap),null==i.groundPosition&&null==i.cameraPosition||(t.startViewPoint=ke.parseURLparameter(i)),i.verbose&&(k.enabled=i.verbose),Hy(i,t),null!=i.allowSoftwareRendering){var n=e.maps.find((function(e){return"vcs.vcm.maps.Cesium"===e.type}));n&&(n.allowSoftwareRendering=!0)}if(null!=i.layerToActivate){i.layerToActivate=Array.isArray(i.layerToActivate)?i.layerToActivate:[i.layerToActivate];var r=null;i.layerToActivate.forEach((function(e){var i=t.getLayerByName(e);i&&i instanceof Yi&&!r&&(r=i,i.isDefaultObliqueLayer=!0)})),r&&t.getLayers().forEach((function(e){e instanceof Yi&&e!==r&&(e.isDefaultObliqueLayer=!1)}))}return i}function zy(e,t){var i,n,r;if(null!=e.layerToActivate){var a=e.layerToActivate;i=Array.isArray(a)?a:[a];for(var s=0;s-1?n:i.length+1,r=r>-1?r:i.length+1,n-r})):[];u.forEach(Zy),By(s,t),c.then((function(){zy(s,t)}));var h=document.getElementById("vcs_loading");h&&h.parentNode.removeChild(h),xn(),t.publish(O.FRAMEWORK_INITIALIZED),t.setInitialized(!0)}else alert("Could not find Container Element with id ".concat(e.mapcontainer))}function tp(e){var t=G.getInstance();t.getLogger().info("Sending request to load JSON config file [".concat(e,"]")),q.a.get(e).then((function(e){ep(e.data)})).catch((function(e){Uy.log(e)}))}function ip(){An.destroy(),P.dispose(),G.getInstance().dispose()}var np=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.commonLayer=e.commonLayer,n.active=!1,n.initialized=!1,n}return Object(m["a"])(i,[{key:"isActive",value:function(){return this.logger.deprecate("isActive","access the active property instead."),this.active}},{key:"initialize",value:function(){return Promise.reject(new Error("implementation error"))}},{key:"dispose",value:function(){this.initialized=!1}},{key:"show",value:function(){this.active=!0}},{key:"hide",value:function(){this.active=!1}},{key:"isInitialized",value:function(){return this.logger.deprecate("isInitialized","access the initialized property"),this.initialized}},{key:"mapActivated",value:function(e){return Promise.resolve()}},{key:"mapDeactivated",value:function(e){return Promise.resolve()}},{key:"updateStyle",value:function(e){}}]),i}(ve),rp=np,ap=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=e.className?e.className:i.className,n=t.call(this,e),n._removePostRenderHandler=function(){},n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.VectorLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){if(!this.initialized){this.olLayer=new ol.layer.Vector({renderOrder:null,visible:!1,source:this.commonLayer.getSource(),style:this.commonLayer.style.style,name:this.commonLayer.name,zIndex:this.commonLayer.zIndex,olcs_altitudeMode:this.commonLayer.altitudeMode,olcs_storeyHeight:this.commonLayer.storeyHeight,olcs_skirt:this.commonLayer.skirt,olcs_heightAboveGround:this.commonLayer.heightAboveGround,olcs_scaleByDistance:this.commonLayer.scaleByDistance,olcs_zCoordinateEyeOffset:this.commonLayer.zCoordinateEyeOffset,olcs_classificationType:this.commonLayer.classificationType,layerName:this.commonLayer.name});var e=this.commonLayer,t=e.minResolution,i=e.maxResolution;t&&this.olLayer.setMinResolution(t),i&&this.olLayer.setMaxResolution(i),this.initialized=!0}return Promise.resolve()}},{key:"createSynchronization",value:function(e){if(this.commonLayer.visibility&&!this.alreadySynchronized&&e.initialized){var t=e.getSynchronizer(this);this.counterPart=t.createSingleLayerCounterparts(this.olLayer)[0],t.addCesiumObject(this.counterPart),this.alreadySynchronized=!0}}},{key:"mapActivated",value:function(e){return e instanceof Ut&&this.active&&!this.alreadySynchronized&&this.createSynchronization(e),Promise.resolve()}},{key:"mapDeactivated",value:function(e){if(e instanceof Ut&&this.counterPart&&this.commonLayer.isDynamic){var t=e.getSynchronizer(this);t.destroySingleLayerCounterparts(this.counterPart),this.alreadySynchronized=!1}return Promise.resolve()}},{key:"show",value:function(){if(!this.active){ye(Object(fe["a"])(i.prototype),"show",this).call(this);var e=this.framework.getActiveMap();this.createSynchronization(e);var t=this.commonLayer.visibility;this.olLayer.setVisible(t),e.initialized&&(this._removePostRenderHandler(),this._removePostRenderHandler=e.getScene().postRender.addEventListener(this.commonLayer.postRenderStyling.bind(this.commonLayer)))}}},{key:"hide",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"hide",this).call(this),this.olLayer.setVisible(!1),this._removePostRenderHandler(),this.commonLayer.FVlastUpdated=0)}},{key:"updateStyle",value:function(e){if(this.initialized){if(this.olLayer.setStyle(this.commonLayer.style.style),e)return;var t=this.olLayer.getSource().getFeatures();t.forEach((function(e){e.changed()}))}}},{key:"setVisibility",value:function(e){this.initialized&&this.olLayer.setVisible(e)}}]),i}(rp);Le.registerSpecificLayerImpl(Ut.className,_n.className,ap),Le.registerSpecificLayerImpl(Ut.className,Ps.className,ap);var sp=ap,op=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.AsyncVectorImplementation"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){return e.commonLayer.fetchData()}))}}]),i}(sp);Le.registerSpecificLayerImpl(Ut.className,ys.className,op),Le.registerSpecificLayerImpl(Ut.className,rs.className,op);var lp=op,cp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;Object(d["a"])(this,i);var r=e.commonLayer.cesiumTilesetLayerOptions,a={className:i.className,name:e.commonLayer.name};return n=t.call(this,Object.assign({},a,r)),n.commonLayer=e.commonLayer,n._style=n.commonLayer.style,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.cesium.CesiumTilesetLayerImpl"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e.cesium3DTileset[Ht.vcsLayerNameSymbol]=e.commonLayer.name,e.cesium3DTileset[ar]=!0}))}},{key:"show",value:function(){this.active||(ye(Object(fe["a"])(i.prototype),"show",this).call(this),this._state=Yt.ACTIVE)}},{key:"hide",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"hide",this).call(this),this._state=Yt.INACTIVE)}},{key:"mapActivated",value:function(e){return Promise.resolve()}},{key:"mapDeactivated",value:function(e){return Promise.resolve()}},{key:"updateStyle",value:function(e){this.setStyle(this.commonLayer.style,e)}},{key:"determineHighlightStyle",value:function(){return this.commonLayer.highlightStyle?this.commonLayer.highlightStyle:P.getInstance()._currentItemHighlightColor}},{key:"objectClickedHandler",value:function(e,t,n){return!!this.commonLayer.allowPicking&&ye(Object(fe["a"])(i.prototype),"objectClickedHandler",this).call(this,e,t,n||this.commonLayer)}},{key:"getGenericFeatureFromClickedObject",value:function(e){var t=ye(Object(fe["a"])(i.prototype),"getGenericFeatureFromClickedObject",this).call(this,e);return t.layerName=this.commonLayer.name,t.layerClass=this.commonLayer.className,t}}]),i}(Ba);Le.registerSpecificLayerImpl(Ut.className,or.className,cp);var up=cp,hp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.commonLayer=n.commonLayer,n.cesiumLayer=null,n}return Object(m["a"])(i,[{key:"updateSplitDirection",value:function(){this.initialized&&(this.cesiumLayer.splitDirection=this.commonLayer.splitDirection)}},{key:"show",value:function(){if(!this.active){var e=this.framework.getActiveMap();if(e&&e instanceof Ut&&e.initialized&&this.cesiumLayer){ye(Object(fe["a"])(i.prototype),"show",this).call(this);var t=e.getScene(),n=t.imageryLayers;if(!n.contains(this.cesiumLayer)){var r=this.commonLayer.index;this.cesiumLayer.VCMLayerIndex=r;for(var a=n.length,s=0;s1||this.commonLayer.numberOfLevelZeroTilesY>1)&&(n.numberOfLevelZeroTilesX=this.commonLayer.numberOfLevelZeroTilesX,n.numberOfLevelZeroTilesY=this.commonLayer.numberOfLevelZeroTilesY),"geographic"===this.commonLayer.tilingSchema?i.tilingScheme=new Cesium.GeographicTilingScheme(n):i.tilingScheme=new Cesium.WebMercatorTilingScheme(n),this.commonLayer.matrixIds)this.commonLayer.matrixIds.length===this.commonLayer.maxLevel+1?i.tileMatrixLabels=this.commonLayer.matrixIds:this.logger.info("matrixIDs must have the same length as maxZoom");else if(""!==this.commonLayer.tileMatrixPrefix){for(var r=[],a=0;a0&&void 0!==arguments[0])||arguments[0],n=[];return this.obliqueSource.forEachFeature((function(r){var a=r[_n.originalFeatureSymbol];if(!a[_n.doNotTransform]&&r.getGeometry()[_n.imageGeometryChanged]){e.featureListeners[r.getId()]&&(ol.Observable.unByKey(e.featureListeners[r.getId()]),delete e.featureListeners[r.getId()]);var s=r.getGeometry()instanceof ol.geom.Circle,o=Mi(a),l=Mi(r);n.push(wi(l,o,e.obliqueMap.activeLayer.obliqueCollection.getImageByName(e.fetchedFeaturesForImageName)).then((function(){return delete o[_n.alreadyTransformedToImage],delete l[_n.imageGeometryChanged],t&&(s&&i.setNewGeometry(a,r),e._setFeatureListeners(a,r)),Promise.resolve()})))}})),Promise.all(n)}},{key:"fetchFeaturesInView",value:function(){var e=this;return new Promise((function(t){e.active&&e.fetchedFeaturesForImageName!==e.obliqueMap.getCurrentImage().name&&(e.currentExtent=e.obliqueMap.getExtentOfCurrentImage().getCoordinatesInProjection(ee),e.commonLayer.source.forEachFeatureInExtent(e.currentExtent,(function(t){e.addFeature(t)})),e.commonLayer.source.forEachFeature((function(t){t.getGeometry()[_n.alreadyTransformedToImage]&&e.addFeature(t)})),e.fetchedFeaturesForImageName=e.obliqueMap.getCurrentImage().name),t()}))}},{key:"removeFeature",value:function(e){var t=this.obliqueSource.getFeatureById("".concat(e.getId(),"_OBLIQUE"));if(t){var i=t.getId(),n=this.featureListeners[i];n&&(ol.Observable.unByKey(n),delete this.featureListeners[i]),this.obliqueSource.removeFeature(t)}}},{key:"hide",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"hide",this).call(this),this.olMap.removeLayer(this.olLayer),null!=this._postComposeListener&&(ol.Observable.unByKey(this._postComposeListener),this._postComposeListener=null),this.FVlastUpdated=0)}},{key:"dispose",value:function(){if(this.olLayer){var e=this.framework.getMapByType("vcs.vcm.maps.Oblique");e.olMap.removeLayer(this.olLayer)}this.olLayer=null,this.initialized=!1,this.active=!1,ol.Observable.unByKey(this.sourceListener),this.sourceListener=[],this.frameworkListeners.forEach(this.framework.unsubscribeByKey,this.framework),this.frameworkListeners=[],this.obliqueSource.clear(!0)}},{key:"mapActivated",value:function(e){var t=this;return this.sourceListener.push(this.commonLayer.source.on("addfeature",(function(e){t.addFeature(e.feature)}))),this.sourceListener.push(this.commonLayer.source.on("removefeature",(function(e){t.removeFeature(e.feature)}))),this.sourceListener.push(this.commonLayer.source.on("changefeature",(function(e){var i="".concat(e.feature.getId(),"_OBLIQUE");t.featureListeners[i]||t.addFeature(e.feature)}))),this.frameworkListeners.push(this.framework.subscribe(O.OBLIQUE_IMAGE_CHANGED,(function(){t.synchronizeGeometriesAndClearSource().then((function(){t.fetchFeaturesInView()}))}))),this.fetchFeaturesInView()}},{key:"mapDeactivated",value:function(e){return ol.Observable.unByKey(this.sourceListener),this.sourceListener=[],this.frameworkListeners.forEach(this.framework.unsubscribeByKey,this.framework),this.frameworkListeners=[],this.synchronizeGeometriesAndClearSource()}},{key:"synchronizing",get:function(){return this._synchronizing}}],[{key:"setNewGeometry",value:function(e,t){var i=e.getGeometry().clone();t.setGeometry(e.getGeometry()[_n.alreadyTransformedToImage]?i:pi(i)),e.getGeometry()[_n.alreadyTransformedToImage]&&t.getGeometry().setProperties(e.getGeometry().getProperties(),!1),e[_n.obliqueGeometry]=t.getGeometry()}}]),i}(rp);Le.registerSpecificLayerImpl(Fi.className,_n.className,Ep),Le.registerSpecificLayerImpl(Fi.className,Ps.className,Ep);var Ip=Ep,Dp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.oblique.AsyncVectorImplementation"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then(this.commonLayer.fetchData.bind(this.commonLayer))}}]),i}(Ip);Le.registerSpecificLayerImpl(Fi.className,ys.className,Dp),Le.registerSpecificLayerImpl(Fi.className,rs.className,Dp),Le.registerSpecificLayerImpl(Fi.className,Ts.className,Dp);var Pp=Dp,Ap=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.clusterSource=new ol.source.Cluster({source:n.obliqueSource}),n}return Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e.clusterSource.setDistance(e.commonLayer.clusterSource.getDistance()),e.olLayer.setSource(e.clusterSource)}))}},{key:"show",value:function(){this.initialized&&!this.active&&(null===this._postComposeListener&&(this._postComposeListener=this.olMap.on("postcompose",this.commonLayer.postRenderStyling.bind(this.commonLayer))),ye(Object(fe["a"])(i.prototype),"show",this).call(this))}},{key:"mapActivated",value:function(e){var t=this,i=function(){t.synchronizeGeometriesAndClearSource().then((function(){t.fetchFeaturesInView()}))};return this.sourceListener.push(this.commonLayer.source.on("change",i)),this.frameworkListeners.push(this.framework.subscribe(O.OBLIQUE_IMAGE_CHANGED,i)),this.fetchFeaturesInView()}}]),i}(Ip);Le.registerSpecificLayerImpl(Fi.className,fs.className,Ap);var xp=Ap,Yp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=e.className?e.className:i.className,n=t.call(this,e),n.commonLayer=n.commonLayer,n._postComposeListener=null,n.olLayer=null,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.openlayers.VectorLayer"}}]),Object(m["a"])(i,[{key:"updateStyle",value:function(){this.initialized&&this.olLayer.setStyle(this.commonLayer.style.style)}},{key:"getOLLayer",value:function(){var e=new ol.layer.Vector({renderOrder:null,visible:!1,source:this.commonLayer.getSource(),style:this.commonLayer.style.style,zIndex:this.commonLayer.zIndex,name:this.commonLayer.name}),t=this.commonLayer.maxResolution,i=this.commonLayer.minResolution;return t&&e.setMinResolution(t),i&&e.setMaxResolution(i),e}},{key:"show",value:function(){if(!this.active){ye(Object(fe["a"])(i.prototype),"show",this).call(this);var e=this.framework.getActiveMap();null===this._postComposeListener&&(this._postComposeListener=e.olMap.on("postcompose",this.commonLayer.postRenderStyling.bind(this.commonLayer)))}}},{key:"hide",value:function(){this.active&&(ye(Object(fe["a"])(i.prototype),"hide",this).call(this),null!=this._postComposeListener&&(ol.Observable.unByKey(this._postComposeListener),this._postComposeListener=null),this.commonLayer.FVlastUpdated=0)}},{key:"setVisibility",value:function(e){this.initialized&&this.olLayer.setVisible(e)}}]),i}(jp);Le.registerSpecificLayerImpl(Vi.className,_n.className,Yp),Le.registerSpecificLayerImpl(Vi.className,Ts.className,Yp),Le.registerSpecificLayerImpl(Vi.className,Ps.className,Yp);var Np=Yp,Fp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return this.commonLayer.fetchData().then((function(){return ye(Object(fe["a"])(i.prototype),"initialize",e).call(e)}))}}]),i}(Np);Le.registerSpecificLayerImpl(Vi.className,ys.className,Fp),Le.registerSpecificLayerImpl(Vi.className,rs.className,Fp),Le.registerSpecificLayerImpl(Vi.className,or.className,Fp);var Rp=Fp,Hp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),n=t.call(this,e),n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,[{key:"initialize",value:function(){var e=this;return ye(Object(fe["a"])(i.prototype),"initialize",this).call(this).then((function(){e.updateSplitDirection()}))}},{key:"updateOpacity",value:function(){this.initialized&&this.olLayer.setOpacity(this.commonLayer.opacity)}},{key:"updateSplitDirection",value:function(){if(this.initialized){var e=this.commonLayer.splitDirection;e===Cesium.ImagerySplitDirection.NONE&&this._splitDirectionListeners?(ol.Observable.unByKey(this._splitDirectionListeners),this._splitDirectionListeners=null):e===Cesium.ImagerySplitDirection.NONE||this._splitDirectionListeners||(this._splitDirectionListeners=[],this._splitDirectionListeners.push(this.olLayer.on("precompose",this._splitPreCompose.bind(this))),this._splitDirectionListeners.push(this.olLayer.on("postcompose",(function(e){e.context.restore()}))))}}},{key:"_splitPreCompose",value:function(e){var t=e.context,i=t.canvas.width*Fa().position;t.save(),t.beginPath();var n=this.commonLayer.splitDirection;n===Cesium.ImagerySplitDirection.LEFT?t.rect(0,0,i,t.canvas.height):t.rect(i,0,t.canvas.width-i,t.canvas.height),t.clip()}}]),i}(jp),Gp=Hp,zp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.openlayers.OpenStreetMapLayer"}}]),Object(m["a"])(i,[{key:"getOLLayer",value:function(){return new ol.layer.Tile({opacity:this.commonLayer.opacity,source:new ol.source.OSM})}}]),i}(Gp);Le.registerSpecificLayerImpl(Vi.className,us.className,zp);var Bp=zp,Vp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){var n;return Object(d["a"])(this,i),e.className=i.className,n=t.call(this,e),n.commonLayer=n.commonLayer,n}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.openlayers.SingleImageLayer"}}]),Object(m["a"])(i,[{key:"initialize",value:function(){return this.initialized||this.updateLayer(),Promise.resolve()}},{key:"getOLLayer",value:function(){return this.initialized||this.initialize(),this.olLayer}},{key:"updateLayer",value:function(){var e=this.active;this.initialized&&this.dispose();var t={attributions:this.commonLayer.credit,url:this.commonLayer.url,projection:"EPSG:4326",imageExtent:this.commonLayer.imageExtent};a["a"].hasSameOrigin(this.commonLayer.url)||(t.crossOrigin="anonymous"),this.olLayer=new ol.layer.Image({source:new ol.source.ImageStatic(t),opacity:this.commonLayer.opacity}),this.initialized=!0,e&&this.show(),this.updateSplitDirection()}}]),i}(Gp);Le.registerSpecificLayerImpl(Vi.className,ls.className,Vp);var Up=Vp,Wp=function(e){Object(ue["a"])(i,e);var t=Object(he["a"])(i);function i(e){return Object(d["a"])(this,i),e.className=i.className,t.call(this,e)}return Object(m["a"])(i,null,[{key:"className",get:function(){return"vcs.vcm.layer.openlayers.TMSBaseLayer"}}]),Object(m["a"])(i,[{key:"getOLLayer",value:function(){var e=this,t={tileUrlFunction:function(t){var i=e.commonLayer.url.replace(/\/$/,""),n="".concat(i,"/{z}/{x}/{y}.").concat(e.commonLayer.format),r=(1<1&&(i/=this.commonLayer.numberOfLevelZeroTilesX),"geographic"===this.commonLayer.tilingSchema&&(i=ol.extent.getWidth(t)/(2*this.commonLayer.tileSize[0]));for(var n=this.commonLayer.maxLevel+1,r=new Array(n),s=new Array(n),o=0;o1||this.commonLayer.numberOfLevelZeroTilesY>1){for(var u=[],h=this.commonLayer,d=h.numberOfLevelZeroTilesX,m=h.numberOfLevelZeroTilesY,f=0;f<=n;f++)u.push([d,-m]),d*=2,m*=2;c.sizes=u}var g=new ol.tilegrid.WMTS(c),y=this.commonLayer.url.indexOf("{")>=0?"REST":"KVP",p={tileGrid:g,requestEncoding:y,layer:this.commonLayer.layer,style:this.commonLayer.wmtsStyle,format:this.commonLayer.format,matrixSet:this.commonLayer.tileMatrixSetID,url:this.commonLayer.url};return a["a"].hasSameOrigin(this.commonLayer.url)||(p.crossOrigin="anonymous"),"geographic"===this.commonLayer.tilingSchema&&(p.projection="EPSG:4326"),Object.assign(p,this.commonLayer.olOptions),new ol.layer.Tile({opacity:this.commonLayer.opacity,source:new ol.source.WMTS(p)})}}]),i}(Gp);Le.registerSpecificLayerImpl(Vi.className,Ls.className,Xp);var $p=Xp;function ev(e,t){var i=G.getInstance(),n=i.getActiveMap(),r={};r.lang=i.getLocale(),r.layerToActivate=[],r.layerToDeactivate=[],i.getLayers().filter((function(e){return e[G.configContentSymbol]&&e.isSupported(n)})).forEach((function(e){e.active!==e.activeOnStartup&&(e.active?r.layerToActivate.push(e.name):r.layerToDeactivate.push(e.name))})),r.layerToActivate.length||delete r.layerToActivate,r.layerToDeactivate.length||delete r.layerToDeactivate,delete e.queryParams.epsg,t&&(r.epsg=i.projection.epsg.match(/\d+/)[0]),e.addQueryParams(r);var a=i.getSelectBehavior();return a&&a.getLink(e),Ce.getInstance().getLink(e),n.getLink(e).then((function(){return e.toString()})).catch((function(){return e.toString()}))}function tv(e){var t=G.getInstance(),i=a["a"].parse(window.location.href);if(t.baseUrl){var n=a["a"].parse(t.baseUrl);i.base=n.base,i.path=n.path}for(var r=t.getWidgets(),s=0;sthis.clock.endTime){if(!this.values.repeat)return void this.stop();this.clock.currentTime-=this.clock.endTime}else if(this.clock.currentTimethis.clock.endTime)nv.warning("time: ".concat(e," out of range"));else if(this.clock.currentTime=e,this.clock.currentSystemTime=null,!this.values.playing||this.values.playing&&this.values.paused){var t=G.getInstance().getActiveMap();if(t instanceof Ut){var i={destination:this.destinationSpline.evaluate(this.clock.currentTime),orientation:Cesium.HeadingPitchRoll.fromQuaternion(this.quaternionSpline.evaluate(this.clock.currentTime))};t.getScene().camera.setView(i)}}}else nv.warning("cannot go to time on missing or invalid flight")}},{key:"forward",value:function(){var e=this.clock.currentTime,t=this.clock.times.find((function(t){return t>e}))||this.clock.times[this.clock.times.length-1];this.goToTime(t)}},{key:"backward",value:function(){var e=this,t=this.clock.currentTime,i=this.clock.times.findIndex((function(e){return e>=t}))-1;this.backedBefore&&(i-=1,clearTimeout(this.backedBeforeTimeout)),i<0&&(i=0);var n=this.clock.times[i];this.goToTime(n),this.backedBefore=!0,this.backedBeforeTimeout=setTimeout((function(){e.backedBefore=!1}),700)}},{key:"changeHandler",value:function(){this.values.activeInstance&&(this.values.valid=this.values.activeInstance.isValid(),this.values.valid&&this._updateSplines())}},{key:"_updateSplines",value:function(){var e=this.values.activeInstance,t=e.loop,i=e.viewpoints,n=t?i.length+1:i.length,r=new Array(n),a=new Array(n),s=new Array(n);i.forEach((function(e,t){if(r[t]=Cesium.Cartesian3.fromDegrees(e.cameraPosition[0],e.cameraPosition[1],e.cameraPosition[2]),a[t]=Cesium.Quaternion.fromHeadingPitchRoll(Cesium.HeadingPitchRoll.fromDegrees(e.heading,e.pitch,e.roll)),t>0){var n=i[t-1];n.duration||(n.duration=Cesium.Cartesian3.distance(r[t-1],r[t])/300||1),s[t]=s[t-1]+n.duration}else s[t]=0})),t&&(r[n-1]=Cesium.Cartesian3.fromDegrees(i[0].cameraPosition[0],i[0].cameraPosition[1],i[0].cameraPosition[2]),a[n-1]=Cesium.Quaternion.fromHeadingPitchRoll(Cesium.HeadingPitchRoll.fromDegrees(i[0].heading,i[0].pitch,i[0].roll)),i[n-2].duration||(i[n-2].duration=Cesium.Cartesian3.distance(r[n-2],r[n-1])/300||1),s[n-1]=s[n-2]+i[n-2].duration),this.destinationSpline=this.values.activeInstance.interpolation===vl.SPLINE?new Cesium.CatmullRomSpline({times:s,points:r}):new Cesium.LinearSpline({times:s,points:r}),this.quaternionSpline=new Cesium.QuaternionSpline({times:s,points:a}),this.clock.endTime=s[n-1],this.clock.times=s,this.values.repeat=t}}]),e}();function av(){return iv||(iv=new rv),iv}var sv,ov=k.getLogger("vcs.vcm.util.flight.FlightVisualizer"),lv=null,cv=new Cesium.Cartographic,uv=function(){function e(){var t=this;Object(d["a"])(this,e),this.extent=ol.extent.createEmpty(),this.flightLayer=new _n({projection:$,name:"_scratchFlightLayer",style:{declarativeStyle:{labelText:"${title}",image:"false",color:'color("#333333")',strokeWidth:"2"}},altitudeMode:"absolute"}),this._primitives=new Cesium.PrimitiveCollection,this.activeInstance=null,this._flightInstanceChangeHandler=null,this._mapActivatedListener=G.getInstance().subscribe("MAP_ACTIVATED",(function(){t.hide()}))}return Object(m["a"])(e,[{key:"_createFeatures",value:function(){var e=this;this.flightLayer.removeAllFeatures();var t=G.getInstance().getMapByType(Ut.className);if(t){var i=t.getScene();this._primitives.removeAll();var n=this.activeInstance.viewpoints.map((function(t,n){var r=new Cesium.Camera(i);return r.frustum.far=200,r.frustum.near=10,r.setView({destination:Cesium.Cartesian3.fromDegrees(t.cameraPosition[0],t.cameraPosition[1],t.cameraPosition[2]),orientation:Cesium.HeadingPitchRoll.fromDegrees(t.heading,t.pitch,t.roll)}),e._primitives.add(new Cesium.VcsCameraPrimitve({camera:r,allowPicking:!1})),new ol.Feature({geometry:new ol.geom.Point(t.cameraPosition,"XYZ"),title:t.name||"".concat(C.getInstance().getSingleMessage("i18n_viewpointeditor_number")," ").concat(n+1),duration:t.duration})}));if(this.activeInstance.isValid()){var r=[],a=av();if(a.values.activeInstance===this.activeInstance){if(this.activeInstance.interpolation===vl.SPLINE){for(var s=function(e){Cesium.Cartographic.fromCartesian(a.destinationSpline.evaluate(e),null,cv),r.push([Cesium.Math.toDegrees(cv.longitude),Cesium.Math.toDegrees(cv.latitude),cv.height])},o=a.clock.endTime,l=o/.2>500?o/500:.2,c=0;c