diff --git a/examples/meridian-sdk.js b/examples/meridian-sdk.js index 55c2bf89..53273127 100644 --- a/examples/meridian-sdk.js +++ b/examples/meridian-sdk.js @@ -1,2 +1,2 @@ /*! For license information please see meridian-sdk.js.LICENSE.txt */ -var MeridianSDK;!function(){var e={323:function(e,t,n){var r={"./aed.svg":852,"./amusement_park.svg":1968,"./atm.svg":5150,"./attraction.svg":1541,"./baggage.svg":3412,"./baggage_carts.svg":2096,"./bank.svg":136,"./bar.svg":5861,"./bike.svg":8113,"./bus.svg":7536,"./cafe.svg":2873,"./cafeteria.svg":3884,"./cashier.svg":9005,"./changing_room.svg":8327,"./changing_station.svg":7126,"./charging_station.svg":6906,"./clinic.svg":9138,"./club.svg":1174,"./coat_check.svg":3826,"./conference_room.svg":1606,"./currency_exchange.svg":7501,"./customer_service.svg":5738,"./desk.svg":9477,"./device_charging.svg":2630,"./elevator.svg":4,"./emergency_dept.svg":2053,"./escalator.svg":4266,"./exclusion_area.svg":2890,"./exhibit.svg":1641,"./exit.svg":9458,"./fire_extinguisher.svg":6624,"./first_aid.svg":1535,"./fitness_center.svg":1902,"./fountain.svg":3614,"./gallery.svg":6848,"./gaming.svg":5781,"./garden.svg":1841,"./gate.svg":5995,"./generic.svg":9101,"./global_entry_office.svg":1393,"./handicap.svg":2914,"./information.svg":8208,"./kiosk.svg":6175,"./lab.svg":7903,"./laptop_lounge.svg":4067,"./lost_found.svg":1833,"./lounge.svg":1900,"./mailbox.svg":2086,"./museum.svg":2002,"./nursing_station.svg":1565,"./operating_room.svg":2515,"./outdoor_area.svg":4525,"./paging_phone.svg":9563,"./parking.svg":8854,"./pet_relief.svg":4975,"./pharmacy.svg":593,"./phone.svg":9338,"./play_area.svg":9484,"./printer.svg":7774,"./registration.svg":9333,"./rental_cars.svg":3622,"./restaurant.svg":2311,"./restroom.svg":4965,"./restroom_ada.svg":2804,"./restroom_family.svg":504,"./restroom_men.svg":5584,"./restroom_men_ada.svg":7073,"./restroom_women.svg":8098,"./restroom_women_ada.svg":3303,"./rewards.svg":8850,"./security.svg":9456,"./security_checkpoint.svg":2453,"./shoe_shine.svg":9519,"./shop.svg":5758,"./spa.svg":7244,"./stadium.svg":1915,"./stairs.svg":2208,"./swimming_pool.svg":646,"./taxi.svg":7342,"./theater.svg":2925,"./ticketing.svg":8034,"./tours.svg":3187,"./train.svg":4340,"./training.svg":6740,"./valet.svg":1644,"./vending_machines.svg":4810,"./water_fountain.svg":9922,"./wedding.svg":2994};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=323},129:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return be}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(b,--y):0,g--,10===_&&(g=1,m--),_}function O(){return _=y2||E(_)>3?"":" "}function M(e,t){for(;--t&&O()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return A(e,C()+(t<6&&32==S()&&32==O()))}function R(e){for(;O();)switch(_){case e:return y;case 34:case 39:34!==e&&39!==e&&R(_);break;case 40:41===e&&R(e);break;case 92:O()}return y}function L(e,t){for(;O()&&e+_!==57&&(e+_!==84||47!==S()););return"/*"+A(t,y-1)+"*"+i(47===e?e:O())}function N(e){for(;!E(S());)O();return A(e,y)}var I="-ms-",z="-moz-",F="-webkit-",B="comm",U="rule",$="decl",q="@keyframes";function W(e,t){for(var n="",r=p(e),o=0;o0&&h(z)-v&&d(_>32?J(z+";",r,n,v-1):J(l(z," ","")+";",r,n,v-2),p);break;case 59:z+=";";default:if(d(I=G(z,t,n,m,g,o,f,T,P=[],R=[],v),a),123===E)if(0===g)V(z,t,I,I,P,a,v,f,R);else switch(99===y&&110===u(z,3)?100:y){case 100:case 108:case 109:case 115:V(e,I,I,r&&d(G(e,I,I,0,0,o,f,T,o,P=[],v),R),o,R,v,f,r?P:R);break;default:V(z,I,I,I,[""],R,0,f,R)}}m=g=_=0,w=A=1,T=z="",v=s;break;case 58:v=1+h(z),_=b;default:if(w<1)if(123==E)--w;else if(125==E&&0==w++&&125==x())continue;switch(z+=i(E),E*w){case 38:A=g>0?1:(z+="\f",-1);break;case 44:f[m++]=(h(z)-1)*A,A=1;break;case 64:45===S()&&(z+=D(O())),y=S(),g=v=h(T=z+=N(C())),E++;break;case 45:45===b&&2==h(z)&&(w=0)}}return a}function G(e,t,n,r,i,a,c,u,h,d,m){for(var g=i-1,v=0===i?a:[""],y=p(v),_=0,b=0,k=0;_0?v[x]+" "+O:l(O,/&\f/g,v[x])))&&(h[k++]=S);return w(e,t,n,0===i?U:u,h,d,m)}function X(e,t,n){return w(e,t,n,B,i(_),f(e,2,-2),0)}function J(e,t,n,r){return w(e,t,n,$,f(e,0,r),f(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,o=0;r=o,o=S(),38===r&&12===o&&(t[n]=1),!E(o);)O();return A(e,y)},K=new WeakMap,Q=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||K.get(n))&&!r){K.set(e,!0);for(var o=[],a=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(E(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=Y(y-1,t,n);break;case 2:e[n]+=D(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=O());return e}(T(e),t))}(t,o),s=n.props,l=0,c=0;l6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+z+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,h(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+F)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===u(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+I+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return F+e+I+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+I+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+I+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+I+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=te(e.value,e.length);break;case q:return W([k(e,{value:l(e.value,"@","@"+F)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return W([k(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return W([k(e,{props:[l(t,/:(plac\w+)/,":"+F+"input-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,I+"input-$1")]})],r)}return""}))}}],re={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function oe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ie=!1,ae=/[A-Z]|^ms/g,se=/_EMO_([^_]+?)_([^]*?)_EMO_/g,le=function(e){return 45===e.charCodeAt(1)},ce=function(e){return null!=e&&"boolean"!=typeof e},ue=oe((function(e){return le(e)?e:e.replace(ae,"-$&").toLowerCase()})),fe=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(se,(function(e,t,n){return de={name:t,styles:n,next:de},t}))}return 1===re[e]||le(e)||"number"!=typeof t||0===t?t:t+"px"},he="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pe(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return de={name:o.name,styles:o.styles,next:de},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)de={name:a.name,styles:a.styles,next:de},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:de}}function ve(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}function ye(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function _e(e,t,n){var r=[],o=ve(e,r,n);return r.length<2?n:o+t(r)}var be=function(e){var t=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||ne,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),l=-1,c=s.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++l0)for(var n,r,o=new Array(n),i=0;i=t||n<0||f&&e-c>=i}function b(){var e=d();if(_(e))return w(e);s=setTimeout(b,function(e){var n=t-(e-l);return f?p(n,i-(e-c)):n}(e))}function w(e){return s=void 0,v&&r?y(e):(r=o=void 0,a)}function k(){var e=d(),n=_(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(b,t),u?y(e):a}(l);if(f)return s=setTimeout(b,t),y(l)}return void 0===s&&(s=setTimeout(b,t)),a}return t=g(t)||0,m(n)&&(u=!!n.leading,i=(f="maxWait"in n)?h(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},k.flush=function(){return void 0===s?a:w(d())},k}},1324:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=1,i=2,a=1/0,s=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object Boolean]",f="[object Date]",h="[object Error]",p="[object Function]",d="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",y="[object Promise]",_="[object RegExp]",b="[object Set]",w="[object String]",k="[object Symbol]",x="[object WeakMap]",O="[object ArrayBuffer]",S="[object DataView]",C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,E=/^\./,T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/\\(\\)?/g,D=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[l]=M[c]=M[O]=M[u]=M[S]=M[f]=M[h]=M[p]=M[m]=M[g]=M[v]=M[_]=M[b]=M[w]=M[x]=!1;var R="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,L="object"==typeof self&&self&&self.Object===Object&&self,N=R||L||Function("return this")(),I=t&&!t.nodeType&&t,z=I&&e&&!e.nodeType&&e,F=z&&z.exports===I&&R.process,B=function(){try{return F&&F.binding("util")}catch(e){}}(),U=B&&B.isTypedArray;function $(e,t,n,r){for(var o=-1,i=e?e.length:0;++o-1},Se.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new Oe,map:new(fe||Se),string:new Oe}},Ce.prototype.delete=function(e){return Fe(this,e).delete(e)},Ce.prototype.get=function(e){return Fe(this,e).get(e)},Ce.prototype.has=function(e){return Fe(this,e).has(e)},Ce.prototype.set=function(e,t){return Fe(this,e).set(e,t),this},Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,r),this},Ae.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.clear=function(){this.__data__=new Se},Ee.prototype.delete=function(e){return this.__data__.delete(e)},Ee.prototype.get=function(e){return this.__data__.get(e)},Ee.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var r=n.__data__;if(!fe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ce(r)}return n.set(e,t),this};var De,je=(De=function(e,t){return e&&Me(e,t,lt)},function(e,t){if(null==e)return e;if(!tt(e))return De(e,t);for(var n=e.length,r=-1,o=Object(e);++rc))return!1;var f=s.get(e);if(f&&s.get(t))return f==t;var h=-1,p=!0,d=a&o?new Ae:void 0;for(s.set(e,t),s.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=s}function ot(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function it(e){return!!e&&"object"==typeof e}function at(e){return"symbol"==typeof e||it(e)&&re.call(e)==k}var st=U?function(e){return function(t){return e(t)}}(U):function(e){return it(e)&&rt(e.length)&&!!M[re.call(e)]};function lt(e){return tt(e)?function(e,t){var n=et(e)||Qe(e)?function(e,t){for(var n=-1,r=Array(e);++n=t||n<0||h&&e-u>=a}function w(){var e=v();if(b(e))return k(e);l=setTimeout(w,function(e){var n=t-(e-c);return h?g(n,a-(e-u)):n}(e))}function k(e){return l=void 0,p&&o?d(e):(o=i=void 0,s)}function x(){var e=v(),n=b(e);if(o=arguments,i=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(w,t),f?d(e):s}(c);if(h)return l=setTimeout(w,t),d(c)}return void 0===l&&(l=setTimeout(w,t)),s}return t=_(t)||0,y(n)&&(f=!!n.leading,a=(h="maxWait"in n)?m(_(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),x.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=c=i=l=void 0},x.flush=function(){return void 0===l?s:k(v())},x}(e,t,{leading:o,maxWait:t,trailing:i})}},7975:function(e){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),i=s,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(r=a+"/"+r,o=47===a.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;oc){if(47===n.charCodeAt(s+f))return n.slice(s+f+1);if(0===f)return n.slice(s+f)}else a>c&&(47===e.charCodeAt(o+f)?u=f:0===f&&(u=0));break}var h=e.charCodeAt(o+f);if(h!==n.charCodeAt(s+f))break;47===h&&(u=f)}var p="";for(f=o+u+1;f<=i;++f)f!==i&&47!==e.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){o=r+1;break}}else-1===l&&(a=!1,l=r+1),s>=0&&(c===n.charCodeAt(s)?-1==--s&&(i=r):(s=-1,i=l))}return o===i?i=l:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){o=r+1;break}}else-1===i&&(a=!1,i=r+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===o&&(i=!1,o=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!i){r=s+1;break}}return-1===n||-1===o||0===a||1===a&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var a=-1,s=0,l=-1,c=!0,u=e.length-1,f=0;u>=r;--u)if(47!==(o=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===o?-1===a?a=u:1!==f&&(f=1):-1!==a&&(f=-1);else if(!c){s=u+1;break}return-1===a||-1===l||0===f||1===f&&a===l-1&&a===s+1?-1!==l&&(n.base=n.name=0===s&&i?e.slice(1,l):e.slice(s,l)):(0===s&&i?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),s>0?n.dir=e.slice(0,s-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},3034:function(e,t,n){"use strict";n.r(t),n.d(t,{resetPropWarnings:function(){return a}});var r,o=n(172);null!=(r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&r.__PREACT_DEVTOOLS__&&r.__PREACT_DEVTOOLS__.attachPreact("10.23.2",o.options,{Fragment:o.Fragment,Component:o.Component});var i={};function a(){i={}}function s(e){return e.type===o.Fragment?"Fragment":"function"==typeof e.type?e.type.displayName||e.type.name:"string"==typeof e.type?e.type:"#text"}var l=[],c=[];function u(){return l.length>0?l[l.length-1]:null}var f=!0;function h(e){return"function"==typeof e.type&&e.type!=o.Fragment}function p(e){for(var t=[e],n=e;null!=n.__o;)t.push(n.__o),n=n.__o;return t.reduce((function(e,t){e+=" in "+s(t);var n=t.__source;return n?e+=" (at "+n.fileName+":"+n.lineNumber+")":f&&console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons."),f=!1,e+"\n"}),"")}var d="function"==typeof WeakMap;function m(e){var t=[];return e.__k?(e.__k.forEach((function(e){e&&"function"==typeof e.type?t.push.apply(t,m(e)):e&&"string"==typeof e.type&&t.push(e.type)})),t):t}function g(e){return e?"function"==typeof e.type?null==e.__?null!=e.__e&&null!=e.__e.parentNode?e.__e.parentNode.localName:"":g(e.__):e.type:""}var v=o.Component.prototype.setState;function y(e){return"table"===e||"tfoot"===e||"tbody"===e||"thead"===e||"td"===e||"tr"===e||"th"===e}o.Component.prototype.setState=function(e,t){return null==this.__v&&null==this.state&&console.warn('Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly.\n\n'+p(u())),v.call(this,e,t)};var _=/^(address|article|aside|blockquote|details|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|main|menu|nav|ol|p|pre|search|section|table|ul)$/,b=o.Component.prototype.forceUpdate;function w(e){var t=e.props,n=s(e),r="";for(var o in t)if(t.hasOwnProperty(o)&&"children"!==o){var i=t[o];"function"==typeof i&&(i="function "+(i.displayName||i.name)+"() {}"),i=Object(i)!==i||i.toString?i+"":Object.prototype.toString.call(i),r+=" "+o+"="+JSON.stringify(i)}var a=t.children;return"<"+n+r+(a&&a.length?">..":" />")}o.Component.prototype.forceUpdate=function(e){return null==this.__v?console.warn('Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application.\n\n'+p(u())):null==this.__P&&console.warn('Can\'t call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n'+p(this.__v)),b.call(this,e)},function(){!function(){var e=o.options.__b,t=o.options.diffed,n=o.options.__,r=o.options.vnode,i=o.options.__r;o.options.diffed=function(e){h(e)&&c.pop(),l.pop(),t&&t(e)},o.options.__b=function(t){h(t)&&l.push(t),e&&e(t)},o.options.__=function(e,t){c=[],n&&n(e,t)},o.options.vnode=function(e){e.__o=c.length>0?c[c.length-1]:null,r&&r(e)},o.options.__r=function(e){h(e)&&c.push(e),i&&i(e)}}();var e=!1,t=o.options.__b,n=o.options.diffed,r=o.options.vnode,a=o.options.__r,u=o.options.__e,f=o.options.__,v=o.options.__h,b=d?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,k=[];o.options.__e=function(e,t,n,r){if(t&&t.__c&&"function"==typeof e.then){var o=e;e=new Error("Missing Suspense. The throwing component was: "+s(t));for(var i=t;i;i=i.__)if(i.__c&&i.__c.__c){e=o;break}if(e instanceof Error)throw e}try{(r=r||{}).componentStack=p(t),u(e,t,n,r),"function"!=typeof e.then&&setTimeout((function(){throw e}))}catch(e){throw e}},o.options.__=function(e,t){if(!t)throw new Error("Undefined parent passed to render(), this is the second argument.\nCheck if the element is available in the DOM/has the correct id.");var n;switch(t.nodeType){case 1:case 11:case 9:n=!0;break;default:n=!1}if(!n){var r=s(e);throw new Error("Expected a valid HTML node as a second argument to render.\tReceived "+t+" instead: render(<"+r+" />, "+t+");")}f&&f(e,t)},o.options.__b=function(n){var r=n.type;if(e=!0,void 0===r)throw new Error("Undefined component passed to createElement()\n\nYou likely forgot to export your component or might have mixed up default and named imports"+w(n)+"\n\n"+p(n));if(null!=r&&"object"==typeof r){if(void 0!==r.__k&&void 0!==r.__e)throw new Error("Invalid type passed to createElement(): "+r+"\n\nDid you accidentally pass a JSX literal as JSX twice?\n\n let My"+s(n)+" = "+w(r)+";\n let vnode = ;\n\nThis usually happens when you export a JSX literal and not the component.\n\n"+p(n));throw new Error("Invalid type passed to createElement(): "+(Array.isArray(r)?"array":r))}if(void 0!==n.ref&&"function"!=typeof n.ref&&"object"!=typeof n.ref&&!("$$typeof"in n))throw new Error('Component\'s "ref" property should be a function, or an object created by createRef(), but got ['+typeof n.ref+"] instead\n"+w(n)+"\n\n"+p(n));if("string"==typeof n.type)for(var o in n.props)if("o"===o[0]&&"n"===o[1]&&"function"!=typeof n.props[o]&&null!=n.props[o])throw new Error("Component's \""+o+'" property should be a function, but got ['+typeof n.props[o]+"] instead\n"+w(n)+"\n\n"+p(n));if("function"==typeof n.type&&n.type.propTypes){if("Lazy"===n.type.displayName&&b&&!b.lazyPropTypes.has(n.type)){var a="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var l=n.type();b.lazyPropTypes.set(n.type,!0),console.warn(a+"Component wrapped in lazy() is "+s(l))}catch(e){console.warn(a+"We will log the wrapped component's name once it is loaded.")}}var c=n.props;n.type.__f&&delete(c=function(e,t){for(var n in t)e[n]=t[n];return e}({},c)).ref,function(e,t,n,r,o){Object.keys(e).forEach((function(n){var a;try{a=e[n](t,n,r,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){a=e}a&&!(a.message in i)&&(i[a.message]=!0,console.error("Failed prop type: "+a.message+(o&&"\n"+o()||"")))}))}(n.type.propTypes,c,0,s(n),(function(){return p(n)}))}t&&t(n)};var x,O=0;o.options.__r=function(t){a&&a(t),e=!0;var n=t.__c;if(n===x?O++:O=1,O>=25)throw new Error("Too many re-renders. This is limited to prevent an infinite loop which may lock up your browser. The component causing this is: "+s(t));x=n},o.options.__h=function(t,n,r){if(!t||!e)throw new Error("Hook can only be invoked from render methods.");v&&v(t,n,r)};var S=function(e,t){return{get:function(){var n="get"+e+t;k&&k.indexOf(n)<0&&(k.push(n),console.warn("getting vnode."+e+" is deprecated, "+t))},set:function(){var n="set"+e+t;k&&k.indexOf(n)<0&&(k.push(n),console.warn("setting vnode."+e+" is not allowed, "+t))}}},C={nodeName:S("nodeName","use vnode.type"),attributes:S("attributes","use vnode.props"),children:S("children","use vnode.props.children")},A=Object.create({},C);o.options.vnode=function(e){var t=e.props;if(null!==e.type&&null!=t&&("__source"in t||"__self"in t)){var n=e.props={};for(var o in t){var i=t[o];"__source"===o?e.__source=i:"__self"===o?e.__self=i:n[o]=i}}e.__proto__=A,r&&r(e)},o.options.diffed=function(t){var r,o=t.type,i=t.__;if(t.__k&&t.__k.forEach((function(e){if("object"==typeof e&&e&&void 0===e.type){var n=Object.keys(e).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+n+"}.\n\n"+p(t))}})),t.__c===x&&(O=0),"string"==typeof o&&(y(o)||"p"===o||"a"===o||"button"===o)){var a=g(i);if(""!==a&&y(o))"table"===o&&"td"!==a&&y(a)?(console.log(a,i.__e),console.error("Improper nesting of table. Your should not have a table-node parent."+w(t)+"\n\n"+p(t))):"thead"!==o&&"tfoot"!==o&&"tbody"!==o||"table"===a?"tr"===o&&"thead"!==a&&"tfoot"!==a&&"tbody"!==a?console.error("Improper nesting of table. Your should have a parent."+w(t)+"\n\n"+p(t)):"td"===o&&"tr"!==a?console.error("Improper nesting of table. Your parent."+w(t)+"\n\n"+p(t)):"th"===o&&"tr"!==a&&console.error("Improper nesting of table. Your ."+w(t)+"\n\n"+p(t)):console.error("Improper nesting of table. Your should have a
should have a
should have a
parent."+w(t)+"\n\n"+p(t));else if("p"===o){var l=m(t).filter((function(e){return _.test(e)}));l.length&&console.error("Improper nesting of paragraph. Your

should not have "+l.join(", ")+"as child-elements."+w(t)+"\n\n"+p(t))}else"a"!==o&&"button"!==o||-1!==m(t).indexOf(o)&&console.error("Improper nesting of interactive content. Your <"+o+"> should not have other "+("a"===o?"anchor":"button")+" tags as child-elements."+w(t)+"\n\n"+p(t))}if(e=!1,n&&n(t),null!=t.__k)for(var c=[],u=0;u2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return k(e,s,o,i,null)}function k(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(s),s}function x(){return{current:null}}function O(e){return e.children}function S(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var n;tt&&s.sort(u));T.__r=0}function P(e,t,n,r,o,i,a,s,l,c,u){var f,h,p,d,v,y=r&&r.__k||g,_=t.length;for(n.__d=l,D(n,t,y),l=n.__d,f=0;f<_;f++)null!=(p=n.__k[f])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?m:y[p.__i]||m,p.__i=f,z(e,p,h,o,i,a,s,l,c,u),d=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&U(h.ref,null,p),u.push(p.ref,p.__c||d,p)),null==v&&null!=d&&(v=d),65536&p.__u||h.__k===p.__k?l=j(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:d&&(l=d.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=v}function D(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,u=c,f=0;for(e.__k=[],r=0;r0?k(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=R(o,n,a,u),o.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&f--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s==a-1?f--:s==a+1?f++:s>a?u>l-a?f+=s-a:f--:s(null==l||131072&l.__u?0:1))for(;a>=0||s=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s2&&(l.children=arguments.length>3?r.call(arguments,2):n),k(e.type,l,o||e.key,i||e.ref,null)}function V(e,t){var n={__c:t="__cC"+d++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,E(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=g.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,a=function(e){return null!=e&&null==e.constructor},S.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=_({},this.state),"function"==typeof e&&(e=e(_({},n),this.props)),e&&_(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),E(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},S.prototype.render=O,s=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},T.__r=0,f=0,h=I(!1),p=I(!0),d=0},5697:function(e,t,n){"use strict";n.r(t);var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function i(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var a=function(e,t){this.target=t,this.type=e},s=function(e){function t(t,n){var r=e.call(this,"error",n)||this;return r.message=t.message,r.error=t,r}return o(t,e),t}(a),l=function(e){function t(t,n,r){void 0===t&&(t=1e3),void 0===n&&(n="");var o=e.call(this,"close",r)||this;return o.wasClean=!0,o.code=t,o.reason=n,o}return o(t,e),t}(a),c=function(){if("undefined"!=typeof WebSocket)return WebSocket},u={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+4e3*Math.random(),minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},f=function(){function e(e,t,n){var r=this;void 0===n&&(n={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(e){r._debug("open event");var t=r._options.minUptime,n=void 0===t?u.minUptime:t;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout((function(){return r._acceptOpen()}),n),r._ws.binaryType=r._binaryType,r._messageQueue.forEach((function(e){return r._ws.send(e)})),r._messageQueue=[],r.onopen&&r.onopen(e),r._listeners.open.forEach((function(t){return r._callEventListener(e,t)}))},this._handleMessage=function(e){r._debug("message event"),r.onmessage&&r.onmessage(e),r._listeners.message.forEach((function(t){return r._callEventListener(e,t)}))},this._handleError=function(e){r._debug("error event",e.message),r._disconnect(void 0,"TIMEOUT"===e.message?"timeout":void 0),r.onerror&&r.onerror(e),r._debug("exec error listeners"),r._listeners.error.forEach((function(t){return r._callEventListener(e,t)})),r._connect()},this._handleClose=function(e){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(e),r._listeners.close.forEach((function(t){return r._callEventListener(e,t)}))},this._url=e,this._protocols=t,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){return this._messageQueue.reduce((function(e,t){return"string"==typeof t?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e}),0)+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),this._ws?this._ws.readyState!==this.CLOSED?this._ws.close(e,t):this._debug("close: already closed"):this._debug("close enqueued: no ws instance")},e.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,this._ws&&this._ws.readyState!==this.CLOSED?(this._disconnect(e,t),this._connect()):this._connect()},e.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,n=void 0===t?u.maxEnqueuedMessages:t;this._messageQueue.length=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(r),i=o.next();!i.done;i=o.next()){var a=i.value;this._callEventListener(e,a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((function(e){return e!==t})))},e.prototype._debug=function(){for(var e=[],t=0;t"],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=void 0===t?u.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,o=void 0===r?u.minReconnectionDelay:r,i=e.maxReconnectionDelay,a=void 0===i?u.maxReconnectionDelay:i,s=0;return this._retryCount>0&&(s=o*Math.pow(n,this._retryCount-1))>a&&(s=a),this._debug("next delay",s),s},e.prototype._wait=function(){var e=this;return new Promise((function(t){setTimeout(t,e._getNextDelay())}))},e.prototype._getNextUrl=function(e){if("string"==typeof e)return Promise.resolve(e);if("function"==typeof e){var t=e();if("string"==typeof t)return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},e.prototype._connect=function(){var e=this;if(!this._connectLock&&this._shouldReconnect){this._connectLock=!0;var t=this._options,n=t.maxRetries,r=void 0===n?u.maxRetries:n,o=t.connectionTimeout,i=void 0===o?u.connectionTimeout:o,a=t.WebSocket,s=void 0===a?c():a;if(this._retryCount>=r)this._debug("max retries reached",this._retryCount,">=",r);else{if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),void 0===(l=s)||!l||2!==l.CLOSING)throw Error("No valid WebSocket class provided");var l;this._wait().then((function(){return e._getNextUrl(e._url)})).then((function(t){e._closeCalled||(e._debug("connect",{url:t,protocols:e._protocols}),e._ws=e._protocols?new s(t,e._protocols):new s(t),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout((function(){return e._handleTimeout()}),i))}))}}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new s(Error("TIMEOUT"),this))},e.prototype._disconnect=function(e,t){if(void 0===e&&(e=1e3),this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new l(e,t,this))}catch(e){}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(e,t){"handleEvent"in t?t.handleEvent(e):t(e)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();t.default=f},78:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(5843));t.default=({mapZoomFactor:e,annotations:t})=>(0,o.h)("div",{"data-testid":"meridian--private--annotation-layer"},t.map(((t,n)=>"point"===t.type?(0,o.h)(i.default,Object.assign({key:n},t,{mapZoomFactor:e})):null)))},5843:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=n(7746),a=({mapZoomFactor:e,x:t,y:n,size:o=24,backgroundColor:a="hsl(207, 65%, 46%)",backgroundSize:c="cover",backgroundImage:u,title:f,onClick:h,data:p={}})=>(0,r.h)("div",{className:s,style:{"--meridian-annotationPoint-x":`${t}px`,"--meridian-annotationPoint-y":`${n}px`,"--meridian-annotationPoint-scale":1/e,"--meridian-annotationPoint-size":`${o}px`,"--meridian-annotationPoint-backgroundColor":a,"--meridian-annotationPoint-backgroundSize":c,"--meridian-annotationPoint-backgroundImage":u?`url('${u}')`:"none",cursor:h?"pointer":"initial"},onClick:h?()=>(0,i.asyncClientCall)(h,p):void 0,"data-testid":"meridian--private--annotation-point"},f?(0,r.h)("div",{className:l,"data-testid":"meridian--private--annotation-point-title"},f):null),s=(0,o.css)({label:"AnnotationPoint",position:"absolute",top:"var(--meridian-annotationPoint-y)",left:"var(--meridian-annotationPoint-x)",transform:"translate(-50%, -50%) scale(var(--meridian-annotationPoint-scale))",width:"var(--meridian-annotationPoint-size)",height:"var(--meridian-annotationPoint-size)",backgroundColor:"var(--meridian-annotationPoint-backgroundColor)",backgroundImage:"var(--meridian-annotationPoint-backgroundImage)",backgroundSize:"var(--meridian-annotationPoint-backgroundSize)",backgroundRepeat:"no-repeat",backgroundPosition:"center",borderRadius:9999,userSelect:"none"}),l=(0,o.css)(o.mixins.textStrokeWhite,{label:"AnnotationPoint-Label",marginLeft:"50%",position:"absolute",minWidth:55,maxWidth:120,fontSize:14,textAlign:"center",marginTop:"var(--meridian-annotationPoint-size)",paddingTop:4,color:"#222",userSelect:"none",transform:"translate(-50%, 0)",fontWeight:"bold"});a.displayName="AnnotationPoint",t.default=a},2150:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(1324)),i=n(172),a=r(n(2930)),s=r(n(9594)),l=r(n(8828)),c=r(n(6933)),u=n(2785),f=r(n(7866)),h=n(7746);class p extends i.Component{constructor(){super(...arguments),this.state={searchFilter:"",searchType:this.props.showTags?"tags":"placemarks"},this.searchInputRef=(0,i.createRef)(),this.setRadioFilter=e=>{this.setState({searchType:e})}}componentDidMount(){this.searchInputRef.current&&this.searchInputRef.current.focus()}render(){const{floors:e,tagsLoading:t,placemarksLoading:n,toggleAssetListOverlay:r,showTags:a,showPlacemarks:s,language:u}=this.props,p=f.default.lookup("tags",u),g=f.default.lookup("search_tags",u),v=f.default.lookup("placemarks",u),y=f.default.lookup("search_placemarks",u),{searchFilter:_}=this.state,b=(0,h.createSearchMatcher)(_),w=(0,o.default)(e,(e=>e.id)),S={};for(const t of e)S[t.id]=[t.group_name||h.uiText.unnamedBuilding,h.uiText.enDash,t.name].join(" ");return(0,i.h)(l.default,{position:"right",onCloseClicked:()=>{r({open:!1})}},(0,i.h)(c.default,{placeholder:"tags"===this.state.searchType?g:y,value:_,onChange:e=>{this.setState({searchFilter:e})}}),(0,i.h)("div",{className:O(Boolean(a&&s))},a?(0,i.h)(i.Fragment,null,(0,i.h)("input",{type:"radio",name:"searchType",id:"tags",className:x,checked:"tags"===this.state.searchType,onChange:e=>{e.target.checked&&this.setRadioFilter("tags")}}),(0,i.h)("label",{for:"tags",className:k},p)):null,s?(0,i.h)(i.Fragment,null,(0,i.h)("input",{type:"radio",name:"searchType",id:"placemarks",className:x,checked:"placemarks"===this.state.searchType,onChange:e=>{e.target.checked&&this.setRadioFilter("placemarks")}}),(0,i.h)("label",{for:"placemarks",className:k},v)):null),(()=>"tags"===this.state.searchType?(0,i.h)(d,Object.assign({},this.props,{floorToGroup:S,floorsByID:w,match:b,loading:t})):(0,i.h)(m,Object.assign({},this.props,{floorToGroup:S,floorsByID:w,match:b,loading:n})))())}}function d(e){const{currentFloorID:t,updateMap:n,tagOptions:r={},tags:l,loading:c,onTagClick:p,toggleAssetListOverlay:d,match:m,floorsByID:k,floorToGroup:x,language:O}=e,S=f.default.lookup("no_results_found",O),C=l.filter((e=>{const t=k[e.map_id][0];return!t||t.published})).filter((e=>m(e.name||"")||m(e.mac)||(0,h.getTagLabels)(e).some(m))).filter((e=>!0===r.showControlTags||!e.is_control_tag)).sort(((e,t)=>e.namet.name?1:0)),A=(0,o.default)(C,(e=>x[e.map_id])),E=Object.keys(A).sort();return E.forEach(((e,n)=>{if(A[e][0].map_id===t){const[e]=E.splice(n,1);E.unshift(e)}})),c?(0,i.h)("div",{className:w},(0,i.h)(a.default,null)):0===C.length?(0,i.h)("div",{className:w},S,"."):(0,i.h)("div",{className:v},E.map((e=>(0,i.h)("div",{key:e},(0,i.h)("div",{className:g},e),A[e].map((e=>(0,i.h)("button",{key:e.id,"data-testid":`meridian--private--overlay-tag-${e.id}`,className:y,onClick:()=>{n({floorID:e.map_id,tags:Object.assign(Object.assign({},r),{filter:()=>!0})}),p(e),d({open:!1})}},(0,i.h)("div",{className:_},(0,i.h)("div",{className:b},e.name||e.mac),(0,i.h)(s.default,{align:"right",labels:(0,h.getTagLabels)(e),fontSize:u.theme.fontSizeSmallest})))))))))}function m(e){const{currentFloorID:t,updateMap:n,placemarkOptions:r={},toggleAssetListOverlay:s,floorToGroup:l,match:c,placemarks:u,onPlacemarkClick:h,floorsByID:p,loading:d,language:m}=e,_=f.default.lookup("no_results_found",m),k=u.filter((e=>{const t=p[e.map][0];return!t||t.published})).filter((e=>e.is_searchable||null===e.is_searchable||void 0===e.is_searchable)).filter((e=>"exclusion_area"!==e.type&&(!0===r.showHiddenPlacemarks||!e.hide_on_map))).filter((e=>c(e.name||"")||c(e.type_name||""))).sort(((e,t)=>e.namet.name?1:0)),x=(0,o.default)(k,(e=>l[e.map])),O=Object.keys(x).sort();return O.forEach(((e,n)=>{if(x[e][0].map_id===t){const[e]=O.splice(n,1);O.unshift(e)}})),d?(0,i.h)("div",{className:w},(0,i.h)(a.default,null)):0===k.length?(0,i.h)("div",{className:w},_,"."):(0,i.h)("div",{className:v},O.map((e=>(0,i.h)("div",{key:e},(0,i.h)("div",{className:g},e),x[e].map((e=>(0,i.h)("button",{key:e.id,"data-testid":`meridian--private--overlay-tag-${e.id}`,className:y,onClick:()=>{n({floorID:e.map,placemarks:Object.assign(Object.assign({},r),{filter:()=>!0})}),h(e),s({open:!1})}},(0,i.h)("div",{className:b},e.name||e.type_name))))))))}const g=(0,u.css)({label:"overlay-building-name",top:0,position:"sticky",textTransform:"uppercase",fontWeight:"bold",color:u.theme.brandBlue,background:u.theme.almostWhite,fontSize:u.theme.fontSizeSmaller,padding:10}),v=(0,u.css)({label:"asset-list",overflowY:"auto",flex:"1 1 auto"}),y=(0,u.css)(u.mixins.buttonReset,u.mixins.focusRingMenuItem,u.mixins.buttonHoverActive,{label:"overlay-asset-button",minHeight:56,padding:10,paddingLeft:20,display:"block",width:"100%",textAlign:"left"}),_=(0,u.css)(u.mixins.flexRow,{label:"overlay-asset-button-inner",alignItems:"center"}),b=(0,u.css)({label:"overlay-asset-button-name",flex:"1 1 auto"}),w=(0,u.css)({label:"overlay-asset-list-empty",padding:"60px 20px",textAlign:"center",fontSize:u.theme.fontSizeBigger,color:u.theme.textColorBluish}),k=(0,u.css)({label:"overlay-radio-label",color:"white",padding:"2px 10px 0px 4px"}),x=(0,u.css)({label:"overlay-radio-button",WebkitAppearance:"none",position:"relative",boxSizing:"border-box",border:"1px solid rgb(224,224,225)",width:16,height:16,background:"white",borderRadius:9999,cursor:"pointer",boxShadow:"inset 0 2px 2px rgba(0, 0, 0, 0.1)","&:focus":{outline:"none",borderColor:u.theme.searchBarColor,borderWidth:2},"&:checked":{"--circle-color":u.theme.searchBarColor,"--circle-gap":"4px"},"&:checked::after":{content:'" "',position:"absolute",width:"calc(100% - var(--circle-gap))",height:"calc(100% - var(--circle-gap))",left:"calc(var(--circle-gap) / 2)",top:"calc(var(--circle-gap) / 2)",background:"var(--circle-color)",borderRadius:9999},"&:checked:focus":{"--circle-gap":"4px","--circle-color":u.theme.searchBarColor,borderColor:u.theme.searchBarColor,borderWidth:2}}),O=e=>(0,u.css)({label:"overlay-radio-container",display:e?"flex":"none",flexDirection:"row",justifyContent:"baseline",paddingLeft:10,paddingBottom:10,backgroundColor:"rgb(105, 146, 176)",alignItems:"center"});t.default=p},324:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(9594)),a=r(n(8828)),s=n(2785),l=n(7746),c=n(4221),u=(0,s.css)({label:"overlay-image",width:"100%",backgroundColor:"white",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}),f=(0,s.css)({label:"overlay-name",fontSize:22}),h=(0,s.css)({label:"overlay-content",padding:"0 20px 15px 20px",overflow:"auto"}),p=(0,s.css)({label:"overlay-tag-data",fontSize:14}),d=(0,s.css)({label:"overlay-placemark-data",fontSize:14});t.default=({kind:e,item:t,toggleDetailsOverlay:n})=>{const r="placemark"===e&&t.image_url?{backgroundImage:`url('${t.image_url}')`,backgroundSize:"contain",height:300,minHeight:220}:"placemark"===e?{backgroundSize:"contain",backgroundImage:`url('${(0,c.placemarkIconURL)(t.type)}')`,backgroundColor:`#${t.color}`,height:300,minHeight:220}:"tag"===e&&t.image_url?{backgroundImage:`url('${t.image_url}')`,height:300}:{background:s.theme.brandBrightBlue,height:300};return(0,o.h)(a.default,{position:"left",onCloseClicked:()=>{n({open:!1})}},(0,o.h)("div",{className:u,style:r}),(0,o.h)("div",{className:(0,s.cx)("meridian-overlay-content",h)},(0,o.h)("p",{className:(0,s.cx)("meridian-overlay-item-name",f)},t.name||t.type_name),"tag"===e?(0,o.h)("div",{className:(0,s.cx)("meridian-overlay-tag-data",p)},(0,o.h)(i.default,{align:"left",labels:(0,l.getTagLabels)(t),fontSize:s.theme.fontSize}),(0,o.h)("p",null,"MAC: ",t.mac)):(0,o.h)("div",{className:(0,s.cx)("meridian-overlay-placemark-description",d),dangerouslySetInnerHTML:function(){if("placemark"===e&&t.description)return{__html:t.description}}()})))}},8812:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(4145)),a=n(2785),s=(0,a.css)(a.mixins.rounded,{label:"error",position:"absolute",zIndex:4,top:"35%",left:0,right:0,margin:"0 auto",minWidth:300,maxWidth:420,border:"1px solid #dfe1ef",paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:25,background:a.theme.white,boxShadow:"0 0 1px rgba(0, 0, 0, 0.15), inset 4px 0 0 #d82e1f"}),l=(0,a.css)(a.mixins.buttonReset,{label:"close",cursor:"pointer",float:"right",width:38,height:38,marginLeft:15,padding:4,fill:"#c3c5c8","&:hover":{fill:a.theme.textColorBluish,cursor:"pointer"},"&:focus":{outline:0}});t.default=({toggleErrorOverlay:e,messages:t=["Unknown"]})=>(0,o.h)("div",{className:s},(0,o.h)("button",{className:l,onClick:()=>{e({open:!1})}},(0,o.h)(i.default,null)),(0,o.h)("p",null,"Sorry, something went wrong. It might be related to:"),(0,o.h)("ul",null,t.map(((e,t)=>(0,o.h)("li",{key:t},e)))))},3169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=(0,o.css)({label:"floor-and-tag-controls",display:"flex",flexDirection:"column",position:"absolute",zIndex:1,right:15,top:15}),a=(0,o.css)(o.mixins.buttonReset,o.mixins.shadow,o.mixins.rounded,o.mixins.buttonHoverActive,o.mixins.focusRing,{label:"control",cursor:"pointer",background:"white",padding:4,width:40,height:40,border:0,fontSize:20,fontWeight:200,fill:o.theme.brandBrightBlue}),s=(0,o.css)(a,{marginTop:10});t.default=({toggleFloorOverlay:e,toggleAssetListOverlay:t,showFloors:n,showSearch:l})=>(0,r.h)("div",{className:i},l?(0,r.h)("button",{className:(0,o.cx)("meridian-tag-control",a),"data-testid":"meridian--private--tag-control",onClick:()=>{t({open:!0})}},(0,r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},(0,r.h)("path",{d:"M26.19 25l-4.12-4.12a7.29 7.29 0 001.44-4.35 7.11 7.11 0 00-7-7.2 7.11 7.11 0 00-7 7.2 7.11 7.11 0 007 7.2 6.83 6.83 0 004.16-1.42l4.1 4.1A1 1 0 0026.19 25zm-14.68-8.49a5.11 5.11 0 015-5.2 5.11 5.11 0 015 5.2 5.11 5.11 0 01-5 5.2 5.11 5.11 0 01-5-5.2z"}))):null,n?(0,r.h)("button",{className:(0,o.cx)("meridian-floor-control",n&&l?s:a),"data-testid":"meridian--private--floor-control",onClick:()=>{e({open:!0})}},(0,r.h)("svg",{viewBox:"0 0 36 36"},(0,r.h)("path",{d:"M28.4 14.09a1.84 1.84 0 0 0-.62-.39l-8.48-3.33a3.61 3.61 0 0 0-1.3-.22 3.56 3.56 0 0 0-1.3.22L8.22 13.7a1.83 1.83 0 0 0-.62.39 1.24 1.24 0 0 0 0 1.82 1.85 1.85 0 0 0 .62.39l8.48 3.34a3.92 3.92 0 0 0 2.59 0l8.48-3.34a1.86 1.86 0 0 0 .62-.39 1.24 1.24 0 0 0 0-1.82m-9.83 3.68a2 2 0 0 1-1.13 0l-7-2.77 7-2.77a2 2 0 0 1 1.13 0l7 2.77zm9.83 2.32a1.24 1.24 0 0 1 0 1.82 1.86 1.86 0 0 1-.62.39l-8.47 3.33a3.92 3.92 0 0 1-2.59 0L8.22 22.3a1.85 1.85 0 0 1-.62-.39 1.24 1.24 0 0 1 0-1.82 1.83 1.83 0 0 1 .62-.39L10 19l2.73 1.08-2.34.92 7 2.77a2 2 0 0 0 1.13 0l7-2.77-2.35-.92L26 19l1.79.7a1.84 1.84 0 0 1 .62.39"}))):null)},6670:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=n(7746),a=(0,o.css)(o.mixins.buttonReset,o.mixins.rounded,o.mixins.overflowEllipses,{label:"floor-control",background:"rgba(0, 0, 0, 0.4)",color:"white",textShadow:"0 0 2px black",position:"absolute",zIndex:1,bottom:15,left:"50%",transform:"translate(-50%, 0)",textAlign:"center",maxWidth:300,padding:"8px 16px",border:0,fontSize:16});t.default=({buildingName:e,floorName:t})=>(0,r.h)("div",{className:(0,o.cx)("meridian-floor-label",a),"data-testid":"meridian--private--floor-label"},e||i.uiText.unnamedBuilding," ",i.uiText.enDash," ",t)},4144:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(1324)),i=n(172),a=r(n(8828)),s=r(n(6933)),l=n(2785),c=r(n(7866)),u=n(7746);class f extends i.Component{constructor(){super(...arguments),this.state={searchFilter:""},this.searchInputRef=(0,i.createRef)()}componentDidMount(){this.searchInputRef.current&&this.searchInputRef.current.focus()}render(){const{currentFloorID:e,toggleFloorOverlay:t,selectFloorByID:n,floors:r,language:f}=this.props,y=c.default.lookup("search_floors",f),_=c.default.lookup("no_results_found",f),{searchFilter:b}=this.state,w=(0,u.createSearchMatcher)(b),k=r.filter((e=>e.published&&(w(e.name||"")||w(e.group_name||u.uiText.unnamedBuilding)))),x=(0,o.default)(k,"group_name"),O=Object.keys(x).sort();""===O[0]&&(O.push(O[0]),O.shift());for(const e of O)x[e].sort(((e,t)=>Math.sign(e.level-t.level))),this.props.sortDescending&&x[e].reverse();return(0,i.h)(a.default,{position:"right",onCloseClicked:()=>{t({open:!1})}},(0,i.h)(s.default,{placeholder:y,value:b,onChange:e=>{this.setState({searchFilter:e})}}),0===O.length?(0,i.h)("div",{className:m},_,"."):(0,i.h)("div",{className:p,"data-testid":"meridian--private--floors-list"},O.map((r=>(0,i.h)("div",{key:r},(0,i.h)("div",{className:h},r||u.uiText.unnamedBuilding),x[r].map((r=>(0,i.h)("button",{key:r.name,onClick:()=>{n(r.id),t({open:!1})},className:(0,l.cx)(d,r.id===e?g:void 0),"data-testid":r.id===e?"meridian--private--current-floor":"meridian--private--floor"},r.name,r.id===e?(0,i.h)("svg",{viewBox:"0 0 10 7",className:v},(0,i.h)("path",{d:"M3.9 7C3.7 7 3.4 6.9 3.2 6.7L0.3 3.8C-0.1 3.4 -0.1 2.8 0.3 2.4C0.7 2 1.3 2 1.7 2.4L3.9 4.6L8.2 0.3C8.6 -0.1 9.2 -0.1 9.6 0.3C10 0.7 10 1.3 9.6 1.7L4.6 6.7C4.4 6.9 4.2 7 3.9 7Z"})):null))))))))}}const h=(0,l.css)({label:"overlay-building-name",textTransform:"uppercase",fontWeight:"bold",top:0,position:"sticky",color:l.theme.brandBlue,background:l.theme.almostWhite,fontSize:l.theme.fontSizeSmaller,padding:10}),p=(0,l.css)({label:"floors-list",overflowY:"auto"}),d=(0,l.css)(l.mixins.buttonReset,l.mixins.focusRingMenuItem,l.mixins.buttonHoverActive,{label:"overlay-floor-button",padding:10,paddingLeft:20,display:"block",width:"100%",textAlign:"left"}),m=(0,l.css)({label:"overlay-floor-list-empty",padding:"60px 20px",textAlign:"center",fontSize:l.theme.fontSizeBigger,color:l.theme.textColorBluish}),g=(0,l.css)({label:"overlay-floor-button-curent-floor",color:l.theme.brandBrightBlue,fill:"currentcolor"}),v=(0,l.css)({label:"floor-checkmark",verticalAlign:"middle",marginLeft:"0.5em",width:"0.8em",height:"0.8em"});t.default=f},4145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172);t.default=()=>(0,r.h)("svg",{viewBox:"0 0 36 36"},(0,r.h)("path",{d:"M19.41 18l6.36-6.36a1 1 0 0 0-1.41-1.41L18 16.59l-6.36-6.36a1 1 0 0 0-1.41 1.41L16.59 18l-6.36 6.36a1 1 0 1 0 1.41 1.41L18 19.41l6.36 6.36a1 1 0 0 0 1.41-1.41z"}))},2930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=(0,o.keyframes)({from:{transform:"rotate(0turn)"},to:{transform:"rotate(1turn)"}}),a=(0,o.css)({label:"spinner",width:22,height:22,margin:"0 auto",border:"2px rgba(227, 227, 227, 0.9) solid",borderTop:"2px #2e7cbe solid",borderRadius:"50%",animation:`${i} 600ms infinite linear`});t.default=()=>(0,r.h)("div",{className:a})},9594:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=(0,o.css)({label:"label-list",fontSize:"var(--meridian-labelList-fontSize)",marginTop:8,marginLeft:3,textAlign:"var(--meridian-labelList-textAlign)",flex:"1 1 auto"}),a=(0,o.css)(o.mixins.maxRounded,{label:"label",display:"inline-block",padding:"3px 8px",marginBottom:8,marginRight:8,background:"rgba(0, 0, 0, 0.035)",border:"1px solid rgba(0, 0, 0, 0.05)",color:"#3b3b3b"});t.default=({align:e,labels:t,fontSize:n=o.theme.fontSize})=>0===t.length?null:(0,r.h)("div",{className:i,style:{"--meridian-labelList-fontSize":n,"--meridian-labelList-textAlign":e}},t.map(((e,t)=>(0,r.h)("div",{key:t,className:a},e))))},4905:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=n(2785),a=r(n(2930)),s=(0,i.css)({label:"loading",position:"absolute",zIndex:1,width:30,left:0,top:"45%",right:0,overflow:"hidden",margin:"0 auto",color:i.theme.textColor,textAlign:"center",pointerEvents:"none"});t.default=()=>(0,o.h)("div",{className:s},(0,o.h)(a.default,null))},529:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(9062);n(7662);const i=n(9529),a=n(172),s=r(n(78)),l=r(n(324)),c=r(n(8812)),u=r(n(3169)),f=r(n(6670)),h=r(n(4144)),p=r(n(4905)),d=r(n(6805)),m=r(n(7387)),g=n(2785),v=r(n(8901)),y=r(n(2150)),_=n(7746),b=r(n(1018)),w=r(n(5481)),k=r(n(181));class x extends a.Component{constructor(){super(...arguments),this.state={mapImageURL:void 0,isFloorOverlayOpen:!1,isAssetListOverlayOpen:!1,isMapMarkerOverlayOpen:!1,isErrorOverlayOpen:!1,isPanningOrZooming:!1,loadingSources:{},errors:[],mapTransform:"",mapZoomFactor:.5,floors:[],allPlacemarkData:[],svgURL:void 0,tagsConnection:void 0,tagsStatus:"Connecting",selectedItem:void 0,areTagsLoading:Boolean(this.props.showSearchControl&&this.props.loadTags),arePlacemarksLoading:Boolean(this.props.showSearchControl&&this.props.loadPlacemarks),allTagData:[]},this.isMounted=!1,this.isLoaded=!1,this.fetchAllTagsInitialized=!1,this.fetchAllPlacemarksInitialized=!1,this.mapRef=(0,a.createRef)(),this.mapContainerRef=(0,a.createRef)(),this.mapImageref=(0,a.createRef)(),this.debouncedResizeFn=(0,k.default)(this.handleResize.bind(this),250),this.onTagsInit=()=>{this.props.showSearchControl&&this.props.loadTags&&this.fetchAllTags()},this.onPlacemarksInit=()=>{this.props.showSearchControl&&this.props.loadPlacemarks&&this.fetchAllPlacemarks()},this.updateMap=e=>{const{update:t}=this.props;t(e)},this.toggleAssetListOverlay=({open:e})=>{this.isMounted&&this.setState({isAssetListOverlayOpen:e})},this.toggleFloorOverlay=({open:e})=>{this.isMounted&&this.setState({isFloorOverlayOpen:e})},this.toggleErrorOverlay=({open:e,message:t="Unknown"})=>{this.isMounted&&(e?this.setState((e=>({errors:[...e.errors,t],isErrorOverlayOpen:!0}))):this.setState({isErrorOverlayOpen:!1,errors:[]}))},this.toggleLoadingSpinner=({show:e,source:t="unknown"})=>{this.isMounted&&this.setState((n=>({loadingSources:Object.assign(Object.assign({},n.loadingSources),{[t]:e})})))},this.toggleDetailsOverlay=({open:e,selectedItem:t})=>{this.setState({isMapMarkerOverlayOpen:e,selectedItem:t})},this.selectFloorByID=e=>{if(this.updateMap({floorID:e,annotations:[],overlays:[]}),this.props.onFloorChange){const t=this.state.floors.find((t=>t.id===e));t&&(0,_.asyncClientCall)(this.props.onFloorChange,t)}},this.zoomToPoint=(e,t,n)=>{if(!this.mapSelection)throw new Error("mapSelection is not defined");if(!this.zoomD3)throw new Error("zoomD3 is not defined");const{width:r,height:o}=this.getMapRefSize(),a=i.zoomIdentity.translate(-n*e+r/2,-n*t+o/2).scale(n);this.mapSelection.transition().duration(250).call(this.zoomD3.transform,a)},this.zoomBy=e=>{if(!this.mapSelection)throw new Error("mapSelection is not defined");if(!this.zoomD3)throw new Error("zoomD3 is not defined");this.mapSelection.transition().duration(250).call(this.zoomD3.scaleBy,e)},this.zoomIn=()=>{this.zoomBy(1.5)},this.zoomOut=()=>{this.zoomBy(.5)},this.onClick=e=>{var t,n,r;const o=e.target instanceof Element&&((null===(n=null===(t=this.mapRef.current)||void 0===t?void 0:t.isEqualNode)||void 0===n?void 0:n.call(t,e.target))||(null===(r=this.mapImageref.current)||void 0===r?void 0:r.isEqualNode(e.target)));this.props.onMapClick&&o?(0,_.asyncClientCall)(this.props.onMapClick):o&&this.toggleDetailsOverlay({open:!1})},this.onTagClick=async e=>{let t=!0;const{onTagClick:n=(()=>{})}=this.props;try{const r={preventDefault:()=>{t=!1}};await n(e,r)}catch(e){(0,_.logError)(e)}t&&this.toggleDetailsOverlay({open:!0,selectedItem:e})},this.onPlacemarkClick=async e=>{let t=!0;const{onPlacemarkClick:n=(()=>{})}=this.props;try{const r={preventDefault:()=>{t=!1}};await n(e,r)}catch(e){(0,_.logError)(e)}t&&this.toggleDetailsOverlay({open:!0,selectedItem:e})}}componentDidMount(){this.validateFloorID(),this.isMounted=!0;const{api:e,locationID:t}=this.props;(0,_.isEnvOptions)(e.environment)?t?this.loadData():this.toggleErrorOverlay({open:!0,message:'createMap error: "options.locationID" is required'}):this.toggleErrorOverlay({open:!0,message:`API error: "${e.environment}" is not a valid environment`}),this.intervalAutoDestroy=setInterval((()=>{this.isMounted&&this.mapContainerRef.current&&!this.mapContainerRef.current.isConnected&&this.props.destroy()}),1e3),window.addEventListener("resize",this.debouncedResizeFn)}async loadData(){await this.initializeFloors()}componentDidUpdate(e){if(this.props.locationID!==e.locationID)return this.toggleAssetListOverlay({open:!1}),this.toggleErrorOverlay({open:!1}),this.toggleDetailsOverlay({open:!1}),this.toggleFloorOverlay({open:!1}),this.zoomToDefault(),this.freeMapImageURL(),this.setState({mapImageURL:void 0,allPlacemarkData:[]}),void this.loadData();this.props.loadTags&&this.props.showSearchControl&&!e.showSearchControl&&this.fetchAllTags({forceUpdate:!0}),e.floorID!==this.props.floorID?(this.zoomToDefault(),this.validateFloorID(),this.freeMapImageURL(),this.setState({mapImageURL:void 0}),this.fetchMapImageURL()):this.props.loadPlacemarks&&this.props.showSearchControl&&!e.showSearchControl&&this.fetchAllPlacemarks({forceUpdate:!0})}componentWillUnmount(){this.isMounted=!1,this.fetchAllTagsTimeout&&clearTimeout(this.fetchAllTagsTimeout),this.fetchAllPlacemarksTimeout&&clearTimeout(this.fetchAllPlacemarksTimeout),this.freeMapImageURL(),clearInterval(this.intervalAutoDestroy),window.removeEventListener("resize",this.debouncedResizeFn)}handleResize(){const e=this.mapContainerSize,t=this.getMapRefSize(),{width:n,height:r}=e||{},{width:o,height:i}=t;n===o&&r===i||(this.mapContainerSize=t,this.zoomToDefault())}freeMapImageURL(){this.state.mapImageURL&&URL.revokeObjectURL(this.state.mapImageURL)}async fetchMapImageURL(){const{api:e,locationID:t,floorID:n}=this.props,r=this.getMapData();if(!r)return;const o=await e.fetchSVG(r.svg_url);this.isMounted&&(n===this.props.floorID&&t===this.props.locationID?this.setState({mapImageURL:o}):URL.revokeObjectURL(o))}validateFloorID(){const{floorID:e}=this.props;e||this.toggleErrorOverlay({open:!0,message:'createMap error: "options.floorID" is required'})}fetchAllTags(e={forceUpdate:!1}){if(this.fetchAllTagsInitialized&&!e.forceUpdate)return;const t=async()=>{this.fetchAllTagsInitialized=!0;try{this.fetchAllTagsTimeout&&clearTimeout(this.fetchAllTagsTimeout);const{api:e,locationID:n}=this.props;this.setState({areTagsLoading:!0});let r=[];try{r=await e.fetchTagsByLocation(n)}catch(e){return void(0,_.logError)("Failed to load tags; use `loadTags: false` if this location does not have the tags paid feature")}if(!this.isMounted)return;if(n!==this.props.locationID||!this.props.loadTags)return;this.setState({allTagData:r}),this.fetchAllTagsTimeout=setTimeout(t,3e5)}finally{this.setState({areTagsLoading:!1})}};this.props.loadTags&&t()}showLoadingSpinner(){const{loadingSources:e}=this.state,t=Object.keys(e).some((t=>!0===e[t]));return this.props.onLoadingStateChange&&this.isLoaded!==t&&(this.isLoaded=t,(0,_.asyncClientCall)(this.props.onLoadingStateChange,t)),t}fetchAllPlacemarks(e={forceUpdate:!1}){if(this.fetchAllPlacemarksInitialized&&!e.forceUpdate)return;const t=async()=>{this.fetchAllPlacemarksInitialized=!0;try{this.fetchAllPlacemarksTimeout&&clearTimeout(this.fetchAllPlacemarksTimeout);const{locationID:e,api:n}=this.props;let r=[];this.setState({arePlacemarksLoading:!0});try{if(this.props.loadPlacemarks&&(r=await n.fetchPlacemarksByLocation(e)),!this.isMounted)return;this.setState({allPlacemarkData:r})}catch(e){return void(0,_.logError)("Failed to load placemark data")}this.fetchAllPlacemarksTimeout=setTimeout(t,6e5)}finally{this.setState({arePlacemarksLoading:!1})}};this.props.loadPlacemarks&&t()}async getFloors(){const{locationID:e,api:t}=this.props;let n;try{if(n=await t.fetchFloorsByLocation(e),!this.isMounted)return[]}catch(e){e.response&&e.response.data&&e.response.data.detail&&this.toggleErrorOverlay({open:!0,message:e.response.data.detail})}return n&&n.length||this.toggleErrorOverlay({open:!0,message:"Floor data could not be found."}),n}getMapData(){const{floorID:e}=this.props,{floors:t}=this.state;return t.find((t=>t.id===e))}async initializeFloors(){this.toggleLoadingSpinner({show:!0,source:"map"});const{onFloorsUpdate:e=(()=>{}),locationID:t}=this.props,n=await this.getFloors();this.isMounted&&t===this.props.locationID&&(n&&n.length>0&&this.setState({floors:n},(()=>{this.zoomD3||this.addZoomBehavior(),this.zoomToDefault(),(0,_.asyncClientCall)(e,n),this.fetchMapImageURL()})),this.toggleLoadingSpinner({show:!1,source:"map"}))}addZoomBehavior(){if(this.mapRef.current){const e=()=>{if(!this.mapRef.current)return;const{k:e,x:t,y:n}=(0,i.zoomTransform)(this.mapRef.current),r=`translate(${t}px, ${n}px) scale(${e})`;this.setState({mapTransform:r,mapZoomFactor:e,isPanningOrZooming:!0})},t=()=>{this.setState({isPanningOrZooming:!1})};this.zoomD3=(0,i.zoom)().filter((e=>!this.props.shouldMapPanZoom||this.props.shouldMapPanZoom(e))).duration(250).on("zoom",e).on("end.zoom",t),this.mapSelection=(0,o.select)(this.mapRef.current),this.mapSelection.call(this.zoomD3)}}resetExtents(){var e;null===(e=this.zoomD3)||void 0===e||e.scaleExtent([0,1/0]).translateExtent([[-1/0,-1/0],[1/0,1/0]])}setExtents(e,t){var n;const r=this.props.minZoomLevel,o=this.props.maxZoomLevel;if(this.mapRef.current){const{k:a}=(0,i.zoomTransform)(this.mapRef.current),s=this.getMapRefSize(),l=s.width/a/1.5,c=s.height/a/1.5,u=r&&"number"==typeof r?r:a,f=o&&"number"==typeof o?o:8;null===(n=this.zoomD3)||void 0===n||n.scaleExtent([u,f]).translateExtent([[-l,-c],[e+l,t+c]])}}zoomToDefault(){const e=this.getMapData(),t=this.getMapRefSize(),n=null==e?void 0:e.width,r=null==e?void 0:e.height;this.mapContainerSize=t,n&&r&&this.mapSelection&&this.zoomD3&&(this.resetExtents(),this.mapSelection.call(this.zoomD3.translateTo,n/2,r/2),this.mapSelection.call(this.zoomD3.scaleTo,Math.min(.7*t.width/n,.7*t.height/r)),this.setExtents(n,r))}getMapRefSize(){if(!this.mapRef.current)throw new Error("mapRef is not defined");return{width:this.mapRef.current.clientWidth,height:this.mapRef.current.clientHeight}}centerMap(){const e=this.getMapData(),t=null==e?void 0:e.width,n=null==e?void 0:e.height;t&&n&&this.mapSelection&&this.zoomD3&&this.mapSelection.call(this.zoomD3.translateTo,t/2,n/2)}shouldShowFloors(){const{showFloorsControl:e=!0}=this.props,{floors:t}=this.state;return e&&t.length>1}renderFloorLabel(){const e=this.getMapData();return e?(0,a.h)(f.default,{buildingName:e.group_name,floorName:e.name}):null}renderFloorOverlay(){const{floorID:e,api:t}=this.props,{isFloorOverlayOpen:n,floors:r}=this.state;return n?(0,a.h)(h.default,{currentFloorID:e,floors:r,sortDescending:Boolean(this.props.floorsControlSortDescending),toggleFloorOverlay:this.toggleFloorOverlay,selectFloorByID:this.selectFloorByID,language:t.language}):null}renderAssetListOverlay(){var e;const{floorID:t,loadTags:n,loadPlacemarks:r,tags:o,placemarks:i,api:s}=this.props,{isAssetListOverlayOpen:l,floors:c,allTagData:u,areTagsLoading:f,arePlacemarksLoading:h,allPlacemarkData:p}=this.state;return l&&Boolean(r||n)?(0,a.h)(y.default,{onTagClick:this.onTagClick,onPlacemarkClick:this.onPlacemarkClick,showControlTags:Boolean(null!==(e=null==o?void 0:o.showControlTags)&&void 0!==e&&e),floors:c,tagsLoading:f,placemarksLoading:h,tags:u,tagOptions:o,placemarkOptions:i,updateMap:this.updateMap,currentFloorID:t,toggleAssetListOverlay:this.toggleAssetListOverlay,showTags:Boolean(n),showPlacemarks:Boolean(r),placemarks:p,language:s.language}):null}renderDetailsOverlay(){const{isMapMarkerOverlayOpen:e,selectedItem:t}=this.state;return e&&t?(0,a.h)(l.default,{toggleDetailsOverlay:this.toggleDetailsOverlay,kind:"mac"in t?"tag":"placemark",item:t}):null}renderLoadingSpinner(){return this.showLoadingSpinner()?(0,a.h)(p.default,null):null}renderErrorOverlay(){return this.state.isErrorOverlayOpen?(0,a.h)(c.default,{toggleErrorOverlay:this.toggleErrorOverlay,messages:this.state.errors}):null}render(){const e=this.getMapData(),{mapImageURL:t,selectedItem:n,mapTransform:r,mapZoomFactor:o,isPanningOrZooming:i,errors:l}=this.state,{locationID:c,floorID:f,api:h,tags:p,placemarks:y,overlays:_=[],annotations:k=[],width:x="",height:C="",onTagsUpdate:A,onPlacemarksUpdate:E,showSearchControl:T,loadPlacemarks:P,loadTags:D}=this.props;return(0,a.h)("div",{className:(0,g.cx)("meridian-map-container",O),style:{width:x,height:C},"data-testid":"meridian--private--map-container",ref:e=>{this.mapContainerRef.current=e}},(0,a.h)(b.default,null),(0,a.h)(w.default,{onZoomIn:this.zoomIn,onZoomOut:this.zoomOut}),this.renderErrorOverlay(),this.renderDetailsOverlay(),this.renderFloorOverlay(),this.renderAssetListOverlay(),this.renderLoadingSpinner(),(0,a.h)(u.default,{showFloors:this.shouldShowFloors(),showSearch:Boolean(T&&(P||D)),toggleFloorOverlay:this.toggleFloorOverlay,toggleAssetListOverlay:this.toggleAssetListOverlay}),this.renderFloorLabel(),(0,a.h)("div",{ref:e=>{this.mapRef.current=e},className:(0,g.cx)("meridian-map-background",S),onClick:this.onClick,style:{width:x,height:C}},(0,a.h)("div",{style:{position:"relative",width:0,height:0,transform:r,transformOrigin:"0 0 0"}},(0,a.h)("img",{src:t,ref:this.mapImageref}),0===l.length&&e?(0,a.h)(a.Fragment,null,(0,a.h)(d.default,{mapZoomFactor:o,overlays:_}),this.props.loadPlacemarks?(0,a.h)(m.default,{selectedItem:n,isPanningOrZooming:i,mapZoomFactor:o,locationID:c,floorID:f,api:h,placemarkOptions:y,onPlacemarkClick:this.onPlacemarkClick,onUpdate:E,toggleLoadingSpinner:this.toggleLoadingSpinner,onInit:()=>{this.onPlacemarksInit()}}):null,this.props.loadTags?(0,a.h)(v.default,{selectedItem:n,isPanningOrZooming:i,mapZoomFactor:o,locationID:c,floorID:f,api:h,tagOptions:p,onTagClick:this.onTagClick,onUpdate:A,toggleLoadingSpinner:this.toggleLoadingSpinner,onInit:()=>{this.onTagsInit()}}):null,(0,a.h)(s.default,{mapZoomFactor:o,annotations:k})):null)))}}x.defaultProps={loadTags:!0,loadPlacemarks:!0,showSearchControl:!0,showFloorsControl:!0,floorsControlSortDescending:!1,shouldMapPanZoom:()=>!0,width:"100%",height:"400px",placemarks:{},tags:{},overlays:[],annotations:[],onTagsUpdate:()=>{},onFloorChange:()=>{},onLoadingStateChange:()=>{},onFloorsUpdate:()=>{}};const O=(0,g.css)({label:"map-container",display:"block",position:"relative",borderRadius:"inherit",background:"#fafafa",color:"#000",fontFamily:"inherit",textAlign:"left"}),S=(0,g.css)({label:"map-outer",borderRadius:"inherit",display:"block",overflow:"hidden"});t.default=x},8828:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(4145)),a=n(2785),s=(0,a.css)(a.mixins.shadow,a.mixins.rounded,{label:"details-overlay",overflow:"hidden",display:"flex",flexDirection:"column",background:a.theme.white,color:a.theme.textColor,fill:"#000",position:"absolute",margin:0,left:15,top:15,right:15,maxHeight:600,zIndex:2,maxWidth:400}),l=(0,a.css)(s,{marginRight:"auto"}),c=(0,a.css)(s,{marginLeft:"auto"}),u=(0,a.css)(a.mixins.buttonReset,a.mixins.buttonHoverActive,a.mixins.focusRing,{label:"details-overlay-close",cursor:"pointer",position:"absolute",zIndex:2,top:10,right:10,padding:4,width:32,height:32,fontSize:11,textAlign:"center",background:a.theme.white,color:a.theme.textColor,borderRadius:"100%",fontWeight:"bold",boxShadow:"0 0 2px rgba(0, 0, 0, 0.4)"});t.default=({position:e,onCloseClicked:t,children:n})=>(0,o.h)("div",{className:(0,a.cx)("meridian-details-overlay","left"===e?l:c),"data-testid":"meridian--private--map-overlay"},(0,o.h)("button",{className:u,onClick:t,"data-testid":"meridian--private--close-overlay"},(0,o.h)(i.default,null)),n)},7096:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!1,id:n,className:a,style:s={},cx:l,cy:c,r:u,pathLength:f,fill:h="black",fillOpacity:p="1",stroke:d="none",strokeWidth:m=4,strokeLineJoin:g,strokeLineCap:v,strokeDasharray:y,strokeDashoffset:_,strokeOpacity:b,animate:w={},animateMotion:k={},mpath:x,data:O={},onClick:S,mapZoomFactor:C}=e,A=r(e,["defs","id","className","style","cx","cy","r","pathLength","fill","fillOpacity","stroke","strokeWidth","strokeLineJoin","strokeLineCap","strokeDasharray","strokeDashoffset","strokeOpacity","animate","animateMotion","mpath","data","onClick","mapZoomFactor"]);const E=1/C;let T=null,P=null;const D=Object.assign({transform:`scale(${E})`},s);Object.keys(k).length&&(P=x?(0,o.h)("animateMotion",Object.assign({},k),(0,o.h)("mpath",{xlinkHref:`#${x}`})):(0,o.h)("animateMotion",Object.assign({},k))),Object.keys(w).length&&(T=(0,o.h)("animate",Object.assign({},w)));const j=(0,o.h)("circle",Object.assign({id:n,className:a,style:D,cx:l,cy:c,r:u,"path-length":f,fill:h,"fill-opacity":p,stroke:d,"stroke-width":m/C,"stroke-linejoin":g,"stroke-linecap":v,"stroke-dasharray":y,"stroke-dashoffset":_,"stroke-opacity":b,onClick:S?()=>(0,i.asyncClientCall)(S,O):void 0,cursor:S?"pointer":void 0,"pointer-events":S?"all":void 0},A),T,P);return t?(0,o.h)("defs",null,j):j};a.displayName="OverlayCircle",t.default=a},2865:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!1,id:n,className:a,style:s={},width:l,height:c,href:u,x:f,y:h,animate:p={},animateMotion:d={},mpath:m,mapZoomFactor:g,onClick:v,data:y={}}=e,_=r(e,["defs","id","className","style","width","height","href","x","y","animate","animateMotion","mpath","mapZoomFactor","onClick","data"]);const b=1/g;let w=null,k=null;const x=Object.assign({transform:`translate(-${l/g/2}px, -${c/g/2}px) scale(${b})`},s);Object.keys(d).length&&(k=m?(0,o.h)("animateMotion",Object.assign({},d),(0,o.h)("mpath",{xlinkHref:`#${m}`})):(0,o.h)("animateMotion",Object.assign({},d))),Object.keys(p).length&&(w=(0,o.h)("animate",Object.assign({},p)));const O=(0,o.h)("image",Object.assign({id:n,className:a,style:x,width:l,height:c,href:u,x:f,y:h,onClick:v?()=>(0,i.asyncClientCall)(v,y):void 0,cursor:v?"pointer":void 0,"pointer-events":v?"all":void 0},_),w,k);return t?(0,o.h)("defs",null,O):O};a.displayName="OverlayImage",t.default=a},6805:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(7096)),a=r(n(2865)),s=r(n(2578)),l=r(n(3861)),c=r(n(3496)),u=r(n(4012)),f=r(n(9159)),h=(0,n(2785).css)({label:"overlay-layer",position:"absolute",overflow:"visible",top:0,left:0,right:0,bottom:0});t.default=({mapZoomFactor:e,overlays:t})=>(0,o.h)("svg",{className:h,"data-testid":"meridian--private--overlay-layer"},t.map(((t,n)=>{switch(t.type){case"polygon":return(0,o.h)(c.default,Object.assign({key:n},t,{mapZoomFactor:e}));case"polyline":return(0,o.h)(u.default,Object.assign({key:n},t,{mapZoomFactor:e}));case"path":return(0,o.h)(l.default,Object.assign({key:n},t,{mapZoomFactor:e}));case"circle":return(0,o.h)(i.default,Object.assign({key:n},t,{mapZoomFactor:e}));case"image":return(0,o.h)(a.default,Object.assign({key:n},t,{mapZoomFactor:e}));case"marker":return(0,o.h)(s.default,Object.assign({key:n},t,{mapZoomFactor:e}));case"use":return(0,o.h)(f.default,Object.assign({key:n},t,{mapZoomFactor:e}));default:return null}})))},2578:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!0,id:n,className:i,style:a,viewBox:s,refX:l,refY:c,markerWidth:u,markerHeight:f,orient:h,fill:p="none",fillOpacity:d,stroke:m="hsl(207, 65%, 46%)",strokeWidth:g,strokeLineJoin:v,strokeLineCap:y,strokeDasharray:_,strokeDashoffset:b,strokeOpacity:w,shapeElementType:k,shapeElementAttributes:x,mapZoomFactor:O}=e,S=r(e,["defs","id","className","style","viewBox","refX","refY","markerWidth","markerHeight","orient","fill","fillOpacity","stroke","strokeWidth","strokeLineJoin","strokeLineCap","strokeDasharray","strokeDashoffset","strokeOpacity","shapeElementType","shapeElementAttributes","mapZoomFactor"]);let C=null;if(Object.keys(x).length&&k)switch(k){case"path":C=(0,o.h)("path",Object.assign({},x));break;case"polyline":C=(0,o.h)("polyline",Object.assign({},x));break;case"polygon":C=(0,o.h)("polygon",Object.assign({},x));break;case"circle":C=(0,o.h)("circle",Object.assign({},x));break;case"image":C=(0,o.h)("image",Object.assign({},x))}const A=(0,o.h)("marker",Object.assign({id:n,className:i,style:a,viewBox:s,refX:l,refY:c,markerWidth:u,markerHeight:f,orient:h,fill:p,"fill-opacity":d,stroke:m,"stroke-width":g,"stroke-linejoin":v,"stroke-linecap":y,"stroke-dasharray":_,"stroke-dashoffset":b,"stroke-opacity":w},S),C);return t?(0,o.h)("defs",null,A):A};i.displayName="OverlayMarker",t.default=i},3861:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!1,id:n,className:i,style:a={},shape:s,fill:l="none",stroke:c="hsl(207, 65%, 46%)",strokeWidth:u=2,strokeLineJoin:f="miter",strokeLineCap:h="butt",strokeDasharray:p,strokeDashoffset:d,strokeOpacity:m,markerStart:g,markerMid:v,markerEnd:y,animate:_={},animateMotion:b={},mpath:w,mapZoomFactor:k}=e,x=r(e,["defs","id","className","style","shape","fill","stroke","strokeWidth","strokeLineJoin","strokeLineCap","strokeDasharray","strokeDashoffset","strokeOpacity","markerStart","markerMid","markerEnd","animate","animateMotion","mpath","mapZoomFactor"]);let O=null,S=null;Object.keys(b).length&&(S=w?(0,o.h)("animateMotion",Object.assign({},b),(0,o.h)("mpath",{xlinkHref:`#${w}`})):(0,o.h)("animateMotion",Object.assign({},b))),Object.keys(_).length&&(O=(0,o.h)("animate",Object.assign({},_)));const C=(0,o.h)("path",Object.assign({id:n,className:i,style:a,d:s,fill:l,stroke:c,"stroke-width":u/k,"stroke-linejoin":f,"stroke-linecap":h,"stroke-dasharray":p,"stroke-dashoffset":d,"stroke-opacity":m,"marker-start":g,"marker-mid":v,"marker-end":y},x),O,S);return t?(0,o.h)("defs",null,C):C};i.displayName="OverlayPath",t.default=i},3496:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!1,id:n,className:a,style:s,points:l,fill:c="hsla(207, 65%, 46%, 0.5)",fillOpacity:u,stroke:f="hsl(207, 65%, 46%)",strokeWidth:h=2,strokeLineJoin:p="miter",strokeDasharray:d,strokeDashoffset:m,strokeOpacity:g,markerStart:v,markerMid:y,markerEnd:_,mapZoomFactor:b,animate:w={},data:k={},onClick:x}=e,O=r(e,["defs","id","className","style","points","fill","fillOpacity","stroke","strokeWidth","strokeLineJoin","strokeDasharray","strokeDashoffset","strokeOpacity","markerStart","markerMid","markerEnd","mapZoomFactor","animate","data","onClick"]);let S=null;Object.keys(w).length&&(S=(0,o.h)("animate",Object.assign({},w)));const C=(0,o.h)("polygon",Object.assign({id:n,className:a,style:s,points:l.join(" "),fill:c,"fill-opacity":u,stroke:f,"stroke-width":h/b,"stroke-linejoin":p,"stroke-dasharray":d,"stroke-dashoffset":m,"stroke-opacity":g,"marker-start":v,"marker-mid":y,"marker-end":_,onClick:x?()=>(0,i.asyncClientCall)(x,k):void 0,cursor:x?"pointer":void 0,"pointer-events":x?"all":void 0},O),S);return t?(0,o.h)("defs",null,C):C};a.displayName="OverlayPolygon",t.default=a},4012:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!1,id:n,className:i,style:a,points:s,fill:l="none",fillOpacity:c,stroke:u="hsl(207, 65%, 46%)",strokeWidth:f=2,strokeLineJoin:h="miter",strokeLineCap:p="butt",strokeDasharray:d,strokeDashoffset:m,strokeOpacity:g,markerStart:v,markerMid:y,markerEnd:_,animate:b={},mapZoomFactor:w}=e,k=r(e,["defs","id","className","style","points","fill","fillOpacity","stroke","strokeWidth","strokeLineJoin","strokeLineCap","strokeDasharray","strokeDashoffset","strokeOpacity","markerStart","markerMid","markerEnd","animate","mapZoomFactor"]);let x=null;Object.keys(b).length&&(x=(0,o.h)("animate",Object.assign({},b)));const O=(0,o.h)("polyline",Object.assign({id:n,className:i,style:a,points:s.join(" "),fill:l,"fill-opacity":c,stroke:u,"stroke-width":f/w,"stroke-linejoin":h,"stroke-linecap":p,"stroke-dasharray":d,"stroke-dashoffset":m,"stroke-opacity":g,"marker-start":v,"marker-mid":y,"marker-end":_},k),x);return t?(0,o.h)("defs",null,O):O};i.displayName="OverlayPolyline",t.default=i},6933:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785);class i extends r.Component{constructor(){super(...arguments),this.input=null}componentDidMount(){this.input&&this.input.focus()}render(){const{value:e,onChange:t,placeholder:n}=this.props;return(0,r.h)("div",{className:l},(0,r.h)("svg",{viewBox:"0 0 15 15",className:s},(0,r.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2454 12.5741L9.55123 8.73956C10.2134 7.80246 10.5682 6.66953 10.5632 5.50756C10.5506 2.47441 8.18614 0.0175744 5.26286 5.57178e-05C3.8639 -0.00651157 2.52051 0.567712 1.53197 1.59481C0.543427 2.6219 -0.0081584 4.01655 9.12228e-05 5.46806C0.0127262 8.50148 2.37737 10.9585 5.30093 10.9761C6.42539 10.9811 7.52128 10.6088 8.42505 9.91456L8.4289 9.91156L12.1197 13.7431C12.3193 13.9603 12.6166 14.0482 12.8966 13.9728C13.1765 13.8973 13.395 13.6704 13.4675 13.3799C13.5399 13.0894 13.455 12.7809 13.2454 12.5741ZM5.29738 9.87819C2.95866 9.86423 1.06697 7.8988 1.05671 5.47219C1.0504 4.31114 1.4917 3.19564 2.28239 2.37403C3.07307 1.55242 4.14751 1.09287 5.26653 1.09769C7.60525 1.11165 9.49694 3.07709 9.5072 5.50369C9.51352 6.66475 9.07221 7.78024 8.28152 8.60186C7.49084 9.42347 6.4164 9.88302 5.29738 9.87819Z",transform:"translate(0.637695)"})),(0,r.h)("input",{"data-testid":"meridian--private--overlay-search",value:e,type:"text",placeholder:n,className:a,onInput:e=>{e.target instanceof HTMLInputElement&&t(e.target.value)},ref:e=>{this.input=e}}))}}const a=(0,o.css)(o.mixins.buttonReset,o.mixins.rounded,o.mixins.focusRing,{label:"overlay-search-input",flex:"1 1 auto",marginRight:42,fontSize:16,padding:"4px 8px",paddingLeft:30,background:o.theme.borderColor,color:o.theme.black,border:0,height:24,"&::placeholder":{color:o.theme.textColorBluishLightGrey}}),s=(0,o.css)({label:"overlay-search-icon",position:"absolute",zIndex:1,fill:o.theme.textColorBluish,width:16,height:16,top:18,left:18}),l=(0,o.css)({label:"overlay-search-bar",position:"relative",zIndex:1,flex:"0 0 auto",display:"flex",flexDirection:"column",padding:10,backgroundColor:"rgb(105, 146, 176)"});t.default=i},9159:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!1,id:n,className:i,style:a={},width:s,height:l,href:c,x:u,y:f,fill:h="none",stroke:p="hsl(207, 65%, 46%)",strokeWidth:d=2,strokeLineJoin:m="miter",strokeLineCap:g="butt",strokeDasharray:v,strokeDashoffset:y,strokeOpacity:_,animate:b={},animateMotion:w={},mpath:k,mapZoomFactor:x}=e,O=r(e,["defs","id","className","style","width","height","href","x","y","fill","stroke","strokeWidth","strokeLineJoin","strokeLineCap","strokeDasharray","strokeDashoffset","strokeOpacity","animate","animateMotion","mpath","mapZoomFactor"]);const S=1/x;let C=null,A=null;const E=Object.assign({transform:`translate(-${s/x/2}px, -${l/x/2}px) scale(${S})`},a);Object.keys(w).length&&(A=k?(0,o.h)("animateMotion",Object.assign({},w),(0,o.h)("mpath",{xlinkHref:`#${k}`})):(0,o.h)("animateMotion",Object.assign({},w))),Object.keys(b).length&&(C=(0,o.h)("animate",Object.assign({},b)));const T=(0,o.h)("use",Object.assign({id:n,className:i,style:E,width:s,height:l,href:c,x:u,y:f,fill:h,stroke:p,"stroke-width":d/x,"stroke-linejoin":m,"stroke-linecap":g,"stroke-dasharray":v,"stroke-dashoffset":y,"stroke-opacity":_},O),C,A);return t?(0,o.h)("defs",null,T):T};i.displayName="OverlayUse",t.default=i},2858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=n(7746),a=n(4221),s=(0,o.css)(o.mixins.textStrokeWhite,{label:"placemark-label",marginLeft:"50%",position:"absolute",minWidth:55,maxWidth:120,fontSize:14,textAlign:"center",paddingTop:4,color:"#222",userSelect:"none",transform:"translate(-50%, 0)",fontWeight:"bold",visibility:"hidden",pointerEvents:"none","[data-meridian-placemark-label-mode='always'] > &":{visibility:"visible"},"[data-meridian-placemark-label-mode='never'] > &":{visibility:"hidden"},"[data-meridian-placemark-label-mode='hover']:hover > &":{visibility:"visible",background:"#333",color:"#eee",textShadow:"none",borderRadius:4,padding:4,bottom:30,maxWidth:240,width:"max-content",boxShadow:"0 0 1px 1px white"},"[data-meridian-placemark-label-mode='zoom'] > &[data-meridian-placemark-label-zoom-visible='false']":{visibility:"hidden"},"[data-meridian-placemark-label-mode='zoom'] > &[data-meridian-placemark-label-zoom-visible='true']":{visibility:"visible"}}),l=(0,o.css)({label:"placemark-labelOnly",textTransform:"uppercase",color:"#666",fontSize:16}),c=(0,o.css)({label:"placemark",position:"absolute","&[data-meridian-placemark-label-mode='hover']:hover":{zIndex:1}}),u=(0,o.css)(o.mixins.buttonReset,o.mixins.pointer,o.mixins.focusNone,{label:"placemark-icon","--meridian-placemark-backgroundColor":o.theme.brandBlue,transition:"width 80ms ease, height 80ms ease",display:"block",width:24,height:24,borderRadius:"100%",backgroundColor:"var(--meridian-placemark-backgroundColor)",backgroundImage:"var(--meridian-placemark-iconURL)",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",border:"2px solid transparent",overflow:"hidden",zIndex:1}),f=(0,o.css)(u,{zIndex:3,width:30,height:30,boxShadow:"0 0 4px black"});t.default=({isSelected:e,data:t,mapZoomFactor:n,onClick:h=(()=>{}),disabled:p=!1,labelMode:d,labelZoomLevel:m=.2})=>{const g=`meridian-placemark-type-${t.type}`,v=!t.type||0===t.type.indexOf("label_"),y=1/n,_=`#${t.color}`,b=(0,a.placemarkIconURL)(t.type),w=(t.id||"").split("_").pop(),k=e?(0,o.cx)("meridian-placemark-icon-selected","meridian-placemark-icon",g,f):(0,o.cx)("meridian-placemark-icon",g,u),x={left:t.x,top:t.y,transform:`translate(-50%, -50%) scale(${y})`};return v?(0,r.h)("div",{className:(0,o.cx)("meridian-placemark",c),"data-meridian-placemark-label-mode":"zoom",style:x},(0,r.h)("div",{className:(0,o.cx)(s,l,"meridian-label","meridian-label-only"),"data-meridian-placemark-id":w,"data-meridian-placemark-label-zoom-visible":String(n>=m)},t.name)):(0,r.h)("div",{"data-meridian-placemark-label-mode":d,className:(0,o.cx)("meridian-placemark",c),style:x},(0,r.h)("button",{disabled:p,className:(0,o.cx)((0,i.getPlacemarkCategories)(t).map((e=>`meridian-placemark-category-${e=e.replace(/ /g,"-").replace(/[^a-z0-9_-]/i,"").toLowerCase()}`)),k),"data-meridian-placemark-id":w,style:{"--meridian-placemark-iconURL":`url('${b}')`,"--meridian-placemark-borderColor":_,"--meridian-placemark-backgroundColor":_},onClick:e=>{e.target instanceof HTMLElement&&e.target.focus(),h(t)},onMouseDown:e=>{e.stopPropagation()}}),(0,r.h)("div",{className:(0,o.cx)("meridian-label",s),"data-meridian-placemark-label-zoom-visible":String(n>=m)},t.name))}},7387:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(2858)),a=n(7746);class s extends o.Component{constructor(){super(...arguments),this.state={fetchedPlacemarks:[]},this.isMounted=!1}componentDidMount(){this.isMounted=!0,this.fetchPlacemarks()}shouldComponentUpdate(e){return!(this.props.isPanningOrZooming&&e.mapZoomFactor===this.props.mapZoomFactor)}async componentDidUpdate(e,t){const{placemarkOptions:n,onUpdate:r}=this.props;if(e.floorID!==this.props.floorID&&await this.fetchPlacemarks(),r&&(t.fetchedPlacemarks!==this.state.fetchedPlacemarks||n!==e.placemarkOptions)){const e=this.state.fetchedPlacemarks;(0,a.asyncClientCall)(r,{allPlacemarks:e,filteredPlacemarks:this.getFilteredPlacemarks(e)})}}componentWillUnmount(){this.isMounted=!1}async fetchPlacemarks(){if(!this.isMounted)return;const{locationID:e,floorID:t,api:n,toggleLoadingSpinner:r,onInit:o}=this.props;r({show:!0,source:"placemarks"});const i=await n.fetchPlacemarksByFloor(e,t);this.setState({fetchedPlacemarks:i},(()=>{r({show:!1,source:"placemarks"})})),o()}getFilteredPlacemarks(e){var t;const{placemarkOptions:n,floorID:r}=this.props,o=null!==(t=null==n?void 0:n.filter)&&void 0!==t?t:()=>!0;return e.filter((e=>"exclusion_area"!==e.type&&e.map===r&&(!0===(null==n?void 0:n.showHiddenPlacemarks)||!e.hide_on_map))).filter(o)}render(){const e=this.getFilteredPlacemarks(this.state.fetchedPlacemarks);return(0,o.h)("div",{"data-testid":"meridian--private--placemark-layer"},e.map((e=>{var t,n,r,a;return(0,o.h)(i.default,{key:e.id,isSelected:!!this.props.selectedItem&&this.props.selectedItem.id===e.id,mapZoomFactor:this.props.mapZoomFactor,data:e,onClick:this.props.onPlacemarkClick,disabled:null===(t=this.props.placemarkOptions)||void 0===t?void 0:t.disabled,labelMode:null!==(r=null===(n=this.props.placemarkOptions)||void 0===n?void 0:n.labelMode)&&void 0!==r?r:"zoom",labelZoomLevel:null===(a=this.props.placemarkOptions)||void 0===a?void 0:a.labelZoomLevel})})))}}t.default=s},3996:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(192)),a=n(2785),s=n(7746),l=(0,a.css)(a.mixins.shadow,a.mixins.buttonReset,a.mixins.pointer,a.mixins.focusNone,{label:"tag",width:48,height:48,borderRadius:"100%",position:"absolute",backgroundColor:"white",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",border:"2px solid white",overflow:"hidden",transition:"\n width 80ms ease,\n height 80ms ease,\n top 500ms ease,\n left 500ms ease\n ",zIndex:2}),c=(0,a.css)(l,{width:60,height:60,zIndex:3,boxShadow:"0 0 0 2px white, 0 0 4px black"});t.default=({isSelected:e,data:t,mapZoomFactor:n,onClick:r=(()=>{}),disabled:u=!1})=>{const f=1/n/(n<.2?1.4:1),h=t.image_url||i.default;return(0,o.h)("button",{"data-meridian-tag-id":t.id,disabled:u,className:(0,a.cx)("meridian-tag",l,(0,s.getTagLabels)(t).map((e=>`meridian-tag-label-${e=e.replace(/ /g,"-").replace(/[^a-z0-9_-]/i,"")}`)),e&&["meridian-tag-selected",c],(0,a.css)({backgroundImage:`url('${h}')`})),style:{left:t.x,top:t.y,transform:`translate(-50%, -50%) scale(${f})`},onClick:e=>{e.target instanceof HTMLElement&&e.target.focus(),r(t)},onMouseDown:e=>{e.stopPropagation()}})}},8901:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(5858)),i=n(172),a=r(n(3996)),s=n(7746);class l extends i.Component{constructor(){var e;super(...arguments),this.state={tagsByMAC:{},connectionsByFloorID:{}},this.tagUpdates={},this.isMounted=!1,this.commitTagUpdates=(0,o.default)((()=>{this.isMounted&&this.setState((e=>({tagsByMAC:Object.assign(Object.assign({},e.tagsByMAC),this.tagUpdates)})),(()=>{this.tagUpdates={},this.onUpdate()}))}),(null===(e=this.props.tagOptions)||void 0===e?void 0:e.updateInterval)||5e3),this.onUpdate=()=>{const{tagsByMAC:e}=this.state,{onUpdate:t,tagOptions:n={}}=this.props,{filter:r=(()=>!0)}=n,o=this.filterControlTags(Object.values(e)),i=o.filter(r);t&&t({allTags:o,filteredTags:i})}}componentDidMount(){this.isMounted=!0;const{floorID:e}=this.props;e&&this.connect(e)}shouldComponentUpdate(e){return!(this.props.isPanningOrZooming&&e.mapZoomFactor===this.props.mapZoomFactor)}componentDidUpdate(e){e.floorID!==this.props.floorID&&(this.disconnect(e.floorID),this.connect(this.props.floorID))}componentWillUnmount(){this.isMounted=!1,this.disconnect(this.props.floorID)}connect(e){const{locationID:t,api:n,toggleLoadingSpinner:r,onInit:o}=this.props;r({show:!0,source:"tags"});const i=n.openStream({locationID:t,floorID:e,onInitialTags:t=>{e===this.props.floorID&&this.isMounted&&(this.setState({tagsByMAC:(0,s.keyBy)(t,(e=>e.mac))},(()=>{this.onUpdate(),this.props.toggleLoadingSpinner({show:!1,source:"tags"})})),o())},onTagUpdate:t=>{e===this.props.floorID&&this.isMounted&&(e!==t.map_id?this.setState((e=>({tagsByMAC:(0,s.objectWithoutKey)(e.tagsByMAC,t.mac)})),(()=>{this.onUpdate()})):(this.tagUpdates=Object.assign(Object.assign({},this.tagUpdates),{[t.mac]:t}),this.props.isPanningOrZooming||this.commitTagUpdates()))},onException:()=>{this.props.toggleLoadingSpinner({show:!1,source:"tags"})}});this.isMounted&&this.setState((t=>({connectionsByFloorID:Object.assign(Object.assign({},t.connectionsByFloorID),{[e]:i})})),(()=>{this.onUpdate()}))}disconnect(e){const t=this.state.connectionsByFloorID[e];t&&(this.props.toggleLoadingSpinner({show:!1,source:"tags"}),t.close()),this.tagUpdates={},this.isMounted&&this.setState((t=>({tagsByMAC:{},connectionsByFloorID:(0,s.objectWithoutKey)(t.connectionsByFloorID,e)})),(()=>{this.onUpdate()}))}filterControlTags(e){const{tagOptions:t}=this.props;return e.filter((e=>!0===(null==t?void 0:t.showControlTags)||!e.is_control_tag))}render(){const{selectedItem:e,tagOptions:t={},onTagClick:n,mapZoomFactor:r}=this.props,{tagsByMAC:o}=this.state,{filter:s=(()=>!0)}=t,l=Object.values(o);return(0,i.h)("div",{"data-testid":"meridian--private--tag-layer"},this.filterControlTags(l).filter(s).map((o=>(0,i.h)(a.default,{key:o.mac,isSelected:!!e&&e.mac===o.mac,mapZoomFactor:r,data:o,onClick:n,disabled:t.disabled}))))}}t.default=l},7866:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={en:{tags:"Tags",placemarks:"Placemarks",floors:"Floors",search:"Search",search_tags:"Search Tags",search_placemarks:"Search Placemarks",search_floors:"Search Floors",no_results_found:"No results found",close:"Close"},ar:{tags:"العلامات",placemarks:" العلامات الموضعية",floors:" الطوابق",search:" بحث",search_tags:" بحث عن علامات",search_placemarks:" بحث عن علامات موضعية",search_floors:" بحث عن طوابق",no_results_found:" لم يتم العثور على نتائج",close:"إغلاق"},ca:{tags:"Etiquetes",placemarks:"Marques de posició",floors:"Pisos",search:"Cerca",search_tags:"Cerca etiquetes",search_placemarks:"Cerca marcadors de posició",search_floors:"Cerca pisos",no_results_found:"Sense resultats",close:"Tanca"},es:{tags:"Etiquetas",placemarks:"Marcas de posición",floors:"Pisos",search:"Buscar",search_tags:"Buscar etiquetas",search_placemarks:"Buscar marcas de posición",search_floors:"Buscar pisos",no_results_found:"No se han encontrado resultados",close:"Cerrar"},cs:{tags:"Tagy",placemarks:"Značky míst",floors:"Patra",search:"Hledat",search_tags:"Hledat tagy",search_placemarks:"Hledat značky míst",search_floors:"Hledat patra",no_results_found:"Nebyly nalezeny žádné výsledky",close:"Zavřít"},de:{tags:"Stichworte",placemarks:"Ortsmarken",floors:"Etagen",search:"Suche",search_tags:"Such-Tags",search_placemarks:"In den Ortsmarken (Räumen, Sälen) suchen",search_floors:"In den Stockwerken suchen",no_results_found:"Keine Ergebnisse gefunden",close:"Schließen"},fr:{tags:"Mots clés",placemarks:"Repères",floors:"Étages",search:"Rechercher",search_tags:"Rechercher des mots clés",search_placemarks:"Rechercher des repères",search_floors:"Rechercher des étages",no_results_found:"Aucun résultat trouvé",close:"Fermer"},it:{tags:"Tag",placemarks:"Segnaposto",floors:"Piani",search:"Cerca",search_tags:"Cerca tag",search_placemarks:"Cerca segnaposto",search_floors:"Cerca piani",no_results_found:"Nessun risultato trovato",close:"Chiudi"},iw:{tags:"תגים",placemarks:"סימני מקום",floors:"קומות",search:"חפש",search_tags:"חפש תגיות",search_placemarks:"חפש סימני מקום",search_floors:"חפש קומות",no_results_found:"לא נמצאו תוצאות",close:"סגור"},ja:{tags:"タグ",placemarks:"目印",floors:"フロア",search:"探す",search_tags:"検索タグ",search_placemarks:"目印を検索する",search_floors:"フロアを検索する",no_results_found:"結果が見つからない",close:"近い"},ko:{tags:"태그",placemarks:"장소표시<",floors:"바닥",search:"검색",search_tags:"태그검색<",search_placemarks:"장소표시 검색<",search_floors:"층수검색<",no_results_found:"검색결과가 없습니다<",close:"닫기"},nl:{tags:"Tags",placemarks:"Plaatsaanduidingen",floors:"Verdiepingen",search:"Zoeken",search_tags:"Zoek tags",search_placemarks:"Zoek plaatsaanduidingen",search_floors:"Zoek verdiepingen",no_results_found:"Geen resultaten gevonden",close:"Sluiten"},no:{tags:"Tagger",placemarks:"Stedsmarkeringer",floors:"Gulv",search:"Søk",search_tags:"Søk i etiketter",search_placemarks:"Søk i stedsmarkeringer",search_floors:"Søk i etasjer",no_results_found:"Ingen resultater",close:"Lukk"},pt:{tags:"Tags",placemarks:"Marcadores",floors:"Andares",search:"Procurar",search_tags:"Tags de pesquisa",search_placemarks:"Pesquisar marcadores",search_floors:"Pesquisar andares",no_results_found:"Nenhum resultado encontrado",close:"Perto"},ru:{tags:"Taggar",placemarks:"Platsmärken",floors:"Golv",search:"Sök",search_tags:"Sök taggar",search_placemarks:"Sök efter platsmärken",search_floors:"Sök Golv",no_results_found:"Inga resultat funna",close:"Stänga"},sv:{tags:"Taggar",placemarks:"Platsmärken",floors:"Golv",search:"Sök",search_tags:"Sök taggar",search_placemarks:"Sök efter platsmärken",search_floors:"Sök Golv",no_results_found:"Inga resultat funna",close:"Stänga"},uk:{tags:"Теги",placemarks:"Мітки",floors:"Поверхи",search:"Пошук",search_tags:"Пошук тегів",search_placemarks:"Пошук міток",search_floors:"Пошук поверхів",no_results_found:"Нічого не знайдено",close:"Закрити"},vi:{tags:"Thẻ",placemarks:"Dấu vị trí",floors:"Tầng",search:"Tìm kiếm ",search_tags:"Thẻ tìm kiếm",search_placemarks:"Dấu vị trí tìm kiếm",search_floors:"Tầng tìm kiếm",no_results_found:"Không có kết quả nào được tìm thấy",close:"Đóng"},"zh-cn":{tags:"标签",placemarks:"地标",floors:"楼层",search:"搜索",search_tags:"搜索标签",search_placemarks:"搜索地标",search_floors:"搜索楼层",no_results_found:"未找到结果",close:"关闭"},"zh-tw":{tags:"標籤",placemarks:"地標",floors:"樓層",search:"搜尋",search_tags:"搜尋標籤",search_placemarks:"搜尋地標",search_floors:"搜尋樓層",no_results_found:"未找到結果",close:"關閉"}};t.default={lookup:function(e,t){var r,o,i;const a=t||(navigator.languages&&navigator.languages[0]||navigator.language||"en").toLowerCase(),s=null!==(r=a.split("-").shift())&&void 0!==r?r:"en",l=n;return(null===(o=null==l?void 0:l[a])||void 0===o?void 0:o[e])||(null===(i=null==l?void 0:l[s])||void 0===i?void 0:i[e])||l.en[e]||e}}},1018:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=(0,o.css)({label:"watermark",overflow:"hidden",position:"absolute",transform:"translate(-50%, 0)",opacity:.4,zIndex:1,left:"50%",top:0}),a=(0,o.css)({label:"watermark-logo",display:"block",fill:"black",width:70,height:30});t.default=()=>(0,r.h)("div",{className:i},(0,r.h)("svg",{className:a,viewBox:"0 0 196.07 71.15"},(0,r.h)("path",{d:"M93.4 55.8c-8.7-.2-15.5-7.5-15.3-16.1v-5.1c-.2.3-.4.5-.7.6-.2.1-.4.1-.6.1-.3 0-.7-.1-1-.4-1.2-1-2.7-1.6-4.3-1.6h-.1c-3.5 0-6.4 2.9-6.5 6.4V54c0 .8-.7 1.5-1.5 1.5h-6.8c-.6 0-1.2-.4-1.4-1-.1.2-.2.4-.4.6-.3.2-.6.4-1 .4h-.2c-.4-.1-3.8-.5-5.9-2.5-2.6 1.6-5.7 2.5-8.7 2.5h-.2c-8.8 0-16-7.1-16.1-15.9.1-8.8 7.4-16 16.1-16h.4c8 0 14.8 6 15.9 13.7V28c0-.4.2-.8.5-1.1.3-.3.6-.4 1-.4h.1c1.5.1 2.9.5 4.3 1.1 3-2.4 6.7-3.8 10.5-3.8 2 0 4 .4 5.9 1.1.6.2 1 .8 1 1.4v.4c.1-.2.2-.3.4-.5.3-.2.6-.3.9-.3h.4c2.7.7 7.9 3.7 8 10.3v4.1c.2 3.1 2.8 5.5 5.9 5.5h.4c3.2-.2 5.7-3 5.5-6.3v-7.1-.2c.4-6.5 5.6-8.8 7.3-9.6l.3-.1c.2-.1.4-.1.6-.1h.1c.7 0 1.3.5 1.5 1.1v-6.8c0-.8.7-1.5 1.5-1.5h.2c.2 0 .4 0 .6.1l.2.1c1.7.8 6.7 3.1 7.1 9.6 2.1-.9 4.3-1.4 6.7-1.4h.2c7.3 0 13.5 4.9 15.5 11.6 2-6.7 8.2-11.6 15.5-11.6h.4c8.8 0 16 7.1 16.1 15.9v14.4c0 .4-.2.8-.5 1.1-.3.2-.6.4-1 .4h-.2c-.4-.1-3.8-.5-5.9-2.5-2.6 1.6-5.7 2.5-8.7 2.5h-.2c-7.3 0-13.5-4.9-15.5-11.6-2 6.7-8.2 11.6-15.5 11.6h-.2c-3 0-5.9-.8-8.5-2.3-2.2 1.9-5.7 2.4-6.2 2.4h-.2c-.4 0-.7-.1-1-.4-.3-.3-.5-.7-.5-1.1V41.4c-.7 8.1-7.4 14.4-15.6 14.4h-.6zM39.1 33.2c-3.5 0-6.4 2.8-6.5 6.3-.1 3.6 2.7 6.6 6.3 6.7h.1c3.6 0 6.5-2.9 6.5-6.5 0-3.5-2.8-6.4-6.3-6.5h-.1zm86.9 0c-3.5 0-6.4 2.8-6.5 6.3-.1 3.6 2.7 6.6 6.3 6.7h.1c3.6 0 6.5-2.9 6.5-6.5 0-3.5-2.8-6.4-6.3-6.5h-.1zm31.4 0c-3.5 0-6.4 2.8-6.5 6.3-.1 3.6 2.7 6.6 6.3 6.7h.1c3.6-.1 6.5-3 6.6-6.5 0-3.5-2.8-6.4-6.3-6.5h-.2z"}),(0,r.h)("path",{d:"M111.1 16.9c1.3.6 6.2 2.6 6.5 8.6v2.2c2.4-1.6 5.3-2.4 8.1-2.4h.2c8 0 14.5 6.4 14.6 14.4-.1 8-6.6 14.4-14.6 14.4h-.2c-3.1 0-6.2-1-8.7-2.8-1.7 2.4-6.1 2.9-6.1 2.9V16.9h.2m14.8 30.8c4.4 0 8.1-3.6 8.1-8 0-4.3-3.5-7.9-7.8-8h-.2c-4.3 0-7.9 3.4-8 7.8-.1 4.4 3.4 8.1 7.8 8.2h.1M108 24v16.4c-.2 7.7-6.5 13.8-14.2 13.8h-.4c-7.8-.2-14-6.7-13.8-14.6V27.4s6.8 1.7 6.8 8.9v4.2c.2 3.9 3.5 6.9 7.4 6.9h.5c4.1-.3 7.2-3.8 6.9-7.8v-7c.3-6 5.4-7.9 6.7-8.6h.1m49 1.3h.4c8 0 14.5 6.4 14.6 14.4v14.4s-4.3-.5-5.8-3c-2.6 1.9-5.8 3-9 3h-.2c-8 0-14.5-6.4-14.6-14.4.1-8 6.6-14.4 14.6-14.4m.3 22.4c4.4 0 8.1-3.6 8.1-8 0-4.3-3.5-7.9-7.8-8h-.2c-4.3 0-7.9 3.4-8 7.8-.1 4.4 3.4 8.1 7.8 8.2h.1M38.7 25.3h.4c8 0 14.5 6.4 14.6 14.4v14.4s-4.3-.5-5.8-3c-2.6 1.9-5.8 3-9 3h-.2c-8 0-14.5-6.4-14.6-14.4.1-8 6.6-14.4 14.6-14.4m.3 22.4c4.4 0 8.1-3.6 8.1-8 0-4.3-3.5-7.9-7.8-8h-.2c-4.3 0-7.9 3.4-8 7.8-.1 4.4 3.4 8.1 7.8 8.2h.1m32.4-22.4s.1 0 0 0c1.9 0 3.6.4 5.3 1v7.6c-1.5-1.3-3.4-1.9-5.3-1.9h-.1c-4.4 0-7.9 3.5-8 7.9v14.3h-6.8V28c1.6.1 3.2.6 4.6 1.4 2.8-2.7 6.5-4.1 10.3-4.1m39.7-11.4h-.1c-1.7 0-3 1.3-3 3V21h-.1c-.5 0-.9.1-1.3.3l-.3.1c-5.1 2.4-7.9 6-8.1 10.9v7.4c.2 2.4-1.7 4.5-4.1 4.7h-.3c-2.3 0-4.2-1.8-4.4-4.1v-.6-3.5c-.1-7.6-6-11-9.1-11.8-.2-.1-.5-.1-.7-.1h-.5c-.3-.4-.8-.8-1.3-.9-2-.8-4.2-1.2-6.4-1.2h-.1c-3.9 0-7.7 1.2-10.8 3.5-1.3-.5-2.6-.8-4-.8h-.2c-.8 0-1.5.3-2.1.8-.6.6-.9 1.4-.9 2.2v1.9c-3.2-4.6-8.5-7.6-14.4-7.6h-.4c-9.6 0-17.5 7.8-17.6 17.4v.1c.1 9.6 8 17.4 17.6 17.4h.2c3 0 5.9-.8 8.6-2.2 2.4 1.7 5.4 2.1 5.9 2.2h.4c.5 0 1-.1 1.4-.4.4.2.9.4 1.4.4h6.8c1.7 0 3-1.3 3-3V39.8c0-2.7 2.3-4.9 5-4.9h.2c1.2 0 2.4.4 3.4 1.2.5.4 1.1.7 1.8.7v2.8c-.1 4.6 1.6 8.9 4.7 12.3 3.2 3.3 7.4 5.2 12 5.4h.5c5.9 0 11.1-2.9 14.1-7.4v4.3c0 .9.4 1.7 1 2.2.6.5 1.3.8 2 .8h.3c.7-.1 3.7-.5 6.2-2.1 2.6 1.3 5.4 2 8.3 2h.2c6.6 0 12.5-3.7 15.5-9.2 3 5.5 8.8 9.2 15.5 9.2h.3c3 0 5.9-.8 8.6-2.2 2.4 1.7 5.4 2.1 5.9 2.2h.4c.7 0 1.4-.3 2-.8.6-.6 1-1.4 1-2.2V39.7c-.1-9.6-8-17.4-17.6-17.4h-.4c-6.6 0-12.5 3.7-15.5 9.2-3-5.5-8.8-9.2-15.5-9.2h-.2c-1.8 0-3.7.3-5.4.8-.8-3.9-3.4-6.9-7.7-8.9l-.2-.1c-.6-.1-1-.2-1.5-.2zm46.3 30.8h-.2c-2.8-.1-4.9-2.4-4.9-5.1.1-2.7 2.3-4.9 5-4.9h.1c2.7.1 4.9 2.3 4.9 5 .1 2.7-2.2 4.9-4.9 5zm-31.3 0h-.2c-2.8-.1-4.9-2.4-4.9-5.1.1-2.7 2.3-4.9 5-4.9h.1c2.7.1 4.9 2.3 4.9 5s-2.2 4.9-4.9 5zm-87 0h-.2c-1.3 0-2.6-.6-3.5-1.6-.9-1-1.4-2.2-1.4-3.6.1-2.7 2.3-4.9 5-4.9h.1c2.7.1 4.9 2.3 4.9 5 .1 2.8-2.1 5-4.9 5.1z",fill:"#fff"})))},5481:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=({onClick:e,dir:t})=>"in"===t?(0,r.h)("button",{className:(0,o.cx)("meridian-zoom-button","meridian-zoom-button-in",l),"data-testid":"meridian--private--zoom-button-in",onClick:e},(0,r.h)("svg",{viewBox:"0 0 36 36"},(0,r.h)("path",{d:"M26 17h-7v-7a1 1 0 0 0-2 0v7h-7a1 1 0 0 0 0 2h7v7a1 1 0 0 0 2 0v-7h7a1 1 0 0 0 0-2"}))):(0,r.h)("button",{className:(0,o.cx)("meridian-zoom-button","meridian-zoom-button-out",c),"data-testid":"meridian--private--zoom-button-out",onClick:e},(0,r.h)("svg",{viewBox:"0 0 36 36"},(0,r.h)("path",{d:"M26 19H10a1 1 0 0 1 0-2h16a1 1 0 0 1 0 2"}))),a=(0,o.css)(o.mixins.shadow,o.mixins.rounded,{position:"absolute",display:"flex",flexDirection:"column",zIndex:1,right:15,bottom:15}),s=(0,o.css)(o.mixins.buttonReset,o.mixins.focusRing,o.mixins.buttonHoverActive,o.mixins.rounded,{cursor:"pointer",padding:4,width:40,height:40,border:0,fontSize:20,fontWeight:200,fill:o.theme.brandBrightBlue,background:"white"}),l=(0,o.css)(s,{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:`1px solid ${o.theme.buttonSeparatorColor}`}),c=(0,o.css)(s,{borderTopLeftRadius:0,borderTopRightRadius:0});t.default=({onZoomIn:e,onZoomOut:t})=>(0,r.h)("div",{className:(0,o.cx)("meridian-zoom-controls",a)},(0,r.h)(i,{onClick:e,dir:"in"}),(0,r.h)(i,{onClick:t,dir:"out"}))},5396:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendAnalyticsCodeEvent=void 0;const r=n(4221),o=window.devicePixelRatio||1,i=window.screen,a=`${i.width*o}x${i.height*o}`;t.sendAnalyticsCodeEvent=async function(e){if("Cypress"in window)return;const{action:t,locationID:n,onTagsUpdate:o=!1,tagsFilter:i=!1,placemarksFilter:s=!1,internalUpdate:l=!1}=e,c={session_id:n,v:"1",app_name:"MeridianSDK",data_src:"app",app_version:r.version,uid:n,cid:n,hit_type:"event",event_category:"code",event_action:t,event_value:1,event_label:l?"internal":"external",tag_update:o?1:0,tags_filter:i?1:0,placemarks_filter:s?1:0,language:navigator.language,screen_res:a,anonymize_ip:1,user_agent:window.navigator.userAgent,z:Math.random().toString(36).substring(7)};fetch("https://www.google-analytics.com/mp/collect?measurement_id=G-GCT86YZLFE&api_secret=1v79k_rPSLyvvcHpzSDqFQ",{method:"POST",body:JSON.stringify({client_id:n,events:[{name:"page_event",params:Object.assign({},c)}]})})}},2785:function(e,t,n){"use strict";var r,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.css=t.keyframes=t.cx=t.mixins=t.theme=void 0;const i=o(n(129));t.theme={fontSizeSmallest:"12px",fontSizeSmaller:"14px",fontSize:"16px",fontSizeBigger:"18px",black:"#000",white:"#fff",almostWhite:"#fafafa",textColor:"#1b1b1b",textColorBluishLightGrey:"#9fa8ae",textColorBluish:"hsl(208, 17%, 42%)",brandOrange:"#ff8300",brandBlue:"hsl(203, 100%, 23%)",brandBrightBlue:"hsl(207, 65%, 46%)",buttonActiveColor:"hsl(201, 55%, 94%)",buttonHoverColor:"hsl(200, 60%, 97%)",buttonSeparatorColor:"#f0f0f0",borderColor:"#ebeef2",borderColorDarker:"#dfe1e5",borderRadius:6,searchBarColor:"#297BC0"},t.mixins={flexRow:{display:"flex",flexDirection:"row"},flexColumn:{display:"flex",flexDirection:"column"},overflowEllipses:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},textStrokeWhite:{WebkitFontSmoothing:"antialiased",textShadow:["rgba(255, 255, 255, 0.5) 1px 1px 0","rgba(255, 255, 255, 0.5) -1px -1px 0","white 0 0 1px","white 0 0 2px","white 0 0 3px","white 0 0 4px"].join(", ")},buttonReset:{padding:0,margin:0,font:"inherit",border:0,borderRadius:0,background:"transparent",color:"inherit","&::-moz-focus-inner":{border:0}},buttonHoverActive:{"&:hover":{background:t.theme.buttonHoverColor},"&:active":{background:t.theme.buttonActiveColor}},borderBox:{boxSizing:"border-box"},focusRing:{"&:focus":{outline:0,boxShadow:`inset 0 0 0 1px ${t.theme.brandBrightBlue}`}},focusRingMenuItem:{"&:focus":{outline:0,boxShadow:`\n inset 0 0 0 1px white,\n inset 0 0 0 2px ${t.theme.brandBrightBlue}\n `}},focusOutline:{"&:focus":{outline:0,boxShadow:"0 0 0 2px currentcolor"}},focusDarken:{"&:focus":{outline:0,boxShadow:"inset 0 0 0 9999px rgba(0, 0, 0, 0.1)"}},focusNone:{"&:focus":{outline:"none"}},shadow:{boxShadow:"0 0 3px rgba(0, 0, 0, 0.25)"},rounded:{borderRadius:t.theme.borderRadius},maxRounded:{borderRadius:99999},paddingMedium:{padding:"20px"},pointer:{cursor:"pointer","&:disabled":{cursor:"default"}}},r=(0,i.default)({key:"meridian--private-"}),t.cx=r.cx,t.keyframes=r.keyframes,t.css=r.css},7746:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debouncedPlacemarkSearch=t.placemarkSearchParams=t.cleanQuery=t.isEnvOptions=t.asyncClientCall=t.requiredParam=t.getPlacemarkCategories=t.getTagLabels=t.createSearchMatcher=t.keyBy=t.objectWithoutKey=t.uiText=t.logDeprecated=t.logError=t.logWarn=void 0;const n="[@meridian/web-sdk]";t.logWarn=console.warn.bind(console,n),t.logError=console.error.bind(console,n),t.logDeprecated=t.logWarn.bind(null,"[deprecated]"),t.uiText={enDash:"–",unnamedBuilding:"Unassigned"},t.objectWithoutKey=function(e,t){const n=Object.assign({},e);return delete n[t],n},t.keyBy=function(e,t){const n={};for(const r of e)n[t(r)]=r;return n},t.createSearchMatcher=function(e){return t=>t.toLowerCase().indexOf(e.toLowerCase().trim())>=0},t.getTagLabels=function(e){return(e.tags||[]).map((e=>e.name))},t.getPlacemarkCategories=function(e){return(e.categories||[]).map((e=>e.name))},t.requiredParam=function(e,n){(0,t.logError)(`${e}: argument \`${n}\` is required`)},t.asyncClientCall=function(e,...t){setTimeout(e,0,...t)},t.isEnvOptions=function(e){return"staging"===e||"production"===e||"eu"===e||"development"===e||"devCloud"===e},t.cleanQuery=function(e){return e.replace(/-/g," ").replace(/:/g," ").replace(/[\\)"(]/g," ").replace(/[ ]{2,}/g," ").trim()},t.placemarkSearchParams="is_map_published=true AND kind:placemark AND NOT is_searchable=false AND NOT type=exclusion_area",t.debouncedPlacemarkSearch=function e(t,n=0){let r,o,i;return function(...t){return o?(i=!0,new Promise((i=>{o=i,r=setTimeout(a.bind(e,t,i),n)}))):new Promise((i=>{o=i,r=setTimeout(a.bind(e,t,i),n)}))};function a(n,a){i&&a!==o?a(null):(t.apply(e,n).then(a).catch(a),i=!1,clearTimeout(r),r=o=null)}}},4221:function(e,t,n){"use strict";var r,o,i,a=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.API=t.createAPI=t.createMap=t.init=t.mapPointToLatLng=t.latLngToMapPoint=t.restrictedPanZoom=t.version=t.pointsFromArea=t.placemarkIconURL=void 0;const l=s(n(6425)),c=s(n(7975)),u=n(172),f=s(n(5697)),h=s(n(9101)),p=n(5396),d=s(n(529)),m=n(7746),g=n(323),v=new Map;for(const e of g.keys()){const t=c.default.basename(e,".svg"),n=g(e).default;v.set(t,n)}t.placemarkIconURL=function(e){if(!e||e.startsWith("label_"))return h.default;return v.get(e)||((0,m.logError)(`placemarkIconURL: no such icon '${e}'`),h.default)},t.pointsFromArea=function(e){return e?e.split(",").map(Number):[]};const y=()=>n(3034);"complete"===document.readyState?setTimeout(y,0):document.addEventListener("DOMContentLoaded",y,!1);const _={api:void 0};t.version="1.22.4",t.restrictedPanZoom=function(e){return"wheel"===e.type?e.shiftKey||e.altKey||e.ctrlKey||e.metaKey:"touch"!==e.type||e.touches.length>=2},t.latLngToMapPoint=function(e,{lat:t,lng:n}){const r=t,o=n,i=[];e.gps_ref_points.split(",").forEach((e=>{i.push(Number(e))}));const a={lat:i[0],lng:i[1],x:i[4],y:i[5]},s={lat:i[2],lng:i[3],x:i[6],y:i[7]},l=6371;a.globalCoordinateX=l*a.lng*Math.cos((a.lat+s.lat)/2),a.globalCoordinateY=l*a.lat,s.globalCoordinateX=l*s.lng*Math.cos((a.lat+s.lat)/2),s.globalCoordinateY=l*s.lat;const c=l*r,u=(l*o*Math.cos((a.lat+s.lat)/2)-a.globalCoordinateX)/(s.globalCoordinateX-a.globalCoordinateX),f=(c-a.globalCoordinateY)/(s.globalCoordinateY-a.globalCoordinateY);return{x:a.x+(s.x-a.x)*u,y:a.y+(s.y-a.y)*f}},t.mapPointToLatLng=function(e,{x:t,y:n}){const r=[];e.gps_ref_points.split(",").forEach((e=>{r.push(Number(e))}));const o={lat:r[0],lng:r[1],x:r[4],y:r[5]},i={lat:r[2],lng:r[3],x:r[6],y:r[7]},a=o.lng,s=i.lng-a,l=function(){let e;return e=o.y{l.isDestroyed?(0,m.logError)("can't call update on a destroyed MeridianMap"):(l.isDestroyed=!0,(0,u.render)(null,e),t.onDestroy&&t.onDestroy())};let r=null;const o=e=>{r=e},i=(r,{internalUpdate:a=!0}={})=>{t=Object.assign(Object.assign({},t),r);const l=_.api||t.api;if(!l)throw(0,m.requiredParam)("createMap","options.api"),new Error("couldn't create MeridianMap");s=(0,u.render)((0,u.h)(d.default,Object.assign({api:l},t,{update:i,ref:o,destroy:n})),e,s),(0,p.sendAnalyticsCodeEvent)({action:"map.update",locationID:t.locationID,onTagsUpdate:Boolean(t.onTagsUpdate),tagsFilter:Boolean(t.tags&&t.tags.filter),placemarksFilter:Boolean(t.placemarks&&t.placemarks.filter),internalUpdate:a})},a=_.api||t.api;if(!a)throw(0,m.requiredParam)("createMap","options.api"),new Error("couldn't create MeridianMap");let s=(0,u.render)((0,u.h)(d.default,Object.assign({api:a},t,{update:i,ref:o,destroy:n})),e);(0,p.sendAnalyticsCodeEvent)({action:"createMap",locationID:t.locationID,onTagsUpdate:Boolean(t.onTagsUpdate),tagsFilter:Boolean(t.tags&&t.tags.filter),placemarksFilter:Boolean(t.placemarks&&t.placemarks.filter)});const l={destroy:n,isDestroyed:!1,update:e=>{l.isDestroyed?(0,m.logError)("can't call update on a destroyed MeridianMap"):i(e,{internalUpdate:!1})},zoomToDefault:()=>{l.isDestroyed?(0,m.logError)("can't call zoomToDefault on a destroyed MeridianMap"):null==r||r.zoomToDefault()},zoomToPoint:e=>{l.isDestroyed?(0,m.logError)("can't call update on a destroyed MeridianMap"):(e||(0,m.requiredParam)("map.zoomToPoint","options"),void 0===e.x&&(0,m.requiredParam)("map.zoomToPoint","options.x"),void 0===e.y&&(0,m.requiredParam)("map.zoomToPoint","options.y"),void 0===e.scale&&(0,m.requiredParam)("map.zoomToPoint","options.scale"),null==r||r.zoomToPoint(e.x,e.y,e.scale))},centerMap:()=>{l.isDestroyed?(0,m.logError)("can't call update on a destroyed MeridianMap"):null==r||r.centerMap()}};return l},t.createAPI=function(e){return(0,m.logDeprecated)("use `new MeridianSDK.API(options)` instead of `MeridianSDK.createAPI(options)`"),e||(0,m.requiredParam)("createAPI","options"),new b(e)};class b{constructor(e){var n;r.add(this),this.debouncedPlacemarkSearchBeta=(0,m.debouncedPlacemarkSearch)(a(this,r,"m",o).bind(this),600),e.token||(0,m.requiredParam)("API","token"),this.token=e.token,this.environment=("devcloud"===(n=e.environment)?"devCloud":n)||"production",this.language=e.language,this._placemarkSearchAbortController=null,this._localSearchAbortController=null;let i={};this.language&&(i={"accept-language":this.language}),this._axiosEditorAPI=l.default.create({baseURL:S[this.environment],headers:Object.assign({Authorization:`Token ${e.token}`,"Meridian-SDK":`WebSDK/${t.version}`},i)}),this._axiosTagsAPI=l.default.create({baseURL:k[this.environment],headers:{Authorization:`Token ${e.token}`}}),this._axiosTagDetailAPI=l.default.create({baseURL:x[this.environment],headers:{Authorization:`Token ${e.token}`}})}get axios(){return(0,m.logDeprecated)("axios is deprecated; use the MeridianSDK.API fetch methods"),this._axiosEditorAPI}async getDirections(e){e.locationID||(0,m.requiredParam)("getDirections","locationID"),e.startFloorID||(0,m.requiredParam)("getDirections","startFloorID"),e.startPlacemarkID||(0,m.requiredParam)("getDirections","startPlacemarkID"),e.endPlacemarkID||(0,m.requiredParam)("getDirections","endPlacemarkID");const t=new URLSearchParams({from_map_id:e.startFloorID,from_placemark_id:e.startPlacemarkID,to_placemark_ids:e.endPlacemarkID,transport_type:e.transportType||"normal"}),n=`/locations/${e.locationID}/directions?${t}`;return(await this._axiosEditorAPI.get(n)).data}async fetchTagsByFloor(e,t){return e||(0,m.requiredParam)("fetchTagsByFloor","locationID"),t||(0,m.requiredParam)("fetchTagsByFloor","floorID"),(await this._axiosTagsAPI.post("/assets",{floor_id:t,location_id:e})).data.asset_updates}async fetchTagsByLocation(e){return e||(0,m.requiredParam)("fetchTagsByLocation","locationID"),(await this._axiosTagsAPI.post("/assets",{location_id:e})).data.asset_updates}async fetchTagDetail(e){return e||(0,m.requiredParam)("fetchTagDetail","mac"),(await this._axiosTagDetailAPI.get(`/tagsinfo/detail/${e}`)).data}async fetchPlacemarksByLocation(e){return e||(0,m.requiredParam)("fetchPlacemarksByLocation","locationID"),await w((async e=>{const{data:t}=await this._axiosEditorAPI.get(e);return t}),`locations/${e}/placemarks`)}async fetchPlacemarksByFloor(e,t){return e||(0,m.requiredParam)("fetchPlacemarksByFloor","locationID"),t||(0,m.requiredParam)("fetchPlacemarksByFloor","floorID"),await w((async e=>{const{data:t}=await this._axiosEditorAPI.get(e);return t}),`locations/${e}/maps/${t}/placemarks`)}async fetchFloorsByLocation(e){return e||(0,m.requiredParam)("fetchFloorsByLocation","locationID"),await w((async e=>{const{data:t}=await this._axiosEditorAPI.get(e);return t}),`locations/${e}/maps`)}async fetchFloorData(e,t){e||(0,m.requiredParam)("fetchFloorData","locationID"),t||(0,m.requiredParam)("fetchFloorData","floorID");const n=`locations/${e}/maps/${t}`,{data:r}=await this._axiosEditorAPI.get(n);return r}async fetchSVG(e){e||(0,m.requiredParam)("fetchSVG","svgURL");const{data:t}=await this._axiosEditorAPI.get(e,{responseType:"blob"});return URL.createObjectURL(t)}openStream({locationID:e,floorID:t,resourceIDs:n,resourceType:r="FLOOR",onInitialTags:o=(()=>{}),onTagUpdate:i=(()=>{}),onException:a=(()=>{}),onClose:s=(()=>{}),onOpen:l=(()=>{})}){"FLOOR"===r&&t&&!n&&(n=[t]),"LOCATION"===r&&e&&!n&&(n=[e]),e||(0,m.requiredParam)("openStream","locationID"),"FLOOR"!==r||t||(0,m.requiredParam)("openStream","floorID"),n||(0,m.requiredParam)("openStream","resourceIDs");let c=!1;const u=new URLSearchParams({method:"POST",authorization:`Token ${this.token}`}),h=O[this.environment],p=new f.default(`${h}?${u}`),d={asset_requests:[{resource_type:r,location_id:e,resource_ids:n}]},g=()=>{c||(c=!0,(0,m.asyncClientCall)(s),p.close())};return p.addEventListener("open",(()=>{c||(l(),p.send(JSON.stringify(d)))})),p.addEventListener("message",(e=>{if(c)return;const t=JSON.parse(e.data);if(t.error)a(new Error(t.error.message));else{if(!t.result)throw new Error(`Unknown message: ${e.data}`);for(const e of t.result.asset_updates){const t=e.event_type;if("UPDATE"!==t)throw new Error(`Unknown event type: ${t}`);(0,m.asyncClientCall)(i,e)}}})),p.addEventListener("error",(()=>{c||a(new Error("MeridianSDK.openStream connection error"))})),p.addEventListener("close",(()=>{c||s()})),(async()=>{if(t&&"FLOOR"===r)try{const n=await this.fetchTagsByFloor(e,t);(0,m.asyncClientCall)(o,n)}catch(e){(0,m.asyncClientCall)(a,e),g()}else if(e&&"LOCATION"===r)try{const t=await this.fetchTagsByLocation(e);(0,m.asyncClientCall)(o,t)}catch(e){(0,m.asyncClientCall)(a,e),g()}else(0,m.asyncClientCall)(o,[])})(),{close:g}}}async function w(e,t){const n=await e(t),r=n.results;let o=n.next;for(;o;){const t=await e(o);r.push(...t.results),o=t.next}return r}t.API=b,r=new WeakSet,o=async function(e){const t=(0,m.cleanQuery)(e.searchStr);if(e.locationID||(0,m.requiredParam)("placemarkSearch","locationID"),this._placemarkSearchAbortController&&this._placemarkSearchAbortController.abort(),this._localSearchAbortController&&this._localSearchAbortController.abort(),!t)return[];this._placemarkSearchAbortController=new AbortController;const n=new URLSearchParams({q:`${t} AND (${m.placemarkSearchParams})`,page_size:"100"});try{return await this._axiosEditorAPI.get(`locations/${e.locationID}/search`,{signal:this._placemarkSearchAbortController.signal,params:n}).then((async n=>{const o=n.data.results;if(e.refPoint&&e.refFloorID&&o.length){const n=await a(this,r,"m",i).call(this,{locationID:e.locationID,searchStr:t,point:e.refPoint,mapID:e.refFloorID}),s=[],l=n.map((e=>e.id));return o.forEach((e=>{l.includes(e.id)||s.push(e)})),this._placemarkSearchAbortController=null,[...n,...s]}return this._placemarkSearchAbortController=null,o}))}catch(e){return"canceled"===e.message?null:(console.warn(e),[])}},i=async function(e){const t=(0,m.cleanQuery)(e.searchStr);if(this._localSearchAbortController&&this._localSearchAbortController.abort(),!t)return[];this._localSearchAbortController=new AbortController;const n=new URLSearchParams({q:`${t} AND (${m.placemarkSearchParams})`,limit:"10",appid:e.locationID,map_id:e.mapID,point:e.point});return this._axiosEditorAPI.get("search/local",{signal:this._localSearchAbortController.signal,params:n}).then((e=>(this._localSearchAbortController=null,e.data.results)))};const k={development:"http://localhost:8091/api/v1",devCloud:"https://dev-tags.meridianapps.com/api/v1",production:"https://tags.meridianapps.com/api/v1",eu:"https://tags-eu.meridianapps.com/api/v1",staging:"https://staging-tags.meridianapps.com/api/v1"},x={development:"http://localhost:8091/api",devCloud:"https://dev-tags.meridianapps.com/api",production:"https://tags.meridianapps.com/api",eu:"https://tags-eu.meridianapps.com/api",staging:"https://staging-tags.meridianapps.com/api"},O={development:"ws://localhost:8091/streams/v1/assets",devCloud:"wss://dev-tags.meridianapps.com/streams/v1/assets",production:"wss://tags.meridianapps.com/streams/v1/assets",eu:"wss://tags-eu.meridianapps.com/streams/v1/assets",staging:"wss://staging-tags.meridianapps.com/streams/v1/assets"},S={development:"http://localhost:8091/api",devCloud:"https://dev-edit.meridianapps.com/api",production:"https://edit.meridianapps.com/api",eu:"https://edit-eu.meridianapps.com/api",staging:"https://staging-edit.meridianapps.com/api"}},6425:function(e,t,n){"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,a=(s=Object.create(null),e=>{const t=o.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const l=e=>(e=e.toLowerCase(),t=>a(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,f=c("undefined"),h=l("ArrayBuffer"),p=c("string"),d=c("function"),m=c("number"),g=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==a(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},y=l("Date"),_=l("File"),b=l("Blob"),w=l("FileList"),k=l("URLSearchParams"),[x,O,S,C]=["ReadableStream","Request","Response","Headers"].map(l);function A(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),u(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,P=e=>!f(e)&&e!==T,D=(j="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>j&&e instanceof j);var j;const M=l("HTMLFormElement"),R=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),L=l("RegExp"),N=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};A(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},I="abcdefghijklmnopqrstuvwxyz",z="0123456789",F={DIGIT:z,ALPHA:I,ALPHA_DIGIT:I+I.toUpperCase()+z},B=l("AsyncFunction"),U=($="function"==typeof setImmediate,q=d(T.postMessage),$?setImmediate:q?(W=`axios@${Math.random()}`,H=[],T.addEventListener("message",(({source:e,data:t})=>{e===T&&t===W&&H.length&&H.shift()()}),!1),e=>{H.push(e),T.postMessage(W,"*")}):e=>setTimeout(e));var $,q,W,H;const Z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||U;var V={isArray:u,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&d(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||d(e.append)&&("formdata"===(t=a(e))||"object"===t&&d(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:v,isReadableStream:x,isRequest:O,isResponse:S,isHeaders:C,isUndefined:f,isDate:y,isFile:_,isBlob:b,isRegExp:L,isFunction:d,isStream:e=>g(e)&&d(e.pipe),isURLSearchParams:k,isTypedArray:D,isFileList:w,forEach:A,merge:function e(){const{caseless:t}=P(this)&&this||{},n={},r=(r,o)=>{const i=t&&E(n,o)||o;v(n[i])&&v(r)?n[i]=e(n[i],r):v(r)?n[i]=e({},r):u(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e(A(t,((t,o)=>{n&&d(t)?e[o]=r(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,s;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],r&&!r(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:R,hasOwnProp:R,reduceDescriptors:N,freezeMethods:e=>{N(e,((t,n)=>{if(d(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];d(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return u(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:E,global:T,isContextDefined:P,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&d(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=u(e)?[]:{};return A(e,((e,t)=>{const i=n(e,r+1);!f(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:B,isThenable:e=>e&&(g(e)||d(e))&&d(e.then)&&d(e.catch),setImmediate:U,asap:Z};function G(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}V.inherits(G,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const X=G.prototype,J={};function Y(e){return V.isPlainObject(e)||V.isArray(e)}function K(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,n){return e?e.concat(t).map((function(e,t){return e=K(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{J[e]={value:e}})),Object.defineProperties(G,J),Object.defineProperty(X,"isAxiosError",{value:!0}),G.from=(e,t,n,r,o,i)=>{const a=Object.create(X);return V.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),G.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ee=V.toFlatObject(V,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!V.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(!s&&V.isBlob(e))throw new G("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(V.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(Y)}(e)||(V.isFileList(e)||V.endsWith(n,"[]"))&&(s=V.toArray(e)))return n=K(n),s.forEach((function(e,r){!V.isUndefined(e)&&null!==e&&t.append(!0===a?Q([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Y(e)||(t.append(Q(o,n,i),l(e)),!1)}const u=[],f=Object.assign(ee,{defaultVisitor:c,convertValue:l,isVisitable:Y});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!V.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),V.forEach(n,(function(n,i){!0===(!(V.isUndefined(n)||null===n)&&o.call(t,n,V.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const oe=re.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ae(e,t,n){if(!t)return e;const r=n&&n.encode||ie,o=n&&n.serialize;let i;if(i=o?o(t,n):V.isURLSearchParams(t)?t.toString():new re(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var se=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ue="undefined"!=typeof window&&"undefined"!=typeof document,fe=(he="undefined"!=typeof navigator&&navigator.product,ue&&["ReactNative","NativeScript","NS"].indexOf(he)<0);var he;const pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,de=ue&&window.location.href||"http://localhost";var me={...Object.freeze({__proto__:null,hasBrowserEnv:ue,hasStandardBrowserWebWorkerEnv:pe,hasStandardBrowserEnv:fe,origin:de}),...ce};function ge(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&V.isArray(r)?r.length:i,s?(V.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&V.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&V.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r{t(function(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ve={transitional:le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=V.isObject(e);if(o&&V.isHTMLForm(e)&&(e=new FormData(e)),V.isFormData(e))return r?JSON.stringify(ge(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new me.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return me.isNode&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=V.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(V.isString(e))try{return(0,JSON.parse)(e),V.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ve.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw G.from(e,G.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(e=>{ve.headers[e]={}}));var ye=ve;const _e=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),be=Symbol("internals");function we(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:V.isArray(e)?e.map(ke):String(e)}function xe(e,t,n,r,o){return V.isFunction(r)?r.call(this,t,n):(o&&(t=n),V.isString(t)?V.isString(r)?-1!==t.indexOf(r):V.isRegExp(r)?r.test(t):void 0:void 0)}class Oe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=we(t);if(!o)throw new Error("header name must be a non-empty string");const i=V.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ke(e))}const i=(e,t)=>V.forEach(e,((e,n)=>o(e,n,t)));if(V.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&_e[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(V.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=we(e)){const n=V.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=we(e)){const n=V.findKey(this,e);return!(!n||void 0===this[n]||t&&!xe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=we(e)){const o=V.findKey(n,e);!o||t&&!xe(0,n[o],o,t)||(delete n[o],r=!0)}}return V.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!xe(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return V.forEach(this,((r,o)=>{const i=V.findKey(n,o);if(i)return t[i]=ke(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=ke(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return V.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&V.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[be]=this[be]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=we(e);t[r]||(function(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}}Oe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(Oe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),V.freezeMethods(Oe);var Se=Oe;function Ce(e,t){const n=this||ye,r=t||n,o=Se.from(r.headers);let i=r.data;return V.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ae(e){return!(!e||!e.__CANCEL__)}function Ee(e,t,n){G.call(this,null==e?"canceled":e,G.ERR_CANCELED,t,n),this.name="CanceledError"}function Te(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new G("Request failed with status code "+n.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}V.inherits(Ee,G,{__CANCEL__:!0});const Pe=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,f=0;for(;u!==i;)f+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},De=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},je=e=>(...t)=>V.asap((()=>e(...t)));var Me=me.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=V.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Re=me.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];V.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),V.isString(r)&&a.push("path="+r),V.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Le(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ne=e=>e instanceof Se?{...e}:e;function Ie(e,t){t=t||{};const n={};function r(e,t,n){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:n},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function o(e,t,n){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!V.isUndefined(t))return r(void 0,t)}function a(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Ne(e),Ne(t),!0)};return V.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);V.isUndefined(a)&&i!==s||(n[r]=a)})),n}var ze=e=>{const t=Ie({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Se.from(s),t.url=ae(Le(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),V.isFormData(r))if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(me.hasStandardBrowserEnv&&(o&&V.isFunction(o)&&(o=o(t)),o||!1!==o&&Me(t.url))){const e=i&&a&&Re.read(a);e&&s.set(i,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=ze(e);let o=r.data;const i=Se.from(r.headers).normalize();let a,s,l,c,u,{responseType:f,onUploadProgress:h,onDownloadProgress:p}=r;function d(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Se.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Te((function(e){t(e),d()}),(function(e){n(e),d()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new G("Request aborted",G.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new G("Network Error",G.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||le;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new G(t,o.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&V.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),V.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([l,u]=Pe(p,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,c]=Pe(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ee(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===me.protocols.indexOf(v)?n(new G("Unsupported protocol "+v+":",G.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Be=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof G?t:new Ee(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new G(`timeout ${t} of ms exceeded`,G.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]};const Ue=function*(e,t){let n=e.byteLength;if(!t||n{const i=async function*(e,t,n){for await(const r of e)yield*Ue(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw l(e),e}},cancel(e){return l(e),i.return()}},{highWaterMark:2})},qe="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,We=qe&&"function"==typeof ReadableStream,He=qe&&("function"==typeof TextEncoder?(Ze=new TextEncoder,e=>Ze.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ze;const Ve=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ge=We&&Ve((()=>{let e=!1;const t=new Request(me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Xe=We&&Ve((()=>V.isReadableStream(new Response("").body))),Je={stream:Xe&&(e=>e.body)};var Ye;qe&&(Ye=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Je[e]&&(Je[e]=V.isFunction(Ye[e])?t=>t[e]():(t,n)=>{throw new G(`Response type '${e}' is not supported`,G.ERR_NOT_SUPPORT,n)})})));const Ke={http:null,xhr:Fe,fetch:qe&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=ze(e);c=c?(c+"").toLowerCase():"text";let p,d,[m,g]=o||i||a?Be([o,i],a):[];const v=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let y;try{if(l&&Ge&&"get"!==n&&"head"!==n&&0!==(y=await(async(e,t)=>{const n=V.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:V.isBlob(e)?e.size:V.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await He(e)).byteLength:void 0))(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(V.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=De(y,Pe(je(l)));r=$e(n.body,65536,e,t,He)}}V.isString(f)||(f=f?"include":"omit"),d=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:f});let o=await fetch(d);const i=Xe&&("stream"===c||"response"===c);if(Xe&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=V.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&De(t,Pe(je(s),!0))||[];o=new Response($e(o.body,65536,n,(()=>{r&&r(),i&&v()}),He),e)}c=c||"text";let a=await Je[V.findKey(Je,c)||"text"](o,e);return!i&&v(),g&&g(),await new Promise(((t,n)=>{Te(t,n,{data:a,headers:Se.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:d})}))}catch(t){if(v(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new G("Network Error",G.ERR_NETWORK,e,d),{cause:t.cause||t});throw G.from(t,t&&t.code,e,d)}})};V.forEach(Ke,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qe=e=>`- ${e}`,et=e=>V.isFunction(e)||null===e||!1===e;var tt=e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new G("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Qe).join("\n"):" "+Qe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee(null,e)}function rt(e){return nt(e),e.headers=Se.from(e.headers),e.data=Ce.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ye.adapter)(e).then((function(t){return nt(e),t.data=Ce.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t}),(function(t){return Ae(t)||(nt(e),t&&t.response&&(t.response.data=Ce.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)}))}const ot={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const it={};ot.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new G(r(o," has been removed"+(t?" in "+t:"")),G.ERR_DEPRECATED);return t&&!it[o]&&(it[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var at={assertOptions:function(e,t,n){if("object"!=typeof e)throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new G("option "+i+" must be "+n,G.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new G("Unknown option "+i,G.ERR_BAD_OPTION)}},validators:ot};const st=at.validators;class lt{constructor(e){this.defaults=e,this.interceptors={request:new se,response:new se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ie(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&at.assertOptions(n,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),null!=r&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:at.assertOptions(r,{encode:st.function,serialize:st.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&V.merge(o.common,o[t.method]);o&&V.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Se.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,f=0;if(!s){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);f{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ee(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new ut((function(t){e=t})),cancel:e}}}var ft=ut;const ht={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ht).forEach((([e,t])=>{ht[t]=e}));var pt=ht;const dt=function e(t){const n=new ct(t),o=r(ct.prototype.request,n);return V.extend(o,ct.prototype,n,{allOwnKeys:!0}),V.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Ie(t,n))},o}(ye);dt.Axios=ct,dt.CanceledError=Ee,dt.CancelToken=ft,dt.isCancel=Ae,dt.VERSION="1.7.3",dt.toFormData=te,dt.AxiosError=G,dt.Cancel=dt.CanceledError,dt.all=function(e){return Promise.all(e)},dt.spread=function(e){return function(t){return e.apply(null,t)}},dt.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},dt.mergeConfig=Ie,dt.AxiosHeaders=Se,dt.formToJSON=e=>ge(V.isHTMLForm(e)?new FormData(e):e),dt.getAdapter=tt,dt.HttpStatusCode=pt,dt.default=dt,e.exports=dt},5478:function(e,t,n){"use strict";function r(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}n.d(t,{A:function(){return r}})},3663:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7268),o=n(7947);function i(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===o.g&&t.documentElement.namespaceURI===o.g?t.createElement(e):t.createElementNS(n,e)}}function a(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function s(e){var t=(0,r.A)(e);return(t.local?a:i)(t)}},9062:function(e,t,n){"use strict";n.r(t),n.d(t,{create:function(){return i},creator:function(){return r.A},local:function(){return s},matcher:function(){return c.A},namespace:function(){return u.A},namespaces:function(){return f.A},pointer:function(){return h.A},pointers:function(){return d},select:function(){return o.A},selectAll:function(){return v},selection:function(){return g.Ay},selector:function(){return y.A},selectorAll:function(){return _.A},style:function(){return b.j},window:function(){return w.A}});var r=n(3663),o=n(183);function i(e){return(0,o.A)((0,r.A)(e).call(document.documentElement))}var a=0;function s(){return new l}function l(){this._="@"+(++a).toString(36)}l.prototype=s.prototype={constructor:l,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var c=n(6541),u=n(7268),f=n(7947),h=n(5970),p=n(2324);function d(e,t){return e.target&&(e=(0,p.A)(e),void 0===t&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,(e=>(0,h.A)(e,t)))}var m=n(5478),g=n(6452);function v(e){return"string"==typeof e?new g.LN([document.querySelectorAll(e)],[document.documentElement]):new g.LN([(0,m.A)(e)],g.zr)}var y=n(574),_=n(747),b=n(3683),w=n(6747)},6541:function(e,t,n){"use strict";function r(e){return function(){return this.matches(e)}}function o(e){return function(t){return t.matches(e)}}n.d(t,{A:function(){return r},j:function(){return o}})},7268:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(7947);function o(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.A.hasOwnProperty(t)?{space:r.A[t],local:e}:e}},7947:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});var r="http://www.w3.org/1999/xhtml";t.A={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},5970:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(2324);function o(e,t){if(e=(0,r.A)(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,[(o=o.matrixTransform(t.getScreenCTM().inverse())).x,o.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}},183:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(6452);function o(e){return"string"==typeof e?new r.LN([[document.querySelector(e)]],[document.documentElement]):new r.LN([[e]],r.zr)}},6452:function(e,t,n){"use strict";n.d(t,{LN:function(){return re},Ay:function(){return ie},zr:function(){return ne}});var r=n(574),o=n(5478),i=n(747),a=n(6541),s=Array.prototype.find;function l(){return this.firstElementChild}var c=Array.prototype.filter;function u(){return Array.from(this.children)}function f(e){return new Array(e.length)}function h(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function p(e,t,n,r,o,i){for(var a,s=0,l=t.length,c=i.length;st?1:e>=t?0:NaN}h.prototype={constructor:h,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var y=n(7268);function _(e){return function(){this.removeAttribute(e)}}function b(e){return function(){this.removeAttributeNS(e.space,e.local)}}function w(e,t){return function(){this.setAttribute(e,t)}}function k(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function x(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function O(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var S=n(3683);function C(e){return function(){delete this[e]}}function A(e,t){return function(){this[e]=t}}function E(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function T(e){return e.trim().split(/^|\s+/)}function P(e){return e.classList||new D(e)}function D(e){this._node=e,this._names=T(e.getAttribute("class")||"")}function j(e,t){for(var n=P(e),r=-1,o=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var H=n(3663);function Z(){return null}function V(){var e=this.parentNode;e&&e.removeChild(this)}function G(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function X(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function J(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r=S&&(S=O+1);!(x=w[S])&&++S<_;);k._next=x||null}}return(s=new re(s,o))._enter=l,s._exit=c,s},enter:function(){return new re(this._enter||this._groups.map(f),this._parents)},exit:function(){return new re(this._exit||this._groups.map(f),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,i=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,a=Math.min(o,i),s=new Array(o),l=0;l=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=v);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?C:"function"==typeof t?E:A)(e,t)):this.node()[e]},classed:function(e,t){var n=T(e+"");if(arguments.length<2){for(var r=P(this.node()),o=-1,i=n.length;++o=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?Y:J,r=0;r1?this.each((null==t?o:"function"==typeof t?a:i)(e,t,null==n?"":n)):l(this.node(),e)}function l(e,t){return e.style.getPropertyValue(t)||(0,r.A)(e).getComputedStyle(e,null).getPropertyValue(t)}},574:function(e,t,n){"use strict";function r(){}function o(e){return null==e?r:function(){return this.querySelector(e)}}n.d(t,{A:function(){return o}})},747:function(e,t,n){"use strict";function r(){return[]}function o(e){return null==e?r:function(){return this.querySelectorAll(e)}}n.d(t,{A:function(){return o}})},2324:function(e,t,n){"use strict";function r(e){let t;for(;t=e.sourceEvent;)e=t;return e}n.d(t,{A:function(){return r}})},6747:function(e,t,n){"use strict";function r(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}n.d(t,{A:function(){return r}})},7662:function(e,t,n){"use strict";n.r(t),n.d(t,{active:function(){return ut},interrupt:function(){return N},transition:function(){return ot}});var r,o,i=n(6452),a=n(2996),s=0,l=0,c=0,u=1e3,f=0,h=0,p=0,d="object"==typeof performance&&performance.now?performance:Date,m="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function g(){return h||(m(v),h=d.now()+p)}function v(){h=0}function y(){this._call=this._time=this._next=null}function _(e,t,n){var r=new y;return r.restart(e,t,n),r}function b(){h=(f=d.now())+p,s=l=0;try{!function(){g(),++s;for(var e,t=r;t;)(e=h-t._time)>=0&&t._call.call(null,e),t=t._next;--s}()}finally{s=0,function(){for(var e,t,n=r,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);o=e,k(i)}(),h=0}}function w(){var e=d.now(),t=e-f;t>u&&(p-=t,f=e)}function k(e){s||(l&&(l=clearTimeout(l)),e-h>24?(e<1/0&&(l=setTimeout(b,e-d.now()-p)),c&&(c=clearInterval(c))):(c||(f=d.now(),c=setInterval(w,u)),s=1,m(b)))}function x(e,t,n){var r=new y;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}y.prototype=_.prototype={constructor:y,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?g():+n)+(null==t?0:+t),this._next||o===this||(o?o._next=this:r=this,o=this),this._call=e,this._time=n,k()},stop:function(){this._call&&(this._call=null,this._time=1/0,k())}};var O=(0,a.A)("start","end","cancel","interrupt"),S=[],C=0,A=1,E=2,T=3,P=5,D=6;function j(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(l){var c,u,f,h;if(n.state!==A)return s();for(c in o)if((h=o[c]).name===n.name){if(h.state===T)return x(i);4===h.state?(h.state=D,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete o[c]):+cC)throw new Error("too late; already scheduled");return n}function R(e,t){var n=L(e,t);if(n.state>T)throw new Error("too late; already running");return n}function L(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function N(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>E&&n.state180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:I(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,l),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:I(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,l),function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:I(e,n)},{i:s-2,x:I(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,l),i=a=null,function(e){for(var t,n=-1,r=l.length;++n>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?me(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?me(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=oe.exec(e))?new ve(t[1],t[2],t[3],1):(t=ie.exec(e))?new ve(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ae.exec(e))?me(t[1],t[2],t[3],t[4]):(t=se.exec(e))?me(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=le.exec(e))?xe(t[1],t[2]/100,t[3]/100,1):(t=ce.exec(e))?xe(t[1],t[2]/100,t[3]/100,t[4]):ue.hasOwnProperty(e)?de(ue[e]):"transparent"===e?new ve(NaN,NaN,NaN,0):null}function de(e){return new ve(e>>16&255,e>>8&255,255&e,1)}function me(e,t,n,r){return r<=0&&(e=t=n=NaN),new ve(e,t,n,r)}function ge(e,t,n,r){return 1===arguments.length?((o=e)instanceof Y||(o=pe(o)),o?new ve((o=o.rgb()).r,o.g,o.b,o.opacity):new ve):new ve(e,t,n,null==r?1:r);var o}function ve(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ye(){return`#${ke(this.r)}${ke(this.g)}${ke(this.b)}`}function _e(){const e=be(this.opacity);return`${1===e?"rgb(":"rgba("}${we(this.r)}, ${we(this.g)}, ${we(this.b)}${1===e?")":`, ${e})`}`}function be(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function we(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ke(e){return((e=we(e))<16?"0":"")+e.toString(16)}function xe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Se(e,t,n,r)}function Oe(e){if(e instanceof Se)return new Se(e.h,e.s,e.l,e.opacity);if(e instanceof Y||(e=pe(e)),!e)return new Se;if(e instanceof Se)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n0&&l<1?0:a,new Se(a,s,l,e.opacity)}function Se(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ce(e){return(e=(e||0)%360)<0?e+360:e}function Ae(e){return Math.max(0,Math.min(1,e||0))}function Ee(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Te(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}X(Y,pe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fe,formatHex:fe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Oe(this).formatHsl()},formatRgb:he,toString:he}),X(ve,ge,J(Y,{brighter(e){return e=null==e?Q:Math.pow(Q,e),new ve(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?K:Math.pow(K,e),new ve(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ve(we(this.r),we(this.g),we(this.b),be(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ye,formatHex:ye,formatHex8:function(){return`#${ke(this.r)}${ke(this.g)}${ke(this.b)}${ke(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:_e,toString:_e})),X(Se,(function(e,t,n,r){return 1===arguments.length?Oe(e):new Se(e,t,n,null==r?1:r)}),J(Y,{brighter(e){return e=null==e?Q:Math.pow(Q,e),new Se(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?K:Math.pow(K,e),new Se(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ve(Ee(e>=240?e-240:e+120,o,r),Ee(e,o,r),Ee(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Se(Ce(this.h),Ae(this.s),Ae(this.l),be(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=be(this.opacity);return`${1===e?"hsl(":"hsla("}${Ce(this.h)}, ${100*Ae(this.s)}%, ${100*Ae(this.l)}%${1===e?")":`, ${e})`}`}}));var Pe=e=>()=>e;function De(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Pe(isNaN(e)?t:e)}var je=function e(t){var n=function(e){return 1==(e=+e)?De:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Pe(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ge(e)).r,(t=ge(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=De(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Me(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=ri&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:I(n,r)})),i=Le.lastIndex;return i=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?M:R;return function(){var a=i(this,e),s=a.on;s!==r&&(o=(r=s).copy()).on(t,n),a.on=o}}(n,e,t))},attr:function(e,t){var n=(0,H.A)(e),r="transform"===n?W:Ie;return this.attrTween(e,"function"==typeof t?(n.local?qe:$e)(n,r,G(this,"attr."+e,t)):null==t?(n.local?Fe:ze)(n):(n.local?Ue:Be)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=(0,H.A)(e);return this.tween(n,(r.local?We:He)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?q:Ie;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=(0,et.j)(this,e),a=(this.style.removeProperty(e),(0,et.j)(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,tt(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,o,i;return function(){var a=(0,et.j)(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=(0,et.j)(this,e)),a===l?null:a===r&&l===o?i:(o=l,i=t(r=a,s))}}(e,r,G(this,"style."+e,t))).each(function(e,t){var n,r,o,i,a="style."+t,s="end."+a;return function(){var l=R(this,e),c=l.on,u=null==l.value[a]?i||(i=tt(t)):void 0;c===n&&o===u||(r=(n=c).copy()).on(s,o=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,i=n+"";return function(){var a=(0,et.j)(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,i,n)),r}return i._value=t,i}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(G(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=L(this.node(),n).tween,i=0,a=o.length;iA&&n.name===t)return new rt([[e]],ct,t,+r);return null}},9529:function(e,t,n){"use strict";n.r(t),n.d(t,{ZoomTransform:function(){return be},zoom:function(){return De},zoomIdentity:function(){return we},zoomTransform:function(){return ke}});var r=n(2996);function o(){}function i(e){return null==e?o:function(){return this.querySelector(e)}}function a(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function s(){return[]}function l(e){return function(t){return t.matches(e)}}var c=Array.prototype.find;function u(){return this.firstElementChild}var f=Array.prototype.filter;function h(){return this.children}function p(e){return new Array(e.length)}function d(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function m(e,t,n,r,o,i){for(var a,s=0,l=t.length,c=i.length;st?1:e>=t?0:NaN}d.prototype={constructor:d,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var _="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:_,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function w(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),b.hasOwnProperty(t)?{space:b[t],local:e}:e}function k(e){return function(){this.removeAttribute(e)}}function x(e){return function(){this.removeAttributeNS(e.space,e.local)}}function O(e,t){return function(){this.setAttribute(e,t)}}function S(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function C(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function A(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function E(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function T(e){return function(){this.style.removeProperty(e)}}function P(e,t,n){return function(){this.style.setProperty(e,t,n)}}function D(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function j(e){return function(){delete this[e]}}function M(e,t){return function(){this[e]=t}}function R(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function L(e){return e.trim().split(/^|\s+/)}function N(e){return e.classList||new I(e)}function I(e){this._node=e,this._names=L(e.getAttribute("class")||"")}function z(e,t){for(var n=N(e),r=-1,o=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var ce=[null];function ue(e,t){this._groups=e,this._parents=t}function fe(e){return"string"==typeof e?new ue([[document.querySelector(e)]],[document.documentElement]):new ue([[e]],ce)}function he(e){e.preventDefault(),e.stopImmediatePropagation()}function pe(e){return((e=Math.exp(e))+1/e)/2}ue.prototype=function(){return new ue([[document.documentElement]],ce)}.prototype={constructor:ue,select:function(e){"function"!=typeof e&&(e=i(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o=S&&(S=O+1);!(x=w[S])&&++S<_;);k._next=x||null}}return(l=new ue(l,o))._enter=c,l._exit=u,l},enter:function(){return new ue(this._enter||this._groups.map(p),this._parents)},exit:function(){return new ue(this._exit||this._groups.map(p),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,i=this.exit();return r="function"==typeof e?e(r):r.append(e+""),null!=t&&(o=t(o)),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(e){if(!(e instanceof ue))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),s=0;s=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=y);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?T:"function"==typeof t?D:P)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||E(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?j:"function"==typeof t?R:M)(e,t)):this.node()[e]},classed:function(e,t){var n=L(e+"");if(arguments.length<2){for(var r=N(this.node()),o=-1,i=n.length;++o=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?ie:oe,r=0;r()=>e;function _e(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function be(e,t,n){this.k=e,this.x=t,this.y=n}be.prototype={constructor:be,scale:function(e){return 1===e?this:new be(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new be(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var we=new be(1,0,0);function ke(e){for(;!e.__zoom;)if(!(e=e.parentNode))return we;return e.__zoom}function xe(e){e.stopImmediatePropagation()}function Oe(e){e.preventDefault(),e.stopImmediatePropagation()}function Se(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function Ce(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function Ae(){return this.__zoom||we}function Ee(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Te(){return navigator.maxTouchPoints||"ontouchstart"in this}function Pe(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function De(){var e,t,n,o=Se,i=Ce,a=Pe,s=Ee,l=Te,c=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=de,p=(0,r.A)("start","zoom","end"),d=500,m=150,g=0,v=10;function y(e){e.property("__zoom",Ae).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",C).on("dblclick.zoom",A).filter(l).on("touchstart.zoom",E).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _(e,t){return(t=Math.max(c[0],Math.min(c[1],t)))===e.k?e:new be(t,e.x,e.y)}function b(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new be(e.k,r,o)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function k(e,t,n,r){e.on("start.zoom",(function(){x(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,o=arguments,a=x(e,o).event(r),s=i.apply(e,o),l=null==n?w(s):"function"==typeof n?n.apply(e,o):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),u=e.__zoom,f="function"==typeof t?t.apply(e,o):t,p=h(u.invert(l).concat(c/u.k),f.invert(l).concat(c/f.k));return function(e){if(1===e)e=f;else{var t=p(e),n=c/t[2];e=new be(n,l[0]-t[0]*n,l[1]-t[1]*n)}a.zoom(null,e)}}))}function x(e,t,n){return!n&&e.__zooming||new O(e,t)}function O(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function S(e,...t){if(o.apply(this,arguments)){var n=x(this,t).event(e),r=this.__zoom,i=Math.max(c[0],Math.min(c[1],r.k*Math.pow(2,s.apply(this,arguments)))),l=(0,ge.A)(e);if(n.wheel)n.mouse[0][0]===l[0]&&n.mouse[0][1]===l[1]||(n.mouse[1]=r.invert(n.mouse[0]=l)),clearTimeout(n.wheel);else{if(r.k===i)return;n.mouse=[l,r.invert(l)],(0,ve.interrupt)(this),n.start()}Oe(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),m),n.zoom("mouse",a(b(_(r,i),n.mouse[0],n.mouse[1]),n.extent,u))}}function C(e,...t){if(!n&&o.apply(this,arguments)){var r=e.currentTarget,i=x(this,t,!0).event(e),s=(0,me.A)(e.view).on("mousemove.zoom",(function(e){if(Oe(e),!i.moved){var t=e.clientX-c,n=e.clientY-f;i.moved=t*t+n*n>g}i.event(e).zoom("mouse",a(b(i.that.__zoom,i.mouse[0]=(0,ge.A)(e,r),i.mouse[1]),i.extent,u))}),!0).on("mouseup.zoom",(function(e){s.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,r=fe(e).on("dragstart.drag",null);t&&(r.on("click.drag",he,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,i.moved),Oe(e),i.event(e).end()}),!0),l=(0,ge.A)(e,r),c=e.clientX,f=e.clientY;!function(e){var t=e.document.documentElement,n=fe(e).on("dragstart.drag",he,!0);"onselectstart"in t?n.on("selectstart.drag",he,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),xe(e),i.mouse=[l,this.__zoom.invert(l)],(0,ve.interrupt)(this),i.start()}}function A(e,...t){if(o.apply(this,arguments)){var n=this.__zoom,r=(0,ge.A)(e.changedTouches?e.changedTouches[0]:e,this),s=n.invert(r),l=n.k*(e.shiftKey?.5:2),c=a(b(_(n,l),r,s),i.apply(this,t),u);Oe(e),f>0?(0,me.A)(this).transition().duration(f).call(k,c,r,e):(0,me.A)(this).call(y.transform,c,r,e)}}function E(n,...r){if(o.apply(this,arguments)){var i,a,s,l,c=n.touches,u=c.length,f=x(this,r,n.changedTouches.length===u).event(n);for(xe(n),a=0;a0?u(b,--y):0,g--,10===_&&(g=1,m--),_}function O(){return _=y2||E(_)>3?"":" "}function M(e,t){for(;--t&&O()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return A(e,C()+(t<6&&32==S()&&32==O()))}function R(e){for(;O();)switch(_){case e:return y;case 34:case 39:34!==e&&39!==e&&R(_);break;case 40:41===e&&R(e);break;case 92:O()}return y}function L(e,t){for(;O()&&e+_!==57&&(e+_!==84||47!==S()););return"/*"+A(t,y-1)+"*"+i(47===e?e:O())}function N(e){for(;!E(S());)O();return A(e,y)}var I="-ms-",z="-moz-",F="-webkit-",B="comm",U="rule",$="decl",q="@keyframes";function W(e,t){for(var n="",r=p(e),o=0;o0&&h(z)-v&&d(_>32?J(z+";",r,n,v-1):J(l(z," ","")+";",r,n,v-2),p);break;case 59:z+=";";default:if(d(I=V(z,t,n,m,g,o,f,T,P=[],R=[],v),a),123===E)if(0===g)G(z,t,I,I,P,a,v,f,R);else switch(99===y&&110===u(z,3)?100:y){case 100:case 108:case 109:case 115:G(e,I,I,r&&d(V(e,I,I,0,0,o,f,T,o,P=[],v),R),o,R,v,f,r?P:R);break;default:G(z,I,I,I,[""],R,0,f,R)}}m=g=_=0,w=A=1,T=z="",v=s;break;case 58:v=1+h(z),_=b;default:if(w<1)if(123==E)--w;else if(125==E&&0==w++&&125==x())continue;switch(z+=i(E),E*w){case 38:A=g>0?1:(z+="\f",-1);break;case 44:f[m++]=(h(z)-1)*A,A=1;break;case 64:45===S()&&(z+=D(O())),y=S(),g=v=h(T=z+=N(C())),E++;break;case 45:45===b&&2==h(z)&&(w=0)}}return a}function V(e,t,n,r,i,a,c,u,h,d,m){for(var g=i-1,v=0===i?a:[""],y=p(v),_=0,b=0,k=0;_0?v[x]+" "+O:l(O,/&\f/g,v[x])))&&(h[k++]=S);return w(e,t,n,0===i?U:u,h,d,m)}function X(e,t,n){return w(e,t,n,B,i(_),f(e,2,-2),0)}function J(e,t,n,r){return w(e,t,n,$,f(e,0,r),f(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,o=0;r=o,o=S(),38===r&&12===o&&(t[n]=1),!E(o);)O();return A(e,y)},K=new WeakMap,Q=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||K.get(n))&&!r){K.set(e,!0);for(var o=[],a=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(E(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=Y(y-1,t,n);break;case 2:e[n]+=D(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=O());return e}(T(e),t))}(t,o),s=n.props,l=0,c=0;l6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+z+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,h(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+F)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===u(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+I+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return F+e+I+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+I+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+I+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+I+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=te(e.value,e.length);break;case q:return W([k(e,{value:l(e.value,"@","@"+F)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return W([k(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return W([k(e,{props:[l(t,/:(plac\w+)/,":"+F+"input-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,I+"input-$1")]})],r)}return""}))}}],re={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function oe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ie=!1,ae=/[A-Z]|^ms/g,se=/_EMO_([^_]+?)_([^]*?)_EMO_/g,le=function(e){return 45===e.charCodeAt(1)},ce=function(e){return null!=e&&"boolean"!=typeof e},ue=oe((function(e){return le(e)?e:e.replace(ae,"-$&").toLowerCase()})),fe=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(se,(function(e,t,n){return de={name:t,styles:n,next:de},t}))}return 1===re[e]||le(e)||"number"!=typeof t||0===t?t:t+"px"},he="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pe(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return de={name:o.name,styles:o.styles,next:de},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)de={name:a.name,styles:a.styles,next:de},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:de}}function ve(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}function ye(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function _e(e,t,n){var r=[],o=ve(e,r,n);return r.length<2?n:o+t(r)}var be=function(e){var t=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||ne,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),l=-1,c=s.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++l0)for(var n,r,o=new Array(n),i=0;i=t||n<0||f&&e-c>=i}function b(){var e=d();if(_(e))return w(e);s=setTimeout(b,function(e){var n=t-(e-l);return f?p(n,i-(e-c)):n}(e))}function w(e){return s=void 0,v&&r?y(e):(r=o=void 0,a)}function k(){var e=d(),n=_(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(b,t),u?y(e):a}(l);if(f)return s=setTimeout(b,t),y(l)}return void 0===s&&(s=setTimeout(b,t)),a}return t=g(t)||0,m(n)&&(u=!!n.leading,i=(f="maxWait"in n)?h(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},k.flush=function(){return void 0===s?a:w(d())},k}},1324:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=1,i=2,a=1/0,s=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object Boolean]",f="[object Date]",h="[object Error]",p="[object Function]",d="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",y="[object Promise]",_="[object RegExp]",b="[object Set]",w="[object String]",k="[object Symbol]",x="[object WeakMap]",O="[object ArrayBuffer]",S="[object DataView]",C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,E=/^\./,T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/\\(\\)?/g,D=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[l]=M[c]=M[O]=M[u]=M[S]=M[f]=M[h]=M[p]=M[m]=M[g]=M[v]=M[_]=M[b]=M[w]=M[x]=!1;var R="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,L="object"==typeof self&&self&&self.Object===Object&&self,N=R||L||Function("return this")(),I=t&&!t.nodeType&&t,z=I&&e&&!e.nodeType&&e,F=z&&z.exports===I&&R.process,B=function(){try{return F&&F.binding("util")}catch(e){}}(),U=B&&B.isTypedArray;function $(e,t,n,r){for(var o=-1,i=e?e.length:0;++o-1},Se.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new Oe,map:new(fe||Se),string:new Oe}},Ce.prototype.delete=function(e){return Fe(this,e).delete(e)},Ce.prototype.get=function(e){return Fe(this,e).get(e)},Ce.prototype.has=function(e){return Fe(this,e).has(e)},Ce.prototype.set=function(e,t){return Fe(this,e).set(e,t),this},Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,r),this},Ae.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.clear=function(){this.__data__=new Se},Ee.prototype.delete=function(e){return this.__data__.delete(e)},Ee.prototype.get=function(e){return this.__data__.get(e)},Ee.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var r=n.__data__;if(!fe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ce(r)}return n.set(e,t),this};var De,je=(De=function(e,t){return e&&Me(e,t,lt)},function(e,t){if(null==e)return e;if(!tt(e))return De(e,t);for(var n=e.length,r=-1,o=Object(e);++rc))return!1;var f=s.get(e);if(f&&s.get(t))return f==t;var h=-1,p=!0,d=a&o?new Ae:void 0;for(s.set(e,t),s.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=s}function ot(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function it(e){return!!e&&"object"==typeof e}function at(e){return"symbol"==typeof e||it(e)&&re.call(e)==k}var st=U?function(e){return function(t){return e(t)}}(U):function(e){return it(e)&&rt(e.length)&&!!M[re.call(e)]};function lt(e){return tt(e)?function(e,t){var n=et(e)||Qe(e)?function(e,t){for(var n=-1,r=Array(e);++n=t||n<0||h&&e-u>=a}function w(){var e=v();if(b(e))return k(e);l=setTimeout(w,function(e){var n=t-(e-c);return h?g(n,a-(e-u)):n}(e))}function k(e){return l=void 0,p&&o?d(e):(o=i=void 0,s)}function x(){var e=v(),n=b(e);if(o=arguments,i=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(w,t),f?d(e):s}(c);if(h)return l=setTimeout(w,t),d(c)}return void 0===l&&(l=setTimeout(w,t)),s}return t=_(t)||0,y(n)&&(f=!!n.leading,a=(h="maxWait"in n)?m(_(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),x.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=c=i=l=void 0},x.flush=function(){return void 0===l?s:k(v())},x}(e,t,{leading:o,maxWait:t,trailing:i})}},7975:function(e){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),i=s,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(r=a+"/"+r,o=47===a.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;oc){if(47===n.charCodeAt(s+f))return n.slice(s+f+1);if(0===f)return n.slice(s+f)}else a>c&&(47===e.charCodeAt(o+f)?u=f:0===f&&(u=0));break}var h=e.charCodeAt(o+f);if(h!==n.charCodeAt(s+f))break;47===h&&(u=f)}var p="";for(f=o+u+1;f<=i;++f)f!==i&&47!==e.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){o=r+1;break}}else-1===l&&(a=!1,l=r+1),s>=0&&(c===n.charCodeAt(s)?-1==--s&&(i=r):(s=-1,i=l))}return o===i?i=l:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){o=r+1;break}}else-1===i&&(a=!1,i=r+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===o&&(i=!1,o=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!i){r=s+1;break}}return-1===n||-1===o||0===a||1===a&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var a=-1,s=0,l=-1,c=!0,u=e.length-1,f=0;u>=r;--u)if(47!==(o=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===o?-1===a?a=u:1!==f&&(f=1):-1!==a&&(f=-1);else if(!c){s=u+1;break}return-1===a||-1===l||0===f||1===f&&a===l-1&&a===s+1?-1!==l&&(n.base=n.name=0===s&&i?e.slice(1,l):e.slice(s,l)):(0===s&&i?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),s>0?n.dir=e.slice(0,s-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},3034:function(e,t,n){"use strict";n.r(t),n.d(t,{resetPropWarnings:function(){return a}});var r,o=n(172);null!=(r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&r.__PREACT_DEVTOOLS__&&r.__PREACT_DEVTOOLS__.attachPreact("10.23.2",o.options,{Fragment:o.Fragment,Component:o.Component});var i={};function a(){i={}}function s(e){return e.type===o.Fragment?"Fragment":"function"==typeof e.type?e.type.displayName||e.type.name:"string"==typeof e.type?e.type:"#text"}var l=[],c=[];function u(){return l.length>0?l[l.length-1]:null}var f=!0;function h(e){return"function"==typeof e.type&&e.type!=o.Fragment}function p(e){for(var t=[e],n=e;null!=n.__o;)t.push(n.__o),n=n.__o;return t.reduce((function(e,t){e+=" in "+s(t);var n=t.__source;return n?e+=" (at "+n.fileName+":"+n.lineNumber+")":f&&console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons."),f=!1,e+"\n"}),"")}var d="function"==typeof WeakMap;function m(e){var t=[];return e.__k?(e.__k.forEach((function(e){e&&"function"==typeof e.type?t.push.apply(t,m(e)):e&&"string"==typeof e.type&&t.push(e.type)})),t):t}function g(e){return e?"function"==typeof e.type?null==e.__?null!=e.__e&&null!=e.__e.parentNode?e.__e.parentNode.localName:"":g(e.__):e.type:""}var v=o.Component.prototype.setState;function y(e){return"table"===e||"tfoot"===e||"tbody"===e||"thead"===e||"td"===e||"tr"===e||"th"===e}o.Component.prototype.setState=function(e,t){return null==this.__v&&null==this.state&&console.warn('Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly.\n\n'+p(u())),v.call(this,e,t)};var _=/^(address|article|aside|blockquote|details|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|main|menu|nav|ol|p|pre|search|section|table|ul)$/,b=o.Component.prototype.forceUpdate;function w(e){var t=e.props,n=s(e),r="";for(var o in t)if(t.hasOwnProperty(o)&&"children"!==o){var i=t[o];"function"==typeof i&&(i="function "+(i.displayName||i.name)+"() {}"),i=Object(i)!==i||i.toString?i+"":Object.prototype.toString.call(i),r+=" "+o+"="+JSON.stringify(i)}var a=t.children;return"<"+n+r+(a&&a.length?">..":" />")}o.Component.prototype.forceUpdate=function(e){return null==this.__v?console.warn('Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application.\n\n'+p(u())):null==this.__P&&console.warn('Can\'t call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n'+p(this.__v)),b.call(this,e)},function(){!function(){var e=o.options.__b,t=o.options.diffed,n=o.options.__,r=o.options.vnode,i=o.options.__r;o.options.diffed=function(e){h(e)&&c.pop(),l.pop(),t&&t(e)},o.options.__b=function(t){h(t)&&l.push(t),e&&e(t)},o.options.__=function(e,t){c=[],n&&n(e,t)},o.options.vnode=function(e){e.__o=c.length>0?c[c.length-1]:null,r&&r(e)},o.options.__r=function(e){h(e)&&c.push(e),i&&i(e)}}();var e=!1,t=o.options.__b,n=o.options.diffed,r=o.options.vnode,a=o.options.__r,u=o.options.__e,f=o.options.__,v=o.options.__h,b=d?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,k=[];o.options.__e=function(e,t,n,r){if(t&&t.__c&&"function"==typeof e.then){var o=e;e=new Error("Missing Suspense. The throwing component was: "+s(t));for(var i=t;i;i=i.__)if(i.__c&&i.__c.__c){e=o;break}if(e instanceof Error)throw e}try{(r=r||{}).componentStack=p(t),u(e,t,n,r),"function"!=typeof e.then&&setTimeout((function(){throw e}))}catch(e){throw e}},o.options.__=function(e,t){if(!t)throw new Error("Undefined parent passed to render(), this is the second argument.\nCheck if the element is available in the DOM/has the correct id.");var n;switch(t.nodeType){case 1:case 11:case 9:n=!0;break;default:n=!1}if(!n){var r=s(e);throw new Error("Expected a valid HTML node as a second argument to render.\tReceived "+t+" instead: render(<"+r+" />, "+t+");")}f&&f(e,t)},o.options.__b=function(n){var r=n.type;if(e=!0,void 0===r)throw new Error("Undefined component passed to createElement()\n\nYou likely forgot to export your component or might have mixed up default and named imports"+w(n)+"\n\n"+p(n));if(null!=r&&"object"==typeof r){if(void 0!==r.__k&&void 0!==r.__e)throw new Error("Invalid type passed to createElement(): "+r+"\n\nDid you accidentally pass a JSX literal as JSX twice?\n\n let My"+s(n)+" = "+w(r)+";\n let vnode = ;\n\nThis usually happens when you export a JSX literal and not the component.\n\n"+p(n));throw new Error("Invalid type passed to createElement(): "+(Array.isArray(r)?"array":r))}if(void 0!==n.ref&&"function"!=typeof n.ref&&"object"!=typeof n.ref&&!("$$typeof"in n))throw new Error('Component\'s "ref" property should be a function, or an object created by createRef(), but got ['+typeof n.ref+"] instead\n"+w(n)+"\n\n"+p(n));if("string"==typeof n.type)for(var o in n.props)if("o"===o[0]&&"n"===o[1]&&"function"!=typeof n.props[o]&&null!=n.props[o])throw new Error("Component's \""+o+'" property should be a function, but got ['+typeof n.props[o]+"] instead\n"+w(n)+"\n\n"+p(n));if("function"==typeof n.type&&n.type.propTypes){if("Lazy"===n.type.displayName&&b&&!b.lazyPropTypes.has(n.type)){var a="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var l=n.type();b.lazyPropTypes.set(n.type,!0),console.warn(a+"Component wrapped in lazy() is "+s(l))}catch(e){console.warn(a+"We will log the wrapped component's name once it is loaded.")}}var c=n.props;n.type.__f&&delete(c=function(e,t){for(var n in t)e[n]=t[n];return e}({},c)).ref,function(e,t,n,r,o){Object.keys(e).forEach((function(n){var a;try{a=e[n](t,n,r,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){a=e}a&&!(a.message in i)&&(i[a.message]=!0,console.error("Failed prop type: "+a.message+(o&&"\n"+o()||"")))}))}(n.type.propTypes,c,0,s(n),(function(){return p(n)}))}t&&t(n)};var x,O=0;o.options.__r=function(t){a&&a(t),e=!0;var n=t.__c;if(n===x?O++:O=1,O>=25)throw new Error("Too many re-renders. This is limited to prevent an infinite loop which may lock up your browser. The component causing this is: "+s(t));x=n},o.options.__h=function(t,n,r){if(!t||!e)throw new Error("Hook can only be invoked from render methods.");v&&v(t,n,r)};var S=function(e,t){return{get:function(){var n="get"+e+t;k&&k.indexOf(n)<0&&(k.push(n),console.warn("getting vnode."+e+" is deprecated, "+t))},set:function(){var n="set"+e+t;k&&k.indexOf(n)<0&&(k.push(n),console.warn("setting vnode."+e+" is not allowed, "+t))}}},C={nodeName:S("nodeName","use vnode.type"),attributes:S("attributes","use vnode.props"),children:S("children","use vnode.props.children")},A=Object.create({},C);o.options.vnode=function(e){var t=e.props;if(null!==e.type&&null!=t&&("__source"in t||"__self"in t)){var n=e.props={};for(var o in t){var i=t[o];"__source"===o?e.__source=i:"__self"===o?e.__self=i:n[o]=i}}e.__proto__=A,r&&r(e)},o.options.diffed=function(t){var r,o=t.type,i=t.__;if(t.__k&&t.__k.forEach((function(e){if("object"==typeof e&&e&&void 0===e.type){var n=Object.keys(e).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+n+"}.\n\n"+p(t))}})),t.__c===x&&(O=0),"string"==typeof o&&(y(o)||"p"===o||"a"===o||"button"===o)){var a=g(i);if(""!==a&&y(o))"table"===o&&"td"!==a&&y(a)?(console.log(a,i.__e),console.error("Improper nesting of table. Your

should not have a table-node parent."+w(t)+"\n\n"+p(t))):"thead"!==o&&"tfoot"!==o&&"tbody"!==o||"table"===a?"tr"===o&&"thead"!==a&&"tfoot"!==a&&"tbody"!==a?console.error("Improper nesting of table. Your should have a parent."+w(t)+"\n\n"+p(t)):"td"===o&&"tr"!==a?console.error("Improper nesting of table. Your parent."+w(t)+"\n\n"+p(t)):"th"===o&&"tr"!==a&&console.error("Improper nesting of table. Your ."+w(t)+"\n\n"+p(t)):console.error("Improper nesting of table. Your should have a
should have a
should have a
parent."+w(t)+"\n\n"+p(t));else if("p"===o){var l=m(t).filter((function(e){return _.test(e)}));l.length&&console.error("Improper nesting of paragraph. Your

should not have "+l.join(", ")+"as child-elements."+w(t)+"\n\n"+p(t))}else"a"!==o&&"button"!==o||-1!==m(t).indexOf(o)&&console.error("Improper nesting of interactive content. Your <"+o+"> should not have other "+("a"===o?"anchor":"button")+" tags as child-elements."+w(t)+"\n\n"+p(t))}if(e=!1,n&&n(t),null!=t.__k)for(var c=[],u=0;u2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return k(e,s,o,i,null)}function k(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(s),s}function x(){return{current:null}}function O(e){return e.children}function S(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var n;tt&&s.sort(u));T.__r=0}function P(e,t,n,r,o,i,a,s,l,c,u){var f,h,p,d,v,y=r&&r.__k||g,_=t.length;for(n.__d=l,D(n,t,y),l=n.__d,f=0;f<_;f++)null!=(p=n.__k[f])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?m:y[p.__i]||m,p.__i=f,z(e,p,h,o,i,a,s,l,c,u),d=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&U(h.ref,null,p),u.push(p.ref,p.__c||d,p)),null==v&&null!=d&&(v=d),65536&p.__u||h.__k===p.__k?l=j(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:d&&(l=d.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=v}function D(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,u=c,f=0;for(e.__k=[],r=0;r0?k(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=R(o,n,a,u),o.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&f--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s==a-1?f--:s==a+1?f++:s>a?u>l-a?f+=s-a:f--:s(null==l||131072&l.__u?0:1))for(;a>=0||s=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s2&&(l.children=arguments.length>3?r.call(arguments,2):n),k(e.type,l,o||e.key,i||e.ref,null)}function G(e,t){var n={__c:t="__cC"+d++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,E(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=g.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,a=function(e){return null!=e&&null==e.constructor},S.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=_({},this.state),"function"==typeof e&&(e=e(_({},n),this.props)),e&&_(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),E(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},S.prototype.render=O,s=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},T.__r=0,f=0,h=I(!1),p=I(!0),d=0},5697:function(e,t,n){"use strict";n.r(t);var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function i(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var a=function(e,t){this.target=t,this.type=e},s=function(e){function t(t,n){var r=e.call(this,"error",n)||this;return r.message=t.message,r.error=t,r}return o(t,e),t}(a),l=function(e){function t(t,n,r){void 0===t&&(t=1e3),void 0===n&&(n="");var o=e.call(this,"close",r)||this;return o.wasClean=!0,o.code=t,o.reason=n,o}return o(t,e),t}(a),c=function(){if("undefined"!=typeof WebSocket)return WebSocket},u={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+4e3*Math.random(),minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},f=function(){function e(e,t,n){var r=this;void 0===n&&(n={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(e){r._debug("open event");var t=r._options.minUptime,n=void 0===t?u.minUptime:t;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout((function(){return r._acceptOpen()}),n),r._ws.binaryType=r._binaryType,r._messageQueue.forEach((function(e){return r._ws.send(e)})),r._messageQueue=[],r.onopen&&r.onopen(e),r._listeners.open.forEach((function(t){return r._callEventListener(e,t)}))},this._handleMessage=function(e){r._debug("message event"),r.onmessage&&r.onmessage(e),r._listeners.message.forEach((function(t){return r._callEventListener(e,t)}))},this._handleError=function(e){r._debug("error event",e.message),r._disconnect(void 0,"TIMEOUT"===e.message?"timeout":void 0),r.onerror&&r.onerror(e),r._debug("exec error listeners"),r._listeners.error.forEach((function(t){return r._callEventListener(e,t)})),r._connect()},this._handleClose=function(e){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(e),r._listeners.close.forEach((function(t){return r._callEventListener(e,t)}))},this._url=e,this._protocols=t,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){return this._messageQueue.reduce((function(e,t){return"string"==typeof t?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e}),0)+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),this._ws?this._ws.readyState!==this.CLOSED?this._ws.close(e,t):this._debug("close: already closed"):this._debug("close enqueued: no ws instance")},e.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,this._ws&&this._ws.readyState!==this.CLOSED?(this._disconnect(e,t),this._connect()):this._connect()},e.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,n=void 0===t?u.maxEnqueuedMessages:t;this._messageQueue.length=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(r),i=o.next();!i.done;i=o.next()){var a=i.value;this._callEventListener(e,a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((function(e){return e!==t})))},e.prototype._debug=function(){for(var e=[],t=0;t"],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=void 0===t?u.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,o=void 0===r?u.minReconnectionDelay:r,i=e.maxReconnectionDelay,a=void 0===i?u.maxReconnectionDelay:i,s=0;return this._retryCount>0&&(s=o*Math.pow(n,this._retryCount-1))>a&&(s=a),this._debug("next delay",s),s},e.prototype._wait=function(){var e=this;return new Promise((function(t){setTimeout(t,e._getNextDelay())}))},e.prototype._getNextUrl=function(e){if("string"==typeof e)return Promise.resolve(e);if("function"==typeof e){var t=e();if("string"==typeof t)return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},e.prototype._connect=function(){var e=this;if(!this._connectLock&&this._shouldReconnect){this._connectLock=!0;var t=this._options,n=t.maxRetries,r=void 0===n?u.maxRetries:n,o=t.connectionTimeout,i=void 0===o?u.connectionTimeout:o,a=t.WebSocket,s=void 0===a?c():a;if(this._retryCount>=r)this._debug("max retries reached",this._retryCount,">=",r);else{if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),void 0===(l=s)||!l||2!==l.CLOSING)throw Error("No valid WebSocket class provided");var l;this._wait().then((function(){return e._getNextUrl(e._url)})).then((function(t){e._closeCalled||(e._debug("connect",{url:t,protocols:e._protocols}),e._ws=e._protocols?new s(t,e._protocols):new s(t),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout((function(){return e._handleTimeout()}),i))}))}}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new s(Error("TIMEOUT"),this))},e.prototype._disconnect=function(e,t){if(void 0===e&&(e=1e3),this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new l(e,t,this))}catch(e){}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(e,t){"handleEvent"in t?t.handleEvent(e):t(e)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();t.default=f},78:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(5843));t.default=({mapZoomFactor:e,annotations:t})=>(0,o.h)("div",{"data-testid":"meridian--private--annotation-layer"},t.map(((t,n)=>"point"===t.type?(0,o.h)(i.default,Object.assign({key:n},t,{mapZoomFactor:e})):null)))},5843:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=n(7746),a=({mapZoomFactor:e,x:t,y:n,size:o=24,backgroundColor:a="hsl(207, 65%, 46%)",backgroundSize:c="cover",backgroundImage:u,title:f,onClick:h,data:p={}})=>(0,r.h)("div",{className:s,style:{"--meridian-annotationPoint-x":`${t}px`,"--meridian-annotationPoint-y":`${n}px`,"--meridian-annotationPoint-scale":1/e,"--meridian-annotationPoint-size":`${o}px`,"--meridian-annotationPoint-backgroundColor":a,"--meridian-annotationPoint-backgroundSize":c,"--meridian-annotationPoint-backgroundImage":u?`url('${u}')`:"none",cursor:h?"pointer":"initial"},onClick:h?()=>(0,i.asyncClientCall)(h,p):void 0,"data-testid":"meridian--private--annotation-point"},f?(0,r.h)("div",{className:l,"data-testid":"meridian--private--annotation-point-title"},f):null),s=(0,o.css)({label:"AnnotationPoint",position:"absolute",top:"var(--meridian-annotationPoint-y)",left:"var(--meridian-annotationPoint-x)",transform:"translate(-50%, -50%) scale(var(--meridian-annotationPoint-scale))",width:"var(--meridian-annotationPoint-size)",height:"var(--meridian-annotationPoint-size)",backgroundColor:"var(--meridian-annotationPoint-backgroundColor)",backgroundImage:"var(--meridian-annotationPoint-backgroundImage)",backgroundSize:"var(--meridian-annotationPoint-backgroundSize)",backgroundRepeat:"no-repeat",backgroundPosition:"center",borderRadius:9999,userSelect:"none"}),l=(0,o.css)(o.mixins.textStrokeWhite,{label:"AnnotationPoint-Label",marginLeft:"50%",position:"absolute",minWidth:55,maxWidth:120,fontSize:14,textAlign:"center",marginTop:"var(--meridian-annotationPoint-size)",paddingTop:4,color:"#222",userSelect:"none",transform:"translate(-50%, 0)",fontWeight:"bold"});a.displayName="AnnotationPoint",t.default=a},2150:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(1324)),i=n(172),a=r(n(2930)),s=r(n(9594)),l=r(n(8828)),c=r(n(6933)),u=n(2785),f=r(n(7866)),h=n(7746);class p extends i.Component{constructor(){super(...arguments),this.state={searchFilter:"",searchType:this.props.showTags?"tags":"placemarks"},this.searchInputRef=(0,i.createRef)(),this.setRadioFilter=e=>{this.setState({searchType:e})}}componentDidMount(){this.searchInputRef.current&&this.searchInputRef.current.focus()}render(){const{floors:e,tagsLoading:t,placemarksLoading:n,toggleAssetListOverlay:r,showTags:a,showPlacemarks:s,language:u}=this.props,p=f.default.lookup("tags",u),g=f.default.lookup("search_tags",u),v=f.default.lookup("placemarks",u),y=f.default.lookup("search_placemarks",u),{searchFilter:_}=this.state,b=(0,h.createSearchMatcher)(_),w=(0,o.default)(e,(e=>e.id)),S={};for(const t of e)S[t.id]=[t.group_name||h.uiText.unnamedBuilding,h.uiText.enDash,t.name].join(" ");return(0,i.h)(l.default,{position:"right",onCloseClicked:()=>{r({open:!1})}},(0,i.h)(c.default,{placeholder:"tags"===this.state.searchType?g:y,value:_,onChange:e=>{this.setState({searchFilter:e})}}),(0,i.h)("div",{className:O(Boolean(a&&s))},a?(0,i.h)(i.Fragment,null,(0,i.h)("input",{type:"radio",name:"searchType",id:"tags",className:x,checked:"tags"===this.state.searchType,onChange:e=>{e.target.checked&&this.setRadioFilter("tags")}}),(0,i.h)("label",{for:"tags",className:k},p)):null,s?(0,i.h)(i.Fragment,null,(0,i.h)("input",{type:"radio",name:"searchType",id:"placemarks",className:x,checked:"placemarks"===this.state.searchType,onChange:e=>{e.target.checked&&this.setRadioFilter("placemarks")}}),(0,i.h)("label",{for:"placemarks",className:k},v)):null),(()=>"tags"===this.state.searchType?(0,i.h)(d,Object.assign({},this.props,{floorToGroup:S,floorsByID:w,match:b,loading:t})):(0,i.h)(m,Object.assign({},this.props,{floorToGroup:S,floorsByID:w,match:b,loading:n})))())}}function d(e){const{currentFloorID:t,updateMap:n,tagOptions:r={},tags:l,loading:c,onTagClick:p,toggleAssetListOverlay:d,match:m,floorsByID:k,floorToGroup:x,language:O}=e,S=f.default.lookup("no_results_found",O),C=l.filter((e=>{const t=k[e.map_id][0];return!t||t.published})).filter((e=>m(e.name||"")||m(e.mac)||(0,h.getTagLabels)(e).some(m))).filter((e=>!0===r.showControlTags||!e.is_control_tag)).sort(((e,t)=>e.namet.name?1:0)),A=(0,o.default)(C,(e=>x[e.map_id])),E=Object.keys(A).sort();return E.forEach(((e,n)=>{if(A[e][0].map_id===t){const[e]=E.splice(n,1);E.unshift(e)}})),c?(0,i.h)("div",{className:w},(0,i.h)(a.default,null)):0===C.length?(0,i.h)("div",{className:w},S,"."):(0,i.h)("div",{className:v},E.map((e=>(0,i.h)("div",{key:e},(0,i.h)("div",{className:g},e),A[e].map((e=>(0,i.h)("button",{key:e.id,"data-testid":`meridian--private--overlay-tag-${e.id}`,className:y,onClick:()=>{n({floorID:e.map_id,tags:Object.assign(Object.assign({},r),{filter:()=>!0})}),p(e),d({open:!1})}},(0,i.h)("div",{className:_},(0,i.h)("div",{className:b},e.name||e.mac),(0,i.h)(s.default,{align:"right",labels:(0,h.getTagLabels)(e),fontSize:u.theme.fontSizeSmallest})))))))))}function m(e){const{currentFloorID:t,updateMap:n,placemarkOptions:r={},toggleAssetListOverlay:s,floorToGroup:l,match:c,placemarks:u,onPlacemarkClick:h,floorsByID:p,loading:d,language:m}=e,_=f.default.lookup("no_results_found",m),k=u.filter((e=>{const t=p[e.map][0];return!t||t.published})).filter((e=>e.is_searchable||null===e.is_searchable||void 0===e.is_searchable)).filter((e=>"exclusion_area"!==e.type&&(!0===r.showHiddenPlacemarks||!e.hide_on_map))).filter((e=>c(e.name||"")||c(e.type_name||""))).sort(((e,t)=>e.namet.name?1:0)),x=(0,o.default)(k,(e=>l[e.map])),O=Object.keys(x).sort();return O.forEach(((e,n)=>{if(x[e][0].map_id===t){const[e]=O.splice(n,1);O.unshift(e)}})),d?(0,i.h)("div",{className:w},(0,i.h)(a.default,null)):0===k.length?(0,i.h)("div",{className:w},_,"."):(0,i.h)("div",{className:v},O.map((e=>(0,i.h)("div",{key:e},(0,i.h)("div",{className:g},e),x[e].map((e=>(0,i.h)("button",{key:e.id,"data-testid":`meridian--private--overlay-tag-${e.id}`,className:y,onClick:()=>{n({floorID:e.map,placemarks:Object.assign(Object.assign({},r),{filter:()=>!0})}),h(e),s({open:!1})}},(0,i.h)("div",{className:b},e.name||e.type_name))))))))}const g=(0,u.css)({label:"overlay-building-name",top:0,position:"sticky",textTransform:"uppercase",fontWeight:"bold",color:u.theme.brandBlue,background:u.theme.almostWhite,fontSize:u.theme.fontSizeSmaller,padding:10}),v=(0,u.css)({label:"asset-list",overflowY:"auto",flex:"1 1 auto"}),y=(0,u.css)(u.mixins.buttonReset,u.mixins.focusRingMenuItem,u.mixins.buttonHoverActive,{label:"overlay-asset-button",minHeight:56,padding:10,paddingLeft:20,display:"block",width:"100%",textAlign:"left"}),_=(0,u.css)(u.mixins.flexRow,{label:"overlay-asset-button-inner",alignItems:"center"}),b=(0,u.css)({label:"overlay-asset-button-name",flex:"1 1 auto"}),w=(0,u.css)({label:"overlay-asset-list-empty",padding:"60px 20px",textAlign:"center",fontSize:u.theme.fontSizeBigger,color:u.theme.textColorBluish}),k=(0,u.css)({label:"overlay-radio-label",color:"white",padding:"2px 10px 0px 4px"}),x=(0,u.css)({label:"overlay-radio-button",WebkitAppearance:"none",position:"relative",boxSizing:"border-box",border:"1px solid rgb(224,224,225)",width:16,height:16,background:"white",borderRadius:9999,cursor:"pointer",boxShadow:"inset 0 2px 2px rgba(0, 0, 0, 0.1)","&:focus":{outline:"none",borderColor:u.theme.searchBarColor,borderWidth:2},"&:checked":{"--circle-color":u.theme.searchBarColor,"--circle-gap":"4px"},"&:checked::after":{content:'" "',position:"absolute",width:"calc(100% - var(--circle-gap))",height:"calc(100% - var(--circle-gap))",left:"calc(var(--circle-gap) / 2)",top:"calc(var(--circle-gap) / 2)",background:"var(--circle-color)",borderRadius:9999},"&:checked:focus":{"--circle-gap":"4px","--circle-color":u.theme.searchBarColor,borderColor:u.theme.searchBarColor,borderWidth:2}}),O=e=>(0,u.css)({label:"overlay-radio-container",display:e?"flex":"none",flexDirection:"row",justifyContent:"baseline",paddingLeft:10,paddingBottom:10,backgroundColor:"rgb(105, 146, 176)",alignItems:"center"});t.default=p},324:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(9594)),a=r(n(8828)),s=n(2785),l=n(7746),c=n(4221),u=(0,s.css)({label:"overlay-image",width:"100%",backgroundColor:"white",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}),f=(0,s.css)({label:"overlay-name",fontSize:22}),h=(0,s.css)({label:"overlay-content",padding:"0 20px 15px 20px",overflow:"auto"}),p=(0,s.css)({label:"overlay-tag-data",fontSize:14}),d=(0,s.css)({label:"overlay-placemark-data",fontSize:14});t.default=({kind:e,item:t,toggleDetailsOverlay:n})=>{const r="placemark"===e&&t.image_url?{backgroundImage:`url('${t.image_url}')`,backgroundSize:"contain",height:300,minHeight:220}:"placemark"===e?{backgroundSize:"contain",backgroundImage:`url('${(0,c.placemarkIconURL)(t.type)}')`,backgroundColor:`#${t.color}`,height:300,minHeight:220}:"tag"===e&&t.image_url?{backgroundImage:`url('${t.image_url}')`,height:300}:{background:s.theme.brandBrightBlue,height:300};return(0,o.h)(a.default,{position:"left",onCloseClicked:()=>{n({open:!1})}},(0,o.h)("div",{className:u,style:r}),(0,o.h)("div",{className:(0,s.cx)("meridian-overlay-content",h)},(0,o.h)("p",{className:(0,s.cx)("meridian-overlay-item-name",f)},t.name||t.type_name),"tag"===e?(0,o.h)("div",{className:(0,s.cx)("meridian-overlay-tag-data",p)},(0,o.h)(i.default,{align:"left",labels:(0,l.getTagLabels)(t),fontSize:s.theme.fontSize}),(0,o.h)("p",null,"MAC: ",t.mac)):(0,o.h)("div",{className:(0,s.cx)("meridian-overlay-placemark-description",d),dangerouslySetInnerHTML:function(){if("placemark"===e&&t.description)return{__html:t.description}}()})))}},8812:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(4145)),a=n(2785),s=(0,a.css)(a.mixins.rounded,{label:"error",position:"absolute",zIndex:4,top:"35%",left:0,right:0,margin:"0 auto",minWidth:300,maxWidth:420,border:"1px solid #dfe1ef",paddingTop:15,paddingRight:20,paddingBottom:15,paddingLeft:25,background:a.theme.white,boxShadow:"0 0 1px rgba(0, 0, 0, 0.15), inset 4px 0 0 #d82e1f"}),l=(0,a.css)(a.mixins.buttonReset,{label:"close",cursor:"pointer",float:"right",width:38,height:38,marginLeft:15,padding:4,fill:"#c3c5c8","&:hover":{fill:a.theme.textColorBluish,cursor:"pointer"},"&:focus":{outline:0}});t.default=({toggleErrorOverlay:e,messages:t=["Unknown"]})=>(0,o.h)("div",{className:s},(0,o.h)("button",{className:l,onClick:()=>{e({open:!1})}},(0,o.h)(i.default,null)),(0,o.h)("p",null,"Sorry, something went wrong. It might be related to:"),(0,o.h)("ul",null,t.map(((e,t)=>(0,o.h)("li",{key:t},e)))))},3169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=(0,o.css)({label:"floor-and-tag-controls",display:"flex",flexDirection:"column",position:"absolute",zIndex:1,right:15,top:15}),a=(0,o.css)(o.mixins.buttonReset,o.mixins.shadow,o.mixins.rounded,o.mixins.buttonHoverActive,o.mixins.focusRing,{label:"control",cursor:"pointer",background:"white",padding:4,width:40,height:40,border:0,fontSize:20,fontWeight:200,fill:o.theme.brandBrightBlue}),s=(0,o.css)(a,{marginTop:10});t.default=({toggleFloorOverlay:e,toggleAssetListOverlay:t,showFloors:n,showSearch:l})=>(0,r.h)("div",{className:i},l?(0,r.h)("button",{className:(0,o.cx)("meridian-tag-control",a),"data-testid":"meridian--private--tag-control",onClick:()=>{t({open:!0})}},(0,r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},(0,r.h)("path",{d:"M26.19 25l-4.12-4.12a7.29 7.29 0 001.44-4.35 7.11 7.11 0 00-7-7.2 7.11 7.11 0 00-7 7.2 7.11 7.11 0 007 7.2 6.83 6.83 0 004.16-1.42l4.1 4.1A1 1 0 0026.19 25zm-14.68-8.49a5.11 5.11 0 015-5.2 5.11 5.11 0 015 5.2 5.11 5.11 0 01-5 5.2 5.11 5.11 0 01-5-5.2z"}))):null,n?(0,r.h)("button",{className:(0,o.cx)("meridian-floor-control",n&&l?s:a),"data-testid":"meridian--private--floor-control",onClick:()=>{e({open:!0})}},(0,r.h)("svg",{viewBox:"0 0 36 36"},(0,r.h)("path",{d:"M28.4 14.09a1.84 1.84 0 0 0-.62-.39l-8.48-3.33a3.61 3.61 0 0 0-1.3-.22 3.56 3.56 0 0 0-1.3.22L8.22 13.7a1.83 1.83 0 0 0-.62.39 1.24 1.24 0 0 0 0 1.82 1.85 1.85 0 0 0 .62.39l8.48 3.34a3.92 3.92 0 0 0 2.59 0l8.48-3.34a1.86 1.86 0 0 0 .62-.39 1.24 1.24 0 0 0 0-1.82m-9.83 3.68a2 2 0 0 1-1.13 0l-7-2.77 7-2.77a2 2 0 0 1 1.13 0l7 2.77zm9.83 2.32a1.24 1.24 0 0 1 0 1.82 1.86 1.86 0 0 1-.62.39l-8.47 3.33a3.92 3.92 0 0 1-2.59 0L8.22 22.3a1.85 1.85 0 0 1-.62-.39 1.24 1.24 0 0 1 0-1.82 1.83 1.83 0 0 1 .62-.39L10 19l2.73 1.08-2.34.92 7 2.77a2 2 0 0 0 1.13 0l7-2.77-2.35-.92L26 19l1.79.7a1.84 1.84 0 0 1 .62.39"}))):null)},6670:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=n(7746),a=(0,o.css)(o.mixins.buttonReset,o.mixins.rounded,o.mixins.overflowEllipses,{label:"floor-control",background:"rgba(0, 0, 0, 0.4)",color:"white",textShadow:"0 0 2px black",position:"absolute",zIndex:1,bottom:15,left:"50%",transform:"translate(-50%, 0)",textAlign:"center",maxWidth:300,padding:"8px 16px",border:0,fontSize:16});t.default=({buildingName:e,floorName:t})=>(0,r.h)("div",{className:(0,o.cx)("meridian-floor-label",a),"data-testid":"meridian--private--floor-label"},e||i.uiText.unnamedBuilding," ",i.uiText.enDash," ",t)},4144:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(1324)),i=n(172),a=r(n(8828)),s=r(n(6933)),l=n(2785),c=r(n(7866)),u=n(7746);class f extends i.Component{constructor(){super(...arguments),this.state={searchFilter:""},this.searchInputRef=(0,i.createRef)()}componentDidMount(){this.searchInputRef.current&&this.searchInputRef.current.focus()}render(){const{currentFloorID:e,toggleFloorOverlay:t,selectFloorByID:n,floors:r,language:f}=this.props,y=c.default.lookup("search_floors",f),_=c.default.lookup("no_results_found",f),{searchFilter:b}=this.state,w=(0,u.createSearchMatcher)(b),k=r.filter((e=>e.published&&(w(e.name||"")||w(e.group_name||u.uiText.unnamedBuilding)))),x=(0,o.default)(k,"group_name"),O=Object.keys(x).sort();""===O[0]&&(O.push(O[0]),O.shift());for(const e of O)x[e].sort(((e,t)=>Math.sign(e.level-t.level))),this.props.sortDescending&&x[e].reverse();return(0,i.h)(a.default,{position:"right",onCloseClicked:()=>{t({open:!1})}},(0,i.h)(s.default,{placeholder:y,value:b,onChange:e=>{this.setState({searchFilter:e})}}),0===O.length?(0,i.h)("div",{className:m},_,"."):(0,i.h)("div",{className:p,"data-testid":"meridian--private--floors-list"},O.map((r=>(0,i.h)("div",{key:r},(0,i.h)("div",{className:h},r||u.uiText.unnamedBuilding),x[r].map((r=>(0,i.h)("button",{key:r.name,onClick:()=>{n(r.id),t({open:!1})},className:(0,l.cx)(d,r.id===e?g:void 0),"data-testid":r.id===e?"meridian--private--current-floor":"meridian--private--floor"},r.name,r.id===e?(0,i.h)("svg",{viewBox:"0 0 10 7",className:v},(0,i.h)("path",{d:"M3.9 7C3.7 7 3.4 6.9 3.2 6.7L0.3 3.8C-0.1 3.4 -0.1 2.8 0.3 2.4C0.7 2 1.3 2 1.7 2.4L3.9 4.6L8.2 0.3C8.6 -0.1 9.2 -0.1 9.6 0.3C10 0.7 10 1.3 9.6 1.7L4.6 6.7C4.4 6.9 4.2 7 3.9 7Z"})):null))))))))}}const h=(0,l.css)({label:"overlay-building-name",textTransform:"uppercase",fontWeight:"bold",top:0,position:"sticky",color:l.theme.brandBlue,background:l.theme.almostWhite,fontSize:l.theme.fontSizeSmaller,padding:10}),p=(0,l.css)({label:"floors-list",overflowY:"auto"}),d=(0,l.css)(l.mixins.buttonReset,l.mixins.focusRingMenuItem,l.mixins.buttonHoverActive,{label:"overlay-floor-button",padding:10,paddingLeft:20,display:"block",width:"100%",textAlign:"left"}),m=(0,l.css)({label:"overlay-floor-list-empty",padding:"60px 20px",textAlign:"center",fontSize:l.theme.fontSizeBigger,color:l.theme.textColorBluish}),g=(0,l.css)({label:"overlay-floor-button-curent-floor",color:l.theme.brandBrightBlue,fill:"currentcolor"}),v=(0,l.css)({label:"floor-checkmark",verticalAlign:"middle",marginLeft:"0.5em",width:"0.8em",height:"0.8em"});t.default=f},4145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172);t.default=()=>(0,r.h)("svg",{viewBox:"0 0 36 36"},(0,r.h)("path",{d:"M19.41 18l6.36-6.36a1 1 0 0 0-1.41-1.41L18 16.59l-6.36-6.36a1 1 0 0 0-1.41 1.41L16.59 18l-6.36 6.36a1 1 0 1 0 1.41 1.41L18 19.41l6.36 6.36a1 1 0 0 0 1.41-1.41z"}))},2930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=(0,o.keyframes)({from:{transform:"rotate(0turn)"},to:{transform:"rotate(1turn)"}}),a=(0,o.css)({label:"spinner",width:22,height:22,margin:"0 auto",border:"2px rgba(227, 227, 227, 0.9) solid",borderTop:"2px #2e7cbe solid",borderRadius:"50%",animation:`${i} 600ms infinite linear`});t.default=()=>(0,r.h)("div",{className:a})},9594:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=(0,o.css)({label:"label-list",fontSize:"var(--meridian-labelList-fontSize)",marginTop:8,marginLeft:3,textAlign:"var(--meridian-labelList-textAlign)",flex:"1 1 auto"}),a=(0,o.css)(o.mixins.maxRounded,{label:"label",display:"inline-block",padding:"3px 8px",marginBottom:8,marginRight:8,background:"rgba(0, 0, 0, 0.035)",border:"1px solid rgba(0, 0, 0, 0.05)",color:"#3b3b3b"});t.default=({align:e,labels:t,fontSize:n=o.theme.fontSize})=>0===t.length?null:(0,r.h)("div",{className:i,style:{"--meridian-labelList-fontSize":n,"--meridian-labelList-textAlign":e}},t.map(((e,t)=>(0,r.h)("div",{key:t,className:a},e))))},4905:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=n(2785),a=r(n(2930)),s=(0,i.css)({label:"loading",position:"absolute",zIndex:1,width:30,left:0,top:"45%",right:0,overflow:"hidden",margin:"0 auto",color:i.theme.textColor,textAlign:"center",pointerEvents:"none"});t.default=()=>(0,o.h)("div",{className:s},(0,o.h)(a.default,null))},529:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(9062);n(7662);const i=n(9529),a=n(172),s=r(n(78)),l=r(n(324)),c=r(n(8812)),u=r(n(3169)),f=r(n(6670)),h=r(n(4144)),p=r(n(4905)),d=r(n(6805)),m=r(n(7387)),g=n(2785),v=r(n(8901)),y=r(n(2150)),_=n(7746),b=r(n(5481)),w=r(n(181));class k extends a.Component{constructor(){super(...arguments),this.state={mapImageURL:void 0,isFloorOverlayOpen:!1,isAssetListOverlayOpen:!1,isMapMarkerOverlayOpen:!1,isErrorOverlayOpen:!1,isPanningOrZooming:!1,loadingSources:{},errors:[],mapTransform:"",mapZoomFactor:.5,floors:[],allPlacemarkData:[],svgURL:void 0,tagsConnection:void 0,tagsStatus:"Connecting",selectedItem:void 0,areTagsLoading:Boolean(this.props.showSearchControl&&this.props.loadTags),arePlacemarksLoading:Boolean(this.props.showSearchControl&&this.props.loadPlacemarks),allTagData:[]},this.isMounted=!1,this.isLoaded=!1,this.fetchAllTagsInitialized=!1,this.fetchAllPlacemarksInitialized=!1,this.mapRef=(0,a.createRef)(),this.mapContainerRef=(0,a.createRef)(),this.mapImageref=(0,a.createRef)(),this.debouncedResizeFn=(0,w.default)(this.handleResize.bind(this),250),this.onTagsInit=()=>{this.props.showSearchControl&&this.props.loadTags&&this.fetchAllTags()},this.onPlacemarksInit=()=>{this.props.showSearchControl&&this.props.loadPlacemarks&&this.fetchAllPlacemarks()},this.updateMap=e=>{const{update:t}=this.props;t(e)},this.toggleAssetListOverlay=({open:e})=>{this.isMounted&&this.setState({isAssetListOverlayOpen:e})},this.toggleFloorOverlay=({open:e})=>{this.isMounted&&this.setState({isFloorOverlayOpen:e})},this.toggleErrorOverlay=({open:e,message:t="Unknown"})=>{this.isMounted&&(e?this.setState((e=>({errors:[...e.errors,t],isErrorOverlayOpen:!0}))):this.setState({isErrorOverlayOpen:!1,errors:[]}))},this.toggleLoadingSpinner=({show:e,source:t="unknown"})=>{this.isMounted&&this.setState((n=>({loadingSources:Object.assign(Object.assign({},n.loadingSources),{[t]:e})})))},this.toggleDetailsOverlay=({open:e,selectedItem:t})=>{this.setState({isMapMarkerOverlayOpen:e,selectedItem:t})},this.selectFloorByID=e=>{if(this.updateMap({floorID:e,annotations:[],overlays:[]}),this.props.onFloorChange){const t=this.state.floors.find((t=>t.id===e));t&&(0,_.asyncClientCall)(this.props.onFloorChange,t)}},this.zoomToPoint=(e,t,n)=>{if(!this.mapSelection)throw new Error("mapSelection is not defined");if(!this.zoomD3)throw new Error("zoomD3 is not defined");const{width:r,height:o}=this.getMapRefSize(),a=i.zoomIdentity.translate(-n*e+r/2,-n*t+o/2).scale(n);this.mapSelection.transition().duration(250).call(this.zoomD3.transform,a)},this.zoomBy=e=>{if(!this.mapSelection)throw new Error("mapSelection is not defined");if(!this.zoomD3)throw new Error("zoomD3 is not defined");this.mapSelection.transition().duration(250).call(this.zoomD3.scaleBy,e)},this.zoomIn=()=>{this.zoomBy(1.5)},this.zoomOut=()=>{this.zoomBy(.5)},this.onClick=e=>{var t,n,r;const o=e.target instanceof Element&&((null===(n=null===(t=this.mapRef.current)||void 0===t?void 0:t.isEqualNode)||void 0===n?void 0:n.call(t,e.target))||(null===(r=this.mapImageref.current)||void 0===r?void 0:r.isEqualNode(e.target)));this.props.onMapClick&&o?(0,_.asyncClientCall)(this.props.onMapClick):o&&this.toggleDetailsOverlay({open:!1})},this.onTagClick=async e=>{let t=!0;const{onTagClick:n=(()=>{})}=this.props;try{const r={preventDefault:()=>{t=!1}};await n(e,r)}catch(e){(0,_.logError)(e)}t&&this.toggleDetailsOverlay({open:!0,selectedItem:e})},this.onPlacemarkClick=async e=>{let t=!0;const{onPlacemarkClick:n=(()=>{})}=this.props;try{const r={preventDefault:()=>{t=!1}};await n(e,r)}catch(e){(0,_.logError)(e)}t&&this.toggleDetailsOverlay({open:!0,selectedItem:e})}}componentDidMount(){this.validateFloorID(),this.isMounted=!0;const{api:e,locationID:t}=this.props;(0,_.isEnvOptions)(e.environment)?t?this.loadData():this.toggleErrorOverlay({open:!0,message:'createMap error: "options.locationID" is required'}):this.toggleErrorOverlay({open:!0,message:`API error: "${e.environment}" is not a valid environment`}),this.intervalAutoDestroy=setInterval((()=>{this.isMounted&&this.mapContainerRef.current&&!this.mapContainerRef.current.isConnected&&this.props.destroy()}),1e3),window.addEventListener("resize",this.debouncedResizeFn)}async loadData(){await this.initializeFloors()}componentDidUpdate(e){if(this.props.locationID!==e.locationID)return this.toggleAssetListOverlay({open:!1}),this.toggleErrorOverlay({open:!1}),this.toggleDetailsOverlay({open:!1}),this.toggleFloorOverlay({open:!1}),this.zoomToDefault(),this.freeMapImageURL(),this.setState({mapImageURL:void 0,allPlacemarkData:[]}),void this.loadData();this.props.loadTags&&this.props.showSearchControl&&!e.showSearchControl&&this.fetchAllTags({forceUpdate:!0}),e.floorID!==this.props.floorID?(this.zoomToDefault(),this.validateFloorID(),this.freeMapImageURL(),this.setState({mapImageURL:void 0}),this.fetchMapImageURL()):this.props.loadPlacemarks&&this.props.showSearchControl&&!e.showSearchControl&&this.fetchAllPlacemarks({forceUpdate:!0})}componentWillUnmount(){this.isMounted=!1,this.fetchAllTagsTimeout&&clearTimeout(this.fetchAllTagsTimeout),this.fetchAllPlacemarksTimeout&&clearTimeout(this.fetchAllPlacemarksTimeout),this.freeMapImageURL(),clearInterval(this.intervalAutoDestroy),window.removeEventListener("resize",this.debouncedResizeFn)}handleResize(){const e=this.mapContainerSize,t=this.getMapRefSize(),{width:n,height:r}=e||{},{width:o,height:i}=t;n===o&&r===i||(this.mapContainerSize=t,this.zoomToDefault())}freeMapImageURL(){this.state.mapImageURL&&URL.revokeObjectURL(this.state.mapImageURL)}async fetchMapImageURL(){const{api:e,locationID:t,floorID:n}=this.props,r=this.getMapData();if(!r)return;const o=await e.fetchSVG(r.svg_url);this.isMounted&&(n===this.props.floorID&&t===this.props.locationID?this.setState({mapImageURL:o}):URL.revokeObjectURL(o))}validateFloorID(){const{floorID:e}=this.props;e||this.toggleErrorOverlay({open:!0,message:'createMap error: "options.floorID" is required'})}fetchAllTags(e={forceUpdate:!1}){if(this.fetchAllTagsInitialized&&!e.forceUpdate)return;const t=async()=>{this.fetchAllTagsInitialized=!0;try{this.fetchAllTagsTimeout&&clearTimeout(this.fetchAllTagsTimeout);const{api:e,locationID:n}=this.props;this.setState({areTagsLoading:!0});let r=[];try{r=await e.fetchTagsByLocation(n)}catch(e){return void(0,_.logError)("Failed to load tags; use `loadTags: false` if this location does not have the tags paid feature")}if(!this.isMounted)return;if(n!==this.props.locationID||!this.props.loadTags)return;this.setState({allTagData:r}),this.fetchAllTagsTimeout=setTimeout(t,3e5)}finally{this.setState({areTagsLoading:!1})}};this.props.loadTags&&t()}showLoadingSpinner(){const{loadingSources:e}=this.state,t=Object.keys(e).some((t=>!0===e[t]));return this.props.onLoadingStateChange&&this.isLoaded!==t&&(this.isLoaded=t,(0,_.asyncClientCall)(this.props.onLoadingStateChange,t)),t}fetchAllPlacemarks(e={forceUpdate:!1}){if(this.fetchAllPlacemarksInitialized&&!e.forceUpdate)return;const t=async()=>{this.fetchAllPlacemarksInitialized=!0;try{this.fetchAllPlacemarksTimeout&&clearTimeout(this.fetchAllPlacemarksTimeout);const{locationID:e,api:n}=this.props;let r=[];this.setState({arePlacemarksLoading:!0});try{if(this.props.loadPlacemarks&&(r=await n.fetchPlacemarksByLocation(e)),!this.isMounted)return;this.setState({allPlacemarkData:r})}catch(e){return void(0,_.logError)("Failed to load placemark data")}this.fetchAllPlacemarksTimeout=setTimeout(t,6e5)}finally{this.setState({arePlacemarksLoading:!1})}};this.props.loadPlacemarks&&t()}async getFloors(){const{locationID:e,api:t}=this.props;let n;try{if(n=await t.fetchFloorsByLocation(e),!this.isMounted)return[]}catch(e){e.response&&e.response.data&&e.response.data.detail&&this.toggleErrorOverlay({open:!0,message:e.response.data.detail})}return n&&n.length||this.toggleErrorOverlay({open:!0,message:"Floor data could not be found."}),n}getMapData(){const{floorID:e}=this.props,{floors:t}=this.state;return t.find((t=>t.id===e))}async initializeFloors(){this.toggleLoadingSpinner({show:!0,source:"map"});const{onFloorsUpdate:e=(()=>{}),locationID:t}=this.props,n=await this.getFloors();this.isMounted&&t===this.props.locationID&&(n&&n.length>0&&this.setState({floors:n},(()=>{this.zoomD3||this.addZoomBehavior(),this.zoomToDefault(),(0,_.asyncClientCall)(e,n),this.fetchMapImageURL()})),this.toggleLoadingSpinner({show:!1,source:"map"}))}addZoomBehavior(){if(this.mapRef.current){const e=()=>{if(!this.mapRef.current)return;const{k:e,x:t,y:n}=(0,i.zoomTransform)(this.mapRef.current),r=`translate(${t}px, ${n}px) scale(${e})`;this.setState({mapTransform:r,mapZoomFactor:e,isPanningOrZooming:!0})},t=()=>{this.setState({isPanningOrZooming:!1})};this.zoomD3=(0,i.zoom)().filter((e=>!this.props.shouldMapPanZoom||this.props.shouldMapPanZoom(e))).duration(250).on("zoom",e).on("end.zoom",t),this.mapSelection=(0,o.select)(this.mapRef.current),this.mapSelection.call(this.zoomD3)}}resetExtents(){var e;null===(e=this.zoomD3)||void 0===e||e.scaleExtent([0,1/0]).translateExtent([[-1/0,-1/0],[1/0,1/0]])}setExtents(e,t){var n;const r=this.props.minZoomLevel,o=this.props.maxZoomLevel;if(this.mapRef.current){const{k:a}=(0,i.zoomTransform)(this.mapRef.current),s=this.getMapRefSize(),l=s.width/a/1.5,c=s.height/a/1.5,u=r&&"number"==typeof r?r:a,f=o&&"number"==typeof o?o:8;null===(n=this.zoomD3)||void 0===n||n.scaleExtent([u,f]).translateExtent([[-l,-c],[e+l,t+c]])}}zoomToDefault(){const e=this.getMapData(),t=this.getMapRefSize(),n=null==e?void 0:e.width,r=null==e?void 0:e.height;this.mapContainerSize=t,n&&r&&this.mapSelection&&this.zoomD3&&(this.resetExtents(),this.mapSelection.call(this.zoomD3.translateTo,n/2,r/2),this.mapSelection.call(this.zoomD3.scaleTo,Math.min(.7*t.width/n,.7*t.height/r)),this.setExtents(n,r))}getMapRefSize(){if(!this.mapRef.current)throw new Error("mapRef is not defined");return{width:this.mapRef.current.clientWidth,height:this.mapRef.current.clientHeight}}centerMap(){const e=this.getMapData(),t=null==e?void 0:e.width,n=null==e?void 0:e.height;t&&n&&this.mapSelection&&this.zoomD3&&this.mapSelection.call(this.zoomD3.translateTo,t/2,n/2)}shouldShowFloors(){const{showFloorsControl:e=!0}=this.props,{floors:t}=this.state;return e&&t.length>1}renderFloorLabel(){const e=this.getMapData();return e?(0,a.h)(f.default,{buildingName:e.group_name,floorName:e.name}):null}renderFloorOverlay(){const{floorID:e,api:t}=this.props,{isFloorOverlayOpen:n,floors:r}=this.state;return n?(0,a.h)(h.default,{currentFloorID:e,floors:r,sortDescending:Boolean(this.props.floorsControlSortDescending),toggleFloorOverlay:this.toggleFloorOverlay,selectFloorByID:this.selectFloorByID,language:t.language}):null}renderAssetListOverlay(){var e;const{floorID:t,loadTags:n,loadPlacemarks:r,tags:o,placemarks:i,api:s}=this.props,{isAssetListOverlayOpen:l,floors:c,allTagData:u,areTagsLoading:f,arePlacemarksLoading:h,allPlacemarkData:p}=this.state;return l&&Boolean(r||n)?(0,a.h)(y.default,{onTagClick:this.onTagClick,onPlacemarkClick:this.onPlacemarkClick,showControlTags:Boolean(null!==(e=null==o?void 0:o.showControlTags)&&void 0!==e&&e),floors:c,tagsLoading:f,placemarksLoading:h,tags:u,tagOptions:o,placemarkOptions:i,updateMap:this.updateMap,currentFloorID:t,toggleAssetListOverlay:this.toggleAssetListOverlay,showTags:Boolean(n),showPlacemarks:Boolean(r),placemarks:p,language:s.language}):null}renderDetailsOverlay(){const{isMapMarkerOverlayOpen:e,selectedItem:t}=this.state;return e&&t?(0,a.h)(l.default,{toggleDetailsOverlay:this.toggleDetailsOverlay,kind:"mac"in t?"tag":"placemark",item:t}):null}renderLoadingSpinner(){return this.showLoadingSpinner()?(0,a.h)(p.default,null):null}renderErrorOverlay(){return this.state.isErrorOverlayOpen?(0,a.h)(c.default,{toggleErrorOverlay:this.toggleErrorOverlay,messages:this.state.errors}):null}render(){const e=this.getMapData(),{mapImageURL:t,selectedItem:n,mapTransform:r,mapZoomFactor:o,isPanningOrZooming:i,errors:l}=this.state,{locationID:c,floorID:f,api:h,tags:p,placemarks:y,overlays:_=[],annotations:w=[],width:k="",height:S="",onTagsUpdate:C,onPlacemarksUpdate:A,showSearchControl:E,loadPlacemarks:T,loadTags:P}=this.props;return(0,a.h)("div",{className:(0,g.cx)("meridian-map-container",x),style:{width:k,height:S},"data-testid":"meridian--private--map-container",ref:e=>{this.mapContainerRef.current=e}},(0,a.h)(b.default,{onZoomIn:this.zoomIn,onZoomOut:this.zoomOut}),this.renderErrorOverlay(),this.renderDetailsOverlay(),this.renderFloorOverlay(),this.renderAssetListOverlay(),this.renderLoadingSpinner(),(0,a.h)(u.default,{showFloors:this.shouldShowFloors(),showSearch:Boolean(E&&(T||P)),toggleFloorOverlay:this.toggleFloorOverlay,toggleAssetListOverlay:this.toggleAssetListOverlay}),this.renderFloorLabel(),(0,a.h)("div",{ref:e=>{this.mapRef.current=e},className:(0,g.cx)("meridian-map-background",O),onClick:this.onClick,style:{width:k,height:S}},(0,a.h)("div",{style:{position:"relative",width:0,height:0,transform:r,transformOrigin:"0 0 0"}},(0,a.h)("img",{src:t,ref:this.mapImageref}),0===l.length&&e?(0,a.h)(a.Fragment,null,(0,a.h)(d.default,{mapZoomFactor:o,overlays:_}),this.props.loadPlacemarks?(0,a.h)(m.default,{selectedItem:n,isPanningOrZooming:i,mapZoomFactor:o,locationID:c,floorID:f,api:h,placemarkOptions:y,onPlacemarkClick:this.onPlacemarkClick,onUpdate:A,toggleLoadingSpinner:this.toggleLoadingSpinner,onInit:()=>{this.onPlacemarksInit()}}):null,this.props.loadTags?(0,a.h)(v.default,{selectedItem:n,isPanningOrZooming:i,mapZoomFactor:o,locationID:c,floorID:f,api:h,tagOptions:p,onTagClick:this.onTagClick,onUpdate:C,toggleLoadingSpinner:this.toggleLoadingSpinner,onInit:()=>{this.onTagsInit()}}):null,(0,a.h)(s.default,{mapZoomFactor:o,annotations:w})):null)))}}k.defaultProps={loadTags:!0,loadPlacemarks:!0,showSearchControl:!0,showFloorsControl:!0,floorsControlSortDescending:!1,shouldMapPanZoom:()=>!0,width:"100%",height:"400px",placemarks:{},tags:{},overlays:[],annotations:[],onTagsUpdate:()=>{},onFloorChange:()=>{},onLoadingStateChange:()=>{},onFloorsUpdate:()=>{}};const x=(0,g.css)({label:"map-container",display:"block",position:"relative",borderRadius:"inherit",background:"#fafafa",color:"#000",fontFamily:"inherit",textAlign:"left"}),O=(0,g.css)({label:"map-outer",borderRadius:"inherit",display:"block",overflow:"hidden"});t.default=k},8828:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(4145)),a=n(2785),s=(0,a.css)(a.mixins.shadow,a.mixins.rounded,{label:"details-overlay",overflow:"hidden",display:"flex",flexDirection:"column",background:a.theme.white,color:a.theme.textColor,fill:"#000",position:"absolute",margin:0,left:15,top:15,right:15,maxHeight:600,zIndex:2,maxWidth:400}),l=(0,a.css)(s,{marginRight:"auto"}),c=(0,a.css)(s,{marginLeft:"auto"}),u=(0,a.css)(a.mixins.buttonReset,a.mixins.buttonHoverActive,a.mixins.focusRing,{label:"details-overlay-close",cursor:"pointer",position:"absolute",zIndex:2,top:10,right:10,padding:4,width:32,height:32,fontSize:11,textAlign:"center",background:a.theme.white,color:a.theme.textColor,borderRadius:"100%",fontWeight:"bold",boxShadow:"0 0 2px rgba(0, 0, 0, 0.4)"});t.default=({position:e,onCloseClicked:t,children:n})=>(0,o.h)("div",{className:(0,a.cx)("meridian-details-overlay","left"===e?l:c),"data-testid":"meridian--private--map-overlay"},(0,o.h)("button",{className:u,onClick:t,"data-testid":"meridian--private--close-overlay"},(0,o.h)(i.default,null)),n)},7096:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!1,id:n,className:a,style:s={},cx:l,cy:c,r:u,pathLength:f,fill:h="black",fillOpacity:p="1",stroke:d="none",strokeWidth:m=4,strokeLineJoin:g,strokeLineCap:v,strokeDasharray:y,strokeDashoffset:_,strokeOpacity:b,animate:w={},animateMotion:k={},mpath:x,data:O={},onClick:S,mapZoomFactor:C}=e,A=r(e,["defs","id","className","style","cx","cy","r","pathLength","fill","fillOpacity","stroke","strokeWidth","strokeLineJoin","strokeLineCap","strokeDasharray","strokeDashoffset","strokeOpacity","animate","animateMotion","mpath","data","onClick","mapZoomFactor"]);const E=1/C;let T=null,P=null;const D=Object.assign({transform:`scale(${E})`},s);Object.keys(k).length&&(P=x?(0,o.h)("animateMotion",Object.assign({},k),(0,o.h)("mpath",{xlinkHref:`#${x}`})):(0,o.h)("animateMotion",Object.assign({},k))),Object.keys(w).length&&(T=(0,o.h)("animate",Object.assign({},w)));const j=(0,o.h)("circle",Object.assign({id:n,className:a,style:D,cx:l,cy:c,r:u,"path-length":f,fill:h,"fill-opacity":p,stroke:d,"stroke-width":m/C,"stroke-linejoin":g,"stroke-linecap":v,"stroke-dasharray":y,"stroke-dashoffset":_,"stroke-opacity":b,onClick:S?()=>(0,i.asyncClientCall)(S,O):void 0,cursor:S?"pointer":void 0,"pointer-events":S?"all":void 0},A),T,P);return t?(0,o.h)("defs",null,j):j};a.displayName="OverlayCircle",t.default=a},2865:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!1,id:n,className:a,style:s={},width:l,height:c,href:u,x:f,y:h,animate:p={},animateMotion:d={},mpath:m,mapZoomFactor:g,onClick:v,data:y={}}=e,_=r(e,["defs","id","className","style","width","height","href","x","y","animate","animateMotion","mpath","mapZoomFactor","onClick","data"]);const b=1/g;let w=null,k=null;const x=Object.assign({transform:`translate(-${l/g/2}px, -${c/g/2}px) scale(${b})`},s);Object.keys(d).length&&(k=m?(0,o.h)("animateMotion",Object.assign({},d),(0,o.h)("mpath",{xlinkHref:`#${m}`})):(0,o.h)("animateMotion",Object.assign({},d))),Object.keys(p).length&&(w=(0,o.h)("animate",Object.assign({},p)));const O=(0,o.h)("image",Object.assign({id:n,className:a,style:x,width:l,height:c,href:u,x:f,y:h,onClick:v?()=>(0,i.asyncClientCall)(v,y):void 0,cursor:v?"pointer":void 0,"pointer-events":v?"all":void 0},_),w,k);return t?(0,o.h)("defs",null,O):O};a.displayName="OverlayImage",t.default=a},6805:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(7096)),a=r(n(2865)),s=r(n(2578)),l=r(n(3861)),c=r(n(3496)),u=r(n(4012)),f=r(n(9159)),h=(0,n(2785).css)({label:"overlay-layer",position:"absolute",overflow:"visible",top:0,left:0,right:0,bottom:0});t.default=({mapZoomFactor:e,overlays:t})=>(0,o.h)("svg",{className:h,"data-testid":"meridian--private--overlay-layer"},t.map(((t,n)=>{switch(t.type){case"polygon":return(0,o.h)(c.default,Object.assign({key:n},t,{mapZoomFactor:e}));case"polyline":return(0,o.h)(u.default,Object.assign({key:n},t,{mapZoomFactor:e}));case"path":return(0,o.h)(l.default,Object.assign({key:n},t,{mapZoomFactor:e}));case"circle":return(0,o.h)(i.default,Object.assign({key:n},t,{mapZoomFactor:e}));case"image":return(0,o.h)(a.default,Object.assign({key:n},t,{mapZoomFactor:e}));case"marker":return(0,o.h)(s.default,Object.assign({key:n},t,{mapZoomFactor:e}));case"use":return(0,o.h)(f.default,Object.assign({key:n},t,{mapZoomFactor:e}));default:return null}})))},2578:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!0,id:n,className:i,style:a,viewBox:s,refX:l,refY:c,markerWidth:u,markerHeight:f,orient:h,fill:p="none",fillOpacity:d,stroke:m="hsl(207, 65%, 46%)",strokeWidth:g,strokeLineJoin:v,strokeLineCap:y,strokeDasharray:_,strokeDashoffset:b,strokeOpacity:w,shapeElementType:k,shapeElementAttributes:x,mapZoomFactor:O}=e,S=r(e,["defs","id","className","style","viewBox","refX","refY","markerWidth","markerHeight","orient","fill","fillOpacity","stroke","strokeWidth","strokeLineJoin","strokeLineCap","strokeDasharray","strokeDashoffset","strokeOpacity","shapeElementType","shapeElementAttributes","mapZoomFactor"]);let C=null;if(Object.keys(x).length&&k)switch(k){case"path":C=(0,o.h)("path",Object.assign({},x));break;case"polyline":C=(0,o.h)("polyline",Object.assign({},x));break;case"polygon":C=(0,o.h)("polygon",Object.assign({},x));break;case"circle":C=(0,o.h)("circle",Object.assign({},x));break;case"image":C=(0,o.h)("image",Object.assign({},x))}const A=(0,o.h)("marker",Object.assign({id:n,className:i,style:a,viewBox:s,refX:l,refY:c,markerWidth:u,markerHeight:f,orient:h,fill:p,"fill-opacity":d,stroke:m,"stroke-width":g,"stroke-linejoin":v,"stroke-linecap":y,"stroke-dasharray":_,"stroke-dashoffset":b,"stroke-opacity":w},S),C);return t?(0,o.h)("defs",null,A):A};i.displayName="OverlayMarker",t.default=i},3861:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!1,id:n,className:i,style:a={},shape:s,fill:l="none",stroke:c="hsl(207, 65%, 46%)",strokeWidth:u=2,strokeLineJoin:f="miter",strokeLineCap:h="butt",strokeDasharray:p,strokeDashoffset:d,strokeOpacity:m,markerStart:g,markerMid:v,markerEnd:y,animate:_={},animateMotion:b={},mpath:w,mapZoomFactor:k}=e,x=r(e,["defs","id","className","style","shape","fill","stroke","strokeWidth","strokeLineJoin","strokeLineCap","strokeDasharray","strokeDashoffset","strokeOpacity","markerStart","markerMid","markerEnd","animate","animateMotion","mpath","mapZoomFactor"]);let O=null,S=null;Object.keys(b).length&&(S=w?(0,o.h)("animateMotion",Object.assign({},b),(0,o.h)("mpath",{xlinkHref:`#${w}`})):(0,o.h)("animateMotion",Object.assign({},b))),Object.keys(_).length&&(O=(0,o.h)("animate",Object.assign({},_)));const C=(0,o.h)("path",Object.assign({id:n,className:i,style:a,d:s,fill:l,stroke:c,"stroke-width":u/k,"stroke-linejoin":f,"stroke-linecap":h,"stroke-dasharray":p,"stroke-dashoffset":d,"stroke-opacity":m,"marker-start":g,"marker-mid":v,"marker-end":y},x),O,S);return t?(0,o.h)("defs",null,C):C};i.displayName="OverlayPath",t.default=i},3496:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!1,id:n,className:a,style:s,points:l,fill:c="hsla(207, 65%, 46%, 0.5)",fillOpacity:u,stroke:f="hsl(207, 65%, 46%)",strokeWidth:h=2,strokeLineJoin:p="miter",strokeDasharray:d,strokeDashoffset:m,strokeOpacity:g,markerStart:v,markerMid:y,markerEnd:_,mapZoomFactor:b,animate:w={},data:k={},onClick:x}=e,O=r(e,["defs","id","className","style","points","fill","fillOpacity","stroke","strokeWidth","strokeLineJoin","strokeDasharray","strokeDashoffset","strokeOpacity","markerStart","markerMid","markerEnd","mapZoomFactor","animate","data","onClick"]);let S=null;Object.keys(w).length&&(S=(0,o.h)("animate",Object.assign({},w)));const C=(0,o.h)("polygon",Object.assign({id:n,className:a,style:s,points:l.join(" "),fill:c,"fill-opacity":u,stroke:f,"stroke-width":h/b,"stroke-linejoin":p,"stroke-dasharray":d,"stroke-dashoffset":m,"stroke-opacity":g,"marker-start":v,"marker-mid":y,"marker-end":_,onClick:x?()=>(0,i.asyncClientCall)(x,k):void 0,cursor:x?"pointer":void 0,"pointer-events":x?"all":void 0},O),S);return t?(0,o.h)("defs",null,C):C};a.displayName="OverlayPolygon",t.default=a},4012:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!1,id:n,className:i,style:a,points:s,fill:l="none",fillOpacity:c,stroke:u="hsl(207, 65%, 46%)",strokeWidth:f=2,strokeLineJoin:h="miter",strokeLineCap:p="butt",strokeDasharray:d,strokeDashoffset:m,strokeOpacity:g,markerStart:v,markerMid:y,markerEnd:_,animate:b={},mapZoomFactor:w}=e,k=r(e,["defs","id","className","style","points","fill","fillOpacity","stroke","strokeWidth","strokeLineJoin","strokeLineCap","strokeDasharray","strokeDashoffset","strokeOpacity","markerStart","markerMid","markerEnd","animate","mapZoomFactor"]);let x=null;Object.keys(b).length&&(x=(0,o.h)("animate",Object.assign({},b)));const O=(0,o.h)("polyline",Object.assign({id:n,className:i,style:a,points:s.join(" "),fill:l,"fill-opacity":c,stroke:u,"stroke-width":f/w,"stroke-linejoin":h,"stroke-linecap":p,"stroke-dasharray":d,"stroke-dashoffset":m,"stroke-opacity":g,"marker-start":v,"marker-mid":y,"marker-end":_},k),x);return t?(0,o.h)("defs",null,O):O};i.displayName="OverlayPolyline",t.default=i},6933:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785);class i extends r.Component{constructor(){super(...arguments),this.input=null}componentDidMount(){this.input&&this.input.focus()}render(){const{value:e,onChange:t,placeholder:n}=this.props;return(0,r.h)("div",{className:l},(0,r.h)("svg",{viewBox:"0 0 15 15",className:s},(0,r.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2454 12.5741L9.55123 8.73956C10.2134 7.80246 10.5682 6.66953 10.5632 5.50756C10.5506 2.47441 8.18614 0.0175744 5.26286 5.57178e-05C3.8639 -0.00651157 2.52051 0.567712 1.53197 1.59481C0.543427 2.6219 -0.0081584 4.01655 9.12228e-05 5.46806C0.0127262 8.50148 2.37737 10.9585 5.30093 10.9761C6.42539 10.9811 7.52128 10.6088 8.42505 9.91456L8.4289 9.91156L12.1197 13.7431C12.3193 13.9603 12.6166 14.0482 12.8966 13.9728C13.1765 13.8973 13.395 13.6704 13.4675 13.3799C13.5399 13.0894 13.455 12.7809 13.2454 12.5741ZM5.29738 9.87819C2.95866 9.86423 1.06697 7.8988 1.05671 5.47219C1.0504 4.31114 1.4917 3.19564 2.28239 2.37403C3.07307 1.55242 4.14751 1.09287 5.26653 1.09769C7.60525 1.11165 9.49694 3.07709 9.5072 5.50369C9.51352 6.66475 9.07221 7.78024 8.28152 8.60186C7.49084 9.42347 6.4164 9.88302 5.29738 9.87819Z",transform:"translate(0.637695)"})),(0,r.h)("input",{"data-testid":"meridian--private--overlay-search",value:e,type:"text",placeholder:n,className:a,onInput:e=>{e.target instanceof HTMLInputElement&&t(e.target.value)},ref:e=>{this.input=e}}))}}const a=(0,o.css)(o.mixins.buttonReset,o.mixins.rounded,o.mixins.focusRing,{label:"overlay-search-input",flex:"1 1 auto",marginRight:42,fontSize:16,padding:"4px 8px",paddingLeft:30,background:o.theme.borderColor,color:o.theme.black,border:0,height:24,"&::placeholder":{color:o.theme.textColorBluishLightGrey}}),s=(0,o.css)({label:"overlay-search-icon",position:"absolute",zIndex:1,fill:o.theme.textColorBluish,width:16,height:16,top:18,left:18}),l=(0,o.css)({label:"overlay-search-bar",position:"relative",zIndex:1,flex:"0 0 auto",display:"flex",flexDirection:"column",padding:10,backgroundColor:"rgb(105, 146, 176)"});t.default=i},9159:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defs:t=!1,id:n,className:i,style:a={},width:s,height:l,href:c,x:u,y:f,fill:h="none",stroke:p="hsl(207, 65%, 46%)",strokeWidth:d=2,strokeLineJoin:m="miter",strokeLineCap:g="butt",strokeDasharray:v,strokeDashoffset:y,strokeOpacity:_,animate:b={},animateMotion:w={},mpath:k,mapZoomFactor:x}=e,O=r(e,["defs","id","className","style","width","height","href","x","y","fill","stroke","strokeWidth","strokeLineJoin","strokeLineCap","strokeDasharray","strokeDashoffset","strokeOpacity","animate","animateMotion","mpath","mapZoomFactor"]);const S=1/x;let C=null,A=null;const E=Object.assign({transform:`translate(-${s/x/2}px, -${l/x/2}px) scale(${S})`},a);Object.keys(w).length&&(A=k?(0,o.h)("animateMotion",Object.assign({},w),(0,o.h)("mpath",{xlinkHref:`#${k}`})):(0,o.h)("animateMotion",Object.assign({},w))),Object.keys(b).length&&(C=(0,o.h)("animate",Object.assign({},b)));const T=(0,o.h)("use",Object.assign({id:n,className:i,style:E,width:s,height:l,href:c,x:u,y:f,fill:h,stroke:p,"stroke-width":d/x,"stroke-linejoin":m,"stroke-linecap":g,"stroke-dasharray":v,"stroke-dashoffset":y,"stroke-opacity":_},O),C,A);return t?(0,o.h)("defs",null,T):T};i.displayName="OverlayUse",t.default=i},2858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=n(7746),a=n(4221),s=(0,o.css)(o.mixins.textStrokeWhite,{label:"placemark-label",marginLeft:"50%",position:"absolute",minWidth:55,maxWidth:120,fontSize:14,textAlign:"center",paddingTop:4,color:"#222",userSelect:"none",transform:"translate(-50%, 0)",fontWeight:"bold",visibility:"hidden",pointerEvents:"none","[data-meridian-placemark-label-mode='always'] > &":{visibility:"visible"},"[data-meridian-placemark-label-mode='never'] > &":{visibility:"hidden"},"[data-meridian-placemark-label-mode='hover']:hover > &":{visibility:"visible",background:"#333",color:"#eee",textShadow:"none",borderRadius:4,padding:4,bottom:30,maxWidth:240,width:"max-content",boxShadow:"0 0 1px 1px white"},"[data-meridian-placemark-label-mode='zoom'] > &[data-meridian-placemark-label-zoom-visible='false']":{visibility:"hidden"},"[data-meridian-placemark-label-mode='zoom'] > &[data-meridian-placemark-label-zoom-visible='true']":{visibility:"visible"}}),l=(0,o.css)({label:"placemark-labelOnly",textTransform:"uppercase",color:"#666",fontSize:16}),c=(0,o.css)({label:"placemark",position:"absolute","&[data-meridian-placemark-label-mode='hover']:hover":{zIndex:1}}),u=(0,o.css)(o.mixins.buttonReset,o.mixins.pointer,o.mixins.focusNone,{label:"placemark-icon","--meridian-placemark-backgroundColor":o.theme.brandBlue,transition:"width 80ms ease, height 80ms ease",display:"block",width:24,height:24,borderRadius:"100%",backgroundColor:"var(--meridian-placemark-backgroundColor)",backgroundImage:"var(--meridian-placemark-iconURL)",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",border:"2px solid transparent",overflow:"hidden",zIndex:1}),f=(0,o.css)(u,{zIndex:3,width:30,height:30,boxShadow:"0 0 4px black"});t.default=({isSelected:e,data:t,mapZoomFactor:n,onClick:h=(()=>{}),disabled:p=!1,labelMode:d,labelZoomLevel:m=.2})=>{const g=`meridian-placemark-type-${t.type}`,v=!t.type||0===t.type.indexOf("label_"),y=1/n,_=`#${t.color}`,b=(0,a.placemarkIconURL)(t.type),w=(t.id||"").split("_").pop(),k=e?(0,o.cx)("meridian-placemark-icon-selected","meridian-placemark-icon",g,f):(0,o.cx)("meridian-placemark-icon",g,u),x={left:t.x,top:t.y,transform:`translate(-50%, -50%) scale(${y})`};return v?(0,r.h)("div",{className:(0,o.cx)("meridian-placemark",c),"data-meridian-placemark-label-mode":"zoom",style:x},(0,r.h)("div",{className:(0,o.cx)(s,l,"meridian-label","meridian-label-only"),"data-meridian-placemark-id":w,"data-meridian-placemark-label-zoom-visible":String(n>=m)},t.name)):(0,r.h)("div",{"data-meridian-placemark-label-mode":d,className:(0,o.cx)("meridian-placemark",c),style:x},(0,r.h)("button",{disabled:p,className:(0,o.cx)((0,i.getPlacemarkCategories)(t).map((e=>`meridian-placemark-category-${e=e.replace(/ /g,"-").replace(/[^a-z0-9_-]/i,"").toLowerCase()}`)),k),"data-meridian-placemark-id":w,style:{"--meridian-placemark-iconURL":`url('${b}')`,"--meridian-placemark-borderColor":_,"--meridian-placemark-backgroundColor":_},onClick:e=>{e.target instanceof HTMLElement&&e.target.focus(),h(t)},onMouseDown:e=>{e.stopPropagation()}}),(0,r.h)("div",{className:(0,o.cx)("meridian-label",s),"data-meridian-placemark-label-zoom-visible":String(n>=m)},t.name))}},7387:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(2858)),a=n(7746);class s extends o.Component{constructor(){super(...arguments),this.state={fetchedPlacemarks:[]},this.isMounted=!1}componentDidMount(){this.isMounted=!0,this.fetchPlacemarks()}shouldComponentUpdate(e){return!(this.props.isPanningOrZooming&&e.mapZoomFactor===this.props.mapZoomFactor)}async componentDidUpdate(e,t){const{placemarkOptions:n,onUpdate:r}=this.props;if(e.floorID!==this.props.floorID&&await this.fetchPlacemarks(),r&&(t.fetchedPlacemarks!==this.state.fetchedPlacemarks||n!==e.placemarkOptions)){const e=this.state.fetchedPlacemarks;(0,a.asyncClientCall)(r,{allPlacemarks:e,filteredPlacemarks:this.getFilteredPlacemarks(e)})}}componentWillUnmount(){this.isMounted=!1}async fetchPlacemarks(){if(!this.isMounted)return;const{locationID:e,floorID:t,api:n,toggleLoadingSpinner:r,onInit:o}=this.props;r({show:!0,source:"placemarks"});const i=await n.fetchPlacemarksByFloor(e,t);this.setState({fetchedPlacemarks:i},(()=>{r({show:!1,source:"placemarks"})})),o()}getFilteredPlacemarks(e){var t;const{placemarkOptions:n,floorID:r}=this.props,o=null!==(t=null==n?void 0:n.filter)&&void 0!==t?t:()=>!0;return e.filter((e=>"exclusion_area"!==e.type&&e.map===r&&(!0===(null==n?void 0:n.showHiddenPlacemarks)||!e.hide_on_map))).filter(o)}render(){const e=this.getFilteredPlacemarks(this.state.fetchedPlacemarks);return(0,o.h)("div",{"data-testid":"meridian--private--placemark-layer"},e.map((e=>{var t,n,r,a;return(0,o.h)(i.default,{key:e.id,isSelected:!!this.props.selectedItem&&this.props.selectedItem.id===e.id,mapZoomFactor:this.props.mapZoomFactor,data:e,onClick:this.props.onPlacemarkClick,disabled:null===(t=this.props.placemarkOptions)||void 0===t?void 0:t.disabled,labelMode:null!==(r=null===(n=this.props.placemarkOptions)||void 0===n?void 0:n.labelMode)&&void 0!==r?r:"zoom",labelZoomLevel:null===(a=this.props.placemarkOptions)||void 0===a?void 0:a.labelZoomLevel})})))}}t.default=s},3996:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(172),i=r(n(192)),a=n(2785),s=n(7746),l=(0,a.css)(a.mixins.shadow,a.mixins.buttonReset,a.mixins.pointer,a.mixins.focusNone,{label:"tag",width:48,height:48,borderRadius:"100%",position:"absolute",backgroundColor:"white",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",border:"2px solid white",overflow:"hidden",transition:"\n width 80ms ease,\n height 80ms ease,\n top 500ms ease,\n left 500ms ease\n ",zIndex:2}),c=(0,a.css)(l,{width:60,height:60,zIndex:3,boxShadow:"0 0 0 2px white, 0 0 4px black"});t.default=({isSelected:e,data:t,mapZoomFactor:n,onClick:r=(()=>{}),disabled:u=!1})=>{const f=1/n/(n<.2?1.4:1),h=t.image_url||i.default;return(0,o.h)("button",{"data-meridian-tag-id":t.id,disabled:u,className:(0,a.cx)("meridian-tag",l,(0,s.getTagLabels)(t).map((e=>`meridian-tag-label-${e=e.replace(/ /g,"-").replace(/[^a-z0-9_-]/i,"")}`)),e&&["meridian-tag-selected",c],(0,a.css)({backgroundImage:`url('${h}')`})),style:{left:t.x,top:t.y,transform:`translate(-50%, -50%) scale(${f})`},onClick:e=>{e.target instanceof HTMLElement&&e.target.focus(),r(t)},onMouseDown:e=>{e.stopPropagation()}})}},8901:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(5858)),i=n(172),a=r(n(3996)),s=n(7746);class l extends i.Component{constructor(){var e;super(...arguments),this.state={tagsByMAC:{},connectionsByFloorID:{}},this.tagUpdates={},this.isMounted=!1,this.commitTagUpdates=(0,o.default)((()=>{this.isMounted&&this.setState((e=>({tagsByMAC:Object.assign(Object.assign({},e.tagsByMAC),this.tagUpdates)})),(()=>{this.tagUpdates={},this.onUpdate()}))}),(null===(e=this.props.tagOptions)||void 0===e?void 0:e.updateInterval)||5e3),this.onUpdate=()=>{const{tagsByMAC:e}=this.state,{onUpdate:t,tagOptions:n={}}=this.props,{filter:r=(()=>!0)}=n,o=this.filterControlTags(Object.values(e)),i=o.filter(r);t&&t({allTags:o,filteredTags:i})}}componentDidMount(){this.isMounted=!0;const{floorID:e}=this.props;e&&this.connect(e)}shouldComponentUpdate(e){return!(this.props.isPanningOrZooming&&e.mapZoomFactor===this.props.mapZoomFactor)}componentDidUpdate(e){e.floorID!==this.props.floorID&&(this.disconnect(e.floorID),this.connect(this.props.floorID))}componentWillUnmount(){this.isMounted=!1,this.disconnect(this.props.floorID)}connect(e){const{locationID:t,api:n,toggleLoadingSpinner:r,onInit:o}=this.props;r({show:!0,source:"tags"});const i=n.openStream({locationID:t,floorID:e,onInitialTags:t=>{e===this.props.floorID&&this.isMounted&&(this.setState({tagsByMAC:(0,s.keyBy)(t,(e=>e.mac))},(()=>{this.onUpdate(),this.props.toggleLoadingSpinner({show:!1,source:"tags"})})),o())},onTagUpdate:t=>{e===this.props.floorID&&this.isMounted&&(e!==t.map_id?this.setState((e=>({tagsByMAC:(0,s.objectWithoutKey)(e.tagsByMAC,t.mac)})),(()=>{this.onUpdate()})):(this.tagUpdates=Object.assign(Object.assign({},this.tagUpdates),{[t.mac]:t}),this.props.isPanningOrZooming||this.commitTagUpdates()))},onException:()=>{this.props.toggleLoadingSpinner({show:!1,source:"tags"})}});this.isMounted&&this.setState((t=>({connectionsByFloorID:Object.assign(Object.assign({},t.connectionsByFloorID),{[e]:i})})),(()=>{this.onUpdate()}))}disconnect(e){const t=this.state.connectionsByFloorID[e];t&&(this.props.toggleLoadingSpinner({show:!1,source:"tags"}),t.close()),this.tagUpdates={},this.isMounted&&this.setState((t=>({tagsByMAC:{},connectionsByFloorID:(0,s.objectWithoutKey)(t.connectionsByFloorID,e)})),(()=>{this.onUpdate()}))}filterControlTags(e){const{tagOptions:t}=this.props;return e.filter((e=>!0===(null==t?void 0:t.showControlTags)||!e.is_control_tag))}render(){const{selectedItem:e,tagOptions:t={},onTagClick:n,mapZoomFactor:r}=this.props,{tagsByMAC:o}=this.state,{filter:s=(()=>!0)}=t,l=Object.values(o);return(0,i.h)("div",{"data-testid":"meridian--private--tag-layer"},this.filterControlTags(l).filter(s).map((o=>(0,i.h)(a.default,{key:o.mac,isSelected:!!e&&e.mac===o.mac,mapZoomFactor:r,data:o,onClick:n,disabled:t.disabled}))))}}t.default=l},7866:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={en:{tags:"Tags",placemarks:"Placemarks",floors:"Floors",search:"Search",search_tags:"Search Tags",search_placemarks:"Search Placemarks",search_floors:"Search Floors",no_results_found:"No results found",close:"Close"},ar:{tags:"العلامات",placemarks:" العلامات الموضعية",floors:" الطوابق",search:" بحث",search_tags:" بحث عن علامات",search_placemarks:" بحث عن علامات موضعية",search_floors:" بحث عن طوابق",no_results_found:" لم يتم العثور على نتائج",close:"إغلاق"},ca:{tags:"Etiquetes",placemarks:"Marques de posició",floors:"Pisos",search:"Cerca",search_tags:"Cerca etiquetes",search_placemarks:"Cerca marcadors de posició",search_floors:"Cerca pisos",no_results_found:"Sense resultats",close:"Tanca"},es:{tags:"Etiquetas",placemarks:"Marcas de posición",floors:"Pisos",search:"Buscar",search_tags:"Buscar etiquetas",search_placemarks:"Buscar marcas de posición",search_floors:"Buscar pisos",no_results_found:"No se han encontrado resultados",close:"Cerrar"},cs:{tags:"Tagy",placemarks:"Značky míst",floors:"Patra",search:"Hledat",search_tags:"Hledat tagy",search_placemarks:"Hledat značky míst",search_floors:"Hledat patra",no_results_found:"Nebyly nalezeny žádné výsledky",close:"Zavřít"},de:{tags:"Stichworte",placemarks:"Ortsmarken",floors:"Etagen",search:"Suche",search_tags:"Such-Tags",search_placemarks:"In den Ortsmarken (Räumen, Sälen) suchen",search_floors:"In den Stockwerken suchen",no_results_found:"Keine Ergebnisse gefunden",close:"Schließen"},fr:{tags:"Mots clés",placemarks:"Repères",floors:"Étages",search:"Rechercher",search_tags:"Rechercher des mots clés",search_placemarks:"Rechercher des repères",search_floors:"Rechercher des étages",no_results_found:"Aucun résultat trouvé",close:"Fermer"},it:{tags:"Tag",placemarks:"Segnaposto",floors:"Piani",search:"Cerca",search_tags:"Cerca tag",search_placemarks:"Cerca segnaposto",search_floors:"Cerca piani",no_results_found:"Nessun risultato trovato",close:"Chiudi"},iw:{tags:"תגים",placemarks:"סימני מקום",floors:"קומות",search:"חפש",search_tags:"חפש תגיות",search_placemarks:"חפש סימני מקום",search_floors:"חפש קומות",no_results_found:"לא נמצאו תוצאות",close:"סגור"},ja:{tags:"タグ",placemarks:"目印",floors:"フロア",search:"探す",search_tags:"検索タグ",search_placemarks:"目印を検索する",search_floors:"フロアを検索する",no_results_found:"結果が見つからない",close:"近い"},ko:{tags:"태그",placemarks:"장소표시<",floors:"바닥",search:"검색",search_tags:"태그검색<",search_placemarks:"장소표시 검색<",search_floors:"층수검색<",no_results_found:"검색결과가 없습니다<",close:"닫기"},nl:{tags:"Tags",placemarks:"Plaatsaanduidingen",floors:"Verdiepingen",search:"Zoeken",search_tags:"Zoek tags",search_placemarks:"Zoek plaatsaanduidingen",search_floors:"Zoek verdiepingen",no_results_found:"Geen resultaten gevonden",close:"Sluiten"},no:{tags:"Tagger",placemarks:"Stedsmarkeringer",floors:"Gulv",search:"Søk",search_tags:"Søk i etiketter",search_placemarks:"Søk i stedsmarkeringer",search_floors:"Søk i etasjer",no_results_found:"Ingen resultater",close:"Lukk"},pt:{tags:"Tags",placemarks:"Marcadores",floors:"Andares",search:"Procurar",search_tags:"Tags de pesquisa",search_placemarks:"Pesquisar marcadores",search_floors:"Pesquisar andares",no_results_found:"Nenhum resultado encontrado",close:"Perto"},ru:{tags:"Taggar",placemarks:"Platsmärken",floors:"Golv",search:"Sök",search_tags:"Sök taggar",search_placemarks:"Sök efter platsmärken",search_floors:"Sök Golv",no_results_found:"Inga resultat funna",close:"Stänga"},sv:{tags:"Taggar",placemarks:"Platsmärken",floors:"Golv",search:"Sök",search_tags:"Sök taggar",search_placemarks:"Sök efter platsmärken",search_floors:"Sök Golv",no_results_found:"Inga resultat funna",close:"Stänga"},uk:{tags:"Теги",placemarks:"Мітки",floors:"Поверхи",search:"Пошук",search_tags:"Пошук тегів",search_placemarks:"Пошук міток",search_floors:"Пошук поверхів",no_results_found:"Нічого не знайдено",close:"Закрити"},vi:{tags:"Thẻ",placemarks:"Dấu vị trí",floors:"Tầng",search:"Tìm kiếm ",search_tags:"Thẻ tìm kiếm",search_placemarks:"Dấu vị trí tìm kiếm",search_floors:"Tầng tìm kiếm",no_results_found:"Không có kết quả nào được tìm thấy",close:"Đóng"},"zh-cn":{tags:"标签",placemarks:"地标",floors:"楼层",search:"搜索",search_tags:"搜索标签",search_placemarks:"搜索地标",search_floors:"搜索楼层",no_results_found:"未找到结果",close:"关闭"},"zh-tw":{tags:"標籤",placemarks:"地標",floors:"樓層",search:"搜尋",search_tags:"搜尋標籤",search_placemarks:"搜尋地標",search_floors:"搜尋樓層",no_results_found:"未找到結果",close:"關閉"}};t.default={lookup:function(e,t){var r,o,i;const a=t||(navigator.languages&&navigator.languages[0]||navigator.language||"en").toLowerCase(),s=null!==(r=a.split("-").shift())&&void 0!==r?r:"en",l=n;return(null===(o=null==l?void 0:l[a])||void 0===o?void 0:o[e])||(null===(i=null==l?void 0:l[s])||void 0===i?void 0:i[e])||l.en[e]||e}}},5481:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(172),o=n(2785),i=({onClick:e,dir:t})=>"in"===t?(0,r.h)("button",{className:(0,o.cx)("meridian-zoom-button","meridian-zoom-button-in",l),"data-testid":"meridian--private--zoom-button-in",onClick:e},(0,r.h)("svg",{viewBox:"0 0 36 36"},(0,r.h)("path",{d:"M26 17h-7v-7a1 1 0 0 0-2 0v7h-7a1 1 0 0 0 0 2h7v7a1 1 0 0 0 2 0v-7h7a1 1 0 0 0 0-2"}))):(0,r.h)("button",{className:(0,o.cx)("meridian-zoom-button","meridian-zoom-button-out",c),"data-testid":"meridian--private--zoom-button-out",onClick:e},(0,r.h)("svg",{viewBox:"0 0 36 36"},(0,r.h)("path",{d:"M26 19H10a1 1 0 0 1 0-2h16a1 1 0 0 1 0 2"}))),a=(0,o.css)(o.mixins.shadow,o.mixins.rounded,{position:"absolute",display:"flex",flexDirection:"column",zIndex:1,right:15,bottom:15}),s=(0,o.css)(o.mixins.buttonReset,o.mixins.focusRing,o.mixins.buttonHoverActive,o.mixins.rounded,{cursor:"pointer",padding:4,width:40,height:40,border:0,fontSize:20,fontWeight:200,fill:o.theme.brandBrightBlue,background:"white"}),l=(0,o.css)(s,{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:`1px solid ${o.theme.buttonSeparatorColor}`}),c=(0,o.css)(s,{borderTopLeftRadius:0,borderTopRightRadius:0});t.default=({onZoomIn:e,onZoomOut:t})=>(0,r.h)("div",{className:(0,o.cx)("meridian-zoom-controls",a)},(0,r.h)(i,{onClick:e,dir:"in"}),(0,r.h)(i,{onClick:t,dir:"out"}))},5396:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendAnalyticsCodeEvent=void 0;const r=n(4221),o=window.devicePixelRatio||1,i=window.screen,a=`${i.width*o}x${i.height*o}`;t.sendAnalyticsCodeEvent=async function(e){if("Cypress"in window)return;const{action:t,locationID:n,onTagsUpdate:o=!1,tagsFilter:i=!1,placemarksFilter:s=!1,internalUpdate:l=!1}=e,c={session_id:n,v:"1",app_name:"MeridianSDK",data_src:"app",app_version:r.version,uid:n,cid:n,hit_type:"event",event_category:"code",event_action:t,event_value:1,event_label:l?"internal":"external",tag_update:o?1:0,tags_filter:i?1:0,placemarks_filter:s?1:0,language:navigator.language,screen_res:a,anonymize_ip:1,user_agent:window.navigator.userAgent,z:Math.random().toString(36).substring(7)};fetch("https://www.google-analytics.com/mp/collect?measurement_id=G-GCT86YZLFE&api_secret=1v79k_rPSLyvvcHpzSDqFQ",{method:"POST",body:JSON.stringify({client_id:n,events:[{name:"page_event",params:Object.assign({},c)}]})})}},2785:function(e,t,n){"use strict";var r,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.css=t.keyframes=t.cx=t.mixins=t.theme=void 0;const i=o(n(129));t.theme={fontSizeSmallest:"12px",fontSizeSmaller:"14px",fontSize:"16px",fontSizeBigger:"18px",black:"#000",white:"#fff",almostWhite:"#fafafa",textColor:"#1b1b1b",textColorBluishLightGrey:"#9fa8ae",textColorBluish:"hsl(208, 17%, 42%)",brandOrange:"#ff8300",brandBlue:"hsl(203, 100%, 23%)",brandBrightBlue:"hsl(207, 65%, 46%)",buttonActiveColor:"hsl(201, 55%, 94%)",buttonHoverColor:"hsl(200, 60%, 97%)",buttonSeparatorColor:"#f0f0f0",borderColor:"#ebeef2",borderColorDarker:"#dfe1e5",borderRadius:6,searchBarColor:"#297BC0"},t.mixins={flexRow:{display:"flex",flexDirection:"row"},flexColumn:{display:"flex",flexDirection:"column"},overflowEllipses:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},textStrokeWhite:{WebkitFontSmoothing:"antialiased",textShadow:["rgba(255, 255, 255, 0.5) 1px 1px 0","rgba(255, 255, 255, 0.5) -1px -1px 0","white 0 0 1px","white 0 0 2px","white 0 0 3px","white 0 0 4px"].join(", ")},buttonReset:{padding:0,margin:0,font:"inherit",border:0,borderRadius:0,background:"transparent",color:"inherit","&::-moz-focus-inner":{border:0}},buttonHoverActive:{"&:hover":{background:t.theme.buttonHoverColor},"&:active":{background:t.theme.buttonActiveColor}},borderBox:{boxSizing:"border-box"},focusRing:{"&:focus":{outline:0,boxShadow:`inset 0 0 0 1px ${t.theme.brandBrightBlue}`}},focusRingMenuItem:{"&:focus":{outline:0,boxShadow:`\n inset 0 0 0 1px white,\n inset 0 0 0 2px ${t.theme.brandBrightBlue}\n `}},focusOutline:{"&:focus":{outline:0,boxShadow:"0 0 0 2px currentcolor"}},focusDarken:{"&:focus":{outline:0,boxShadow:"inset 0 0 0 9999px rgba(0, 0, 0, 0.1)"}},focusNone:{"&:focus":{outline:"none"}},shadow:{boxShadow:"0 0 3px rgba(0, 0, 0, 0.25)"},rounded:{borderRadius:t.theme.borderRadius},maxRounded:{borderRadius:99999},paddingMedium:{padding:"20px"},pointer:{cursor:"pointer","&:disabled":{cursor:"default"}}},r=(0,i.default)({key:"meridian--private-"}),t.cx=r.cx,t.keyframes=r.keyframes,t.css=r.css},7746:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debouncedPlacemarkSearch=t.placemarkSearchParams=t.cleanQuery=t.isEnvOptions=t.asyncClientCall=t.requiredParam=t.getPlacemarkCategories=t.getTagLabels=t.createSearchMatcher=t.keyBy=t.objectWithoutKey=t.uiText=t.logDeprecated=t.logError=t.logWarn=void 0;const n="[@meridian/web-sdk]";t.logWarn=console.warn.bind(console,n),t.logError=console.error.bind(console,n),t.logDeprecated=t.logWarn.bind(null,"[deprecated]"),t.uiText={enDash:"–",unnamedBuilding:"Unassigned"},t.objectWithoutKey=function(e,t){const n=Object.assign({},e);return delete n[t],n},t.keyBy=function(e,t){const n={};for(const r of e)n[t(r)]=r;return n},t.createSearchMatcher=function(e){return t=>t.toLowerCase().indexOf(e.toLowerCase().trim())>=0},t.getTagLabels=function(e){return(e.tags||[]).map((e=>e.name))},t.getPlacemarkCategories=function(e){return(e.categories||[]).map((e=>e.name))},t.requiredParam=function(e,n){(0,t.logError)(`${e}: argument \`${n}\` is required`)},t.asyncClientCall=function(e,...t){setTimeout(e,0,...t)},t.isEnvOptions=function(e){return"staging"===e||"production"===e||"eu"===e||"development"===e||"devCloud"===e},t.cleanQuery=function(e){return e.replace(/-/g," ").replace(/:/g," ").replace(/[\\)"(]/g," ").replace(/[ ]{2,}/g," ").trim()},t.placemarkSearchParams="is_map_published=true AND kind:placemark AND NOT is_searchable=false AND NOT type=exclusion_area",t.debouncedPlacemarkSearch=function e(t,n=0){let r,o,i;return function(...t){return o?(i=!0,new Promise((i=>{o=i,r=setTimeout(a.bind(e,t,i),n)}))):new Promise((i=>{o=i,r=setTimeout(a.bind(e,t,i),n)}))};function a(n,a){i&&a!==o?a(null):(t.apply(e,n).then(a).catch(a),i=!1,clearTimeout(r),r=o=null)}}},4221:function(e,t,n){"use strict";var r,o,i,a=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.API=t.createAPI=t.createMap=t.init=t.mapPointToLatLng=t.latLngToMapPoint=t.restrictedPanZoom=t.version=t.pointsFromArea=t.placemarkIconURL=void 0;const l=s(n(6425)),c=s(n(7975)),u=n(172),f=s(n(5697)),h=s(n(9101)),p=n(5396),d=s(n(529)),m=n(7746),g=n(323),v=new Map;for(const e of g.keys()){const t=c.default.basename(e,".svg"),n=g(e).default;v.set(t,n)}t.placemarkIconURL=function(e){if(!e||e.startsWith("label_"))return h.default;return v.get(e)||((0,m.logError)(`placemarkIconURL: no such icon '${e}'`),h.default)},t.pointsFromArea=function(e){return e?e.split(",").map(Number):[]};const y=()=>n(3034);"complete"===document.readyState?setTimeout(y,0):document.addEventListener("DOMContentLoaded",y,!1);const _={api:void 0};t.version="1.22.7",t.restrictedPanZoom=function(e){return"wheel"===e.type?e.shiftKey||e.altKey||e.ctrlKey||e.metaKey:"touch"!==e.type||e.touches.length>=2},t.latLngToMapPoint=function(e,{lat:t,lng:n}){const r=t,o=n,i=[];e.gps_ref_points.split(",").forEach((e=>{i.push(Number(e))}));const a={lat:i[0],lng:i[1],x:i[4],y:i[5]},s={lat:i[2],lng:i[3],x:i[6],y:i[7]},l=6371;a.globalCoordinateX=l*a.lng*Math.cos((a.lat+s.lat)/2),a.globalCoordinateY=l*a.lat,s.globalCoordinateX=l*s.lng*Math.cos((a.lat+s.lat)/2),s.globalCoordinateY=l*s.lat;const c=l*r,u=(l*o*Math.cos((a.lat+s.lat)/2)-a.globalCoordinateX)/(s.globalCoordinateX-a.globalCoordinateX),f=(c-a.globalCoordinateY)/(s.globalCoordinateY-a.globalCoordinateY);return{x:a.x+(s.x-a.x)*u,y:a.y+(s.y-a.y)*f}},t.mapPointToLatLng=function(e,{x:t,y:n}){const r=[];e.gps_ref_points.split(",").forEach((e=>{r.push(Number(e))}));const o={lat:r[0],lng:r[1],x:r[4],y:r[5]},i={lat:r[2],lng:r[3],x:r[6],y:r[7]},a=o.lng,s=i.lng-a,l=function(){let e;return e=o.y{l.isDestroyed?(0,m.logError)("can't call update on a destroyed MeridianMap"):(l.isDestroyed=!0,(0,u.render)(null,e),t.onDestroy&&t.onDestroy())};let r=null;const o=e=>{r=e},i=(r,{internalUpdate:a=!0}={})=>{t=Object.assign(Object.assign({},t),r);const l=_.api||t.api;if(!l)throw(0,m.requiredParam)("createMap","options.api"),new Error("couldn't create MeridianMap");s=(0,u.render)((0,u.h)(d.default,Object.assign({api:l},t,{update:i,ref:o,destroy:n})),e,s),(0,p.sendAnalyticsCodeEvent)({action:"map.update",locationID:t.locationID,onTagsUpdate:Boolean(t.onTagsUpdate),tagsFilter:Boolean(t.tags&&t.tags.filter),placemarksFilter:Boolean(t.placemarks&&t.placemarks.filter),internalUpdate:a})},a=_.api||t.api;if(!a)throw(0,m.requiredParam)("createMap","options.api"),new Error("couldn't create MeridianMap");let s=(0,u.render)((0,u.h)(d.default,Object.assign({api:a},t,{update:i,ref:o,destroy:n})),e);(0,p.sendAnalyticsCodeEvent)({action:"createMap",locationID:t.locationID,onTagsUpdate:Boolean(t.onTagsUpdate),tagsFilter:Boolean(t.tags&&t.tags.filter),placemarksFilter:Boolean(t.placemarks&&t.placemarks.filter)});const l={destroy:n,isDestroyed:!1,update:e=>{l.isDestroyed?(0,m.logError)("can't call update on a destroyed MeridianMap"):i(e,{internalUpdate:!1})},zoomToDefault:()=>{l.isDestroyed?(0,m.logError)("can't call zoomToDefault on a destroyed MeridianMap"):null==r||r.zoomToDefault()},zoomToPoint:e=>{l.isDestroyed?(0,m.logError)("can't call update on a destroyed MeridianMap"):(e||(0,m.requiredParam)("map.zoomToPoint","options"),void 0===e.x&&(0,m.requiredParam)("map.zoomToPoint","options.x"),void 0===e.y&&(0,m.requiredParam)("map.zoomToPoint","options.y"),void 0===e.scale&&(0,m.requiredParam)("map.zoomToPoint","options.scale"),null==r||r.zoomToPoint(e.x,e.y,e.scale))},centerMap:()=>{l.isDestroyed?(0,m.logError)("can't call update on a destroyed MeridianMap"):null==r||r.centerMap()}};return l},t.createAPI=function(e){return(0,m.logDeprecated)("use `new MeridianSDK.API(options)` instead of `MeridianSDK.createAPI(options)`"),e||(0,m.requiredParam)("createAPI","options"),new b(e)};class b{constructor(e){var n;r.add(this),this.debouncedPlacemarkSearchBeta=(0,m.debouncedPlacemarkSearch)(a(this,r,"m",o).bind(this),600),e.token||(0,m.requiredParam)("API","token"),this.token=e.token,this.environment=("devcloud"===(n=e.environment)?"devCloud":n)||"production",this.language=e.language,this._placemarkSearchAbortController=null,this._localSearchAbortController=null;let i={};this.language&&(i={"accept-language":this.language}),this._axiosEditorAPI=l.default.create({baseURL:S[this.environment],headers:Object.assign({Authorization:`Token ${e.token}`,"Meridian-SDK":`WebSDK/${t.version}`},i)}),this._axiosTagsAPI=l.default.create({baseURL:k[this.environment],headers:{Authorization:`Token ${e.token}`}}),this._axiosTagDetailAPI=l.default.create({baseURL:x[this.environment],headers:{Authorization:`Token ${e.token}`}})}get axios(){return(0,m.logDeprecated)("axios is deprecated; use the MeridianSDK.API fetch methods"),this._axiosEditorAPI}async getDirections(e){e.locationID||(0,m.requiredParam)("getDirections","locationID"),e.startFloorID||(0,m.requiredParam)("getDirections","startFloorID"),e.startPlacemarkID||(0,m.requiredParam)("getDirections","startPlacemarkID"),e.endPlacemarkID||(0,m.requiredParam)("getDirections","endPlacemarkID");const t=new URLSearchParams({from_map_id:e.startFloorID,from_placemark_id:e.startPlacemarkID,to_placemark_ids:e.endPlacemarkID,transport_type:e.transportType||"normal"}),n=`/locations/${e.locationID}/directions?${t}`;return(await this._axiosEditorAPI.get(n)).data}async fetchTagsByFloor(e,t){return e||(0,m.requiredParam)("fetchTagsByFloor","locationID"),t||(0,m.requiredParam)("fetchTagsByFloor","floorID"),(await this._axiosTagsAPI.post("/assets",{floor_id:t,location_id:e})).data.asset_updates}async fetchTagsByLocation(e){return e||(0,m.requiredParam)("fetchTagsByLocation","locationID"),(await this._axiosTagsAPI.post("/assets",{location_id:e})).data.asset_updates}async fetchTagDetail(e){return e||(0,m.requiredParam)("fetchTagDetail","mac"),(await this._axiosTagDetailAPI.get(`/tagsinfo/detail/${e}`)).data}async fetchPlacemarksByLocation(e){return e||(0,m.requiredParam)("fetchPlacemarksByLocation","locationID"),await w((async e=>{const{data:t}=await this._axiosEditorAPI.get(e);return t}),`locations/${e}/placemarks`)}async fetchPlacemarksByFloor(e,t){return e||(0,m.requiredParam)("fetchPlacemarksByFloor","locationID"),t||(0,m.requiredParam)("fetchPlacemarksByFloor","floorID"),await w((async e=>{const{data:t}=await this._axiosEditorAPI.get(e);return t}),`locations/${e}/maps/${t}/placemarks`)}async fetchFloorsByLocation(e){return e||(0,m.requiredParam)("fetchFloorsByLocation","locationID"),await w((async e=>{const{data:t}=await this._axiosEditorAPI.get(e);return t}),`locations/${e}/maps`)}async fetchFloorData(e,t){e||(0,m.requiredParam)("fetchFloorData","locationID"),t||(0,m.requiredParam)("fetchFloorData","floorID");const n=`locations/${e}/maps/${t}`,{data:r}=await this._axiosEditorAPI.get(n);return r}async fetchSVG(e){e||(0,m.requiredParam)("fetchSVG","svgURL");const{data:t}=await this._axiosEditorAPI.get(e,{responseType:"blob"});return URL.createObjectURL(t)}openStream({locationID:e,floorID:t,resourceIDs:n,resourceType:r="FLOOR",onInitialTags:o=(()=>{}),onTagUpdate:i=(()=>{}),onException:a=(()=>{}),onClose:s=(()=>{}),onOpen:l=(()=>{})}){"FLOOR"===r&&t&&!n&&(n=[t]),"LOCATION"===r&&e&&!n&&(n=[e]),e||(0,m.requiredParam)("openStream","locationID"),"FLOOR"!==r||t||(0,m.requiredParam)("openStream","floorID"),n||(0,m.requiredParam)("openStream","resourceIDs");let c=!1;const u=new URLSearchParams({method:"POST",authorization:`Token ${this.token}`}),h=O[this.environment],p=new f.default(`${h}?${u}`),d={asset_requests:[{resource_type:r,location_id:e,resource_ids:n}]},g=()=>{c||(c=!0,(0,m.asyncClientCall)(s),p.close())};return p.addEventListener("open",(()=>{c||(l(),p.send(JSON.stringify(d)))})),p.addEventListener("message",(e=>{if(c)return;const t=JSON.parse(e.data);if(t.error)a(new Error(t.error.message));else{if(!t.result)throw new Error(`Unknown message: ${e.data}`);for(const e of t.result.asset_updates){const t=e.event_type;if("UPDATE"!==t)throw new Error(`Unknown event type: ${t}`);(0,m.asyncClientCall)(i,e)}}})),p.addEventListener("error",(()=>{c||a(new Error("MeridianSDK.openStream connection error"))})),p.addEventListener("close",(()=>{c||s()})),(async()=>{if(t&&"FLOOR"===r)try{const n=await this.fetchTagsByFloor(e,t);(0,m.asyncClientCall)(o,n)}catch(e){(0,m.asyncClientCall)(a,e),g()}else if(e&&"LOCATION"===r)try{const t=await this.fetchTagsByLocation(e);(0,m.asyncClientCall)(o,t)}catch(e){(0,m.asyncClientCall)(a,e),g()}else(0,m.asyncClientCall)(o,[])})(),{close:g}}}async function w(e,t){const n=await e(t),r=n.results;let o=n.next;for(;o;){const t=await e(o);r.push(...t.results),o=t.next}return r}t.API=b,r=new WeakSet,o=async function(e){const t=(0,m.cleanQuery)(e.searchStr);if(e.locationID||(0,m.requiredParam)("placemarkSearch","locationID"),this._placemarkSearchAbortController&&this._placemarkSearchAbortController.abort(),this._localSearchAbortController&&this._localSearchAbortController.abort(),!t)return[];this._placemarkSearchAbortController=new AbortController;const n=new URLSearchParams({q:`${t} AND (${m.placemarkSearchParams})`,page_size:"100"});try{return await this._axiosEditorAPI.get(`locations/${e.locationID}/search`,{signal:this._placemarkSearchAbortController.signal,params:n}).then((async n=>{const o=n.data.results;if(e.refPoint&&e.refFloorID&&o.length){const n=await a(this,r,"m",i).call(this,{locationID:e.locationID,searchStr:t,point:e.refPoint,mapID:e.refFloorID}),s=[],l=n.map((e=>e.id));return o.forEach((e=>{l.includes(e.id)||s.push(e)})),this._placemarkSearchAbortController=null,[...n,...s]}return this._placemarkSearchAbortController=null,o}))}catch(e){return"canceled"===e.message?null:(console.warn(e),[])}},i=async function(e){const t=(0,m.cleanQuery)(e.searchStr);if(this._localSearchAbortController&&this._localSearchAbortController.abort(),!t)return[];this._localSearchAbortController=new AbortController;const n=new URLSearchParams({q:`${t} AND (${m.placemarkSearchParams})`,limit:"10",appid:e.locationID,map_id:e.mapID,point:e.point});return this._axiosEditorAPI.get("search/local",{signal:this._localSearchAbortController.signal,params:n}).then((e=>(this._localSearchAbortController=null,e.data.results)))};const k={development:"http://localhost:8091/api/v1",devCloud:"https://dev-tags.meridianapps.com/api/v1",production:"https://tags.meridianapps.com/api/v1",eu:"https://tags-eu.meridianapps.com/api/v1",staging:"https://staging-tags.meridianapps.com/api/v1"},x={development:"http://localhost:8091/api",devCloud:"https://dev-tags.meridianapps.com/api",production:"https://tags.meridianapps.com/api",eu:"https://tags-eu.meridianapps.com/api",staging:"https://staging-tags.meridianapps.com/api"},O={development:"ws://localhost:8091/streams/v1/assets",devCloud:"wss://dev-tags.meridianapps.com/streams/v1/assets",production:"wss://tags.meridianapps.com/streams/v1/assets",eu:"wss://tags-eu.meridianapps.com/streams/v1/assets",staging:"wss://staging-tags.meridianapps.com/streams/v1/assets"},S={development:"http://localhost:8091/api",devCloud:"https://dev-edit.meridianapps.com/api",production:"https://edit.meridianapps.com/api",eu:"https://edit-eu.meridianapps.com/api",staging:"https://staging-edit.meridianapps.com/api"}},6425:function(e,t,n){"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,a=(s=Object.create(null),e=>{const t=o.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const l=e=>(e=e.toLowerCase(),t=>a(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,f=c("undefined"),h=l("ArrayBuffer"),p=c("string"),d=c("function"),m=c("number"),g=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==a(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},y=l("Date"),_=l("File"),b=l("Blob"),w=l("FileList"),k=l("URLSearchParams"),[x,O,S,C]=["ReadableStream","Request","Response","Headers"].map(l);function A(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),u(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,P=e=>!f(e)&&e!==T,D=(j="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>j&&e instanceof j);var j;const M=l("HTMLFormElement"),R=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),L=l("RegExp"),N=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};A(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},I="abcdefghijklmnopqrstuvwxyz",z="0123456789",F={DIGIT:z,ALPHA:I,ALPHA_DIGIT:I+I.toUpperCase()+z},B=l("AsyncFunction"),U=($="function"==typeof setImmediate,q=d(T.postMessage),$?setImmediate:q?(W=`axios@${Math.random()}`,H=[],T.addEventListener("message",(({source:e,data:t})=>{e===T&&t===W&&H.length&&H.shift()()}),!1),e=>{H.push(e),T.postMessage(W,"*")}):e=>setTimeout(e));var $,q,W,H;const Z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||U;var G={isArray:u,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&d(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||d(e.append)&&("formdata"===(t=a(e))||"object"===t&&d(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:v,isReadableStream:x,isRequest:O,isResponse:S,isHeaders:C,isUndefined:f,isDate:y,isFile:_,isBlob:b,isRegExp:L,isFunction:d,isStream:e=>g(e)&&d(e.pipe),isURLSearchParams:k,isTypedArray:D,isFileList:w,forEach:A,merge:function e(){const{caseless:t}=P(this)&&this||{},n={},r=(r,o)=>{const i=t&&E(n,o)||o;v(n[i])&&v(r)?n[i]=e(n[i],r):v(r)?n[i]=e({},r):u(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e(A(t,((t,o)=>{n&&d(t)?e[o]=r(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,s;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],r&&!r(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:R,hasOwnProp:R,reduceDescriptors:N,freezeMethods:e=>{N(e,((t,n)=>{if(d(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];d(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return u(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:E,global:T,isContextDefined:P,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&d(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=u(e)?[]:{};return A(e,((e,t)=>{const i=n(e,r+1);!f(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:B,isThenable:e=>e&&(g(e)||d(e))&&d(e.then)&&d(e.catch),setImmediate:U,asap:Z};function V(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}G.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const X=V.prototype,J={};function Y(e){return G.isPlainObject(e)||G.isArray(e)}function K(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,n){return e?e.concat(t).map((function(e,t){return e=K(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{J[e]={value:e}})),Object.defineProperties(V,J),Object.defineProperty(X,"isAxiosError",{value:!0}),V.from=(e,t,n,r,o,i)=>{const a=Object.create(X);return G.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),V.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ee=G.toFlatObject(G,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!G.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(!s&&G.isBlob(e))throw new V("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(G.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(G.isArray(e)&&function(e){return G.isArray(e)&&!e.some(Y)}(e)||(G.isFileList(e)||G.endsWith(n,"[]"))&&(s=G.toArray(e)))return n=K(n),s.forEach((function(e,r){!G.isUndefined(e)&&null!==e&&t.append(!0===a?Q([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Y(e)||(t.append(Q(o,n,i),l(e)),!1)}const u=[],f=Object.assign(ee,{defaultVisitor:c,convertValue:l,isVisitable:Y});if(!G.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!G.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),G.forEach(n,(function(n,i){!0===(!(G.isUndefined(n)||null===n)&&o.call(t,n,G.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const oe=re.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ae(e,t,n){if(!t)return e;const r=n&&n.encode||ie,o=n&&n.serialize;let i;if(i=o?o(t,n):G.isURLSearchParams(t)?t.toString():new re(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var se=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ue="undefined"!=typeof window&&"undefined"!=typeof document,fe="object"==typeof navigator&&navigator||void 0,he=ue&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,de=ue&&window.location.href||"http://localhost";var me={...Object.freeze({__proto__:null,hasBrowserEnv:ue,hasStandardBrowserWebWorkerEnv:pe,hasStandardBrowserEnv:he,navigator:fe,origin:de}),...ce};function ge(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&G.isArray(r)?r.length:i,s?(G.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&G.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&G.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r{t(function(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ve={transitional:le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=G.isObject(e);if(o&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return r?JSON.stringify(ge(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new me.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return me.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(G.isString(e))try{return(0,JSON.parse)(e),G.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ve.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw V.from(e,V.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],(e=>{ve.headers[e]={}}));var ye=ve;const _e=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),be=Symbol("internals");function we(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:G.isArray(e)?e.map(ke):String(e)}function xe(e,t,n,r,o){return G.isFunction(r)?r.call(this,t,n):(o&&(t=n),G.isString(t)?G.isString(r)?-1!==t.indexOf(r):G.isRegExp(r)?r.test(t):void 0:void 0)}class Oe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=we(t);if(!o)throw new Error("header name must be a non-empty string");const i=G.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ke(e))}const i=(e,t)=>G.forEach(e,((e,n)=>o(e,n,t)));if(G.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(G.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&_e[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(G.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=we(e)){const n=G.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(G.isFunction(t))return t.call(this,e,n);if(G.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=we(e)){const n=G.findKey(this,e);return!(!n||void 0===this[n]||t&&!xe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=we(e)){const o=G.findKey(n,e);!o||t&&!xe(0,n[o],o,t)||(delete n[o],r=!0)}}return G.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!xe(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return G.forEach(this,((r,o)=>{const i=G.findKey(n,o);if(i)return t[i]=ke(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=ke(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return G.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&G.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[be]=this[be]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=we(e);t[r]||(function(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return G.isArray(e)?e.forEach(r):r(e),this}}Oe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Oe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),G.freezeMethods(Oe);var Se=Oe;function Ce(e,t){const n=this||ye,r=t||n,o=Se.from(r.headers);let i=r.data;return G.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ae(e){return!(!e||!e.__CANCEL__)}function Ee(e,t,n){V.call(this,null==e?"canceled":e,V.ERR_CANCELED,t,n),this.name="CanceledError"}function Te(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new V("Request failed with status code "+n.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}G.inherits(Ee,V,{__CANCEL__:!0});const Pe=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,f=0;for(;u!==i;)f+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},De=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},je=e=>(...t)=>G.asap((()=>e(...t)));var Me=me.hasStandardBrowserEnv?function(){const e=me.navigator&&/(msie|trident)/i.test(me.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=G.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Re=me.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),G.isString(r)&&a.push("path="+r),G.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Le(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ne=e=>e instanceof Se?{...e}:e;function Ie(e,t){t=t||{};const n={};function r(e,t,n){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:n},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function o(e,t,n){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!G.isUndefined(t))return r(void 0,t)}function a(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Ne(e),Ne(t),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);G.isUndefined(a)&&i!==s||(n[r]=a)})),n}var ze=e=>{const t=Ie({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Se.from(s),t.url=ae(Le(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),G.isFormData(r))if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(me.hasStandardBrowserEnv&&(o&&G.isFunction(o)&&(o=o(t)),o||!1!==o&&Me(t.url))){const e=i&&a&&Re.read(a);e&&s.set(i,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=ze(e);let o=r.data;const i=Se.from(r.headers).normalize();let a,s,l,c,u,{responseType:f,onUploadProgress:h,onDownloadProgress:p}=r;function d(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Se.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Te((function(e){t(e),d()}),(function(e){n(e),d()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new V("Request aborted",V.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new V("Network Error",V.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||le;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new V(t,o.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&G.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),G.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([l,u]=Pe(p,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,c]=Pe(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ee(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===me.protocols.indexOf(v)?n(new V("Unsupported protocol "+v+":",V.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Be=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof V?t:new Ee(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new V(`timeout ${t} of ms exceeded`,V.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]};const Ue=function*(e,t){let n=e.byteLength;if(!t||n{const i=async function*(e,t,n){for await(const r of e)yield*Ue(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw l(e),e}},cancel(e){return l(e),i.return()}},{highWaterMark:2})},qe="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,We=qe&&"function"==typeof ReadableStream,He=qe&&("function"==typeof TextEncoder?(Ze=new TextEncoder,e=>Ze.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ze;const Ge=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ve=We&&Ge((()=>{let e=!1;const t=new Request(me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Xe=We&&Ge((()=>G.isReadableStream(new Response("").body))),Je={stream:Xe&&(e=>e.body)};var Ye;qe&&(Ye=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Je[e]&&(Je[e]=G.isFunction(Ye[e])?t=>t[e]():(t,n)=>{throw new V(`Response type '${e}' is not supported`,V.ERR_NOT_SUPPORT,n)})})));const Ke={http:null,xhr:Fe,fetch:qe&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=ze(e);c=c?(c+"").toLowerCase():"text";let p,d,[m,g]=o||i||a?Be([o,i],a):[];const v=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let y;try{if(l&&Ve&&"get"!==n&&"head"!==n&&0!==(y=await(async(e,t)=>{const n=G.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:G.isBlob(e)?e.size:G.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e)?(await He(e)).byteLength:void 0))(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(G.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=De(y,Pe(je(l)));r=$e(n.body,65536,e,t,He)}}G.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;d=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?f:void 0});let i=await fetch(d);const a=Xe&&("stream"===c||"response"===c);if(Xe&&(s||a)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=G.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&De(t,Pe(je(s),!0))||[];i=new Response($e(i.body,65536,n,(()=>{r&&r(),a&&v()}),He),e)}c=c||"text";let p=await Je[G.findKey(Je,c)||"text"](i,e);return!a&&v(),g&&g(),await new Promise(((t,n)=>{Te(t,n,{data:p,headers:Se.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:d})}))}catch(t){if(v(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new V("Network Error",V.ERR_NETWORK,e,d),{cause:t.cause||t});throw V.from(t,t&&t.code,e,d)}})};G.forEach(Ke,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qe=e=>`- ${e}`,et=e=>G.isFunction(e)||null===e||!1===e;var tt=e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new V("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Qe).join("\n"):" "+Qe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee(null,e)}function rt(e){return nt(e),e.headers=Se.from(e.headers),e.data=Ce.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ye.adapter)(e).then((function(t){return nt(e),t.data=Ce.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t}),(function(t){return Ae(t)||(nt(e),t&&t.response&&(t.response.data=Ce.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)}))}const ot={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const it={};ot.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.5] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new V(r(o," has been removed"+(t?" in "+t:"")),V.ERR_DEPRECATED);return t&&!it[o]&&(it[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var at={assertOptions:function(e,t,n){if("object"!=typeof e)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new V("option "+i+" must be "+n,V.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new V("Unknown option "+i,V.ERR_BAD_OPTION)}},validators:ot};const st=at.validators;class lt{constructor(e){this.defaults=e,this.interceptors={request:new se,response:new se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ie(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&at.assertOptions(n,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),null!=r&&(G.isFunction(r)?t.paramsSerializer={serialize:r}:at.assertOptions(r,{encode:st.function,serialize:st.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&G.merge(o.common,o[t.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Se.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,f=0;if(!s){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);f{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ee(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new ut((function(t){e=t})),cancel:e}}}var ft=ut;const ht={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ht).forEach((([e,t])=>{ht[t]=e}));var pt=ht;const dt=function e(t){const n=new ct(t),o=r(ct.prototype.request,n);return G.extend(o,ct.prototype,n,{allOwnKeys:!0}),G.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Ie(t,n))},o}(ye);dt.Axios=ct,dt.CanceledError=Ee,dt.CancelToken=ft,dt.isCancel=Ae,dt.VERSION="1.7.5",dt.toFormData=te,dt.AxiosError=V,dt.Cancel=dt.CanceledError,dt.all=function(e){return Promise.all(e)},dt.spread=function(e){return function(t){return e.apply(null,t)}},dt.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},dt.mergeConfig=Ie,dt.AxiosHeaders=Se,dt.formToJSON=e=>ge(G.isHTMLForm(e)?new FormData(e):e),dt.getAdapter=tt,dt.HttpStatusCode=pt,dt.default=dt,e.exports=dt},5478:function(e,t,n){"use strict";function r(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}n.d(t,{A:function(){return r}})},3663:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7268),o=n(7947);function i(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===o.g&&t.documentElement.namespaceURI===o.g?t.createElement(e):t.createElementNS(n,e)}}function a(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function s(e){var t=(0,r.A)(e);return(t.local?a:i)(t)}},9062:function(e,t,n){"use strict";n.r(t),n.d(t,{create:function(){return i},creator:function(){return r.A},local:function(){return s},matcher:function(){return c.A},namespace:function(){return u.A},namespaces:function(){return f.A},pointer:function(){return h.A},pointers:function(){return d},select:function(){return o.A},selectAll:function(){return v},selection:function(){return g.Ay},selector:function(){return y.A},selectorAll:function(){return _.A},style:function(){return b.j},window:function(){return w.A}});var r=n(3663),o=n(183);function i(e){return(0,o.A)((0,r.A)(e).call(document.documentElement))}var a=0;function s(){return new l}function l(){this._="@"+(++a).toString(36)}l.prototype=s.prototype={constructor:l,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var c=n(6541),u=n(7268),f=n(7947),h=n(5970),p=n(2324);function d(e,t){return e.target&&(e=(0,p.A)(e),void 0===t&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,(e=>(0,h.A)(e,t)))}var m=n(5478),g=n(6452);function v(e){return"string"==typeof e?new g.LN([document.querySelectorAll(e)],[document.documentElement]):new g.LN([(0,m.A)(e)],g.zr)}var y=n(574),_=n(747),b=n(3683),w=n(6747)},6541:function(e,t,n){"use strict";function r(e){return function(){return this.matches(e)}}function o(e){return function(t){return t.matches(e)}}n.d(t,{A:function(){return r},j:function(){return o}})},7268:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(7947);function o(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.A.hasOwnProperty(t)?{space:r.A[t],local:e}:e}},7947:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});var r="http://www.w3.org/1999/xhtml";t.A={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},5970:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(2324);function o(e,t){if(e=(0,r.A)(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,[(o=o.matrixTransform(t.getScreenCTM().inverse())).x,o.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}},183:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(6452);function o(e){return"string"==typeof e?new r.LN([[document.querySelector(e)]],[document.documentElement]):new r.LN([[e]],r.zr)}},6452:function(e,t,n){"use strict";n.d(t,{LN:function(){return re},Ay:function(){return ie},zr:function(){return ne}});var r=n(574),o=n(5478),i=n(747),a=n(6541),s=Array.prototype.find;function l(){return this.firstElementChild}var c=Array.prototype.filter;function u(){return Array.from(this.children)}function f(e){return new Array(e.length)}function h(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function p(e,t,n,r,o,i){for(var a,s=0,l=t.length,c=i.length;st?1:e>=t?0:NaN}h.prototype={constructor:h,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var y=n(7268);function _(e){return function(){this.removeAttribute(e)}}function b(e){return function(){this.removeAttributeNS(e.space,e.local)}}function w(e,t){return function(){this.setAttribute(e,t)}}function k(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function x(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function O(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var S=n(3683);function C(e){return function(){delete this[e]}}function A(e,t){return function(){this[e]=t}}function E(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function T(e){return e.trim().split(/^|\s+/)}function P(e){return e.classList||new D(e)}function D(e){this._node=e,this._names=T(e.getAttribute("class")||"")}function j(e,t){for(var n=P(e),r=-1,o=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var H=n(3663);function Z(){return null}function G(){var e=this.parentNode;e&&e.removeChild(this)}function V(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function X(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function J(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r=S&&(S=O+1);!(x=w[S])&&++S<_;);k._next=x||null}}return(s=new re(s,o))._enter=l,s._exit=c,s},enter:function(){return new re(this._enter||this._groups.map(f),this._parents)},exit:function(){return new re(this._exit||this._groups.map(f),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,i=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,a=Math.min(o,i),s=new Array(o),l=0;l=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=v);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?C:"function"==typeof t?E:A)(e,t)):this.node()[e]},classed:function(e,t){var n=T(e+"");if(arguments.length<2){for(var r=P(this.node()),o=-1,i=n.length;++o=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?Y:J,r=0;r1?this.each((null==t?o:"function"==typeof t?a:i)(e,t,null==n?"":n)):l(this.node(),e)}function l(e,t){return e.style.getPropertyValue(t)||(0,r.A)(e).getComputedStyle(e,null).getPropertyValue(t)}},574:function(e,t,n){"use strict";function r(){}function o(e){return null==e?r:function(){return this.querySelector(e)}}n.d(t,{A:function(){return o}})},747:function(e,t,n){"use strict";function r(){return[]}function o(e){return null==e?r:function(){return this.querySelectorAll(e)}}n.d(t,{A:function(){return o}})},2324:function(e,t,n){"use strict";function r(e){let t;for(;t=e.sourceEvent;)e=t;return e}n.d(t,{A:function(){return r}})},6747:function(e,t,n){"use strict";function r(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}n.d(t,{A:function(){return r}})},7662:function(e,t,n){"use strict";n.r(t),n.d(t,{active:function(){return ut},interrupt:function(){return N},transition:function(){return ot}});var r,o,i=n(6452),a=n(2996),s=0,l=0,c=0,u=1e3,f=0,h=0,p=0,d="object"==typeof performance&&performance.now?performance:Date,m="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function g(){return h||(m(v),h=d.now()+p)}function v(){h=0}function y(){this._call=this._time=this._next=null}function _(e,t,n){var r=new y;return r.restart(e,t,n),r}function b(){h=(f=d.now())+p,s=l=0;try{!function(){g(),++s;for(var e,t=r;t;)(e=h-t._time)>=0&&t._call.call(null,e),t=t._next;--s}()}finally{s=0,function(){for(var e,t,n=r,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);o=e,k(i)}(),h=0}}function w(){var e=d.now(),t=e-f;t>u&&(p-=t,f=e)}function k(e){s||(l&&(l=clearTimeout(l)),e-h>24?(e<1/0&&(l=setTimeout(b,e-d.now()-p)),c&&(c=clearInterval(c))):(c||(f=d.now(),c=setInterval(w,u)),s=1,m(b)))}function x(e,t,n){var r=new y;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}y.prototype=_.prototype={constructor:y,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?g():+n)+(null==t?0:+t),this._next||o===this||(o?o._next=this:r=this,o=this),this._call=e,this._time=n,k()},stop:function(){this._call&&(this._call=null,this._time=1/0,k())}};var O=(0,a.A)("start","end","cancel","interrupt"),S=[],C=0,A=1,E=2,T=3,P=5,D=6;function j(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(l){var c,u,f,h;if(n.state!==A)return s();for(c in o)if((h=o[c]).name===n.name){if(h.state===T)return x(i);4===h.state?(h.state=D,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete o[c]):+cC)throw new Error("too late; already scheduled");return n}function R(e,t){var n=L(e,t);if(n.state>T)throw new Error("too late; already running");return n}function L(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function N(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>E&&n.state180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:I(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,l),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:I(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,l),function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:I(e,n)},{i:s-2,x:I(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,l),i=a=null,function(e){for(var t,n=-1,r=l.length;++n>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?me(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?me(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=oe.exec(e))?new ve(t[1],t[2],t[3],1):(t=ie.exec(e))?new ve(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ae.exec(e))?me(t[1],t[2],t[3],t[4]):(t=se.exec(e))?me(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=le.exec(e))?xe(t[1],t[2]/100,t[3]/100,1):(t=ce.exec(e))?xe(t[1],t[2]/100,t[3]/100,t[4]):ue.hasOwnProperty(e)?de(ue[e]):"transparent"===e?new ve(NaN,NaN,NaN,0):null}function de(e){return new ve(e>>16&255,e>>8&255,255&e,1)}function me(e,t,n,r){return r<=0&&(e=t=n=NaN),new ve(e,t,n,r)}function ge(e,t,n,r){return 1===arguments.length?((o=e)instanceof Y||(o=pe(o)),o?new ve((o=o.rgb()).r,o.g,o.b,o.opacity):new ve):new ve(e,t,n,null==r?1:r);var o}function ve(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ye(){return`#${ke(this.r)}${ke(this.g)}${ke(this.b)}`}function _e(){const e=be(this.opacity);return`${1===e?"rgb(":"rgba("}${we(this.r)}, ${we(this.g)}, ${we(this.b)}${1===e?")":`, ${e})`}`}function be(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function we(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ke(e){return((e=we(e))<16?"0":"")+e.toString(16)}function xe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Se(e,t,n,r)}function Oe(e){if(e instanceof Se)return new Se(e.h,e.s,e.l,e.opacity);if(e instanceof Y||(e=pe(e)),!e)return new Se;if(e instanceof Se)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n0&&l<1?0:a,new Se(a,s,l,e.opacity)}function Se(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ce(e){return(e=(e||0)%360)<0?e+360:e}function Ae(e){return Math.max(0,Math.min(1,e||0))}function Ee(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Te(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}X(Y,pe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fe,formatHex:fe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Oe(this).formatHsl()},formatRgb:he,toString:he}),X(ve,ge,J(Y,{brighter(e){return e=null==e?Q:Math.pow(Q,e),new ve(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?K:Math.pow(K,e),new ve(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ve(we(this.r),we(this.g),we(this.b),be(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ye,formatHex:ye,formatHex8:function(){return`#${ke(this.r)}${ke(this.g)}${ke(this.b)}${ke(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:_e,toString:_e})),X(Se,(function(e,t,n,r){return 1===arguments.length?Oe(e):new Se(e,t,n,null==r?1:r)}),J(Y,{brighter(e){return e=null==e?Q:Math.pow(Q,e),new Se(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?K:Math.pow(K,e),new Se(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ve(Ee(e>=240?e-240:e+120,o,r),Ee(e,o,r),Ee(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Se(Ce(this.h),Ae(this.s),Ae(this.l),be(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=be(this.opacity);return`${1===e?"hsl(":"hsla("}${Ce(this.h)}, ${100*Ae(this.s)}%, ${100*Ae(this.l)}%${1===e?")":`, ${e})`}`}}));var Pe=e=>()=>e;function De(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Pe(isNaN(e)?t:e)}var je=function e(t){var n=function(e){return 1==(e=+e)?De:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Pe(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ge(e)).r,(t=ge(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=De(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Me(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=ri&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:I(n,r)})),i=Le.lastIndex;return i=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?M:R;return function(){var a=i(this,e),s=a.on;s!==r&&(o=(r=s).copy()).on(t,n),a.on=o}}(n,e,t))},attr:function(e,t){var n=(0,H.A)(e),r="transform"===n?W:Ie;return this.attrTween(e,"function"==typeof t?(n.local?qe:$e)(n,r,V(this,"attr."+e,t)):null==t?(n.local?Fe:ze)(n):(n.local?Ue:Be)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=(0,H.A)(e);return this.tween(n,(r.local?We:He)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?q:Ie;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=(0,et.j)(this,e),a=(this.style.removeProperty(e),(0,et.j)(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,tt(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,o,i;return function(){var a=(0,et.j)(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=(0,et.j)(this,e)),a===l?null:a===r&&l===o?i:(o=l,i=t(r=a,s))}}(e,r,V(this,"style."+e,t))).each(function(e,t){var n,r,o,i,a="style."+t,s="end."+a;return function(){var l=R(this,e),c=l.on,u=null==l.value[a]?i||(i=tt(t)):void 0;c===n&&o===u||(r=(n=c).copy()).on(s,o=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,i=n+"";return function(){var a=(0,et.j)(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,i,n)),r}return i._value=t,i}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(V(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=L(this.node(),n).tween,i=0,a=o.length;iA&&n.name===t)return new rt([[e]],ct,t,+r);return null}},9529:function(e,t,n){"use strict";n.r(t),n.d(t,{ZoomTransform:function(){return be},zoom:function(){return De},zoomIdentity:function(){return we},zoomTransform:function(){return ke}});var r=n(2996);function o(){}function i(e){return null==e?o:function(){return this.querySelector(e)}}function a(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function s(){return[]}function l(e){return function(t){return t.matches(e)}}var c=Array.prototype.find;function u(){return this.firstElementChild}var f=Array.prototype.filter;function h(){return this.children}function p(e){return new Array(e.length)}function d(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function m(e,t,n,r,o,i){for(var a,s=0,l=t.length,c=i.length;st?1:e>=t?0:NaN}d.prototype={constructor:d,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var _="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:_,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function w(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),b.hasOwnProperty(t)?{space:b[t],local:e}:e}function k(e){return function(){this.removeAttribute(e)}}function x(e){return function(){this.removeAttributeNS(e.space,e.local)}}function O(e,t){return function(){this.setAttribute(e,t)}}function S(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function C(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function A(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function E(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function T(e){return function(){this.style.removeProperty(e)}}function P(e,t,n){return function(){this.style.setProperty(e,t,n)}}function D(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function j(e){return function(){delete this[e]}}function M(e,t){return function(){this[e]=t}}function R(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function L(e){return e.trim().split(/^|\s+/)}function N(e){return e.classList||new I(e)}function I(e){this._node=e,this._names=L(e.getAttribute("class")||"")}function z(e,t){for(var n=N(e),r=-1,o=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var ce=[null];function ue(e,t){this._groups=e,this._parents=t}function fe(e){return"string"==typeof e?new ue([[document.querySelector(e)]],[document.documentElement]):new ue([[e]],ce)}function he(e){e.preventDefault(),e.stopImmediatePropagation()}function pe(e){return((e=Math.exp(e))+1/e)/2}ue.prototype=function(){return new ue([[document.documentElement]],ce)}.prototype={constructor:ue,select:function(e){"function"!=typeof e&&(e=i(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o=S&&(S=O+1);!(x=w[S])&&++S<_;);k._next=x||null}}return(l=new ue(l,o))._enter=c,l._exit=u,l},enter:function(){return new ue(this._enter||this._groups.map(p),this._parents)},exit:function(){return new ue(this._exit||this._groups.map(p),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,i=this.exit();return r="function"==typeof e?e(r):r.append(e+""),null!=t&&(o=t(o)),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(e){if(!(e instanceof ue))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),s=0;s=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=y);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?T:"function"==typeof t?D:P)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||E(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?j:"function"==typeof t?R:M)(e,t)):this.node()[e]},classed:function(e,t){var n=L(e+"");if(arguments.length<2){for(var r=N(this.node()),o=-1,i=n.length;++o=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?ie:oe,r=0;r()=>e;function _e(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function be(e,t,n){this.k=e,this.x=t,this.y=n}be.prototype={constructor:be,scale:function(e){return 1===e?this:new be(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new be(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var we=new be(1,0,0);function ke(e){for(;!e.__zoom;)if(!(e=e.parentNode))return we;return e.__zoom}function xe(e){e.stopImmediatePropagation()}function Oe(e){e.preventDefault(),e.stopImmediatePropagation()}function Se(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function Ce(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function Ae(){return this.__zoom||we}function Ee(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Te(){return navigator.maxTouchPoints||"ontouchstart"in this}function Pe(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function De(){var e,t,n,o=Se,i=Ce,a=Pe,s=Ee,l=Te,c=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=de,p=(0,r.A)("start","zoom","end"),d=500,m=150,g=0,v=10;function y(e){e.property("__zoom",Ae).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",C).on("dblclick.zoom",A).filter(l).on("touchstart.zoom",E).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _(e,t){return(t=Math.max(c[0],Math.min(c[1],t)))===e.k?e:new be(t,e.x,e.y)}function b(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new be(e.k,r,o)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function k(e,t,n,r){e.on("start.zoom",(function(){x(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,o=arguments,a=x(e,o).event(r),s=i.apply(e,o),l=null==n?w(s):"function"==typeof n?n.apply(e,o):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),u=e.__zoom,f="function"==typeof t?t.apply(e,o):t,p=h(u.invert(l).concat(c/u.k),f.invert(l).concat(c/f.k));return function(e){if(1===e)e=f;else{var t=p(e),n=c/t[2];e=new be(n,l[0]-t[0]*n,l[1]-t[1]*n)}a.zoom(null,e)}}))}function x(e,t,n){return!n&&e.__zooming||new O(e,t)}function O(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function S(e,...t){if(o.apply(this,arguments)){var n=x(this,t).event(e),r=this.__zoom,i=Math.max(c[0],Math.min(c[1],r.k*Math.pow(2,s.apply(this,arguments)))),l=(0,ge.A)(e);if(n.wheel)n.mouse[0][0]===l[0]&&n.mouse[0][1]===l[1]||(n.mouse[1]=r.invert(n.mouse[0]=l)),clearTimeout(n.wheel);else{if(r.k===i)return;n.mouse=[l,r.invert(l)],(0,ve.interrupt)(this),n.start()}Oe(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),m),n.zoom("mouse",a(b(_(r,i),n.mouse[0],n.mouse[1]),n.extent,u))}}function C(e,...t){if(!n&&o.apply(this,arguments)){var r=e.currentTarget,i=x(this,t,!0).event(e),s=(0,me.A)(e.view).on("mousemove.zoom",(function(e){if(Oe(e),!i.moved){var t=e.clientX-c,n=e.clientY-f;i.moved=t*t+n*n>g}i.event(e).zoom("mouse",a(b(i.that.__zoom,i.mouse[0]=(0,ge.A)(e,r),i.mouse[1]),i.extent,u))}),!0).on("mouseup.zoom",(function(e){s.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,r=fe(e).on("dragstart.drag",null);t&&(r.on("click.drag",he,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,i.moved),Oe(e),i.event(e).end()}),!0),l=(0,ge.A)(e,r),c=e.clientX,f=e.clientY;!function(e){var t=e.document.documentElement,n=fe(e).on("dragstart.drag",he,!0);"onselectstart"in t?n.on("selectstart.drag",he,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),xe(e),i.mouse=[l,this.__zoom.invert(l)],(0,ve.interrupt)(this),i.start()}}function A(e,...t){if(o.apply(this,arguments)){var n=this.__zoom,r=(0,ge.A)(e.changedTouches?e.changedTouches[0]:e,this),s=n.invert(r),l=n.k*(e.shiftKey?.5:2),c=a(b(_(n,l),r,s),i.apply(this,t),u);Oe(e),f>0?(0,me.A)(this).transition().duration(f).call(k,c,r,e):(0,me.A)(this).call(y.transform,c,r,e)}}function E(n,...r){if(o.apply(this,arguments)){var i,a,s,l,c=n.touches,u=c.length,f=x(this,r,n.changedTouches.length===u).event(n);for(xe(n),a=0;a