@mapxus/mapxus-map-jp 7.9.0 → 7.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +1 -1
- package/es/index.d.ts +34 -9
- package/es/index.mjs +1 -1
- package/es/utils/index.mjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/utils/index.cjs +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t={109:(t,e,i)=>{i.d(e,{KL:()=>s,R0:()=>n,e$:()=>o,hl:()=>r});const n="https://map-api.mapxus.co.jp/sc/api/v1/apikeys/auth",r="https://map-api.mapxus.co.jp/bms",o=10,s=1},861:(t,e,i)=>{var n,r,o,s,a,l;i.d(e,{Kp:()=>s,MA:()=>n,LJ:()=>a,ys:()=>r,SV:()=>o,$O:()=>l}),function(t){t[t.SWITCHED_BY_BUILDING=0]="SWITCHED_BY_BUILDING",t[t.SWITCHED_BY_VENUE=1]="SWITCHED_BY_VENUE"}(n||(n={})),function(t){t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.JAPANESE="ja",t.KOREAN="ko"}(r||(r={})),function(t){t.CHRISTMAS="christmas",t.HALLOWEEN="halloween",t.MAPPY_BEE="mappyBee",t.MAPXUS="mapxus",t.LANDS_D="landsD",t.COMMON="common",t.MAPXUS_V2="mapxus_v2"}(o||(o={})),function(t){t.POINT="Point",t.POLYGON="Polygon",t.GATE="Gate"}(s||(s={})),function(t){t.DEFAULT_NAME="DefaultName"}(a||(a={})),function(t){t.FOOT="foot",t.WHEELCHAIR="wheelchair",t.ESCALATOR="escalator",t.EMERGENCY="emergency"}(l||(l={}))},776:(t,e,i)=>{function n(t,e,i){i[t]&&-1!==i[t].indexOf(e)||(i[t]=i[t]||[],i[t].push(e))}function r(t,e,i){if(i&&i[t]){const n=i[t].indexOf(e);-1!==n&&i[t].splice(n,1)}}function o(t,...e){for(const i of e)for(const e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}i.d(e,{Jh:()=>s,a$:()=>l});class s{_type;_target;constructor(t,e={}){o(this,e),this.type=t}get type(){return this._type}set type(t){this._type=t}get target(){return this._target}set target(t){this._target=t}}class a extends s{error;constructor(t,e={}){super("error",o({error:t},e))}}class l{_listeners;_oneTimeListeners;_eventedParent;_eventedParentData;on(t,e){return this._listeners=this._listeners||{},n(t,e,this._listeners),this}off(t,e){return r(t,e,this._listeners),r(t,e,this._oneTimeListeners),this}once(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},n(t,e,this._oneTimeListeners),this}fire(t){"string"==typeof t&&(t=new s(t,arguments[1]||{}));const e=t.type;if(this.listens(e)){t.target=this;const i=this._listeners&&this._listeners[e]?this._listeners[e].slice():[];for(const e of i)e.call(this,t);const n=this._oneTimeListeners&&this._oneTimeListeners[e]?this._oneTimeListeners[e].slice():[];for(const i of n)r(e,i,this._oneTimeListeners),i.call(this,t);const s=this._eventedParent;s&&(o(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),s.fire(t))}else t instanceof a&&console.error(t.error);return this}listens(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}}},556:(t,e,i)=>{i.d(e,{Evented:()=>s.a$,OFFSET:()=>r.e$,PAGE:()=>r.KL,VERSION:()=>l,convertBrowserLangToPresetLang:()=>o.y,version:()=>a});const n="7.9.0";var r=i(109),o=i(666),s=i(776);const a=n,l=n},666:(t,e,i)=>{i.d(e,{E:()=>r,y:()=>o});var n=i(861);function r(t,e){return t.map((({id:t})=>({layerId:t,languages:["coalesce",["get",`name:${e}`],["get","name"]]})))}function o(t){return function(t){return/^en(-(US|GB|AU))?$/.test(t)}(t)?n.ys.ENGLISH:function(t){return/^zh(-(Hans|CN))?$/.test(t)}(t)?n.ys.CHINESE_SIMPLIFIED:function(t){return/^zh-(Hant|HK|TW)?$/.test(t)}(t)?n.ys.CHINESE_TRADITIONAL:function(t){return/^ja(-JP)?$/.test(t)}(t)?n.ys.JAPANESE:function(t){return/^ko(-KR)?$/.test(t)}(t)?n.ys.KOREAN:null}}},e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};i.r(n),i.d(n,{BuildingFilterControl:()=>ps,BuildingSelectorHandler:()=>Vs,BuildingsService:()=>po,DistanceSearchType:()=>r.Kp,Evented:()=>vr.Evented,FloorSelectorHandler:()=>As,FloorSwitchMode:()=>r.MA,FloorsControl:()=>ws,Indoor:()=>ls,Map:()=>Ts,Marker:()=>Ns,OFFSET:()=>vr.OFFSET,PAGE:()=>vr.PAGE,Poi:()=>cs,PoisOrderBy:()=>r.LJ,PoisService:()=>fo,PresetLanguage:()=>r.ys,RoutePainter:()=>Qs,RouteService:()=>mo,SwitchBuildingHandler:()=>Os,SwitchOutdoorHandler:()=>js,ThemeType:()=>r.SV,VERSION:()=>vr.VERSION,VehicleType:()=>r.$O,VenuesService:()=>uo,convertBrowserLangToPresetLang:()=>vr.convertBrowserLangToPresetLang,version:()=>vr.version});var r=i(861);function o(t){return t.layers.filter(s)}function s(t){return t.source===l}function a(t){return t.source!==l}const l="indoor-planet";const c="object"==typeof global&&global&&global.Object===Object&&global;var u="object"==typeof self&&self&&self.Object===Object&&self;const d=c||u||Function("return this")();const h=d.Symbol;var p=Object.prototype,_=p.hasOwnProperty,f=p.toString,g=h?h.toStringTag:void 0;const m=function(t){var e=_.call(t,g),i=t[g];try{t[g]=void 0;var n=!0}catch(t){}var r=f.call(t);return n&&(e?t[g]=i:delete t[g]),r};var y=Object.prototype.toString;const v=function(t){return y.call(t)};var b=h?h.toStringTag:void 0;const w=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":b&&b in Object(t)?m(t):v(t)};const L=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const S=function(t){if(!L(t))return!1;var e=w(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const B=d["__core-js_shared__"];var I,x=(I=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";const M=function(t){return!!x&&x in t};var F=Function.prototype.toString;const C=function(t){if(null!=t){try{return F.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var k=/^\[object .+?Constructor\]$/,P=Function.prototype,$=Object.prototype,E=P.toString,j=$.hasOwnProperty,O=RegExp("^"+E.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const V=function(t){return!(!L(t)||M(t))&&(S(t)?O:k).test(C(t))};const A=function(t,e){return null==t?void 0:t[e]};const T=function(t,e){var i=A(t,e);return V(i)?i:void 0};const R=function(){try{var t=T(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const N=function(t,e,i){"__proto__"==e&&R?R(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i};const H=function(t){return function(e,i,n){for(var r=-1,o=Object(e),s=n(e),a=s.length;a--;){var l=s[t?a:++r];if(!1===i(o[l],l,o))break}return e}};const W=H();const D=function(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n};const Z=function(t){return null!=t&&"object"==typeof t};const z=function(t){return Z(t)&&"[object Arguments]"==w(t)};var G=Object.prototype,Y=G.hasOwnProperty,X=G.propertyIsEnumerable;const J=z(function(){return arguments}())?z:function(t){return Z(t)&&Y.call(t,"callee")&&!X.call(t,"callee")};const U=Array.isArray;const q=function(){return!1};var K="object"==typeof exports&&exports&&!exports.nodeType&&exports,Q=K&&"object"==typeof module&&module&&!module.nodeType&&module,tt=Q&&Q.exports===K?d.Buffer:void 0;const et=(tt?tt.isBuffer:void 0)||q;var it=/^(?:0|[1-9]\d*)$/;const nt=function(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&it.test(t))&&t>-1&&t%1==0&&t<e};const rt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ot={};ot["[object Float32Array]"]=ot["[object Float64Array]"]=ot["[object Int8Array]"]=ot["[object Int16Array]"]=ot["[object Int32Array]"]=ot["[object Uint8Array]"]=ot["[object Uint8ClampedArray]"]=ot["[object Uint16Array]"]=ot["[object Uint32Array]"]=!0,ot["[object Arguments]"]=ot["[object Array]"]=ot["[object ArrayBuffer]"]=ot["[object Boolean]"]=ot["[object DataView]"]=ot["[object Date]"]=ot["[object Error]"]=ot["[object Function]"]=ot["[object Map]"]=ot["[object Number]"]=ot["[object Object]"]=ot["[object RegExp]"]=ot["[object Set]"]=ot["[object String]"]=ot["[object WeakMap]"]=!1;const st=function(t){return Z(t)&&rt(t.length)&&!!ot[w(t)]};const at=function(t){return function(e){return t(e)}};var lt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ct=lt&&"object"==typeof module&&module&&!module.nodeType&&module,ut=ct&&ct.exports===lt&&c.process,dt=function(){try{var t=ct&&ct.require&&ct.require("util").types;return t||ut&&ut.binding&&ut.binding("util")}catch(t){}}();var ht=dt&&dt.isTypedArray;const pt=ht?at(ht):st;var _t=Object.prototype.hasOwnProperty;const ft=function(t,e){var i=U(t),n=!i&&J(t),r=!i&&!n&&et(t),o=!i&&!n&&!r&&pt(t),s=i||n||r||o,a=s?D(t.length,String):[],l=a.length;for(var c in t)!e&&!_t.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||nt(c,l))||a.push(c);return a};var gt=Object.prototype;const mt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||gt)};const yt=function(t,e){return function(i){return t(e(i))}};const vt=yt(Object.keys,Object);var bt=Object.prototype.hasOwnProperty;const wt=function(t){if(!mt(t))return vt(t);var e=[];for(var i in Object(t))bt.call(t,i)&&"constructor"!=i&&e.push(i);return e};const Lt=function(t){return null!=t&&rt(t.length)&&!S(t)};const St=function(t){return Lt(t)?ft(t):wt(t)};const Bt=function(t,e){return t&&W(t,e,St)};const It=function(){this.__data__=[],this.size=0};const xt=function(t,e){return t===e||t!=t&&e!=e};const Mt=function(t,e){for(var i=t.length;i--;)if(xt(t[i][0],e))return i;return-1};var Ft=Array.prototype.splice;const Ct=function(t){var e=this.__data__,i=Mt(e,t);return!(i<0)&&(i==e.length-1?e.pop():Ft.call(e,i,1),--this.size,!0)};const kt=function(t){var e=this.__data__,i=Mt(e,t);return i<0?void 0:e[i][1]};const Pt=function(t){return Mt(this.__data__,t)>-1};const $t=function(t,e){var i=this.__data__,n=Mt(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this};function Et(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}Et.prototype.clear=It,Et.prototype.delete=Ct,Et.prototype.get=kt,Et.prototype.has=Pt,Et.prototype.set=$t;const jt=Et;const Ot=function(){this.__data__=new jt,this.size=0};const Vt=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i};const At=function(t){return this.__data__.get(t)};const Tt=function(t){return this.__data__.has(t)};const Rt=T(d,"Map");const Nt=T(Object,"create");const Ht=function(){this.__data__=Nt?Nt(null):{},this.size=0};const Wt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Dt=Object.prototype.hasOwnProperty;const Zt=function(t){var e=this.__data__;if(Nt){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return Dt.call(e,t)?e[t]:void 0};var zt=Object.prototype.hasOwnProperty;const Gt=function(t){var e=this.__data__;return Nt?void 0!==e[t]:zt.call(e,t)};const Yt=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Nt&&void 0===e?"__lodash_hash_undefined__":e,this};function Xt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}Xt.prototype.clear=Ht,Xt.prototype.delete=Wt,Xt.prototype.get=Zt,Xt.prototype.has=Gt,Xt.prototype.set=Yt;const Jt=Xt;const Ut=function(){this.size=0,this.__data__={hash:new Jt,map:new(Rt||jt),string:new Jt}};const qt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Kt=function(t,e){var i=t.__data__;return qt(e)?i["string"==typeof e?"string":"hash"]:i.map};const Qt=function(t){var e=Kt(this,t).delete(t);return this.size-=e?1:0,e};const te=function(t){return Kt(this,t).get(t)};const ee=function(t){return Kt(this,t).has(t)};const ie=function(t,e){var i=Kt(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this};function ne(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}ne.prototype.clear=Ut,ne.prototype.delete=Qt,ne.prototype.get=te,ne.prototype.has=ee,ne.prototype.set=ie;const re=ne;const oe=function(t,e){var i=this.__data__;if(i instanceof jt){var n=i.__data__;if(!Rt||n.length<199)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new re(n)}return i.set(t,e),this.size=i.size,this};function se(t){var e=this.__data__=new jt(t);this.size=e.size}se.prototype.clear=Ot,se.prototype.delete=Vt,se.prototype.get=At,se.prototype.has=Tt,se.prototype.set=oe;const ae=se;const le=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const ce=function(t){return this.__data__.has(t)};function ue(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new re;++e<i;)this.add(t[e])}ue.prototype.add=ue.prototype.push=le,ue.prototype.has=ce;const de=ue;const he=function(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(e(t[i],i,t))return!0;return!1};const pe=function(t,e){return t.has(e)};const _e=function(t,e,i,n,r,o){var s=1&i,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(t),u=o.get(e);if(c&&u)return c==e&&u==t;var d=-1,h=!0,p=2&i?new de:void 0;for(o.set(t,e),o.set(e,t);++d<a;){var _=t[d],f=e[d];if(n)var g=s?n(f,_,d,e,t,o):n(_,f,d,t,e,o);if(void 0!==g){if(g)continue;h=!1;break}if(p){if(!he(e,(function(t,e){if(!pe(p,e)&&(_===t||r(_,t,i,n,o)))return p.push(e)}))){h=!1;break}}else if(_!==f&&!r(_,f,i,n,o)){h=!1;break}}return o.delete(t),o.delete(e),h};const fe=d.Uint8Array;const ge=function(t){var e=-1,i=Array(t.size);return t.forEach((function(t,n){i[++e]=[n,t]})),i};const me=function(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=t})),i};var ye=h?h.prototype:void 0,ve=ye?ye.valueOf:void 0;const be=function(t,e,i,n,r,o,s){switch(i){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new fe(t),new fe(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=ge;case"[object Set]":var l=1&n;if(a||(a=me),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;n|=2,s.set(t,e);var u=_e(a(t),a(e),n,r,o,s);return s.delete(t),u;case"[object Symbol]":if(ve)return ve.call(t)==ve.call(e)}return!1};const we=function(t,e){for(var i=-1,n=e.length,r=t.length;++i<n;)t[r+i]=e[i];return t};const Le=function(t,e,i){var n=e(t);return U(t)?n:we(n,i(t))};const Se=function(t,e){for(var i=-1,n=null==t?0:t.length,r=0,o=[];++i<n;){var s=t[i];e(s,i,t)&&(o[r++]=s)}return o};const Be=function(){return[]};var Ie=Object.prototype.propertyIsEnumerable,xe=Object.getOwnPropertySymbols;const Me=xe?function(t){return null==t?[]:(t=Object(t),Se(xe(t),(function(e){return Ie.call(t,e)})))}:Be;const Fe=function(t){return Le(t,St,Me)};var Ce=Object.prototype.hasOwnProperty;const ke=function(t,e,i,n,r,o){var s=1&i,a=Fe(t),l=a.length;if(l!=Fe(e).length&&!s)return!1;for(var c=l;c--;){var u=a[c];if(!(s?u in e:Ce.call(e,u)))return!1}var d=o.get(t),h=o.get(e);if(d&&h)return d==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var _=s;++c<l;){var f=t[u=a[c]],g=e[u];if(n)var m=s?n(g,f,u,e,t,o):n(f,g,u,t,e,o);if(!(void 0===m?f===g||r(f,g,i,n,o):m)){p=!1;break}_||(_="constructor"==u)}if(p&&!_){var y=t.constructor,v=e.constructor;y==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return o.delete(t),o.delete(e),p};const Pe=T(d,"DataView");const $e=T(d,"Promise");const Ee=T(d,"Set");const je=T(d,"WeakMap");var Oe="[object Map]",Ve="[object Promise]",Ae="[object Set]",Te="[object WeakMap]",Re="[object DataView]",Ne=C(Pe),He=C(Rt),We=C($e),De=C(Ee),Ze=C(je),ze=w;(Pe&&ze(new Pe(new ArrayBuffer(1)))!=Re||Rt&&ze(new Rt)!=Oe||$e&&ze($e.resolve())!=Ve||Ee&&ze(new Ee)!=Ae||je&&ze(new je)!=Te)&&(ze=function(t){var e=w(t),i="[object Object]"==e?t.constructor:void 0,n=i?C(i):"";if(n)switch(n){case Ne:return Re;case He:return Oe;case We:return Ve;case De:return Ae;case Ze:return Te}return e});const Ge=ze;var Ye="[object Arguments]",Xe="[object Array]",Je="[object Object]",Ue=Object.prototype.hasOwnProperty;const qe=function(t,e,i,n,r,o){var s=U(t),a=U(e),l=s?Xe:Ge(t),c=a?Xe:Ge(e),u=(l=l==Ye?Je:l)==Je,d=(c=c==Ye?Je:c)==Je,h=l==c;if(h&&et(t)){if(!et(e))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new ae),s||pt(t)?_e(t,e,i,n,r,o):be(t,e,l,i,n,r,o);if(!(1&i)){var p=u&&Ue.call(t,"__wrapped__"),_=d&&Ue.call(e,"__wrapped__");if(p||_){var f=p?t.value():t,g=_?e.value():e;return o||(o=new ae),r(f,g,i,n,o)}}return!!h&&(o||(o=new ae),ke(t,e,i,n,r,o))};const Ke=function t(e,i,n,r,o){return e===i||(null==e||null==i||!Z(e)&&!Z(i)?e!=e&&i!=i:qe(e,i,n,r,t,o))};const Qe=function(t,e,i,n){var r=i.length,o=r,s=!n;if(null==t)return!o;for(t=Object(t);r--;){var a=i[r];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++r<o;){var l=(a=i[r])[0],c=t[l],u=a[1];if(s&&a[2]){if(void 0===c&&!(l in t))return!1}else{var d=new ae;if(n)var h=n(c,u,l,t,e,d);if(!(void 0===h?Ke(u,c,3,n,d):h))return!1}}return!0};const ti=function(t){return t==t&&!L(t)};const ei=function(t){for(var e=St(t),i=e.length;i--;){var n=e[i],r=t[n];e[i]=[n,r,ti(r)]}return e};const ii=function(t,e){return function(i){return null!=i&&(i[t]===e&&(void 0!==e||t in Object(i)))}};const ni=function(t){var e=ei(t);return 1==e.length&&e[0][2]?ii(e[0][0],e[0][1]):function(i){return i===t||Qe(i,t,e)}};const ri=function(t){return"symbol"==typeof t||Z(t)&&"[object Symbol]"==w(t)};var oi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,si=/^\w*$/;const ai=function(t,e){if(U(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!ri(t))||(si.test(t)||!oi.test(t)||null!=e&&t in Object(e))};function li(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=t.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new(li.Cache||re),i}li.Cache=re;const ci=li;var ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,di=/\\(\\)?/g;const hi=function(t){var e=ci(t,(function(t){return 500===i.size&&i.clear(),t})),i=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ui,(function(t,i,n,r){e.push(n?r.replace(di,"$1"):i||t)})),e}));const pi=function(t,e){for(var i=-1,n=null==t?0:t.length,r=Array(n);++i<n;)r[i]=e(t[i],i,t);return r};var _i=h?h.prototype:void 0,fi=_i?_i.toString:void 0;const gi=function t(e){if("string"==typeof e)return e;if(U(e))return pi(e,t)+"";if(ri(e))return fi?fi.call(e):"";var i=e+"";return"0"==i&&1/e==-1/0?"-0":i};const mi=function(t){return null==t?"":gi(t)};const yi=function(t,e){return U(t)?t:ai(t,e)?[t]:hi(mi(t))};const vi=function(t){if("string"==typeof t||ri(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e};const bi=function(t,e){for(var i=0,n=(e=yi(e,t)).length;null!=t&&i<n;)t=t[vi(e[i++])];return i&&i==n?t:void 0};const wi=function(t,e,i){var n=null==t?void 0:bi(t,e);return void 0===n?i:n};const Li=function(t,e){return null!=t&&e in Object(t)};const Si=function(t,e,i){for(var n=-1,r=(e=yi(e,t)).length,o=!1;++n<r;){var s=vi(e[n]);if(!(o=null!=t&&i(t,s)))break;t=t[s]}return o||++n!=r?o:!!(r=null==t?0:t.length)&&rt(r)&&nt(s,r)&&(U(t)||J(t))};const Bi=function(t,e){return null!=t&&Si(t,e,Li)};const Ii=function(t,e){return ai(t)&&ti(e)?ii(vi(t),e):function(i){var n=wi(i,t);return void 0===n&&n===e?Bi(i,t):Ke(e,n,3)}};const xi=function(t){return t};const Mi=function(t){return function(e){return null==e?void 0:e[t]}};const Fi=function(t){return function(e){return bi(e,t)}};const Ci=function(t){return ai(t)?Mi(vi(t)):Fi(t)};const ki=function(t){return"function"==typeof t?t:null==t?xi:"object"==typeof t?U(t)?Ii(t[0],t[1]):ni(t):Ci(t)};const Pi=function(t,e){var i={};return e=ki(e,3),Bt(t,(function(t,n,r){N(i,e(t,n,r),t)})),i};const $i=function(t,e,i,n){var r=-1,o=null==t?0:t.length;for(n&&o&&(i=t[++r]);++r<o;)i=e(i,t[r],r,t);return i};const Ei=function(t,e){return function(i,n){if(null==i)return i;if(!Lt(i))return t(i,n);for(var r=i.length,o=e?r:-1,s=Object(i);(e?o--:++o<r)&&!1!==n(s[o],o,s););return i}};const ji=Ei(Bt);const Oi=function(t,e,i,n,r){return r(t,(function(t,r,o){i=n?(n=!1,t):e(i,t,r,o)})),i};const Vi=function(t,e,i){var n=U(t)?$i:Oi,r=arguments.length<3;return n(t,ki(e,4),i,r,ji)};function Ai(t){const{buildingId:e,labelCenter:{lat:i,lon:n},floors:r,name:o,venueId:s,defaultFloor:a}=t,l=Pi(o,((t,e)=>"default"===e?"name":`name:${e}`)),{codes:c,ids:u,ordinals:d}=r.reduce(((t,e)=>{const{id:i,code:n,ordinal:r}=e;return{codes:t.codes?`${t.codes},${n}`:n,ids:t.ids?`${t.ids},${i}`:i,ordinals:`${t.ordinals}`?`${t.ordinals},${r}`:`${r}`}}),{codes:"",ids:"",ordinals:""});return{layer:{id:"mapxus-building-line"},properties:{building:"yes",id:e,label_center:`${n},${i}`,level_ids:u,level_names:c,ordinals:d,"ref:venue":s,...l,...a?{default_displayed_floor:a}:{}},source:"indoor-planet",sourceLayer:"mapxus_building"}}var Ti=i(776);var Ri=function(){return Ri=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ri.apply(this,arguments)};function Ni(t,e,i,n){return new(i||(i=Promise))((function(r,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))}function Hi(t,e){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){s.label=a[1];break}if(6===a[0]&&s.label<r[1]){s.label=r[1],r=a;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(a);break}r[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}Object.create;function Wi(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var Di="4.4.3";function Zi(t,e){return new Promise((function(i){return setTimeout(i,t,e)}))}function zi(t){return!!t&&"function"==typeof t.then}function Gi(t,e){try{var i=t();zi(i)?i.then((function(t){return e(!0,t)}),(function(t){return e(!1,t)})):e(!0,i)}catch(t){e(!1,t)}}function Yi(t,e,i){return void 0===i&&(i=16),Ni(this,void 0,void 0,(function(){var n,r,o,s;return Hi(this,(function(a){switch(a.label){case 0:n=Array(t.length),r=Date.now(),o=0,a.label=1;case 1:return o<t.length?(n[o]=e(t[o],o),(s=Date.now())>=r+i?(r=s,[4,new Promise((function(t){var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++o,[3,1];case 4:return[2,n]}}))}))}function Xi(t){return t.then(void 0,(function(){})),t}function Ji(t){return parseInt(t)}function Ui(t){return parseFloat(t)}function qi(t,e){return"number"==typeof t&&isNaN(t)?e:t}function Ki(t){return t.reduce((function(t,e){return t+(e?1:0)}),0)}function Qi(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var i=1/e;return Math.round(t*i)/i}function tn(t,e){var i=t[0]>>>16,n=65535&t[0],r=t[1]>>>16,o=65535&t[1],s=e[0]>>>16,a=65535&e[0],l=e[1]>>>16,c=0,u=0,d=0,h=0;d+=(h+=o+(65535&e[1]))>>>16,h&=65535,u+=(d+=r+l)>>>16,d&=65535,c+=(u+=n+a)>>>16,u&=65535,c+=i+s,c&=65535,t[0]=c<<16|u,t[1]=d<<16|h}function en(t,e){var i=t[0]>>>16,n=65535&t[0],r=t[1]>>>16,o=65535&t[1],s=e[0]>>>16,a=65535&e[0],l=e[1]>>>16,c=65535&e[1],u=0,d=0,h=0,p=0;h+=(p+=o*c)>>>16,p&=65535,d+=(h+=r*c)>>>16,h&=65535,d+=(h+=o*l)>>>16,h&=65535,u+=(d+=n*c)>>>16,d&=65535,u+=(d+=r*l)>>>16,d&=65535,u+=(d+=o*a)>>>16,d&=65535,u+=i*c+n*l+r*a+o*s,u&=65535,t[0]=u<<16|d,t[1]=h<<16|p}function nn(t,e){var i=t[0];32===(e%=64)?(t[0]=t[1],t[1]=i):e<32?(t[0]=i<<e|t[1]>>>32-e,t[1]=t[1]<<e|i>>>32-e):(e-=32,t[0]=t[1]<<e|i>>>32-e,t[1]=i<<e|t[1]>>>32-e)}function rn(t,e){0!==(e%=64)&&(e<32?(t[0]=t[1]>>>32-e,t[1]=t[1]<<e):(t[0]=t[1]<<e-32,t[1]=0))}function on(t,e){t[0]^=e[0],t[1]^=e[1]}var sn=[4283543511,3981806797],an=[3301882366,444984403];function ln(t){var e=[0,t[0]>>>1];on(t,e),en(t,sn),e[1]=t[0]>>>1,on(t,e),en(t,an),e[1]=t[0]>>>1,on(t,e)}var cn=[2277735313,289559509],un=[1291169091,658871167],dn=[0,5],hn=[0,1390208809],pn=[0,944331445];function _n(t,e){var i=function(t){for(var e=new Uint8Array(t.length),i=0;i<t.length;i++){var n=t.charCodeAt(i);if(n>127)return(new TextEncoder).encode(t);e[i]=n}return e}(t);e=e||0;var n,r=[0,i.length],o=r[1]%16,s=r[1]-o,a=[0,e],l=[0,e],c=[0,0],u=[0,0];for(n=0;n<s;n+=16)c[0]=i[n+4]|i[n+5]<<8|i[n+6]<<16|i[n+7]<<24,c[1]=i[n]|i[n+1]<<8|i[n+2]<<16|i[n+3]<<24,u[0]=i[n+12]|i[n+13]<<8|i[n+14]<<16|i[n+15]<<24,u[1]=i[n+8]|i[n+9]<<8|i[n+10]<<16|i[n+11]<<24,en(c,cn),nn(c,31),en(c,un),on(a,c),nn(a,27),tn(a,l),en(a,dn),tn(a,hn),en(u,un),nn(u,33),en(u,cn),on(l,u),nn(l,31),tn(l,a),en(l,dn),tn(l,pn);c[0]=0,c[1]=0,u[0]=0,u[1]=0;var d=[0,0];switch(o){case 15:d[1]=i[n+14],rn(d,48),on(u,d);case 14:d[1]=i[n+13],rn(d,40),on(u,d);case 13:d[1]=i[n+12],rn(d,32),on(u,d);case 12:d[1]=i[n+11],rn(d,24),on(u,d);case 11:d[1]=i[n+10],rn(d,16),on(u,d);case 10:d[1]=i[n+9],rn(d,8),on(u,d);case 9:d[1]=i[n+8],on(u,d),en(u,un),nn(u,33),en(u,cn),on(l,u);case 8:d[1]=i[n+7],rn(d,56),on(c,d);case 7:d[1]=i[n+6],rn(d,48),on(c,d);case 6:d[1]=i[n+5],rn(d,40),on(c,d);case 5:d[1]=i[n+4],rn(d,32),on(c,d);case 4:d[1]=i[n+3],rn(d,24),on(c,d);case 3:d[1]=i[n+2],rn(d,16),on(c,d);case 2:d[1]=i[n+1],rn(d,8),on(c,d);case 1:d[1]=i[n],on(c,d),en(c,cn),nn(c,31),en(c,un),on(a,c)}return on(a,r),on(l,r),tn(a,l),tn(l,a),ln(a),ln(l),tn(a,l),tn(l,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)}function fn(t){return"function"!=typeof t}function gn(t,e,i,n){var r=Object.keys(t).filter((function(t){return!function(t,e){for(var i=0,n=t.length;i<n;++i)if(t[i]===e)return!0;return!1}(i,t)})),o=Xi(Yi(r,(function(i){return function(t,e){var i=Xi(new Promise((function(i){var n=Date.now();Gi(t.bind(null,e),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Date.now()-n;if(!t[0])return i((function(){return{error:t[1],duration:r}}));var o=t[1];if(fn(o))return i((function(){return{value:o,duration:r}}));i((function(){return new Promise((function(t){var e=Date.now();Gi(o,(function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=r+Date.now()-e;if(!i[0])return t({error:i[1],duration:o});t({value:i[1],duration:o})}))}))}))}))})));return function(){return i.then((function(t){return t()}))}}(t[i],e)}),n));return function(){return Ni(this,void 0,void 0,(function(){var t,e,i,s;return Hi(this,(function(a){switch(a.label){case 0:return[4,o];case 1:return[4,Yi(a.sent(),(function(t){return Xi(t())}),n)];case 2:return t=a.sent(),[4,Promise.all(t)];case 3:for(e=a.sent(),i={},s=0;s<r.length;++s)i[r[s]]=e[s];return[2,i]}}))}))}}function mn(){var t=window,e=navigator;return Ki(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function yn(){var t=window,e=navigator;return Ki(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===e.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function vn(){var t=window,e=navigator;return Ki(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===e.vendor.indexOf("Apple"),"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function bn(){var t=window,e=t.HTMLElement,i=t.Document;return Ki(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),e&&!("autocapitalize"in e.prototype),i&&"pointerLockElement"in i.prototype])>=4}function wn(){var t,e=window;return t=e.print,!!/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))&&Ki(["[object WebPageNamespace]"===String(e.browser),"MicrodataExtractor"in e])>=1}function Ln(){var t,e,i=window;return Ki(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in i,"mozInnerScreenX"in i,"CSSMozDocumentRule"in i,"CanvasCaptureMediaStream"in i])>=4}function Sn(){var t=window,e=navigator,i=t.CSS,n=t.HTMLButtonElement;return Ki([!("getStorageUpdates"in e),n&&"popover"in n.prototype,"CSSCounterStyleRule"in t,i.supports("font-size-adjust: ex-height 0.5"),i.supports("text-transform: full-width")])>=4}function Bn(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function In(){var t=yn(),e=Ln(),i=window,n=navigator,r="connection";return t?Ki([!("SharedWorker"in i),n[r]&&"ontypechange"in n[r],!("sinkId"in new window.Audio)])>=2:!!e&&Ki(["onorientationchange"in i,"orientation"in i,/android/i.test(navigator.appVersion)])>=2}function xn(t){var e=new Error(t);return e.name=t,e}function Mn(t,e,i){var n,r,o;return void 0===i&&(i=50),Ni(this,void 0,void 0,(function(){var s,a;return Hi(this,(function(l){switch(l.label){case 0:s=document,l.label=1;case 1:return s.body?[3,3]:[4,Zi(i)];case 2:return l.sent(),[3,1];case 3:a=s.createElement("iframe"),l.label=4;case 4:return l.trys.push([4,,10,11]),[4,new Promise((function(t,i){var n=!1,r=function(){n=!0,t()};a.onload=r,a.onerror=function(t){n=!0,i(t)};var o=a.style;o.setProperty("display","block","important"),o.position="absolute",o.top="0",o.left="0",o.visibility="hidden",e&&"srcdoc"in a?a.srcdoc=e:a.src="about:blank",s.body.appendChild(a);var l=function(){var t,e;n||("complete"===(null===(e=null===(t=a.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?r():setTimeout(l,10))};l()}))];case 5:l.sent(),l.label=6;case 6:return(null===(r=null===(n=a.contentWindow)||void 0===n?void 0:n.document)||void 0===r?void 0:r.body)?[3,8]:[4,Zi(i)];case 7:return l.sent(),[3,6];case 8:return[4,t(a,a.contentWindow)];case 9:return[2,l.sent()];case 10:return null===(o=a.parentNode)||void 0===o||o.removeChild(a),[7];case 11:return[2]}}))}))}function Fn(t){for(var e=function(t){for(var e,i,n="Unexpected syntax '".concat(t,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(t),o=r[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,l=function(t,e){s[t]=s[t]||[],s[t].push(e)};;){var c=a.exec(r[2]);if(!c)break;var u=c[0];switch(u[0]){case".":l("class",u.slice(1));break;case"#":l("id",u.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(!d)throw new Error(n);l(d[1],null!==(i=null!==(e=d[4])&&void 0!==e?e:d[5])&&void 0!==i?i:"");break;default:throw new Error(n)}}return[o,s]}(t),i=e[0],n=e[1],r=document.createElement(null!=i?i:"div"),o=0,s=Object.keys(n);o<s.length;o++){var a=s[o],l=n[a].join(" ");"style"===a?Cn(r.style,l):r.setAttribute(a,l)}return r}function Cn(t,e){for(var i=0,n=e.split(";");i<n.length;i++){var r=n[i],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(r);if(o){var s=o[1],a=o[2],l=o[4];t.setProperty(s,a,l||"")}}}var kn=["monospace","sans-serif","serif"],Pn=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function $n(t){return t.toDataURL()}var En,jn,On=2500;function Vn(){var t=this;return function(){if(void 0===jn){var t=function(){var e=An();Tn(e)?jn=setTimeout(t,On):(En=e,jn=void 0)};t()}}(),function(){return Ni(t,void 0,void 0,(function(){var t;return Hi(this,(function(e){switch(e.label){case 0:return Tn(t=An())?En?[2,Wi([],En,!0)]:(i=document).fullscreenElement||i.msFullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement?[4,Bn()]:[3,2]:[3,2];case 1:e.sent(),t=An(),e.label=2;case 2:return Tn(t)||(En=t),[2,t]}var i}))}))}}function An(){var t=screen;return[qi(Ui(t.availTop),null),qi(Ui(t.width)-Ui(t.availWidth)-qi(Ui(t.availLeft),0),null),qi(Ui(t.height)-Ui(t.availHeight)-qi(Ui(t.availTop),0),null),qi(Ui(t.availLeft),null)]}function Tn(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function Rn(t){var e;return Ni(this,void 0,void 0,(function(){var i,n,r,o,s,a,l;return Hi(this,(function(c){switch(c.label){case 0:for(i=document,n=i.createElement("div"),r=new Array(t.length),o={},Nn(n),l=0;l<t.length;++l)"DIALOG"===(s=Fn(t[l])).tagName&&s.show(),Nn(a=i.createElement("div")),a.appendChild(s),n.appendChild(a),r[l]=s;c.label=1;case 1:return i.body?[3,3]:[4,Zi(50)];case 2:return c.sent(),[3,1];case 3:i.body.appendChild(n);try{for(l=0;l<t.length;++l)r[l].offsetParent||(o[t[l]]=!0)}finally{null===(e=n.parentNode)||void 0===e||e.removeChild(n)}return[2,o]}}))}))}function Nn(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function Hn(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function Wn(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function Dn(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function Zn(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function zn(t){return matchMedia("(prefers-reduced-transparency: ".concat(t,")")).matches}function Gn(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var Yn=Math,Xn=function(){return 0};var Jn={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var Un=function(){for(var t=window;;){var e=t.parent;if(!e||e===t)return!1;try{if(e.location.origin!==t.location.origin)return!0}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return!0;throw t}t=e}};var qn=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Kn=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Qn=["FRAGMENT_SHADER","VERTEX_SHADER"],tr=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],er="WEBGL_debug_renderer_info";function ir(t){if(t.webgl)return t.webgl.context;var e,i=document.createElement("canvas");i.addEventListener("webglCreateContextError",(function(){return e=void 0}));for(var n=0,r=["webgl","experimental-webgl"];n<r.length;n++){var o=r[n];try{e=i.getContext(o)}catch(t){}if(e)break}return t.webgl={context:e},e}function nr(t,e,i){var n=t.getShaderPrecisionFormat(t[e],t[i]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}function rr(t){return Object.keys(t.__proto__).filter(or)}function or(t){return"string"==typeof t&&!t.match(/[^A-Z0-9_x]/)}function sr(){return Ln()}function ar(t){return"function"==typeof t.getParameter}var lr={fonts:function(){var t=this;return Mn((function(e,i){var n=i.document;return Ni(t,void 0,void 0,(function(){var t,e,i,r,o,s,a,l,c,u,d;return Hi(this,(function(h){for((t=n.body).style.fontSize="48px",(e=n.createElement("div")).style.setProperty("visibility","hidden","important"),i={},r={},o=function(t){var i=n.createElement("span"),r=i.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=t,i.textContent="mmMwWLliI0O&1",e.appendChild(i),i},s=function(t,e){return o("'".concat(t,"',").concat(e))},a=function(){for(var t={},e=function(e){t[e]=kn.map((function(t){return s(e,t)}))},i=0,n=Pn;i<n.length;i++){e(n[i])}return t},l=function(t){return kn.some((function(e,n){return t[n].offsetWidth!==i[e]||t[n].offsetHeight!==r[e]}))},c=function(){return kn.map(o)}(),u=a(),t.appendChild(e),d=0;d<kn.length;d++)i[kn[d]]=c[d].offsetWidth,r[kn[d]]=c[d].offsetHeight;return[2,Pn.filter((function(t){return l(u[t])}))]}))}))}))},domBlockers:function(t){var e=(void 0===t?{}:t).debug;return Ni(this,void 0,void 0,(function(){var t,i,n,r,o;return Hi(this,(function(s){switch(s.label){case 0:return vn()||In()?(a=atob,t={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',a("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",a("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",a("LnNwb25zb3JpdA=="),".ylamainos",a("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",a("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",a("LmhlYWRlci1ibG9ja2VkLWFk"),a("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",a("I2FkXzMwMFgyNTA="),a("I2Jhbm5lcmZsb2F0MjI="),a("I2NhbXBhaWduLWJhbm5lcg=="),a("I0FkLUNvbnRlbnQ=")],adGuardChinese:[a("LlppX2FkX2FfSA=="),a("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",a("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),a("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",a("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",a("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",a("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),a("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),a("LmFkZ29vZ2xl"),a("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[a("YW1wLWF1dG8tYWRz"),a("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",a("I2FkX2ludmlld19hcmVh")],adGuardRussian:[a("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),a("LnJlY2xhbWE="),'div[id^="smi2adblock"]',a("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[a("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),a("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",a("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),a("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),a("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",a("I3Jla2xhbWk="),a("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),a("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),a("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[a("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",a("LndpZGdldF9wb19hZHNfd2lkZ2V0"),a("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",a("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[a("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),a("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",a("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",a("I3Jla2xhbW5pLWJveA=="),a("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",a("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[a("I2FkdmVydGVudGll"),a("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",a("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",a("LnNwb25zb3JsaW5rZ3J1ZW4="),a("I3dlcmJ1bmdza3k="),a("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),a("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[a("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",a("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[a("LnJla2xhbW9zX3RhcnBhcw=="),a("LnJla2xhbW9zX251b3JvZG9z"),a("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),a("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),a("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[a("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[a("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),a("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",a("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[a("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),a("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),a("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",a("LmFkX19tYWlu"),a("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[a("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[a("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),a("I2xpdmVyZUFkV3JhcHBlcg=="),a("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),a("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[a("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",a("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),a("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),a("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[a("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),a("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),a("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",a("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),a("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),a("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),a("ZGl2I3NrYXBpZWNfYWQ=")],ro:[a("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),a("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[a("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),a("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),a("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",a("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),a("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",a("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},i=Object.keys(t),[4,Rn((o=[]).concat.apply(o,i.map((function(e){return t[e]}))))]):[2,void 0];case 1:return n=s.sent(),e&&function(t,e){for(var i="DOM blockers debug:\n```",n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];i+="\n".concat(o,":");for(var s=0,a=t[o];s<a.length;s++){var l=a[s];i+="\n ".concat(e[l]?"🚫":"➡️"," ").concat(l)}}console.log("".concat(i,"\n```"))}(t,n),(r=i.filter((function(e){var i=t[e];return Ki(i.map((function(t){return n[t]})))>.6*i.length}))).sort(),[2,r]}var a}))}))},fontPreferences:function(){return function(t,e){void 0===e&&(e=4e3);return Mn((function(i,n){var r=n.document,o=r.body,s=o.style;s.width="".concat(e,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",yn()?o.style.zoom="".concat(1/n.devicePixelRatio):vn()&&(o.style.zoom="reset");var a=r.createElement("div");return a.textContent=Wi([],Array(e/20|0),!0).map((function(){return"word"})).join(" "),o.appendChild(a),t(r,o)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(t,e){for(var i={},n={},r=0,o=Object.keys(Jn);r<o.length;r++){var s=o[r],a=Jn[s],l=a[0],c=void 0===l?{}:l,u=a[1],d=void 0===u?"mmMwWLliI0fiflO&1":u,h=t.createElement("span");h.textContent=d,h.style.whiteSpace="nowrap";for(var p=0,_=Object.keys(c);p<_.length;p++){var f=_[p],g=c[f];void 0!==g&&(h.style[f]=g)}i[s]=h,e.append(t.createElement("br"),h)}for(var m=0,y=Object.keys(Jn);m<y.length;m++){n[s=y[m]]=i[s].getBoundingClientRect().width}return n}))},audio:function(){return vn()&&Sn()&&wn()?-4:function(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(vn()&&!bn()&&!function(){var t=window;return Ki(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;var i=4500,n=new e(1,5e3,44100),r=n.createOscillator();r.type="triangle",r.frequency.value=1e4;var o=n.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,r.connect(o),o.connect(n.destination),r.start(0);var s=function(t){var e=3,i=500,n=500,r=5e3,o=function(){},s=new Promise((function(s,a){var l=!1,c=0,u=0;t.oncomplete=function(t){return s(t.renderedBuffer)};var d=function(){setTimeout((function(){return a(xn("timeout"))}),Math.min(n,u+r-Date.now()))},h=function(){try{var n=t.startRendering();switch(zi(n)&&Xi(n),t.state){case"running":u=Date.now(),l&&d();break;case"suspended":document.hidden||c++,l&&c>=e?a(xn("suspended")):setTimeout(h,i)}}catch(t){a(t)}};h(),o=function(){l||(l=!0,u>0&&d())}}));return[s,o]}(n),a=s[0],l=s[1],c=Xi(a.then((function(t){return function(t){for(var e=0,i=0;i<t.length;++i)e+=Math.abs(t[i]);return e}(t.getChannelData(0).subarray(i))}),(function(t){if("timeout"===t.name||"suspended"===t.name)return-3;throw t})));return function(){return l(),c}}()},screenFrame:function(){var t=this;if(vn()&&Sn()&&wn())return function(){return Promise.resolve(void 0)};var e=Vn();return function(){return Ni(t,void 0,void 0,(function(){var t,i;return Hi(this,(function(n){switch(n.label){case 0:return[4,e()];case 1:return t=n.sent(),[2,[(i=function(t){return null===t?null:Qi(t,10)})(t[0]),i(t[1]),i(t[2]),i(t[3])]]}}))}))}},canvas:function(){return function(t){var e,i,n,r=!1,o=function(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}(),s=o[0],a=o[1];!function(t,e){return!(!e||!t.toDataURL)}(s,a)?i=n="unsupported":(r=function(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}(a),t?i=n="skipped":(e=function(t,e){!function(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';var i="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(i,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(i,4,45)}(t,e);var i=$n(t),n=$n(t);if(i!==n)return["unstable","unstable"];!function(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var i=0,n=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];i<n.length;i++){var r=n[i],o=r[0],s=r[1],a=r[2];e.fillStyle=o,e.beginPath(),e.arc(s,a,40,0,2*Math.PI,!0),e.closePath(),e.fill()}e.fillStyle="#f9c",e.arc(60,60,60,0,2*Math.PI,!0),e.arc(60,60,20,0,2*Math.PI,!0),e.fill("evenodd")}(t,e);var r=$n(t);return[r,i]}(s,a),i=e[0],n=e[1]));return{winding:r,geometry:i,text:n}}(vn()&&Sn()&&wn())},osCpu:function(){return navigator.oscpu},languages:function(){var t,e=navigator,i=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==n&&i.push([n]),Array.isArray(e.languages))yn()&&Ki([!("MediaSettingsRange"in(t=window)),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3||i.push(e.languages);else if("string"==typeof e.languages){var r=e.languages;r&&i.push(r.split(","))}return i},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return qi(Ui(navigator.deviceMemory),void 0)},screenResolution:function(){var t,e,i;if(!(vn()&&Sn()&&wn()))return t=screen,(i=[(e=function(t){return qi(Ji(t),null)})(t.width),e(t.height)]).sort().reverse(),i},hardwareConcurrency:function(){return qi(Ji(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var i=(new e).resolvedOptions().timeZone;if(i)return i}var n,r=(n=(new Date).getFullYear(),-Math.max(Ui(new Date(n,0,1).getTimezoneOffset()),Ui(new Date(n,6,1).getTimezoneOffset())));return"UTC".concat(r>=0?"+":"").concat(r)},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){var t,e;if(!(mn()||(t=window,e=navigator,Ki(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!mn())))try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&vn()&&!bn()?function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return Ki(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){var t=navigator.plugins;if(t){for(var e=[],i=0;i<t.length;++i){var n=t[i];if(n){for(var r=[],o=0;o<n.length;++o){var s=n[o];r.push({type:s.type,suffixes:s.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:r})}}return e}},touchSupport:function(){var t,e=navigator,i=0;void 0!==e.maxTouchPoints?i=Ji(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(i=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return{maxTouchPoints:i,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var t=[],e=0,i=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<i.length;e++){var n=i[e],r=window[n];r&&"object"==typeof r&&t.push(n)}return t.sort()},cookiesEnabled:function(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var e=-1!==t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}},colorGamut:function(){for(var t=0,e=["rec2020","p3","srgb"];t<e.length;t++){var i=e[t];if(matchMedia("(color-gamut: ".concat(i,")")).matches)return i}},invertedColors:function(){return!!Hn("inverted")||!Hn("none")&&void 0},forcedColors:function(){return!!Wn("active")||!Wn("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=100;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw new Error("Too high value")}},contrast:function(){return Dn("no-preference")?0:Dn("high")||Dn("more")?1:Dn("low")||Dn("less")?-1:Dn("forced")?10:void 0},reducedMotion:function(){return!!Zn("reduce")||!Zn("no-preference")&&void 0},reducedTransparency:function(){return!!zn("reduce")||!zn("no-preference")&&void 0},hdr:function(){return!!Gn("high")||!Gn("standard")&&void 0},math:function(){var t,e=Yn.acos||Xn,i=Yn.acosh||Xn,n=Yn.asin||Xn,r=Yn.asinh||Xn,o=Yn.atanh||Xn,s=Yn.atan||Xn,a=Yn.sin||Xn,l=Yn.sinh||Xn,c=Yn.cos||Xn,u=Yn.cosh||Xn,d=Yn.tan||Xn,h=Yn.tanh||Xn,p=Yn.exp||Xn,_=Yn.expm1||Xn,f=Yn.log1p||Xn;return{acos:e(.12312423423423424),acosh:i(1e308),acoshPf:(t=1e154,Yn.log(t+Yn.sqrt(t*t-1))),asin:n(.12312423423423424),asinh:r(1),asinhPf:function(t){return Yn.log(t+Yn.sqrt(t*t+1))}(1),atanh:o(.5),atanhPf:function(t){return Yn.log((1+t)/(1-t))/2}(.5),atan:s(.5),sin:a(-1e300),sinh:l(1),sinhPf:function(t){return Yn.exp(t)-1/Yn.exp(t)/2}(1),cos:c(10.000000000123),cosh:u(1),coshPf:function(t){return(Yn.exp(t)+1/Yn.exp(t))/2}(1),tan:d(-1e300),tanh:h(1),tanhPf:function(t){return(Yn.exp(2*t)-1)/(Yn.exp(2*t)+1)}(1),exp:p(1),expm1:_(1),expm1Pf:function(t){return Yn.exp(t)-1}(1),log1p:f(10),log1pPf:function(t){return Yn.log(1+t)}(10),powPI:function(t){return Yn.pow(Yn.PI,t)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]},applePay:function(){var t=window.ApplePaySession;if("function"!=typeof(null==t?void 0:t.canMakePayments))return-1;if(Un())return-3;try{return t.canMakePayments()?1:0}catch(t){return function(t){if(t instanceof Error&&"InvalidAccessError"===t.name&&/\bfrom\b.*\binsecure\b/i.test(t.message))return-2;throw t}(t)}},privateClickMeasurement:function(){var t,e=document.createElement("a"),i=null!==(t=e.attributionSourceId)&&void 0!==t?t:e.attributionsourceid;return void 0===i?void 0:String(i)},audioBaseLatency:function(){var t;return In()||vn()?window.AudioContext&&null!==(t=(new AudioContext).baseLatency)&&void 0!==t?t:-1:-2},webGlBasics:function(t){var e,i,n,r,o,s,a=ir(t.cache);if(!a)return-1;if(!ar(a))return-2;var l=sr()?null:a.getExtension(er);return{version:(null===(e=a.getParameter(a.VERSION))||void 0===e?void 0:e.toString())||"",vendor:(null===(i=a.getParameter(a.VENDOR))||void 0===i?void 0:i.toString())||"",vendorUnmasked:l?null===(n=a.getParameter(l.UNMASKED_VENDOR_WEBGL))||void 0===n?void 0:n.toString():"",renderer:(null===(r=a.getParameter(a.RENDERER))||void 0===r?void 0:r.toString())||"",rendererUnmasked:l?null===(o=a.getParameter(l.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(s=a.getParameter(a.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||""}},webGlExtensions:function(t){var e=ir(t.cache);if(!e)return-1;if(!ar(e))return-2;var i=e.getSupportedExtensions(),n=e.getContextAttributes(),r=[],o=[],s=[],a=[];if(n)for(var l=0,c=Object.keys(n);l<c.length;l++){var u=c[l];r.push("".concat(u,"=").concat(n[u]))}for(var d=0,h=rr(e);d<h.length;d++){var p=e[b=h[d]];o.push("".concat(b,"=").concat(p).concat(qn.has(p)?"=".concat(e.getParameter(p)):""))}if(i)for(var _=0,f=i;_<f.length;_++){var g=f[_];if(!(g===er&&sr()||"WEBGL_polygon_mode"===g&&(yn()||vn()))){var m=e.getExtension(g);if(m)for(var y=0,v=rr(m);y<v.length;y++){var b;p=m[b=v[y]];s.push("".concat(b,"=").concat(p).concat(Kn.has(p)?"=".concat(e.getParameter(p)):""))}}}for(var w=0,L=Qn;w<L.length;w++)for(var S=L[w],B=0,I=tr;B<I.length;B++){var x=I[B],M=nr(e,S,x);a.push("".concat(S,".").concat(x,"=").concat(M.join(",")))}return s.sort(),o.sort(),{contextAttributes:r,parameters:o,shaderPrecisions:a,extensions:i,extensionParameters:s}}};var cr="$ if upgrade to Pro: https://fpjs.dev/pro";function ur(t){var e=function(t){if(In())return.4;if(vn())return!bn()||Sn()&&wn()?.3:.5;var e="value"in t.platform?t.platform.value:"";if(/^Win/.test(e))return.6;if(/^Mac/.test(e))return.5;return.7}(t),i=function(t){return Qi(.99+.01*t,1e-4)}(e);return{score:e,comment:cr.replace(/\$/g,"".concat(i))}}function dr(t){return JSON.stringify(t,(function(t,e){return e instanceof Error?Ri({name:(i=e).name,message:i.message,stack:null===(n=i.stack)||void 0===n?void 0:n.split("\n")},i):e;var i,n}),2)}function hr(t){return _n(function(t){for(var e="",i=0,n=Object.keys(t).sort();i<n.length;i++){var r=n[i],o=t[r],s="error"in o?"error":JSON.stringify(o.value);e+="".concat(e?"|":"").concat(r.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return e}(t))}function pr(t){return void 0===t&&(t=50),function(t,e){void 0===e&&(e=1/0);var i=window.requestIdleCallback;return i?new Promise((function(t){return i.call(window,(function(){return t()}),{timeout:e})})):Zi(Math.min(t,e))}(t,2*t)}function _r(t,e){var i=Date.now();return{get:function(n){return Ni(this,void 0,void 0,(function(){var r,o,s;return Hi(this,(function(a){switch(a.label){case 0:return r=Date.now(),[4,t()];case 1:return o=a.sent(),s=function(t){var e,i=ur(t);return{get visitorId(){return void 0===e&&(e=hr(this.components)),e},set visitorId(t){e=t},confidence:i,components:t,version:Di}}(o),(e||(null==n?void 0:n.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(s.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(r-i,"\nvisitorId: ").concat(s.visitorId,"\ncomponents: ").concat(dr(o),"\n```")),[2,s]}}))}))}}}var fr={load:function(t){var e;return void 0===t&&(t={}),Ni(this,void 0,void 0,(function(){var i,n,r;return Hi(this,(function(o){switch(o.label){case 0:return(null===(e=t.monitoring)||void 0===e||e)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Di,"/npm-monitoring"),!0),t.send()}catch(t){console.error(t)}}(),i=t.delayFallback,n=t.debug,[4,pr(i)];case 1:return o.sent(),r=function(t){return gn(lr,t,[])}({cache:{},debug:n}),[2,_r(r,n)]}}))}))},hashComponents:hr,componentsToDebugString:dr};const gr=require("axios");var mr=i.n(gr),yr=i(109),vr=i(556);let br,wr;const Lr=`${yr.R0}`,Sr=new Map;mr().interceptors.response.use(null,(async t=>{const{config:e,response:i}=t;if(401===i.status&&e){const i=e.url,n=(Sr.get(i)||1)+1;if(n>2)throw Sr.delete(i),t;return Sr.set(i,n),await Br.verifyPermission(br,wr),e.headers=Object.assign(e.headers,mr().defaults.headers.common),mr()(e)}throw t}));class Br{static async verifyPermission(t,e){br=t,wr=e;const i=async()=>(await mr().post(Lr,{appId:t,secret:e,origin:window.location.hostname||"restriction.test.example.com",keyPlatform:"WEB"})).data.result.idToken,n=t=>{setTimeout((async()=>{mr().defaults.headers.common.token=await i(),n(t)}),t)},r=await Br.getDeviceIdentifier(),o=await i();mr().defaults.headers.common={identifier:r,token:o,sdkVersion:vr.VERSION,"Content-Type":"application/json"};const s=JSON.parse(decodeURIComponent(window.atob(o.split(".")[1]))),a=1e3*(s.exp-s.iat-60);n(a)}static async getDeviceIdentifier(){const t=await fr.load();return(await t.get()).visitorId}static transformRequest(t){return/.mapxus./.test(t)?{url:t,headers:mr().defaults.headers.common}:{url:t}}constructor(t){mr().defaults.baseURL=t??yr.hl}get(t){return mr().get(t)}post(t,e){return mr().post(t,e)}}function Ir(t){const e=U(t),i=e&&!t.length||!e&&!t.trim().length;if(i)throw new Error("Parameter cannot be empty.");return i?null:e?t.filter((t=>!!t.trim())).map((t=>t.trim())).join(","):t.trim()}const xr=function(t,e){var i=-1,n=Lt(t)?Array(t.length):[];return ji(t,(function(t,r,o){n[++i]=e(t,r,o)})),n};const Mr=function(t,e){return(U(t)?pi:xr)(t,ki(e,3))};const Fr=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}};var Cr=Object.prototype.hasOwnProperty;const kr=function(t,e,i){var n=t[e];Cr.call(t,e)&&xt(n,i)&&(void 0!==i||e in t)||N(t,e,i)};const Pr=function(t,e,i,n){if(!L(t))return t;for(var r=-1,o=(e=yi(e,t)).length,s=o-1,a=t;null!=a&&++r<o;){var l=vi(e[r]),c=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(r!=s){var u=a[l];void 0===(c=n?n(u,l,a):void 0)&&(c=L(u)?u:nt(e[r+1])?[]:{})}kr(a,l,c),a=a[l]}return t};const $r=function(t,e,i){for(var n=-1,r=e.length,o={};++n<r;){var s=e[n],a=bi(t,s);i(a,s)&&Pr(o,yi(s,t),a)}return o};const Er=yt(Object.getPrototypeOf,Object);const jr=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)we(e,Me(t)),t=Er(t);return e}:Be;const Or=function(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e};var Vr=Object.prototype.hasOwnProperty;const Ar=function(t){if(!L(t))return Or(t);var e=mt(t),i=[];for(var n in t)("constructor"!=n||!e&&Vr.call(t,n))&&i.push(n);return i};const Tr=function(t){return Lt(t)?ft(t,!0):Ar(t)};const Rr=function(t){return Le(t,Tr,jr)};const Nr=function(t,e){if(null==t)return{};var i=pi(Rr(t),(function(t){return[t]}));return e=ki(e),$r(t,i,(function(t,i){return e(t,i[0])}))};const Hr=function(t,e){return Nr(t,Fr(ki(e)))};const Wr=function(t,e,i,n){for(var r=t.length,o=i+(n?1:-1);n?o--:++o<r;)if(e(t[o],o,t))return o;return-1};const Dr=function(t){return t!=t};const Zr=function(t,e,i){for(var n=i-1,r=t.length;++n<r;)if(t[n]===e)return n;return-1};const zr=function(t,e,i){return e==e?Zr(t,e,i):Wr(t,Dr,i)};const Gr=function(t){return"string"==typeof t||!U(t)&&Z(t)&&"[object String]"==w(t)};var Yr=/\s/;const Xr=function(t){for(var e=t.length;e--&&Yr.test(t.charAt(e)););return e};var Jr=/^\s+/;const Ur=function(t){return t?t.slice(0,Xr(t)+1).replace(Jr,""):t};var qr=/^[-+]0x[0-9a-f]+$/i,Kr=/^0b[01]+$/i,Qr=/^0o[0-7]+$/i,to=parseInt;const eo=function(t){if("number"==typeof t)return t;if(ri(t))return NaN;if(L(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=L(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ur(t);var i=Kr.test(t);return i||Qr.test(t)?to(t.slice(2),i?2:8):qr.test(t)?NaN:+t};var io=1/0;const no=function(t){return t?(t=eo(t))===io||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};const ro=function(t){var e=no(t),i=e%1;return e==e?i?e-i:e:0};const oo=function(t,e){return pi(e,(function(e){return t[e]}))};const so=function(t){return null==t?[]:oo(t,St(t))};var ao=Math.max;const lo=function(t,e,i,n){t=Lt(t)?t:so(t),i=i&&!n?ro(i):0;var r=t.length;return i<0&&(i=ao(r+i,0)),Gr(t)?i<=r&&t.indexOf(e,i)>-1:!!r&&zr(t,e,i)>-1},co=["opening_hours","description","phone","website","email","appURL","icon"];class uo{_api="/api/v4/venues";_request;constructor(){this._request=new Br}searchByIds(t){const e=Ir(t);if(!e)throw new Error("Please input venue id at least one.");const i=`${this._api}/${e}`;return this._changedRes(i)}searchByDistance(t,e,i,n=yr.e$,r=yr.KL){if(!t||!e||!i)throw new Error("Missing required parameter.");const o=new URLSearchParams({keywords:t,center:e.join(","),distance:String(i),offset:String(n),page:String(r)}),s=`${this._api}?${o.toString()}`;return this._changedRes(s)}searchByBbox(t,e,i=yr.e$,n=yr.KL){if(!t||!e)throw new Error("Missing required parameter.");const r=new URLSearchParams({keywords:t,bbox:e.join(","),offset:String(i),page:String(n)}),o=`${this._api}?${r.toString()}`;return this._changedRes(o)}searchByGlobal(t,e=yr.e$,i=yr.KL){if(!t)throw new Error("Missing required parameter.");const n=new URLSearchParams({keywords:t,offset:String(e),page:String(i)}),r=`${this._api}?${n.toString()}`;return this._changedRes(r)}_changedRes(t){return new Promise(((e,i)=>{this._request.get(t).then((t=>{t.data.result.venues=Mr(t.data.result.venues,(t=>Hr(t,((t,e)=>lo(co,e))))),e(t)})).catch(i)}))}}const ho=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","description"];class po{_api="/api/v4/buildings";_request;constructor(){this._request=new Br}searchByIds(t){const e=Ir(t);if(!e)throw new Error("Please input building id at least one.");const i=`${this._api}/${e}`;return this._changedRes(i)}searchByDistance(t,e,i,n=yr.e$,r=yr.KL){if(arguments.length<3)throw new Error("Parameter cannot be empty.");if(2!==e.length)throw new Error("Center lon lat cannot be less than 2.");const o=[`center=${e.join(",")}`,`distance=${i}`,`offset=${n}`,`page=${r}`];t&&o.unshift(`keywords=${t}`);const s=`${this._api}?${o.join("&")}`;return this._changedRes(s)}searchByBbox(t,e,i=yr.e$,n=yr.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");if(4!==e.length)throw new Error("Bbox parameters cannot be less than 2.");const r=[`bbox=${e.join(",")}`,`offset=${i}`,`page=${n}`];t&&r.unshift(`keywords=${t}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByGlobal(t,e=yr.e$,i=yr.KL){if(!arguments.length)throw new Error("Parameter cannot be empty.");const n=["searchGlobal=true",`offset=${e}`,`page=${i}`];t&&n.unshift(`keywords=${t}`);const r=`${this._api}?${n.join("&")}`;return this._changedRes(r)}searchByFloorId(t){if(!t)throw new Error("Parameter cannot be empty.");return this._changedRes(`${this._api}/floors/${t}`)}_changedRes(t){return new Promise(((e,i)=>{this._request.get(t).then((t=>{t.data.result.buildings=Mr(t.data.result.buildings,(t=>Hr(t,((t,e)=>lo(ho,e))))),e(t)})).catch(i)}))}}const _o=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","icon"];class fo{_api="/api/v3/pois";_apiV4="/api/v4/pois";_categoriesV2="/api/v2/categories";_request;constructor(){this._request=new Br}searchByIds(t){const e=Ir(t);if(!e)throw new Error("Please input poi id at least one.");const i=`${this._apiV4}/${e}`;return this._changedRes(i,(t=>t.descriptions?.default?{description:t.descriptions.default}:null))}searchByDistance(t){const{center:e,distance:i,keywords:n="",offset:r=yr.e$,page:o=yr.KL}=t;if(!e||!i)throw new Error("Parameter missing.");const s=[`keywords=${n}`,`center=${e.join(",")}`,`distance=${Math.round(i)}`,`offset=${r}`,`page=${o}`],a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByBbox(t,e,i=yr.e$,n=yr.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");if(4!==e.length)throw new Error("Bbox parameters cannot be less than 2.");const r=[`bbox=${e.join(",")}`,`offset=${i}`,`page=${n}`];t&&r.unshift(`keywords=${t}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByBounds(t){const{bounds:e,offset:i=yr.e$,page:n=yr.KL,keywords:r,orderBy:o}=t,s=[`bbox=${e.flat().join()}`,`offset=${i}`,`page=${n}`];go(r)&&s.push(`keywords=${r.trim()}`),o&&s.push(`orderBy=${o}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByBuildingId(t,e,i=yr.e$,n=yr.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");const r=[`buildingId=${e}`,`offset=${i}`,`page=${n}`];t&&r.unshift(`keywords=${t}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByBuilding(t){const{buildingId:e,offset:i=yr.e$,page:n=yr.KL,keywords:r,orderBy:o}=t,s=[`buildingId=${e}`,`offset=${i}`,`page=${n}`];go(r)&&s.push(`keywords=${r.trim()}`),o&&s.push(`orderBy=${o}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByVenueId(t,e,i=yr.e$,n=yr.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");const r=[`venueId=${e}`,`offset=${i}`,`page=${n}`];t&&r.unshift(`keywords=${t}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByVenue(t){const{venueId:e,offset:i=yr.e$,page:n=yr.KL,keywords:r,orderBy:o}=t,s=[`venueId=${e}`,`offset=${i}`,`page=${n}`];go(r)&&s.push(`keywords=${r.trim()}`),o&&s.push(`orderBy=${o}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByFloor(t){const{floorId:e,offset:i=yr.e$,page:n=yr.KL,keywords:r,orderBy:o}=t,s=[`floorId=${e}`,`offset=${i}`,`page=${n}`];r&&s.push(`keywords=${r}`),o&&s.push(`orderBy=${o}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchCategories(t){const{venueId:e,buildingId:i,floorId:n}=t;if(!e&&!i&&!n)throw new Error("At least one parameter (venueId, buildingId, or floorId) is required.");let r="";n?r=`floorId=${n}`:i?r=`buildingId=${i}`:e&&(r=`venueId=${e}`);const o=`${this._categoriesV2}/pois?${r}`;return this._request.get(o)}searchOrientation(t){const{center:e,angle:i,distance:n,buildingId:o,floorId:s,ordinal:a,distanceSearchType:l}=t;if(!e||!i||!n)throw new Error("Parameter missing.");const c=new URLSearchParams({center:`${e.join(",")}`,angle:`${Math.round(i)}`,distance:`${n}`,distanceSearchType:l??r.Kp.POINT});a?c.append("ordinal",a):s?c.append("floorId",s):o&&c.append("buildingId",o);const u=`${this._api}/orientation?${c.toString()}`;return this._request.get(u)}searchByOrientation(t){const{center:e,angle:i,distance:n,distanceSearchType:o=r.Kp.POINT}=t,s=[`center=${e.join()}`,`angle=${Math.round(i)}`,`distance=${n}`,`distanceSearchType=${o}`];"ordinal"in t?s.push(`ordinal=${t.ordinal}`):"floorId"in t?s.push(`floorId=${t.floorId}`):"buildingId"in t&&s.push(`buildingId=${t.buildingId}`);const a=`${this._api}/orientation?${s.join("&")}`;return this._request.get(a)}searchByCategory(t){const{center:e,distance:i,page:n=yr.KL,offset:r=yr.e$}=t,o=[`center=${e.join(",")}`,`distance=${i}`,`offset=${r}`,`page=${n}`];let s="";if("category"in t)s=`${this._api}?category=${t.category}&${o.join("&")}`;else if("excludedCategories"in t){const{excludedCategories:e}=t;s=U(e)?`${this._api}?excludeCategories=${e.join(",")}&${o.join("&")}`:`${this._api}?excludeCategories=${e}&${o.join("&")}`}if(s.length)return this._changedRes(s);throw new Error("Parameter missing.")}_changedRes(t,e){return new Promise(((i,n)=>{this._request.get(t).then((t=>{t.data.result.pois=Mr(t.data.result.pois,(t=>{let i=Hr(t,((t,e)=>lo(_o,e)));return e&&e(i)&&(i=Object.assign({},i,e(i))),i})),i(t)})).catch(n)}))}}function go(t){return"string"==typeof t&&Boolean(t.trim())}class mo{_api="/api/v3/route/query";_request;constructor(){this._request=new Br}search(t){const{points:e,vehicle:i=r.$O.FOOT,locale:n="en"}=t;if(!(e&&e.length>1&&e.length<6))throw new Error("Parameter error. It must be 1 < {points.length} < 6");const o={points:e,vehicle:i,locale:n};try{return this._request.post(this._api,JSON.stringify(o))}catch(t){throw new Error(t)}}}var yo=i(666);const vo={lineWidth:3,lineColor:"#A5E3FF",lineOpacity:1},bo={fontColor:"#8c8c8c",activeFontColor:"#fff",backgroundColor:"#fff",activeBackgroundColor:"#074769",itemSize:50,itemCount:4,defaultFolded:!1},wo=(0,yo.y)(window.navigator.language)??r.ys.ENGLISH,Lo=new po,So=new uo,Bo=new fo;async function Io(t){try{return(await Lo.searchByIds(t)).data.result.buildings[0]}catch(t){throw new Error(t)}}async function xo(t){try{const e=(await Lo.searchByFloorId(t)).data.result.buildings[0].buildingId;return await Io(e)}catch(t){throw new Error(t)}}var Mo={value:()=>{}};function Fo(){for(var t,e=0,i=arguments.length,n={};e<i;++e){if(!(t=arguments[e]+"")||t in n||/[\s.]/.test(t))throw new Error("illegal type: "+t);n[t]=[]}return new Co(n)}function Co(t){this._=t}function ko(t,e){for(var i,n=0,r=t.length;n<r;++n)if((i=t[n]).name===e)return i.value}function Po(t,e,i){for(var n=0,r=t.length;n<r;++n)if(t[n].name===e){t[n]=Mo,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=i&&t.push({name:e,value:i}),t}Co.prototype=Fo.prototype={constructor:Co,on:function(t,e){var i,n=this._,r=function(t,e){return t.trim().split(/^|\s+/).map((function(t){var i="",n=t.indexOf(".");if(n>=0&&(i=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}}))}(t+"",n),o=-1,s=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=Po(n[i],t.name,e);else if(null==e)for(i in n)n[i]=Po(n[i],t.name,null);return this}for(;++o<s;)if((i=(t=r[o]).type)&&(i=ko(n[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new Co(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,n,r=new Array(i),o=0;o<i;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,i=(n=this._[t]).length;o<i;++o)n[o].value.apply(e,r)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],r=0,o=n.length;r<o;++r)n[r].value.apply(e,i)}};const $o=Fo;class Eo{_historyBuilding;_historyOrdinal;_selectedBuildings;static instance;constructor(){this._historyBuilding=new Map,this._historyOrdinal=new Map,this._selectedBuildings=new Set}static getInstance(){return Eo.instance||(Eo.instance=new Eo),Eo.instance}getHistoryBuilding(t){return this._historyBuilding.get(t)}setHistoryBuilding(t,e){this._historyBuilding.set(t,e)}getHistoryOrdinal(t){return this._historyOrdinal.get(t)}setHistoryOrdinal(t,e){this._historyOrdinal.set(t,e)}getHistoryBuildings(){return this._selectedBuildings}addHistoryBuilding(t){this._selectedBuildings.delete(t),this._selectedBuildings.add(t),this._selectedBuildings.size>100&&(this._selectedBuildings=new Set(Array.from(this._selectedBuildings).slice(this._selectedBuildings.size-100)))}}class jo{static instance;_upperBuildings;_lowerBuildings;_hiddenBuildings;constructor(){this._upperBuildings=new Set,this._lowerBuildings=new Set,this._hiddenBuildings=new Set}static getInstance(){return jo.instance||(jo.instance=new jo),jo.instance}getUpperBuildings(){return this._upperBuildings}getLowerBuildings(){return this._lowerBuildings}getHiddenBuildings(){return this._hiddenBuildings}}const Oo=function(t){return function(e,i,n){var r=Object(e);if(!Lt(e)){var o=ki(i,3);e=St(e),i=function(t){return o(r[t],t,r)}}var s=t(e,i,n);return s>-1?r[o?e[s]:s]:void 0}};var Vo=Math.max;const Ao=function(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var r=null==i?0:ro(i);return r<0&&(r=Vo(n+r,0)),Wr(t,ki(e,3),r)};const To=Oo(Ao);const Ro=function(t,e,i){for(var n=-1,r=t.length;++n<r;){var o=t[n],s=e(o);if(null!=s&&(void 0===a?s==s&&!ri(s):i(s,a)))var a=s,l=o}return l};const No=function(t,e){return t<e};const Ho=function(t,e){return t&&t.length?Ro(t,ki(e,2),No):void 0};const Wo=function(){return d.Date.now()};var Do=Math.max,Zo=Math.min;const zo=function(t,e,i){var n,r,o,s,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var i=n,o=r;return n=r=void 0,c=e,s=t.apply(o,i)}function _(t){var i=t-l;return void 0===l||i>=e||i<0||d&&t-c>=o}function f(){var t=Wo();if(_(t))return g(t);a=setTimeout(f,function(t){var i=e-(t-l);return d?Zo(i,o-(t-c)):i}(t))}function g(t){return a=void 0,h&&n?p(t):(n=r=void 0,s)}function m(){var t=Wo(),i=_(t);if(n=arguments,r=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(f,e),u?p(t):s}(l);if(d)return clearTimeout(a),a=setTimeout(f,e),p(l)}return void 0===a&&(a=setTimeout(f,e)),s}return e=eo(e)||0,L(i)&&(u=!!i.leading,o=(d="maxWait"in i)?Do(eo(i.maxWait)||0,e):o,h="trailing"in i?!!i.trailing:h),m.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=l=r=a=void 0},m.flush=function(){return void 0===a?s:g(Wo())},m};const Go=function(t,e){return!!(null==t?0:t.length)&&zr(t,e,0)>-1};const Yo=function(t,e,i){for(var n=-1,r=null==t?0:t.length;++n<r;)if(i(e,t[n]))return!0;return!1};const Xo=function(){};var Jo=Ee&&1/me(new Ee([,-0]))[1]==1/0?function(t){return new Ee(t)}:Xo;const Uo=Jo;const qo=function(t,e,i){var n=-1,r=Go,o=t.length,s=!0,a=[],l=a;if(i)s=!1,r=Yo;else if(o>=200){var c=e?null:Uo(t);if(c)return me(c);s=!1,r=pe,l=new de}else l=e?[]:a;t:for(;++n<o;){var u=t[n],d=e?e(u):u;if(u=i||0!==u?u:0,s&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue t;e&&l.push(d),a.push(u)}else r(l,d,i)||(l!==a&&l.push(d),a.push(u))}return a};const Ko=function(t,e){return t&&t.length?qo(t,ki(e,2)):[]};const Qo=function(t,e){var i=[];return ji(t,(function(t,n,r){e(t,n,r)&&i.push(t)})),i};const ts=function(t,e){return(U(t)?Se:Qo)(t,ki(e,3))};var es=0;const is=function(t){var e=++es;return mi(t)+e};const ns=function(t,e){var i;return ji(t,(function(t,n,r){return!(i=e(t,n,r))})),!!i};const rs=function(t,e,i){if(!L(i))return!1;var n=typeof e;return!!("number"==n?Lt(i)&&nt(e,i.length):"string"==n&&e in i)&&xt(i[e],t)};const os=function(t,e,i){var n=U(t)?he:ns;return i&&rs(t,e,i)&&(e=void 0),n(t,ki(e,3))},ss="assistant-mapxus-level-outline",as=new uo;class ls extends Ti.a${_map;_features;_allBuildings;_curBuildingId=null;_curBuildingFeature=null;_ordinal=null;_floorId=null;_floorName=null;_allowOutdoorSwitch;_allowBuildingSwitch;_outdoorMapShown;_originIndoorLayers;_curVenueId=null;_curVenueFeature=null;_buildingHighlightStyle;_lowerLayers;_upperLayers;_commonLayers;_dispatch;_fitBuildingBounds;_boundsPadding;_startWithIndoorView;_maplibreMapLoaded=!1;_indoorMapLoaded=!1;_isVenueMode;_isMaskMode;_upperLevels=new Set;_lowerLevels=new Set;_featureIncomplete=!1;_dragPan;_isNewBuilding=!1;_buildingBounds;_history=Eo.getInstance();_layerBuildings=jo.getInstance();_upperBuildings=this._layerBuildings.getUpperBuildings();_lowerBuildings=this._layerBuildings.getLowerBuildings();_hiddenBuildings=this._layerBuildings.getHiddenBuildings();constructor(t){super();const{map:e,isInitialIndoor:i,startWithIndoorView:n=!0,isHiddenOutdoor:o,outdoorMapShown:s=!0,selectedBuildingBorderStyle:a,floorSwitchMode:l=r.MA.SWITCHED_BY_VENUE,fitBuildingBounds:c,boundsPadding:u,maskNonSelectedAreas:d=!1}=t;this._map=e,this._allowOutdoorSwitch=!0,this._allowBuildingSwitch=!0,this._startWithIndoorView=i??n,this._outdoorMapShown=void 0===o?s:!o,this._isVenueMode=l===r.MA.SWITCHED_BY_VENUE,this._isMaskMode=d,this._fitBuildingBounds=c,this._boundsPadding=u,this._buildingHighlightStyle=a?Object.assign({},vo,a):vo,this._hiddenBuildings=new Set,this._dispatch=$o("indoorMapChange"),this._loadData()}enableSwitch(){return this._allowOutdoorSwitch=!0,this}disableSwitch(){return this._allowOutdoorSwitch=!1,this}setAllowOutdoorSwitch(t){return this._allowOutdoorSwitch=t,this}enableSwitchBuilding(){return this._allowBuildingSwitch=!0,this}disableSwitchBuilding(){return this._allowBuildingSwitch=!1,this}setAllowBuildingSwitch(t){return this._allowBuildingSwitch=t,this}get floor(){return{code:this._floorName,id:this._floorId,ordinal:this._ordinal}}get building(){return this._curBuildingFeature}get venue(){return this._curVenueFeature}get features(){return this._features}getFeature(t){return t===this._curBuildingId?this._curBuildingFeature:To(this.features,(e=>e.properties.id===t))}getFeaturesById(t,e){const{layerIds:i,filter:n}=e||{};let r=this.features;if(i?.length){const t=this._map.getCanvas().getBoundingClientRect();r=this._map.queryRenderedFeatures([[0,0],[t.width,t.height]],{layers:i})}return ts(r,n?e=>e.properties.id===t&&n(e):e=>e.properties.id===t)}getLevelByPoint(t){const e=this._map.queryRenderedFeatures(t,{layers:["mapxus-level-fill","mapxus-level-fill-overlap-copy"]});return e.length?e[0]:null}async switchFloorByOrdinal(t){this._updateFloorState(t),this._dispatch.call("indoorMapChange",null,{venue:this.venue,building:this.building,floor:this.floor}),t&&this._floorId&&(this._resetSelectedBuildingLevel(),!0===this._dragPan&&(this._fitBuildingBounds?(this._isNewBuilding&&this._featureIncomplete&&await this.panToBuildingCenter(),this.fitBuildingBbox()):await this.panToBuildingCenter()),"restrict"===this._dragPan&&this._checkAndPanToBuilding()),this.updateRendering()}hiddenOutdoorLayer(t){this._outdoorMapShown=!t,this._setOutdoorVisibility(!t)}setOutdoorMapShown(t){this._outdoorMapShown=t,this._setOutdoorVisibility(t)}updateCustomLayers(){this._originIndoorLayers=o(this._map.getStyle()),this._copyOverlapLayers(),this._addBuildingHighlightLayer(),this._addCustomLevelFillLayer(),this._outdoorMapShown||this._setOutdoorVisibility(!1),!this._isMaskMode&&this._map.getLayer("mapxus-building-line")&&this._map.setPaintProperty("mapxus-building-line","fill-opacity",0)}setSelectedBuildingBorderStyle(t){t?(this._buildingHighlightStyle=Object.assign({},this._buildingHighlightStyle,t),this._map.getLayer(ss)&&(this._map.setPaintProperty(ss,"line-color",this._buildingHighlightStyle.lineColor),this._map.setPaintProperty(ss,"line-opacity",this._buildingHighlightStyle.lineOpacity),this._map.setPaintProperty(ss,"line-width",this._buildingHighlightStyle.lineWidth),this._map.setPaintProperty(ss,"line-offset",this._buildingHighlightStyle.lineWidth))):(this._buildingHighlightStyle=Object.assign({},this._buildingHighlightStyle,{"line-opacity":0}),this._map.getLayer(ss)&&this._map.setPaintProperty(ss,"line-opacity",0))}setMaskNonSelectedAreas(t){this._isMaskMode=t}onMapChange(t){const e=is("indoorMapChange.");return this._dispatch?.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}async selectBuilding(t,e){var i;(this._allowOutdoorSwitch||t)&&this._allowBuildingSwitch&&(this._allowBuildingSwitch&&this._isNotCurrentFeature(t)&&(this._featureIncomplete=e?.featureIncomplete??this._featureIncomplete,this._isNewBuilding=!0,this._isMaskMode&&this._invisibleSelectedBuilding(),await this._updateIndoorState(t,e?.floorId),await this.switchFloorByOrdinal(this._ordinal),this.fire((i={buildingId:this._curBuildingId,ordinal:this._ordinal,dragPan:this._dragPan},new Ti.Jh("selectedBuildingChanged",i))),this._indoorMapLoaded||(this._indoorMapLoaded=!0,this.fire(new Ti.Jh("indoorMapLoaded"))),this._isNewBuilding=!1))}updateRendering(){this._updateFeatures(),this._layerDisplayedBuildings(),this._setDisplayedLevels(),this._filterTiles(),this._setBuildingLineOpacity(),this._filterBuildingHighlight()}async panToBuildingCenter(){const t=this._curBuildingFeature.properties?.label_center?.split(",");if(t&&(this._map.panTo(t),this._featureIncomplete))return new Promise((t=>{setTimeout((()=>{let e=!1;const i=()=>{this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(this._curBuildingId,{layerIds:["mapxus-building-line"]})[0]&&(e=!0,t(!0))},n=setInterval((()=>{e||(i(),e&&clearInterval(n))}),50);i(),this._map.getZoom()<14&&(clearInterval(n),t(!1))}))}))}fitBuildingBbox(){this._buildingBounds&&this._map.fitBounds(this._buildingBounds,{padding:this._boundsPadding})}setDragPan(t){this._dragPan=t}setBuildingBounds(t){this._buildingBounds=t}async selectBuildingByClickMap(t){let e=null;const i=this._map.queryRenderedFeatures(t,{layers:["mapxus-level-fill","mapxus-level-fill-overlap-copy","mapxus-building-line"]});if(i.length){const t=To(i,(t=>t.layer.id.startsWith("mapxus-level-fill")));e=t?To(i,(e=>e.properties.id===t.properties["ref:building"])):To(i,(t=>{const{id:e,level_ids:i}=t.properties;return!this._hiddenBuildings.has(e)&&!os(i.split(","),(t=>this._upperLevels.has(t)||this._lowerLevels.has(t)))}))??null}this.setDragPan("restrict"),await this.selectBuilding(e),setTimeout((async()=>{if(this._fitBuildingBounds)if(e){const t=await Io(e.properties.id),{minLon:i,minLat:n,maxLon:r,maxLat:o}=t.bbox;this.setBuildingBounds([[i,n],[r,o]])}else this.setBuildingBounds(null)}))}_loadData(){this._map.on("load",(()=>this._init()))}_init(){this.updateCustomLayers(),this._map.on("data",zo((()=>{this._maplibreMapLoaded||(this._maplibreMapLoaded=!0,this.fire(new Ti.Jh("maplibreMapLoaded")),(!this._startWithIndoorView||this._map.getZoom()<14)&&(this._indoorMapLoaded=!0,this.fire(new Ti.Jh("indoorMapLoaded")))),this.updateRendering()}),300))}_clear(){this._curBuildingFeature=null,this._curBuildingId=null,this._ordinal=null,this._floorName=null,this._floorId=null,this._curVenueId=null,this._curVenueFeature=null,this._buildingBounds=null}_getIndoorFeatures(){const t=this._map.getCanvas().getBoundingClientRect(),e=this._map.queryRenderedFeatures([[0,0],[t.width,t.height]]),i=ts(e,(t=>"indoor-planet"===t.source));return Ko(i,(t=>t.layer.id+":"+t.properties.id))}_getBuildingFloorByOrdinal(t,e){let i=null,n=null;if(t?.properties){const{ordinals:r,level_names:o,level_ids:s}=t.properties,a=Ao(r?.split(",")||[],(t=>t===e));i=(o?.split(",")||[])[a]??null,n=(s?.split(",")||[])[a]??null}return{code:i,id:n,ordinal:e}}_isNotCurrentFeature(t){return t?.properties?.id!==this._curBuildingId}_setOutdoorVisibility(t){const e=this._map.getStyle().layers.filter(a);if(e.length){const i=t?"visible":"none";e.forEach((({id:t})=>{this._map.getLayer(t)&&this._map.setLayoutProperty(t,"visibility",i)}))}}_addCustomLevelFillLayer(){this._map.getLayer("custom-level-fill")||this._map.addLayer({id:"custom-level-fill",source:"indoor-planet","source-layer":"mapxus_level",type:"fill",paint:{"fill-opacity":0}})}_setBuildingLineOpacity(){this._isMaskMode&&this._map.getLayer("mapxus-building-line")&&this._map.setPaintProperty("mapxus-building-line","fill-opacity",["case",["in",["get","id"],["literal",[...this._upperBuildings]]],0,["in",["get","id"],["literal",[...this._hiddenBuildings]]],0,1])}_addBuildingHighlightLayer(){if(!this._map.getLayer(ss)){const{lineWidth:t,lineOpacity:e,lineColor:i}=this._buildingHighlightStyle;this._map.addLayer({id:ss,source:"indoor-planet","source-layer":"mapxus_level",type:"line",filter:["==","id",""],paint:{"line-offset":t,"line-width":t,"line-color":i,"line-opacity":e}});const n=this._originIndoorLayers.findIndex((({id:t})=>t===this._upperLayers[this._upperLayers.length-1].id)),r=this._originIndoorLayers[n+1];this._map.moveLayer(ss,r.id)}}_filterBuildingHighlight(){this._map.getLayer(ss)&&this._map.setFilter(ss,["==","id",this._floorId??""])}_handleBuildings(t,e){if(e.clear(),t.size)for(const i of t){const n=this._allBuildings.get(i);if(!n?.properties)continue;const{"ref:venue":r,ordinals:o,level_ids:s}=n.properties;let a=this._history.getHistoryOrdinal(this._isVenueMode?this._history.getHistoryBuilding(r):i);if(!a){if(this._isVenueMode){const t=this._features.find((t=>"mapxus-venue-fill"===t.layer.id&&t.properties.id===r));a=this._getVenueDefaultOrdinal(t)}else a=this._getBuildingDefaultOrdinal(n);if(!a)continue;this._history.setHistoryOrdinal(i,a),this._isVenueMode&&this._history.setHistoryBuilding(r,i)}const l=Ao(o.split(","),(t=>t===a));if(l>-1){const n=s.split(",")[l];if(this._isMaskMode){(this._isVenueMode?this._curVenueFeature?.properties?.building_ids?.split(",")||[]:this._curBuildingId?[this._curBuildingId]:[]).includes(i)?(e.add(n),this._hiddenBuildings.delete(i)):t.delete(i)}else e.add(n),this._hiddenBuildings.delete(i)}else this._hiddenBuildings.add(i),t.delete(i)}}_getVenueDefaultOrdinal(t){let e=null;if(t?.properties){const{default_displayed_ordinal:i,building_ids:n}=t.properties;if(i&&(e=i),!e&&n){const t=To(this._getBuildingsOfBbox(),(t=>n.includes(t.properties.id)));e=t?this._getBuildingDefaultOrdinal(t):null}}return e}_getBuildingDefaultOrdinal(t){let e=null;if(t?.properties){const{level_ids:i,ordinals:n,default_displayed_floor:r}=t.properties,o=n?.split(",")||[];if(o.length){if(r){e=o[Ao(i?.split(",")||[],(t=>t===r))]??null}e||(e=Ho(o,(t=>Math.abs(Number(t)-.1))))}}return e}_getBuildingsOfBbox(t){let e=this._map.queryRenderedFeatures({layers:["mapxus-building-line"]});return e=Ko(e,(t=>t.properties.id)),t&&(e=e.filter(t)),e}_copyOverlapLayers(){const t=this._originIndoorLayers.findIndex((({id:t})=>"mapxus-level-fill"===t)),e=this._originIndoorLayers.findIndex((({id:t})=>t.startsWith("mapxus-poi")));this._commonLayers=this._originIndoorLayers.slice(0,t).concat(this._originIndoorLayers.slice(e)),this._upperLayers=this._originIndoorLayers.slice(t,e).filter((t=>"mapxus_building"!==t["source-layer"])),this._lowerLayers=this._upperLayers.map((t=>{const e=Object.assign({},t,{id:`${t.id}-overlap-copy`});return this._map.getLayer(e.id)||(this._map.addLayer(e),this._map.moveLayer(e.id,"mapxus-level-fill")),e}))}_updateFeatures(){this._features=this._getIndoorFeatures();const t=Ko(ts(this._features,(t=>"mapxus-building-line"===t.layer.id)),(t=>t.properties.id));this._allBuildings=new Map(t.map((t=>[t.properties.id,t]))),this._featureIncomplete&&this._allBuildings.get(this._curBuildingId)&&(this._curBuildingFeature=this._allBuildings.get(this._curBuildingId),this._featureIncomplete=!1)}_layerDisplayedBuildings(){if(this._allBuildings.size)for(const t of this._allBuildings.values()){if(!t.properties)continue;const{id:e,overlap:i}=t.properties;let n=!1;if(e===this._curBuildingId)this._hiddenBuildings.delete(e),this._lowerBuildings.delete(e),this._upperBuildings.add(e),i&&(n=!0);else{!this._upperBuildings.has(e)&&!this._lowerBuildings.has(e)&&!this._hiddenBuildings.has(e)&&(this._upperBuildings.add(e),i&&(n=!0))}n&&i.split(",").forEach((t=>{this._hiddenBuildings.has(t)||(this._upperBuildings.delete(t),this._lowerBuildings.add(t))}))}}_setDisplayedLevels(){this._handleBuildings(this._upperBuildings,this._upperLevels),this._handleBuildings(this._lowerBuildings,this._lowerLevels)}_filterTiles(){this._filterIndoorLayers([...this._upperLevels],this._upperLayers??[]),this._filterIndoorLayers([...this._lowerLevels],this._lowerLayers??[]),this._filterIndoorLayers([...this._upperLevels,...this._lowerLevels],this._commonLayers??[])}_filterIndoorLayers(t,e){if(e.length){let i;for(const n of e){const e=n,r=e["source-layer"];if("mapxus_venue"===r||"mapxus_building"===r)continue;const o=e.layout?.visibility,{id:s,filter:a}=e;"none"===o&&this._map.setLayoutProperty(s,"visibility","visible"),a&&(i=["all","mapxus_level"===r?["in","id",...t]:["in","ref:level",...t],a],"mapxus_place"===r&&i.splice(2,0,["any",["all",["has","overlap"],["in","ref:building",...this._upperBuildings]],["!has","overlap"]]),this._map.setFilter(s,i))}}}async _updateIndoorState(t,e){if(t){if(!t.properties)return void console.warn("Building feature properties is empty.",t);const{id:i,"ref:venue":n,level_ids:r,ordinals:o}=t.properties;if(this._curVenueId!==n){this._curVenueId=n;let t=this.getFeaturesById(n,{layerIds:["mapxus-venue-fill"]})[0]??null;if(!t)try{const e=await as.searchByIds(n);t=function(t){const{address:e,buildings:i,id:n,name:r,type:o}=t;return{layer:{id:"mapxus-venue-fill"},properties:{...Vi(e,((t,e,i)=>Object.assign(t,"default"===i?{"addr:street":e.street,"addr:housenumber":e.housenumber}:{[`addr:street:${i}`]:e.street})),{}),...Pi(r,((t,e)=>"default"===e?"name":`name:${e}`)),id:n,venue:o,building_ids:i.map((({id:t})=>t)).join()},source:"indoor-planet",sourceLayer:"mapxus_venue"}}(e.data.result.venues[0])}catch(t){throw new Error("Venue not found.")}this._curVenueFeature=t}this._curBuildingFeature=t,this._curBuildingId=i,this._history.addHistoryBuilding(i);const s=o.split(",");if(e){const i=s[Ao(r.split(","),(t=>t===e))];i||console.warn("Building has no corresponding ordinal.",t),this._ordinal=i??null}else{let e=this._history.getHistoryOrdinal(this._isVenueMode?this._history.getHistoryBuilding(n):i);(!e||e&&!s.includes(e))&&(e=this._getBuildingDefaultOrdinal(t)),this._ordinal=e}}else this._clear()}_updateFloorState(t){if(this._ordinal=t,this._floorName=null,this._floorId=null,t){const{code:t,id:e}=this._getBuildingFloorByOrdinal(this._curBuildingFeature,this._ordinal);if(this._floorName=t,this._floorId=e,!e)return;this._history.setHistoryOrdinal(this._curBuildingId,this._ordinal),this._isVenueMode&&this._history.setHistoryBuilding(this._curVenueId,this._curBuildingId)}}_resetSelectedBuildingLevel(){(this._isVenueMode?this._curVenueFeature?this._curVenueFeature.properties.building_ids.split(","):[]:[this._curBuildingId]).forEach((t=>{this._upperBuildings.delete(t),this._lowerBuildings.delete(t),this._hiddenBuildings.delete(t)})),this._upperBuildings.add(this._curBuildingId);const t=this._curBuildingFeature.properties.overlap;t&&t.split(",").forEach((t=>{this._upperBuildings.has(t)&&(this._upperBuildings.delete(t),this._lowerBuildings.add(t))}))}_checkAndPanToBuilding(){this.getFeaturesById(this._curBuildingId,{layerIds:["mapxus-building-line"]})[0]||(this._fitBuildingBounds?this.fitBuildingBbox():this.panToBuildingCenter())}_invisibleSelectedBuilding(){if(this._isVenueMode){if(!this._curVenueFeature)return;const{building_ids:t}=this._curVenueFeature.properties;t&&t.split(",").forEach((t=>{this._upperBuildings.delete(t),this._lowerBuildings.delete(t)}))}else this._curBuildingId&&(this._upperBuildings.delete(this._curBuildingId),this._lowerBuildings.delete(this._curBuildingId))}}class cs{_map;_layerIds=[];_dispatch;constructor(t){this._map=t,this._dispatch=$o("poiClick"),this._bindEvents()}onPoiClick(t){const e=is("poiClick.");return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}_bindEvents(){this._map.on("styledata",zo((()=>this._init()),300)),this._initPoiClick()}_init(){this._layerIds=Mr(ts(o(this._map.getStyle()),(t=>"mapxus_place"===t["source-layer"])),(({id:t})=>t))}_initPoiClick(){this._map.on("click",(t=>{const e=this._map.queryRenderedFeatures(t.point,{layers:[...this._layerIds,"mapxus-building-line","mapxus-venue-fill"]});if(e.length){const i=To(e,(t=>t.layer.id.indexOf("mapxus-poi")>-1));if(i?.properties){const{"ref:level":n=null,"ref:building":r}=i.properties,o=To(e,(t=>t.properties.id===r))??null,s=To(e,(t=>t.properties.id===o?.properties?.["ref:venue"]))??null,{floorName:a,ordinal:l}=this._getFloorDataByFloorId(n,o);this._dispatch.call("poiClick",null,{coordinate:t.lngLat,poi:i,building:o,venue:s,floor:{code:a,id:n,ordinal:l}})}}}))}_getFloorDataByFloorId(t,e){let i=null,n=null;if(t&&e?.properties){const{level_ids:r,level_names:o,ordinals:s}=e.properties,a=r?.split(",")||[],l=Ao(a,(e=>e===t));l>-1&&(i=(o?.split(",")||[])[l]??null,n=(s?.split(",")||[])[l]??null)}return{floorName:i,ordinal:n}}}function us(t){t.parentNode&&t.parentNode.removeChild(t)}function ds(t,e,i){const n=window.document.createElement(t);return e&&(n.className=e),i&&i.appendChild(n),n}const hs=function(t){return"number"==typeof t||Z(t)&&"[object Number]"==w(t)};class ps{_map;_maplibre;_buildingId;_features;_$container;_$listContainer;_$buildingList;_listHeight;_visible;_position;constructor(t,e,i){this._map=t,this._position=e??"top-right",this._visible=i??!0}onAdd(t){return this._maplibre=t,this._$container=ds("div","maplibregl-ctrl maplibregl-ctrl-building-filter "+(this._visible?"":"hide"),this._maplibre.getContainer()),this._$container.appendChild(this._buildingFilterIconCreate("div")),this._$container.appendChild(this._buildingNameListCreate("div")),this._loadData(),this._$container}onRemove(){us(this._$container)}get position(){return this._position}get enabled(){return this._visible}getDefaultPosition(){return"top-right"}setLayoutHidden(t){this._visible=!t,t?this._$hideLayout():this._$showLayout()}setVisibility(t){this._visible=t,t?this._$showLayout():this._$hideLayout()}moveBuildingFilter(t,e){const i=document.querySelector(`.maplibregl-ctrl-${t}`),n=i.querySelector(".maplibregl-ctrl-building-filter"),r=document.querySelector(`.maplibregl-ctrl-${e}`);n&&(i.removeChild(n),r.prepend(n),this._updateBuildingListLayout(e),this._position=e)}changePosition(t,e,i){const n=document.querySelector(`.maplibregl-ctrl-${t}`),r=n.querySelector(".maplibregl-ctrl-building-filter");if(t!==e){this._position=e;const t=document.querySelector(`.maplibregl-ctrl-${e}`);r&&(n.removeChild(r),hs(i)?t.insertBefore(r,t.children[i]):t.append(r),this._updateBuildingListLayout(e))}else hs(i)&&n.children[i]!==r&&(n.removeChild(r),n.insertBefore(r,n.children[i]))}_loadData(){this._maplibre.on("moveend",(()=>this._refresh())),this._map.onMapChangeListener((({building:t})=>{const e=t?.properties?.id??"";this._buildingId!==e&&(this._buildingId=e,this._refresh())})),this._map.renderComplete((()=>{this._init()}))}_init(){this._load()}_refresh(){this._load()}_load(){this._buildingNameListClean(),this._buildingNameListUpdate()}_buildingFilterIconCreate(t){const e=window.document.createElement(t);return e.className="mapxus-building-filter-icon",this._buildingToggleListEvent(e,!0),e}_buildingNameListCreate(t){return this._$listContainer=window.document.createElement(t),this._$listContainer.className="mapxus-building-name-layout",this._$listContainer.style.display="none",this._$listContainer.style.top="20px",this._$buildingList=window.document.createElement(t),this._$buildingList.className="mapxus-building-name-list",this._$listContainer.appendChild(this._$buildingList),this._buildingToggleListEvent(this._$listContainer,!1),this._$listContainer}_buildingNameListUpdate(){this._features=[];const t=this._map.getMaplibre().queryRenderedFeatures({layers:["mapxus-building-line"]});for(const e of t){const{id:t,name:i}=e.properties;To(this._features,(e=>e.properties.id===t))||(this._features.push(e),this._$buildingList.appendChild(this._buildingNameCreate("p",i,t,t===this._map.building?.properties?.id)))}this._setBuildingListHeight(this._features),this._updateBuildingListLayout(this._position)}_buildingNameListClean(){this._$buildingList.innerHTML=""}_setBuildingListHeight(t){const e=t.map((t=>{const e=t?.properties?.name;return e?Math.ceil(8*e.length/107):0})).reduce(((t,e)=>t+e),0);this._listHeight=26*e+8*t.length,this._$buildingList.style.height=this._$listContainer.style.height=`${this._listHeight>=208?208:this._listHeight}px`}_buildingNameCreate(t,e,i,n){const r=window.document.createElement(t);return r.dataset.id=i,r.className="mapxus-building-name",r.innerHTML=e,n&&r.classList.add("active"),this._buildingNameClickEvent(r),r}_toggleList(t){this._$listContainer.style.display=t?"block":"none"}_buildingNameClickEvent(t){t.onclick||(t.onclick=t=>{const e=t.target;this._map.selectBuildingById(e.dataset.id)})}_buildingToggleListEvent(t,e){t.onmouseenter||(t.onmouseenter=t=>{this._toggleList(!0)}),t.onmouseleave||e||(t.onmouseleave=t=>{this._toggleList(!1)})}_$showLayout(){this._$container.classList.remove("hide")}_$hideLayout(){this._$container.classList.add("hide")}_updateBuildingListLayout(t){t.indexOf("left")>-1?(this._$listContainer.style.right=null,this._$listContainer.style.left="55px"):(this._$listContainer.style.left=null,this._$listContainer.style.right="55px");const e=this._$container.offsetParent?this._$container.offsetParent.clientHeight-(this._$container.offsetTop+this._$container.clientHeight)-25:0;t.includes("bottom")&&this._listHeight-20>e?(this._$listContainer.style.top=null,this._$listContainer.style.bottom="15px"):(this._$listContainer.style.bottom=null,this._$listContainer.style.top="20px")}}const _s=function(t,e){for(var i=-1,n=null==t?0:t.length;++i<n&&!1!==e(t[i],i,t););return t};const fs=function(t){return"function"==typeof t?t:xi};const gs=function(t,e){return(U(t)?_s:ji)(t,fs(e))};var ms=Math.max,ys=Math.min;const vs=function(t,e,i){return t>=ys(e,i)&&t<ms(e,i)};const bs=function(t,e,i){return e=no(e),void 0===i?(i=e,e=0):i=no(i),t=eo(t),vs(t,e,i)};class ws{_container;_indoor;_maplibre;_position="top-right";_buildingId=null;_floorNames;_ordinals;_ordinal=null;_style;_$innerFloors;_$activeFloor;_centerSelectorIdx;_lastNormalScrollableIdx;_$arrowBtnUp;_$arrowBtnDown;_maxScrollTop;_$selectorExpanded;_$selectorFolded;_componentDidMount=!1;_isEnabled;_visible=!1;_dragPan;constructor(t,e){const{style:i,enabled:n=!0}=e;this._indoor=t,this._style=i?Object.assign({},bo,i):bo,this._isEnabled=n,this._bindEvents()}onAdd(t){return this._maplibre=t,this._addMapMoveEventListener(),this._container=document.createElement("div"),this._container.className="maplibregl-ctrl mapxus-ctrl-floors hidden",this._container}onRemove(){this._container.parentNode.removeChild(this._container)}get position(){return this._position}get enabled(){return this._isEnabled}setEnabled(t){this._isEnabled=t,t&&!this._visible&&this._setVisibility(!0),!t&&this._visible&&this._setVisibility(!1)}getDefaultPosition(){return"top-right"}switchByOrdinal(t,e){this._ordinal=t,this._dragPan=e??!0,this._indoor.switchFloorByOrdinal(t),this._updateSelectorStatus(t),this._scrollCenterActiveFloor()}setVisibility(t){this._componentDidMount?t?this._show():this._hide():this._visible=t}setPosition(t){const e=document.querySelector(`.maplibregl-ctrl-${this._position}`),i=e.querySelector(".mapxus-ctrl-floors"),n=document.querySelector(`.maplibregl-ctrl-${t}`);i&&(e.removeChild(i),n.prepend(i),this._position=t),this._show(),this._scrollCenterActiveFloor()}changePosition(t,e,i){const n=document.querySelector(`.maplibregl-ctrl-${t}`),r=n.querySelector(".mapxus-ctrl-floors");if(t!==e){this._position=e;const t=document.querySelector(`.maplibregl-ctrl-${e}`);r&&(n.removeChild(r),hs(i)?t.insertBefore(r,t.children[i]):t.append(r),this._show(),this._scrollCenterActiveFloor())}else hs(i)&&n.children[i]!==r&&(n.removeChild(r),n.insertBefore(r,n.children[i]),this._show(),this._scrollCenterActiveFloor())}setStyle(t){this._style=Object.assign({},this._style,t),this._componentDidMount&&(this._clearFloors(),this._render(),this._scrollCenterActiveFloor(),this._componentDidMount=!0)}_setVisibility(t){this._componentDidMount?t?(this._show(),this._scrollCenterActiveFloor()):this._hide():(this._visible=t,this._indoor.building&&t&&(this._mountFloors(this._indoor.building),this._show(),this._scrollCenterActiveFloor()))}_bindEvents(){this._indoor.on("selectedBuildingChanged",(({buildingId:t,ordinal:e,dragPan:i})=>{if(this._buildingId=t,this._ordinal=e,this._dragPan=i,this._visible&&this._hide(),this._componentDidMount&&this._clearFloors(),this._indoor.building){this._mountFloors(this._indoor.building);const t=this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0];this.enabled&&(!1!==this._dragPan||!1===this._dragPan&&t)&&(this._show(),this._scrollCenterActiveFloor())}else this._clearState()}))}_addMapMoveEventListener(){this._maplibre.on("moveend",(()=>{if(this.enabled&&!1===this._dragPan&&this._buildingId){const t=this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0];t?this._componentDidMount?this._visible||(this._show(),this._scrollCenterActiveFloor()):(this._mountFloors(t),this._show(),this._scrollCenterActiveFloor()):this._componentDidMount&&this._visible&&this._hide()}}))}_mountFloors(t){this._updateFloorSelector(t),this._componentDidMount=!0}_updateFloorSelector(t){const{level_names:e,ordinals:i}=t.properties;this._floorNames=e.split(",").reverse(),this._ordinals=i.split(",").reverse(),this._render()}_clearState(){this._floorNames=[],this._ordinals=[],this._ordinal=null}_render(){const{itemCount:t,itemSize:e}=this._style;this._centerSelectorIdx=Math.ceil(t/2)-1,this._maxScrollTop=(this._floorNames.length-t)*e,this._lastNormalScrollableIdx=this._floorNames.length-(t-this._centerSelectorIdx-1)-1,this._createFloors()}_hide(){this._container.classList.add("hidden"),this._visible=!1}_show(){this._container.classList.remove("hidden"),this._visible=!0}_createFloors(){this._$selectorFolded=this._$foldedSelector(this._container,(()=>{this._expandSelector(!0),this._scrollCenterActiveFloor()})),this._$selectorExpanded=this._$expandedSelector(this._container,(()=>this._expandSelector(!1)))}_$expandedSelector(t,e){const{itemSize:i,itemCount:n,defaultFolded:r,backgroundColor:o}=this._style,s=ds("div","mapxus-ctrl-floors-expanded "+(r?"hidden":""),t);if(this._floorNames.length>1){ds("div","mapxus-ctrl-floors-close",s).onclick=e}const a=ds("div","mapxus-ctrl-floors-wrapper",s);return a.style.backgroundColor=o,this._floorNames.length>n&&(this._$arrowBtnUp=this._$createScrollButton(a,"up"),this._$arrowBtnUp.onclick=()=>this._handleScroll("up")),this._$innerFloors=ds("div","mapxus-ctrl-floors-inner",a),Object.assign(this._$innerFloors.style,{maxHeight:i*n+"px",width:`${i}px`}),this._$createFloors(this._$innerFloors),this._floorNames.length>n&&(this._$arrowBtnDown=this._$createScrollButton(a,"down"),this._$arrowBtnDown.onclick=()=>this._handleScroll("down"),this._$innerFloors.addEventListener("scroll",zo((t=>{t.stopPropagation(),this._resetArrowBtnStatus(this._$innerFloors.scrollTop)}),100))),s}_$foldedSelector(t,e){const{itemSize:i,activeFontColor:n,activeBackgroundColor:r,defaultFolded:o}=this._style,s=ds("div","mapxus-ctrl-floors-folded mapxus-ctrl-floors-floor "+(o?"":"hidden"),t);return s.onclick=e,Object.assign(s.style,{width:`${i}px`,height:`${i}px`,lineHeight:`${i}px`,color:n,backgroundColor:r}),s}_clearFloors(){this._container.innerHTML="",this._componentDidMount=!1}_$createScrollButton(t,e){return ds("div",`mapxus-ctrl-floors-arrow mapxus-ctrl-floors-floor ${e}`,t)}_$createFloors(t){const{fontColor:e,itemSize:i}=this._style;let n;gs(this._floorNames,((r,o)=>{n=ds("div","mapxus-ctrl-floors-floor",t),n.dataset.floor=r,n.dataset.ordinal=this._ordinals[o],n.innerText=r,Object.assign(n.style,{color:e,height:`${i}px`,lineHeight:`${i}px`}),n.dataset.ordinal===this._ordinal&&(this._$activeFloor=n,this._resetActiveFloor(!0),this._$selectorFolded.innerText=r),n.onclick=t=>{this._indoor.setDragPan("restrict"),this.switchByOrdinal(t.target.dataset.ordinal)}}))}_updateSelectorStatus(t){const e=this._floorNames[this._ordinals.indexOf(t)];this._$activeFloor&&this._resetActiveFloor(!1),gs(this._$innerFloors.children,(e=>{e.dataset.ordinal===t&&(this._$activeFloor=e,this._resetActiveFloor(!0))})),this._$selectorFolded.innerText=e}_resetArrowBtnStatus(t){0===t?this._$arrowBtnUp?.classList?.add("hidden"):this._$arrowBtnUp?.classList?.remove("hidden"),t===this._maxScrollTop?this._$arrowBtnDown?.classList?.add("hidden"):this._$arrowBtnDown?.classList?.remove("hidden")}_resetActiveFloor(t){const{activeBackgroundColor:e,backgroundColor:i,activeFontColor:n,fontColor:r}=this._style;Object.assign(this._$activeFloor.style,{color:t?n:r,backgroundColor:t?e:i,fontWeight:t?"bold":"normal",cursor:t?"auto":"pointer"}),this._$activeFloor.disabled=t}_scrollCenterActiveFloor(){if(this._ordinal){const t=this._ordinals.indexOf(this._ordinal);t>-1&&(this._$innerFloors.scrollTop=this._getScrollTop(t),this._$innerFloors.scrollTop||this._resetArrowBtnStatus(0))}}_getScrollTop(t){return bs(this._centerSelectorIdx,this._lastNormalScrollableIdx+1)?(t-this._centerSelectorIdx)*this._style.itemSize:t>this._lastNormalScrollableIdx?this._maxScrollTop:0}_handleScroll(t){const e=this._$innerFloors.scrollTop,{itemSize:i}=this._style;if("up"===t){const t=e-2*i;this._$innerFloors.scrollTop=t<0?0:t}else if("down"===t){const t=e+2*i;this._$innerFloors.scrollTop=t>this._maxScrollTop?this._maxScrollTop:t}}_expandSelector(t){t?(this._$selectorExpanded.classList.remove("hidden"),this._$selectorFolded.classList.add("hidden")):(this._$selectorExpanded.classList.add("hidden"),this._$selectorFolded.classList.remove("hidden"))}}class Ls{_container;onAdd(t){this._container=ds("div","maplibregl-ctrl mapxus-ctrl-logo",t.getContainer());const e=ds("a","mapxus-logo",this._container);return e.target="_blank",e.href="https://www.khi.co.jp/groupvision2030/mapxus.html",e.setAttribute("aria-label","Mapxus logo"),e.setAttribute("rel","noopener"),this._container.appendChild(e),this._container}onRemove(){us(this._container)}getDefaultPosition(){return"bottom-left"}}class Ss{_container;_anchor;_theme;constructor(t){this._theme=t.theme?t.theme:"default"}onAdd(t){return this._container=ds("div","maplibregl-ctrl mapxus-ctrl-attribution",t.getContainer()),this._anchor=ds("a","mapxus-attribution",this._container),this._anchor.target="_blank",this._setCopyrightInfo(this._theme),this._anchor.setAttribute("aria-label","Mapxus attribution"),this._anchor.setAttribute("rel","noopener"),this._container.appendChild(this._anchor),this._container}onRemove(){us(this._container)}getDefaultPosition(){return"bottom-right"}changeTheme(t){this._setCopyrightInfo(t)}_setCopyrightInfo(t){this._anchor.innerText="landsD"===t?"© The Government of the Hong Kong SAR":"© OpenStreetMap contributors",this._anchor.href="landsD"===t?"https://www.map.gov.hk/gm/":"https://www.openstreetmap.org/copyright/"}}class Bs{_container;onAdd(t){return this._container=ds("div","maplibregl-ctrl mapxus-ctrl-collapsed-copyright",t.getContainer()),this._container.innerHTML='\n <div class="mapxus-collapsed-copyright-content">\n <div class="mapxus-collapsed-copyright-menu hidden">\n <div class="mapxus-collapsed-copyright-logo" onclick="window.open(\'https://www.khi.co.jp/groupvision2030/mapxus.html\')"></div>\n <div class="mapxus-collapsed-horizontal-divider"></div>\n <div class="mapxus-collapsed-copyright-text" onclick="window.open(\'https://www.openstreetmap.org/copyright/\')"></div>\n </div>\n <div class="mapxus-collapsed-copyright-btn"></div>\n </div>\n ',this._bindEvents(),this._container}onRemove(t){us(this._container)}getDefaultPosition(){return"bottom-right"}_bindEvents(){const t=this._container.querySelector(".mapxus-collapsed-copyright-menu"),e=this._container.querySelector(".mapxus-collapsed-copyright-btn");let i=!1;e.addEventListener("click",(()=>(i=!i,void(i?t.classList.remove("hidden"):t.classList.add("hidden")))))}}const Is="v3";function xs(t){return`${yr.hl}/api/${Is}/tiles/styles/${t}`}const Ms=xs("christmas_mims2_v1"),Fs=xs("common_mims2_v1"),Cs=xs("halloween_mims2_v1"),ks=xs("mappybee_mims2_v1"),Ps=xs("mapxus_mims2_v1"),$s=xs("lands_d_mims2_v1"),Es=xs("mapxus_mims2_v5");class js{_indoor;_isEnabled=!0;constructor(t){this._indoor=t}enable(){this._isEnabled=!0,this._indoor.setAllowOutdoorSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowOutdoorSwitch(!1)}get isEnabled(){return this._isEnabled}}class Os{_indoor;_isEnabled=!0;constructor(t){this._indoor=t}enable(){this._isEnabled=!0,this._indoor.setAllowBuildingSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowBuildingSwitch(!1)}get isEnabled(){return this._isEnabled}}class Vs{_buildingSelector;_isEnabled=!0;_position;constructor(t){this._buildingSelector=t}enable(){this._isEnabled=!0,this._buildingSelector.enabled||this._buildingSelector.setVisibility(!0)}disable(){this._isEnabled=!1,this._buildingSelector.enabled&&this._buildingSelector.setVisibility(!1)}setPosition(t,e){this._position=t,this._buildingSelector.changePosition(this._buildingSelector.position,t,e)}get isEnabled(){return this._isEnabled}get position(){return this._position}}class As{_floorSelector;_isEnabled;_position;constructor(t){this._floorSelector=t,this._position=t.position,this._isEnabled=this._floorSelector.enabled}enable(){this._isEnabled=!0,this._floorSelector.setEnabled(!0)}disable(){this._isEnabled=!1,this._floorSelector.setEnabled(!1)}setPosition(t,e){this._position=t,this._floorSelector.changePosition(this._floorSelector.position,t,e)}setStyle(t){this._floorSelector.setStyle(t)}get isEnabled(){return this._isEnabled}get position(){return this._position}}class Ts extends Ti.a${_map;_indoor;_poi;_floorsControl;_buildingFilterControl;_attributionControl;_initialHiddenLayers;_language;_dispatch;_fitBuildingBounds;_history=Eo.getInstance();_hiddenBuildings=jo.getInstance().getHiddenBuildings();switchOutdoor;switchBuilding;buildingSelector;floorSelector;constructor(t){super();const{map:e,appId:i,secret:n,poiId:o,floorId:s,buildingId:a,venueId:l,theme:c=r.SV.MAPXUS_V2,enableFloorControl:u,floorSelectorEnabled:d,enableBuildingSelector:h,buildingSelectorEnabled:p,hiddenOutdoor:_,outdoorMapShown:f,collapseCopyright:g=!1,floorSwitchMode:m,maskNonSelectedAreas:y,fitBuildingBounds:v=!1,boundsPadding:b=30,selectedBuildingBorderStyle:w,floorsControlStyle:L,floorSelectorStyle:S,language:B=wo,autoSelectBuilding:I=!1}=t;if(!e)throw new Error("Outdoor Map parameter missing.");if(!i||!n)throw new Error("Permission parameter missing.");Br.verifyPermission(i,n).then((()=>{this._map=e,this._language=B,this._indoor=new ls({map:this._map,startWithIndoorView:Boolean(l||a||s||o),outdoorMapShown:void 0===_?f:!_,floorSwitchMode:m,fitBuildingBounds:v,boundsPadding:b,maskNonSelectedAreas:y,selectedBuildingBorderStyle:w}),this._poi=new cs(this._map),this._fitBuildingBounds=v,this._resourceRequestTransform(),this._setStyle(this._getStyleUrl(c)),this._checkMapZoom(),this._dispatch=$o("mapClick","pointClick"),g?this._attributionControl=new Bs:(this._attributionControl=new Ss({theme:c}),this._addControl(new Ls)),this._addControl(this._attributionControl),this._addControl(this._buildingFilterControl=new ps(this,"top-right",h??p)),this._addControl(this._floorsControl=new ws(this._indoor,{style:L??S,enabled:u??d})),o?this._selectPoiById(o):s?this.selectFloorById(s):a?this.selectBuildingById(a):l&&this.selectVenueById(l),this.switchOutdoor=new js(this._indoor),this.switchBuilding=new Os(this._indoor),this.buildingSelector=new Vs(this._buildingFilterControl),this.floorSelector=new As(this._floorsControl),this._map.once("styledata",(()=>this._hideIndoorLayers())),this._map.on("click",(async t=>{const{point:e,lngLat:i}=t;await this._indoor.selectBuildingByClickMap(e),this._dispatch.call("pointClick",null,{point:e,coordinate:i}),this._dispatch.call("mapClick",null,{coordinate:i,venue:this.venue,building:this.building,floor:this.floor})})),this._map.on("error",zo((t=>this._updatePermission(t,i,n)),350)),this._indoor.once("maplibreMapLoaded",(()=>{this._showIndoorLayers(),this.setLanguage(this._language)})),this._indoor.once("indoorMapLoaded",(t=>{I&&this._map.on("moveend",(()=>this._selectCenterBuilding())),this.fire(new Ti.Jh("isRenderComplete",t))}))})).catch((t=>{throw t}))}renderComplete(t){this.on("isRenderComplete",t)}getIndoor(){return this._indoor}getMaplibre(){return this._map}getMap(){return this._map}get floor(){return this.getIndoor()?.floor??null}get building(){return this.getIndoor()?.building??null}get venue(){return this.getIndoor()?.venue??null}transformPoiTextFieldLanguage(t){const e=this._map?.getStyle();if(e){const i=o(e),n=ts(i,(({type:t})=>"symbol"===t));if(n.length){const e=(0,yo.y)(t);(0,yo.E)(n,e).forEach((({layerId:t,languages:e})=>{this._map.getLayer(t)&&this._map.setLayoutProperty(t,"text-field",e)}))}}}setLanguage(t){this._language!==t&&(this._language=t);const e=this._map?.getStyle(),i=e?.layers;if(i&&i.length){const e=i.filter((({type:t})=>"symbol"===t));e.length&&e.forEach((({id:e})=>{this._map.getLayer(e)&&this._map.setLayoutProperty(e,"text-field",["coalesce",["get",`name:${t}`],["get","name"]])}))}}enableSwitch(){return this._indoor?.enableSwitch(),this}disableSwitch(){return this._indoor?.disableSwitch(),this}enableSwitchBuilding(){return this._indoor?.enableSwitchBuilding(),this}disableSwitchBuilding(){return this._indoor?.disableSwitchBuilding(),this}setOutdoorLayerHidden(t){this.getIndoor()?.hiddenOutdoorLayer(t)}setOutdoorMapShown(t){this.getIndoor()?.setOutdoorMapShown(t)}getFeature(t){return this.getIndoor()?.getFeature(t)}getIndoorFeaturesByCoordinates(t,e){const i=this._map.project(t),n=this._map.queryRenderedFeatures(i,{layers:["mapxus-venue-fill","mapxus-building-line","mapxus-level-fill","mapxus-level-fill-overlap-copy"]});let r=null,o=null,s=null;if(n.length){const t=n.filter((t=>t.layer.id.includes("mapxus-level-fill")));s=To(t,(t=>hs(e)?t.properties.ordinal===e+"":t.layer.id.startsWith("mapxus-level-fill"))),s&&(o=To(n,(t=>t.properties.id===s.properties["ref:building"])),r=To(n,(t=>t.properties.id===o.properties["ref:venue"])))}return{venue:r,building:o,level:s}}getFeaturesById(t,e){return this.getIndoor()?.getFeaturesById(t,e)||[]}async selectFloorById(t,e){const{dragPan:i=!0}=e||{};if(this._indoor.setDragPan(i),t===this.floor?.id)i&&(this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter());else{let e,n,r;if(this._fitBuildingBounds){e=await xo(t),n=Ai(e),r=!0;const{maxLat:i,maxLon:o,minLat:s,minLon:a}=e.bbox;this._indoor.setBuildingBounds([[a,s],[o,i]])}else n=To(this._indoor?.features||[],(e=>e.properties?.level_ids?.includes(t)&&"mapxus-building-line"===e.layer.id))??null,n?r=!1:(e=await xo(t),n=Ai(e),r=!0);if(n&&n?.properties?.id===this.building?.properties?.id){const{level_ids:e,ordinals:r}=n.properties,o=e.split(",").indexOf(t),s=r.split(",")[o]??null;this._floorsControl.switchByOrdinal(s,i)}else await(this._indoor?.selectBuilding(n,{floorId:t,featureIncomplete:r}))}}async selectBuildingById(t,e){const{dragPan:i=!0}=e||{};if(this._indoor.setDragPan(i),t===this.building?.properties?.id)i&&(this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter());else{let e,i,n=!1;if(this._fitBuildingBounds){e=await Io(t),i=Ai(e),n=!0;const{maxLat:r,maxLon:o,minLat:s,minLon:a}=e.bbox;this._indoor.setBuildingBounds([[a,s],[o,r]])}else i=this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(t,{layerIds:["mapxus-building-line"]})[0]||null,i||(e=await Io(t),i=Ai(e),n=!0);await(this._indoor?.selectBuilding(i,{featureIncomplete:n}))}}async selectVenueById(t,e){const{dragPan:i=!0}=e||{};if(this._indoor.setDragPan(i),t)if(t===this.venue?.properties?.id)i&&(this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter());else{let e=this._history.getHistoryBuilding(t);if(!e){const i=this._map.getLayer("mapxus-venue-fill")&&this.getFeaturesById(t,{layerIds:["mapxus-venue-fill"]})[0];if(i){const{default_displayed_building:t,building_ids:n}=i.properties;e=t||(n?.split(",")||[])[0]}else{const i=await async function(t){try{return(await So.searchByIds(t)).data.result.venues[0]}catch(t){throw new Error(t)}}(t);e=i.defaultBuilding||i.buildings[0]?.id}}await this.selectBuildingById(e,{dragPan:i})}else await(this._indoor?.selectBuilding(null))}onMapClickListener(t){const e=is("mapClick.");return this._dispatch?.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}onPoiClickListener(t){return this._poi?.onPoiClick(t)}onPointClickListener(t){const e=is("pointClick.");return this._dispatch?.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}onMapChangeListener(t){return this._indoor?.onMapChange(t)}disableBuildingSelector(){return this._buildingFilterControl?.enabled&&this._buildingFilterControl.setVisibility(!1),this}enableBuildingSelector(t){return t&&t!==this._buildingFilterControl?.position&&this._buildingFilterControl.changePosition(this._buildingFilterControl.position,t),this._buildingFilterControl?.enabled||this._buildingFilterControl.setVisibility(!0),this}switchTheme(t){this._setStyle(this._getStyleUrl(t)),"changeTheme"in this._attributionControl&&this._attributionControl.changeTheme(t),this._map?.once("styledata",zo((()=>this._setIndoorFilter()),250))}setFloorsControlStyle(t){return this._floorsControl?.setStyle(t),this}setFloorSelectorStyle(t){return this._floorsControl?.setStyle(t),this}setSelectedBuildingBorderStyle(t){return this._indoor?.setSelectedBuildingBorderStyle(t),this}_getStyleUrl(t){let e;if(so(r.SV).indexOf(t)>-1)switch(t){case r.SV.CHRISTMAS:e=Ms;break;case r.SV.HALLOWEEN:e=Cs;break;case r.SV.MAPPY_BEE:e=ks;break;case r.SV.MAPXUS:e=Ps;break;case r.SV.MAPXUS_V2:e=Es;break;case r.SV.COMMON:e=Fs;break;case r.SV.LANDS_D:e=$s}else e=function(t){return xs(t)}(t);return e}_setIndoorFilter(){this._indoor.updateCustomLayers(),this._indoor.updateRendering()}_setStyle(t){this._map?.setStyle(t,{localIdeographFontFamily:!1})}_addControl(t,e){this._map.addControl(t,e)}async _selectPoiById(t){try{const e=await async function(t){try{return(await Bo.searchByIds([t])).data.result.pois[0]}catch(t){throw new Error(t)}}(t),{floorId:i,location:{lon:n,lat:r}}=e;await this.selectFloorById(i),this._map.panTo([n,r])}catch(t){throw new Error(t)}}_resourceRequestTransform(){this._map.setTransformRequest(Br.transformRequest)}_checkMapZoom(){const t=this._map.getZoom();(t<8||t>22)&&t>1&&console.warn("Indoor maps perform better at zoom levels [8, 22].")}_hideIndoorLayers(){this._map.getLayer("mapxus-venue-fill")&&this._map.setPaintProperty("mapxus-venue-fill","fill-opacity",0),this._map.getLayer("mapxus-building-line-color")&&this._map.setPaintProperty("mapxus-building-line-color","line-opacity",0),this._initialHiddenLayers=o(this._map.getStyle()).filter((({id:t})=>!t.includes("mapxus-building")||"mapxus-venue-fill"!==t)),this._initialHiddenLayers.forEach((({id:t})=>{this._map.getLayer(t)&&this._map.setLayoutProperty(t,"visibility","none")}))}_showIndoorLayers(){gs(this._initialHiddenLayers,(({id:t})=>{this._map.getLayer(t)&&this._map.setLayoutProperty(t,"visibility","visible")}))}_updatePermission(t,e,i){401===t.error?.status&&Br.verifyPermission(e,i).then((()=>{this._resourceRequestTransform()}))}_selectCenterBuilding(){const t=this._getCenterBuildingsMap();if(t.size){let e=t.entries().next().value[0];const i=this._history.getHistoryBuildings();if(i.size){const n=Array.from(i).reverse();for(const i of n)if(t.get(i)){e=i;break}}this.selectBuildingById(e,{dragPan:!1})}}_getCenterBuildingsMap(){const t=this._map.getCanvas().getBoundingClientRect(),e=t.width/4,i=t.height/4,n=[e,i],r=[t.width-e,t.height-i];let o=this._map.queryRenderedFeatures([n,r],{layers:["mapxus-building-line"]});return o=Ko(o,"properties.id"),o=ts(o,(t=>!this._hiddenBuildings.has(t.properties.id))),new globalThis.Map(o.map((t=>[`${t.properties.id}`,t])))}}async function Rs(t,e){if(!t.hasImage(e))try{const i=await t.loadImage(e);t.addImage(e,i.data)}catch(t){throw new Error(t)}}class Ns{_maplibreMap;_layerId;_sourceId;_imageName="poi-01";_imageSize=.75;_iconAnchor="bottom";constructor(t){this._maplibreMap=t;const e=is();this._layerId=`MXMap_preset_marker_layer_${e}`,this._sourceId=`MXMap_preset_marker_source_${e}`}async setIcon(t){t&&await Rs(this._maplibreMap,t),this._imageName=t}setIconSize(t){this._imageSize=t}setIconAnchor(t){this._iconAnchor=t}get layerId(){return this._layerId}get sourceId(){return this._sourceId}create(t){if(t.length){const e=Mr(t,(t=>this._createIconFeature(t)));this._addIconSource(e),this._addIconLayer()}}updateData(t){const e=!(!t.remove||!t.remove.length),i=!(!t.add||!t.add.length),n=!(!t.update||!t.update.length);if(e||i||n){const r=this._maplibreMap.getSource(this._sourceId),o={};e&&(o.remove=t.remove.map((t=>String(t)))),i&&(o.add=t.add.map((t=>this._createIconFeature(t)))),n&&(o.update=t.update.map((t=>{const e="properties"in t,i=this._createIconFeature(t),{id:n,geometry:r,properties:o}=i;return{id:n,newGeometry:r,removeAllProperties:e,...o?{addOrUpdateProperties:Mr(o,((t,e)=>({key:e,value:t})))}:{}}}))),r.updateData(o)}}remove(){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.removeLayer(this._layerId),this._maplibreMap.getSource(this._sourceId)&&this._maplibreMap.removeSource(this._sourceId)}onEventListener(t,e){const i=t=>this._handleEventListener(t,e);return this._maplibreMap.on(t,this._layerId,i),{offEventListener:()=>this._maplibreMap.off(t,this._layerId,i)}}on(t,e){const i=t=>this._handleEventListener(t,e);return this._maplibreMap.on(t,this._layerId,i),{off:()=>this._maplibreMap.off(t,this._layerId,i)}}setFilter(t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,t)}setFilterByVenue(t,e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","venueId"],t??""],["==",["get","ordinal"],e??""]],["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]]])}setFilterByBuilding(t,e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","buildingId"],t??""],["==",["get","ordinal"],e??""]],["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]]])}setOpacity(t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",t)}setOpacityByVenue(t,e){if(this._maplibreMap.getLayer(this._layerId)){const i=["case",["all",["==",["get","venueId"],t??""],["==",["get","ordinal"],e??""]],1,["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]],1,.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",i)}}setOpacityByBuilding(t,e){if(this._maplibreMap.getLayer(this._layerId)){const i=["case",["all",["==",["get","buildingId"],t??""],["==",["get","ordinal"],e??""]],1,["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]],1,.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",i)}}_createIconFeature(t){const{lngLat:e,properties:i}=t;return{id:"featureId"in t&&hs(t.featureId)?String(t.featureId):void 0,type:"Feature",geometry:{type:"Point",coordinates:e},properties:i||null}}_addIconSource(t){const e={type:"geojson",data:{type:"FeatureCollection",features:t}};this._maplibreMap.addSource(this._sourceId,e)}_addIconLayer(){this._maplibreMap.addLayer({id:this._layerId,type:"symbol",source:this._sourceId,layout:{"icon-image":this._imageName,"icon-size":this._imageSize,"icon-anchor":this._iconAnchor,"icon-allow-overlap":!0}})}_handleEventListener(t,e){const{point:i}=t;e(this._maplibreMap.queryRenderedFeatures(i,{layers:[this._layerId]})[0])}}const Hs={indoor_line_color:"#45b1cc",outdoor_line_color:"#8183ba",dashed_line_color:"#969696",bus_line_color:"#fb923c"},Ws="mmws-source-line-solid",Ds="mmws-layer-line-solid",Zs="mmws-layer-icon-triangle",zs="mmws-source-line-dashed",Gs="mmws-layer-line-dashed",Ys="mmws-source-icon-connector",Xs="mmws-layer-icon-connector",Js="mmws-source-icon-marker",Us="mmws-layer-icon-marker",qs=[Ds,Zs,Gs,Xs,Us],Ks=[Ws,zs,Ys,Js];class Qs{_maplibreMap;_fromMarkerIcon="poi-02";_toMarkerIcon="poi-01";_stopMarkerIcons=["waypoint-01"];_markerIconSize=.75;_paintProperties=Hs;constructor(t){this._maplibreMap=t}async setMarkerIcons(t){if(U(t)&&t.length){const e=t.filter((t=>!!t));e.length&&await Promise.all(e.map((t=>Rs(this._maplibreMap,t)))),this._fromMarkerIcon=t[0],this._toMarkerIcon=t[t.length-1];const i=t.slice(1,t.length-1);this._stopMarkerIcons=i.length?i:[t[0]]}else if("from"in t&&("string"==typeof t.from&&t.from?(await Rs(this._maplibreMap,t.from),this._fromMarkerIcon=t.from):this._fromMarkerIcon=null),"to"in t&&("string"==typeof t.to&&t.to?(await Rs(this._maplibreMap,t.to),this._toMarkerIcon=t.to):this._toMarkerIcon=null),"stops"in t)if(U(t.stops)){const e=t.stops.filter((t=>!!t));e.length&&await Promise.all(e.map((t=>Rs(this._maplibreMap,t)))),this._stopMarkerIcons=t.stops}else this._stopMarkerIcons=[null]}setMarkerIconSize(t){return this._markerIconSize=t,this}setIndoorLineColor(t){return Object.assign(this._paintProperties,{indoor_line_color:t}),this}setOutdoorLineColor(t){return Object.assign(this._paintProperties,{outdoor_line_color:t}),this}setDashedLineColor(t){return Object.assign(this._paintProperties,{dashed_line_color:t}),this}setBusLineColor(t){return Object.assign(this._paintProperties,{bus_line_color:t}),this}render(t,e){const{instructions:i,points:{coordinates:n}}=t,{lineFeatures:r,connectorFeatures:o,dashedLineFeatures:s,markerFeatures:a}=this._classifyFeatures(i,n,e);this._renderSolidLines(r),this._renderDashedLines(s),this._renderConnectors(o),this._renderMarkers(a)}remove(){qs.forEach((t=>{this._maplibreMap.getLayer(t)&&this._maplibreMap.removeLayer(t)})),Ks.forEach((t=>{this._maplibreMap.getSource(t)&&this._maplibreMap.removeSource(t)}))}setFilterByVenue(t,e){const i=["case",["any",["all",["==",["get","ordinal"],e??""],["==",["get","venue_id"],t??""]],["all",["==",["get","ordinal"],""],["==",["get","venue_id"],""]]],1,.5];qs.forEach((t=>{this._maplibreMap.getLayer(t)&&this._maplibreMap.setPaintProperty(t,t.includes("line")?"line-opacity":"icon-opacity",i)}))}setFilterByBuilding(t,e){const i=["case",["any",["all",["==",["get","ordinal"],e??""],["==",["get","building_id"],t??""]],["all",["==",["get","ordinal"],""],["==",["get","building_id"],""]]],1,.5];qs.forEach((t=>{this._maplibreMap.getLayer(t)&&this._maplibreMap.setPaintProperty(t,t.includes("line")?"line-opacity":"icon-opacity",i)}))}_classifyFeatures(t,e,i){const n=[],r=[],o=[],s=[],a=[];gs(t,((i,o)=>{const{venue_id:s,building_id:l,floor_id:c,ordinal:u,sign:d,type:h,interval:[p,_]}=i;if(function(t){return 5===t}(d))a.push(i);else if(function(t){return 100===t||-100===t}(d)){0!==o&&o!==t.length-1&&r.push(this._createIconFeature(e[p],{...ta({venue_id:s,building_id:l,floor_id:c,ordinal:u}),icon:h}));const i=t[o+1];if(i){const{venue_id:t,building_id:n,floor_id:o,ordinal:s}=i;r.push(this._createIconFeature(e[_],{...ta({venue_id:t,building_id:n,floor_id:o,ordinal:s}),icon:h}))}}else n.push(this._createLineFeature(e.slice(p,_+1),ta({venue_id:s,building_id:l,floor_id:c,ordinal:u,isShuttleBus:ea(d)?1:0})))}));const l=t[0],{venue_id:c,building_id:u,floor_id:d,ordinal:h}=l,p=t[t.length-1],{venue_id:_,building_id:f,floor_id:g,ordinal:m}=p,y=e[0],v=e[e.length-1],b=i[0],w=i[i.length-1],L=i.slice(1,i.length-1);return b&&o.push(this._createLineFeature([b,y],ta({venue_id:c,building_id:u,floor_id:d,ordinal:h}))),w&&o.push(this._createLineFeature([v,w],ta({venue_id:_,building_id:f,floor_id:g,ordinal:m}))),a.length&&L.length&&a.forEach((({venue_id:t,building_id:i,floor_id:n,ordinal:r,interval:[a]},l)=>{o.push(this._createLineFeature([e[a],L[l]],ta({venue_id:t,building_id:i,floor_id:n,ordinal:r}))),s.push(this._createIconFeature(L[l],{...ta({venue_id:t,building_id:i,floor_id:n,ordinal:r}),icon:this._stopMarkerIcons[l]??this._stopMarkerIcons[this._stopMarkerIcons.length-1],iconSize:this._markerIconSize}))})),s.push(this._createIconFeature(b??y,{...ta({venue_id:c,building_id:u,floor_id:d,ordinal:h}),icon:this._fromMarkerIcon,iconSize:this._markerIconSize})),s.push(this._createIconFeature(w??v,{...ta({venue_id:_,building_id:f,floor_id:g,ordinal:m}),icon:this._toMarkerIcon,iconSize:this._markerIconSize})),{lineFeatures:n,connectorFeatures:r,dashedLineFeatures:o,markerFeatures:s}}_createLineFeature(t,e){return{type:"Feature",geometry:{type:"LineString",coordinates:t},properties:e}}_createIconFeature(t,e){return{type:"Feature",geometry:{type:"Point",coordinates:t},properties:e}}_renderSolidLines(t){this._addCollectionSource(Ws,t),this._addLineLayer(Ws,Ds,{"line-color":["case",["==",["get","isShuttleBus"],"1"],this._paintProperties.bus_line_color,["==",["get","floor_id"],""],this._paintProperties.outdoor_line_color,this._paintProperties.indoor_line_color]}),this._addTriangleLayer(Ws,Zs)}_renderDashedLines(t){this._addCollectionSource(zs,t),this._addLineLayer(zs,Gs,{"line-color":this._paintProperties.dashed_line_color,"line-dasharray":[.1,1.8]})}_renderConnectors(t){this._addCollectionSource(Ys,t),this._addIconLayer(Ys,Xs)}_renderMarkers(t){this._addCollectionSource(Js,t),this._addIconLayer(Js,Us,{"icon-anchor":"bottom"})}_addCollectionSource(t,e){this._maplibreMap.addSource(t,{type:"geojson",data:{type:"FeatureCollection",features:e}})}_addLineLayer(t,e,i){this._maplibreMap.addLayer({id:e,type:"line",source:t,layout:{"line-join":"round","line-cap":"round"},paint:{"line-width":4,...i||{}}})}_addTriangleLayer(t,e){this._maplibreMap.addLayer({id:e,type:"symbol",source:t,layout:{"symbol-placement":"line","symbol-spacing":1,"icon-size":.25,"icon-image":"east-blue-arrow-01"}})}_addIconLayer(t,e,i){this._maplibreMap.addLayer({id:e,type:"symbol",source:t,layout:{"icon-image":["get","icon"],"icon-size":["case",["has","iconSize"],["get","iconSize"],1],...i||{}}})}}function ta(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>[t,String(e??"")])))}function ea(t){return bs(t,104,108)}var ia=exports;for(var na in n)ia[na]=n[na];n.__esModule&&Object.defineProperty(ia,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var t={109:(t,e,i)=>{i.d(e,{KL:()=>s,R0:()=>n,e$:()=>o,hl:()=>r});const n="https://map-api.mapxus.co.jp/sc/api/v1/apikeys/auth",r="https://map-api.mapxus.co.jp/bms",o=10,s=1},861:(t,e,i)=>{var n,r,o,s,a,l;i.d(e,{Kp:()=>s,MA:()=>n,LJ:()=>a,ys:()=>r,SV:()=>o,$O:()=>l}),function(t){t[t.SWITCHED_BY_BUILDING=0]="SWITCHED_BY_BUILDING",t[t.SWITCHED_BY_VENUE=1]="SWITCHED_BY_VENUE"}(n||(n={})),function(t){t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.JAPANESE="ja",t.KOREAN="ko"}(r||(r={})),function(t){t.CHRISTMAS="christmas",t.HALLOWEEN="halloween",t.MAPPY_BEE="mappyBee",t.MAPXUS="mapxus",t.LANDS_D="landsD",t.COMMON="common",t.MAPXUS_V2="mapxus_v2"}(o||(o={})),function(t){t.POINT="Point",t.POLYGON="Polygon",t.GATE="Gate"}(s||(s={})),function(t){t.DEFAULT_NAME="DefaultName"}(a||(a={})),function(t){t.FOOT="foot",t.WHEELCHAIR="wheelchair",t.ESCALATOR="escalator",t.EMERGENCY="emergency"}(l||(l={}))},776:(t,e,i)=>{function n(t,e,i){i[t]&&-1!==i[t].indexOf(e)||(i[t]=i[t]||[],i[t].push(e))}function r(t,e,i){if(i&&i[t]){const n=i[t].indexOf(e);-1!==n&&i[t].splice(n,1)}}function o(t,...e){for(const i of e)for(const e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}i.d(e,{Jh:()=>s,a$:()=>l});class s{_type;_target;constructor(t,e={}){o(this,e),this.type=t}get type(){return this._type}set type(t){this._type=t}get target(){return this._target}set target(t){this._target=t}}class a extends s{error;constructor(t,e={}){super("error",o({error:t},e))}}class l{_listeners;_oneTimeListeners;_eventedParent;_eventedParentData;on(t,e){return this._listeners=this._listeners||{},n(t,e,this._listeners),this}off(t,e){return r(t,e,this._listeners),r(t,e,this._oneTimeListeners),this}once(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},n(t,e,this._oneTimeListeners),this}fire(t){"string"==typeof t&&(t=new s(t,arguments[1]||{}));const e=t.type;if(this.listens(e)){t.target=this;const i=this._listeners&&this._listeners[e]?this._listeners[e].slice():[];for(const e of i)e.call(this,t);const n=this._oneTimeListeners&&this._oneTimeListeners[e]?this._oneTimeListeners[e].slice():[];for(const i of n)r(e,i,this._oneTimeListeners),i.call(this,t);const s=this._eventedParent;s&&(o(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),s.fire(t))}else t instanceof a&&console.error(t.error);return this}listens(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}}},556:(t,e,i)=>{i.d(e,{Evented:()=>s.a$,OFFSET:()=>r.e$,PAGE:()=>r.KL,VERSION:()=>l,convertBrowserLangToPresetLang:()=>o.y,version:()=>a});const n="7.10.0";var r=i(109),o=i(666),s=i(776);const a=n,l=n},666:(t,e,i)=>{i.d(e,{E:()=>r,y:()=>o});var n=i(861);function r(t,e){return t.map((({id:t})=>({layerId:t,languages:["coalesce",["get",`name:${e}`],["get","name"]]})))}function o(t){return function(t){return/^en(-(US|GB|AU))?$/.test(t)}(t)?n.ys.ENGLISH:function(t){return/^zh(-(Hans|CN))?$/.test(t)}(t)?n.ys.CHINESE_SIMPLIFIED:function(t){return/^zh-(Hant|HK|TW)?$/.test(t)}(t)?n.ys.CHINESE_TRADITIONAL:function(t){return/^ja(-JP)?$/.test(t)}(t)?n.ys.JAPANESE:function(t){return/^ko(-KR)?$/.test(t)}(t)?n.ys.KOREAN:null}}},e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};i.r(n),i.d(n,{BuildingFilterControl:()=>ps,BuildingSelectorHandler:()=>Vs,BuildingsService:()=>po,DistanceSearchType:()=>r.Kp,Evented:()=>vr.Evented,FloorSelectorHandler:()=>As,FloorSwitchMode:()=>r.MA,FloorsControl:()=>ws,Indoor:()=>ls,Map:()=>Ts,Marker:()=>Ns,OFFSET:()=>vr.OFFSET,PAGE:()=>vr.PAGE,Poi:()=>cs,PoisOrderBy:()=>r.LJ,PoisService:()=>fo,PresetLanguage:()=>r.ys,RoutePainter:()=>Qs,RouteService:()=>mo,SwitchBuildingHandler:()=>Os,SwitchOutdoorHandler:()=>js,ThemeType:()=>r.SV,VERSION:()=>vr.VERSION,VehicleType:()=>r.$O,VenuesService:()=>uo,convertBrowserLangToPresetLang:()=>vr.convertBrowserLangToPresetLang,version:()=>vr.version});var r=i(861);function o(t){return t.layers.filter(s)}function s(t){return t.source===l}function a(t){return t.source!==l}const l="indoor-planet";const c="object"==typeof global&&global&&global.Object===Object&&global;var u="object"==typeof self&&self&&self.Object===Object&&self;const d=c||u||Function("return this")();const h=d.Symbol;var p=Object.prototype,_=p.hasOwnProperty,f=p.toString,g=h?h.toStringTag:void 0;const m=function(t){var e=_.call(t,g),i=t[g];try{t[g]=void 0;var n=!0}catch(t){}var r=f.call(t);return n&&(e?t[g]=i:delete t[g]),r};var y=Object.prototype.toString;const v=function(t){return y.call(t)};var b=h?h.toStringTag:void 0;const w=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":b&&b in Object(t)?m(t):v(t)};const L=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const B=function(t){if(!L(t))return!1;var e=w(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const S=d["__core-js_shared__"];var I,x=(I=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";const M=function(t){return!!x&&x in t};var F=Function.prototype.toString;const k=function(t){if(null!=t){try{return F.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var C=/^\[object .+?Constructor\]$/,P=Function.prototype,$=Object.prototype,E=P.toString,j=$.hasOwnProperty,O=RegExp("^"+E.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const V=function(t){return!(!L(t)||M(t))&&(B(t)?O:C).test(k(t))};const A=function(t,e){return null==t?void 0:t[e]};const T=function(t,e){var i=A(t,e);return V(i)?i:void 0};const R=function(){try{var t=T(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const N=function(t,e,i){"__proto__"==e&&R?R(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i};const H=function(t){return function(e,i,n){for(var r=-1,o=Object(e),s=n(e),a=s.length;a--;){var l=s[t?a:++r];if(!1===i(o[l],l,o))break}return e}};const W=H();const D=function(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n};const Z=function(t){return null!=t&&"object"==typeof t};const z=function(t){return Z(t)&&"[object Arguments]"==w(t)};var G=Object.prototype,Y=G.hasOwnProperty,X=G.propertyIsEnumerable;const J=z(function(){return arguments}())?z:function(t){return Z(t)&&Y.call(t,"callee")&&!X.call(t,"callee")};const U=Array.isArray;const q=function(){return!1};var K="object"==typeof exports&&exports&&!exports.nodeType&&exports,Q=K&&"object"==typeof module&&module&&!module.nodeType&&module,tt=Q&&Q.exports===K?d.Buffer:void 0;const et=(tt?tt.isBuffer:void 0)||q;var it=/^(?:0|[1-9]\d*)$/;const nt=function(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&it.test(t))&&t>-1&&t%1==0&&t<e};const rt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ot={};ot["[object Float32Array]"]=ot["[object Float64Array]"]=ot["[object Int8Array]"]=ot["[object Int16Array]"]=ot["[object Int32Array]"]=ot["[object Uint8Array]"]=ot["[object Uint8ClampedArray]"]=ot["[object Uint16Array]"]=ot["[object Uint32Array]"]=!0,ot["[object Arguments]"]=ot["[object Array]"]=ot["[object ArrayBuffer]"]=ot["[object Boolean]"]=ot["[object DataView]"]=ot["[object Date]"]=ot["[object Error]"]=ot["[object Function]"]=ot["[object Map]"]=ot["[object Number]"]=ot["[object Object]"]=ot["[object RegExp]"]=ot["[object Set]"]=ot["[object String]"]=ot["[object WeakMap]"]=!1;const st=function(t){return Z(t)&&rt(t.length)&&!!ot[w(t)]};const at=function(t){return function(e){return t(e)}};var lt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ct=lt&&"object"==typeof module&&module&&!module.nodeType&&module,ut=ct&&ct.exports===lt&&c.process,dt=function(){try{var t=ct&&ct.require&&ct.require("util").types;return t||ut&&ut.binding&&ut.binding("util")}catch(t){}}();var ht=dt&&dt.isTypedArray;const pt=ht?at(ht):st;var _t=Object.prototype.hasOwnProperty;const ft=function(t,e){var i=U(t),n=!i&&J(t),r=!i&&!n&&et(t),o=!i&&!n&&!r&&pt(t),s=i||n||r||o,a=s?D(t.length,String):[],l=a.length;for(var c in t)!e&&!_t.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||nt(c,l))||a.push(c);return a};var gt=Object.prototype;const mt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||gt)};const yt=function(t,e){return function(i){return t(e(i))}};const vt=yt(Object.keys,Object);var bt=Object.prototype.hasOwnProperty;const wt=function(t){if(!mt(t))return vt(t);var e=[];for(var i in Object(t))bt.call(t,i)&&"constructor"!=i&&e.push(i);return e};const Lt=function(t){return null!=t&&rt(t.length)&&!B(t)};const Bt=function(t){return Lt(t)?ft(t):wt(t)};const St=function(t,e){return t&&W(t,e,Bt)};const It=function(){this.__data__=[],this.size=0};const xt=function(t,e){return t===e||t!=t&&e!=e};const Mt=function(t,e){for(var i=t.length;i--;)if(xt(t[i][0],e))return i;return-1};var Ft=Array.prototype.splice;const kt=function(t){var e=this.__data__,i=Mt(e,t);return!(i<0)&&(i==e.length-1?e.pop():Ft.call(e,i,1),--this.size,!0)};const Ct=function(t){var e=this.__data__,i=Mt(e,t);return i<0?void 0:e[i][1]};const Pt=function(t){return Mt(this.__data__,t)>-1};const $t=function(t,e){var i=this.__data__,n=Mt(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this};function Et(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}Et.prototype.clear=It,Et.prototype.delete=kt,Et.prototype.get=Ct,Et.prototype.has=Pt,Et.prototype.set=$t;const jt=Et;const Ot=function(){this.__data__=new jt,this.size=0};const Vt=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i};const At=function(t){return this.__data__.get(t)};const Tt=function(t){return this.__data__.has(t)};const Rt=T(d,"Map");const Nt=T(Object,"create");const Ht=function(){this.__data__=Nt?Nt(null):{},this.size=0};const Wt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Dt=Object.prototype.hasOwnProperty;const Zt=function(t){var e=this.__data__;if(Nt){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return Dt.call(e,t)?e[t]:void 0};var zt=Object.prototype.hasOwnProperty;const Gt=function(t){var e=this.__data__;return Nt?void 0!==e[t]:zt.call(e,t)};const Yt=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Nt&&void 0===e?"__lodash_hash_undefined__":e,this};function Xt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}Xt.prototype.clear=Ht,Xt.prototype.delete=Wt,Xt.prototype.get=Zt,Xt.prototype.has=Gt,Xt.prototype.set=Yt;const Jt=Xt;const Ut=function(){this.size=0,this.__data__={hash:new Jt,map:new(Rt||jt),string:new Jt}};const qt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Kt=function(t,e){var i=t.__data__;return qt(e)?i["string"==typeof e?"string":"hash"]:i.map};const Qt=function(t){var e=Kt(this,t).delete(t);return this.size-=e?1:0,e};const te=function(t){return Kt(this,t).get(t)};const ee=function(t){return Kt(this,t).has(t)};const ie=function(t,e){var i=Kt(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this};function ne(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}ne.prototype.clear=Ut,ne.prototype.delete=Qt,ne.prototype.get=te,ne.prototype.has=ee,ne.prototype.set=ie;const re=ne;const oe=function(t,e){var i=this.__data__;if(i instanceof jt){var n=i.__data__;if(!Rt||n.length<199)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new re(n)}return i.set(t,e),this.size=i.size,this};function se(t){var e=this.__data__=new jt(t);this.size=e.size}se.prototype.clear=Ot,se.prototype.delete=Vt,se.prototype.get=At,se.prototype.has=Tt,se.prototype.set=oe;const ae=se;const le=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const ce=function(t){return this.__data__.has(t)};function ue(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new re;++e<i;)this.add(t[e])}ue.prototype.add=ue.prototype.push=le,ue.prototype.has=ce;const de=ue;const he=function(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(e(t[i],i,t))return!0;return!1};const pe=function(t,e){return t.has(e)};const _e=function(t,e,i,n,r,o){var s=1&i,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(t),u=o.get(e);if(c&&u)return c==e&&u==t;var d=-1,h=!0,p=2&i?new de:void 0;for(o.set(t,e),o.set(e,t);++d<a;){var _=t[d],f=e[d];if(n)var g=s?n(f,_,d,e,t,o):n(_,f,d,t,e,o);if(void 0!==g){if(g)continue;h=!1;break}if(p){if(!he(e,(function(t,e){if(!pe(p,e)&&(_===t||r(_,t,i,n,o)))return p.push(e)}))){h=!1;break}}else if(_!==f&&!r(_,f,i,n,o)){h=!1;break}}return o.delete(t),o.delete(e),h};const fe=d.Uint8Array;const ge=function(t){var e=-1,i=Array(t.size);return t.forEach((function(t,n){i[++e]=[n,t]})),i};const me=function(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=t})),i};var ye=h?h.prototype:void 0,ve=ye?ye.valueOf:void 0;const be=function(t,e,i,n,r,o,s){switch(i){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new fe(t),new fe(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=ge;case"[object Set]":var l=1&n;if(a||(a=me),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;n|=2,s.set(t,e);var u=_e(a(t),a(e),n,r,o,s);return s.delete(t),u;case"[object Symbol]":if(ve)return ve.call(t)==ve.call(e)}return!1};const we=function(t,e){for(var i=-1,n=e.length,r=t.length;++i<n;)t[r+i]=e[i];return t};const Le=function(t,e,i){var n=e(t);return U(t)?n:we(n,i(t))};const Be=function(t,e){for(var i=-1,n=null==t?0:t.length,r=0,o=[];++i<n;){var s=t[i];e(s,i,t)&&(o[r++]=s)}return o};const Se=function(){return[]};var Ie=Object.prototype.propertyIsEnumerable,xe=Object.getOwnPropertySymbols;const Me=xe?function(t){return null==t?[]:(t=Object(t),Be(xe(t),(function(e){return Ie.call(t,e)})))}:Se;const Fe=function(t){return Le(t,Bt,Me)};var ke=Object.prototype.hasOwnProperty;const Ce=function(t,e,i,n,r,o){var s=1&i,a=Fe(t),l=a.length;if(l!=Fe(e).length&&!s)return!1;for(var c=l;c--;){var u=a[c];if(!(s?u in e:ke.call(e,u)))return!1}var d=o.get(t),h=o.get(e);if(d&&h)return d==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var _=s;++c<l;){var f=t[u=a[c]],g=e[u];if(n)var m=s?n(g,f,u,e,t,o):n(f,g,u,t,e,o);if(!(void 0===m?f===g||r(f,g,i,n,o):m)){p=!1;break}_||(_="constructor"==u)}if(p&&!_){var y=t.constructor,v=e.constructor;y==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return o.delete(t),o.delete(e),p};const Pe=T(d,"DataView");const $e=T(d,"Promise");const Ee=T(d,"Set");const je=T(d,"WeakMap");var Oe="[object Map]",Ve="[object Promise]",Ae="[object Set]",Te="[object WeakMap]",Re="[object DataView]",Ne=k(Pe),He=k(Rt),We=k($e),De=k(Ee),Ze=k(je),ze=w;(Pe&&ze(new Pe(new ArrayBuffer(1)))!=Re||Rt&&ze(new Rt)!=Oe||$e&&ze($e.resolve())!=Ve||Ee&&ze(new Ee)!=Ae||je&&ze(new je)!=Te)&&(ze=function(t){var e=w(t),i="[object Object]"==e?t.constructor:void 0,n=i?k(i):"";if(n)switch(n){case Ne:return Re;case He:return Oe;case We:return Ve;case De:return Ae;case Ze:return Te}return e});const Ge=ze;var Ye="[object Arguments]",Xe="[object Array]",Je="[object Object]",Ue=Object.prototype.hasOwnProperty;const qe=function(t,e,i,n,r,o){var s=U(t),a=U(e),l=s?Xe:Ge(t),c=a?Xe:Ge(e),u=(l=l==Ye?Je:l)==Je,d=(c=c==Ye?Je:c)==Je,h=l==c;if(h&&et(t)){if(!et(e))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new ae),s||pt(t)?_e(t,e,i,n,r,o):be(t,e,l,i,n,r,o);if(!(1&i)){var p=u&&Ue.call(t,"__wrapped__"),_=d&&Ue.call(e,"__wrapped__");if(p||_){var f=p?t.value():t,g=_?e.value():e;return o||(o=new ae),r(f,g,i,n,o)}}return!!h&&(o||(o=new ae),Ce(t,e,i,n,r,o))};const Ke=function t(e,i,n,r,o){return e===i||(null==e||null==i||!Z(e)&&!Z(i)?e!=e&&i!=i:qe(e,i,n,r,t,o))};const Qe=function(t,e,i,n){var r=i.length,o=r,s=!n;if(null==t)return!o;for(t=Object(t);r--;){var a=i[r];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++r<o;){var l=(a=i[r])[0],c=t[l],u=a[1];if(s&&a[2]){if(void 0===c&&!(l in t))return!1}else{var d=new ae;if(n)var h=n(c,u,l,t,e,d);if(!(void 0===h?Ke(u,c,3,n,d):h))return!1}}return!0};const ti=function(t){return t==t&&!L(t)};const ei=function(t){for(var e=Bt(t),i=e.length;i--;){var n=e[i],r=t[n];e[i]=[n,r,ti(r)]}return e};const ii=function(t,e){return function(i){return null!=i&&(i[t]===e&&(void 0!==e||t in Object(i)))}};const ni=function(t){var e=ei(t);return 1==e.length&&e[0][2]?ii(e[0][0],e[0][1]):function(i){return i===t||Qe(i,t,e)}};const ri=function(t){return"symbol"==typeof t||Z(t)&&"[object Symbol]"==w(t)};var oi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,si=/^\w*$/;const ai=function(t,e){if(U(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!ri(t))||(si.test(t)||!oi.test(t)||null!=e&&t in Object(e))};function li(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=t.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new(li.Cache||re),i}li.Cache=re;const ci=li;var ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,di=/\\(\\)?/g;const hi=function(t){var e=ci(t,(function(t){return 500===i.size&&i.clear(),t})),i=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ui,(function(t,i,n,r){e.push(n?r.replace(di,"$1"):i||t)})),e}));const pi=function(t,e){for(var i=-1,n=null==t?0:t.length,r=Array(n);++i<n;)r[i]=e(t[i],i,t);return r};var _i=h?h.prototype:void 0,fi=_i?_i.toString:void 0;const gi=function t(e){if("string"==typeof e)return e;if(U(e))return pi(e,t)+"";if(ri(e))return fi?fi.call(e):"";var i=e+"";return"0"==i&&1/e==-1/0?"-0":i};const mi=function(t){return null==t?"":gi(t)};const yi=function(t,e){return U(t)?t:ai(t,e)?[t]:hi(mi(t))};const vi=function(t){if("string"==typeof t||ri(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e};const bi=function(t,e){for(var i=0,n=(e=yi(e,t)).length;null!=t&&i<n;)t=t[vi(e[i++])];return i&&i==n?t:void 0};const wi=function(t,e,i){var n=null==t?void 0:bi(t,e);return void 0===n?i:n};const Li=function(t,e){return null!=t&&e in Object(t)};const Bi=function(t,e,i){for(var n=-1,r=(e=yi(e,t)).length,o=!1;++n<r;){var s=vi(e[n]);if(!(o=null!=t&&i(t,s)))break;t=t[s]}return o||++n!=r?o:!!(r=null==t?0:t.length)&&rt(r)&&nt(s,r)&&(U(t)||J(t))};const Si=function(t,e){return null!=t&&Bi(t,e,Li)};const Ii=function(t,e){return ai(t)&&ti(e)?ii(vi(t),e):function(i){var n=wi(i,t);return void 0===n&&n===e?Si(i,t):Ke(e,n,3)}};const xi=function(t){return t};const Mi=function(t){return function(e){return null==e?void 0:e[t]}};const Fi=function(t){return function(e){return bi(e,t)}};const ki=function(t){return ai(t)?Mi(vi(t)):Fi(t)};const Ci=function(t){return"function"==typeof t?t:null==t?xi:"object"==typeof t?U(t)?Ii(t[0],t[1]):ni(t):ki(t)};const Pi=function(t,e){var i={};return e=Ci(e,3),St(t,(function(t,n,r){N(i,e(t,n,r),t)})),i};const $i=function(t,e,i,n){var r=-1,o=null==t?0:t.length;for(n&&o&&(i=t[++r]);++r<o;)i=e(i,t[r],r,t);return i};const Ei=function(t,e){return function(i,n){if(null==i)return i;if(!Lt(i))return t(i,n);for(var r=i.length,o=e?r:-1,s=Object(i);(e?o--:++o<r)&&!1!==n(s[o],o,s););return i}};const ji=Ei(St);const Oi=function(t,e,i,n,r){return r(t,(function(t,r,o){i=n?(n=!1,t):e(i,t,r,o)})),i};const Vi=function(t,e,i){var n=U(t)?$i:Oi,r=arguments.length<3;return n(t,Ci(e,4),i,r,ji)};function Ai(t){const{buildingId:e,labelCenter:{lat:i,lon:n},floors:r,name:o,venueId:s,defaultFloor:a}=t,l=Pi(o,((t,e)=>"default"===e?"name":`name:${e}`)),{codes:c,ids:u,ordinals:d}=r.reduce(((t,e)=>{const{id:i,code:n,ordinal:r}=e;return{codes:t.codes?`${t.codes},${n}`:n,ids:t.ids?`${t.ids},${i}`:i,ordinals:`${t.ordinals}`?`${t.ordinals},${r}`:`${r}`}}),{codes:"",ids:"",ordinals:""});return{layer:{id:"mapxus-building-line"},properties:{building:"yes",id:e,label_center:`${n},${i}`,level_ids:u,level_names:c,ordinals:d,"ref:venue":s,...l,...a?{default_displayed_floor:a}:{}},source:"indoor-planet",sourceLayer:"mapxus_building"}}var Ti=i(776);var Ri=function(){return Ri=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ri.apply(this,arguments)};function Ni(t,e,i,n){return new(i||(i=Promise))((function(r,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))}function Hi(t,e){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){s.label=a[1];break}if(6===a[0]&&s.label<r[1]){s.label=r[1],r=a;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(a);break}r[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}Object.create;function Wi(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var Di="4.4.3";function Zi(t,e){return new Promise((function(i){return setTimeout(i,t,e)}))}function zi(t){return!!t&&"function"==typeof t.then}function Gi(t,e){try{var i=t();zi(i)?i.then((function(t){return e(!0,t)}),(function(t){return e(!1,t)})):e(!0,i)}catch(t){e(!1,t)}}function Yi(t,e,i){return void 0===i&&(i=16),Ni(this,void 0,void 0,(function(){var n,r,o,s;return Hi(this,(function(a){switch(a.label){case 0:n=Array(t.length),r=Date.now(),o=0,a.label=1;case 1:return o<t.length?(n[o]=e(t[o],o),(s=Date.now())>=r+i?(r=s,[4,new Promise((function(t){var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++o,[3,1];case 4:return[2,n]}}))}))}function Xi(t){return t.then(void 0,(function(){})),t}function Ji(t){return parseInt(t)}function Ui(t){return parseFloat(t)}function qi(t,e){return"number"==typeof t&&isNaN(t)?e:t}function Ki(t){return t.reduce((function(t,e){return t+(e?1:0)}),0)}function Qi(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var i=1/e;return Math.round(t*i)/i}function tn(t,e){var i=t[0]>>>16,n=65535&t[0],r=t[1]>>>16,o=65535&t[1],s=e[0]>>>16,a=65535&e[0],l=e[1]>>>16,c=0,u=0,d=0,h=0;d+=(h+=o+(65535&e[1]))>>>16,h&=65535,u+=(d+=r+l)>>>16,d&=65535,c+=(u+=n+a)>>>16,u&=65535,c+=i+s,c&=65535,t[0]=c<<16|u,t[1]=d<<16|h}function en(t,e){var i=t[0]>>>16,n=65535&t[0],r=t[1]>>>16,o=65535&t[1],s=e[0]>>>16,a=65535&e[0],l=e[1]>>>16,c=65535&e[1],u=0,d=0,h=0,p=0;h+=(p+=o*c)>>>16,p&=65535,d+=(h+=r*c)>>>16,h&=65535,d+=(h+=o*l)>>>16,h&=65535,u+=(d+=n*c)>>>16,d&=65535,u+=(d+=r*l)>>>16,d&=65535,u+=(d+=o*a)>>>16,d&=65535,u+=i*c+n*l+r*a+o*s,u&=65535,t[0]=u<<16|d,t[1]=h<<16|p}function nn(t,e){var i=t[0];32===(e%=64)?(t[0]=t[1],t[1]=i):e<32?(t[0]=i<<e|t[1]>>>32-e,t[1]=t[1]<<e|i>>>32-e):(e-=32,t[0]=t[1]<<e|i>>>32-e,t[1]=i<<e|t[1]>>>32-e)}function rn(t,e){0!==(e%=64)&&(e<32?(t[0]=t[1]>>>32-e,t[1]=t[1]<<e):(t[0]=t[1]<<e-32,t[1]=0))}function on(t,e){t[0]^=e[0],t[1]^=e[1]}var sn=[4283543511,3981806797],an=[3301882366,444984403];function ln(t){var e=[0,t[0]>>>1];on(t,e),en(t,sn),e[1]=t[0]>>>1,on(t,e),en(t,an),e[1]=t[0]>>>1,on(t,e)}var cn=[2277735313,289559509],un=[1291169091,658871167],dn=[0,5],hn=[0,1390208809],pn=[0,944331445];function _n(t,e){var i=function(t){for(var e=new Uint8Array(t.length),i=0;i<t.length;i++){var n=t.charCodeAt(i);if(n>127)return(new TextEncoder).encode(t);e[i]=n}return e}(t);e=e||0;var n,r=[0,i.length],o=r[1]%16,s=r[1]-o,a=[0,e],l=[0,e],c=[0,0],u=[0,0];for(n=0;n<s;n+=16)c[0]=i[n+4]|i[n+5]<<8|i[n+6]<<16|i[n+7]<<24,c[1]=i[n]|i[n+1]<<8|i[n+2]<<16|i[n+3]<<24,u[0]=i[n+12]|i[n+13]<<8|i[n+14]<<16|i[n+15]<<24,u[1]=i[n+8]|i[n+9]<<8|i[n+10]<<16|i[n+11]<<24,en(c,cn),nn(c,31),en(c,un),on(a,c),nn(a,27),tn(a,l),en(a,dn),tn(a,hn),en(u,un),nn(u,33),en(u,cn),on(l,u),nn(l,31),tn(l,a),en(l,dn),tn(l,pn);c[0]=0,c[1]=0,u[0]=0,u[1]=0;var d=[0,0];switch(o){case 15:d[1]=i[n+14],rn(d,48),on(u,d);case 14:d[1]=i[n+13],rn(d,40),on(u,d);case 13:d[1]=i[n+12],rn(d,32),on(u,d);case 12:d[1]=i[n+11],rn(d,24),on(u,d);case 11:d[1]=i[n+10],rn(d,16),on(u,d);case 10:d[1]=i[n+9],rn(d,8),on(u,d);case 9:d[1]=i[n+8],on(u,d),en(u,un),nn(u,33),en(u,cn),on(l,u);case 8:d[1]=i[n+7],rn(d,56),on(c,d);case 7:d[1]=i[n+6],rn(d,48),on(c,d);case 6:d[1]=i[n+5],rn(d,40),on(c,d);case 5:d[1]=i[n+4],rn(d,32),on(c,d);case 4:d[1]=i[n+3],rn(d,24),on(c,d);case 3:d[1]=i[n+2],rn(d,16),on(c,d);case 2:d[1]=i[n+1],rn(d,8),on(c,d);case 1:d[1]=i[n],on(c,d),en(c,cn),nn(c,31),en(c,un),on(a,c)}return on(a,r),on(l,r),tn(a,l),tn(l,a),ln(a),ln(l),tn(a,l),tn(l,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)}function fn(t){return"function"!=typeof t}function gn(t,e,i,n){var r=Object.keys(t).filter((function(t){return!function(t,e){for(var i=0,n=t.length;i<n;++i)if(t[i]===e)return!0;return!1}(i,t)})),o=Xi(Yi(r,(function(i){return function(t,e){var i=Xi(new Promise((function(i){var n=Date.now();Gi(t.bind(null,e),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Date.now()-n;if(!t[0])return i((function(){return{error:t[1],duration:r}}));var o=t[1];if(fn(o))return i((function(){return{value:o,duration:r}}));i((function(){return new Promise((function(t){var e=Date.now();Gi(o,(function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=r+Date.now()-e;if(!i[0])return t({error:i[1],duration:o});t({value:i[1],duration:o})}))}))}))}))})));return function(){return i.then((function(t){return t()}))}}(t[i],e)}),n));return function(){return Ni(this,void 0,void 0,(function(){var t,e,i,s;return Hi(this,(function(a){switch(a.label){case 0:return[4,o];case 1:return[4,Yi(a.sent(),(function(t){return Xi(t())}),n)];case 2:return t=a.sent(),[4,Promise.all(t)];case 3:for(e=a.sent(),i={},s=0;s<r.length;++s)i[r[s]]=e[s];return[2,i]}}))}))}}function mn(){var t=window,e=navigator;return Ki(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function yn(){var t=window,e=navigator;return Ki(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===e.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function vn(){var t=window,e=navigator;return Ki(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===e.vendor.indexOf("Apple"),"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function bn(){var t=window,e=t.HTMLElement,i=t.Document;return Ki(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),e&&!("autocapitalize"in e.prototype),i&&"pointerLockElement"in i.prototype])>=4}function wn(){var t,e=window;return t=e.print,!!/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))&&Ki(["[object WebPageNamespace]"===String(e.browser),"MicrodataExtractor"in e])>=1}function Ln(){var t,e,i=window;return Ki(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in i,"mozInnerScreenX"in i,"CSSMozDocumentRule"in i,"CanvasCaptureMediaStream"in i])>=4}function Bn(){var t=window,e=navigator,i=t.CSS,n=t.HTMLButtonElement;return Ki([!("getStorageUpdates"in e),n&&"popover"in n.prototype,"CSSCounterStyleRule"in t,i.supports("font-size-adjust: ex-height 0.5"),i.supports("text-transform: full-width")])>=4}function Sn(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function In(){var t=yn(),e=Ln(),i=window,n=navigator,r="connection";return t?Ki([!("SharedWorker"in i),n[r]&&"ontypechange"in n[r],!("sinkId"in new window.Audio)])>=2:!!e&&Ki(["onorientationchange"in i,"orientation"in i,/android/i.test(navigator.appVersion)])>=2}function xn(t){var e=new Error(t);return e.name=t,e}function Mn(t,e,i){var n,r,o;return void 0===i&&(i=50),Ni(this,void 0,void 0,(function(){var s,a;return Hi(this,(function(l){switch(l.label){case 0:s=document,l.label=1;case 1:return s.body?[3,3]:[4,Zi(i)];case 2:return l.sent(),[3,1];case 3:a=s.createElement("iframe"),l.label=4;case 4:return l.trys.push([4,,10,11]),[4,new Promise((function(t,i){var n=!1,r=function(){n=!0,t()};a.onload=r,a.onerror=function(t){n=!0,i(t)};var o=a.style;o.setProperty("display","block","important"),o.position="absolute",o.top="0",o.left="0",o.visibility="hidden",e&&"srcdoc"in a?a.srcdoc=e:a.src="about:blank",s.body.appendChild(a);var l=function(){var t,e;n||("complete"===(null===(e=null===(t=a.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?r():setTimeout(l,10))};l()}))];case 5:l.sent(),l.label=6;case 6:return(null===(r=null===(n=a.contentWindow)||void 0===n?void 0:n.document)||void 0===r?void 0:r.body)?[3,8]:[4,Zi(i)];case 7:return l.sent(),[3,6];case 8:return[4,t(a,a.contentWindow)];case 9:return[2,l.sent()];case 10:return null===(o=a.parentNode)||void 0===o||o.removeChild(a),[7];case 11:return[2]}}))}))}function Fn(t){for(var e=function(t){for(var e,i,n="Unexpected syntax '".concat(t,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(t),o=r[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,l=function(t,e){s[t]=s[t]||[],s[t].push(e)};;){var c=a.exec(r[2]);if(!c)break;var u=c[0];switch(u[0]){case".":l("class",u.slice(1));break;case"#":l("id",u.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(!d)throw new Error(n);l(d[1],null!==(i=null!==(e=d[4])&&void 0!==e?e:d[5])&&void 0!==i?i:"");break;default:throw new Error(n)}}return[o,s]}(t),i=e[0],n=e[1],r=document.createElement(null!=i?i:"div"),o=0,s=Object.keys(n);o<s.length;o++){var a=s[o],l=n[a].join(" ");"style"===a?kn(r.style,l):r.setAttribute(a,l)}return r}function kn(t,e){for(var i=0,n=e.split(";");i<n.length;i++){var r=n[i],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(r);if(o){var s=o[1],a=o[2],l=o[4];t.setProperty(s,a,l||"")}}}var Cn=["monospace","sans-serif","serif"],Pn=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function $n(t){return t.toDataURL()}var En,jn,On=2500;function Vn(){var t=this;return function(){if(void 0===jn){var t=function(){var e=An();Tn(e)?jn=setTimeout(t,On):(En=e,jn=void 0)};t()}}(),function(){return Ni(t,void 0,void 0,(function(){var t;return Hi(this,(function(e){switch(e.label){case 0:return Tn(t=An())?En?[2,Wi([],En,!0)]:(i=document).fullscreenElement||i.msFullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement?[4,Sn()]:[3,2]:[3,2];case 1:e.sent(),t=An(),e.label=2;case 2:return Tn(t)||(En=t),[2,t]}var i}))}))}}function An(){var t=screen;return[qi(Ui(t.availTop),null),qi(Ui(t.width)-Ui(t.availWidth)-qi(Ui(t.availLeft),0),null),qi(Ui(t.height)-Ui(t.availHeight)-qi(Ui(t.availTop),0),null),qi(Ui(t.availLeft),null)]}function Tn(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function Rn(t){var e;return Ni(this,void 0,void 0,(function(){var i,n,r,o,s,a,l;return Hi(this,(function(c){switch(c.label){case 0:for(i=document,n=i.createElement("div"),r=new Array(t.length),o={},Nn(n),l=0;l<t.length;++l)"DIALOG"===(s=Fn(t[l])).tagName&&s.show(),Nn(a=i.createElement("div")),a.appendChild(s),n.appendChild(a),r[l]=s;c.label=1;case 1:return i.body?[3,3]:[4,Zi(50)];case 2:return c.sent(),[3,1];case 3:i.body.appendChild(n);try{for(l=0;l<t.length;++l)r[l].offsetParent||(o[t[l]]=!0)}finally{null===(e=n.parentNode)||void 0===e||e.removeChild(n)}return[2,o]}}))}))}function Nn(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function Hn(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function Wn(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function Dn(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function Zn(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function zn(t){return matchMedia("(prefers-reduced-transparency: ".concat(t,")")).matches}function Gn(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var Yn=Math,Xn=function(){return 0};var Jn={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var Un=function(){for(var t=window;;){var e=t.parent;if(!e||e===t)return!1;try{if(e.location.origin!==t.location.origin)return!0}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return!0;throw t}t=e}};var qn=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Kn=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Qn=["FRAGMENT_SHADER","VERTEX_SHADER"],tr=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],er="WEBGL_debug_renderer_info";function ir(t){if(t.webgl)return t.webgl.context;var e,i=document.createElement("canvas");i.addEventListener("webglCreateContextError",(function(){return e=void 0}));for(var n=0,r=["webgl","experimental-webgl"];n<r.length;n++){var o=r[n];try{e=i.getContext(o)}catch(t){}if(e)break}return t.webgl={context:e},e}function nr(t,e,i){var n=t.getShaderPrecisionFormat(t[e],t[i]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}function rr(t){return Object.keys(t.__proto__).filter(or)}function or(t){return"string"==typeof t&&!t.match(/[^A-Z0-9_x]/)}function sr(){return Ln()}function ar(t){return"function"==typeof t.getParameter}var lr={fonts:function(){var t=this;return Mn((function(e,i){var n=i.document;return Ni(t,void 0,void 0,(function(){var t,e,i,r,o,s,a,l,c,u,d;return Hi(this,(function(h){for((t=n.body).style.fontSize="48px",(e=n.createElement("div")).style.setProperty("visibility","hidden","important"),i={},r={},o=function(t){var i=n.createElement("span"),r=i.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=t,i.textContent="mmMwWLliI0O&1",e.appendChild(i),i},s=function(t,e){return o("'".concat(t,"',").concat(e))},a=function(){for(var t={},e=function(e){t[e]=Cn.map((function(t){return s(e,t)}))},i=0,n=Pn;i<n.length;i++){e(n[i])}return t},l=function(t){return Cn.some((function(e,n){return t[n].offsetWidth!==i[e]||t[n].offsetHeight!==r[e]}))},c=function(){return Cn.map(o)}(),u=a(),t.appendChild(e),d=0;d<Cn.length;d++)i[Cn[d]]=c[d].offsetWidth,r[Cn[d]]=c[d].offsetHeight;return[2,Pn.filter((function(t){return l(u[t])}))]}))}))}))},domBlockers:function(t){var e=(void 0===t?{}:t).debug;return Ni(this,void 0,void 0,(function(){var t,i,n,r,o;return Hi(this,(function(s){switch(s.label){case 0:return vn()||In()?(a=atob,t={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',a("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",a("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",a("LnNwb25zb3JpdA=="),".ylamainos",a("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",a("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",a("LmhlYWRlci1ibG9ja2VkLWFk"),a("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",a("I2FkXzMwMFgyNTA="),a("I2Jhbm5lcmZsb2F0MjI="),a("I2NhbXBhaWduLWJhbm5lcg=="),a("I0FkLUNvbnRlbnQ=")],adGuardChinese:[a("LlppX2FkX2FfSA=="),a("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",a("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),a("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",a("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",a("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",a("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),a("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),a("LmFkZ29vZ2xl"),a("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[a("YW1wLWF1dG8tYWRz"),a("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",a("I2FkX2ludmlld19hcmVh")],adGuardRussian:[a("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),a("LnJlY2xhbWE="),'div[id^="smi2adblock"]',a("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[a("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),a("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",a("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),a("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),a("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",a("I3Jla2xhbWk="),a("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),a("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),a("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[a("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",a("LndpZGdldF9wb19hZHNfd2lkZ2V0"),a("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",a("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[a("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),a("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",a("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",a("I3Jla2xhbW5pLWJveA=="),a("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",a("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[a("I2FkdmVydGVudGll"),a("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",a("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",a("LnNwb25zb3JsaW5rZ3J1ZW4="),a("I3dlcmJ1bmdza3k="),a("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),a("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[a("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",a("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[a("LnJla2xhbW9zX3RhcnBhcw=="),a("LnJla2xhbW9zX251b3JvZG9z"),a("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),a("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),a("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[a("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[a("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),a("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",a("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[a("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),a("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),a("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",a("LmFkX19tYWlu"),a("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[a("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[a("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),a("I2xpdmVyZUFkV3JhcHBlcg=="),a("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),a("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[a("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",a("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),a("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),a("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[a("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),a("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),a("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",a("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),a("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),a("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),a("ZGl2I3NrYXBpZWNfYWQ=")],ro:[a("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),a("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[a("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),a("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),a("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",a("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),a("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",a("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},i=Object.keys(t),[4,Rn((o=[]).concat.apply(o,i.map((function(e){return t[e]}))))]):[2,void 0];case 1:return n=s.sent(),e&&function(t,e){for(var i="DOM blockers debug:\n```",n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];i+="\n".concat(o,":");for(var s=0,a=t[o];s<a.length;s++){var l=a[s];i+="\n ".concat(e[l]?"🚫":"➡️"," ").concat(l)}}console.log("".concat(i,"\n```"))}(t,n),(r=i.filter((function(e){var i=t[e];return Ki(i.map((function(t){return n[t]})))>.6*i.length}))).sort(),[2,r]}var a}))}))},fontPreferences:function(){return function(t,e){void 0===e&&(e=4e3);return Mn((function(i,n){var r=n.document,o=r.body,s=o.style;s.width="".concat(e,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",yn()?o.style.zoom="".concat(1/n.devicePixelRatio):vn()&&(o.style.zoom="reset");var a=r.createElement("div");return a.textContent=Wi([],Array(e/20|0),!0).map((function(){return"word"})).join(" "),o.appendChild(a),t(r,o)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(t,e){for(var i={},n={},r=0,o=Object.keys(Jn);r<o.length;r++){var s=o[r],a=Jn[s],l=a[0],c=void 0===l?{}:l,u=a[1],d=void 0===u?"mmMwWLliI0fiflO&1":u,h=t.createElement("span");h.textContent=d,h.style.whiteSpace="nowrap";for(var p=0,_=Object.keys(c);p<_.length;p++){var f=_[p],g=c[f];void 0!==g&&(h.style[f]=g)}i[s]=h,e.append(t.createElement("br"),h)}for(var m=0,y=Object.keys(Jn);m<y.length;m++){n[s=y[m]]=i[s].getBoundingClientRect().width}return n}))},audio:function(){return vn()&&Bn()&&wn()?-4:function(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(vn()&&!bn()&&!function(){var t=window;return Ki(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;var i=4500,n=new e(1,5e3,44100),r=n.createOscillator();r.type="triangle",r.frequency.value=1e4;var o=n.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,r.connect(o),o.connect(n.destination),r.start(0);var s=function(t){var e=3,i=500,n=500,r=5e3,o=function(){},s=new Promise((function(s,a){var l=!1,c=0,u=0;t.oncomplete=function(t){return s(t.renderedBuffer)};var d=function(){setTimeout((function(){return a(xn("timeout"))}),Math.min(n,u+r-Date.now()))},h=function(){try{var n=t.startRendering();switch(zi(n)&&Xi(n),t.state){case"running":u=Date.now(),l&&d();break;case"suspended":document.hidden||c++,l&&c>=e?a(xn("suspended")):setTimeout(h,i)}}catch(t){a(t)}};h(),o=function(){l||(l=!0,u>0&&d())}}));return[s,o]}(n),a=s[0],l=s[1],c=Xi(a.then((function(t){return function(t){for(var e=0,i=0;i<t.length;++i)e+=Math.abs(t[i]);return e}(t.getChannelData(0).subarray(i))}),(function(t){if("timeout"===t.name||"suspended"===t.name)return-3;throw t})));return function(){return l(),c}}()},screenFrame:function(){var t=this;if(vn()&&Bn()&&wn())return function(){return Promise.resolve(void 0)};var e=Vn();return function(){return Ni(t,void 0,void 0,(function(){var t,i;return Hi(this,(function(n){switch(n.label){case 0:return[4,e()];case 1:return t=n.sent(),[2,[(i=function(t){return null===t?null:Qi(t,10)})(t[0]),i(t[1]),i(t[2]),i(t[3])]]}}))}))}},canvas:function(){return function(t){var e,i,n,r=!1,o=function(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}(),s=o[0],a=o[1];!function(t,e){return!(!e||!t.toDataURL)}(s,a)?i=n="unsupported":(r=function(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}(a),t?i=n="skipped":(e=function(t,e){!function(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';var i="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(i,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(i,4,45)}(t,e);var i=$n(t),n=$n(t);if(i!==n)return["unstable","unstable"];!function(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var i=0,n=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];i<n.length;i++){var r=n[i],o=r[0],s=r[1],a=r[2];e.fillStyle=o,e.beginPath(),e.arc(s,a,40,0,2*Math.PI,!0),e.closePath(),e.fill()}e.fillStyle="#f9c",e.arc(60,60,60,0,2*Math.PI,!0),e.arc(60,60,20,0,2*Math.PI,!0),e.fill("evenodd")}(t,e);var r=$n(t);return[r,i]}(s,a),i=e[0],n=e[1]));return{winding:r,geometry:i,text:n}}(vn()&&Bn()&&wn())},osCpu:function(){return navigator.oscpu},languages:function(){var t,e=navigator,i=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==n&&i.push([n]),Array.isArray(e.languages))yn()&&Ki([!("MediaSettingsRange"in(t=window)),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3||i.push(e.languages);else if("string"==typeof e.languages){var r=e.languages;r&&i.push(r.split(","))}return i},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return qi(Ui(navigator.deviceMemory),void 0)},screenResolution:function(){var t,e,i;if(!(vn()&&Bn()&&wn()))return t=screen,(i=[(e=function(t){return qi(Ji(t),null)})(t.width),e(t.height)]).sort().reverse(),i},hardwareConcurrency:function(){return qi(Ji(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var i=(new e).resolvedOptions().timeZone;if(i)return i}var n,r=(n=(new Date).getFullYear(),-Math.max(Ui(new Date(n,0,1).getTimezoneOffset()),Ui(new Date(n,6,1).getTimezoneOffset())));return"UTC".concat(r>=0?"+":"").concat(r)},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){var t,e;if(!(mn()||(t=window,e=navigator,Ki(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!mn())))try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&vn()&&!bn()?function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return Ki(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){var t=navigator.plugins;if(t){for(var e=[],i=0;i<t.length;++i){var n=t[i];if(n){for(var r=[],o=0;o<n.length;++o){var s=n[o];r.push({type:s.type,suffixes:s.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:r})}}return e}},touchSupport:function(){var t,e=navigator,i=0;void 0!==e.maxTouchPoints?i=Ji(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(i=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return{maxTouchPoints:i,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var t=[],e=0,i=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<i.length;e++){var n=i[e],r=window[n];r&&"object"==typeof r&&t.push(n)}return t.sort()},cookiesEnabled:function(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var e=-1!==t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}},colorGamut:function(){for(var t=0,e=["rec2020","p3","srgb"];t<e.length;t++){var i=e[t];if(matchMedia("(color-gamut: ".concat(i,")")).matches)return i}},invertedColors:function(){return!!Hn("inverted")||!Hn("none")&&void 0},forcedColors:function(){return!!Wn("active")||!Wn("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=100;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw new Error("Too high value")}},contrast:function(){return Dn("no-preference")?0:Dn("high")||Dn("more")?1:Dn("low")||Dn("less")?-1:Dn("forced")?10:void 0},reducedMotion:function(){return!!Zn("reduce")||!Zn("no-preference")&&void 0},reducedTransparency:function(){return!!zn("reduce")||!zn("no-preference")&&void 0},hdr:function(){return!!Gn("high")||!Gn("standard")&&void 0},math:function(){var t,e=Yn.acos||Xn,i=Yn.acosh||Xn,n=Yn.asin||Xn,r=Yn.asinh||Xn,o=Yn.atanh||Xn,s=Yn.atan||Xn,a=Yn.sin||Xn,l=Yn.sinh||Xn,c=Yn.cos||Xn,u=Yn.cosh||Xn,d=Yn.tan||Xn,h=Yn.tanh||Xn,p=Yn.exp||Xn,_=Yn.expm1||Xn,f=Yn.log1p||Xn;return{acos:e(.12312423423423424),acosh:i(1e308),acoshPf:(t=1e154,Yn.log(t+Yn.sqrt(t*t-1))),asin:n(.12312423423423424),asinh:r(1),asinhPf:function(t){return Yn.log(t+Yn.sqrt(t*t+1))}(1),atanh:o(.5),atanhPf:function(t){return Yn.log((1+t)/(1-t))/2}(.5),atan:s(.5),sin:a(-1e300),sinh:l(1),sinhPf:function(t){return Yn.exp(t)-1/Yn.exp(t)/2}(1),cos:c(10.000000000123),cosh:u(1),coshPf:function(t){return(Yn.exp(t)+1/Yn.exp(t))/2}(1),tan:d(-1e300),tanh:h(1),tanhPf:function(t){return(Yn.exp(2*t)-1)/(Yn.exp(2*t)+1)}(1),exp:p(1),expm1:_(1),expm1Pf:function(t){return Yn.exp(t)-1}(1),log1p:f(10),log1pPf:function(t){return Yn.log(1+t)}(10),powPI:function(t){return Yn.pow(Yn.PI,t)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]},applePay:function(){var t=window.ApplePaySession;if("function"!=typeof(null==t?void 0:t.canMakePayments))return-1;if(Un())return-3;try{return t.canMakePayments()?1:0}catch(t){return function(t){if(t instanceof Error&&"InvalidAccessError"===t.name&&/\bfrom\b.*\binsecure\b/i.test(t.message))return-2;throw t}(t)}},privateClickMeasurement:function(){var t,e=document.createElement("a"),i=null!==(t=e.attributionSourceId)&&void 0!==t?t:e.attributionsourceid;return void 0===i?void 0:String(i)},audioBaseLatency:function(){var t;return In()||vn()?window.AudioContext&&null!==(t=(new AudioContext).baseLatency)&&void 0!==t?t:-1:-2},webGlBasics:function(t){var e,i,n,r,o,s,a=ir(t.cache);if(!a)return-1;if(!ar(a))return-2;var l=sr()?null:a.getExtension(er);return{version:(null===(e=a.getParameter(a.VERSION))||void 0===e?void 0:e.toString())||"",vendor:(null===(i=a.getParameter(a.VENDOR))||void 0===i?void 0:i.toString())||"",vendorUnmasked:l?null===(n=a.getParameter(l.UNMASKED_VENDOR_WEBGL))||void 0===n?void 0:n.toString():"",renderer:(null===(r=a.getParameter(a.RENDERER))||void 0===r?void 0:r.toString())||"",rendererUnmasked:l?null===(o=a.getParameter(l.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(s=a.getParameter(a.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||""}},webGlExtensions:function(t){var e=ir(t.cache);if(!e)return-1;if(!ar(e))return-2;var i=e.getSupportedExtensions(),n=e.getContextAttributes(),r=[],o=[],s=[],a=[];if(n)for(var l=0,c=Object.keys(n);l<c.length;l++){var u=c[l];r.push("".concat(u,"=").concat(n[u]))}for(var d=0,h=rr(e);d<h.length;d++){var p=e[b=h[d]];o.push("".concat(b,"=").concat(p).concat(qn.has(p)?"=".concat(e.getParameter(p)):""))}if(i)for(var _=0,f=i;_<f.length;_++){var g=f[_];if(!(g===er&&sr()||"WEBGL_polygon_mode"===g&&(yn()||vn()))){var m=e.getExtension(g);if(m)for(var y=0,v=rr(m);y<v.length;y++){var b;p=m[b=v[y]];s.push("".concat(b,"=").concat(p).concat(Kn.has(p)?"=".concat(e.getParameter(p)):""))}}}for(var w=0,L=Qn;w<L.length;w++)for(var B=L[w],S=0,I=tr;S<I.length;S++){var x=I[S],M=nr(e,B,x);a.push("".concat(B,".").concat(x,"=").concat(M.join(",")))}return s.sort(),o.sort(),{contextAttributes:r,parameters:o,shaderPrecisions:a,extensions:i,extensionParameters:s}}};var cr="$ if upgrade to Pro: https://fpjs.dev/pro";function ur(t){var e=function(t){if(In())return.4;if(vn())return!bn()||Bn()&&wn()?.3:.5;var e="value"in t.platform?t.platform.value:"";if(/^Win/.test(e))return.6;if(/^Mac/.test(e))return.5;return.7}(t),i=function(t){return Qi(.99+.01*t,1e-4)}(e);return{score:e,comment:cr.replace(/\$/g,"".concat(i))}}function dr(t){return JSON.stringify(t,(function(t,e){return e instanceof Error?Ri({name:(i=e).name,message:i.message,stack:null===(n=i.stack)||void 0===n?void 0:n.split("\n")},i):e;var i,n}),2)}function hr(t){return _n(function(t){for(var e="",i=0,n=Object.keys(t).sort();i<n.length;i++){var r=n[i],o=t[r],s="error"in o?"error":JSON.stringify(o.value);e+="".concat(e?"|":"").concat(r.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return e}(t))}function pr(t){return void 0===t&&(t=50),function(t,e){void 0===e&&(e=1/0);var i=window.requestIdleCallback;return i?new Promise((function(t){return i.call(window,(function(){return t()}),{timeout:e})})):Zi(Math.min(t,e))}(t,2*t)}function _r(t,e){var i=Date.now();return{get:function(n){return Ni(this,void 0,void 0,(function(){var r,o,s;return Hi(this,(function(a){switch(a.label){case 0:return r=Date.now(),[4,t()];case 1:return o=a.sent(),s=function(t){var e,i=ur(t);return{get visitorId(){return void 0===e&&(e=hr(this.components)),e},set visitorId(t){e=t},confidence:i,components:t,version:Di}}(o),(e||(null==n?void 0:n.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(s.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(r-i,"\nvisitorId: ").concat(s.visitorId,"\ncomponents: ").concat(dr(o),"\n```")),[2,s]}}))}))}}}var fr={load:function(t){var e;return void 0===t&&(t={}),Ni(this,void 0,void 0,(function(){var i,n,r;return Hi(this,(function(o){switch(o.label){case 0:return(null===(e=t.monitoring)||void 0===e||e)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Di,"/npm-monitoring"),!0),t.send()}catch(t){console.error(t)}}(),i=t.delayFallback,n=t.debug,[4,pr(i)];case 1:return o.sent(),r=function(t){return gn(lr,t,[])}({cache:{},debug:n}),[2,_r(r,n)]}}))}))},hashComponents:hr,componentsToDebugString:dr};const gr=require("axios");var mr=i.n(gr),yr=i(109),vr=i(556);let br,wr;const Lr=`${yr.R0}`,Br=new Map;mr().interceptors.response.use(null,(async t=>{const{config:e,response:i}=t;if(401===i.status&&e){const i=e.url,n=(Br.get(i)||1)+1;if(n>2)throw Br.delete(i),t;return Br.set(i,n),await Sr.verifyPermission(br,wr),e.headers=Object.assign(e.headers,mr().defaults.headers.common),mr()(e)}throw t}));class Sr{static async verifyPermission(t,e){br=t,wr=e;const i=async()=>(await mr().post(Lr,{appId:t,secret:e,origin:window.location.hostname||"restriction.test.example.com",keyPlatform:"WEB"})).data.result.idToken,n=t=>{setTimeout((async()=>{mr().defaults.headers.common.token=await i(),n(t)}),t)},r=await Sr.getDeviceIdentifier(),o=await i();mr().defaults.headers.common={identifier:r,token:o,sdkVersion:vr.VERSION,"Content-Type":"application/json"};const s=JSON.parse(decodeURIComponent(window.atob(o.split(".")[1]))),a=1e3*(s.exp-s.iat-60);n(a)}static async getDeviceIdentifier(){const t=await fr.load();return(await t.get()).visitorId}static transformRequest(t){return/.mapxus./.test(t)?{url:t,headers:mr().defaults.headers.common}:{url:t}}constructor(t){mr().defaults.baseURL=t??yr.hl}get(t){return mr().get(t)}post(t,e){return mr().post(t,e)}}function Ir(t){const e=U(t),i=e&&!t.length||!e&&!t.trim().length;if(i)throw new Error("Parameter cannot be empty.");return i?null:e?t.filter((t=>!!t.trim())).map((t=>t.trim())).join(","):t.trim()}const xr=function(t,e){var i=-1,n=Lt(t)?Array(t.length):[];return ji(t,(function(t,r,o){n[++i]=e(t,r,o)})),n};const Mr=function(t,e){return(U(t)?pi:xr)(t,Ci(e,3))};const Fr=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}};var kr=Object.prototype.hasOwnProperty;const Cr=function(t,e,i){var n=t[e];kr.call(t,e)&&xt(n,i)&&(void 0!==i||e in t)||N(t,e,i)};const Pr=function(t,e,i,n){if(!L(t))return t;for(var r=-1,o=(e=yi(e,t)).length,s=o-1,a=t;null!=a&&++r<o;){var l=vi(e[r]),c=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(r!=s){var u=a[l];void 0===(c=n?n(u,l,a):void 0)&&(c=L(u)?u:nt(e[r+1])?[]:{})}Cr(a,l,c),a=a[l]}return t};const $r=function(t,e,i){for(var n=-1,r=e.length,o={};++n<r;){var s=e[n],a=bi(t,s);i(a,s)&&Pr(o,yi(s,t),a)}return o};const Er=yt(Object.getPrototypeOf,Object);const jr=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)we(e,Me(t)),t=Er(t);return e}:Se;const Or=function(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e};var Vr=Object.prototype.hasOwnProperty;const Ar=function(t){if(!L(t))return Or(t);var e=mt(t),i=[];for(var n in t)("constructor"!=n||!e&&Vr.call(t,n))&&i.push(n);return i};const Tr=function(t){return Lt(t)?ft(t,!0):Ar(t)};const Rr=function(t){return Le(t,Tr,jr)};const Nr=function(t,e){if(null==t)return{};var i=pi(Rr(t),(function(t){return[t]}));return e=Ci(e),$r(t,i,(function(t,i){return e(t,i[0])}))};const Hr=function(t,e){return Nr(t,Fr(Ci(e)))};const Wr=function(t,e,i,n){for(var r=t.length,o=i+(n?1:-1);n?o--:++o<r;)if(e(t[o],o,t))return o;return-1};const Dr=function(t){return t!=t};const Zr=function(t,e,i){for(var n=i-1,r=t.length;++n<r;)if(t[n]===e)return n;return-1};const zr=function(t,e,i){return e==e?Zr(t,e,i):Wr(t,Dr,i)};const Gr=function(t){return"string"==typeof t||!U(t)&&Z(t)&&"[object String]"==w(t)};var Yr=/\s/;const Xr=function(t){for(var e=t.length;e--&&Yr.test(t.charAt(e)););return e};var Jr=/^\s+/;const Ur=function(t){return t?t.slice(0,Xr(t)+1).replace(Jr,""):t};var qr=/^[-+]0x[0-9a-f]+$/i,Kr=/^0b[01]+$/i,Qr=/^0o[0-7]+$/i,to=parseInt;const eo=function(t){if("number"==typeof t)return t;if(ri(t))return NaN;if(L(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=L(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ur(t);var i=Kr.test(t);return i||Qr.test(t)?to(t.slice(2),i?2:8):qr.test(t)?NaN:+t};var io=1/0;const no=function(t){return t?(t=eo(t))===io||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};const ro=function(t){var e=no(t),i=e%1;return e==e?i?e-i:e:0};const oo=function(t,e){return pi(e,(function(e){return t[e]}))};const so=function(t){return null==t?[]:oo(t,Bt(t))};var ao=Math.max;const lo=function(t,e,i,n){t=Lt(t)?t:so(t),i=i&&!n?ro(i):0;var r=t.length;return i<0&&(i=ao(r+i,0)),Gr(t)?i<=r&&t.indexOf(e,i)>-1:!!r&&zr(t,e,i)>-1},co=["opening_hours","description","phone","website","email","appURL","icon"];class uo{_api="/api/v4/venues";_request;constructor(){this._request=new Sr}searchByIds(t){const e=Ir(t);if(!e)throw new Error("Please input venue id at least one.");const i=`${this._api}/${e}`;return this._changedRes(i)}searchByDistance(t,e,i,n=yr.e$,r=yr.KL){if(!t||!e||!i)throw new Error("Missing required parameter.");const o=new URLSearchParams({keywords:t,center:e.join(","),distance:String(i),offset:String(n),page:String(r)}),s=`${this._api}?${o.toString()}`;return this._changedRes(s)}searchByBbox(t,e,i=yr.e$,n=yr.KL){if(!t||!e)throw new Error("Missing required parameter.");const r=new URLSearchParams({keywords:t,bbox:e.join(","),offset:String(i),page:String(n)}),o=`${this._api}?${r.toString()}`;return this._changedRes(o)}searchByGlobal(t,e=yr.e$,i=yr.KL){if(!t)throw new Error("Missing required parameter.");const n=new URLSearchParams({keywords:t,offset:String(e),page:String(i)}),r=`${this._api}?${n.toString()}`;return this._changedRes(r)}_changedRes(t){return new Promise(((e,i)=>{this._request.get(t).then((t=>{t.data.result.venues=Mr(t.data.result.venues,(t=>Hr(t,((t,e)=>lo(co,e))))),e(t)})).catch(i)}))}}const ho=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","description"];class po{_api="/api/v4/buildings";_request;constructor(){this._request=new Sr}searchByIds(t){const e=Ir(t);if(!e)throw new Error("Please input building id at least one.");const i=`${this._api}/${e}`;return this._changedRes(i)}searchByDistance(t,e,i,n=yr.e$,r=yr.KL){if(arguments.length<3)throw new Error("Parameter cannot be empty.");if(2!==e.length)throw new Error("Center lon lat cannot be less than 2.");const o=[`center=${e.join(",")}`,`distance=${i}`,`offset=${n}`,`page=${r}`];t&&o.unshift(`keywords=${t}`);const s=`${this._api}?${o.join("&")}`;return this._changedRes(s)}searchByBbox(t,e,i=yr.e$,n=yr.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");if(4!==e.length)throw new Error("Bbox parameters cannot be less than 2.");const r=[`bbox=${e.join(",")}`,`offset=${i}`,`page=${n}`];t&&r.unshift(`keywords=${t}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByGlobal(t,e=yr.e$,i=yr.KL){if(!arguments.length)throw new Error("Parameter cannot be empty.");const n=["searchGlobal=true",`offset=${e}`,`page=${i}`];t&&n.unshift(`keywords=${t}`);const r=`${this._api}?${n.join("&")}`;return this._changedRes(r)}searchByFloorId(t){if(!t)throw new Error("Parameter cannot be empty.");return this._changedRes(`${this._api}/floors/${t}`)}_changedRes(t){return new Promise(((e,i)=>{this._request.get(t).then((t=>{t.data.result.buildings=Mr(t.data.result.buildings,(t=>Hr(t,((t,e)=>lo(ho,e))))),e(t)})).catch(i)}))}}const _o=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","icon"];class fo{_api="/api/v3/pois";_apiV4="/api/v4/pois";_categoriesApi="/api/v2/categories/pois";_categoriesGroupApi="/api/v5/categories/group";_request;constructor(){this._request=new Sr}searchByIds(t){const e=Ir(t);if(!e)throw new Error("Please input poi id at least one.");const i=`${this._apiV4}/${e}`;return this._changedRes(i,(t=>t.descriptions?.default?{description:t.descriptions.default}:null))}searchByDistance(t){const{center:e,distance:i,keywords:n="",offset:r=yr.e$,page:o=yr.KL}=t;if(!e||!i)throw new Error("Parameter missing.");const s=[`keywords=${n}`,`center=${e.join(",")}`,`distance=${Math.round(i)}`,`offset=${r}`,`page=${o}`],a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByBbox(t,e,i=yr.e$,n=yr.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");if(4!==e.length)throw new Error("Bbox parameters cannot be less than 2.");const r=[`bbox=${e.join(",")}`,`offset=${i}`,`page=${n}`];t&&r.unshift(`keywords=${t}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByBounds(t){const{bounds:e,offset:i=yr.e$,page:n=yr.KL,keywords:r,orderBy:o}=t,s=[`bbox=${e.flat().join()}`,`offset=${i}`,`page=${n}`];go(r)&&s.push(`keywords=${r.trim()}`),o&&s.push(`orderBy=${o}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByBuildingId(t,e,i=yr.e$,n=yr.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");const r=[`buildingId=${e}`,`offset=${i}`,`page=${n}`];t&&r.unshift(`keywords=${t}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByBuilding(t){const{buildingId:e,offset:i=yr.e$,page:n=yr.KL,keywords:r,orderBy:o}=t,s=[`buildingId=${e}`,`offset=${i}`,`page=${n}`];go(r)&&s.push(`keywords=${r.trim()}`),o&&s.push(`orderBy=${o}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByVenueId(t,e,i=yr.e$,n=yr.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");const r=[`venueId=${e}`,`offset=${i}`,`page=${n}`];t&&r.unshift(`keywords=${t}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByVenue(t){const{venueId:e,offset:i=yr.e$,page:n=yr.KL,keywords:r,orderBy:o}=t,s=[`venueId=${e}`,`offset=${i}`,`page=${n}`];go(r)&&s.push(`keywords=${r.trim()}`),o&&s.push(`orderBy=${o}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByFloor(t){const{floorId:e,offset:i=yr.e$,page:n=yr.KL,keywords:r,orderBy:o}=t,s=[`floorId=${e}`,`offset=${i}`,`page=${n}`];r&&s.push(`keywords=${r}`),o&&s.push(`orderBy=${o}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchCategories(t){let e,i;var n;"bounds"in t?(e=`bbox=${t.bounds.flat().join()}`,"string"==typeof(n=t.keywords)&&Boolean(n.trim())&&(e+=`&keywords=${t.keywords.trim()}`),i=`${this._categoriesGroupApi}?${e}`):("floorId"in t?e=`floorId=${t.floorId}`:"buildingId"in t?e=`buildingId=${t.buildingId}`:"venueId"in t&&(e=`venueId=${t.venueId}`),i=`${this._categoriesApi}?${e}`);try{return this._request.get(i)}catch(t){throw t}}searchOrientation(t){const{center:e,angle:i,distance:n,buildingId:o,floorId:s,ordinal:a,distanceSearchType:l}=t;if(!e||!i||!n)throw new Error("Parameter missing.");const c=new URLSearchParams({center:`${e.join(",")}`,angle:`${Math.round(i)}`,distance:`${n}`,distanceSearchType:l??r.Kp.POINT});a?c.append("ordinal",a):s?c.append("floorId",s):o&&c.append("buildingId",o);const u=`${this._api}/orientation?${c.toString()}`;return this._request.get(u)}searchByOrientation(t){const{center:e,angle:i,distance:n,distanceSearchType:o=r.Kp.POINT}=t,s=[`center=${e.join()}`,`angle=${Math.round(i)}`,`distance=${n}`,`distanceSearchType=${o}`];"ordinal"in t?s.push(`ordinal=${t.ordinal}`):"floorId"in t?s.push(`floorId=${t.floorId}`):"buildingId"in t&&s.push(`buildingId=${t.buildingId}`);const a=`${this._api}/orientation?${s.join("&")}`;return this._request.get(a)}searchByCategory(t){const{center:e,distance:i,page:n=yr.KL,offset:r=yr.e$}=t,o=[`center=${e.join(",")}`,`distance=${i}`,`offset=${r}`,`page=${n}`];let s="";if("category"in t)s=`${this._api}?category=${t.category}&${o.join("&")}`;else if("excludedCategories"in t){const{excludedCategories:e}=t;s=U(e)?`${this._api}?excludeCategories=${e.join(",")}&${o.join("&")}`:`${this._api}?excludeCategories=${e}&${o.join("&")}`}if(s.length)return this._changedRes(s);throw new Error("Parameter missing.")}_changedRes(t,e){return new Promise(((i,n)=>{this._request.get(t).then((t=>{t.data.result.pois=Mr(t.data.result.pois,(t=>{let i=Hr(t,((t,e)=>lo(_o,e)));return e&&e(i)&&(i=Object.assign({},i,e(i))),i})),i(t)})).catch(n)}))}}function go(t){return"string"==typeof t&&Boolean(t.trim())}class mo{_api="/api/v3/route/query";_request;constructor(){this._request=new Sr}search(t){const{points:e,vehicle:i=r.$O.FOOT,locale:n="en"}=t;if(!(e&&e.length>1&&e.length<6))throw new Error("Parameter error. It must be 1 < {points.length} < 6");const o={points:e,vehicle:i,locale:n};try{return this._request.post(this._api,JSON.stringify(o))}catch(t){throw new Error(t)}}}var yo=i(666);const vo={lineWidth:3,lineColor:"#A5E3FF",lineOpacity:1},bo={fontColor:"#8c8c8c",activeFontColor:"#fff",backgroundColor:"#fff",activeBackgroundColor:"#074769",itemSize:50,itemCount:4,defaultFolded:!1},wo=(0,yo.y)(window.navigator.language)??r.ys.ENGLISH,Lo=new po,Bo=new uo,So=new fo;async function Io(t){try{return(await Lo.searchByIds(t)).data.result.buildings[0]}catch(t){throw new Error(t)}}async function xo(t){try{const e=(await Lo.searchByFloorId(t)).data.result.buildings[0].buildingId;return await Io(e)}catch(t){throw new Error(t)}}var Mo={value:()=>{}};function Fo(){for(var t,e=0,i=arguments.length,n={};e<i;++e){if(!(t=arguments[e]+"")||t in n||/[\s.]/.test(t))throw new Error("illegal type: "+t);n[t]=[]}return new ko(n)}function ko(t){this._=t}function Co(t,e){for(var i,n=0,r=t.length;n<r;++n)if((i=t[n]).name===e)return i.value}function Po(t,e,i){for(var n=0,r=t.length;n<r;++n)if(t[n].name===e){t[n]=Mo,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=i&&t.push({name:e,value:i}),t}ko.prototype=Fo.prototype={constructor:ko,on:function(t,e){var i,n=this._,r=function(t,e){return t.trim().split(/^|\s+/).map((function(t){var i="",n=t.indexOf(".");if(n>=0&&(i=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}}))}(t+"",n),o=-1,s=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=Po(n[i],t.name,e);else if(null==e)for(i in n)n[i]=Po(n[i],t.name,null);return this}for(;++o<s;)if((i=(t=r[o]).type)&&(i=Co(n[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new ko(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,n,r=new Array(i),o=0;o<i;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,i=(n=this._[t]).length;o<i;++o)n[o].value.apply(e,r)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],r=0,o=n.length;r<o;++r)n[r].value.apply(e,i)}};const $o=Fo;class Eo{_historyBuilding;_historyOrdinal;_selectedBuildings;static instance;constructor(){this._historyBuilding=new Map,this._historyOrdinal=new Map,this._selectedBuildings=new Set}static getInstance(){return Eo.instance||(Eo.instance=new Eo),Eo.instance}getHistoryBuilding(t){return this._historyBuilding.get(t)}setHistoryBuilding(t,e){this._historyBuilding.set(t,e)}getHistoryOrdinal(t){return this._historyOrdinal.get(t)}setHistoryOrdinal(t,e){this._historyOrdinal.set(t,e)}getHistoryBuildings(){return this._selectedBuildings}addHistoryBuilding(t){this._selectedBuildings.delete(t),this._selectedBuildings.add(t),this._selectedBuildings.size>100&&(this._selectedBuildings=new Set(Array.from(this._selectedBuildings).slice(this._selectedBuildings.size-100)))}}class jo{static instance;_upperBuildings;_lowerBuildings;_hiddenBuildings;constructor(){this._upperBuildings=new Set,this._lowerBuildings=new Set,this._hiddenBuildings=new Set}static getInstance(){return jo.instance||(jo.instance=new jo),jo.instance}getUpperBuildings(){return this._upperBuildings}getLowerBuildings(){return this._lowerBuildings}getHiddenBuildings(){return this._hiddenBuildings}}const Oo=function(t){return function(e,i,n){var r=Object(e);if(!Lt(e)){var o=Ci(i,3);e=Bt(e),i=function(t){return o(r[t],t,r)}}var s=t(e,i,n);return s>-1?r[o?e[s]:s]:void 0}};var Vo=Math.max;const Ao=function(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var r=null==i?0:ro(i);return r<0&&(r=Vo(n+r,0)),Wr(t,Ci(e,3),r)};const To=Oo(Ao);const Ro=function(t,e,i){for(var n=-1,r=t.length;++n<r;){var o=t[n],s=e(o);if(null!=s&&(void 0===a?s==s&&!ri(s):i(s,a)))var a=s,l=o}return l};const No=function(t,e){return t<e};const Ho=function(t,e){return t&&t.length?Ro(t,Ci(e,2),No):void 0};const Wo=function(){return d.Date.now()};var Do=Math.max,Zo=Math.min;const zo=function(t,e,i){var n,r,o,s,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var i=n,o=r;return n=r=void 0,c=e,s=t.apply(o,i)}function _(t){var i=t-l;return void 0===l||i>=e||i<0||d&&t-c>=o}function f(){var t=Wo();if(_(t))return g(t);a=setTimeout(f,function(t){var i=e-(t-l);return d?Zo(i,o-(t-c)):i}(t))}function g(t){return a=void 0,h&&n?p(t):(n=r=void 0,s)}function m(){var t=Wo(),i=_(t);if(n=arguments,r=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(f,e),u?p(t):s}(l);if(d)return clearTimeout(a),a=setTimeout(f,e),p(l)}return void 0===a&&(a=setTimeout(f,e)),s}return e=eo(e)||0,L(i)&&(u=!!i.leading,o=(d="maxWait"in i)?Do(eo(i.maxWait)||0,e):o,h="trailing"in i?!!i.trailing:h),m.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=l=r=a=void 0},m.flush=function(){return void 0===a?s:g(Wo())},m};const Go=function(t,e){return!!(null==t?0:t.length)&&zr(t,e,0)>-1};const Yo=function(t,e,i){for(var n=-1,r=null==t?0:t.length;++n<r;)if(i(e,t[n]))return!0;return!1};const Xo=function(){};var Jo=Ee&&1/me(new Ee([,-0]))[1]==1/0?function(t){return new Ee(t)}:Xo;const Uo=Jo;const qo=function(t,e,i){var n=-1,r=Go,o=t.length,s=!0,a=[],l=a;if(i)s=!1,r=Yo;else if(o>=200){var c=e?null:Uo(t);if(c)return me(c);s=!1,r=pe,l=new de}else l=e?[]:a;t:for(;++n<o;){var u=t[n],d=e?e(u):u;if(u=i||0!==u?u:0,s&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue t;e&&l.push(d),a.push(u)}else r(l,d,i)||(l!==a&&l.push(d),a.push(u))}return a};const Ko=function(t,e){return t&&t.length?qo(t,Ci(e,2)):[]};const Qo=function(t,e){var i=[];return ji(t,(function(t,n,r){e(t,n,r)&&i.push(t)})),i};const ts=function(t,e){return(U(t)?Be:Qo)(t,Ci(e,3))};var es=0;const is=function(t){var e=++es;return mi(t)+e};const ns=function(t,e){var i;return ji(t,(function(t,n,r){return!(i=e(t,n,r))})),!!i};const rs=function(t,e,i){if(!L(i))return!1;var n=typeof e;return!!("number"==n?Lt(i)&&nt(e,i.length):"string"==n&&e in i)&&xt(i[e],t)};const os=function(t,e,i){var n=U(t)?he:ns;return i&&rs(t,e,i)&&(e=void 0),n(t,Ci(e,3))},ss="assistant-mapxus-level-outline",as=new uo;class ls extends Ti.a${_map;_features;_allBuildings;_curBuildingId=null;_curBuildingFeature=null;_ordinal=null;_floorId=null;_floorName=null;_allowOutdoorSwitch;_allowBuildingSwitch;_outdoorMapShown;_originIndoorLayers;_curVenueId=null;_curVenueFeature=null;_buildingHighlightStyle;_lowerLayers;_upperLayers;_commonLayers;_dispatch;_fitBuildingBounds;_boundsPadding;_startWithIndoorView;_maplibreMapLoaded=!1;_indoorMapLoaded=!1;_isVenueMode;_isMaskMode;_upperLevels=new Set;_lowerLevels=new Set;_featureIncomplete=!1;_dragPan;_isNewBuilding=!1;_buildingBounds;_history=Eo.getInstance();_layerBuildings=jo.getInstance();_upperBuildings=this._layerBuildings.getUpperBuildings();_lowerBuildings=this._layerBuildings.getLowerBuildings();_hiddenBuildings=this._layerBuildings.getHiddenBuildings();constructor(t){super();const{map:e,isInitialIndoor:i,startWithIndoorView:n=!0,isHiddenOutdoor:o,outdoorMapShown:s=!0,selectedBuildingBorderStyle:a,floorSwitchMode:l=r.MA.SWITCHED_BY_VENUE,fitBuildingBounds:c,boundsPadding:u,maskNonSelectedAreas:d=!1}=t;this._map=e,this._allowOutdoorSwitch=!0,this._allowBuildingSwitch=!0,this._startWithIndoorView=i??n,this._outdoorMapShown=void 0===o?s:!o,this._isVenueMode=l===r.MA.SWITCHED_BY_VENUE,this._isMaskMode=d,this._fitBuildingBounds=c,this._boundsPadding=u,this._buildingHighlightStyle=a?Object.assign({},vo,a):vo,this._hiddenBuildings=new Set,this._dispatch=$o("indoorMapChange"),this._loadData()}enableSwitch(){return this._allowOutdoorSwitch=!0,this}disableSwitch(){return this._allowOutdoorSwitch=!1,this}setAllowOutdoorSwitch(t){return this._allowOutdoorSwitch=t,this}enableSwitchBuilding(){return this._allowBuildingSwitch=!0,this}disableSwitchBuilding(){return this._allowBuildingSwitch=!1,this}setAllowBuildingSwitch(t){return this._allowBuildingSwitch=t,this}get floor(){return{code:this._floorName,id:this._floorId,ordinal:this._ordinal}}get building(){return this._curBuildingFeature}get venue(){return this._curVenueFeature}get features(){return this._features}getFeature(t){return t===this._curBuildingId?this._curBuildingFeature:To(this.features,(e=>e.properties.id===t))}getFeaturesById(t,e){const{layerIds:i,filter:n}=e||{};let r=this.features;if(i?.length){const t=this._map.getCanvas().getBoundingClientRect();r=this._map.queryRenderedFeatures([[0,0],[t.width,t.height]],{layers:i})}return ts(r,n?e=>e.properties.id===t&&n(e):e=>e.properties.id===t)}getLevelByPoint(t){const e=this._map.queryRenderedFeatures(t,{layers:["mapxus-level-fill","mapxus-level-fill-overlap-copy"]});return e.length?e[0]:null}async switchFloorByOrdinal(t){this._updateFloorState(t),this._dispatch.call("indoorMapChange",null,{venue:this.venue,building:this.building,floor:this.floor}),t&&this._floorId&&(this._resetSelectedBuildingLevel(),!0===this._dragPan&&(this._fitBuildingBounds?(this._isNewBuilding&&this._featureIncomplete&&await this.panToBuildingCenter(),this.fitBuildingBbox()):await this.panToBuildingCenter()),"restrict"===this._dragPan&&this._checkAndPanToBuilding()),this.updateRendering()}hiddenOutdoorLayer(t){this._outdoorMapShown=!t,this._setOutdoorVisibility(!t)}setOutdoorMapShown(t){this._outdoorMapShown=t,this._setOutdoorVisibility(t)}updateCustomLayers(){this._originIndoorLayers=o(this._map.getStyle()),this._copyOverlapLayers(),this._addBuildingHighlightLayer(),this._addCustomLevelFillLayer(),this._outdoorMapShown||this._setOutdoorVisibility(!1),!this._isMaskMode&&this._map.getLayer("mapxus-building-line")&&this._map.setPaintProperty("mapxus-building-line","fill-opacity",0)}setSelectedBuildingBorderStyle(t){t?(this._buildingHighlightStyle=Object.assign({},this._buildingHighlightStyle,t),this._map.getLayer(ss)&&(this._map.setPaintProperty(ss,"line-color",this._buildingHighlightStyle.lineColor),this._map.setPaintProperty(ss,"line-opacity",this._buildingHighlightStyle.lineOpacity),this._map.setPaintProperty(ss,"line-width",this._buildingHighlightStyle.lineWidth),this._map.setPaintProperty(ss,"line-offset",this._buildingHighlightStyle.lineWidth))):(this._buildingHighlightStyle=Object.assign({},this._buildingHighlightStyle,{"line-opacity":0}),this._map.getLayer(ss)&&this._map.setPaintProperty(ss,"line-opacity",0))}setMaskNonSelectedAreas(t){this._isMaskMode=t}onMapChange(t){const e=is("indoorMapChange.");return this._dispatch?.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}async selectBuilding(t,e){var i;(this._allowOutdoorSwitch||t)&&this._allowBuildingSwitch&&(this._allowBuildingSwitch&&this._isNotCurrentFeature(t)&&(this._featureIncomplete=e?.featureIncomplete??this._featureIncomplete,this._isNewBuilding=!0,this._isMaskMode&&this._invisibleSelectedBuilding(),await this._updateIndoorState(t,e?.floorId),await this.switchFloorByOrdinal(this._ordinal),this.fire((i={buildingId:this._curBuildingId,ordinal:this._ordinal,dragPan:this._dragPan},new Ti.Jh("selectedBuildingChanged",i))),this._indoorMapLoaded||(this._indoorMapLoaded=!0,this.fire(new Ti.Jh("indoorMapLoaded"))),this._isNewBuilding=!1))}updateRendering(){this._updateFeatures(),this._layerDisplayedBuildings(),this._setDisplayedLevels(),this._filterTiles(),this._setBuildingLineOpacity(),this._filterBuildingHighlight()}async panToBuildingCenter(){const t=this._curBuildingFeature.properties?.label_center?.split(",");if(t&&(this._map.panTo(t),this._featureIncomplete))return new Promise((t=>{setTimeout((()=>{let e=!1;const i=()=>{this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(this._curBuildingId,{layerIds:["mapxus-building-line"]})[0]&&(e=!0,t(!0))},n=setInterval((()=>{e||(i(),e&&clearInterval(n))}),50);i(),this._map.getZoom()<14&&(clearInterval(n),t(!1))}))}))}fitBuildingBbox(){this._buildingBounds&&this._map.fitBounds(this._buildingBounds,{padding:this._boundsPadding,bearing:this._map.getBearing()})}setDragPan(t){this._dragPan=t}setBuildingBounds(t){this._buildingBounds=t}async selectBuildingByClickMap(t){let e=null;const i=this._map.queryRenderedFeatures(t,{layers:["mapxus-level-fill","mapxus-level-fill-overlap-copy","mapxus-building-line"]});if(i.length){const t=To(i,(t=>t.layer.id.startsWith("mapxus-level-fill")));e=t?To(i,(e=>e.properties.id===t.properties["ref:building"])):To(i,(t=>{const{id:e,level_ids:i}=t.properties;return!this._hiddenBuildings.has(e)&&!os(i.split(","),(t=>this._upperLevels.has(t)||this._lowerLevels.has(t)))}))??null}this.setDragPan("restrict"),await this.selectBuilding(e),setTimeout((async()=>{if(this._fitBuildingBounds)if(e){const t=await Io(e.properties.id),{minLon:i,minLat:n,maxLon:r,maxLat:o}=t.bbox;this.setBuildingBounds([[i,n],[r,o]])}else this.setBuildingBounds(null)}))}_loadData(){this._map.on("load",(()=>this._init()))}_init(){this.updateCustomLayers(),this._map.on("data",zo((()=>{this._maplibreMapLoaded||(this._maplibreMapLoaded=!0,this.fire(new Ti.Jh("maplibreMapLoaded")),(!this._startWithIndoorView||this._map.getZoom()<14)&&(this._indoorMapLoaded=!0,this.fire(new Ti.Jh("indoorMapLoaded")))),this.updateRendering()}),300))}_clear(){this._curBuildingFeature=null,this._curBuildingId=null,this._ordinal=null,this._floorName=null,this._floorId=null,this._curVenueId=null,this._curVenueFeature=null,this._buildingBounds=null}_getIndoorFeatures(){const t=this._map.getCanvas().getBoundingClientRect(),e=this._map.queryRenderedFeatures([[0,0],[t.width,t.height]]),i=ts(e,(t=>"indoor-planet"===t.source));return Ko(i,(t=>t.layer.id+":"+t.properties.id))}_getBuildingFloorByOrdinal(t,e){let i=null,n=null;if(t?.properties){const{ordinals:r,level_names:o,level_ids:s}=t.properties,a=Ao(r?.split(",")||[],(t=>t===e));i=(o?.split(",")||[])[a]??null,n=(s?.split(",")||[])[a]??null}return{code:i,id:n,ordinal:e}}_isNotCurrentFeature(t){return t?.properties?.id!==this._curBuildingId}_setOutdoorVisibility(t){const e=this._map.getStyle().layers.filter(a);if(e.length){const i=t?"visible":"none";e.forEach((({id:t})=>{this._map.getLayer(t)&&this._map.setLayoutProperty(t,"visibility",i)}))}}_addCustomLevelFillLayer(){this._map.getLayer("custom-level-fill")||this._map.addLayer({id:"custom-level-fill",source:"indoor-planet","source-layer":"mapxus_level",type:"fill",paint:{"fill-opacity":0}})}_setBuildingLineOpacity(){this._isMaskMode&&this._map.getLayer("mapxus-building-line")&&this._map.setPaintProperty("mapxus-building-line","fill-opacity",["case",["in",["get","id"],["literal",[...this._upperBuildings]]],0,["in",["get","id"],["literal",[...this._hiddenBuildings]]],0,1])}_addBuildingHighlightLayer(){if(!this._map.getLayer(ss)){const{lineWidth:t,lineOpacity:e,lineColor:i}=this._buildingHighlightStyle;this._map.addLayer({id:ss,source:"indoor-planet","source-layer":"mapxus_level",type:"line",filter:["==","id",""],paint:{"line-offset":t,"line-width":t,"line-color":i,"line-opacity":e}});const n=this._originIndoorLayers.findIndex((({id:t})=>t===this._upperLayers[this._upperLayers.length-1].id)),r=this._originIndoorLayers[n+1];this._map.moveLayer(ss,r.id)}}_filterBuildingHighlight(){this._map.getLayer(ss)&&this._map.setFilter(ss,["==","id",this._floorId??""])}_handleBuildings(t,e){if(e.clear(),t.size)for(const i of t){const n=this._allBuildings.get(i);if(!n?.properties)continue;const{"ref:venue":r,ordinals:o,level_ids:s}=n.properties;let a=this._history.getHistoryOrdinal(this._isVenueMode?this._history.getHistoryBuilding(r):i);if(!a){if(this._isVenueMode){const t=this._features.find((t=>"mapxus-venue-fill"===t.layer.id&&t.properties.id===r));a=this._getVenueDefaultOrdinal(t)}else a=this._getBuildingDefaultOrdinal(n);if(!a)continue;this._history.setHistoryOrdinal(i,a),this._isVenueMode&&this._history.setHistoryBuilding(r,i)}const l=Ao(o.split(","),(t=>t===a));if(l>-1){const n=s.split(",")[l];if(this._isMaskMode){(this._isVenueMode?this._curVenueFeature?.properties?.building_ids?.split(",")||[]:this._curBuildingId?[this._curBuildingId]:[]).includes(i)?(e.add(n),this._hiddenBuildings.delete(i)):t.delete(i)}else e.add(n),this._hiddenBuildings.delete(i)}else this._hiddenBuildings.add(i),t.delete(i)}}_getVenueDefaultOrdinal(t){let e=null;if(t?.properties){const{default_displayed_ordinal:i,building_ids:n}=t.properties;if(i&&(e=i),!e&&n){const t=To(this._getBuildingsOfBbox(),(t=>n.includes(t.properties.id)));e=t?this._getBuildingDefaultOrdinal(t):null}}return e}_getBuildingDefaultOrdinal(t){let e=null;if(t?.properties){const{level_ids:i,ordinals:n,default_displayed_floor:r}=t.properties,o=n?.split(",")||[];if(o.length){if(r){e=o[Ao(i?.split(",")||[],(t=>t===r))]??null}e||(e=Ho(o,(t=>Math.abs(Number(t)-.1))))}}return e}_getBuildingsOfBbox(t){let e=this._map.queryRenderedFeatures({layers:["mapxus-building-line"]});return e=Ko(e,(t=>t.properties.id)),t&&(e=e.filter(t)),e}_copyOverlapLayers(){const t=this._originIndoorLayers.findIndex((({id:t})=>"mapxus-level-fill"===t)),e=this._originIndoorLayers.findIndex((({id:t})=>t.startsWith("mapxus-poi")));this._commonLayers=this._originIndoorLayers.slice(0,t).concat(this._originIndoorLayers.slice(e)),this._upperLayers=this._originIndoorLayers.slice(t,e).filter((t=>"mapxus_building"!==t["source-layer"])),this._lowerLayers=this._upperLayers.map((t=>{const e=Object.assign({},t,{id:`${t.id}-overlap-copy`});return this._map.getLayer(e.id)||(this._map.addLayer(e),this._map.moveLayer(e.id,"mapxus-level-fill")),e}))}_updateFeatures(){this._features=this._getIndoorFeatures();const t=Ko(ts(this._features,(t=>"mapxus-building-line"===t.layer.id)),(t=>t.properties.id));this._allBuildings=new Map(t.map((t=>[t.properties.id,t]))),this._featureIncomplete&&this._allBuildings.get(this._curBuildingId)&&(this._curBuildingFeature=this._allBuildings.get(this._curBuildingId),this._featureIncomplete=!1)}_layerDisplayedBuildings(){if(this._allBuildings.size)for(const t of this._allBuildings.values()){if(!t.properties)continue;const{id:e,overlap:i}=t.properties;let n=!1;if(e===this._curBuildingId)this._hiddenBuildings.delete(e),this._lowerBuildings.delete(e),this._upperBuildings.add(e),i&&(n=!0);else{!this._upperBuildings.has(e)&&!this._lowerBuildings.has(e)&&!this._hiddenBuildings.has(e)&&(this._upperBuildings.add(e),i&&(n=!0))}n&&i.split(",").forEach((t=>{this._hiddenBuildings.has(t)||(this._upperBuildings.delete(t),this._lowerBuildings.add(t))}))}}_setDisplayedLevels(){this._handleBuildings(this._upperBuildings,this._upperLevels),this._handleBuildings(this._lowerBuildings,this._lowerLevels)}_filterTiles(){this._filterIndoorLayers([...this._upperLevels],this._upperLayers??[]),this._filterIndoorLayers([...this._lowerLevels],this._lowerLayers??[]),this._filterIndoorLayers([...this._upperLevels,...this._lowerLevels],this._commonLayers??[])}_filterIndoorLayers(t,e){if(e.length){let i;for(const n of e){const e=n,r=e["source-layer"];if("mapxus_venue"===r||"mapxus_building"===r)continue;const o=e.layout?.visibility,{id:s,filter:a}=e;"none"===o&&this._map.setLayoutProperty(s,"visibility","visible"),a&&(i=["all","mapxus_level"===r?["in","id",...t]:["in","ref:level",...t],a],"mapxus_place"===r&&i.splice(2,0,["any",["all",["has","overlap"],["in","ref:building",...this._upperBuildings]],["!has","overlap"]]),this._map.setFilter(s,i))}}}async _updateIndoorState(t,e){if(t){if(!t.properties)return void console.warn("Building feature properties is empty.",t);const{id:i,"ref:venue":n,level_ids:r,ordinals:o}=t.properties;if(this._curVenueId!==n){this._curVenueId=n;let t=this.getFeaturesById(n,{layerIds:["mapxus-venue-fill"]})[0]??null;if(!t)try{const e=await as.searchByIds(n);t=function(t){const{address:e,buildings:i,id:n,name:r,type:o}=t;return{layer:{id:"mapxus-venue-fill"},properties:{...Vi(e,((t,e,i)=>Object.assign(t,"default"===i?{"addr:street":e.street,"addr:housenumber":e.housenumber}:{[`addr:street:${i}`]:e.street})),{}),...Pi(r,((t,e)=>"default"===e?"name":`name:${e}`)),id:n,venue:o,building_ids:i.map((({id:t})=>t)).join()},source:"indoor-planet",sourceLayer:"mapxus_venue"}}(e.data.result.venues[0])}catch(t){throw new Error("Venue not found.")}this._curVenueFeature=t}this._curBuildingFeature=t,this._curBuildingId=i,this._history.addHistoryBuilding(i);const s=o.split(",");if(e){const i=s[Ao(r.split(","),(t=>t===e))];i||console.warn("Building has no corresponding ordinal.",t),this._ordinal=i??null}else{let e=this._history.getHistoryOrdinal(this._isVenueMode?this._history.getHistoryBuilding(n):i);(!e||e&&!s.includes(e))&&(e=this._getBuildingDefaultOrdinal(t)),this._ordinal=e}}else this._clear()}_updateFloorState(t){if(this._ordinal=t,this._floorName=null,this._floorId=null,t){const{code:t,id:e}=this._getBuildingFloorByOrdinal(this._curBuildingFeature,this._ordinal);if(this._floorName=t,this._floorId=e,!e)return;this._history.setHistoryOrdinal(this._curBuildingId,this._ordinal),this._isVenueMode&&this._history.setHistoryBuilding(this._curVenueId,this._curBuildingId)}}_resetSelectedBuildingLevel(){(this._isVenueMode?this._curVenueFeature?this._curVenueFeature.properties.building_ids.split(","):[]:[this._curBuildingId]).forEach((t=>{this._upperBuildings.delete(t),this._lowerBuildings.delete(t),this._hiddenBuildings.delete(t)})),this._upperBuildings.add(this._curBuildingId);const t=this._curBuildingFeature.properties.overlap;t&&t.split(",").forEach((t=>{this._upperBuildings.has(t)&&(this._upperBuildings.delete(t),this._lowerBuildings.add(t))}))}_checkAndPanToBuilding(){this.getFeaturesById(this._curBuildingId,{layerIds:["mapxus-building-line"]})[0]||(this._fitBuildingBounds?this.fitBuildingBbox():this.panToBuildingCenter())}_invisibleSelectedBuilding(){if(this._isVenueMode){if(!this._curVenueFeature)return;const{building_ids:t}=this._curVenueFeature.properties;t&&t.split(",").forEach((t=>{this._upperBuildings.delete(t),this._lowerBuildings.delete(t)}))}else this._curBuildingId&&(this._upperBuildings.delete(this._curBuildingId),this._lowerBuildings.delete(this._curBuildingId))}}class cs{_map;_layerIds=[];_dispatch;constructor(t){this._map=t,this._dispatch=$o("poiClick"),this._bindEvents()}onPoiClick(t){const e=is("poiClick.");return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}_bindEvents(){this._map.on("styledata",zo((()=>this._init()),300)),this._initPoiClick()}_init(){this._layerIds=Mr(ts(o(this._map.getStyle()),(t=>"mapxus_place"===t["source-layer"])),(({id:t})=>t))}_initPoiClick(){this._map.on("click",(t=>{const e=this._map.queryRenderedFeatures(t.point,{layers:[...this._layerIds,"mapxus-building-line","mapxus-venue-fill"]});if(e.length){const i=To(e,(t=>t.layer.id.indexOf("mapxus-poi")>-1));if(i?.properties){const{"ref:level":n=null,"ref:building":r}=i.properties,o=To(e,(t=>t.properties.id===r))??null,s=To(e,(t=>t.properties.id===o?.properties?.["ref:venue"]))??null,{floorName:a,ordinal:l}=this._getFloorDataByFloorId(n,o);this._dispatch.call("poiClick",null,{coordinate:t.lngLat,poi:i,building:o,venue:s,floor:{code:a,id:n,ordinal:l}})}}}))}_getFloorDataByFloorId(t,e){let i=null,n=null;if(t&&e?.properties){const{level_ids:r,level_names:o,ordinals:s}=e.properties,a=r?.split(",")||[],l=Ao(a,(e=>e===t));l>-1&&(i=(o?.split(",")||[])[l]??null,n=(s?.split(",")||[])[l]??null)}return{floorName:i,ordinal:n}}}function us(t){t.parentNode&&t.parentNode.removeChild(t)}function ds(t,e,i){const n=window.document.createElement(t);return e&&(n.className=e),i&&i.appendChild(n),n}const hs=function(t){return"number"==typeof t||Z(t)&&"[object Number]"==w(t)};class ps{_map;_maplibre;_buildingId;_features;_$container;_$listContainer;_$buildingList;_listHeight;_visible;_position;constructor(t,e,i){this._map=t,this._position=e??"top-right",this._visible=i??!0}onAdd(t){return this._maplibre=t,this._$container=ds("div","maplibregl-ctrl maplibregl-ctrl-building-filter "+(this._visible?"":"hide"),this._maplibre.getContainer()),this._$container.appendChild(this._buildingFilterIconCreate("div")),this._$container.appendChild(this._buildingNameListCreate("div")),this._loadData(),this._$container}onRemove(){us(this._$container)}get position(){return this._position}get enabled(){return this._visible}getDefaultPosition(){return"top-right"}setLayoutHidden(t){this._visible=!t,t?this._$hideLayout():this._$showLayout()}setVisibility(t){this._visible=t,t?this._$showLayout():this._$hideLayout()}moveBuildingFilter(t,e){const i=document.querySelector(`.maplibregl-ctrl-${t}`),n=i.querySelector(".maplibregl-ctrl-building-filter"),r=document.querySelector(`.maplibregl-ctrl-${e}`);n&&(i.removeChild(n),r.prepend(n),this._updateBuildingListLayout(e),this._position=e)}changePosition(t,e,i){const n=document.querySelector(`.maplibregl-ctrl-${t}`),r=n.querySelector(".maplibregl-ctrl-building-filter");if(t!==e){this._position=e;const t=document.querySelector(`.maplibregl-ctrl-${e}`);r&&(n.removeChild(r),hs(i)?t.insertBefore(r,t.children[i]):t.append(r),this._updateBuildingListLayout(e))}else hs(i)&&n.children[i]!==r&&(n.removeChild(r),n.insertBefore(r,n.children[i]))}_loadData(){this._maplibre.on("moveend",(()=>this._refresh())),this._map.onMapChangeListener((({building:t})=>{const e=t?.properties?.id??"";this._buildingId!==e&&(this._buildingId=e,this._refresh())})),this._map.renderComplete((()=>{this._init()}))}_init(){this._load()}_refresh(){this._load()}_load(){this._buildingNameListClean(),this._buildingNameListUpdate()}_buildingFilterIconCreate(t){const e=window.document.createElement(t);return e.className="mapxus-building-filter-icon",this._buildingToggleListEvent(e,!0),e}_buildingNameListCreate(t){return this._$listContainer=window.document.createElement(t),this._$listContainer.className="mapxus-building-name-layout",this._$listContainer.style.display="none",this._$listContainer.style.top="20px",this._$buildingList=window.document.createElement(t),this._$buildingList.className="mapxus-building-name-list",this._$listContainer.appendChild(this._$buildingList),this._buildingToggleListEvent(this._$listContainer,!1),this._$listContainer}_buildingNameListUpdate(){this._features=[];const t=this._map.getMaplibre().queryRenderedFeatures({layers:["mapxus-building-line"]});for(const e of t){const{id:t,name:i}=e.properties;To(this._features,(e=>e.properties.id===t))||(this._features.push(e),this._$buildingList.appendChild(this._buildingNameCreate("p",i,t,t===this._map.building?.properties?.id)))}this._setBuildingListHeight(this._features),this._updateBuildingListLayout(this._position)}_buildingNameListClean(){this._$buildingList.innerHTML=""}_setBuildingListHeight(t){const e=t.map((t=>{const e=t?.properties?.name;return e?Math.ceil(8*e.length/107):0})).reduce(((t,e)=>t+e),0);this._listHeight=26*e+8*t.length,this._$buildingList.style.height=this._$listContainer.style.height=`${this._listHeight>=208?208:this._listHeight}px`}_buildingNameCreate(t,e,i,n){const r=window.document.createElement(t);return r.dataset.id=i,r.className="mapxus-building-name",r.innerHTML=e,n&&r.classList.add("active"),this._buildingNameClickEvent(r),r}_toggleList(t){this._$listContainer.style.display=t?"block":"none"}_buildingNameClickEvent(t){t.onclick||(t.onclick=t=>{const e=t.target;this._map.selectBuildingById(e.dataset.id)})}_buildingToggleListEvent(t,e){t.onmouseenter||(t.onmouseenter=t=>{this._toggleList(!0)}),t.onmouseleave||e||(t.onmouseleave=t=>{this._toggleList(!1)})}_$showLayout(){this._$container.classList.remove("hide")}_$hideLayout(){this._$container.classList.add("hide")}_updateBuildingListLayout(t){t.indexOf("left")>-1?(this._$listContainer.style.right=null,this._$listContainer.style.left="55px"):(this._$listContainer.style.left=null,this._$listContainer.style.right="55px");const e=this._$container.offsetParent?this._$container.offsetParent.clientHeight-(this._$container.offsetTop+this._$container.clientHeight)-25:0;t.includes("bottom")&&this._listHeight-20>e?(this._$listContainer.style.top=null,this._$listContainer.style.bottom="15px"):(this._$listContainer.style.bottom=null,this._$listContainer.style.top="20px")}}const _s=function(t,e){for(var i=-1,n=null==t?0:t.length;++i<n&&!1!==e(t[i],i,t););return t};const fs=function(t){return"function"==typeof t?t:xi};const gs=function(t,e){return(U(t)?_s:ji)(t,fs(e))};var ms=Math.max,ys=Math.min;const vs=function(t,e,i){return t>=ys(e,i)&&t<ms(e,i)};const bs=function(t,e,i){return e=no(e),void 0===i?(i=e,e=0):i=no(i),t=eo(t),vs(t,e,i)};class ws{_container;_indoor;_maplibre;_position="top-right";_buildingId=null;_floorNames;_ordinals;_ordinal=null;_style;_$innerFloors;_$activeFloor;_centerSelectorIdx;_lastNormalScrollableIdx;_$arrowBtnUp;_$arrowBtnDown;_maxScrollTop;_$selectorExpanded;_$selectorFolded;_componentDidMount=!1;_isEnabled;_visible=!1;_dragPan;constructor(t,e){const{style:i,enabled:n=!0}=e;this._indoor=t,this._style=i?Object.assign({},bo,i):bo,this._isEnabled=n,this._bindEvents()}onAdd(t){return this._maplibre=t,this._addMapMoveEventListener(),this._container=document.createElement("div"),this._container.className="maplibregl-ctrl mapxus-ctrl-floors hidden",this._container}onRemove(){this._container.parentNode.removeChild(this._container)}get position(){return this._position}get enabled(){return this._isEnabled}setEnabled(t){this._isEnabled=t,t&&!this._visible&&this._setVisibility(!0),!t&&this._visible&&this._setVisibility(!1)}getDefaultPosition(){return"top-right"}switchByOrdinal(t,e){this._ordinal=t,this._dragPan=e??!0,this._indoor.switchFloorByOrdinal(t),this._updateSelectorStatus(t),this._scrollCenterActiveFloor()}setVisibility(t){this._componentDidMount?t?this._show():this._hide():this._visible=t}setPosition(t){const e=document.querySelector(`.maplibregl-ctrl-${this._position}`),i=e.querySelector(".mapxus-ctrl-floors"),n=document.querySelector(`.maplibregl-ctrl-${t}`);i&&(e.removeChild(i),n.prepend(i),this._position=t),this._show(),this._scrollCenterActiveFloor()}changePosition(t,e,i){const n=document.querySelector(`.maplibregl-ctrl-${t}`),r=n.querySelector(".mapxus-ctrl-floors");if(t!==e){this._position=e;const t=document.querySelector(`.maplibregl-ctrl-${e}`);r&&(n.removeChild(r),hs(i)?t.insertBefore(r,t.children[i]):t.append(r),this._show(),this._scrollCenterActiveFloor())}else hs(i)&&n.children[i]!==r&&(n.removeChild(r),n.insertBefore(r,n.children[i]),this._show(),this._scrollCenterActiveFloor())}setStyle(t){this._style=Object.assign({},this._style,t),this._componentDidMount&&(this._clearFloors(),this._render(),this._scrollCenterActiveFloor(),this._componentDidMount=!0)}_setVisibility(t){this._componentDidMount?t?(this._show(),this._scrollCenterActiveFloor()):this._hide():(this._visible=t,this._indoor.building&&t&&(this._mountFloors(this._indoor.building),this._show(),this._scrollCenterActiveFloor()))}_bindEvents(){this._indoor.on("selectedBuildingChanged",(({buildingId:t,ordinal:e,dragPan:i})=>{if(this._buildingId=t,this._ordinal=e,this._dragPan=i,this._visible&&this._hide(),this._componentDidMount&&this._clearFloors(),this._indoor.building){this._mountFloors(this._indoor.building);const t=this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0];this.enabled&&(!1!==this._dragPan||!1===this._dragPan&&t)&&(this._show(),this._scrollCenterActiveFloor())}else this._clearState()}))}_addMapMoveEventListener(){this._maplibre.on("moveend",(()=>{if(this.enabled&&!1===this._dragPan&&this._buildingId){const t=this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0];t?this._componentDidMount?this._visible||(this._show(),this._scrollCenterActiveFloor()):(this._mountFloors(t),this._show(),this._scrollCenterActiveFloor()):this._componentDidMount&&this._visible&&this._hide()}}))}_mountFloors(t){this._updateFloorSelector(t),this._componentDidMount=!0}_updateFloorSelector(t){const{level_names:e,ordinals:i}=t.properties;this._floorNames=e.split(",").reverse(),this._ordinals=i.split(",").reverse(),this._render()}_clearState(){this._floorNames=[],this._ordinals=[],this._ordinal=null}_render(){const{itemCount:t,itemSize:e}=this._style;this._centerSelectorIdx=Math.ceil(t/2)-1,this._maxScrollTop=(this._floorNames.length-t)*e,this._lastNormalScrollableIdx=this._floorNames.length-(t-this._centerSelectorIdx-1)-1,this._createFloors()}_hide(){this._container.classList.add("hidden"),this._visible=!1}_show(){this._container.classList.remove("hidden"),this._visible=!0}_createFloors(){this._$selectorFolded=this._$foldedSelector(this._container,(()=>{this._expandSelector(!0),this._scrollCenterActiveFloor()})),this._$selectorExpanded=this._$expandedSelector(this._container,(()=>this._expandSelector(!1)))}_$expandedSelector(t,e){const{itemSize:i,itemCount:n,defaultFolded:r,backgroundColor:o}=this._style,s=ds("div","mapxus-ctrl-floors-expanded "+(r?"hidden":""),t);if(this._floorNames.length>1){ds("div","mapxus-ctrl-floors-close",s).onclick=e}const a=ds("div","mapxus-ctrl-floors-wrapper",s);return a.style.backgroundColor=o,this._floorNames.length>n&&(this._$arrowBtnUp=this._$createScrollButton(a,"up"),this._$arrowBtnUp.onclick=()=>this._handleScroll("up")),this._$innerFloors=ds("div","mapxus-ctrl-floors-inner",a),Object.assign(this._$innerFloors.style,{maxHeight:i*n+"px",width:`${i}px`}),this._$createFloors(this._$innerFloors),this._floorNames.length>n&&(this._$arrowBtnDown=this._$createScrollButton(a,"down"),this._$arrowBtnDown.onclick=()=>this._handleScroll("down"),this._$innerFloors.addEventListener("scroll",zo((t=>{t.stopPropagation(),this._resetArrowBtnStatus(this._$innerFloors.scrollTop)}),100))),s}_$foldedSelector(t,e){const{itemSize:i,activeFontColor:n,activeBackgroundColor:r,defaultFolded:o}=this._style,s=ds("div","mapxus-ctrl-floors-folded mapxus-ctrl-floors-floor "+(o?"":"hidden"),t);return s.onclick=e,Object.assign(s.style,{width:`${i}px`,height:`${i}px`,lineHeight:`${i}px`,color:n,backgroundColor:r}),s}_clearFloors(){this._container.innerHTML="",this._componentDidMount=!1}_$createScrollButton(t,e){return ds("div",`mapxus-ctrl-floors-arrow mapxus-ctrl-floors-floor ${e}`,t)}_$createFloors(t){const{fontColor:e,itemSize:i}=this._style;let n;gs(this._floorNames,((r,o)=>{n=ds("div","mapxus-ctrl-floors-floor",t),n.dataset.floor=r,n.dataset.ordinal=this._ordinals[o],n.innerText=r,Object.assign(n.style,{color:e,height:`${i}px`,lineHeight:`${i}px`}),n.dataset.ordinal===this._ordinal&&(this._$activeFloor=n,this._resetActiveFloor(!0),this._$selectorFolded.innerText=r),n.onclick=t=>{this._indoor.setDragPan("restrict"),this.switchByOrdinal(t.target.dataset.ordinal)}}))}_updateSelectorStatus(t){const e=this._floorNames[this._ordinals.indexOf(t)];this._$activeFloor&&this._resetActiveFloor(!1),gs(this._$innerFloors.children,(e=>{e.dataset.ordinal===t&&(this._$activeFloor=e,this._resetActiveFloor(!0))})),this._$selectorFolded.innerText=e}_resetArrowBtnStatus(t){0===t?this._$arrowBtnUp?.classList?.add("hidden"):this._$arrowBtnUp?.classList?.remove("hidden"),t===this._maxScrollTop?this._$arrowBtnDown?.classList?.add("hidden"):this._$arrowBtnDown?.classList?.remove("hidden")}_resetActiveFloor(t){const{activeBackgroundColor:e,backgroundColor:i,activeFontColor:n,fontColor:r}=this._style;Object.assign(this._$activeFloor.style,{color:t?n:r,backgroundColor:t?e:i,fontWeight:t?"bold":"normal",cursor:t?"auto":"pointer"}),this._$activeFloor.disabled=t}_scrollCenterActiveFloor(){if(this._ordinal){const t=this._ordinals.indexOf(this._ordinal);t>-1&&(this._$innerFloors.scrollTop=this._getScrollTop(t),this._$innerFloors.scrollTop||this._resetArrowBtnStatus(0))}}_getScrollTop(t){return bs(this._centerSelectorIdx,this._lastNormalScrollableIdx+1)?(t-this._centerSelectorIdx)*this._style.itemSize:t>this._lastNormalScrollableIdx?this._maxScrollTop:0}_handleScroll(t){const e=this._$innerFloors.scrollTop,{itemSize:i}=this._style;if("up"===t){const t=e-2*i;this._$innerFloors.scrollTop=t<0?0:t}else if("down"===t){const t=e+2*i;this._$innerFloors.scrollTop=t>this._maxScrollTop?this._maxScrollTop:t}}_expandSelector(t){t?(this._$selectorExpanded.classList.remove("hidden"),this._$selectorFolded.classList.add("hidden")):(this._$selectorExpanded.classList.add("hidden"),this._$selectorFolded.classList.remove("hidden"))}}class Ls{_container;onAdd(t){this._container=ds("div","maplibregl-ctrl mapxus-ctrl-logo",t.getContainer());const e=ds("a","mapxus-logo",this._container);return e.target="_blank",e.href="https://www.khi.co.jp/groupvision2030/mapxus.html",e.setAttribute("aria-label","Mapxus logo"),e.setAttribute("rel","noopener"),this._container.appendChild(e),this._container}onRemove(){us(this._container)}getDefaultPosition(){return"bottom-left"}}class Bs{_container;_anchor;_theme;constructor(t){this._theme=t.theme?t.theme:"default"}onAdd(t){return this._container=ds("div","maplibregl-ctrl mapxus-ctrl-attribution",t.getContainer()),this._anchor=ds("a","mapxus-attribution",this._container),this._anchor.target="_blank",this._setCopyrightInfo(this._theme),this._anchor.setAttribute("aria-label","Mapxus attribution"),this._anchor.setAttribute("rel","noopener"),this._container.appendChild(this._anchor),this._container}onRemove(){us(this._container)}getDefaultPosition(){return"bottom-right"}changeTheme(t){this._setCopyrightInfo(t)}_setCopyrightInfo(t){this._anchor.innerText="landsD"===t?"© The Government of the Hong Kong SAR":"© OpenStreetMap contributors",this._anchor.href="landsD"===t?"https://www.map.gov.hk/gm/":"https://www.openstreetmap.org/copyright/"}}class Ss{_container;onAdd(t){return this._container=ds("div","maplibregl-ctrl mapxus-ctrl-collapsed-copyright",t.getContainer()),this._container.innerHTML='\n <div class="mapxus-collapsed-copyright-content">\n <div class="mapxus-collapsed-copyright-menu hidden">\n <div class="mapxus-collapsed-copyright-logo" onclick="window.open(\'https://www.khi.co.jp/groupvision2030/mapxus.html\')"></div>\n <div class="mapxus-collapsed-horizontal-divider"></div>\n <div class="mapxus-collapsed-copyright-text" onclick="window.open(\'https://www.openstreetmap.org/copyright/\')"></div>\n </div>\n <div class="mapxus-collapsed-copyright-btn"></div>\n </div>\n ',this._bindEvents(),this._container}onRemove(t){us(this._container)}getDefaultPosition(){return"bottom-right"}_bindEvents(){const t=this._container.querySelector(".mapxus-collapsed-copyright-menu"),e=this._container.querySelector(".mapxus-collapsed-copyright-btn");let i=!1;e.addEventListener("click",(()=>(i=!i,void(i?t.classList.remove("hidden"):t.classList.add("hidden")))))}}const Is="v3";function xs(t){return`${yr.hl}/api/${Is}/tiles/styles/${t}`}const Ms=xs("christmas_mims2_v1"),Fs=xs("common_mims2_v1"),ks=xs("halloween_mims2_v1"),Cs=xs("mappybee_mims2_v1"),Ps=xs("mapxus_mims2_v1"),$s=xs("lands_d_mims2_v1"),Es=xs("mapxus_mims2_v5");class js{_indoor;_isEnabled=!0;constructor(t){this._indoor=t}enable(){this._isEnabled=!0,this._indoor.setAllowOutdoorSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowOutdoorSwitch(!1)}get isEnabled(){return this._isEnabled}}class Os{_indoor;_isEnabled=!0;constructor(t){this._indoor=t}enable(){this._isEnabled=!0,this._indoor.setAllowBuildingSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowBuildingSwitch(!1)}get isEnabled(){return this._isEnabled}}class Vs{_buildingSelector;_isEnabled=!0;_position;constructor(t){this._buildingSelector=t}enable(){this._isEnabled=!0,this._buildingSelector.enabled||this._buildingSelector.setVisibility(!0)}disable(){this._isEnabled=!1,this._buildingSelector.enabled&&this._buildingSelector.setVisibility(!1)}setPosition(t,e){this._position=t,this._buildingSelector.changePosition(this._buildingSelector.position,t,e)}get isEnabled(){return this._isEnabled}get position(){return this._position}}class As{_floorSelector;_isEnabled;_position;constructor(t){this._floorSelector=t,this._position=t.position,this._isEnabled=this._floorSelector.enabled}enable(){this._isEnabled=!0,this._floorSelector.setEnabled(!0)}disable(){this._isEnabled=!1,this._floorSelector.setEnabled(!1)}setPosition(t,e){this._position=t,this._floorSelector.changePosition(this._floorSelector.position,t,e)}setStyle(t){this._floorSelector.setStyle(t)}get isEnabled(){return this._isEnabled}get position(){return this._position}}class Ts extends Ti.a${_map;_indoor;_poi;_floorsControl;_buildingFilterControl;_attributionControl;_initialHiddenLayers;_language;_dispatch;_fitBuildingBounds;_history=Eo.getInstance();_hiddenBuildings=jo.getInstance().getHiddenBuildings();switchOutdoor;switchBuilding;buildingSelector;floorSelector;constructor(t){super();const{map:e,appId:i,secret:n,poiId:o,floorId:s,buildingId:a,venueId:l,theme:c=r.SV.MAPXUS_V2,enableFloorControl:u,floorSelectorEnabled:d,enableBuildingSelector:h,buildingSelectorEnabled:p,hiddenOutdoor:_,outdoorMapShown:f,collapseCopyright:g=!1,floorSwitchMode:m,maskNonSelectedAreas:y,fitBuildingBounds:v=!1,boundsPadding:b=30,selectedBuildingBorderStyle:w,floorsControlStyle:L,floorSelectorStyle:B,language:S=wo,autoSelectBuilding:I=!1}=t;if(!e)throw new Error("Outdoor Map parameter missing.");if(!i||!n)throw new Error("Permission parameter missing.");Sr.verifyPermission(i,n).then((()=>{this._map=e,this._language=S,this._indoor=new ls({map:this._map,startWithIndoorView:Boolean(l||a||s||o),outdoorMapShown:void 0===_?f:!_,floorSwitchMode:m,fitBuildingBounds:v,boundsPadding:b,maskNonSelectedAreas:y,selectedBuildingBorderStyle:w}),this._poi=new cs(this._map),this._fitBuildingBounds=v,this._resourceRequestTransform(),this._setStyle(this._getStyleUrl(c)),this._checkMapZoom(),this._dispatch=$o("mapClick","pointClick"),g?this._attributionControl=new Ss:(this._attributionControl=new Bs({theme:c}),this._addControl(new Ls)),this._addControl(this._attributionControl),this._addControl(this._buildingFilterControl=new ps(this,"top-right",h??p)),this._addControl(this._floorsControl=new ws(this._indoor,{style:L??B,enabled:u??d})),o?this._selectPoiById(o):s?this.selectFloorById(s):a?this.selectBuildingById(a):l&&this.selectVenueById(l),this.switchOutdoor=new js(this._indoor),this.switchBuilding=new Os(this._indoor),this.buildingSelector=new Vs(this._buildingFilterControl),this.floorSelector=new As(this._floorsControl),this._map.once("styledata",(()=>this._hideIndoorLayers())),this._map.on("click",(async t=>{const{point:e,lngLat:i}=t;await this._indoor.selectBuildingByClickMap(e),this._dispatch.call("pointClick",null,{point:e,coordinate:i}),this._dispatch.call("mapClick",null,{coordinate:i,venue:this.venue,building:this.building,floor:this.floor})})),this._map.on("error",zo((t=>this._updatePermission(t,i,n)),350)),this._indoor.once("maplibreMapLoaded",(()=>{this._showIndoorLayers(),this.setLanguage(this._language)})),this._indoor.once("indoorMapLoaded",(t=>{I&&this._map.on("moveend",(()=>this._selectCenterBuilding())),this.fire(new Ti.Jh("isRenderComplete",t))}))})).catch((t=>{throw t}))}renderComplete(t){this.on("isRenderComplete",t)}getIndoor(){return this._indoor}getMaplibre(){return this._map}getMap(){return this._map}get floor(){return this.getIndoor()?.floor??null}get building(){return this.getIndoor()?.building??null}get venue(){return this.getIndoor()?.venue??null}transformPoiTextFieldLanguage(t){const e=this._map?.getStyle();if(e){const i=o(e),n=ts(i,(({type:t})=>"symbol"===t));if(n.length){const e=(0,yo.y)(t);(0,yo.E)(n,e).forEach((({layerId:t,languages:e})=>{this._map.getLayer(t)&&this._map.setLayoutProperty(t,"text-field",e)}))}}}setLanguage(t){this._language!==t&&(this._language=t);const e=this._map?.getStyle(),i=e?.layers;if(i&&i.length){const e=i.filter((({type:t})=>"symbol"===t));e.length&&e.forEach((({id:e})=>{this._map.getLayer(e)&&this._map.setLayoutProperty(e,"text-field",["coalesce",["get",`name:${t}`],["get","name"]])}))}}enableSwitch(){return this._indoor?.enableSwitch(),this}disableSwitch(){return this._indoor?.disableSwitch(),this}enableSwitchBuilding(){return this._indoor?.enableSwitchBuilding(),this}disableSwitchBuilding(){return this._indoor?.disableSwitchBuilding(),this}setOutdoorLayerHidden(t){this.getIndoor()?.hiddenOutdoorLayer(t)}setOutdoorMapShown(t){this.getIndoor()?.setOutdoorMapShown(t)}getFeature(t){return this.getIndoor()?.getFeature(t)}getIndoorFeaturesByCoordinates(t,e){const i=this._map.project(t),n=this._map.queryRenderedFeatures(i,{layers:["mapxus-venue-fill","mapxus-building-line","mapxus-level-fill","mapxus-level-fill-overlap-copy"]});let r=null,o=null,s=null;if(n.length){const t=n.filter((t=>t.layer.id.includes("mapxus-level-fill")));s=To(t,(t=>hs(e)?t.properties.ordinal===e+"":t.layer.id.startsWith("mapxus-level-fill"))),s&&(o=To(n,(t=>t.properties.id===s.properties["ref:building"])),r=To(n,(t=>t.properties.id===o.properties["ref:venue"])))}return{venue:r,building:o,level:s}}getFeaturesById(t,e){return this.getIndoor()?.getFeaturesById(t,e)||[]}async selectFloorById(t,e){const{dragPan:i=!0}=e||{};if(this._indoor.setDragPan(i),t===this.floor?.id)i&&(this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter());else{let e,n,r;if(this._fitBuildingBounds){e=await xo(t),n=Ai(e),r=!0;const{maxLat:i,maxLon:o,minLat:s,minLon:a}=e.bbox;this._indoor.setBuildingBounds([[a,s],[o,i]])}else n=To(this._indoor?.features||[],(e=>e.properties?.level_ids?.includes(t)&&"mapxus-building-line"===e.layer.id))??null,n?r=!1:(e=await xo(t),n=Ai(e),r=!0);if(n&&n?.properties?.id===this.building?.properties?.id){const{level_ids:e,ordinals:r}=n.properties,o=e.split(",").indexOf(t),s=r.split(",")[o]??null;this._floorsControl.switchByOrdinal(s,i)}else await(this._indoor?.selectBuilding(n,{floorId:t,featureIncomplete:r}))}}async selectBuildingById(t,e){const{dragPan:i=!0}=e||{};if(this._indoor.setDragPan(i),t===this.building?.properties?.id)i&&(this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter());else{let e,i,n=!1;if(this._fitBuildingBounds){e=await Io(t),i=Ai(e),n=!0;const{maxLat:r,maxLon:o,minLat:s,minLon:a}=e.bbox;this._indoor.setBuildingBounds([[a,s],[o,r]])}else i=this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(t,{layerIds:["mapxus-building-line"]})[0]||null,i||(e=await Io(t),i=Ai(e),n=!0);await(this._indoor?.selectBuilding(i,{featureIncomplete:n}))}}async selectVenueById(t,e){const{dragPan:i=!0}=e||{};if(this._indoor.setDragPan(i),t)if(t===this.venue?.properties?.id)i&&(this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter());else{let e=this._history.getHistoryBuilding(t);if(!e){const i=this._map.getLayer("mapxus-venue-fill")&&this.getFeaturesById(t,{layerIds:["mapxus-venue-fill"]})[0];if(i){const{default_displayed_building:t,building_ids:n}=i.properties;e=t||(n?.split(",")||[])[0]}else{const i=await async function(t){try{return(await Bo.searchByIds(t)).data.result.venues[0]}catch(t){throw new Error(t)}}(t);e=i.defaultBuilding||i.buildings[0]?.id}}await this.selectBuildingById(e,{dragPan:i})}else await(this._indoor?.selectBuilding(null))}onMapClickListener(t){const e=is("mapClick.");return this._dispatch?.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}onPoiClickListener(t){return this._poi?.onPoiClick(t)}onPointClickListener(t){const e=is("pointClick.");return this._dispatch?.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}onMapChangeListener(t){return this._indoor?.onMapChange(t)}disableBuildingSelector(){return this._buildingFilterControl?.enabled&&this._buildingFilterControl.setVisibility(!1),this}enableBuildingSelector(t){return t&&t!==this._buildingFilterControl?.position&&this._buildingFilterControl.changePosition(this._buildingFilterControl.position,t),this._buildingFilterControl?.enabled||this._buildingFilterControl.setVisibility(!0),this}switchTheme(t){this._setStyle(this._getStyleUrl(t)),"changeTheme"in this._attributionControl&&this._attributionControl.changeTheme(t),this._map?.once("styledata",zo((()=>this._setIndoorFilter()),250))}setFloorsControlStyle(t){return this._floorsControl?.setStyle(t),this}setFloorSelectorStyle(t){return this._floorsControl?.setStyle(t),this}setSelectedBuildingBorderStyle(t){return this._indoor?.setSelectedBuildingBorderStyle(t),this}_getStyleUrl(t){let e;if(so(r.SV).indexOf(t)>-1)switch(t){case r.SV.CHRISTMAS:e=Ms;break;case r.SV.HALLOWEEN:e=ks;break;case r.SV.MAPPY_BEE:e=Cs;break;case r.SV.MAPXUS:e=Ps;break;case r.SV.MAPXUS_V2:e=Es;break;case r.SV.COMMON:e=Fs;break;case r.SV.LANDS_D:e=$s}else e=function(t){return xs(t)}(t);return e}_setIndoorFilter(){this._indoor.updateCustomLayers(),this._indoor.updateRendering()}_setStyle(t){this._map?.setStyle(t,{localIdeographFontFamily:!1})}_addControl(t,e){this._map.addControl(t,e)}async _selectPoiById(t){try{const e=await async function(t){try{return(await So.searchByIds([t])).data.result.pois[0]}catch(t){throw new Error(t)}}(t),{floorId:i,location:{lon:n,lat:r}}=e;await this.selectFloorById(i),this._map.panTo([n,r])}catch(t){throw new Error(t)}}_resourceRequestTransform(){this._map.setTransformRequest(Sr.transformRequest)}_checkMapZoom(){const t=this._map.getZoom();(t<8||t>22)&&t>1&&console.warn("Indoor maps perform better at zoom levels [8, 22].")}_hideIndoorLayers(){this._map.getLayer("mapxus-venue-fill")&&this._map.setPaintProperty("mapxus-venue-fill","fill-opacity",0),this._map.getLayer("mapxus-building-line-color")&&this._map.setPaintProperty("mapxus-building-line-color","line-opacity",0),this._initialHiddenLayers=o(this._map.getStyle()).filter((({id:t})=>!t.includes("mapxus-building")||"mapxus-venue-fill"!==t)),this._initialHiddenLayers.forEach((({id:t})=>{this._map.getLayer(t)&&this._map.setLayoutProperty(t,"visibility","none")}))}_showIndoorLayers(){gs(this._initialHiddenLayers,(({id:t})=>{this._map.getLayer(t)&&this._map.setLayoutProperty(t,"visibility","visible")}))}_updatePermission(t,e,i){401===t.error?.status&&Sr.verifyPermission(e,i).then((()=>{this._resourceRequestTransform()}))}_selectCenterBuilding(){const t=this._getCenterBuildingsMap();if(t.size){let e=t.entries().next().value[0];const i=this._history.getHistoryBuildings();if(i.size){const n=Array.from(i).reverse();for(const i of n)if(t.get(i)){e=i;break}}this.selectBuildingById(e,{dragPan:!1})}}_getCenterBuildingsMap(){const t=this._map.getCanvas().getBoundingClientRect(),e=t.width/4,i=t.height/4,n=[e,i],r=[t.width-e,t.height-i];let o=this._map.queryRenderedFeatures([n,r],{layers:["mapxus-building-line"]});return o=Ko(o,"properties.id"),o=ts(o,(t=>!this._hiddenBuildings.has(t.properties.id))),new globalThis.Map(o.map((t=>[`${t.properties.id}`,t])))}}async function Rs(t,e){if(!t.hasImage(e))try{const i=await t.loadImage(e);t.addImage(e,i.data)}catch(t){throw new Error(t)}}class Ns{_maplibreMap;_layerId;_sourceId;_imageName="poi-01";_imageSize=.75;_iconAnchor="bottom";constructor(t){this._maplibreMap=t;const e=is();this._layerId=`MXMap_preset_marker_layer_${e}`,this._sourceId=`MXMap_preset_marker_source_${e}`}async setIcon(t){t&&await Rs(this._maplibreMap,t),this._imageName=t}setIconSize(t){this._imageSize=t}setIconAnchor(t){this._iconAnchor=t}get layerId(){return this._layerId}get sourceId(){return this._sourceId}create(t){if(t.length){const e=Mr(t,(t=>this._createIconFeature(t)));this._addIconSource(e),this._addIconLayer()}}updateData(t){const e=!(!t.remove||!t.remove.length),i=!(!t.add||!t.add.length),n=!(!t.update||!t.update.length);if(e||i||n){const r=this._maplibreMap.getSource(this._sourceId),o={};e&&(o.remove=t.remove.map((t=>String(t)))),i&&(o.add=t.add.map((t=>this._createIconFeature(t)))),n&&(o.update=t.update.map((t=>{const e="properties"in t,i=this._createIconFeature(t),{id:n,geometry:r,properties:o}=i;return{id:n,newGeometry:r,removeAllProperties:e,...o?{addOrUpdateProperties:Mr(o,((t,e)=>({key:e,value:t})))}:{}}}))),r.updateData(o)}}remove(){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.removeLayer(this._layerId),this._maplibreMap.getSource(this._sourceId)&&this._maplibreMap.removeSource(this._sourceId)}onEventListener(t,e){const i=t=>this._handleEventListener(t,e);return this._maplibreMap.on(t,this._layerId,i),{offEventListener:()=>this._maplibreMap.off(t,this._layerId,i)}}on(t,e){const i=t=>this._handleEventListener(t,e);return this._maplibreMap.on(t,this._layerId,i),{off:()=>this._maplibreMap.off(t,this._layerId,i)}}setFilter(t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,t)}setFilterByVenue(t,e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","venueId"],t??""],["==",["get","ordinal"],e??""]],["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]]])}setFilterByBuilding(t,e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","buildingId"],t??""],["==",["get","ordinal"],e??""]],["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]]])}setOpacity(t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",t)}setOpacityByVenue(t,e){if(this._maplibreMap.getLayer(this._layerId)){const i=["case",["all",["==",["get","venueId"],t??""],["==",["get","ordinal"],e??""]],1,["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]],1,.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",i)}}setOpacityByBuilding(t,e){if(this._maplibreMap.getLayer(this._layerId)){const i=["case",["all",["==",["get","buildingId"],t??""],["==",["get","ordinal"],e??""]],1,["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]],1,.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",i)}}_createIconFeature(t){const{lngLat:e,properties:i}=t;return{id:"featureId"in t&&hs(t.featureId)?String(t.featureId):void 0,type:"Feature",geometry:{type:"Point",coordinates:e},properties:i||null}}_addIconSource(t){const e={type:"geojson",data:{type:"FeatureCollection",features:t}};this._maplibreMap.addSource(this._sourceId,e)}_addIconLayer(){this._maplibreMap.addLayer({id:this._layerId,type:"symbol",source:this._sourceId,layout:{"icon-image":this._imageName,"icon-size":this._imageSize,"icon-anchor":this._iconAnchor,"icon-allow-overlap":!0}})}_handleEventListener(t,e){const{point:i}=t;e(this._maplibreMap.queryRenderedFeatures(i,{layers:[this._layerId]})[0])}}const Hs={indoor_line_color:"#45b1cc",outdoor_line_color:"#8183ba",dashed_line_color:"#969696",bus_line_color:"#fb923c"},Ws="mmws-source-line-solid",Ds="mmws-layer-line-solid",Zs="mmws-layer-icon-triangle",zs="mmws-source-line-dashed",Gs="mmws-layer-line-dashed",Ys="mmws-source-icon-connector",Xs="mmws-layer-icon-connector",Js="mmws-source-icon-marker",Us="mmws-layer-icon-marker",qs=[Ds,Zs,Gs,Xs,Us],Ks=[Ws,zs,Ys,Js];class Qs{_maplibreMap;_fromMarkerIcon="poi-02";_toMarkerIcon="poi-01";_stopMarkerIcons=["waypoint-01"];_markerIconSize=.75;_paintProperties=Hs;constructor(t){this._maplibreMap=t}async setMarkerIcons(t){if(U(t)&&t.length){const e=t.filter((t=>!!t));e.length&&await Promise.all(e.map((t=>Rs(this._maplibreMap,t)))),this._fromMarkerIcon=t[0],this._toMarkerIcon=t[t.length-1];const i=t.slice(1,t.length-1);this._stopMarkerIcons=i.length?i:[t[0]]}else if("from"in t&&("string"==typeof t.from&&t.from?(await Rs(this._maplibreMap,t.from),this._fromMarkerIcon=t.from):this._fromMarkerIcon=null),"to"in t&&("string"==typeof t.to&&t.to?(await Rs(this._maplibreMap,t.to),this._toMarkerIcon=t.to):this._toMarkerIcon=null),"stops"in t)if(U(t.stops)){const e=t.stops.filter((t=>!!t));e.length&&await Promise.all(e.map((t=>Rs(this._maplibreMap,t)))),this._stopMarkerIcons=t.stops}else this._stopMarkerIcons=[null]}setMarkerIconSize(t){return this._markerIconSize=t,this}setIndoorLineColor(t){return Object.assign(this._paintProperties,{indoor_line_color:t}),this}setOutdoorLineColor(t){return Object.assign(this._paintProperties,{outdoor_line_color:t}),this}setDashedLineColor(t){return Object.assign(this._paintProperties,{dashed_line_color:t}),this}setBusLineColor(t){return Object.assign(this._paintProperties,{bus_line_color:t}),this}render(t,e){const{instructions:i,points:{coordinates:n}}=t,{lineFeatures:r,connectorFeatures:o,dashedLineFeatures:s,markerFeatures:a}=this._classifyFeatures(i,n,e);this._renderSolidLines(r),this._renderDashedLines(s),this._renderConnectors(o),this._renderMarkers(a)}remove(){qs.forEach((t=>{this._maplibreMap.getLayer(t)&&this._maplibreMap.removeLayer(t)})),Ks.forEach((t=>{this._maplibreMap.getSource(t)&&this._maplibreMap.removeSource(t)}))}setFilterByVenue(t,e){const i=["case",["any",["all",["==",["get","ordinal"],e??""],["==",["get","venue_id"],t??""]],["all",["==",["get","ordinal"],""],["==",["get","venue_id"],""]]],1,.5];qs.forEach((t=>{this._maplibreMap.getLayer(t)&&this._maplibreMap.setPaintProperty(t,t.includes("line")?"line-opacity":"icon-opacity",i)}))}setFilterByBuilding(t,e){const i=["case",["any",["all",["==",["get","ordinal"],e??""],["==",["get","building_id"],t??""]],["all",["==",["get","ordinal"],""],["==",["get","building_id"],""]]],1,.5];qs.forEach((t=>{this._maplibreMap.getLayer(t)&&this._maplibreMap.setPaintProperty(t,t.includes("line")?"line-opacity":"icon-opacity",i)}))}_classifyFeatures(t,e,i){const n=[],r=[],o=[],s=[],a=[];gs(t,((i,o)=>{const{venue_id:s,building_id:l,floor_id:c,ordinal:u,sign:d,type:h,interval:[p,_]}=i;if(function(t){return 5===t}(d))a.push(i);else if(function(t){return 100===t||-100===t}(d)){0!==o&&o!==t.length-1&&r.push(this._createIconFeature(e[p],{...ta({venue_id:s,building_id:l,floor_id:c,ordinal:u}),icon:h}));const i=t[o+1];if(i){const{venue_id:t,building_id:n,floor_id:o,ordinal:s}=i;r.push(this._createIconFeature(e[_],{...ta({venue_id:t,building_id:n,floor_id:o,ordinal:s}),icon:h}))}}else n.push(this._createLineFeature(e.slice(p,_+1),ta({venue_id:s,building_id:l,floor_id:c,ordinal:u,isShuttleBus:ea(d)?1:0})))}));const l=t[0],{venue_id:c,building_id:u,floor_id:d,ordinal:h}=l,p=t[t.length-1],{venue_id:_,building_id:f,floor_id:g,ordinal:m}=p,y=e[0],v=e[e.length-1],b=i[0],w=i[i.length-1],L=i.slice(1,i.length-1);return b&&o.push(this._createLineFeature([b,y],ta({venue_id:c,building_id:u,floor_id:d,ordinal:h}))),w&&o.push(this._createLineFeature([v,w],ta({venue_id:_,building_id:f,floor_id:g,ordinal:m}))),a.length&&L.length&&a.forEach((({venue_id:t,building_id:i,floor_id:n,ordinal:r,interval:[a]},l)=>{o.push(this._createLineFeature([e[a],L[l]],ta({venue_id:t,building_id:i,floor_id:n,ordinal:r}))),s.push(this._createIconFeature(L[l],{...ta({venue_id:t,building_id:i,floor_id:n,ordinal:r}),icon:this._stopMarkerIcons[l]??this._stopMarkerIcons[this._stopMarkerIcons.length-1],iconSize:this._markerIconSize}))})),s.push(this._createIconFeature(b??y,{...ta({venue_id:c,building_id:u,floor_id:d,ordinal:h}),icon:this._fromMarkerIcon,iconSize:this._markerIconSize})),s.push(this._createIconFeature(w??v,{...ta({venue_id:_,building_id:f,floor_id:g,ordinal:m}),icon:this._toMarkerIcon,iconSize:this._markerIconSize})),{lineFeatures:n,connectorFeatures:r,dashedLineFeatures:o,markerFeatures:s}}_createLineFeature(t,e){return{type:"Feature",geometry:{type:"LineString",coordinates:t},properties:e}}_createIconFeature(t,e){return{type:"Feature",geometry:{type:"Point",coordinates:t},properties:e}}_renderSolidLines(t){this._addCollectionSource(Ws,t),this._addLineLayer(Ws,Ds,{"line-color":["case",["==",["get","isShuttleBus"],"1"],this._paintProperties.bus_line_color,["==",["get","floor_id"],""],this._paintProperties.outdoor_line_color,this._paintProperties.indoor_line_color]}),this._addTriangleLayer(Ws,Zs)}_renderDashedLines(t){this._addCollectionSource(zs,t),this._addLineLayer(zs,Gs,{"line-color":this._paintProperties.dashed_line_color,"line-dasharray":[.1,1.8]})}_renderConnectors(t){this._addCollectionSource(Ys,t),this._addIconLayer(Ys,Xs)}_renderMarkers(t){this._addCollectionSource(Js,t),this._addIconLayer(Js,Us,{"icon-anchor":"bottom"})}_addCollectionSource(t,e){this._maplibreMap.addSource(t,{type:"geojson",data:{type:"FeatureCollection",features:e}})}_addLineLayer(t,e,i){this._maplibreMap.addLayer({id:e,type:"line",source:t,layout:{"line-join":"round","line-cap":"round"},paint:{"line-width":4,...i||{}}})}_addTriangleLayer(t,e){this._maplibreMap.addLayer({id:e,type:"symbol",source:t,layout:{"symbol-placement":"line","symbol-spacing":1,"icon-size":.25,"icon-image":"east-blue-arrow-01"}})}_addIconLayer(t,e,i){this._maplibreMap.addLayer({id:e,type:"symbol",source:t,layout:{"icon-image":["get","icon"],"icon-size":["case",["has","iconSize"],["get","iconSize"],1],...i||{}}})}}function ta(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>[t,String(e??"")])))}function ea(t){return bs(t,104,108)}var ia=exports;for(var na in n)ia[na]=n[na];n.__esModule&&Object.defineProperty(ia,"__esModule",{value:!0})})();
|