@mapxus/mapxus-map-jp 7.7.1 → 7.8.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.css +183 -0
- package/dist/index.umd.js +1 -0
- package/{index.d.ts → es/index.d.ts} +694 -681
- package/es/index.mjs +1 -0
- package/es/utils/index.mjs +1 -0
- package/lib/index.cjs +1 -0
- package/lib/utils/index.cjs +1 -0
- package/package.json +9 -6
- package/index.js +0 -1
package/lib/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={109:(e,t,i)=>{i.d(t,{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},366:(e,t,i)=>{var n;i.d(t,{$:()=>n}),function(e){e.FOOT="foot",e.WHEELCHAIR="wheelchair",e.ESCALATOR="escalator",e.EMERGENCY="emergency"}(n||(n={}))},227:(e,t,i)=>{var n,r,o,s,a;i.d(t,{Kp:()=>s,MA:()=>n,LJ:()=>a,ys:()=>r,SV:()=>o,$O:()=>l.$}),function(e){e[e.SWITCHED_BY_BUILDING=0]="SWITCHED_BY_BUILDING",e[e.SWITCHED_BY_VENUE=1]="SWITCHED_BY_VENUE"}(n||(n={})),function(e){e.ENGLISH="en",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_TRADITIONAL="zh-Hant",e.JAPANESE="ja",e.KOREAN="ko"}(r||(r={})),function(e){e.CHRISTMAS="christmas",e.HALLOWEEN="halloween",e.MAPPY_BEE="mappyBee",e.MAPXUS="mapxus",e.LANDS_D="landsD",e.COMMON="common",e.MAPXUS_V2="mapxus_v2"}(o||(o={})),function(e){e.POINT="Point",e.POLYGON="Polygon",e.GATE="Gate"}(s||(s={})),function(e){e.DEFAULT_NAME="DefaultName"}(a||(a={}));var l=i(366)},776:(e,t,i)=>{function n(e,t,i){i[e]&&-1!==i[e].indexOf(t)||(i[e]=i[e]||[],i[e].push(t))}function r(e,t,i){if(i&&i[e]){const n=i[e].indexOf(t);-1!==n&&i[e].splice(n,1)}}function o(e,...t){for(const i of t)for(const t in i)i.hasOwnProperty(t)&&(e[t]=i[t]);return e}i.d(t,{Jh:()=>s,a$:()=>l});class s{_type;_target;constructor(e,t={}){o(this,t),this.type=e}get type(){return this._type}set type(e){this._type=e}get target(){return this._target}set target(e){this._target=e}}class a extends s{error;constructor(e,t={}){super("error",o({error:e},t))}}class l{_listeners;_oneTimeListeners;_eventedParent;_eventedParentData;on(e,t){return this._listeners=this._listeners||{},n(e,t,this._listeners),this}off(e,t){return r(e,t,this._listeners),r(e,t,this._oneTimeListeners),this}once(e,t){return this._oneTimeListeners=this._oneTimeListeners||{},n(e,t,this._oneTimeListeners),this}fire(e){"string"==typeof e&&(e=new s(e,arguments[1]||{}));const t=e.type;if(this.listens(t)){e.target=this;const i=this._listeners&&this._listeners[t]?this._listeners[t].slice():[];for(const t of i)t.call(this,e);const n=this._oneTimeListeners&&this._oneTimeListeners[t]?this._oneTimeListeners[t].slice():[];for(const i of n)r(t,i,this._oneTimeListeners),i.call(this,e);const s=this._eventedParent;s&&(o(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),s.fire(e))}else e instanceof a&&console.error(e.error);return this}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}},556:(e,t,i)=>{i.d(t,{Evented:()=>s.a$,OFFSET:()=>r.e$,PAGE:()=>r.KL,VERSION:()=>l,convertBrowserLangToPresetLang:()=>o.y,version:()=>a});const n="7.8.0";var r=i(109),o=i(666),s=i(776);const a=n,l=n},666:(e,t,i)=>{i.d(t,{E:()=>r,y:()=>o});var n=i(227);function r(e,t){return e.map((({id:e})=>({layerId:e,languages:["coalesce",["get",`name:${t}`],["get","name"]]})))}function o(e){return function(e){return/^en(-(US|GB|AU))?$/.test(e)}(e)?n.ys.ENGLISH:function(e){return/^zh(-(Hans|CN))?$/.test(e)}(e)?n.ys.CHINESE_SIMPLIFIED:function(e){return/^zh-(Hant|HK|TW)?$/.test(e)}(e)?n.ys.CHINESE_TRADITIONAL:function(e){return/^ja(-JP)?$/.test(e)}(e)?n.ys.JAPANESE:function(e){return/^ko(-KR)?$/.test(e)}(e)?n.ys.KOREAN:null}}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};i.r(n),i.d(n,{BuildingFilterControl:()=>bs,BuildingSelectorHandler:()=>Rs,BuildingsService:()=>po,DistanceSearchType:()=>r.Kp,Evented:()=>vr.Evented,FloorSelectorHandler:()=>Ds,FloorSwitchMode:()=>r.MA,FloorsControl:()=>Bs,Indoor:()=>hs,Map:()=>Ws,Marker:()=>Zs,OFFSET:()=>vr.OFFSET,PAGE:()=>vr.PAGE,Poi:()=>ps,PoisOrderBy:()=>r.LJ,PoisService:()=>fo,PresetLanguage:()=>r.ys,RoutePainter:()=>na,RouteService:()=>yo,SwitchBuildingHandler:()=>Ts,SwitchOutdoorHandler:()=>As,ThemeType:()=>r.SV,VERSION:()=>vr.VERSION,VehicleType:()=>r.$O,VenuesService:()=>uo,convertBrowserLangToPresetLang:()=>vr.convertBrowserLangToPresetLang,version:()=>vr.version});var r=i(227);function o(e){return e.layers.filter(s)}function s(e){return e.source===l}function a(e){return e.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(e){var t=_.call(e,g),i=e[g];try{e[g]=void 0;var n=!0}catch(e){}var r=f.call(e);return n&&(t?e[g]=i:delete e[g]),r};var y=Object.prototype.toString;const v=function(e){return y.call(e)};var b=h?h.toStringTag:void 0;const w=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":b&&b in Object(e)?m(e):v(e)};const L=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const S=function(e){if(!L(e))return!1;var t=w(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const I=d["__core-js_shared__"];var B,x=(B=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"";const M=function(e){return!!x&&x in e};var F=Function.prototype.toString;const k=function(e){if(null!=e){try{return F.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var P=/^\[object .+?Constructor\]$/,C=Function.prototype,E=Object.prototype,j=C.toString,$=E.hasOwnProperty,O=RegExp("^"+j.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const V=function(e){return!(!L(e)||M(e))&&(S(e)?O:P).test(k(e))};const N=function(e,t){return null==e?void 0:e[t]};const A=function(e,t){var i=N(e,t);return V(i)?i:void 0};const T=function(){try{var e=A(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const R=function(e,t,i){"__proto__"==t&&T?T(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i};const D=function(e){return function(t,i,n){for(var r=-1,o=Object(t),s=n(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===i(o[l],l,o))break}return t}};const W=D();const H=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n};const Z=function(e){return null!=e&&"object"==typeof e};const G=function(e){return Z(e)&&"[object Arguments]"==w(e)};var z=Object.prototype,Y=z.hasOwnProperty,X=z.propertyIsEnumerable;const J=G(function(){return arguments}())?G:function(e){return Z(e)&&Y.call(e,"callee")&&!X.call(e,"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,ee=Q&&Q.exports===K?d.Buffer:void 0;const te=(ee?ee.isBuffer:void 0)||q;var ie=/^(?:0|[1-9]\d*)$/;const ne=function(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&ie.test(e))&&e>-1&&e%1==0&&e<t};const re=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var oe={};oe["[object Float32Array]"]=oe["[object Float64Array]"]=oe["[object Int8Array]"]=oe["[object Int16Array]"]=oe["[object Int32Array]"]=oe["[object Uint8Array]"]=oe["[object Uint8ClampedArray]"]=oe["[object Uint16Array]"]=oe["[object Uint32Array]"]=!0,oe["[object Arguments]"]=oe["[object Array]"]=oe["[object ArrayBuffer]"]=oe["[object Boolean]"]=oe["[object DataView]"]=oe["[object Date]"]=oe["[object Error]"]=oe["[object Function]"]=oe["[object Map]"]=oe["[object Number]"]=oe["[object Object]"]=oe["[object RegExp]"]=oe["[object Set]"]=oe["[object String]"]=oe["[object WeakMap]"]=!1;const se=function(e){return Z(e)&&re(e.length)&&!!oe[w(e)]};const ae=function(e){return function(t){return e(t)}};var le="object"==typeof exports&&exports&&!exports.nodeType&&exports,ce=le&&"object"==typeof module&&module&&!module.nodeType&&module,ue=ce&&ce.exports===le&&c.process,de=function(){try{var e=ce&&ce.require&&ce.require("util").types;return e||ue&&ue.binding&&ue.binding("util")}catch(e){}}();var he=de&&de.isTypedArray;const pe=he?ae(he):se;var _e=Object.prototype.hasOwnProperty;const fe=function(e,t){var i=U(e),n=!i&&J(e),r=!i&&!n&&te(e),o=!i&&!n&&!r&&pe(e),s=i||n||r||o,a=s?H(e.length,String):[],l=a.length;for(var c in e)!t&&!_e.call(e,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ne(c,l))||a.push(c);return a};var ge=Object.prototype;const me=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ge)};const ye=function(e,t){return function(i){return e(t(i))}};const ve=ye(Object.keys,Object);var be=Object.prototype.hasOwnProperty;const we=function(e){if(!me(e))return ve(e);var t=[];for(var i in Object(e))be.call(e,i)&&"constructor"!=i&&t.push(i);return t};const Le=function(e){return null!=e&&re(e.length)&&!S(e)};const Se=function(e){return Le(e)?fe(e):we(e)};const Ie=function(e,t){return e&&W(e,t,Se)};const Be=function(){this.__data__=[],this.size=0};const xe=function(e,t){return e===t||e!=e&&t!=t};const Me=function(e,t){for(var i=e.length;i--;)if(xe(e[i][0],t))return i;return-1};var Fe=Array.prototype.splice;const ke=function(e){var t=this.__data__,i=Me(t,e);return!(i<0)&&(i==t.length-1?t.pop():Fe.call(t,i,1),--this.size,!0)};const Pe=function(e){var t=this.__data__,i=Me(t,e);return i<0?void 0:t[i][1]};const Ce=function(e){return Me(this.__data__,e)>-1};const Ee=function(e,t){var i=this.__data__,n=Me(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};function je(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}je.prototype.clear=Be,je.prototype.delete=ke,je.prototype.get=Pe,je.prototype.has=Ce,je.prototype.set=Ee;const $e=je;const Oe=function(){this.__data__=new $e,this.size=0};const Ve=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i};const Ne=function(e){return this.__data__.get(e)};const Ae=function(e){return this.__data__.has(e)};const Te=A(d,"Map");const Re=A(Object,"create");const De=function(){this.__data__=Re?Re(null):{},this.size=0};const We=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var He=Object.prototype.hasOwnProperty;const Ze=function(e){var t=this.__data__;if(Re){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return He.call(t,e)?t[e]:void 0};var Ge=Object.prototype.hasOwnProperty;const ze=function(e){var t=this.__data__;return Re?void 0!==t[e]:Ge.call(t,e)};const Ye=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Re&&void 0===t?"__lodash_hash_undefined__":t,this};function Xe(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}Xe.prototype.clear=De,Xe.prototype.delete=We,Xe.prototype.get=Ze,Xe.prototype.has=ze,Xe.prototype.set=Ye;const Je=Xe;const Ue=function(){this.size=0,this.__data__={hash:new Je,map:new(Te||$e),string:new Je}};const qe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const Ke=function(e,t){var i=e.__data__;return qe(t)?i["string"==typeof t?"string":"hash"]:i.map};const Qe=function(e){var t=Ke(this,e).delete(e);return this.size-=t?1:0,t};const et=function(e){return Ke(this,e).get(e)};const tt=function(e){return Ke(this,e).has(e)};const it=function(e,t){var i=Ke(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this};function nt(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}nt.prototype.clear=Ue,nt.prototype.delete=Qe,nt.prototype.get=et,nt.prototype.has=tt,nt.prototype.set=it;const rt=nt;const ot=function(e,t){var i=this.__data__;if(i instanceof $e){var n=i.__data__;if(!Te||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new rt(n)}return i.set(e,t),this.size=i.size,this};function st(e){var t=this.__data__=new $e(e);this.size=t.size}st.prototype.clear=Oe,st.prototype.delete=Ve,st.prototype.get=Ne,st.prototype.has=Ae,st.prototype.set=ot;const at=st;const lt=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const ct=function(e){return this.__data__.has(e)};function ut(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new rt;++t<i;)this.add(e[t])}ut.prototype.add=ut.prototype.push=lt,ut.prototype.has=ct;const dt=ut;const ht=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1};const pt=function(e,t){return e.has(t)};const _t=function(e,t,i,n,r,o){var s=1&i,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&i?new dt:void 0;for(o.set(e,t),o.set(t,e);++d<a;){var _=e[d],f=t[d];if(n)var g=s?n(f,_,d,t,e,o):n(_,f,d,e,t,o);if(void 0!==g){if(g)continue;h=!1;break}if(p){if(!ht(t,(function(e,t){if(!pt(p,t)&&(_===e||r(_,e,i,n,o)))return p.push(t)}))){h=!1;break}}else if(_!==f&&!r(_,f,i,n,o)){h=!1;break}}return o.delete(e),o.delete(t),h};const ft=d.Uint8Array;const gt=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i};const mt=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i};var yt=h?h.prototype:void 0,vt=yt?yt.valueOf:void 0;const bt=function(e,t,i,n,r,o,s){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new ft(e),new ft(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=gt;case"[object Set]":var l=1&n;if(a||(a=mt),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=2,s.set(e,t);var u=_t(a(e),a(t),n,r,o,s);return s.delete(e),u;case"[object Symbol]":if(vt)return vt.call(e)==vt.call(t)}return!1};const wt=function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e};const Lt=function(e,t,i){var n=t(e);return U(e)?n:wt(n,i(e))};const St=function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,o=[];++i<n;){var s=e[i];t(s,i,e)&&(o[r++]=s)}return o};const It=function(){return[]};var Bt=Object.prototype.propertyIsEnumerable,xt=Object.getOwnPropertySymbols;const Mt=xt?function(e){return null==e?[]:(e=Object(e),St(xt(e),(function(t){return Bt.call(e,t)})))}:It;const Ft=function(e){return Lt(e,Se,Mt)};var kt=Object.prototype.hasOwnProperty;const Pt=function(e,t,i,n,r,o){var s=1&i,a=Ft(e),l=a.length;if(l!=Ft(t).length&&!s)return!1;for(var c=l;c--;){var u=a[c];if(!(s?u in t:kt.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var _=s;++c<l;){var f=e[u=a[c]],g=t[u];if(n)var m=s?n(g,f,u,t,e,o):n(f,g,u,e,t,o);if(!(void 0===m?f===g||r(f,g,i,n,o):m)){p=!1;break}_||(_="constructor"==u)}if(p&&!_){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return o.delete(e),o.delete(t),p};const Ct=A(d,"DataView");const Et=A(d,"Promise");const jt=A(d,"Set");const $t=A(d,"WeakMap");var Ot="[object Map]",Vt="[object Promise]",Nt="[object Set]",At="[object WeakMap]",Tt="[object DataView]",Rt=k(Ct),Dt=k(Te),Wt=k(Et),Ht=k(jt),Zt=k($t),Gt=w;(Ct&&Gt(new Ct(new ArrayBuffer(1)))!=Tt||Te&&Gt(new Te)!=Ot||Et&&Gt(Et.resolve())!=Vt||jt&&Gt(new jt)!=Nt||$t&&Gt(new $t)!=At)&&(Gt=function(e){var t=w(e),i="[object Object]"==t?e.constructor:void 0,n=i?k(i):"";if(n)switch(n){case Rt:return Tt;case Dt:return Ot;case Wt:return Vt;case Ht:return Nt;case Zt:return At}return t});const zt=Gt;var Yt="[object Arguments]",Xt="[object Array]",Jt="[object Object]",Ut=Object.prototype.hasOwnProperty;const qt=function(e,t,i,n,r,o){var s=U(e),a=U(t),l=s?Xt:zt(e),c=a?Xt:zt(t),u=(l=l==Yt?Jt:l)==Jt,d=(c=c==Yt?Jt:c)==Jt,h=l==c;if(h&&te(e)){if(!te(t))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new at),s||pe(e)?_t(e,t,i,n,r,o):bt(e,t,l,i,n,r,o);if(!(1&i)){var p=u&&Ut.call(e,"__wrapped__"),_=d&&Ut.call(t,"__wrapped__");if(p||_){var f=p?e.value():e,g=_?t.value():t;return o||(o=new at),r(f,g,i,n,o)}}return!!h&&(o||(o=new at),Pt(e,t,i,n,r,o))};const Kt=function e(t,i,n,r,o){return t===i||(null==t||null==i||!Z(t)&&!Z(i)?t!=t&&i!=i:qt(t,i,n,r,e,o))};const Qt=function(e,t,i,n){var r=i.length,o=r,s=!n;if(null==e)return!o;for(e=Object(e);r--;){var a=i[r];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<o;){var l=(a=i[r])[0],c=e[l],u=a[1];if(s&&a[2]){if(void 0===c&&!(l in e))return!1}else{var d=new at;if(n)var h=n(c,u,l,e,t,d);if(!(void 0===h?Kt(u,c,3,n,d):h))return!1}}return!0};const ei=function(e){return e==e&&!L(e)};const ti=function(e){for(var t=Se(e),i=t.length;i--;){var n=t[i],r=e[n];t[i]=[n,r,ei(r)]}return t};const ii=function(e,t){return function(i){return null!=i&&(i[e]===t&&(void 0!==t||e in Object(i)))}};const ni=function(e){var t=ti(e);return 1==t.length&&t[0][2]?ii(t[0][0],t[0][1]):function(i){return i===e||Qt(i,e,t)}};const ri=function(e){return"symbol"==typeof e||Z(e)&&"[object Symbol]"==w(e)};var oi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,si=/^\w*$/;const ai=function(e,t){if(U(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!ri(e))||(si.test(e)||!oi.test(e)||null!=t&&e in Object(t))};function li(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=e.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new(li.Cache||rt),i}li.Cache=rt;const ci=li;var ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,di=/\\(\\)?/g;const hi=function(e){var t=ci(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ui,(function(e,i,n,r){t.push(n?r.replace(di,"$1"):i||e)})),t}));const pi=function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r};var _i=h?h.prototype:void 0,fi=_i?_i.toString:void 0;const gi=function e(t){if("string"==typeof t)return t;if(U(t))return pi(t,e)+"";if(ri(t))return fi?fi.call(t):"";var i=t+"";return"0"==i&&1/t==-1/0?"-0":i};const mi=function(e){return null==e?"":gi(e)};const yi=function(e,t){return U(e)?e:ai(e,t)?[e]:hi(mi(e))};const vi=function(e){if("string"==typeof e||ri(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};const bi=function(e,t){for(var i=0,n=(t=yi(t,e)).length;null!=e&&i<n;)e=e[vi(t[i++])];return i&&i==n?e:void 0};const wi=function(e,t,i){var n=null==e?void 0:bi(e,t);return void 0===n?i:n};const Li=function(e,t){return null!=e&&t in Object(e)};const Si=function(e,t,i){for(var n=-1,r=(t=yi(t,e)).length,o=!1;++n<r;){var s=vi(t[n]);if(!(o=null!=e&&i(e,s)))break;e=e[s]}return o||++n!=r?o:!!(r=null==e?0:e.length)&&re(r)&&ne(s,r)&&(U(e)||J(e))};const Ii=function(e,t){return null!=e&&Si(e,t,Li)};const Bi=function(e,t){return ai(e)&&ei(t)?ii(vi(e),t):function(i){var n=wi(i,e);return void 0===n&&n===t?Ii(i,e):Kt(t,n,3)}};const xi=function(e){return e};const Mi=function(e){return function(t){return null==t?void 0:t[e]}};const Fi=function(e){return function(t){return bi(t,e)}};const ki=function(e){return ai(e)?Mi(vi(e)):Fi(e)};const Pi=function(e){return"function"==typeof e?e:null==e?xi:"object"==typeof e?U(e)?Bi(e[0],e[1]):ni(e):ki(e)};const Ci=function(e,t){var i={};return t=Pi(t,3),Ie(e,(function(e,n,r){R(i,t(e,n,r),e)})),i};const Ei=function(e,t,i,n){var r=-1,o=null==e?0:e.length;for(n&&o&&(i=e[++r]);++r<o;)i=t(i,e[r],r,e);return i};const ji=function(e,t){return function(i,n){if(null==i)return i;if(!Le(i))return e(i,n);for(var r=i.length,o=t?r:-1,s=Object(i);(t?o--:++o<r)&&!1!==n(s[o],o,s););return i}};const $i=ji(Ie);const Oi=function(e,t,i,n,r){return r(e,(function(e,r,o){i=n?(n=!1,e):t(i,e,r,o)})),i};const Vi=function(e,t,i){var n=U(e)?Ei:Oi,r=arguments.length<3;return n(e,Pi(t,4),i,r,$i)};function Ni(e){const{buildingId:t,labelCenter:{lat:i,lon:n},floors:r,name:o,venueId:s,defaultFloor:a}=e,l=Ci(o,((e,t)=>"default"===t?"name":`name:${t}`)),{codes:c,ids:u,ordinals:d}=r.reduce(((e,t)=>{const{id:i,code:n,ordinal:r}=t;return{codes:e.codes?`${e.codes},${n}`:n,ids:e.ids?`${e.ids},${i}`:i,ordinals:`${e.ordinals}`?`${e.ordinals},${r}`:`${r}`}}),{codes:"",ids:"",ordinals:""});return{layer:{id:"mapxus-building-line"},properties:{building:"yes",id:t,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 Ai=i(776);var Ti=function(){return Ti=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ti.apply(this,arguments)};function Ri(e,t,i,n){return new(i||(i=Promise))((function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))}function Di(e,t){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=t.call(e,s)}catch(e){a=[6,e],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(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var Hi="4.4.3";function Zi(e,t){return new Promise((function(i){return setTimeout(i,e,t)}))}function Gi(e){return!!e&&"function"==typeof e.then}function zi(e,t){try{var i=e();Gi(i)?i.then((function(e){return t(!0,e)}),(function(e){return t(!1,e)})):t(!0,i)}catch(e){t(!1,e)}}function Yi(e,t,i){return void 0===i&&(i=16),Ri(this,void 0,void 0,(function(){var n,r,o,s;return Di(this,(function(a){switch(a.label){case 0:n=Array(e.length),r=Date.now(),o=0,a.label=1;case 1:return o<e.length?(n[o]=t(e[o],o),(s=Date.now())>=r+i?(r=s,[4,new Promise((function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.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(e){return e.then(void 0,(function(){})),e}function Ji(e){return parseInt(e)}function Ui(e){return parseFloat(e)}function qi(e,t){return"number"==typeof e&&isNaN(e)?t:e}function Ki(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function Qi(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var i=1/t;return Math.round(e*i)/i}function en(e,t){var i=e[0]>>>16,n=65535&e[0],r=e[1]>>>16,o=65535&e[1],s=t[0]>>>16,a=65535&t[0],l=t[1]>>>16,c=0,u=0,d=0,h=0;d+=(h+=o+(65535&t[1]))>>>16,h&=65535,u+=(d+=r+l)>>>16,d&=65535,c+=(u+=n+a)>>>16,u&=65535,c+=i+s,c&=65535,e[0]=c<<16|u,e[1]=d<<16|h}function tn(e,t){var i=e[0]>>>16,n=65535&e[0],r=e[1]>>>16,o=65535&e[1],s=t[0]>>>16,a=65535&t[0],l=t[1]>>>16,c=65535&t[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,e[0]=u<<16|d,e[1]=h<<16|p}function nn(e,t){var i=e[0];32===(t%=64)?(e[0]=e[1],e[1]=i):t<32?(e[0]=i<<t|e[1]>>>32-t,e[1]=e[1]<<t|i>>>32-t):(t-=32,e[0]=e[1]<<t|i>>>32-t,e[1]=i<<t|e[1]>>>32-t)}function rn(e,t){0!==(t%=64)&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function on(e,t){e[0]^=t[0],e[1]^=t[1]}var sn=[4283543511,3981806797],an=[3301882366,444984403];function ln(e){var t=[0,e[0]>>>1];on(e,t),tn(e,sn),t[1]=e[0]>>>1,on(e,t),tn(e,an),t[1]=e[0]>>>1,on(e,t)}var cn=[2277735313,289559509],un=[1291169091,658871167],dn=[0,5],hn=[0,1390208809],pn=[0,944331445];function _n(e,t){var i=function(e){for(var t=new Uint8Array(e.length),i=0;i<e.length;i++){var n=e.charCodeAt(i);if(n>127)return(new TextEncoder).encode(e);t[i]=n}return t}(e);t=t||0;var n,r=[0,i.length],o=r[1]%16,s=r[1]-o,a=[0,t],l=[0,t],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,tn(c,cn),nn(c,31),tn(c,un),on(a,c),nn(a,27),en(a,l),tn(a,dn),en(a,hn),tn(u,un),nn(u,33),tn(u,cn),on(l,u),nn(l,31),en(l,a),tn(l,dn),en(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),tn(u,un),nn(u,33),tn(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),tn(c,cn),nn(c,31),tn(c,un),on(a,c)}return on(a,r),on(l,r),en(a,l),en(l,a),ln(a),ln(l),en(a,l),en(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(e){return"function"!=typeof e}function gn(e,t,i,n){var r=Object.keys(e).filter((function(e){return!function(e,t){for(var i=0,n=e.length;i<n;++i)if(e[i]===t)return!0;return!1}(i,e)})),o=Xi(Yi(r,(function(i){return function(e,t){var i=Xi(new Promise((function(i){var n=Date.now();zi(e.bind(null,t),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Date.now()-n;if(!e[0])return i((function(){return{error:e[1],duration:r}}));var o=e[1];if(fn(o))return i((function(){return{value:o,duration:r}}));i((function(){return new Promise((function(e){var t=Date.now();zi(o,(function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=r+Date.now()-t;if(!i[0])return e({error:i[1],duration:o});e({value:i[1],duration:o})}))}))}))}))})));return function(){return i.then((function(e){return e()}))}}(e[i],t)}),n));return function(){return Ri(this,void 0,void 0,(function(){var e,t,i,s;return Di(this,(function(a){switch(a.label){case 0:return[4,o];case 1:return[4,Yi(a.sent(),(function(e){return Xi(e())}),n)];case 2:return e=a.sent(),[4,Promise.all(e)];case 3:for(t=a.sent(),i={},s=0;s<r.length;++s)i[r[s]]=t[s];return[2,i]}}))}))}}function mn(){var e=window,t=navigator;return Ki(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function yn(){var e=window,t=navigator;return Ki(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function vn(){var e=window,t=navigator;return Ki(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function bn(){var e=window,t=e.HTMLElement,i=e.Document;return Ki(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),i&&"pointerLockElement"in i.prototype])>=4}function wn(){var e,t=window;return e=t.print,!!/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))&&Ki(["[object WebPageNamespace]"===String(t.browser),"MicrodataExtractor"in t])>=1}function Ln(){var e,t,i=window;return Ki(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in i,"mozInnerScreenX"in i,"CSSMozDocumentRule"in i,"CanvasCaptureMediaStream"in i])>=4}function Sn(){var e=window,t=navigator,i=e.CSS,n=e.HTMLButtonElement;return Ki([!("getStorageUpdates"in t),n&&"popover"in n.prototype,"CSSCounterStyleRule"in e,i.supports("font-size-adjust: ex-height 0.5"),i.supports("text-transform: full-width")])>=4}function In(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Bn(){var e=yn(),t=Ln(),i=window,n=navigator,r="connection";return e?Ki([!("SharedWorker"in i),n[r]&&"ontypechange"in n[r],!("sinkId"in new window.Audio)])>=2:!!t&&Ki(["onorientationchange"in i,"orientation"in i,/android/i.test(navigator.appVersion)])>=2}function xn(e){var t=new Error(e);return t.name=e,t}function Mn(e,t,i){var n,r,o;return void 0===i&&(i=50),Ri(this,void 0,void 0,(function(){var s,a;return Di(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(e,i){var n=!1,r=function(){n=!0,e()};a.onload=r,a.onerror=function(e){n=!0,i(e)};var o=a.style;o.setProperty("display","block","important"),o.position="absolute",o.top="0",o.left="0",o.visibility="hidden",t&&"srcdoc"in a?a.srcdoc=t:a.src="about:blank",s.body.appendChild(a);var l=function(){var e,t;n||("complete"===(null===(t=null===(e=a.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.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,e(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(e){for(var t=function(e){for(var t,i,n="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),o=r[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,l=function(e,t){s[e]=s[e]||[],s[e].push(t)};;){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!==(t=d[4])&&void 0!==t?t:d[5])&&void 0!==i?i:"");break;default:throw new Error(n)}}return[o,s]}(e),i=t[0],n=t[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(e,t){for(var i=0,n=t.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];e.setProperty(s,a,l||"")}}}var Pn=["monospace","sans-serif","serif"],Cn=["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 En(e){return e.toDataURL()}var jn,$n,On=2500;function Vn(){var e=this;return function(){if(void 0===$n){var e=function(){var t=Nn();An(t)?$n=setTimeout(e,On):(jn=t,$n=void 0)};e()}}(),function(){return Ri(e,void 0,void 0,(function(){var e;return Di(this,(function(t){switch(t.label){case 0:return An(e=Nn())?jn?[2,Wi([],jn,!0)]:(i=document).fullscreenElement||i.msFullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement?[4,In()]:[3,2]:[3,2];case 1:t.sent(),e=Nn(),t.label=2;case 2:return An(e)||(jn=e),[2,e]}var i}))}))}}function Nn(){var e=screen;return[qi(Ui(e.availTop),null),qi(Ui(e.width)-Ui(e.availWidth)-qi(Ui(e.availLeft),0),null),qi(Ui(e.height)-Ui(e.availHeight)-qi(Ui(e.availTop),0),null),qi(Ui(e.availLeft),null)]}function An(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function Tn(e){var t;return Ri(this,void 0,void 0,(function(){var i,n,r,o,s,a,l;return Di(this,(function(c){switch(c.label){case 0:for(i=document,n=i.createElement("div"),r=new Array(e.length),o={},Rn(n),l=0;l<e.length;++l)"DIALOG"===(s=Fn(e[l])).tagName&&s.show(),Rn(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<e.length;++l)r[l].offsetParent||(o[e[l]]=!0)}finally{null===(t=n.parentNode)||void 0===t||t.removeChild(n)}return[2,o]}}))}))}function Rn(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function Dn(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function Wn(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function Hn(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function Zn(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function Gn(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function zn(e){return matchMedia("(dynamic-range: ".concat(e,")")).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 e=window;;){var t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return!0;throw e}e=t}};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"],er=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],tr="WEBGL_debug_renderer_info";function ir(e){if(e.webgl)return e.webgl.context;var t,i=document.createElement("canvas");i.addEventListener("webglCreateContextError",(function(){return t=void 0}));for(var n=0,r=["webgl","experimental-webgl"];n<r.length;n++){var o=r[n];try{t=i.getContext(o)}catch(e){}if(t)break}return e.webgl={context:t},t}function nr(e,t,i){var n=e.getShaderPrecisionFormat(e[t],e[i]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}function rr(e){return Object.keys(e.__proto__).filter(or)}function or(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function sr(){return Ln()}function ar(e){return"function"==typeof e.getParameter}var lr={fonts:function(){var e=this;return Mn((function(t,i){var n=i.document;return Ri(e,void 0,void 0,(function(){var e,t,i,r,o,s,a,l,c,u,d;return Di(this,(function(h){for((e=n.body).style.fontSize="48px",(t=n.createElement("div")).style.setProperty("visibility","hidden","important"),i={},r={},o=function(e){var i=n.createElement("span"),r=i.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=e,i.textContent="mmMwWLliI0O&1",t.appendChild(i),i},s=function(e,t){return o("'".concat(e,"',").concat(t))},a=function(){for(var e={},t=function(t){e[t]=Pn.map((function(e){return s(t,e)}))},i=0,n=Cn;i<n.length;i++){t(n[i])}return e},l=function(e){return Pn.some((function(t,n){return e[n].offsetWidth!==i[t]||e[n].offsetHeight!==r[t]}))},c=function(){return Pn.map(o)}(),u=a(),e.appendChild(t),d=0;d<Pn.length;d++)i[Pn[d]]=c[d].offsetWidth,r[Pn[d]]=c[d].offsetHeight;return[2,Cn.filter((function(e){return l(u[e])}))]}))}))}))},domBlockers:function(e){var t=(void 0===e?{}:e).debug;return Ri(this,void 0,void 0,(function(){var e,i,n,r,o;return Di(this,(function(s){switch(s.label){case 0:return vn()||Bn()?(a=atob,e={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(e),[4,Tn((o=[]).concat.apply(o,i.map((function(t){return e[t]}))))]):[2,void 0];case 1:return n=s.sent(),t&&function(e,t){for(var i="DOM blockers debug:\n```",n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];i+="\n".concat(o,":");for(var s=0,a=e[o];s<a.length;s++){var l=a[s];i+="\n ".concat(t[l]?"🚫":"➡️"," ").concat(l)}}console.log("".concat(i,"\n```"))}(e,n),(r=i.filter((function(t){var i=e[t];return Ki(i.map((function(e){return n[e]})))>.6*i.length}))).sort(),[2,r]}var a}))}))},fontPreferences:function(){return function(e,t){void 0===t&&(t=4e3);return Mn((function(i,n){var r=n.document,o=r.body,s=o.style;s.width="".concat(t,"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(t/20|0),!0).map((function(){return"word"})).join(" "),o.appendChild(a),e(r,o)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(e,t){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=e.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,t.append(e.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 e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(vn()&&!bn()&&!function(){var e=window;return Ki(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var i=4500,n=new t(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(e){var t=3,i=500,n=500,r=5e3,o=function(){},s=new Promise((function(s,a){var l=!1,c=0,u=0;e.oncomplete=function(e){return s(e.renderedBuffer)};var d=function(){setTimeout((function(){return a(xn("timeout"))}),Math.min(n,u+r-Date.now()))},h=function(){try{var n=e.startRendering();switch(Gi(n)&&Xi(n),e.state){case"running":u=Date.now(),l&&d();break;case"suspended":document.hidden||c++,l&&c>=t?a(xn("suspended")):setTimeout(h,i)}}catch(e){a(e)}};h(),o=function(){l||(l=!0,u>0&&d())}}));return[s,o]}(n),a=s[0],l=s[1],c=Xi(a.then((function(e){return function(e){for(var t=0,i=0;i<e.length;++i)t+=Math.abs(e[i]);return t}(e.getChannelData(0).subarray(i))}),(function(e){if("timeout"===e.name||"suspended"===e.name)return-3;throw e})));return function(){return l(),c}}()},screenFrame:function(){var e=this;if(vn()&&Sn()&&wn())return function(){return Promise.resolve(void 0)};var t=Vn();return function(){return Ri(e,void 0,void 0,(function(){var e,i;return Di(this,(function(n){switch(n.label){case 0:return[4,t()];case 1:return e=n.sent(),[2,[(i=function(e){return null===e?null:Qi(e,10)})(e[0]),i(e[1]),i(e[2]),i(e[3])]]}}))}))}},canvas:function(){return function(e){var t,i,n,r=!1,o=function(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),s=o[0],a=o[1];!function(e,t){return!(!t||!e.toDataURL)}(s,a)?i=n="unsupported":(r=function(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(a),e?i=n="skipped":(t=function(e,t){!function(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var i="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));t.fillText(i,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(i,4,45)}(e,t);var i=En(e),n=En(e);if(i!==n)return["unstable","unstable"];!function(e,t){e.width=122,e.height=110,t.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];t.fillStyle=o,t.beginPath(),t.arc(s,a,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd")}(e,t);var r=En(e);return[r,i]}(s,a),i=t[0],n=t[1]));return{winding:r,geometry:i,text:n}}(vn()&&Sn()&&wn())},osCpu:function(){return navigator.oscpu},languages:function(){var e,t=navigator,i=[],n=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==n&&i.push([n]),Array.isArray(t.languages))yn()&&Ki([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||i.push(t.languages);else if("string"==typeof t.languages){var r=t.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 e,t,i;if(!(vn()&&Sn()&&wn()))return e=screen,(i=[(t=function(e){return qi(Ji(e),null)})(e.width),t(e.height)]).sort().reverse(),i},hardwareConcurrency:function(){return qi(Ji(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var i=(new t).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(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(mn()||(e=window,t=navigator,Ki(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!mn())))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&vn()&&!bn()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return Ki(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],i=0;i<e.length;++i){var n=e[i];if(n){for(var r=[],o=0;o<n.length;++o){var s=n[o];r.push({type:s.type,suffixes:s.suffixes})}t.push({name:n.name,description:n.description,mimeTypes:r})}}return t}},touchSupport:function(){var e,t=navigator,i=0;void 0!==t.maxTouchPoints?i=Ji(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(i=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:i,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],t=0,i=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<i.length;t++){var n=i[t],r=window[n];r&&"object"==typeof r&&e.push(n)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(e){return!1}},colorGamut:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var i=t[e];if(matchMedia("(color-gamut: ".concat(i,")")).matches)return i}},invertedColors:function(){return!!Dn("inverted")||!Dn("none")&&void 0},forcedColors:function(){return!!Wn("active")||!Wn("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function(){return Hn("no-preference")?0:Hn("high")||Hn("more")?1:Hn("low")||Hn("less")?-1:Hn("forced")?10:void 0},reducedMotion:function(){return!!Zn("reduce")||!Zn("no-preference")&&void 0},reducedTransparency:function(){return!!Gn("reduce")||!Gn("no-preference")&&void 0},hdr:function(){return!!zn("high")||!zn("standard")&&void 0},math:function(){var e,t=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:t(.12312423423423424),acosh:i(1e308),acoshPf:(e=1e154,Yn.log(e+Yn.sqrt(e*e-1))),asin:n(.12312423423423424),asinh:r(1),asinhPf:function(e){return Yn.log(e+Yn.sqrt(e*e+1))}(1),atanh:o(.5),atanhPf:function(e){return Yn.log((1+e)/(1-e))/2}(.5),atan:s(.5),sin:a(-1e300),sinh:l(1),sinhPf:function(e){return Yn.exp(e)-1/Yn.exp(e)/2}(1),cos:c(10.000000000123),cosh:u(1),coshPf:function(e){return(Yn.exp(e)+1/Yn.exp(e))/2}(1),tan:d(-1e300),tanh:h(1),tanhPf:function(e){return(Yn.exp(2*e)-1)/(Yn.exp(2*e)+1)}(1),exp:p(1),expm1:_(1),expm1Pf:function(e){return Yn.exp(e)-1}(1),log1p:f(10),log1pPf:function(e){return Yn.log(1+e)}(10),powPI:function(e){return Yn.pow(Yn.PI,e)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]},applePay:function(){var e=window.ApplePaySession;if("function"!=typeof(null==e?void 0:e.canMakePayments))return-1;if(Un())return-3;try{return e.canMakePayments()?1:0}catch(e){return function(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}(e)}},privateClickMeasurement:function(){var e,t=document.createElement("a"),i=null!==(e=t.attributionSourceId)&&void 0!==e?e:t.attributionsourceid;return void 0===i?void 0:String(i)},audioBaseLatency:function(){var e;return Bn()||vn()?window.AudioContext&&null!==(e=(new AudioContext).baseLatency)&&void 0!==e?e:-1:-2},webGlBasics:function(e){var t,i,n,r,o,s,a=ir(e.cache);if(!a)return-1;if(!ar(a))return-2;var l=sr()?null:a.getExtension(tr);return{version:(null===(t=a.getParameter(a.VERSION))||void 0===t?void 0:t.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(e){var t=ir(e.cache);if(!t)return-1;if(!ar(t))return-2;var i=t.getSupportedExtensions(),n=t.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(t);d<h.length;d++){var p=t[b=h[d]];o.push("".concat(b,"=").concat(p).concat(qn.has(p)?"=".concat(t.getParameter(p)):""))}if(i)for(var _=0,f=i;_<f.length;_++){var g=f[_];if(!(g===tr&&sr()||"WEBGL_polygon_mode"===g&&(yn()||vn()))){var m=t.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(t.getParameter(p)):""))}}}for(var w=0,L=Qn;w<L.length;w++)for(var S=L[w],I=0,B=er;I<B.length;I++){var x=B[I],M=nr(t,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(e){var t=function(e){if(Bn())return.4;if(vn())return!bn()||Sn()&&wn()?.3:.5;var t="value"in e.platform?e.platform.value:"";if(/^Win/.test(t))return.6;if(/^Mac/.test(t))return.5;return.7}(e),i=function(e){return Qi(.99+.01*e,1e-4)}(t);return{score:t,comment:cr.replace(/\$/g,"".concat(i))}}function dr(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?Ti({name:(i=t).name,message:i.message,stack:null===(n=i.stack)||void 0===n?void 0:n.split("\n")},i):t;var i,n}),2)}function hr(e){return _n(function(e){for(var t="",i=0,n=Object.keys(e).sort();i<n.length;i++){var r=n[i],o=e[r],s="error"in o?"error":JSON.stringify(o.value);t+="".concat(t?"|":"").concat(r.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return t}(e))}function pr(e){return void 0===e&&(e=50),function(e,t){void 0===t&&(t=1/0);var i=window.requestIdleCallback;return i?new Promise((function(e){return i.call(window,(function(){return e()}),{timeout:t})})):Zi(Math.min(e,t))}(e,2*e)}function _r(e,t){var i=Date.now();return{get:function(n){return Ri(this,void 0,void 0,(function(){var r,o,s;return Di(this,(function(a){switch(a.label){case 0:return r=Date.now(),[4,e()];case 1:return o=a.sent(),s=function(e){var t,i=ur(e);return{get visitorId(){return void 0===t&&(t=hr(this.components)),t},set visitorId(e){t=e},confidence:i,components:e,version:Hi}}(o),(t||(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(e){var t;return void 0===e&&(e={}),Ri(this,void 0,void 0,(function(){var i,n,r;return Di(this,(function(o){switch(o.label){case 0:return(null===(t=e.monitoring)||void 0===t||t)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Hi,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),i=e.delayFallback,n=e.debug,[4,pr(i)];case 1:return o.sent(),r=function(e){return gn(lr,e,[])}({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 e=>{const{config:t,response:i}=e;if(401===i.status&&t){const i=t.url,n=(Sr.get(i)||1)+1;if(n>2)throw Sr.delete(i),e;return Sr.set(i,n),await Ir.verifyPermission(br,wr),t.headers=Object.assign(t.headers,mr().defaults.headers.common),mr()(t)}throw e}));class Ir{static async verifyPermission(e,t){br=e,wr=t;const i=async()=>(await mr().post(Lr,{appId:e,secret:t,origin:window.location.hostname||"restriction.test.example.com",keyPlatform:"WEB"})).data.result.idToken,n=e=>{setTimeout((async()=>{mr().defaults.headers.common.token=await i(),n(e)}),e)},r=await Ir.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 e=await fr.load();return(await e.get()).visitorId}static transformRequest(e){return/.mapxus./.test(e)?{url:e,headers:mr().defaults.headers.common}:{url:e}}constructor(e){mr().defaults.baseURL=e??yr.hl}get(e){return mr().get(e)}post(e,t){return mr().post(e,t)}}function Br(e){const t=U(e),i=t&&!e.length||!t&&!e.trim().length;if(i)throw new Error("Parameter cannot be empty.");return i?null:t?e.filter((e=>!!e.trim())).map((e=>e.trim())).join(","):e.trim()}const xr=function(e,t){var i=-1,n=Le(e)?Array(e.length):[];return $i(e,(function(e,r,o){n[++i]=t(e,r,o)})),n};const Mr=function(e,t){return(U(e)?pi:xr)(e,Pi(t,3))};const Fr=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}};var kr=Object.prototype.hasOwnProperty;const Pr=function(e,t,i){var n=e[t];kr.call(e,t)&&xe(n,i)&&(void 0!==i||t in e)||R(e,t,i)};const Cr=function(e,t,i,n){if(!L(e))return e;for(var r=-1,o=(t=yi(t,e)).length,s=o-1,a=e;null!=a&&++r<o;){var l=vi(t[r]),c=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(r!=s){var u=a[l];void 0===(c=n?n(u,l,a):void 0)&&(c=L(u)?u:ne(t[r+1])?[]:{})}Pr(a,l,c),a=a[l]}return e};const Er=function(e,t,i){for(var n=-1,r=t.length,o={};++n<r;){var s=t[n],a=bi(e,s);i(a,s)&&Cr(o,yi(s,e),a)}return o};const jr=ye(Object.getPrototypeOf,Object);const $r=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)wt(t,Mt(e)),e=jr(e);return t}:It;const Or=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t};var Vr=Object.prototype.hasOwnProperty;const Nr=function(e){if(!L(e))return Or(e);var t=me(e),i=[];for(var n in e)("constructor"!=n||!t&&Vr.call(e,n))&&i.push(n);return i};const Ar=function(e){return Le(e)?fe(e,!0):Nr(e)};const Tr=function(e){return Lt(e,Ar,$r)};const Rr=function(e,t){if(null==e)return{};var i=pi(Tr(e),(function(e){return[e]}));return t=Pi(t),Er(e,i,(function(e,i){return t(e,i[0])}))};const Dr=function(e,t){return Rr(e,Fr(Pi(t)))};const Wr=function(e,t,i,n){for(var r=e.length,o=i+(n?1:-1);n?o--:++o<r;)if(t(e[o],o,e))return o;return-1};const Hr=function(e){return e!=e};const Zr=function(e,t,i){for(var n=i-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1};const Gr=function(e,t,i){return t==t?Zr(e,t,i):Wr(e,Hr,i)};const zr=function(e){return"string"==typeof e||!U(e)&&Z(e)&&"[object String]"==w(e)};var Yr=/\s/;const Xr=function(e){for(var t=e.length;t--&&Yr.test(e.charAt(t)););return t};var Jr=/^\s+/;const Ur=function(e){return e?e.slice(0,Xr(e)+1).replace(Jr,""):e};var qr=/^[-+]0x[0-9a-f]+$/i,Kr=/^0b[01]+$/i,Qr=/^0o[0-7]+$/i,eo=parseInt;const to=function(e){if("number"==typeof e)return e;if(ri(e))return NaN;if(L(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=L(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ur(e);var i=Kr.test(e);return i||Qr.test(e)?eo(e.slice(2),i?2:8):qr.test(e)?NaN:+e};var io=1/0;const no=function(e){return e?(e=to(e))===io||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};const ro=function(e){var t=no(e),i=t%1;return t==t?i?t-i:t:0};const oo=function(e,t){return pi(t,(function(t){return e[t]}))};const so=function(e){return null==e?[]:oo(e,Se(e))};var ao=Math.max;const lo=function(e,t,i,n){e=Le(e)?e:so(e),i=i&&!n?ro(i):0;var r=e.length;return i<0&&(i=ao(r+i,0)),zr(e)?i<=r&&e.indexOf(t,i)>-1:!!r&&Gr(e,t,i)>-1},co=["opening_hours","description","phone","website","email","appURL","icon"];class uo{_api="/api/v4/venues";_request;constructor(){this._request=new Ir}searchByIds(e){const t=Br(e);if(!t)throw new Error("Please input venue id at least one.");const i=`${this._api}/${t}`;return this._changedRes(i)}searchByDistance(e,t,i,n=yr.e$,r=yr.KL){if(!e||!t||!i)throw new Error("Missing required parameter.");const o=new URLSearchParams({keywords:e,center:t.join(","),distance:String(i),offset:String(n),page:String(r)}),s=`${this._api}?${o.toString()}`;return this._changedRes(s)}searchByBbox(e,t,i=yr.e$,n=yr.KL){if(!e||!t)throw new Error("Missing required parameter.");const r=new URLSearchParams({keywords:e,bbox:t.join(","),offset:String(i),page:String(n)}),o=`${this._api}?${r.toString()}`;return this._changedRes(o)}searchByGlobal(e,t=yr.e$,i=yr.KL){if(!e)throw new Error("Missing required parameter.");const n=new URLSearchParams({keywords:e,offset:String(t),page:String(i)}),r=`${this._api}?${n.toString()}`;return this._changedRes(r)}_changedRes(e){return new Promise(((t,i)=>{this._request.get(e).then((e=>{e.data.result.venues=Mr(e.data.result.venues,(e=>Dr(e,((e,t)=>lo(co,t))))),t(e)})).catch(i)}))}}const ho=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","description"];class po{_api="/api/v4/buildings";_request;constructor(){this._request=new Ir}searchByIds(e){const t=Br(e);if(!t)throw new Error("Please input building id at least one.");const i=`${this._api}/${t}`;return this._changedRes(i)}searchByDistance(e,t,i,n=yr.e$,r=yr.KL){if(arguments.length<3)throw new Error("Parameter cannot be empty.");if(2!==t.length)throw new Error("Center lon lat cannot be less than 2.");const o=[`center=${t.join(",")}`,`distance=${i}`,`offset=${n}`,`page=${r}`];e&&o.unshift(`keywords=${e}`);const s=`${this._api}?${o.join("&")}`;return this._changedRes(s)}searchByBbox(e,t,i=yr.e$,n=yr.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");if(4!==t.length)throw new Error("Bbox parameters cannot be less than 2.");const r=[`bbox=${t.join(",")}`,`offset=${i}`,`page=${n}`];e&&r.unshift(`keywords=${e}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByGlobal(e,t=yr.e$,i=yr.KL){if(!arguments.length)throw new Error("Parameter cannot be empty.");const n=["searchGlobal=true",`offset=${t}`,`page=${i}`];e&&n.unshift(`keywords=${e}`);const r=`${this._api}?${n.join("&")}`;return this._changedRes(r)}searchByFloorId(e){if(!e)throw new Error("Parameter cannot be empty.");return this._changedRes(`${this._api}/floors/${e}`)}_changedRes(e){return new Promise(((t,i)=>{this._request.get(e).then((e=>{e.data.result.buildings=Mr(e.data.result.buildings,(e=>Dr(e,((e,t)=>lo(ho,t))))),t(e)})).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 Ir}searchByIds(e){const t=Br(e);if(!t)throw new Error("Please input poi id at least one.");const i=`${this._apiV4}/${t}`;return this._changedRes(i,(e=>e.descriptions?.default?{description:e.descriptions.default}:null))}searchByDistance(e){const{center:t,distance:i,keywords:n="",offset:r=yr.e$,page:o=yr.KL}=e;if(!t||!i)throw new Error("Parameter missing.");const s=[`keywords=${n}`,`center=${t.join(",")}`,`distance=${Math.round(i)}`,`offset=${r}`,`page=${o}`],a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByBbox(e,t,i=yr.e$,n=yr.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");if(4!==t.length)throw new Error("Bbox parameters cannot be less than 2.");const r=[`bbox=${t.join(",")}`,`offset=${i}`,`page=${n}`];e&&r.unshift(`keywords=${e}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByBounds(e){const{bounds:t,offset:i=yr.e$,page:n=yr.KL,keywords:r,orderBy:o}=e,s=[`bbox=${t.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(e,t,i=yr.e$,n=yr.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");const r=[`buildingId=${t}`,`offset=${i}`,`page=${n}`];e&&r.unshift(`keywords=${e}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByBuilding(e){const{buildingId:t,offset:i=yr.e$,page:n=yr.KL,keywords:r,orderBy:o}=e,s=[`buildingId=${t}`,`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(e,t,i=yr.e$,n=yr.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");const r=[`venueId=${t}`,`offset=${i}`,`page=${n}`];e&&r.unshift(`keywords=${e}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByVenue(e){const{venueId:t,offset:i=yr.e$,page:n=yr.KL,keywords:r,orderBy:o}=e,s=[`venueId=${t}`,`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(e){const{floorId:t,offset:i=yr.e$,page:n=yr.KL,keywords:r,orderBy:o}=e,s=[`floorId=${t}`,`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(e){const{venueId:t,buildingId:i,floorId:n}=e;if(!t&&!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}`:t&&(r=`venueId=${t}`);const o=`${this._categoriesV2}/pois?${r}`;return this._request.get(o)}searchOrientation(e){const{center:t,angle:i,distance:n,buildingId:o,floorId:s,ordinal:a,distanceSearchType:l}=e;if(!t||!i||!n)throw new Error("Parameter missing.");const c=new URLSearchParams({center:`${t.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(e){const{center:t,angle:i,distance:n,distanceSearchType:o=r.Kp.POINT}=e,s=[`center=${t.join()}`,`angle=${Math.round(i)}`,`distance=${n}`,`distanceSearchType=${o}`];"ordinal"in e?s.push(`ordinal=${e.ordinal}`):"floorId"in e?s.push(`floorId=${e.floorId}`):"buildingId"in e&&s.push(`buildingId=${e.buildingId}`);const a=`${this._api}/orientation?${s.join("&")}`;return this._request.get(a)}searchByCategory(e){const{center:t,distance:i,page:n=yr.KL,offset:r=yr.e$}=e,o=[`center=${t.join(",")}`,`distance=${i}`,`offset=${r}`,`page=${n}`];let s="";if("category"in e)s=`${this._api}?category=${e.category}&${o.join("&")}`;else if("excludedCategories"in e){const{excludedCategories:t}=e;s=U(t)?`${this._api}?excludeCategories=${t.join(",")}&${o.join("&")}`:`${this._api}?excludeCategories=${t}&${o.join("&")}`}if(s.length)return this._changedRes(s);throw new Error("Parameter missing.")}_changedRes(e,t){return new Promise(((i,n)=>{this._request.get(e).then((e=>{e.data.result.pois=Mr(e.data.result.pois,(e=>{let i=Dr(e,((e,t)=>lo(_o,t)));return t&&t(i)&&(i=Object.assign({},i,t(i))),i})),i(e)})).catch(n)}))}}function go(e){return"string"==typeof e&&Boolean(e.trim())}var mo=i(366);class yo{_api="/api/v3/route/query";_request;constructor(){this._request=new Ir}search(e){const{points:t,vehicle:i=mo.$.FOOT,locale:n="en"}=e;if(!(t&&t.length>1&&t.length<6))throw new Error("Parameter error. It must be 1 < {points.length} < 6");const r={points:t,vehicle:i,locale:n};try{return this._request.post(this._api,JSON.stringify(r))}catch(e){throw new Error(e)}}}var vo=i(666);const bo={lineWidth:3,lineColor:"#A5E3FF",lineOpacity:1},wo={fontColor:"#8c8c8c",activeFontColor:"#fff",backgroundColor:"#fff",activeBackgroundColor:"#074769",itemSize:50,itemCount:4,defaultFolded:!1},Lo=(0,vo.y)(window.navigator.language)??r.ys.ENGLISH;var So={value:()=>{}};function Io(){for(var e,t=0,i=arguments.length,n={};t<i;++t){if(!(e=arguments[t]+"")||e in n||/[\s.]/.test(e))throw new Error("illegal type: "+e);n[e]=[]}return new Bo(n)}function Bo(e){this._=e}function xo(e,t){for(var i,n=0,r=e.length;n<r;++n)if((i=e[n]).name===t)return i.value}function Mo(e,t,i){for(var n=0,r=e.length;n<r;++n)if(e[n].name===t){e[n]=So,e=e.slice(0,n).concat(e.slice(n+1));break}return null!=i&&e.push({name:t,value:i}),e}Bo.prototype=Io.prototype={constructor:Bo,on:function(e,t){var i,n=this._,r=function(e,t){return e.trim().split(/^|\s+/).map((function(e){var i="",n=e.indexOf(".");if(n>=0&&(i=e.slice(n+1),e=e.slice(0,n)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}}))}(e+"",n),o=-1,s=r.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o<s;)if(i=(e=r[o]).type)n[i]=Mo(n[i],e.name,t);else if(null==t)for(i in n)n[i]=Mo(n[i],e.name,null);return this}for(;++o<s;)if((i=(e=r[o]).type)&&(i=xo(n[i],e.name)))return i},copy:function(){var e={},t=this._;for(var i in t)e[i]=t[i].slice();return new Bo(e)},call:function(e,t){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(e))throw new Error("unknown type: "+e);for(o=0,i=(n=this._[e]).length;o<i;++o)n[o].value.apply(t,r)},apply:function(e,t,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],r=0,o=n.length;r<o;++r)n[r].value.apply(t,i)}};const Fo=Io;const ko=function(e){return function(t,i,n){var r=Object(t);if(!Le(t)){var o=Pi(i,3);t=Se(t),i=function(e){return o(r[e],e,r)}}var s=e(t,i,n);return s>-1?r[o?t[s]:s]:void 0}};var Po=Math.max;const Co=function(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var r=null==i?0:ro(i);return r<0&&(r=Po(n+r,0)),Wr(e,Pi(t,3),r)};const Eo=ko(Co);const jo=function(e,t,i){for(var n=-1,r=e.length;++n<r;){var o=e[n],s=t(o);if(null!=s&&(void 0===a?s==s&&!ri(s):i(s,a)))var a=s,l=o}return l};const $o=function(e,t){return e<t};const Oo=function(e,t){return e&&e.length?jo(e,Pi(t,2),$o):void 0};const Vo=function(){return d.Date.now()};var No=Math.max,Ao=Math.min;const To=function(e,t,i){var n,r,o,s,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var i=n,o=r;return n=r=void 0,c=t,s=e.apply(o,i)}function _(e){var i=e-l;return void 0===l||i>=t||i<0||d&&e-c>=o}function f(){var e=Vo();if(_(e))return g(e);a=setTimeout(f,function(e){var i=t-(e-l);return d?Ao(i,o-(e-c)):i}(e))}function g(e){return a=void 0,h&&n?p(e):(n=r=void 0,s)}function m(){var e=Vo(),i=_(e);if(n=arguments,r=this,l=e,i){if(void 0===a)return function(e){return c=e,a=setTimeout(f,t),u?p(e):s}(l);if(d)return clearTimeout(a),a=setTimeout(f,t),p(l)}return void 0===a&&(a=setTimeout(f,t)),s}return t=to(t)||0,L(i)&&(u=!!i.leading,o=(d="maxWait"in i)?No(to(i.maxWait)||0,t):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(Vo())},m};const Ro=function(e,t){return!!(null==e?0:e.length)&&Gr(e,t,0)>-1};const Do=function(e,t,i){for(var n=-1,r=null==e?0:e.length;++n<r;)if(i(t,e[n]))return!0;return!1};const Wo=function(){};var Ho=jt&&1/mt(new jt([,-0]))[1]==1/0?function(e){return new jt(e)}:Wo;const Zo=Ho;const Go=function(e,t,i){var n=-1,r=Ro,o=e.length,s=!0,a=[],l=a;if(i)s=!1,r=Do;else if(o>=200){var c=t?null:Zo(e);if(c)return mt(c);s=!1,r=pt,l=new dt}else l=t?[]:a;e:for(;++n<o;){var u=e[n],d=t?t(u):u;if(u=i||0!==u?u:0,s&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),a.push(u)}else r(l,d,i)||(l!==a&&l.push(d),a.push(u))}return a};const zo=function(e,t){return e&&e.length?Go(e,Pi(t,2)):[]};const Yo=function(e,t){var i=[];return $i(e,(function(e,n,r){t(e,n,r)&&i.push(e)})),i};const Xo=function(e,t){return(U(e)?St:Yo)(e,Pi(t,3))};var Jo=0;const Uo=function(e){var t=++Jo;return mi(e)+t};var qo=Math.min;const Ko=function(e,t,i){for(var n=i?Do:Ro,r=e[0].length,o=e.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=e[s];s&&t&&(u=pi(u,ae(t))),l=qo(u.length,l),a[s]=!i&&(t||r>=120&&u.length>=120)?new dt(s&&u):void 0}u=e[0];var d=-1,h=a[0];e:for(;++d<r&&c.length<l;){var p=u[d],_=t?t(p):p;if(p=i||0!==p?p:0,!(h?pt(h,_):n(c,_,i))){for(s=o;--s;){var f=a[s];if(!(f?pt(f,_):n(e[s],_,i)))continue e}h&&h.push(_),c.push(p)}}return c};const Qo=function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)};var es=Math.max;const ts=function(e,t,i){return t=es(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=es(n.length-t,0),s=Array(o);++r<o;)s[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=i(s),Qo(e,this,a)}};const is=function(e){return function(){return e}};const ns=T?function(e,t){return T(e,"toString",{configurable:!0,enumerable:!1,value:is(t),writable:!0})}:xi;var rs=Date.now;const os=function(e){var t=0,i=0;return function(){var n=rs(),r=16-(n-i);if(i=n,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ns);const ss=function(e){return Z(e)&&Le(e)};const as=function(e){return ss(e)?e:[]};const ls=function(e,t){return os(ts(e,t,xi),e+"")}((function(e){var t=pi(e,as);return t.length&&t[0]===e[0]?Ko(t):[]})),cs="assistant-mapxus-level-outline",us=new po,ds=new uo;class hs extends Ai.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;_upperBuildings=new Set;_lowerBuildings=new Set;_hiddenBuildings=new Set;_upperLevels=new Set;_lowerLevels=new Set;_history=new Map;_featureIncomplete=!1;_isSwitchBuildingByClickMap=!1;constructor(e){super();const{map:t,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}=e;this._map=t,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({},bo,a):bo,this._hiddenBuildings=new Set,this._dispatch=Fo("indoorMapChange"),this._loadData()}enableSwitch(){return this._allowOutdoorSwitch=!0,this}disableSwitch(){return this._allowOutdoorSwitch=!1,this}setAllowOutdoorSwitch(e){return this._allowOutdoorSwitch=e,this}enableSwitchBuilding(){return this._allowBuildingSwitch=!0,this}disableSwitchBuilding(){return this._allowBuildingSwitch=!1,this}setAllowBuildingSwitch(e){return this._allowBuildingSwitch=e,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(e){return e===this._curBuildingId?this._curBuildingFeature:Eo(this.features,(t=>t.properties.id===e))}getFeaturesById(e,t){const{layerIds:i,filter:n}=t||{};let r=this.features;if(i?.length){const e=this._map.getCanvas().getBoundingClientRect();r=this._map.queryRenderedFeatures([[0,0],[e.width,e.height]],{layers:i})}return Xo(r,n?t=>t.properties.id===e&&n(t):t=>t.properties.id===e)}getLevelByPoint(e){const t=this._map.queryRenderedFeatures(e,{layers:["mapxus-level-fill","mapxus-level-fill-overlap-copy"]});return t.length?t[0]:null}async panToBuilding(e,t,i){const n=async()=>{if(this._map.areTilesLoaded()){const r=this.getFeaturesById(e,{filter:e=>"mapxus-building-line"===e.layer.id})[0];r&&(this._map.off("render",n),await this.selectBuilding(r,{floorId:t}),i&&i(r))}};if(this._allowBuildingSwitch){let r=this.getFeaturesById(e,{filter:e=>"mapxus-building-line"===e.layer.id})[0];if(r){const[e,i]=r.properties.label_center.split(",");this._map.panTo([e,i],{duration:500}),await this.selectBuilding(r,{floorId:t})}else try{if(r=(await us.searchByIds(e)).data.result.buildings[0],this._fitBuildingBounds){const{minLon:e,minLat:t,maxLon:i,maxLat:n}=r.bbox;this._map.fitBounds([[e,t],[i,n]],{padding:this._boundsPadding,duration:800})}else r.labelCenter&&this._map.panTo([r.labelCenter.lon,r.labelCenter.lat],{duration:500});this._map.off("render",n),this._map.on("render",n)}catch(e){this.fire(new Ai.Jh("indoorMapLoaded",{error:e})),i&&i(null)}}}switchFloorByOrdinal(e,t){if(this._updateFloorState(e),this._dispatch.call("indoorMapChange",null,{venue:this._curVenueFeature,building:this._curBuildingFeature,floor:{code:this._floorName,id:this._floorId,ordinal:this._ordinal}}),e&&this._floorId&&(this._resetSelectedBuildingLevel(),!this._isSwitchBuildingByClickMap))if("boolean"==typeof t){if(t){const e=this._curBuildingFeature.properties?.label_center?.split(",");e&&this._map.panTo(e)}}else this._checkAndPanToBuilding();this.updateRendering(),this._isSwitchBuildingByClickMap=!1}hiddenOutdoorLayer(e){this._outdoorMapShown=!e,this._setOutdoorVisibility(!e)}setOutdoorMapShown(e){this._outdoorMapShown=e,this._setOutdoorVisibility(e)}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(e){e?(this._buildingHighlightStyle=Object.assign({},this._buildingHighlightStyle,e),this._map.getLayer(cs)&&(this._map.setPaintProperty(cs,"line-color",this._buildingHighlightStyle.lineColor),this._map.setPaintProperty(cs,"line-opacity",this._buildingHighlightStyle.lineOpacity),this._map.setPaintProperty(cs,"line-width",this._buildingHighlightStyle.lineWidth),this._map.setPaintProperty(cs,"line-offset",this._buildingHighlightStyle.lineWidth))):(this._buildingHighlightStyle=Object.assign({},this._buildingHighlightStyle,{"line-opacity":0}),this._map.getLayer(cs)&&this._map.setPaintProperty(cs,"line-opacity",0))}setMaskNonSelectedAreas(e){this._isMaskMode=e}onMapChange(e){const t=Uo("indoorMapChange.");return this._dispatch?.on(t,e),{unsubscribe:()=>this._dispatch.on(t,null)}}async selectBuilding(e,t){if(!this._allowOutdoorSwitch&&!e||!this._allowBuildingSwitch)return;const{floorId:i,featureIncomplete:n=this._featureIncomplete}=t||{};var r;this._featureIncomplete=n,this._allowBuildingSwitch&&this._isNotCurrentFeature(e)&&(this._isMaskMode&&this._invisibleSelectedBuilding(),await this._updateIndoorState(e,i),this.fire((r={buildingId:this._curBuildingId,ordinal:this._ordinal},new Ai.Jh("selectedBuildingChanged",r))),this._indoorMapLoaded||(this._indoorMapLoaded=!0,this.fire(new Ai.Jh("indoorMapLoaded"))))}updateRendering(){this._features=this._getIndoorFeatures();const e=zo(Xo(this._features,(e=>"mapxus-building-line"===e.layer.id)),(e=>e.properties.id));this._allBuildings=new Map(e.map((e=>[e.properties.id,e]))),this._featureIncomplete&&this._allBuildings.get(this._curBuildingId)&&(this._curBuildingFeature=this._allBuildings.get(this._curBuildingId),this._featureIncomplete=!1),this._layerDisplayedBuildings(),this._setDisplayedLevels(),this._filterTiles(),this._setBuildingLineOpacity(),this._filterBuildingHighlight()}_getBuildingByPoint(e){let t=null;if(this._isMaskMode){const i=this._map.queryRenderedFeatures(e,{layers:["mapxus-level-fill","mapxus-level-fill-overlap-copy","mapxus-building-line"]});if(i.length){const e=Eo(i,(e=>e.layer.id.includes("mapxus-level-fill")));if(e)t=this.getFeaturesById(e?.properties?.["ref:building"],{layerIds:["mapxus-building-line"]})[0];else{const e=i[0],n=this._hiddenBuildings.has(e?.properties?.id),r=!!ls([...this._upperLevels,...this._lowerLevels],e.properties.level_ids.split(",")).length;n||r||(t=e)}}}else{const i=this._map.queryRenderedFeatures(e,{layers:["mapxus-level-fill","mapxus-level-fill-overlap-copy"]});if(i.length){const e=i[0]?.properties?.["ref:building"];t=this.getFeaturesById(e,{layerIds:["mapxus-building-line"]})[0]}}return t}_loadData(){this._map.on("load",(()=>this._init()))}_init(){this.updateCustomLayers(),this._map.on("data",To((()=>{this._maplibreMapLoaded||(this._maplibreMapLoaded=!0,this.fire(new Ai.Jh("maplibreMapLoaded")),(!this._startWithIndoorView||this._map.getZoom()<14)&&(this._indoorMapLoaded=!0,this.fire(new Ai.Jh("indoorMapLoaded")))),this.updateRendering()}),300)).on("click",(async e=>{const t=this._getBuildingByPoint(e.point);this._isSwitchBuildingByClickMap=!0,await this.selectBuilding(t)}))}_clear(){this._curBuildingFeature=null,this._curBuildingId=null,this._ordinal=null,this._floorName=null,this._floorId=null,this._curVenueId=null,this._curVenueFeature=null}_getIndoorFeatures(){const e=this._map.getCanvas().getBoundingClientRect(),t=this._map.queryRenderedFeatures([[0,0],[e.width,e.height]]),i=Xo(t,(e=>"indoor-planet"===e.source));return zo(i,(e=>e.layer.id+":"+e.properties.id))}_getBuildingFloorByOrdinal(e,t){let i=null,n=null;if(e?.properties){const{ordinals:r,level_names:o,level_ids:s}=e.properties,a=Co(r?.split(",")||[],(e=>e===t));i=(o?.split(",")||[])[a]??null,n=(s?.split(",")||[])[a]??null}return{code:i,id:n,ordinal:t}}_isNotCurrentFeature(e){return e?.properties?.id!==this._curBuildingId}_setOutdoorVisibility(e){const t=this._map.getStyle().layers.filter(a);if(t.length){const i=e?"visible":"none";t.forEach((({id:e})=>{this._map.getLayer(e)&&this._map.setLayoutProperty(e,"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(cs)){const{lineWidth:e,lineOpacity:t,lineColor:i}=this._buildingHighlightStyle;this._map.addLayer({id:cs,source:"indoor-planet","source-layer":"mapxus_level",type:"line",filter:["==","id",""],paint:{"line-offset":e,"line-width":e,"line-color":i,"line-opacity":t}});const n=this._originIndoorLayers.findIndex((({id:e})=>e===this._upperLayers[this._upperLayers.length-1].id)),r=this._originIndoorLayers[n+1];this._map.moveLayer(cs,r.id)}}_filterBuildingHighlight(){this._map.getLayer(cs)&&this._map.setFilter(cs,["==","id",this._floorId??""])}_handleBuildings(e,t){if(t.clear(),e.size)for(const i of e){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.get(this._isVenueMode?r:i);if(!a){if(this._isVenueMode){const e=this._features.find((e=>"mapxus-venue-fill"===e.layer.id&&e.properties.id===r));a=this._getVenueDefaultOrdinal(e)}else a=this._getBuildingDefaultOrdinal(n);if(!a)continue;this._history.set(this._isVenueMode?r:i,a)}const l=Co(o.split(","),(e=>e===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)?(t.add(n),this._hiddenBuildings.delete(i)):e.delete(i)}else t.add(n),this._hiddenBuildings.delete(i)}else this._hiddenBuildings.add(i),e.delete(i)}}_getVenueDefaultOrdinal(e){let t=null;if(e.properties){const{default_displayed_ordinal:i,building_ids:n}=e.properties;if(i&&(t=i),!t&&n){const e=Eo(this._getBuildingsOfBbox(),(e=>n.includes(e.properties.id)));t=e?this._getBuildingDefaultOrdinal(e):null}}return t}_getBuildingDefaultOrdinal(e){let t=null;if(e?.properties){const{level_ids:i,ordinals:n,default_displayed_floor:r}=e.properties,o=n?.split(",")||[];if(o.length){if(r){t=o[Co(i?.split(",")||[],(e=>e===r))]??null}t||(t=Oo(o,(e=>Math.abs(Number(e)-.1))))}}return t}_getBuildingsOfBbox(e){let t=this._map.queryRenderedFeatures({layers:["mapxus-building-line"]});return t=zo(t,(e=>e.properties.id)),e&&(t=t.filter(e)),t}_copyOverlapLayers(){const e=this._originIndoorLayers.findIndex((({id:e})=>"mapxus-level-fill"===e)),t=this._originIndoorLayers.findIndex((({id:e})=>e.startsWith("mapxus-poi")));this._commonLayers=this._originIndoorLayers.slice(0,e).concat(this._originIndoorLayers.slice(t)),this._upperLayers=this._originIndoorLayers.slice(e,t).filter((e=>"mapxus_building"!==e["source-layer"])),this._lowerLayers=this._upperLayers.map((e=>{const t=Object.assign({},e,{id:`${e.id}-overlap-copy`});return this._map.getLayer(t.id)||(this._map.addLayer(t),this._map.moveLayer(t.id,"mapxus-level-fill")),t}))}_layerDisplayedBuildings(){if(this._allBuildings.size)for(const e of this._allBuildings.values()){if(!e.properties)continue;const{id:t,overlap:i}=e.properties;!this._upperBuildings.has(t)&&!this._lowerBuildings.has(t)&&!this._hiddenBuildings.has(t)&&(this._upperBuildings.add(t),i&&i.split(",").forEach((e=>this._lowerBuildings.add(e))))}}_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(e,t){if(t.length){let i;for(const n of t){const t=n,r=t["source-layer"];if("mapxus_venue"===r||"mapxus_building"===r)continue;const o=t.layout?.visibility,{id:s,filter:a}=t;"none"===o&&this._map.setLayoutProperty(s,"visibility","visible"),a&&(i=["all","mapxus_level"===r?["in","id",...e]:["in","ref:level",...e],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(e,t){if(e){if(!e.properties)return void console.warn("Building feature properties is empty.",e);const{id:i,"ref:venue":n,level_ids:r,ordinals:o}=e.properties;if(this._curVenueId!==n){this._curVenueId=n;let e=this.getFeaturesById(n,{layerIds:["mapxus-venue-fill"]})[0]??null;if(!e)try{const t=await ds.searchByIds(n);e=function(e){const{address:t,buildings:i,id:n,name:r,type:o}=e;return{layer:{id:"mapxus-venue-fill"},properties:{...Vi(t,((e,t,i)=>Object.assign(e,"default"===i?{"addr:street":t.street,"addr:housenumber":t.housenumber}:{[`addr:street:${i}`]:t.street})),{}),...Ci(r,((e,t)=>"default"===t?"name":`name:${t}`)),id:n,venue:o,building_ids:i.map((({id:e})=>e)).join()},source:"indoor-planet",sourceLayer:"mapxus_venue"}}(t.data.result.venues[0])}catch(e){throw new Error("Venue not found.")}this._curVenueFeature=e}this._curBuildingFeature=e,this._curBuildingId=i;const s=o.split(",");if(t){const i=s[Co(r.split(","),(e=>e===t))];i||console.warn("Building has no corresponding ordinal.",e),this._ordinal=i??null}else{let t=this._history.get(this._isVenueMode?n:i);(!t||t&&!s.includes(t))&&(t=this._getBuildingDefaultOrdinal(e)),this._ordinal=t}}else this._clear()}_updateFloorState(e){if(this._ordinal=e,this._floorName=null,this._floorId=null,e){const{code:e,id:t}=this._getBuildingFloorByOrdinal(this._curBuildingFeature,this._ordinal);if(this._floorName=e,this._floorId=t,!t)return;this._history.set(this._isVenueMode?this._curVenueId:this._curBuildingId,this._ordinal)}}_resetSelectedBuildingLevel(){(this._isVenueMode?this._curVenueFeature.properties.building_ids.split(","):[this._curBuildingId]).forEach((e=>{this._upperBuildings.delete(e),this._lowerBuildings.delete(e),this._hiddenBuildings.delete(e)})),this._upperBuildings.add(this._curBuildingId);const e=this._curBuildingFeature.properties.overlap;e&&e.split(",").forEach((e=>{this._upperBuildings.has(e)&&(this._upperBuildings.delete(e),this._lowerBuildings.add(e))}))}_checkAndPanToBuilding(){if(!this.getFeaturesById(this._curBuildingId,{layerIds:["mapxus-building-line"]})[0]){const e=this._curBuildingFeature.properties?.label_center?.split(",");e&&this._map.panTo(e)}}_invisibleSelectedBuilding(){if(this._isVenueMode){if(!this._curVenueFeature)return;const{building_ids:e}=this._curVenueFeature.properties;e&&e.split(",").forEach((e=>{this._upperBuildings.delete(e),this._lowerBuildings.delete(e)}))}else this._curBuildingId&&(this._upperBuildings.delete(this._curBuildingId),this._lowerBuildings.delete(this._curBuildingId))}}class ps{_map;_layerIds=[];_dispatch;constructor(e){this._map=e,this._dispatch=Fo("poiClick"),this._bindEvents()}onPoiClick(e){const t=Uo("poiClick.");return this._dispatch.on(t,e),{unsubscribe:()=>this._dispatch.on(t,null)}}_bindEvents(){this._map.on("styledata",To((()=>this._init()),300)),this._initPoiClick()}_init(){this._layerIds=Mr(Xo(o(this._map.getStyle()),(e=>"mapxus_place"===e["source-layer"])),(({id:e})=>e))}_initPoiClick(){this._map.on("click",(e=>{const t=this._map.queryRenderedFeatures(e.point,{layers:[...this._layerIds,"mapxus-building-line","mapxus-venue-fill"]});if(t.length){const i=Eo(t,(e=>e.layer.id.indexOf("mapxus-poi")>-1));if(i?.properties){const{"ref:level":n=null,"ref:building":r}=i.properties,o=Eo(t,(e=>e.properties.id===r))??null,s=Eo(t,(e=>e.properties.id===o?.properties?.["ref:venue"]))??null,{floorName:a,ordinal:l}=this._getFloorDataByFloorId(n,o);this._dispatch.call("poiClick",null,{coordinate:e.lngLat,poi:i,building:o,venue:s,floor:{code:a,id:n,ordinal:l}})}}}))}_getFloorDataByFloorId(e,t){let i=null,n=null;if(e&&t?.properties){const{level_ids:r,level_names:o,ordinals:s}=t.properties,a=r?.split(",")||[],l=Co(a,(t=>t===e));l>-1&&(i=(o?.split(",")||[])[l]??null,n=(s?.split(",")||[])[l]??null)}return{floorName:i,ordinal:n}}}function _s(e){e.parentNode&&e.parentNode.removeChild(e)}function fs(e,t,i){const n=window.document.createElement(e);return t&&(n.className=t),i&&i.appendChild(n),n}const gs=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e};const ms=function(e){return"function"==typeof e?e:xi};const ys=function(e,t){return(U(e)?gs:$i)(e,ms(t))};const vs=function(e){return"number"==typeof e||Z(e)&&"[object Number]"==w(e)};class bs{_map;_maplibre;_indoor;_buildingId;_features;_container;_buildingNameLayout;_buildingNameList;_listHeight;_visible;_position;constructor(e,t,i){this._map=e,this._position=t??"top-right",this._visible=i??!0}onAdd(e){return this._maplibre=e,this._container=fs("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(){_s(this._container)}get position(){return this._position}get enabled(){return this._visible}getDefaultPosition(){return"top-right"}setLayoutHidden(e){this._visible=!e,e?this._$hideLayout():this._$showLayout()}setVisibility(e){this._visible=e,e?this._$showLayout():this._$hideLayout()}moveBuildingFilter(e,t){const i=document.querySelector(`.maplibregl-ctrl-${e}`),n=i.querySelector(".maplibregl-ctrl-building-filter"),r=document.querySelector(`.maplibregl-ctrl-${t}`);n&&(i.removeChild(n),r.prepend(n),this._updateBuildingListLayout(t),this._position=t)}changePosition(e,t,i){const n=document.querySelector(`.maplibregl-ctrl-${e}`),r=n.querySelector(".maplibregl-ctrl-building-filter");if(e!==t){this._position=t;const e=document.querySelector(`.maplibregl-ctrl-${t}`);r&&(n.removeChild(r),vs(i)?e.insertBefore(r,e.children[i]):e.append(r),this._updateBuildingListLayout(t))}else vs(i)&&n.children[i]!==r&&(n.removeChild(r),n.insertBefore(r,n.children[i]))}_loadData(){this._init(),this._maplibre.on("moveend",(()=>this._refresh())),this._map.getIndoor().on("selectedBuildingChanged",(e=>this._select(e))).on("indoorMapLoaded",(()=>this._refresh()))}_init(){this._load()}_refresh(){this._load()}_select(e){this._buildingId=e.buildingId,this._refresh()}_load(){this._indoor=this._map.getIndoor(),this._buildingNameListClean(),this._buildingNameListUpdate(this._indoor.features,this._buildingId)}_buildingFilterIconCreate(e){const t=window.document.createElement(e);return t.className="mapxus-building-filter-icon",this._buildingToggleListEvent(t,!0),t}_buildingNameListCreate(e){return this._buildingNameLayout=window.document.createElement(e),this._buildingNameLayout.className="mapxus-building-name-layout",this._buildingNameLayout.style.display="none",this._buildingNameLayout.style.top="20px",this._buildingNameList=window.document.createElement(e),this._buildingNameList.className="mapxus-building-name-list",this._buildingNameLayout.appendChild(this._buildingNameList),this._buildingToggleListEvent(this._buildingNameLayout,!1),this._buildingNameLayout}_buildingNameListUpdate(e,t){this._features=[],ys(e,(e=>{if(e.properties){const{building:i,id:n,name:r}=e.properties;if(i&&!Eo(this._features,(e=>e.properties.id===n))){this._features.push(e);let i=!1;t&&e.properties.id===t&&(i=!0),this._buildingNameList.appendChild(this._buildingNameCreate("p",r,n,i))}}})),this._setBuildingListHeight(this._features),this._updateBuildingListLayout(this._position)}_buildingNameListClean(){this._buildingNameList.innerHTML=""}_setBuildingListHeight(e){const t=e.map((e=>{const t=e?.properties?.name;return t?Math.ceil(8*t.length/107):0})).reduce(((e,t)=>e+t),0);this._listHeight=26*t+8*e.length,this._buildingNameList.style.height=this._buildingNameLayout.style.height=`${this._listHeight>=208?208:this._listHeight}px`}_buildingNameCreate(e,t,i,n){const r=window.document.createElement(e);return r.dataset.id=i,r.className="mapxus-building-name",r.innerHTML=t,n&&r.classList.add("active"),this._buildingNameClickEvent(r),r}_toggleList(e){this._buildingNameLayout.style.display=e?"block":"none"}_buildingNameClickEvent(e){e.onclick||(e.onclick=e=>{const t=e.target;this._indoor.panToBuilding(t.dataset.id)})}_buildingToggleListEvent(e,t){e.onmouseenter||(e.onmouseenter=e=>{this._toggleList(!0)}),e.onmouseleave||t||(e.onmouseleave=e=>{this._toggleList(!1)})}_$showLayout(){this._container.classList.remove("hide")}_$hideLayout(){this._container.classList.add("hide")}_updateBuildingListLayout(e){e.indexOf("left")>-1?(this._buildingNameLayout.style.right=null,this._buildingNameLayout.style.left="55px"):(this._buildingNameLayout.style.left=null,this._buildingNameLayout.style.right="55px");const t=this._container.offsetParent?this._container.offsetParent.clientHeight-(this._container.offsetTop+this._container.clientHeight)-25:0;e.includes("bottom")&&this._listHeight-20>t?(this._buildingNameLayout.style.top=null,this._buildingNameLayout.style.bottom="15px"):(this._buildingNameLayout.style.bottom=null,this._buildingNameLayout.style.top="20px")}}var ws=Math.max,Ls=Math.min;const Ss=function(e,t,i){return e>=Ls(t,i)&&e<ws(t,i)};const Is=function(e,t,i){return t=no(t),void 0===i?(i=t,t=0):i=no(i),e=to(e),Ss(e,t,i)};class Bs{_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=!0;constructor(e,t){const{style:i,enabled:n=!0}=t;this._indoor=e,this._style=i?Object.assign({},wo,i):wo,this._isEnabled=n,this._bindEvents()}onAdd(e){return this._maplibre=e,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(e){this._isEnabled=e,e&&!this._visible&&this._setVisibility(!0),!e&&this._visible&&this._setVisibility(!1)}getDefaultPosition(){return"top-right"}switchByOrdinal(e){this._ordinal=e,this._indoor.switchFloorByOrdinal(e,this._dragPan),this._updateSelectorStatus(e),this._scrollCenterActiveFloor()}setVisibility(e){this._componentDidMount?e?this._show():this._hide():this._visible=e}setPosition(e){const t=document.querySelector(`.maplibregl-ctrl-${this._position}`),i=t.querySelector(".mapxus-ctrl-floors"),n=document.querySelector(`.maplibregl-ctrl-${e}`);i&&(t.removeChild(i),n.prepend(i),this._position=e),this._show(),this._scrollCenterActiveFloor()}changePosition(e,t,i){const n=document.querySelector(`.maplibregl-ctrl-${e}`),r=n.querySelector(".mapxus-ctrl-floors");if(e!==t){this._position=t;const e=document.querySelector(`.maplibregl-ctrl-${t}`);r&&(n.removeChild(r),vs(i)?e.insertBefore(r,e.children[i]):e.append(r),this._show(),this._scrollCenterActiveFloor())}else vs(i)&&n.children[i]!==r&&(n.removeChild(r),n.insertBefore(r,n.children[i]),this._show(),this._scrollCenterActiveFloor())}setStyle(e){this._style=Object.assign({},this._style,e),this._componentDidMount&&(this._clearFloors(),this._render(),this._scrollCenterActiveFloor(),this._componentDidMount=!0)}setDragPan(e){this._dragPan=e}_setVisibility(e){this._componentDidMount?e?(this._show(),this._scrollCenterActiveFloor()):this._hide():(this._visible=e,this._indoor.building&&e&&(this._mountFloors(this._indoor.building),this._show(),this._scrollCenterActiveFloor()))}_bindEvents(){this._indoor.on("selectedBuildingChanged",(({buildingId:e,ordinal:t})=>{if(this._buildingId=e,this._ordinal=t,this._indoor.switchFloorByOrdinal(t,this._dragPan),this._visible&&this._hide(),this._componentDidMount&&this._clearFloors(),e){const t=this._indoor.getFeaturesById(e,{layerIds:["mapxus-building-line"]})[0];t&&(this._mountFloors(t),this.enabled&&(this._show(),this._scrollCenterActiveFloor()))}else this._clearState()}))}_addMapMoveEventListener(){this._maplibre.on("moveend",(()=>{if(this.enabled&&!1===this._dragPan&&this._buildingId){const e=this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0];e?this._componentDidMount?this._visible||this._show():(this._mountFloors(e),this._show(),this._scrollCenterActiveFloor()):this._componentDidMount&&this._visible&&this._hide()}}))}_mountFloors(e){this._updateFloorSelector(e),this._componentDidMount=!0}_updateFloorSelector(e){const{level_names:t,ordinals:i}=e.properties;this._floorNames=t.split(",").reverse(),this._ordinals=i.split(",").reverse(),this._render()}_clearState(){this._floorNames=[],this._ordinals=[],this._ordinal=null}_render(){const{itemCount:e,itemSize:t}=this._style;this._centerSelectorIdx=Math.ceil(e/2)-1,this._maxScrollTop=(this._floorNames.length-e)*t,this._lastNormalScrollableIdx=this._floorNames.length-(e-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(e,t){const{itemSize:i,itemCount:n,defaultFolded:r,backgroundColor:o}=this._style,s=fs("div","mapxus-ctrl-floors-expanded "+(r?"hidden":""),e);if(this._floorNames.length>1){fs("div","mapxus-ctrl-floors-close",s).onclick=t}const a=fs("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=fs("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",To((e=>{e.stopPropagation(),this._resetArrowBtnStatus(this._$innerFloors.scrollTop)}),100))),s}_$foldedSelector(e,t){const{itemSize:i,activeFontColor:n,activeBackgroundColor:r,defaultFolded:o}=this._style,s=fs("div","mapxus-ctrl-floors-folded mapxus-ctrl-floors-floor "+(o?"":"hidden"),e);return s.onclick=t,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(e,t){return fs("div",`mapxus-ctrl-floors-arrow mapxus-ctrl-floors-floor ${t}`,e)}_$createFloors(e){const{fontColor:t,itemSize:i}=this._style;let n;ys(this._floorNames,((r,o)=>{n=fs("div","mapxus-ctrl-floors-floor",e),n.dataset.floor=r,n.dataset.ordinal=this._ordinals[o],n.innerText=r,Object.assign(n.style,{color:t,height:`${i}px`,lineHeight:`${i}px`}),n.dataset.ordinal===this._ordinal&&(this._$activeFloor=n,this._resetActiveFloor(!0),this._$selectorFolded.innerText=r),n.onclick=e=>{this.setDragPan(void 0),this.switchByOrdinal(e.target.dataset.ordinal)}}))}_updateSelectorStatus(e){const t=this._floorNames[this._ordinals.indexOf(e)];this._$activeFloor&&this._resetActiveFloor(!1),ys(this._$innerFloors.children,(t=>{t.dataset.ordinal===e&&(this._$activeFloor=t,this._resetActiveFloor(!0))})),this._$selectorFolded.innerText=t}_resetArrowBtnStatus(e){0===e?this._$arrowBtnUp?.classList?.add("hidden"):this._$arrowBtnUp?.classList?.remove("hidden"),e===this._maxScrollTop?this._$arrowBtnDown?.classList?.add("hidden"):this._$arrowBtnDown?.classList?.remove("hidden")}_resetActiveFloor(e){const{activeBackgroundColor:t,backgroundColor:i,activeFontColor:n,fontColor:r}=this._style;Object.assign(this._$activeFloor.style,{color:e?n:r,backgroundColor:e?t:i,fontWeight:e?"bold":"normal",cursor:e?"auto":"pointer"}),this._$activeFloor.disabled=e}_scrollCenterActiveFloor(){if(this._ordinal){const e=this._ordinals.indexOf(this._ordinal);e>-1&&(this._$innerFloors.scrollTop=this._getScrollTop(e),this._$innerFloors.scrollTop||this._resetArrowBtnStatus(0))}}_getScrollTop(e){return Is(this._centerSelectorIdx,this._lastNormalScrollableIdx+1)?(e-this._centerSelectorIdx)*this._style.itemSize:e>this._lastNormalScrollableIdx?this._maxScrollTop:0}_handleScroll(e){const t=this._$innerFloors.scrollTop,{itemSize:i}=this._style;if("up"===e){const e=t-2*i;this._$innerFloors.scrollTop=e<0?0:e}else if("down"===e){const e=t+2*i;this._$innerFloors.scrollTop=e>this._maxScrollTop?this._maxScrollTop:e}}_expandSelector(e){e?(this._$selectorExpanded.classList.remove("hidden"),this._$selectorFolded.classList.add("hidden")):(this._$selectorExpanded.classList.add("hidden"),this._$selectorFolded.classList.remove("hidden"))}}class xs{_container;onAdd(e){this._container=fs("div","maplibregl-ctrl mapxus-ctrl-logo",e.getContainer());const t=fs("a","mapxus-logo",this._container);return t.target="_blank",t.href="https://www.khi.co.jp/groupvision2030/mapxus.html",t.setAttribute("aria-label","Mapxus logo"),t.setAttribute("rel","noopener"),this._container.appendChild(t),this._container}onRemove(){_s(this._container)}getDefaultPosition(){return"bottom-left"}}class Ms{_container;_anchor;_theme;constructor(e){this._theme=e.theme?e.theme:"default"}onAdd(e){return this._container=fs("div","maplibregl-ctrl mapxus-ctrl-attribution",e.getContainer()),this._anchor=fs("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(){_s(this._container)}getDefaultPosition(){return"bottom-right"}changeTheme(e){this._setCopyrightInfo(e)}_setCopyrightInfo(e){this._anchor.innerText="landsD"===e?"© The Government of the Hong Kong SAR":"© OpenStreetMap contributors",this._anchor.href="landsD"===e?"https://www.map.gov.hk/gm/":"https://www.openstreetmap.org/copyright/"}}class Fs{_container;onAdd(e){return this._container=fs("div","maplibregl-ctrl mapxus-ctrl-collapsed-copyright",e.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(e){_s(this._container)}getDefaultPosition(){return"bottom-right"}_bindEvents(){const e=this._container.querySelector(".mapxus-collapsed-copyright-menu"),t=this._container.querySelector(".mapxus-collapsed-copyright-btn");let i=!1;t.addEventListener("click",(()=>(i=!i,void(i?e.classList.remove("hidden"):e.classList.add("hidden")))))}}const ks="v3";function Ps(e){return`${yr.hl}/api/${ks}/tiles/styles/${e}`}const Cs=Ps("christmas_mims2_v1"),Es=Ps("common_mims2_v1"),js=Ps("halloween_mims2_v1"),$s=Ps("mappybee_mims2_v1"),Os=Ps("mapxus_mims2_v1"),Vs=Ps("lands_d_mims2_v1"),Ns=Ps("mapxus_mims2_v5");class As{_indoor;_isEnabled=!0;constructor(e){this._indoor=e}enable(){this._isEnabled=!0,this._indoor.setAllowOutdoorSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowOutdoorSwitch(!1)}get isEnabled(){return this._isEnabled}}class Ts{_indoor;_isEnabled=!0;constructor(e){this._indoor=e}enable(){this._isEnabled=!0,this._indoor.setAllowBuildingSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowBuildingSwitch(!1)}get isEnabled(){return this._isEnabled}}class Rs{_buildingSelector;_isEnabled=!0;_position;constructor(e){this._buildingSelector=e}enable(){this._isEnabled=!0,this._buildingSelector.enabled||this._buildingSelector.setVisibility(!0)}disable(){this._isEnabled=!1,this._buildingSelector.enabled&&this._buildingSelector.setVisibility(!1)}setPosition(e,t){this._position=e,this._buildingSelector.changePosition(this._buildingSelector.position,e,t)}get isEnabled(){return this._isEnabled}get position(){return this._position}}class Ds{_floorSelector;_isEnabled;_position;constructor(e){this._floorSelector=e,this._position=e.position,this._isEnabled=this._floorSelector.enabled}enable(){this._isEnabled=!0,this._floorSelector.setEnabled(!0)}disable(){this._isEnabled=!1,this._floorSelector.setEnabled(!1)}setPosition(e,t){this._position=e,this._floorSelector.changePosition(this._floorSelector.position,e,t)}setStyle(e){this._floorSelector.setStyle(e)}get isEnabled(){return this._isEnabled}get position(){return this._position}}class Ws extends Ai.a${_map;_indoor;_poi;_floorsControl;_buildingFilterControl;_attributionControl;_initialHiddenLayers;_language;_dispatch;_fitBuildingBounds;_boundsPadding;_buildingService=new po;_venueService=new uo;switchOutdoor;switchBuilding;buildingSelector;floorSelector;constructor(e){super();const{map:t,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:I=Lo}=e;if(!t)throw new Error("Outdoor Map parameter missing.");if(!i||!n)throw new Error("Permission parameter missing.");Ir.verifyPermission(i,n).then((()=>{this._map=t,this._language=I,this._indoor=new hs({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 ps(this._map),this._fitBuildingBounds=v,this._boundsPadding=b,this._resourceRequestTransform(),this._setStyle(this._getStyleUrl(c)),this._checkMapZoom(),this._dispatch=Fo("mapClick","pointClick"),g?this._attributionControl=new Fs:(this._attributionControl=new Ms({theme:c}),this._addControl(new xs)),this._addControl(this._attributionControl),this._addControl(this._buildingFilterControl=new bs(this,"top-right",h??p)),this._addControl(this._floorsControl=new Bs(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 As(this._indoor),this.switchBuilding=new Ts(this._indoor),this.buildingSelector=new Rs(this._buildingFilterControl),this.floorSelector=new Ds(this._floorsControl),this._map.once("styledata",(()=>this._hideIndoorLayers())),this._map.on("click",(e=>this._clickEventsDispatcher(e))),this._map.on("error",To((e=>this._updatePermission(e,i,n)),350)),this._indoor.once("maplibreMapLoaded",(()=>{this._showIndoorLayers(),this.setLanguage(this._language)})),this._indoor.once("indoorMapLoaded",(e=>{this.fire(new Ai.Jh("isRenderComplete",e))}))})).catch((e=>{throw e}))}renderComplete(e){this.on("isRenderComplete",e)}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(e){const t=this._map?.getStyle();if(t){const i=o(t),n=Xo(i,(({type:e})=>"symbol"===e));if(n.length){const t=(0,vo.y)(e);(0,vo.E)(n,t).forEach((({layerId:e,languages:t})=>{this._map.getLayer(e)&&this._map.setLayoutProperty(e,"text-field",t)}))}}}setLanguage(e){this._language!==e&&(this._language=e);const t=this._map?.getStyle(),i=t?.layers;if(i&&i.length){const t=i.filter((({type:e})=>"symbol"===e));t.length&&t.forEach((({id:t})=>{this._map.getLayer(t)&&this._map.setLayoutProperty(t,"text-field",["coalesce",["get",`name:${e}`],["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(e){this.getIndoor()?.hiddenOutdoorLayer(e)}setOutdoorMapShown(e){this.getIndoor()?.setOutdoorMapShown(e)}getFeature(e){return this.getIndoor()?.getFeature(e)}getIndoorFeaturesByCoordinates(e,t){const i=this._map.project(e),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 e=n.filter((e=>e.layer.id.includes("mapxus-level-fill")));s=Eo(e,(e=>vs(t)?e.properties.ordinal===t+"":e.layer.id.startsWith("mapxus-level-fill"))),s&&(o=Eo(n,(e=>e.properties.id===s.properties["ref:building"])),r=Eo(n,(e=>e.properties.id===o.properties["ref:venue"])))}return{venue:r,building:o,level:s}}getFeaturesById(e,t){return this.getIndoor()?.getFeaturesById(e,t)||[]}async selectFloorById(e,t){const{dragPan:i=!0}=t||{};if(this._floorsControl.setDragPan(i),e===this.floor?.id){if(i){const e=this.building?.properties?.label_center;this._map.panTo(e.split(","))}}else{let t,n=Eo(this._indoor?.features||[],(t=>t.properties?.level_ids?.includes(e)&&"mapxus-building-line"===t.layer.id)),r=!1,o=!1;if(!n)try{t=(await this._buildingService.searchByFloorId(e)).data.result.buildings[0],n=Ni(t),o=!0,r=!0}catch(e){throw new Error(e)}if(i)if(r&&t){const{buildingId:e,labelCenter:{lon:i,lat:r},bbox:{maxLat:s,maxLon:a,minLat:l,minLon:c}}=t;n=await this._panToBuilding(e,[i,r],[[c,l],[a,s]]),o=!1}else if(n){const e=n.properties.label_center.split(",");this._map.panTo(e)}if(n?.properties?.id===this.building?.properties?.id){const{level_ids:t,ordinals:i}=n.properties,r=t.split(",").indexOf(e),o=i.split(",")[r]??null;this._floorsControl.switchByOrdinal(o)}else await(this._indoor?.selectBuilding(n,{floorId:e,featureIncomplete:o}))}}async selectBuildingById(e,t){const{dragPan:i=!0}=t||{};if(this._floorsControl.setDragPan(i),e===this.building?.properties?.id){if(i){const e=this.building.properties.label_center.split(",");this._map.panTo(e)}}else{let t,n=this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(e,{layerIds:["mapxus-building-line"]})[0],r=!1;if(!n)try{t=(await this._buildingService.searchByIds(e)).data.result.buildings[0],n=Ni(t),r=!0}catch(e){throw new Error(e)}if(i)if(r&&t){const{labelCenter:{lon:i,lat:r},bbox:{maxLat:o,maxLon:s,minLat:a,minLon:l}}=t;n=await this._panToBuilding(e,[i,r],[[l,a],[s,o]])}else if(n){const e=n.properties.label_center.split(",");this._map.panTo(e)}await(this._indoor?.selectBuilding(n))}}async selectVenueById(e,t){const{dragPan:i=!0}=t||{};if(this._floorsControl.setDragPan(i),e)if(e===this.venue?.properties?.id){if(i){const e=this.building.properties.label_center.split(",");this._map.panTo(e)}}else{const t=this._map.getLayer("mapxus-venue-fill")&&this.getFeaturesById(e,{layerIds:["mapxus-venue-fill"]})[0];let n;if(t){const{default_displayed_building:e,building_ids:i}=t.properties;n=e||(i?.split(",")||[])[0]}else try{const t=(await this._venueService.searchByIds(e)).data.result.venues[0];n=t.defaultBuilding||t.buildings[0]?.id}catch(e){throw new Error(e)}await this.selectBuildingById(n,{dragPan:i})}else await(this._indoor?.selectBuilding(null))}onMapClickListener(e){const t=Uo("mapClick.");return this._dispatch?.on(t,e),{unsubscribe:()=>this._dispatch.on(t,null)}}onPoiClickListener(e){return this._poi?.onPoiClick(e)}onPointClickListener(e){const t=Uo("pointClick.");return this._dispatch?.on(t,e),{unsubscribe:()=>this._dispatch.on(t,null)}}onMapChangeListener(e){return this._indoor?.onMapChange(e)}disableBuildingSelector(){return this._buildingFilterControl?.enabled&&this._buildingFilterControl.setVisibility(!1),this}enableBuildingSelector(e){return e&&e!==this._buildingFilterControl?.position&&this._buildingFilterControl.changePosition(this._buildingFilterControl.position,e),this._buildingFilterControl?.enabled||this._buildingFilterControl.setVisibility(!0),this}switchTheme(e){this._setStyle(this._getStyleUrl(e)),"changeTheme"in this._attributionControl&&this._attributionControl.changeTheme(e),this._map?.once("styledata",To((()=>this._setIndoorFilter()),250))}setFloorsControlStyle(e){return this._floorsControl?.setStyle(e),this}setFloorSelectorStyle(e){return this._floorsControl?.setStyle(e),this}setSelectedBuildingBorderStyle(e){return this._indoor?.setSelectedBuildingBorderStyle(e),this}_getStyleUrl(e){let t;if(so(r.SV).indexOf(e)>-1)switch(e){case r.SV.CHRISTMAS:t=Cs;break;case r.SV.HALLOWEEN:t=js;break;case r.SV.MAPPY_BEE:t=$s;break;case r.SV.MAPXUS:t=Os;break;case r.SV.MAPXUS_V2:t=Ns;break;case r.SV.COMMON:t=Es;break;case r.SV.LANDS_D:t=Vs}else t=function(e){return Ps(e)}(e);return t}_setIndoorFilter(){this._indoor.updateCustomLayers(),this._indoor.updateRendering()}_setStyle(e){this._map?.setStyle(e,{localIdeographFontFamily:!1})}_addControl(e,t){this._map.addControl(e,t)}async _selectPoiById(e){try{const t=(await(new fo).searchByIds([e])).data.result.pois[0],{buildingId:i,floorId:n,location:{lon:r,lat:o}}=t,s=await this._panToBuilding(i,[r,o]);await(this._indoor?.selectBuilding(s,{floorId:n}))}catch(e){throw new Error(e)}}_resourceRequestTransform(){this._map.setTransformRequest(Ir.transformRequest)}_checkMapZoom(){const e=this._map.getZoom();(e<8||e>22)&&e>1&&console.warn("Indoor maps perform better at zoom levels [8, 22].")}_clickEventsDispatcher(e){const{point:t,lngLat:i}=e;this._dispatch.call("pointClick",null,{point:t,coordinate:i});const n={coordinate:i,building:null,venue:null,floor:{code:null,id:null,ordinal:null}},r=this._indoor.getLevelByPoint(t);if(r?.properties){const{id:e=null,name:t=null,ordinal:i=null,"ref:building":o=null}=r.properties,s=o?Eo(this._indoor.getFeaturesById(o),(e=>"mapxus-building-line"===e.layer?.id)):null,a=s?.properties?.["ref:venue"]??null,l=a?Eo(this._indoor.getFeaturesById(a),(e=>"mapxus-venue-fill"===e.layer?.id)):null;Object.assign(n,{building:s,venue:l,floor:{code:t,id:e,ordinal:i}})}this._dispatch.call("mapClick",null,n)}_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:e})=>!e.includes("mapxus-building")||"mapxus-venue-fill"!==e)),this._initialHiddenLayers.forEach((({id:e})=>{this._map.getLayer(e)&&this._map.setLayoutProperty(e,"visibility","none")}))}_showIndoorLayers(){ys(this._initialHiddenLayers,(({id:e})=>{this._map.getLayer(e)&&this._map.setLayoutProperty(e,"visibility","visible")}))}_updatePermission(e,t,i){401===e.error.status&&Ir.verifyPermission(t,i).then((()=>{this._resourceRequestTransform()}))}async _panToBuilding(e,t,i){return new Promise((n=>{this._fitBuildingBounds&&i?this._map.fitBounds(i,{padding:this._boundsPadding,duration:500}):this._map.panTo(t),setTimeout((()=>{let t=!1;const i=()=>{const i=this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(e,{layerIds:["mapxus-building-line"]})[0];i&&(t=!0,n(i))},r=setInterval((()=>{t||(i(),t&&clearInterval(r))}),50);i(),this._map.getZoom()<14&&(clearInterval(r),n(null))}),500)}))}}async function Hs(e,t){if(!e.hasImage(t))try{const i=await e.loadImage(t);e.addImage(t,i.data)}catch(e){throw new Error(e)}}class Zs{_maplibreMap;_layerId;_sourceId;_imageName="poi-01";_imageSize=.75;_iconAnchor="bottom";constructor(e){this._maplibreMap=e;const t=Uo();this._layerId=`MXMap_preset_marker_layer_${t}`,this._sourceId=`MXMap_preset_marker_source_${t}`}async setIcon(e){await Hs(this._maplibreMap,e),this._imageName=e}setIconSize(e){this._imageSize=e}setIconAnchor(e){this._iconAnchor=e}get layerId(){return this._layerId}get sourceId(){return this._sourceId}create(e){if(e.length){const t=Mr(e,(e=>this._createIconFeature(e)));this._addIconSource(t),this._addIconLayer()}}updateData(e){const t=!(!e.remove||!e.remove.length),i=!(!e.add||!e.add.length),n=!(!e.update||!e.update.length);if(t||i||n){const r=this._maplibreMap.getSource(this._sourceId),o={};t&&(o.remove=e.remove.map((e=>String(e)))),i&&(o.add=e.add.map((e=>this._createIconFeature(e)))),n&&(o.update=e.update.map((e=>{const t="properties"in e,i=this._createIconFeature(e),{id:n,geometry:r,properties:o}=i;return{id:n,newGeometry:r,removeAllProperties:t,...o?{addOrUpdateProperties:Mr(o,((e,t)=>({key:t,value:e})))}:{}}}))),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(e,t){const i=e=>this._handleEventListener(e,t);return this._maplibreMap.on(e,this._layerId,i),{offEventListener:()=>this._maplibreMap.off(e,this._layerId,i)}}on(e,t){const i=e=>this._handleEventListener(e,t);return this._maplibreMap.on(e,this._layerId,i),{off:()=>this._maplibreMap.off(e,this._layerId,i)}}setFilter(e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,e)}setFilterByVenue(e,t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","venueId"],e??""],["==",["get","ordinal"],t??""]],["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]]])}setFilterByBuilding(e,t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","buildingId"],e??""],["==",["get","ordinal"],t??""]],["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]]])}setOpacity(e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",e)}setOpacityByVenue(e,t){if(this._maplibreMap.getLayer(this._layerId)){const i=["case",["all",["==",["get","venueId"],e??""],["==",["get","ordinal"],t??""]],1,["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]],1,.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",i)}}setOpacityByBuilding(e,t){if(this._maplibreMap.getLayer(this._layerId)){const i=["case",["all",["==",["get","buildingId"],e??""],["==",["get","ordinal"],t??""]],1,["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]],1,.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",i)}}_createIconFeature(e){const{lngLat:t,properties:i}=e;return{id:"featureId"in e&&vs(e.featureId)?String(e.featureId):void 0,type:"Feature",geometry:{type:"Point",coordinates:t},properties:i||null}}_addIconSource(e){const t={type:"geojson",data:{type:"FeatureCollection",features:e}};this._maplibreMap.addSource(this._sourceId,t)}_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(e,t){const{point:i}=e;t(this._maplibreMap.queryRenderedFeatures(i,{layers:[this._layerId]})[0])}}const Gs={indoor_line_color:"#45b1cc",outdoor_line_color:"#8183ba",dashed_line_color:"#969696",bus_line_color:"#fb923c"},zs="mmws-source-line-solid",Ys="mmws-layer-line-solid",Xs="mmws-layer-icon-triangle",Js="mmws-source-line-dashed",Us="mmws-layer-line-dashed",qs="mmws-source-icon-connector",Ks="mmws-layer-icon-connector",Qs="mmws-source-icon-marker",ea="mmws-layer-icon-marker",ta=[Ys,Xs,Us,Ks,ea],ia=[zs,Js,qs,Qs];class na{_maplibreMap;_fromMarkerIcon="poi-02";_toMarkerIcon="poi-01";_stopMarkerIcons=["waypoint-01"];_markerIconSize=.75;_paintProperties=Gs;constructor(e){this._maplibreMap=e}async setMarkerIcons(e){if(U(e)&&e.length){const t=e.filter((e=>!!e));t.length&&await Promise.all(t.map((e=>Hs(this._maplibreMap,e)))),this._fromMarkerIcon=e[0],this._toMarkerIcon=e[e.length-1];const i=e.slice(1,e.length-1);this._stopMarkerIcons=i.length?i:[e[0]]}else if("from"in e&&("string"==typeof e.from&&e.from?(await Hs(this._maplibreMap,e.from),this._fromMarkerIcon=e.from):this._fromMarkerIcon=null),"to"in e&&("string"==typeof e.to&&e.to?(await Hs(this._maplibreMap,e.to),this._toMarkerIcon=e.to):this._toMarkerIcon=null),"stops"in e)if(U(e.stops)){const t=e.stops.filter((e=>!!e));t.length&&await Promise.all(t.map((e=>Hs(this._maplibreMap,e)))),this._stopMarkerIcons=e.stops}else this._stopMarkerIcons=[null]}setMarkerIconSize(e){return this._markerIconSize=e,this}setIndoorLineColor(e){return Object.assign(this._paintProperties,{indoor_line_color:e}),this}setOutdoorLineColor(e){return Object.assign(this._paintProperties,{outdoor_line_color:e}),this}setDashedLineColor(e){return Object.assign(this._paintProperties,{dashed_line_color:e}),this}setBusLineColor(e){return Object.assign(this._paintProperties,{bus_line_color:e}),this}render(e,t){const{instructions:i,points:{coordinates:n}}=e,{lineFeatures:r,connectorFeatures:o,dashedLineFeatures:s,markerFeatures:a}=this._classifyFeatures(i,n,t);this._renderSolidLines(r),this._renderDashedLines(s),this._renderConnectors(o),this._renderMarkers(a)}remove(){ta.forEach((e=>{this._maplibreMap.getLayer(e)&&this._maplibreMap.removeLayer(e)})),ia.forEach((e=>{this._maplibreMap.getSource(e)&&this._maplibreMap.removeSource(e)}))}setFilterByVenue(e,t){const i=["case",["any",["all",["==",["get","ordinal"],t??""],["==",["get","venue_id"],e??""]],["all",["==",["get","ordinal"],""],["==",["get","venue_id"],""]]],1,.5];ta.forEach((e=>{this._maplibreMap.getLayer(e)&&this._maplibreMap.setPaintProperty(e,e.includes("line")?"line-opacity":"icon-opacity",i)}))}setFilterByBuilding(e,t){const i=["case",["any",["all",["==",["get","ordinal"],t??""],["==",["get","building_id"],e??""]],["all",["==",["get","ordinal"],""],["==",["get","building_id"],""]]],1,.5];ta.forEach((e=>{this._maplibreMap.getLayer(e)&&this._maplibreMap.setPaintProperty(e,e.includes("line")?"line-opacity":"icon-opacity",i)}))}_classifyFeatures(e,t,i){const n=[],r=[],o=[],s=[],a=[];ys(e,((i,o)=>{const{venue_id:s,building_id:l,floor_id:c,ordinal:u,sign:d,type:h,interval:[p,_]}=i;if(function(e){return 5===e}(d))a.push(i);else if(function(e){return 100===e||-100===e}(d)){const{venue_id:i,building_id:n,floor_id:s,ordinal:a}=e[o-1],{venue_id:l,building_id:c,floor_id:u,ordinal:d}=e[o+1];r.push(this._createIconFeature(t[p],{...ra({venue_id:i,building_id:n,floor_id:s,ordinal:a}),icon:h})),r.push(this._createIconFeature(t[_],{...ra({venue_id:l,building_id:c,floor_id:u,ordinal:d}),icon:h}))}else n.push(this._createLineFeature(t.slice(p,_+1),ra({venue_id:s,building_id:l,floor_id:c,ordinal:u,isShuttleBus:oa(d)?1:0})))}));const l=e[0],{venue_id:c,building_id:u,floor_id:d,ordinal:h}=l,p=e[e.length-1],{venue_id:_,building_id:f,floor_id:g,ordinal:m}=p,y=t[0],v=t[t.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],ra({venue_id:c,building_id:u,floor_id:d,ordinal:h}))),w&&o.push(this._createLineFeature([v,w],ra({venue_id:_,building_id:f,floor_id:g,ordinal:m}))),a.length&&L.length&&a.forEach((({venue_id:e,building_id:i,floor_id:n,ordinal:r,interval:[a]},l)=>{o.push(this._createLineFeature([t[a],L[l]],ra({venue_id:e,building_id:i,floor_id:n,ordinal:r}))),s.push(this._createIconFeature(L[l],{...ra({venue_id:e,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,{...ra({venue_id:c,building_id:u,floor_id:d,ordinal:h}),icon:this._fromMarkerIcon,iconSize:this._markerIconSize})),s.push(this._createIconFeature(w??v,{...ra({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(e,t){return{type:"Feature",geometry:{type:"LineString",coordinates:e},properties:t}}_createIconFeature(e,t){return{type:"Feature",geometry:{type:"Point",coordinates:e},properties:t}}_renderSolidLines(e){this._addCollectionSource(zs,e),this._addLineLayer(zs,Ys,{"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(zs,Xs)}_renderDashedLines(e){this._addCollectionSource(Js,e),this._addLineLayer(Js,Us,{"line-color":this._paintProperties.dashed_line_color,"line-dasharray":[.1,1.8]})}_renderConnectors(e){this._addCollectionSource(qs,e),this._addIconLayer(qs,Ks)}_renderMarkers(e){this._addCollectionSource(Qs,e),this._addIconLayer(Qs,ea,{"icon-anchor":"bottom"})}_addCollectionSource(e,t){this._maplibreMap.addSource(e,{type:"geojson",data:{type:"FeatureCollection",features:t}})}_addLineLayer(e,t,i){this._maplibreMap.addLayer({id:t,type:"line",source:e,layout:{"line-join":"round","line-cap":"round"},paint:{"line-width":4,...i||{}}})}_addTriangleLayer(e,t){this._maplibreMap.addLayer({id:t,type:"symbol",source:e,layout:{"symbol-placement":"line","symbol-spacing":1,"icon-size":.25,"icon-image":"east-blue-arrow-01"}})}_addIconLayer(e,t,i){this._maplibreMap.addLayer({id:t,type:"symbol",source:e,layout:{"icon-image":["get","icon"],"icon-size":["case",["has","iconSize"],["get","iconSize"],1],...i||{}}})}}function ra(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,String(t??"")])))}function oa(e){return Is(e,104,108)}var sa=exports;for(var aa in n)sa[aa]=n[aa];n.__esModule&&Object.defineProperty(sa,"__esModule",{value:!0})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={109:(e,t,n)=>{n.d(t,{KL:()=>r,e$:()=>s});const s=10,r=1},366:(e,t,n)=>{var s;!function(e){e.FOOT="foot",e.WHEELCHAIR="wheelchair",e.ESCALATOR="escalator",e.EMERGENCY="emergency"}(s||(s={}))},227:(e,t,n)=>{var s,r,i,o,a;n.d(t,{ys:()=>r}),function(e){e[e.SWITCHED_BY_BUILDING=0]="SWITCHED_BY_BUILDING",e[e.SWITCHED_BY_VENUE=1]="SWITCHED_BY_VENUE"}(s||(s={})),function(e){e.ENGLISH="en",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_TRADITIONAL="zh-Hant",e.JAPANESE="ja",e.KOREAN="ko"}(r||(r={})),function(e){e.CHRISTMAS="christmas",e.HALLOWEEN="halloween",e.MAPPY_BEE="mappyBee",e.MAPXUS="mapxus",e.LANDS_D="landsD",e.COMMON="common",e.MAPXUS_V2="mapxus_v2"}(i||(i={})),function(e){e.POINT="Point",e.POLYGON="Polygon",e.GATE="Gate"}(o||(o={})),function(e){e.DEFAULT_NAME="DefaultName"}(a||(a={}));n(366)},776:(e,t,n)=>{function s(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function r(e,t,n){if(n&&n[e]){const s=n[e].indexOf(t);-1!==s&&n[e].splice(s,1)}}function i(e,...t){for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}n.d(t,{a$:()=>_});class o{_type;_target;constructor(e,t={}){i(this,t),this.type=e}get type(){return this._type}set type(e){this._type=e}get target(){return this._target}set target(e){this._target=e}}class a extends o{error;constructor(e,t={}){super("error",i({error:e},t))}}class _{_listeners;_oneTimeListeners;_eventedParent;_eventedParentData;on(e,t){return this._listeners=this._listeners||{},s(e,t,this._listeners),this}off(e,t){return r(e,t,this._listeners),r(e,t,this._oneTimeListeners),this}once(e,t){return this._oneTimeListeners=this._oneTimeListeners||{},s(e,t,this._oneTimeListeners),this}fire(e){"string"==typeof e&&(e=new o(e,arguments[1]||{}));const t=e.type;if(this.listens(t)){e.target=this;const n=this._listeners&&this._listeners[t]?this._listeners[t].slice():[];for(const t of n)t.call(this,e);const s=this._oneTimeListeners&&this._oneTimeListeners[t]?this._oneTimeListeners[t].slice():[];for(const n of s)r(t,n,this._oneTimeListeners),n.call(this,e);const o=this._eventedParent;o&&(i(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),o.fire(e))}else e instanceof a&&console.error(e.error);return this}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}},666:(e,t,n)=>{n.d(t,{y:()=>r});var s=n(227);function r(e){return function(e){return/^en(-(US|GB|AU))?$/.test(e)}(e)?s.ys.ENGLISH:function(e){return/^zh(-(Hans|CN))?$/.test(e)}(e)?s.ys.CHINESE_SIMPLIFIED:function(e){return/^zh-(Hant|HK|TW)?$/.test(e)}(e)?s.ys.CHINESE_TRADITIONAL:function(e){return/^ja(-JP)?$/.test(e)}(e)?s.ys.JAPANESE:function(e){return/^ko(-KR)?$/.test(e)}(e)?s.ys.KOREAN:null}}},t={};function n(s){var r=t[s];if(void 0!==r)return r.exports;var i=t[s]={exports:{}};return e[s](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};n.r(s),n.d(s,{Evented:()=>a.a$,OFFSET:()=>i.e$,PAGE:()=>i.KL,VERSION:()=>c,convertBrowserLangToPresetLang:()=>o.y,version:()=>_});const r="7.8.0";var i=n(109),o=n(666),a=n(776);const _=r,c=r;var h=exports;for(var u in s)h[u]=s[u];s.__esModule&&Object.defineProperty(h,"__esModule",{value:!0})})();
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapxus/mapxus-map-jp",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.8.0",
|
|
4
4
|
"description": "mapxus map web sdk - kawasaki-prod",
|
|
5
|
-
"main": "index.
|
|
6
|
-
"
|
|
5
|
+
"main": "lib/index.cjs",
|
|
6
|
+
"unpkg": "dist/index.umd.js",
|
|
7
|
+
"module": "es/index.mjs",
|
|
8
|
+
"typings": "es/index.d.ts",
|
|
7
9
|
"files": [
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
+
"dist",
|
|
11
|
+
"es",
|
|
12
|
+
"lib"
|
|
10
13
|
],
|
|
11
14
|
"keywords": [
|
|
12
15
|
"mapxus",
|
|
@@ -17,6 +20,6 @@
|
|
|
17
20
|
"license": "BSD-3-Clause",
|
|
18
21
|
"dependencies": {
|
|
19
22
|
"axios": "^1.6.8",
|
|
20
|
-
"maplibre-gl": "^4.
|
|
23
|
+
"maplibre-gl": "^4.5.0"
|
|
21
24
|
}
|
|
22
25
|
}
|