@mapvx/web-components 0.1.1 → 0.1.2

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.
Files changed (31) hide show
  1. package/dist/cjs/KTX2Loader-CNSoekFo.cjs +1 -5
  2. package/dist/cjs/{base-floor-selector-CbSa9Qw2.cjs → base-floor-selector-DFnDEEM3.cjs} +2 -2
  3. package/dist/cjs/{class-map-DQkA5L7H.cjs → class-map-ChMAfTFe.cjs} +2 -2
  4. package/dist/cjs/{compact-floor-selector-C_LgJzzv.cjs → compact-floor-selector-BCeDL8I5.cjs} +2 -2
  5. package/dist/cjs/{consume-D1MFwxfA.cjs → consume-CKorNsgJ.cjs} +2 -2
  6. package/dist/cjs/{custom-map-CsX48Rua.cjs → custom-map-1gDZnqoR.cjs} +2 -2
  7. package/dist/cjs/floor-selector-BWaCcDvR.cjs +15 -0
  8. package/dist/cjs/{geojson-layer-BWursA41.cjs → geojson-layer-_4ssXrG_.cjs} +2 -2
  9. package/dist/cjs/{index-D4uHh_zx.cjs → index-CpmSQzi7.cjs} +2 -2
  10. package/dist/cjs/{index-OWjqDH0W.cjs → index-DM2GszaW.cjs} +2 -2
  11. package/dist/cjs/index.cjs +1 -1
  12. package/dist/cjs/map-view-with-modal.cjs +1 -1
  13. package/dist/cjs/qr-modal-BXLeCQeI.cjs +20 -0
  14. package/dist/cjs/{route-options-BW6OJ8pz.cjs → route-options-BFRImfBY.cjs} +2 -2
  15. package/dist/cjs/route-view-totems.cjs +1 -5
  16. package/dist/cjs/{sdk-controller-BcvviQ36.cjs → sdk-controller-C5n2dJ1u.cjs} +3 -3
  17. package/dist/es/assets/{compact-floor-selector-DM0rj7tE.js → compact-floor-selector-T1-T8JtV.js} +2 -2
  18. package/dist/es/assets/{components-iq1KFC9T.js → components-P8ZEdF4n.js} +3 -3
  19. package/dist/es/assets/{geojson-layer-BXJPA2B2.js → geojson-layer-Cj_7zg8v.js} +2 -2
  20. package/dist/es/assets/{index-BV0wWAyE.js → index-CNxIfV8m.js} +2 -2
  21. package/dist/es/assets/{index-Bp1QRPSH.js → index-DS6Va1rg.js} +2 -6
  22. package/dist/es/assets/{map-view-with-modal-KAG4NGbk.js → map-view-with-modal-Z--_Drda.js} +2 -2
  23. package/dist/es/assets/{route-view-totems-BHOMtYE0.js → route-view-totems-DoAr4DQV.js} +4 -4
  24. package/dist/es/assets/{utils-BMph9fmy.js → utils-BCoCXmhx.js} +3 -3
  25. package/dist/es/index.js +1 -1
  26. package/dist/es/route-view-totems.js +1 -1
  27. package/dist/iife/map-view-with-modal.js +1 -1
  28. package/dist/iife/route-view-totems.js +19 -19
  29. package/package.json +1 -1
  30. package/dist/cjs/floor-selector-DiJexma4.cjs +0 -15
  31. package/dist/cjs/qr-modal-DAjokbee.cjs +0 -16
@@ -1,4 +1,4 @@
1
- import{c as o,i as r,n as e,d as t}from"./route-view-totems-BHOMtYE0.js";import{B as s,e as l}from"./components-iq1KFC9T.js";var i,a=Object.defineProperty,n=Object.getOwnPropertyDescriptor,d=o=>{throw TypeError(o)},c=(o,r,e,t)=>{for(var s,l=t>1?void 0:t?n(r,e):r,i=o.length-1;i>=0;i--)(s=o[i])&&(l=(t?s(r,e,l):s(l))||l);return t&&l&&a(r,e,l),l},f=(o,r,e)=>r.has(o)||d("Cannot "+e);let p=class extends s{constructor(){var o,r,e;super(...arguments),o=this,e=!1,(r=i).has(o)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(o):r.set(o,e),this.isOpen=!1,this._handleClickOutside=o=>{this.isOpen&&!this.shadowRoot?.contains(o.target)&&(this.isOpen=!1,this.requestUpdate())}}get disabled(){return f(o=this,r=i,"read from private field"),e?e.call(o):r.get(o);var o,r,e}set disabled(o){var r,e,t;t=o,f(r=this,e=i,"write to private field"),e.set(r,t)}_toggleDropdown(o){this.disabled||(o.stopPropagation(),this.isOpen=!this.isOpen,this.requestUpdate())}_selectFloor(o){this.disabled||(this.selectFloor(o),this.isOpen=!1,this.requestUpdate())}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutside)}render(){if(!this.sdkData)return o`<div>No data</div>`;const r=this.getFloors(),e=this.getCurrentFloor(),t=e?this.getFloorDisplayName(e):"Seleccionar piso";return o`
1
+ import{c as o,i as r,n as e,d as t}from"./route-view-totems-DoAr4DQV.js";import{B as s,e as l}from"./components-P8ZEdF4n.js";var i,a=Object.defineProperty,n=Object.getOwnPropertyDescriptor,d=o=>{throw TypeError(o)},c=(o,r,e,t)=>{for(var s,l=t>1?void 0:t?n(r,e):r,i=o.length-1;i>=0;i--)(s=o[i])&&(l=(t?s(r,e,l):s(l))||l);return t&&l&&a(r,e,l),l},f=(o,r,e)=>r.has(o)||d("Cannot "+e);let p=class extends s{constructor(){var o,r,e;super(...arguments),o=this,e=!1,(r=i).has(o)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(o):r.set(o,e),this.isOpen=!1,this._handleClickOutside=o=>{this.isOpen&&!this.shadowRoot?.contains(o.target)&&(this.isOpen=!1,this.requestUpdate())}}get disabled(){return f(o=this,r=i,"read from private field"),e?e.call(o):r.get(o);var o,r,e}set disabled(o){var r,e,t;t=o,f(r=this,e=i,"write to private field"),e.set(r,t)}_toggleDropdown(o){this.disabled||(o.stopPropagation(),this.isOpen=!this.isOpen,this.requestUpdate())}_selectFloor(o){this.disabled||(this.selectFloor(o),this.isOpen=!1,this.requestUpdate())}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutside)}render(){if(!this.sdkData)return o`<div>No data</div>`;const r=this.getFloors(),e=this.getCurrentFloor(),t=e?this.getFloorDisplayName(e):"Seleccionar piso";return o`
2
2
  <div class="floor-dropdown">
3
3
  <button
4
4
  class=${l({"floor-button":!0,active:!!e,open:this.isOpen})}
@@ -173,4 +173,4 @@ import{c as o,i as r,n as e,d as t}from"./route-view-totems-BHOMtYE0.js";import{
173
173
  }
174
174
  }
175
175
  `],c([e({type:Boolean})],p.prototype,"disabled",1),p=c([t("compact-floor-selector")],p);export{p as CompactFloorSelector};
176
- //# sourceMappingURL=compact-floor-selector-DM0rj7tE.js.map
176
+ //# sourceMappingURL=compact-floor-selector-T1-T8JtV.js.map
@@ -1,4 +1,4 @@
1
- import{a as t,c as e,e as o,i,n,f as r,d as a,E as s,A as l}from"./route-view-totems-BHOMtYE0.js";import{R as d,M as c}from"./utils-BMph9fmy.js";
1
+ import{a as t,c as e,e as o,i,n,f as r,d as a,E as s,A as l}from"./route-view-totems-DoAr4DQV.js";import{R as d,M as c}from"./utils-BCoCXmhx.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2021 Google LLC
@@ -209,7 +209,7 @@ function m({context:t,subscribe:e}){return(o,i)=>{"object"==typeof i?i.addInitia
209
209
  </div>
210
210
  `})}
211
211
  </div>
212
- `}};Y.styles=[o(':host{position:absolute;top:0;right:10px}.floor-selector-container{display:flex;flex-direction:row;background:#fff;border-radius:0 0 30px 30px;box-shadow:0 0 15px #00000026;padding:0 6px;gap:8px;height:65px}.btn-floor{height:auto;width:100px;vertical-align:middle;font-size:small!important;word-wrap:break-word!important;font-family:Poppins;font-weight:600;font-size:16pt;border-radius:10px;border:0;box-shadow:0 0 15px #00000026}@media only screen and (max-width:576px){.btn-floor{padding:6px;width:70px;height:auto;font-size:small!important}}.floor-btn-container:hover .floor-btn:not(.active):not(.disabled){border-radius:0 0 999px 999px;background:#000;color:#fff}.floor-btn{transition:background .2s ease,color .2s ease,transform .2s ease,opacity .2s ease;position:relative;background:transparent;border:none;outline:none;font-family:Poppins,sans-serif;font-weight:600;font-size:13px;border-radius:0 0 30px 30px;cursor:pointer;transition:all .2s ease;height:100%;min-width:65px;display:flex;align-items:center;justify-content:center;color:#000;z-index:1;span{min-width:50px}}.floor-btn.disabled{color:#c5c3c3;background:transparent;pointer-events:none;-webkit-tap-highlight-color:transparent;user-select:none}.floor-btn.active{color:#fff;background:transparent;z-index:2}.floor-btn.active:after{content:"";position:absolute;inset:0 2px;border-radius:0 0 999px 999px;background:#000;color:#fff;z-index:1}.floor-btn.active:before{content:"";position:absolute;inset:0 -3px -3px;border-radius:0 0 999px 999px;background:linear-gradient(45.8deg,#f5a 10.03%,#b850c9 25.23%,#6572d6 48.67%,#4eaeb8 72.74%);z-index:0}.floor-btn.active span{z-index:10}@media(max-width:1100px){.floor-btn-container:hover .floor-btn:not(.active):not(.disabled){border-radius:999px 0 0 999px;background:#000;color:#fff}.floor-selector-container{right:0;position:fixed;top:50%;transform:translateY(-50%);display:flex;flex-direction:column-reverse;border-radius:30px 0 0 30px;min-width:87px;max-height:100%;height:auto;padding:0;gap:0}.floor-btn-container{padding:0;width:100%}.floor-btn{width:100%;padding:20px;border-radius:999px 0 0 999px}.floor-btn.active:after{position:absolute;inset:2px 0 2px 2px;border-radius:999px 0 0 999px}.floor-btn.active:before{inset:-3px 0 -3px -3px;border-radius:999px 0 0 999px}}')],Y=((t,e,o,i)=>{for(var n,r=i>1?void 0:i?W(e,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=n(r)||r);return r})([a("floor-selector")],Y);const X=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get FloorSelector(){return Y}},Symbol.toStringTag,{value:"Module"}));var Q,G,tt={};function et(){return G?Q:(G=1,Q=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var ot,it={},nt={};function rt(){if(ot)return nt;let t;ot=1;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return nt.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},nt.getSymbolTotalCodewords=function(t){return e[t]},nt.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},nt.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},nt.isKanjiModeEnabled=function(){return void 0!==t},nt.toSJIS=function(e){return t(e)},nt}var at,st,lt,dt,ct,ut={};function pt(){return at||(at=1,(t=ut).L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},t.from=function(e,o){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(J){return o}}),ut;var t}var ht,gt={};var ft,mt={};var bt,xt={};var vt,yt={};function wt(){if(vt)return yt;vt=1;const t=pt(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return yt.getBlocksCount=function(o,i){switch(i){case t.L:return e[4*(o-1)+0];case t.M:return e[4*(o-1)+1];case t.Q:return e[4*(o-1)+2];case t.H:return e[4*(o-1)+3];default:return}},yt.getTotalCodewordsCount=function(e,i){switch(i){case t.L:return o[4*(e-1)+0];case t.M:return o[4*(e-1)+1];case t.Q:return o[4*(e-1)+2];case t.H:return o[4*(e-1)+3];default:return}},yt}var Ct,kt,Mt,Et,zt={},It={};function Pt(){return kt||(kt=1,function(t){const e=function(){if(Ct)return It;Ct=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let o=1;for(let i=0;i<255;i++)t[i]=o,e[o]=i,o<<=1,256&o&&(o^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),It.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},It.exp=function(e){return t[e]},It.mul=function(o,i){return 0===o||0===i?0:t[e[o]+e[i]]},It}();t.mul=function(t,o){const i=new Uint8Array(t.length+o.length-1);for(let n=0;n<t.length;n++)for(let r=0;r<o.length;r++)i[n+r]^=e.mul(t[n],o[r]);return i},t.mod=function(t,o){let i=new Uint8Array(t);for(;i.length-o.length>=0;){const t=i[0];for(let r=0;r<o.length;r++)i[r]^=e.mul(o[r],t);let n=0;for(;n<i.length&&0===i[n];)n++;i=i.slice(n)}return i},t.generateECPolynomial=function(o){let i=new Uint8Array([1]);for(let n=0;n<o;n++)i=t.mul(i,new Uint8Array([1,e.exp(n)]));return i}}(zt)),zt}var Rt,At={},Bt={},Ft={};function Dt(){return Rt||(Rt=1,Ft.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Ft}var _t,Lt,Tt,Nt={};function Ot(){if(_t)return Nt;_t=1;const t="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";Nt.KANJI=new RegExp(e,"g"),Nt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Nt.BYTE=new RegExp(o,"g"),Nt.NUMERIC=new RegExp(t,"g"),Nt.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+e+"$"),n=new RegExp("^"+t+"$"),r=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Nt.testKanji=function(t){return i.test(t)},Nt.testNumeric=function(t){return n.test(t)},Nt.testAlphanumeric=function(t){return r.test(t)},Nt}function St(){return Lt||(Lt=1,function(t){const e=Dt(),o=Ot();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,o){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?t.ccBits[0]:o<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(e,o){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(J){return o}}}(Bt)),Bt}function jt(){return Tt||(Tt=1,function(t){const e=rt(),o=wt(),i=pt(),n=St(),r=Dt(),a=e.getBCHDigit(7973);function s(t,e){return n.getCharCountIndicator(t,e)+4}function l(t,e){let o=0;return t.forEach(function(t){const i=s(t.mode,e);o+=i+t.getBitsLength()}),o}t.from=function(t,e){return r.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,i,a){if(!r.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=n.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,i));if(a===n.MIXED)return l;const d=l-s(a,t);switch(a){case n.NUMERIC:return Math.floor(d/10*3);case n.ALPHANUMERIC:return Math.floor(d/11*2);case n.KANJI:return Math.floor(d/13);case n.BYTE:default:return Math.floor(d/8)}},t.getBestVersionForData=function(e,o){let r;const a=i.from(o,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,o){for(let i=1;i<=40;i++)if(l(e,i)<=t.getCapacity(i,o,n.MIXED))return i}(e,a);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,o,i){for(let n=1;n<=40;n++)if(o<=t.getCapacity(n,i,e))return n}(r.mode,r.getLength(),a)},t.getEncodedBits=function(t){if(!r.isValid(t)||t<7)throw new Error("Invalid QR Code version");let o=t<<12;for(;e.getBCHDigit(o)-a>=0;)o^=7973<<e.getBCHDigit(o)-a;return t<<12|o}}(At)),At}var $t,Ut={};var Zt,Ht,Vt,Jt,Kt,qt,Wt,Yt,Xt={};var Qt,Gt,te,ee={exports:{}};function oe(){return Qt||(Qt=1,function(t){var e={single_source_shortest_paths:function(t,o,i){var n={},r={};r[o]=0;var a,s,l,d,c,u,p,h=e.PriorityQueue.make();for(h.push(o,0);!h.empty();)for(l in s=(a=h.pop()).value,d=a.cost,c=t[s]||{})c.hasOwnProperty(l)&&(u=d+c[l],p=r[l],(void 0===r[l]||p>u)&&(r[l]=u,h.push(l,u),n[l]=s));if(void 0!==i&&void 0===r[i]){var g=["Could not find a path from ",o," to ",i,"."].join("");throw new Error(g)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var o=[],i=e;i;)o.push(i),t[i],i=t[i];return o.reverse(),o},find_path:function(t,o,i){var n=e.single_source_shortest_paths(t,o,i);return e.extract_shortest_path_from_predecessor_list(n,i)},PriorityQueue:{make:function(t){var o,i=e.PriorityQueue,n={};for(o in t=t||{},i)i.hasOwnProperty(o)&&(n[o]=i[o]);return n.queue=[],n.sorter=t.sorter||i.default_sorter,n},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var o={value:t,cost:e};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(ee)),ee.exports}function ie(){return Gt||(Gt=1,function(t){const e=St(),o=function(){if(Ht)return Zt;Ht=1;const t=St();function e(e){this.mode=t.NUMERIC,this.data=e.toString()}return e.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){let e,o,i;for(e=0;e+3<=this.data.length;e+=3)o=this.data.substr(e,3),i=parseInt(o,10),t.put(i,10);const n=this.data.length-e;n>0&&(o=this.data.substr(e),i=parseInt(o,10),t.put(i,3*n+1))},Zt=e}(),i=function(){if(Jt)return Vt;Jt=1;const t=St(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=t.ALPHANUMERIC,this.data=e}return o.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let o;for(o=0;o+2<=this.data.length;o+=2){let i=45*e.indexOf(this.data[o]);i+=e.indexOf(this.data[o+1]),t.put(i,11)}this.data.length%2&&t.put(e.indexOf(this.data[o]),6)},Vt=o}(),n=function(){if(qt)return Kt;qt=1;const t=St();function e(e){this.mode=t.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}return e.getBitsLength=function(t){return 8*t},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){for(let e=0,o=this.data.length;e<o;e++)t.put(this.data[e],8)},Kt=e}(),r=function(){if(Yt)return Wt;Yt=1;const t=St(),e=rt();function o(e){this.mode=t.KANJI,this.data=e}return o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let o;for(o=0;o<this.data.length;o++){let i=e.toSJIS(this.data[o]);if(i>=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");i-=49472}i=192*(i>>>8&255)+(255&i),t.put(i,13)}},Wt=o}(),a=Ot(),s=rt(),l=oe();function d(t){return unescape(encodeURIComponent(t)).length}function c(t,e,o){const i=[];let n;for(;null!==(n=t.exec(o));)i.push({data:n[0],index:n.index,mode:e,length:n[0].length});return i}function u(t){const o=c(a.NUMERIC,e.NUMERIC,t),i=c(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let n,r;s.isKanjiModeEnabled()?(n=c(a.BYTE,e.BYTE,t),r=c(a.KANJI,e.KANJI,t)):(n=c(a.BYTE_KANJI,e.BYTE,t),r=[]);return o.concat(i,n,r).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function p(t,a){switch(a){case e.NUMERIC:return o.getBitsLength(t);case e.ALPHANUMERIC:return i.getBitsLength(t);case e.KANJI:return r.getBitsLength(t);case e.BYTE:return n.getBitsLength(t)}}function h(t,a){let l;const d=e.getBestModeForData(t);if(l=e.from(a,d),l!==e.BYTE&&l.bit<d.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(l)+".\n Suggested mode is: "+e.toString(d));switch(l!==e.KANJI||s.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new o(t);case e.ALPHANUMERIC:return new i(t);case e.KANJI:return new r(t);case e.BYTE:return new n(t)}}t.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(h(e,null)):e.data&&t.push(h(e.data,e.mode)),t},[])},t.fromString=function(o,i){const n=function(t){const o=[];for(let i=0;i<t.length;i++){const n=t[i];switch(n.mode){case e.NUMERIC:o.push([n,{data:n.data,mode:e.ALPHANUMERIC,length:n.length},{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.ALPHANUMERIC:o.push([n,{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.KANJI:o.push([n,{data:n.data,mode:e.BYTE,length:d(n.data)}]);break;case e.BYTE:o.push([{data:n.data,mode:e.BYTE,length:d(n.data)}])}}return o}(u(o,s.isKanjiModeEnabled())),r=function(t,o){const i={},n={start:{}};let r=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const d=s[t],c=""+a+t;l.push(c),i[c]={node:d,lastCount:0},n[c]={};for(let t=0;t<r.length;t++){const a=r[t];i[a]&&i[a].node.mode===d.mode?(n[a][c]=p(i[a].lastCount+d.length,d.mode)-p(i[a].lastCount,d.mode),i[a].lastCount+=d.length):(i[a]&&(i[a].lastCount=d.length),n[a][c]=p(d.length,d.mode)+4+e.getCharCountIndicator(d.mode,o))}}r=l}for(let e=0;e<r.length;e++)n[r[e]].end=0;return{map:n,table:i}}(n,i),a=l.find_path(r.map,"start","end"),c=[];for(let t=1;t<a.length-1;t++)c.push(r.table[a[t]].node);return t.fromArray(function(t){return t.reduce(function(t,e){const o=t.length-1>=0?t[t.length-1]:null;return o&&o.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}(c))},t.rawSplit=function(e){return t.fromArray(u(e,s.isKanjiModeEnabled()))}}(Xt)),Xt}function ne(){if(te)return it;te=1;const t=rt(),e=pt(),o=function(){if(lt)return st;function t(){this.buffer=[],this.length=0}return lt=1,t.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let o=0;o<e;o++)this.putBit(1==(t>>>e-o-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},st=t}(),i=function(){if(ct)return dt;function t(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return ct=1,t.prototype.set=function(t,e,o,i){const n=t*this.size+e;this.data[n]=o,i&&(this.reservedBit[n]=!0)},t.prototype.get=function(t,e){return this.data[t*this.size+e]},t.prototype.xor=function(t,e,o){this.data[t*this.size+e]^=o},t.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},dt=t}(),n=(ht||(ht=1,function(t){const e=rt().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const o=Math.floor(t/7)+2,i=e(t),n=145===i?26:2*Math.ceil((i-13)/(2*o-2)),r=[i-7];for(let e=1;e<o-1;e++)r[e]=r[e-1]-n;return r.push(6),r.reverse()},t.getPositions=function(e){const o=[],i=t.getRowColCoords(e),n=i.length;for(let t=0;t<n;t++)for(let e=0;e<n;e++)0===t&&0===e||0===t&&e===n-1||t===n-1&&0===e||o.push([i[t],i[e]]);return o}}(gt)),gt),r=function(){if(ft)return mt;ft=1;const t=rt().getSymbolSize;return mt.getPositions=function(e){const o=t(e);return[[0,0],[o-7,0],[0,o-7]]},mt}(),a=(bt||(bt=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,o=3,i=40,n=10;function r(e,o,i){switch(e){case t.Patterns.PATTERN000:return(o+i)%2==0;case t.Patterns.PATTERN001:return o%2==0;case t.Patterns.PATTERN010:return i%3==0;case t.Patterns.PATTERN011:return(o+i)%3==0;case t.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2==0;case t.Patterns.PATTERN101:return o*i%2+o*i%3==0;case t.Patterns.PATTERN110:return(o*i%2+o*i%3)%2==0;case t.Patterns.PATTERN111:return(o*i%3+(o+i)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){const o=t.size;let i=0,n=0,r=0,a=null,s=null;for(let l=0;l<o;l++){n=r=0,a=s=null;for(let d=0;d<o;d++){let o=t.get(l,d);o===a?n++:(n>=5&&(i+=e+(n-5)),a=o,n=1),o=t.get(d,l),o===s?r++:(r>=5&&(i+=e+(r-5)),s=o,r=1)}n>=5&&(i+=e+(n-5)),r>=5&&(i+=e+(r-5))}return i},t.getPenaltyN2=function(t){const e=t.size;let i=0;for(let o=0;o<e-1;o++)for(let n=0;n<e-1;n++){const e=t.get(o,n)+t.get(o,n+1)+t.get(o+1,n)+t.get(o+1,n+1);4!==e&&0!==e||i++}return i*o},t.getPenaltyN3=function(t){const e=t.size;let o=0,n=0,r=0;for(let i=0;i<e;i++){n=r=0;for(let a=0;a<e;a++)n=n<<1&2047|t.get(i,a),a>=10&&(1488===n||93===n)&&o++,r=r<<1&2047|t.get(a,i),a>=10&&(1488===r||93===r)&&o++}return o*i},t.getPenaltyN4=function(t){let e=0;const o=t.data.length;for(let i=0;i<o;i++)e+=t.data[i];return Math.abs(Math.ceil(100*e/o/5)-10)*n},t.applyMask=function(t,e){const o=e.size;for(let i=0;i<o;i++)for(let n=0;n<o;n++)e.isReserved(n,i)||e.xor(n,i,r(t,n,i))},t.getBestMask=function(e,o){const i=Object.keys(t.Patterns).length;let n=0,r=1/0;for(let a=0;a<i;a++){o(a),t.applyMask(a,e);const i=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),i<r&&(r=i,n=a)}return n}}(xt)),xt),s=wt(),l=function(){if(Et)return Mt;Et=1;const t=Pt();function e(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(e){this.degree=e,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(e.length+this.degree);o.set(e);const i=t.mod(o,this.genPoly),n=this.degree-i.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(i,n),t}return i},Mt=e}(),d=jt(),c=function(){if($t)return Ut;$t=1;const t=rt(),e=t.getBCHDigit(1335);return Ut.getEncodedBits=function(o,i){const n=o.bit<<3|i;let r=n<<10;for(;t.getBCHDigit(r)-e>=0;)r^=1335<<t.getBCHDigit(r)-e;return 21522^(n<<10|r)},Ut}(),u=St(),p=ie();function h(t,e,o){const i=t.size,n=c.getEncodedBits(e,o);let r,a;for(r=0;r<15;r++)a=1==(n>>r&1),r<6?t.set(r,8,a,!0):r<8?t.set(r+1,8,a,!0):t.set(i-15+r,8,a,!0),r<8?t.set(8,i-r-1,a,!0):r<9?t.set(8,15-r-1+1,a,!0):t.set(8,15-r-1,a,!0);t.set(i-8,8,1,!0)}function g(e,i,n){const r=new o;n.forEach(function(t){r.put(t.mode.bit,4),r.put(t.getLength(),u.getCharCountIndicator(t.mode,e)),t.write(r)});const a=8*(t.getSymbolTotalCodewords(e)-s.getTotalCodewordsCount(e,i));for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const d=(a-r.getLengthInBits())/8;for(let t=0;t<d;t++)r.put(t%2?17:236,8);return function(e,o,i){const n=t.getSymbolTotalCodewords(o),r=s.getTotalCodewordsCount(o,i),a=n-r,d=s.getBlocksCount(o,i),c=n%d,u=d-c,p=Math.floor(n/d),h=Math.floor(a/d),g=h+1,f=p-h,m=new l(f);let b=0;const x=new Array(d),v=new Array(d);let y=0;const w=new Uint8Array(e.buffer);for(let t=0;t<d;t++){const e=t<u?h:g;x[t]=w.slice(b,b+e),v[t]=m.encode(x[t]),b+=e,y=Math.max(y,e)}const C=new Uint8Array(n);let k,M,E=0;for(k=0;k<y;k++)for(M=0;M<d;M++)k<x[M].length&&(C[E++]=x[M][k]);for(k=0;k<f;k++)for(M=0;M<d;M++)C[E++]=v[M][k];return C}(r,e,i)}function f(e,o,s,l){let c;if(Array.isArray(e))c=p.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=o;if(!t){const o=p.rawSplit(e);t=d.getBestVersionForData(o,s)}c=p.fromString(e,t||40)}}const u=d.getBestVersionForData(c,s);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(o){if(o<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else o=u;const f=g(o,s,c),m=t.getSymbolSize(o),b=new i(m);return function(t,e){const o=t.size,i=r.getPositions(e);for(let n=0;n<i.length;n++){const e=i[n][0],r=i[n][1];for(let i=-1;i<=7;i++)if(!(e+i<=-1||o<=e+i))for(let n=-1;n<=7;n++)r+n<=-1||o<=r+n||(i>=0&&i<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===i||6===i)||i>=2&&i<=4&&n>=2&&n<=4?t.set(e+i,r+n,!0,!0):t.set(e+i,r+n,!1,!0))}}(b,o),function(t){const e=t.size;for(let o=8;o<e-8;o++){const e=o%2==0;t.set(o,6,e,!0),t.set(6,o,e,!0)}}(b),function(t,e){const o=n.getPositions(e);for(let i=0;i<o.length;i++){const e=o[i][0],n=o[i][1];for(let o=-2;o<=2;o++)for(let i=-2;i<=2;i++)-2===o||2===o||-2===i||2===i||0===o&&0===i?t.set(e+o,n+i,!0,!0):t.set(e+o,n+i,!1,!0)}}(b,o),h(b,s,0),o>=7&&function(t,e){const o=t.size,i=d.getEncodedBits(e);let n,r,a;for(let s=0;s<18;s++)n=Math.floor(s/3),r=s%3+o-8-3,a=1==(i>>s&1),t.set(n,r,a,!0),t.set(r,n,a,!0)}(b,o),function(t,e){const o=t.size;let i=-1,n=o-1,r=7,a=0;for(let s=o-1;s>0;s-=2)for(6===s&&s--;;){for(let o=0;o<2;o++)if(!t.isReserved(n,s-o)){let i=!1;a<e.length&&(i=1==(e[a]>>>r&1)),t.set(n,s-o,i),r--,-1===r&&(a++,r=7)}if(n+=i,n<0||o<=n){n-=i,i=-i;break}}}(b,f),isNaN(l)&&(l=a.getBestMask(b,h.bind(null,b,s))),a.applyMask(l,b),h(b,s,l),{modules:b,version:o,errorCorrectionLevel:s,maskPattern:l,segments:c}}return it.create=function(o,i){if(void 0===o||""===o)throw new Error("No input text");let n,r,s=e.M;return void 0!==i&&(s=e.from(i.errorCorrectionLevel,e.M),n=d.from(i.version),r=a.from(i.maskPattern),i.toSJISFunc&&t.setToSJISFunction(i.toSJISFunc)),f(o,n,s,r)},it}var re,ae,se={},le={};function de(){return re||(re=1,function(t){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");const o=parseInt(e.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:255&o,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const o=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,n=t.scale||4;return{width:i,scale:i?4:n,margin:o,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},t.getImageWidth=function(e,o){const i=t.getScale(e,o);return Math.floor((e+2*o.margin)*i)},t.qrToImageData=function(e,o,i){const n=o.modules.size,r=o.modules.data,a=t.getScale(n,i),s=Math.floor((n+2*i.margin)*a),l=i.margin*a,d=[i.color.light,i.color.dark];for(let t=0;t<s;t++)for(let o=0;o<s;o++){let c=4*(t*s+o),u=i.color.light;if(t>=l&&o>=l&&t<s-l&&o<s-l){u=d[r[Math.floor((t-l)/a)*n+Math.floor((o-l)/a)]?1:0]}e[c++]=u.r,e[c++]=u.g,e[c++]=u.b,e[c]=u.a}}}(le)),le}function ce(){return ae||(ae=1,function(t){const e=de();t.render=function(t,o,i){let n=i,r=o;void 0!==n||o&&o.getContext||(n=o,o=void 0),o||(r=function(){try{return document.createElement("canvas")}catch(J){throw new Error("You need to specify a canvas element")}}()),n=e.getOptions(n);const a=e.getImageWidth(t.modules.size,n),s=r.getContext("2d"),l=s.createImageData(a,a);return e.qrToImageData(l.data,t,n),function(t,e,o){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=o,e.width=o,e.style.height=o+"px",e.style.width=o+"px"}(s,r,a),s.putImageData(l,0,0),r},t.renderToDataURL=function(e,o,i){let n=i;void 0!==n||o&&o.getContext||(n=o,o=void 0),n||(n={});const r=t.render(e,o,n),a=n.type||"image/png",s=n.rendererOpts||{};return r.toDataURL(a,s.quality)}}(se)),se}var ue,pe,he={};function ge(){if(ue)return he;ue=1;const t=de();function e(t,e){const o=t.a/255,i=e+'="'+t.hex+'"';return o<1?i+" "+e+'-opacity="'+o.toFixed(2).slice(1)+'"':i}function o(t,e,o){let i=t+e;return void 0!==o&&(i+=" "+o),i}return he.render=function(i,n,r){const a=t.getOptions(n),s=i.modules.size,l=i.modules.data,d=s+2*a.margin,c=a.color.light.a?"<path "+e(a.color.light,"fill")+' d="M0 0h'+d+"v"+d+'H0z"/>':"",u="<path "+e(a.color.dark,"stroke")+' d="'+function(t,e,i){let n="",r=0,a=!1,s=0;for(let l=0;l<t.length;l++){const d=Math.floor(l%e),c=Math.floor(l/e);d||a||(a=!0),t[l]?(s++,l>0&&d>0&&t[l-1]||(n+=a?o("M",d+i,.5+c+i):o("m",r,0),r=0,a=!1),d+1<e&&t[l+1]||(n+=o("h",s),s=0)):r++}return n}(l,s,a.margin)+'"/>',p='viewBox="0 0 '+d+" "+d+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+p+' shape-rendering="crispEdges">'+c+u+"</svg>\n";return"function"==typeof r&&r(null,h),h},he}var fe=function(){if(pe)return tt;pe=1;const t=et(),e=ne(),o=ce(),i=ge();function n(o,i,n,r,a){const s=[].slice.call(arguments,1),l=s.length,d="function"==typeof s[l-1];if(!d&&!t())throw new Error("Callback required as last argument");if(!d){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=i,i=r=void 0):2!==l||i.getContext||(r=n,n=i,i=void 0),new Promise(function(t,a){try{const a=e.create(n,r);t(o(a,i,r))}catch(J){a(J)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=i,i=r=void 0):3===l&&(i.getContext&&void 0===a?(a=r,r=void 0):(a=r,r=n,n=i,i=void 0));try{const t=e.create(n,r);a(null,o(t,i,r))}catch(J){a(J)}}return tt.create=e.create,tt.toCanvas=n.bind(null,o.render),tt.toDataURL=n.bind(null,o.renderToDataURL),tt.toString=n.bind(null,function(t,e,o){return i.render(t,o)}),tt}();var me=Object.defineProperty,be=Object.getOwnPropertyDescriptor,xe=(t,e,o,i)=>{for(var n,r=i>1?void 0:i?be(e,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(i?n(e,o,r):n(r))||r);return i&&r&&me(e,o,r),r};let ve=class extends t{updated(){const{originId:t,destinationId:e,generalConfig:o}=this.sdkData??{};if((t!==this.lastOriginId||e!==this.lastDestinationId)&&t&&e&&o){this.lastOriginId=t,this.lastDestinationId=e;const{baseUrl:i}=o,n=`${i}/?origin=${t}&destination=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,r={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};fe.toDataURL(n,r).then(o=>{const i=this.shadowRoot?.getElementById("qr");i&&i instanceof HTMLImageElement&&(i.src=o,l.getInstance().trackEvent("qr_modal_displayed",{origin_id:t,destination_id:e,qr_url:n}))})}}render(){const{cameraInitialized:t}=this.sdkData??{};return e`
212
+ `}};Y.styles=[o(':host{position:absolute;top:0;right:10px}.floor-selector-container{display:flex;flex-direction:row;background:#fff;border-radius:0 0 30px 30px;box-shadow:0 0 15px #00000026;padding:0 6px;gap:8px;height:65px;z-index:9999}.btn-floor{height:auto;width:100px;vertical-align:middle;font-size:small!important;word-wrap:break-word!important;font-family:Poppins;font-weight:600;font-size:16pt;border-radius:10px;border:0;box-shadow:0 0 15px #00000026}@media only screen and (max-width:576px){.btn-floor{padding:6px;width:70px;height:auto;font-size:small!important}}.floor-btn-container:hover .floor-btn:not(.active):not(.disabled){border-radius:0 0 999px 999px;background:#000;color:#fff}.floor-btn{transition:background .2s ease,color .2s ease,transform .2s ease,opacity .2s ease;position:relative;background:transparent;border:none;outline:none;font-family:Poppins,sans-serif;font-weight:600;font-size:13px;border-radius:0 0 30px 30px;cursor:pointer;transition:all .2s ease;height:100%;min-width:65px;display:flex;align-items:center;justify-content:center;color:#000;z-index:1;span{min-width:50px}}.floor-btn.disabled{color:#c5c3c3;background:transparent;pointer-events:none;-webkit-tap-highlight-color:transparent;user-select:none}.floor-btn.active{color:#fff;background:transparent;z-index:2}.floor-btn.active:after{content:"";position:absolute;inset:0 2px;border-radius:0 0 999px 999px;background:#000;color:#fff;z-index:1}.floor-btn.active:before{content:"";position:absolute;inset:0 -3px -3px;border-radius:0 0 999px 999px;background:linear-gradient(45.8deg,#f5a 10.03%,#b850c9 25.23%,#6572d6 48.67%,#4eaeb8 72.74%);z-index:0}.floor-btn.active span{z-index:10}@media(max-width:1100px){.floor-btn-container:hover .floor-btn:not(.active):not(.disabled){border-radius:999px 0 0 999px;background:#000;color:#fff}.floor-selector-container{right:0;position:fixed;top:50%;transform:translateY(-50%);display:flex;flex-direction:column-reverse;border-radius:30px 0 0 30px;min-width:87px;max-height:100%;height:auto;padding:0;gap:0;z-index:9999}.floor-btn-container{padding:0;width:100%}.floor-btn{width:100%;padding:20px;border-radius:999px 0 0 999px}.floor-btn.active:after{position:absolute;inset:2px 0 2px 2px;border-radius:999px 0 0 999px}.floor-btn.active:before{inset:-3px 0 -3px -3px;border-radius:999px 0 0 999px}}')],Y=((t,e,o,i)=>{for(var n,r=i>1?void 0:i?W(e,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=n(r)||r);return r})([a("floor-selector")],Y);const X=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get FloorSelector(){return Y}},Symbol.toStringTag,{value:"Module"}));var Q,G,tt={};function et(){return G?Q:(G=1,Q=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var ot,it={},nt={};function rt(){if(ot)return nt;let t;ot=1;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return nt.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},nt.getSymbolTotalCodewords=function(t){return e[t]},nt.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},nt.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},nt.isKanjiModeEnabled=function(){return void 0!==t},nt.toSJIS=function(e){return t(e)},nt}var at,st,lt,dt,ct,ut={};function pt(){return at||(at=1,(t=ut).L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},t.from=function(e,o){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(J){return o}}),ut;var t}var ht,gt={};var ft,mt={};var bt,xt={};var vt,yt={};function wt(){if(vt)return yt;vt=1;const t=pt(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return yt.getBlocksCount=function(o,i){switch(i){case t.L:return e[4*(o-1)+0];case t.M:return e[4*(o-1)+1];case t.Q:return e[4*(o-1)+2];case t.H:return e[4*(o-1)+3];default:return}},yt.getTotalCodewordsCount=function(e,i){switch(i){case t.L:return o[4*(e-1)+0];case t.M:return o[4*(e-1)+1];case t.Q:return o[4*(e-1)+2];case t.H:return o[4*(e-1)+3];default:return}},yt}var Ct,kt,Mt,Et,zt={},It={};function Pt(){return kt||(kt=1,function(t){const e=function(){if(Ct)return It;Ct=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let o=1;for(let i=0;i<255;i++)t[i]=o,e[o]=i,o<<=1,256&o&&(o^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),It.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},It.exp=function(e){return t[e]},It.mul=function(o,i){return 0===o||0===i?0:t[e[o]+e[i]]},It}();t.mul=function(t,o){const i=new Uint8Array(t.length+o.length-1);for(let n=0;n<t.length;n++)for(let r=0;r<o.length;r++)i[n+r]^=e.mul(t[n],o[r]);return i},t.mod=function(t,o){let i=new Uint8Array(t);for(;i.length-o.length>=0;){const t=i[0];for(let r=0;r<o.length;r++)i[r]^=e.mul(o[r],t);let n=0;for(;n<i.length&&0===i[n];)n++;i=i.slice(n)}return i},t.generateECPolynomial=function(o){let i=new Uint8Array([1]);for(let n=0;n<o;n++)i=t.mul(i,new Uint8Array([1,e.exp(n)]));return i}}(zt)),zt}var Rt,At={},Bt={},Ft={};function Dt(){return Rt||(Rt=1,Ft.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Ft}var _t,Lt,Tt,Nt={};function Ot(){if(_t)return Nt;_t=1;const t="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";Nt.KANJI=new RegExp(e,"g"),Nt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Nt.BYTE=new RegExp(o,"g"),Nt.NUMERIC=new RegExp(t,"g"),Nt.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+e+"$"),n=new RegExp("^"+t+"$"),r=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Nt.testKanji=function(t){return i.test(t)},Nt.testNumeric=function(t){return n.test(t)},Nt.testAlphanumeric=function(t){return r.test(t)},Nt}function St(){return Lt||(Lt=1,function(t){const e=Dt(),o=Ot();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,o){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?t.ccBits[0]:o<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(e,o){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(J){return o}}}(Bt)),Bt}function jt(){return Tt||(Tt=1,function(t){const e=rt(),o=wt(),i=pt(),n=St(),r=Dt(),a=e.getBCHDigit(7973);function s(t,e){return n.getCharCountIndicator(t,e)+4}function l(t,e){let o=0;return t.forEach(function(t){const i=s(t.mode,e);o+=i+t.getBitsLength()}),o}t.from=function(t,e){return r.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,i,a){if(!r.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=n.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,i));if(a===n.MIXED)return l;const d=l-s(a,t);switch(a){case n.NUMERIC:return Math.floor(d/10*3);case n.ALPHANUMERIC:return Math.floor(d/11*2);case n.KANJI:return Math.floor(d/13);case n.BYTE:default:return Math.floor(d/8)}},t.getBestVersionForData=function(e,o){let r;const a=i.from(o,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,o){for(let i=1;i<=40;i++)if(l(e,i)<=t.getCapacity(i,o,n.MIXED))return i}(e,a);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,o,i){for(let n=1;n<=40;n++)if(o<=t.getCapacity(n,i,e))return n}(r.mode,r.getLength(),a)},t.getEncodedBits=function(t){if(!r.isValid(t)||t<7)throw new Error("Invalid QR Code version");let o=t<<12;for(;e.getBCHDigit(o)-a>=0;)o^=7973<<e.getBCHDigit(o)-a;return t<<12|o}}(At)),At}var $t,Ut={};var Zt,Ht,Vt,Jt,Kt,qt,Wt,Yt,Xt={};var Qt,Gt,te,ee={exports:{}};function oe(){return Qt||(Qt=1,function(t){var e={single_source_shortest_paths:function(t,o,i){var n={},r={};r[o]=0;var a,s,l,d,c,u,p,h=e.PriorityQueue.make();for(h.push(o,0);!h.empty();)for(l in s=(a=h.pop()).value,d=a.cost,c=t[s]||{})c.hasOwnProperty(l)&&(u=d+c[l],p=r[l],(void 0===r[l]||p>u)&&(r[l]=u,h.push(l,u),n[l]=s));if(void 0!==i&&void 0===r[i]){var g=["Could not find a path from ",o," to ",i,"."].join("");throw new Error(g)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var o=[],i=e;i;)o.push(i),t[i],i=t[i];return o.reverse(),o},find_path:function(t,o,i){var n=e.single_source_shortest_paths(t,o,i);return e.extract_shortest_path_from_predecessor_list(n,i)},PriorityQueue:{make:function(t){var o,i=e.PriorityQueue,n={};for(o in t=t||{},i)i.hasOwnProperty(o)&&(n[o]=i[o]);return n.queue=[],n.sorter=t.sorter||i.default_sorter,n},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var o={value:t,cost:e};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(ee)),ee.exports}function ie(){return Gt||(Gt=1,function(t){const e=St(),o=function(){if(Ht)return Zt;Ht=1;const t=St();function e(e){this.mode=t.NUMERIC,this.data=e.toString()}return e.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){let e,o,i;for(e=0;e+3<=this.data.length;e+=3)o=this.data.substr(e,3),i=parseInt(o,10),t.put(i,10);const n=this.data.length-e;n>0&&(o=this.data.substr(e),i=parseInt(o,10),t.put(i,3*n+1))},Zt=e}(),i=function(){if(Jt)return Vt;Jt=1;const t=St(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=t.ALPHANUMERIC,this.data=e}return o.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let o;for(o=0;o+2<=this.data.length;o+=2){let i=45*e.indexOf(this.data[o]);i+=e.indexOf(this.data[o+1]),t.put(i,11)}this.data.length%2&&t.put(e.indexOf(this.data[o]),6)},Vt=o}(),n=function(){if(qt)return Kt;qt=1;const t=St();function e(e){this.mode=t.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}return e.getBitsLength=function(t){return 8*t},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){for(let e=0,o=this.data.length;e<o;e++)t.put(this.data[e],8)},Kt=e}(),r=function(){if(Yt)return Wt;Yt=1;const t=St(),e=rt();function o(e){this.mode=t.KANJI,this.data=e}return o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let o;for(o=0;o<this.data.length;o++){let i=e.toSJIS(this.data[o]);if(i>=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");i-=49472}i=192*(i>>>8&255)+(255&i),t.put(i,13)}},Wt=o}(),a=Ot(),s=rt(),l=oe();function d(t){return unescape(encodeURIComponent(t)).length}function c(t,e,o){const i=[];let n;for(;null!==(n=t.exec(o));)i.push({data:n[0],index:n.index,mode:e,length:n[0].length});return i}function u(t){const o=c(a.NUMERIC,e.NUMERIC,t),i=c(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let n,r;s.isKanjiModeEnabled()?(n=c(a.BYTE,e.BYTE,t),r=c(a.KANJI,e.KANJI,t)):(n=c(a.BYTE_KANJI,e.BYTE,t),r=[]);return o.concat(i,n,r).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function p(t,a){switch(a){case e.NUMERIC:return o.getBitsLength(t);case e.ALPHANUMERIC:return i.getBitsLength(t);case e.KANJI:return r.getBitsLength(t);case e.BYTE:return n.getBitsLength(t)}}function h(t,a){let l;const d=e.getBestModeForData(t);if(l=e.from(a,d),l!==e.BYTE&&l.bit<d.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(l)+".\n Suggested mode is: "+e.toString(d));switch(l!==e.KANJI||s.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new o(t);case e.ALPHANUMERIC:return new i(t);case e.KANJI:return new r(t);case e.BYTE:return new n(t)}}t.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(h(e,null)):e.data&&t.push(h(e.data,e.mode)),t},[])},t.fromString=function(o,i){const n=function(t){const o=[];for(let i=0;i<t.length;i++){const n=t[i];switch(n.mode){case e.NUMERIC:o.push([n,{data:n.data,mode:e.ALPHANUMERIC,length:n.length},{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.ALPHANUMERIC:o.push([n,{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.KANJI:o.push([n,{data:n.data,mode:e.BYTE,length:d(n.data)}]);break;case e.BYTE:o.push([{data:n.data,mode:e.BYTE,length:d(n.data)}])}}return o}(u(o,s.isKanjiModeEnabled())),r=function(t,o){const i={},n={start:{}};let r=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const d=s[t],c=""+a+t;l.push(c),i[c]={node:d,lastCount:0},n[c]={};for(let t=0;t<r.length;t++){const a=r[t];i[a]&&i[a].node.mode===d.mode?(n[a][c]=p(i[a].lastCount+d.length,d.mode)-p(i[a].lastCount,d.mode),i[a].lastCount+=d.length):(i[a]&&(i[a].lastCount=d.length),n[a][c]=p(d.length,d.mode)+4+e.getCharCountIndicator(d.mode,o))}}r=l}for(let e=0;e<r.length;e++)n[r[e]].end=0;return{map:n,table:i}}(n,i),a=l.find_path(r.map,"start","end"),c=[];for(let t=1;t<a.length-1;t++)c.push(r.table[a[t]].node);return t.fromArray(function(t){return t.reduce(function(t,e){const o=t.length-1>=0?t[t.length-1]:null;return o&&o.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}(c))},t.rawSplit=function(e){return t.fromArray(u(e,s.isKanjiModeEnabled()))}}(Xt)),Xt}function ne(){if(te)return it;te=1;const t=rt(),e=pt(),o=function(){if(lt)return st;function t(){this.buffer=[],this.length=0}return lt=1,t.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let o=0;o<e;o++)this.putBit(1==(t>>>e-o-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},st=t}(),i=function(){if(ct)return dt;function t(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return ct=1,t.prototype.set=function(t,e,o,i){const n=t*this.size+e;this.data[n]=o,i&&(this.reservedBit[n]=!0)},t.prototype.get=function(t,e){return this.data[t*this.size+e]},t.prototype.xor=function(t,e,o){this.data[t*this.size+e]^=o},t.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},dt=t}(),n=(ht||(ht=1,function(t){const e=rt().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const o=Math.floor(t/7)+2,i=e(t),n=145===i?26:2*Math.ceil((i-13)/(2*o-2)),r=[i-7];for(let e=1;e<o-1;e++)r[e]=r[e-1]-n;return r.push(6),r.reverse()},t.getPositions=function(e){const o=[],i=t.getRowColCoords(e),n=i.length;for(let t=0;t<n;t++)for(let e=0;e<n;e++)0===t&&0===e||0===t&&e===n-1||t===n-1&&0===e||o.push([i[t],i[e]]);return o}}(gt)),gt),r=function(){if(ft)return mt;ft=1;const t=rt().getSymbolSize;return mt.getPositions=function(e){const o=t(e);return[[0,0],[o-7,0],[0,o-7]]},mt}(),a=(bt||(bt=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,o=3,i=40,n=10;function r(e,o,i){switch(e){case t.Patterns.PATTERN000:return(o+i)%2==0;case t.Patterns.PATTERN001:return o%2==0;case t.Patterns.PATTERN010:return i%3==0;case t.Patterns.PATTERN011:return(o+i)%3==0;case t.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2==0;case t.Patterns.PATTERN101:return o*i%2+o*i%3==0;case t.Patterns.PATTERN110:return(o*i%2+o*i%3)%2==0;case t.Patterns.PATTERN111:return(o*i%3+(o+i)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){const o=t.size;let i=0,n=0,r=0,a=null,s=null;for(let l=0;l<o;l++){n=r=0,a=s=null;for(let d=0;d<o;d++){let o=t.get(l,d);o===a?n++:(n>=5&&(i+=e+(n-5)),a=o,n=1),o=t.get(d,l),o===s?r++:(r>=5&&(i+=e+(r-5)),s=o,r=1)}n>=5&&(i+=e+(n-5)),r>=5&&(i+=e+(r-5))}return i},t.getPenaltyN2=function(t){const e=t.size;let i=0;for(let o=0;o<e-1;o++)for(let n=0;n<e-1;n++){const e=t.get(o,n)+t.get(o,n+1)+t.get(o+1,n)+t.get(o+1,n+1);4!==e&&0!==e||i++}return i*o},t.getPenaltyN3=function(t){const e=t.size;let o=0,n=0,r=0;for(let i=0;i<e;i++){n=r=0;for(let a=0;a<e;a++)n=n<<1&2047|t.get(i,a),a>=10&&(1488===n||93===n)&&o++,r=r<<1&2047|t.get(a,i),a>=10&&(1488===r||93===r)&&o++}return o*i},t.getPenaltyN4=function(t){let e=0;const o=t.data.length;for(let i=0;i<o;i++)e+=t.data[i];return Math.abs(Math.ceil(100*e/o/5)-10)*n},t.applyMask=function(t,e){const o=e.size;for(let i=0;i<o;i++)for(let n=0;n<o;n++)e.isReserved(n,i)||e.xor(n,i,r(t,n,i))},t.getBestMask=function(e,o){const i=Object.keys(t.Patterns).length;let n=0,r=1/0;for(let a=0;a<i;a++){o(a),t.applyMask(a,e);const i=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),i<r&&(r=i,n=a)}return n}}(xt)),xt),s=wt(),l=function(){if(Et)return Mt;Et=1;const t=Pt();function e(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(e){this.degree=e,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(e.length+this.degree);o.set(e);const i=t.mod(o,this.genPoly),n=this.degree-i.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(i,n),t}return i},Mt=e}(),d=jt(),c=function(){if($t)return Ut;$t=1;const t=rt(),e=t.getBCHDigit(1335);return Ut.getEncodedBits=function(o,i){const n=o.bit<<3|i;let r=n<<10;for(;t.getBCHDigit(r)-e>=0;)r^=1335<<t.getBCHDigit(r)-e;return 21522^(n<<10|r)},Ut}(),u=St(),p=ie();function h(t,e,o){const i=t.size,n=c.getEncodedBits(e,o);let r,a;for(r=0;r<15;r++)a=1==(n>>r&1),r<6?t.set(r,8,a,!0):r<8?t.set(r+1,8,a,!0):t.set(i-15+r,8,a,!0),r<8?t.set(8,i-r-1,a,!0):r<9?t.set(8,15-r-1+1,a,!0):t.set(8,15-r-1,a,!0);t.set(i-8,8,1,!0)}function g(e,i,n){const r=new o;n.forEach(function(t){r.put(t.mode.bit,4),r.put(t.getLength(),u.getCharCountIndicator(t.mode,e)),t.write(r)});const a=8*(t.getSymbolTotalCodewords(e)-s.getTotalCodewordsCount(e,i));for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const d=(a-r.getLengthInBits())/8;for(let t=0;t<d;t++)r.put(t%2?17:236,8);return function(e,o,i){const n=t.getSymbolTotalCodewords(o),r=s.getTotalCodewordsCount(o,i),a=n-r,d=s.getBlocksCount(o,i),c=n%d,u=d-c,p=Math.floor(n/d),h=Math.floor(a/d),g=h+1,f=p-h,m=new l(f);let b=0;const x=new Array(d),v=new Array(d);let y=0;const w=new Uint8Array(e.buffer);for(let t=0;t<d;t++){const e=t<u?h:g;x[t]=w.slice(b,b+e),v[t]=m.encode(x[t]),b+=e,y=Math.max(y,e)}const C=new Uint8Array(n);let k,M,E=0;for(k=0;k<y;k++)for(M=0;M<d;M++)k<x[M].length&&(C[E++]=x[M][k]);for(k=0;k<f;k++)for(M=0;M<d;M++)C[E++]=v[M][k];return C}(r,e,i)}function f(e,o,s,l){let c;if(Array.isArray(e))c=p.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=o;if(!t){const o=p.rawSplit(e);t=d.getBestVersionForData(o,s)}c=p.fromString(e,t||40)}}const u=d.getBestVersionForData(c,s);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(o){if(o<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else o=u;const f=g(o,s,c),m=t.getSymbolSize(o),b=new i(m);return function(t,e){const o=t.size,i=r.getPositions(e);for(let n=0;n<i.length;n++){const e=i[n][0],r=i[n][1];for(let i=-1;i<=7;i++)if(!(e+i<=-1||o<=e+i))for(let n=-1;n<=7;n++)r+n<=-1||o<=r+n||(i>=0&&i<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===i||6===i)||i>=2&&i<=4&&n>=2&&n<=4?t.set(e+i,r+n,!0,!0):t.set(e+i,r+n,!1,!0))}}(b,o),function(t){const e=t.size;for(let o=8;o<e-8;o++){const e=o%2==0;t.set(o,6,e,!0),t.set(6,o,e,!0)}}(b),function(t,e){const o=n.getPositions(e);for(let i=0;i<o.length;i++){const e=o[i][0],n=o[i][1];for(let o=-2;o<=2;o++)for(let i=-2;i<=2;i++)-2===o||2===o||-2===i||2===i||0===o&&0===i?t.set(e+o,n+i,!0,!0):t.set(e+o,n+i,!1,!0)}}(b,o),h(b,s,0),o>=7&&function(t,e){const o=t.size,i=d.getEncodedBits(e);let n,r,a;for(let s=0;s<18;s++)n=Math.floor(s/3),r=s%3+o-8-3,a=1==(i>>s&1),t.set(n,r,a,!0),t.set(r,n,a,!0)}(b,o),function(t,e){const o=t.size;let i=-1,n=o-1,r=7,a=0;for(let s=o-1;s>0;s-=2)for(6===s&&s--;;){for(let o=0;o<2;o++)if(!t.isReserved(n,s-o)){let i=!1;a<e.length&&(i=1==(e[a]>>>r&1)),t.set(n,s-o,i),r--,-1===r&&(a++,r=7)}if(n+=i,n<0||o<=n){n-=i,i=-i;break}}}(b,f),isNaN(l)&&(l=a.getBestMask(b,h.bind(null,b,s))),a.applyMask(l,b),h(b,s,l),{modules:b,version:o,errorCorrectionLevel:s,maskPattern:l,segments:c}}return it.create=function(o,i){if(void 0===o||""===o)throw new Error("No input text");let n,r,s=e.M;return void 0!==i&&(s=e.from(i.errorCorrectionLevel,e.M),n=d.from(i.version),r=a.from(i.maskPattern),i.toSJISFunc&&t.setToSJISFunction(i.toSJISFunc)),f(o,n,s,r)},it}var re,ae,se={},le={};function de(){return re||(re=1,function(t){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");const o=parseInt(e.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:255&o,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const o=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,n=t.scale||4;return{width:i,scale:i?4:n,margin:o,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},t.getImageWidth=function(e,o){const i=t.getScale(e,o);return Math.floor((e+2*o.margin)*i)},t.qrToImageData=function(e,o,i){const n=o.modules.size,r=o.modules.data,a=t.getScale(n,i),s=Math.floor((n+2*i.margin)*a),l=i.margin*a,d=[i.color.light,i.color.dark];for(let t=0;t<s;t++)for(let o=0;o<s;o++){let c=4*(t*s+o),u=i.color.light;if(t>=l&&o>=l&&t<s-l&&o<s-l){u=d[r[Math.floor((t-l)/a)*n+Math.floor((o-l)/a)]?1:0]}e[c++]=u.r,e[c++]=u.g,e[c++]=u.b,e[c]=u.a}}}(le)),le}function ce(){return ae||(ae=1,function(t){const e=de();t.render=function(t,o,i){let n=i,r=o;void 0!==n||o&&o.getContext||(n=o,o=void 0),o||(r=function(){try{return document.createElement("canvas")}catch(J){throw new Error("You need to specify a canvas element")}}()),n=e.getOptions(n);const a=e.getImageWidth(t.modules.size,n),s=r.getContext("2d"),l=s.createImageData(a,a);return e.qrToImageData(l.data,t,n),function(t,e,o){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=o,e.width=o,e.style.height=o+"px",e.style.width=o+"px"}(s,r,a),s.putImageData(l,0,0),r},t.renderToDataURL=function(e,o,i){let n=i;void 0!==n||o&&o.getContext||(n=o,o=void 0),n||(n={});const r=t.render(e,o,n),a=n.type||"image/png",s=n.rendererOpts||{};return r.toDataURL(a,s.quality)}}(se)),se}var ue,pe,he={};function ge(){if(ue)return he;ue=1;const t=de();function e(t,e){const o=t.a/255,i=e+'="'+t.hex+'"';return o<1?i+" "+e+'-opacity="'+o.toFixed(2).slice(1)+'"':i}function o(t,e,o){let i=t+e;return void 0!==o&&(i+=" "+o),i}return he.render=function(i,n,r){const a=t.getOptions(n),s=i.modules.size,l=i.modules.data,d=s+2*a.margin,c=a.color.light.a?"<path "+e(a.color.light,"fill")+' d="M0 0h'+d+"v"+d+'H0z"/>':"",u="<path "+e(a.color.dark,"stroke")+' d="'+function(t,e,i){let n="",r=0,a=!1,s=0;for(let l=0;l<t.length;l++){const d=Math.floor(l%e),c=Math.floor(l/e);d||a||(a=!0),t[l]?(s++,l>0&&d>0&&t[l-1]||(n+=a?o("M",d+i,.5+c+i):o("m",r,0),r=0,a=!1),d+1<e&&t[l+1]||(n+=o("h",s),s=0)):r++}return n}(l,s,a.margin)+'"/>',p='viewBox="0 0 '+d+" "+d+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+p+' shape-rendering="crispEdges">'+c+u+"</svg>\n";return"function"==typeof r&&r(null,h),h},he}var fe=function(){if(pe)return tt;pe=1;const t=et(),e=ne(),o=ce(),i=ge();function n(o,i,n,r,a){const s=[].slice.call(arguments,1),l=s.length,d="function"==typeof s[l-1];if(!d&&!t())throw new Error("Callback required as last argument");if(!d){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=i,i=r=void 0):2!==l||i.getContext||(r=n,n=i,i=void 0),new Promise(function(t,a){try{const a=e.create(n,r);t(o(a,i,r))}catch(J){a(J)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=i,i=r=void 0):3===l&&(i.getContext&&void 0===a?(a=r,r=void 0):(a=r,r=n,n=i,i=void 0));try{const t=e.create(n,r);a(null,o(t,i,r))}catch(J){a(J)}}return tt.create=e.create,tt.toCanvas=n.bind(null,o.render),tt.toDataURL=n.bind(null,o.renderToDataURL),tt.toString=n.bind(null,function(t,e,o){return i.render(t,o)}),tt}();var me=Object.defineProperty,be=Object.getOwnPropertyDescriptor,xe=(t,e,o,i)=>{for(var n,r=i>1?void 0:i?be(e,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(i?n(e,o,r):n(r))||r);return i&&r&&me(e,o,r),r};let ve=class extends t{updated(){const{originId:t,destinationId:e,generalConfig:o}=this.sdkData??{};if((t!==this.lastOriginId||e!==this.lastDestinationId)&&t&&e&&o){this.lastOriginId=t,this.lastDestinationId=e;const{baseUrl:i}=o,n=`${i}/?origin=${t}&destination=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,r={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};fe.toDataURL(n,r).then(o=>{const i=this.shadowRoot?.getElementById("qr");i&&i instanceof HTMLImageElement&&(i.src=o,l.getInstance().trackEvent("qr_modal_displayed",{origin_id:t,destination_id:e,qr_url:n}))})}}render(){const{cameraInitialized:t}=this.sdkData??{};return e`
213
213
  <div class=${J({card:!0,hidden:!t})}>
214
214
  <div class="modal-content">
215
215
  <div class="pin-container">
@@ -333,4 +333,4 @@ function m({context:t,subscribe:e}){return(o,i)=>{"object"==typeof i?i.addInitia
333
333
  </div>
334
334
  `:""}
335
335
  `}};Me.styles=[o(":host{position:absolute;top:0;left:0;padding:1rem;z-index:10;font-family:Poppins!important;user-select:none}svg{vertical-align:middle}.back-panel{background-color:#11032b;color:#fff;margin-bottom:5px;padding-left:1.2rem;align-items:center;height:55px;position:relative}.back-content{margin:0;position:relative;top:50%;transform:translateY(-50%);font-size:22px;color:#fff;display:flex;align-items:center;gap:8px;cursor:pointer}.route-panel{width:29.79vw;min-width:415px;max-height:75vh;overflow-y:auto;overflow-x:hidden;border-radius:24px;background:#fff;box-shadow:0 0 24px #00000026}.back-text{font-size:24px;font-weight:600}.back-content img{vertical-align:middle}.route-modal{padding:19px 13px 22px 32px}.icon_switcher_user_type{position:relative;color:#000}.d-flex{display:flex!important}.flex-fill{flex:1 1 auto!important}.place-name{font-weight:700;font-size:32px;line-height:1;letter-spacing:-1.6px;color:#333;margin-left:2px}.repeat-route-btn{display:flex;gap:10px;justify-content:center;align-items:center;text-align:center;background-color:#fff;border:2px solid #000000;border-radius:999px;margin-left:auto;margin-right:0;padding:12px 20px;font-size:20px;font-weight:700;line-height:20px;letter-spacing:-1px;color:#000;transition:background-color .3s ease,color .3s ease;cursor:pointer}.repeat-route-btn[disabled]{color:gray;border-color:gray;cursor:not-allowed;pointer-events:none}.floor-name{font-size:1rem;color:#427553}.floor-specs{font-family:Poppins;font-weight:600;line-height:14px;size:18px}.route-distance{color:#666}.container-controls{margin-top:16px;align-items:end;gap:11px}.c-route-input{color:#000;display:flex;padding:15px;font-size:16px;font-style:normal;font-weight:600;line-height:16px;letter-spacing:-.8px;align-items:center;gap:9px;border-radius:30px;background:#fff;box-shadow:0 0 10px #0000001a;position:relative;margin-top:12px}.c-route-input .c-route-input-icon svg{width:22px;height:22px}.c-route-input-from{margin-top:0}.c-route-input-from:after{content:\"\";position:absolute;bottom:-50%;left:24px;width:3.998px;height:34.5px;z-index:1;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='38' viewBox='0 0 4 38' fill='none'%3E%3Cpath d='M-0.00028944 18.9386C-0.00028944 17.8347 0.894666 16.9397 1.99864 16.9397C3.10259 16.9397 3.99756 17.8347 3.99756 18.9386C3.99756 20.0426 3.10259 20.9375 1.99864 20.9375C0.894666 20.9375 -0.00028944 20.0426 -0.00028944 18.9386ZM-0.00028944 27.2198C-0.00028944 26.1159 0.894666 25.2209 1.99864 25.2209C3.10259 25.2209 3.99756 26.1159 3.99756 27.2198C3.99756 28.3238 3.10259 29.2188 1.99864 29.2188C0.894666 29.2188 -0.00028944 28.3238 -0.00028944 27.2198ZM-0.00028944 35.5011C-0.00028944 34.3971 0.894666 33.5021 1.99864 33.5021C3.10259 33.5021 3.99756 34.3971 3.99756 35.5011C3.99756 36.605 3.10259 37.5 1.99864 37.5C0.894666 37.5 -0.00028944 36.605 -0.00028944 35.5011Z' fill='%23D0D0D0'/%3E%3Cpath d='M1.99864 8.49999C0.894666 8.49999 -0.00028944 9.39496 -0.00028944 10.4989C-0.00028944 11.6029 0.894666 12.4978 1.99864 12.4978C3.10259 12.4978 3.99756 11.6029 3.99756 10.4989C3.99756 9.39496 3.10259 8.49999 1.99864 8.49999Z' fill='%23D0D0D0'/%3E%3Cpath d='M1.99864 0C0.894666 0 -0.00028944 0.894973 -0.00028944 1.99892C-0.00028944 3.10289 0.894666 3.99784 1.99864 3.99784C3.10259 3.99784 3.99756 3.10289 3.99756 1.99892C3.99756 0.894973 3.10259 0 1.99864 0Z' fill='%23D0D0D0'/%3E%3C/svg%3E\")}.c-route-input span{padding:0 6px;border-radius:15px;color:#454545;background:#f2f2f2;font-size:10px;font-style:normal;font-weight:600;line-height:14px;letter-spacing:-.5px}.accessibility-switch{display:flex;align-items:center;justify-content:center;min-width:100px;height:50px;border-radius:48px;background-color:#fff;box-shadow:0 0 15px #0003;position:relative}.accessibility-switch:before,.accessibility-switch:after{content:\"\";border-radius:50%;width:50%;height:100%;background:#000;position:absolute;bottom:0;left:0;background:linear-gradient(45.8deg,#f5a 10.03%,#b850c9 25.23%,#6572d6 48.67%,#4eaeb8 72.74%);z-index:0;transition:transform .5s ease}.accessibility-switch:after{background:#000;clip-path:circle(22px);z-index:1}.accessibility-switch.accessible:before,.accessibility-switch.accessible:after{transform:translate(100%)}.accessibility-switch-icon{width:50px;height:100%;display:grid;place-items:center;cursor:pointer;z-index:2;transition:color .5s ease;color:#000}.accessibility-switch-icon.active{color:#fff}.generate-route-btn{border-style:solid;width:100%;border-radius:30px;height:58px;background-color:#11032b;cursor:pointer}.generate-route-btn span{font-family:Poppins;font-size:1rem;line-height:16px;font-weight:600;text-align:center;color:#fff}.generate-route-container{width:100%}.mt-3{margin-top:1rem!important}.align-items-center{align-items:center!important}.justify-content-center{justify-content:center!important}.error-modal-overlay{position:fixed;inset:0;background:#00000080;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000}.error-modal{background:#fff;color:#11032b;border-radius:24px;padding:32px;text-align:center;max-width:350px;box-shadow:0 0 24px #0000004d;animation:fadeInScale .2s ease-out}@keyframes fadeInScale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.error-icon{margin-bottom:16px;color:#11032b}.error-message{font-size:18px;margin:0 0 24px;line-height:1.4;font-weight:500}.error-btn{background:#11032b;color:#fff;border:none;border-radius:30px;padding:12px 40px;font-size:16px;font-weight:600;cursor:pointer;transition:background-color .2s ease}.error-btn:hover{background:#1a0540}.loading-overlay{position:fixed;inset:0;background:#ffffffd9;backdrop-filter:blur(4px);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999}.loading-spinner{width:60px;height:60px;border:4px solid #f3f3f3;border-top:4px solid #11032b;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text{margin-top:16px;font-size:18px;font-weight:600;color:#11032b}.error-icon.network-error{color:#e74c3c}")],ke([m({context:x,subscribe:!0})],Me.prototype,"sdkData",2),Me=ke([a("route-options")],Me);const Ee=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get RouteOptions(){return Me}},Symbol.toStringTag,{value:"Module"}));export{q as B,Z as c,J as e,X as f,b as g,f as i,ye as q,Ee as r,x as s};
336
- //# sourceMappingURL=components-iq1KFC9T.js.map
336
+ //# sourceMappingURL=components-P8ZEdF4n.js.map