@digitransit-component/digitransit-component-autosuggest 11.0.16 → 11.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react"),require("react-i18next"),require("classnames"),require("downshift"),require("@digitransit-component/digitransit-component-suggestion-item"),require("@digitransit-component/digitransit-component-icon"),require("i18next"),require("luxon"),require("react-modal"),require("@digitransit-component/digitransit-component-dialog-modal"),require("react/jsx-runtime")):"function"==typeof define&&define.amd?define(["exports","prop-types","react","react-i18next","classnames","downshift","@digitransit-component/digitransit-component-suggestion-item","@digitransit-component/digitransit-component-icon","i18next","luxon","react-modal","@digitransit-component/digitransit-component-dialog-modal","react/jsx-runtime"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).DTAutosuggest={},e.PropTypes,e.React,e.reactI18next,e.cx,e.downshift,e.SuggestionItem,e.Icon,e.i18next,e.luxon,e.ReactModal,e.DialogModal,e.jsxRuntime)}(this,function(e,t,n,r,o,i,s,a,u,l,c,d,f){"use strict";function p(e){return e&&e.__esModule?e:{default:e}}var h,g,b,y,m,v,_,w,S,O,x,j,k,E,R,P,C,A,T,N,M,L,I,F,D,U,z,q,B=p(t),H=p(n),V=p(o),$=p(s),W=p(a),G=p(c),K=p(d);function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function Y(e){var t=function(e,t){if("object"!=J(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=J(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==J(t)?t:t+""}function X(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z(){if(g)return h;return g=1,h=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function ee(){if(y)return b;y=1;var e="object"==typeof global&&global&&global.Object===Object&&global;return b=e}function te(){if(v)return m;v=1;var e=ee(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return m=n}function ne(){if(j)return x;j=1;var e=function(){if(O)return S;O=1;var e=/\s/;return S=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n},S}(),t=/^\s+/;return x=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}function re(){if(E)return k;E=1;var e=te().Symbol;return k=e}function oe(){if(N)return T;N=1;var e=re(),t=function(){if(P)return R;P=1;var e=re(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;return R=function(e){var t=n.call(e,o),i=e[o];try{e[o]=void 0;var s=!0}catch(e){}var a=r.call(e);return s&&(t?e[o]=i:delete e[o]),a}}(),n=function(){if(A)return C;A=1;var e=Object.prototype.toString;return C=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return T=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function ie(){if(L)return M;return L=1,M=function(e){return null!=e&&"object"==typeof e}}function se(){if(F)return I;F=1;var e=oe(),t=ie();return I=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function ae(){if(U)return D;U=1;var e=ne(),t=Z(),n=se(),r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;return D=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(t(a)){var u="function"==typeof a.valueOf?a.valueOf():a;a=t(u)?u+"":u}if("string"!=typeof a)return 0===a?a:+a;a=e(a);var l=o.test(a);return l||i.test(a)?s(a.slice(2),l?2:8):r.test(a)?NaN:+a}}var ue,le,ce,de,fe,pe,he,ge,be,ye,me,ve,_e,we,Se=function(){if(q)return z;q=1;var e=Z(),t=function(){if(w)return _;w=1;var e=te();return _=function(){return e.Date.now()}}(),n=ae(),r=Math.max,o=Math.min;return z=function(i,s,a){var u,l,c,d,f,p,h=0,g=!1,b=!1,y=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function m(e){var t=u,n=l;return u=l=void 0,h=e,d=i.apply(n,t)}function v(e){var t=e-p;return void 0===p||t>=s||t<0||b&&e-h>=c}function _(){var e=t();if(v(e))return w(e);f=setTimeout(_,function(e){var t=s-(e-p);return b?o(t,c-(e-h)):t}(e))}function w(e){return f=void 0,y&&u?m(e):(u=l=void 0,d)}function S(){var e=t(),n=v(e);if(u=arguments,l=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(_,s),g?m(e):d}(p);if(b)return clearTimeout(f),f=setTimeout(_,s),m(p)}return void 0===f&&(f=setTimeout(_,s)),d}return s=n(s)||0,e(a)&&(g=!!a.leading,c=(b="maxWait"in a)?r(n(a.maxWait)||0,s):c,y="trailing"in a?!!a.trailing:y),S.cancel=function(){void 0!==f&&clearTimeout(f),h=0,u=p=l=f=void 0},S.flush=function(){return void 0===f?d:w(t())},S},z}(),Oe=Q(Se);function xe(){if(le)return ue;return le=1,ue=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},ue}function je(){if(pe)return fe;pe=1;var e=function(){if(de)return ce;de=1;var e=oe(),t=ie();return ce=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=ie(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!o.call(e,"callee")};return fe=i}function ke(){if(ge)return he;ge=1;var e=Array.isArray;return he=e}function Ee(){if(ve)return me;ve=1;var e=xe(),t=function(){if(ye)return be;ye=1;var e=re(),t=je(),n=ke(),r=e?e.isConcatSpreadable:void 0;return be=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}();return me=function n(r,o,i,s,a){var u=-1,l=r.length;for(i||(i=t),a||(a=[]);++u<l;){var c=r[u];o>0&&i(c)?o>1?n(c,o-1,i,s,a):e(a,c):s||(a[a.length]=c)}return a},me}var Re,Pe,Ce,Ae,Te,Ne,Me,Le,Ie=Q(function(){if(we)return _e;we=1;var e=Ee();return _e=function(t){return(null==t?0:t.length)?e(t,1):[]}}());function Fe(){if(Ne)return Te;Ne=1;var e=function(){if(Ae)return Ce;Ae=1;var e=ae(),t=1/0;return Ce=function(n){return n?(n=e(n))===t||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}();return Te=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}var De,Ue,ze=function(){if(Le)return Me;Le=1;var e=(Pe||(Pe=1,Re=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}),Re),t=Fe();return Me=function(n,r,o){return n&&n.length?(r=o||void 0===r?1:t(r),e(n,0,r<0?0:r)):[]}}(),qe=Q(ze);var Be,He,Ve,$e,We,Ge,Ke,Je,Ye,Xe,Qe,Ze,et,tt,nt,rt,ot,it,st,at,ut,lt,ct,dt,ft,pt,ht,gt,bt,yt,mt,vt,_t,wt,St,Ot,xt,jt,kt,Et,Rt,Pt,Ct,At,Tt,Nt,Mt,Lt,It,Ft,Dt,Ut,zt,qt,Bt,Ht,Vt,$t,Wt,Gt,Kt,Jt,Yt,Xt,Qt,Zt,en,tn,nn,rn,on,sn,an,un,ln,cn,dn,fn,pn,hn,gn,bn,yn,mn,vn,_n,wn,Sn,On,xn,jn,kn,En,Rn,Pn,Cn,An,Tn,Nn,Mn,Ln,In,Fn,Dn,Un,zn,qn,Bn,Hn,Vn,$n,Wn,Gn,Kn,Jn,Yn,Xn,Qn,Zn,er,tr,nr,rr,or,ir=function(){if(Ue)return De;Ue=1;var e=oe(),t=ke(),n=ie();return De=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}(),sr=Q(ir);function ar(){if(He)return Be;return He=1,Be=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Be}function ur(){if($e)return Ve;$e=1;var e=ke(),t=se(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Ve=function(o,i){if(e(o))return!1;var s=typeof o;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=o&&!t(o))||(r.test(o)||!n.test(o)||null!=i&&o in Object(i))}}function lr(){if(Ge)return We;Ge=1;var e=oe(),t=Z();return We=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function cr(){if(Xe)return Ye;Xe=1;var e,t=function(){if(Je)return Ke;Je=1;var e=te()["__core-js_shared__"];return Ke=e}(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return Ye=function(e){return!!n&&n in e}}function dr(){if(Ze)return Qe;Ze=1;var e=Function.prototype.toString;return Qe=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function fr(){if(it)return ot;it=1;var e=function(){if(tt)return et;tt=1;var e=lr(),t=cr(),n=Z(),r=dr(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,s=Object.prototype,a=i.toString,u=s.hasOwnProperty,l=RegExp("^"+a.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return et=function(i){return!(!n(i)||t(i))&&(e(i)?l:o).test(r(i))}}(),t=rt?nt:(rt=1,nt=function(e,t){return null==e?void 0:e[t]});return ot=function(n,r){var o=t(n,r);return e(o)?o:void 0}}function pr(){if(at)return st;at=1;var e=fr()(Object,"create");return st=e}function hr(){if(vt)return mt;vt=1;var e=function(){if(lt)return ut;lt=1;var e=pr();return ut=function(){this.__data__=e?e(null):{},this.size=0}}(),t=dt?ct:(dt=1,ct=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(pt)return ft;pt=1;var e=pr(),t=Object.prototype.hasOwnProperty;return ft=function(n){var r=this.__data__;if(e){var o=r[n];return"__lodash_hash_undefined__"===o?void 0:o}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(gt)return ht;gt=1;var e=pr(),t=Object.prototype.hasOwnProperty;return ht=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),o=function(){if(yt)return bt;yt=1;var e=pr();return bt=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,mt=i}function gr(){if(Ot)return St;return Ot=1,St=function(e,t){return e===t||e!=e&&t!=t}}function br(){if(jt)return xt;jt=1;var e=gr();return xt=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function yr(){if(Lt)return Mt;Lt=1;var e=wt?_t:(wt=1,_t=function(){this.__data__=[],this.size=0}),t=function(){if(Et)return kt;Et=1;var e=br(),t=Array.prototype.splice;return kt=function(n){var r=this.__data__,o=e(r,n);return!(o<0||(o==r.length-1?r.pop():t.call(r,o,1),--this.size,0))},kt}(),n=function(){if(Pt)return Rt;Pt=1;var e=br();return Rt=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]},Rt}(),r=function(){if(At)return Ct;At=1;var e=br();return Ct=function(t){return e(this.__data__,t)>-1}}(),o=function(){if(Nt)return Tt;Nt=1;var e=br();return Tt=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this},Tt}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Mt=i}function mr(){if(Ft)return It;Ft=1;var e=fr()(te(),"Map");return It=e}function vr(){if(Ht)return Bt;Ht=1;var e=qt?zt:(qt=1,zt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return Bt=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function _r(){if(Zt)return Qt;Zt=1;var e=function(){if(Ut)return Dt;Ut=1;var e=hr(),t=yr(),n=mr();return Dt=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if($t)return Vt;$t=1;var e=vr();return Vt=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(Gt)return Wt;Gt=1;var e=vr();return Wt=function(t){return e(this,t).get(t)}}(),r=function(){if(Jt)return Kt;Jt=1;var e=vr();return Kt=function(t){return e(this,t).has(t)}}(),o=function(){if(Xt)return Yt;Xt=1;var e=vr();return Yt=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=r.size==o?0:1,this}}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Qt=i}function wr(){if(rn)return nn;rn=1;var e=function(){if(tn)return en;tn=1;var e=_r();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],i=o.cache;if(i.has(t))return i.get(t);var s=n.apply(this,e);return o.cache=i.set(t,s)||i,s};return o.cache=new(t.Cache||e),o}return t.Cache=e,en=t}();return nn=function(t){var n=e(t,function(e){return 500===r.size&&r.clear(),e}),r=n.cache;return n}}function Sr(){if(cn)return ln;cn=1;var e=function(){if(un)return an;un=1;var e=re(),t=ar(),n=ke(),r=se(),o=e?e.prototype:void 0,i=o?o.toString:void 0;return an=function e(o){if("string"==typeof o)return o;if(n(o))return t(o,e)+"";if(r(o))return i?i.call(o):"";var s=o+"";return"0"==s&&1/o==-1/0?"-0":s},an}();return ln=function(t){return null==t?"":e(t)}}function Or(){if(fn)return dn;fn=1;var e=ke(),t=ur(),n=function(){if(sn)return on;sn=1;var e=wr(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,function(e,t,o,i){r.push(o?i.replace(n,"$1"):t||e)}),r});return on=r}(),r=Sr();return dn=function(o,i){return e(o)?o:t(o,i)?[o]:n(r(o))}}function xr(){if(hn)return pn;hn=1;var e=se();return pn=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}function jr(){if(bn)return gn;bn=1;var e=Or(),t=xr();return gn=function(n,r){for(var o=0,i=(r=e(r,n)).length;null!=n&&o<i;)n=n[t(r[o++])];return o&&o==i?n:void 0},gn}function kr(){if(Rn)return En;Rn=1;var e=yr(),t=function(){if(mn)return yn;mn=1;var e=yr();return yn=function(){this.__data__=new e,this.size=0}}(),n=_n?vn:(_n=1,vn=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=Sn?wn:(Sn=1,wn=function(e){return this.__data__.get(e)}),o=xn?On:(xn=1,On=function(e){return this.__data__.has(e)}),i=function(){if(kn)return jn;kn=1;var e=yr(),t=mr(),n=_r();return jn=function(r,o){var i=this.__data__;if(i instanceof e){var s=i.__data__;if(!t||s.length<199)return s.push([r,o]),this.size=++i.size,this;i=this.__data__=new n(s)}return i.set(r,o),this.size=i.size,this}}();function s(t){var n=this.__data__=new e(t);this.size=n.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=o,s.prototype.set=i,En=s}function Er(){if(Mn)return Nn;Mn=1;var e=_r(),t=Cn?Pn:(Cn=1,Pn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=Tn?An:(Tn=1,An=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Nn=r}function Rr(){if(Dn)return Fn;return Dn=1,Fn=function(e,t){return e.has(t)}}function Pr(){if(zn)return Un;zn=1;var e=Er(),t=(In||(In=1,Ln=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),Ln),n=Rr();return Un=function(r,o,i,s,a,u){var l=1&i,c=r.length,d=o.length;if(c!=d&&!(l&&d>c))return!1;var f=u.get(r),p=u.get(o);if(f&&p)return f==o&&p==r;var h=-1,g=!0,b=2&i?new e:void 0;for(u.set(r,o),u.set(o,r);++h<c;){var y=r[h],m=o[h];if(s)var v=l?s(m,y,h,o,r,u):s(y,m,h,r,o,u);if(void 0!==v){if(v)continue;g=!1;break}if(b){if(!t(o,function(e,t){if(!n(b,t)&&(y===e||a(y,e,i,s,u)))return b.push(t)})){g=!1;break}}else if(y!==m&&!a(y,m,i,s,u)){g=!1;break}}return u.delete(r),u.delete(o),g},Un}function Cr(){if(Wn)return $n;return Wn=1,$n=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},$n}function Ar(){if(Kn)return Gn;Kn=1;var e=re(),t=function(){if(Bn)return qn;Bn=1;var e=te().Uint8Array;return qn=e}(),n=gr(),r=Pr(),o=(Vn||(Vn=1,Hn=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}),Hn),i=Cr(),s=e?e.prototype:void 0,a=s?s.valueOf:void 0;return Gn=function(e,s,u,l,c,d,f){switch(u){case"[object DataView]":if(e.byteLength!=s.byteLength||e.byteOffset!=s.byteOffset)return!1;e=e.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=s.byteLength||!d(new t(e),new t(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+s);case"[object Error]":return e.name==s.name&&e.message==s.message;case"[object RegExp]":case"[object String]":return e==s+"";case"[object Map]":var p=o;case"[object Set]":var h=1&l;if(p||(p=i),e.size!=s.size&&!h)return!1;var g=f.get(e);if(g)return g==s;l|=2,f.set(e,s);var b=r(p(e),p(s),l,c,d,f);return f.delete(e),b;case"[object Symbol]":if(a)return a.call(e)==a.call(s)}return!1}}function Tr(){if(nr)return tr;nr=1;var e=(Qn||(Qn=1,Xn=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}),Xn),t=er?Zn:(er=1,Zn=function(){return[]}),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return tr=r?function(t){return null==t?[]:(t=Object(t),e(r(t),function(e){return n.call(t,e)}))}:t}var Nr,Mr,Lr,Ir,Fr,Dr,Ur,zr,qr,Br,Hr,Vr={exports:{}};function $r(){return Lr||(Lr=1,function(e,t){var n=te(),r=Mr?Nr:(Mr=1,Nr=function(){return!1}),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||r;e.exports=a}(Vr,Vr.exports)),Vr.exports}function Wr(){if(Fr)return Ir;Fr=1;var e=/^(?:0|[1-9]\d*)$/;return Ir=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function Gr(){if(Ur)return Dr;Ur=1;return Dr=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function Kr(){if(Hr)return Br;return Hr=1,Br=function(e){return function(t){return e(t)}}}var Jr,Yr,Xr,Qr,Zr,eo,to,no,ro,oo,io,so,ao,uo,lo,co,fo,po,ho,go,bo,yo,mo,vo,_o,wo,So,Oo,xo,jo,ko,Eo,Ro,Po,Co,Ao,To,No,Mo,Lo,Io,Fo,Do,Uo,zo,qo,Bo,Ho,Vo,$o,Wo,Go,Ko,Jo,Yo,Xo,Qo,Zo,ei,ti,ni,ri,oi,ii,si,ai,ui,li,ci,di,fi,pi,hi,gi,bi,yi,mi,vi,_i,wi,Si,Oi,xi,ji,ki,Ei,Ri,Pi={exports:{}};function Ci(){if(Xr)return Yr;Xr=1;var e=function(){if(qr)return zr;qr=1;var e=oe(),t=Gr(),n=ie(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,zr=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}(),t=Kr(),n=(Jr||(Jr=1,function(e,t){var n=ee(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,s=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}(Pi,Pi.exports)),Pi.exports),r=n&&n.isTypedArray,o=r?t(r):e;return Yr=o}function Ai(){if(Zr)return Qr;Zr=1;var e=(or||(or=1,rr=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),rr),t=je(),n=ke(),r=$r(),o=Wr(),i=Ci(),s=Object.prototype.hasOwnProperty;return Qr=function(a,u){var l=n(a),c=!l&&t(a),d=!l&&!c&&r(a),f=!l&&!c&&!d&&i(a),p=l||c||d||f,h=p?e(a.length,String):[],g=h.length;for(var b in a)!u&&!s.call(a,b)||p&&("length"==b||d&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||o(b,g))||h.push(b);return h}}function Ti(){if(io)return oo;io=1;var e=(ro?no:(ro=1,no=function(e,t){return function(n){return e(t(n))}}))(Object.keys,Object);return oo=e}function Ni(){if(ao)return so;ao=1;var e=function(){if(to)return eo;to=1;var e=Object.prototype;return eo=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}(),t=Ti(),n=Object.prototype.hasOwnProperty;return so=function(r){if(!e(r))return t(r);var o=[];for(var i in Object(r))n.call(r,i)&&"constructor"!=i&&o.push(i);return o}}function Mi(){if(lo)return uo;lo=1;var e=lr(),t=Gr();return uo=function(n){return null!=n&&t(n.length)&&!e(n)}}function Li(){if(fo)return co;fo=1;var e=Ai(),t=Ni(),n=Mi();return co=function(r){return n(r)?e(r):t(r)}}function Ii(){if(ho)return po;ho=1;var e=function(){if(Yn)return Jn;Yn=1;var e=xe(),t=ke();return Jn=function(n,r,o){var i=r(n);return t(n)?i:e(i,o(n))}}(),t=Tr(),n=Li();return po=function(r){return e(r,n,t)}}function Fi(){if(So)return wo;So=1;var e=fr()(te(),"Set");return wo=e}function Di(){if(ko)return jo;ko=1;var e=function(){if(mo)return yo;mo=1;var e=fr()(te(),"DataView");return yo=e}(),t=mr(),n=function(){if(_o)return vo;_o=1;var e=fr()(te(),"Promise");return vo=e}(),r=Fi(),o=function(){if(xo)return Oo;xo=1;var e=fr()(te(),"WeakMap");return Oo=e}(),i=oe(),s=dr(),a="[object Map]",u="[object Promise]",l="[object Set]",c="[object WeakMap]",d="[object DataView]",f=s(e),p=s(t),h=s(n),g=s(r),b=s(o),y=i;return(e&&y(new e(new ArrayBuffer(1)))!=d||t&&y(new t)!=a||n&&y(n.resolve())!=u||r&&y(new r)!=l||o&&y(new o)!=c)&&(y=function(e){var t=i(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case f:return d;case p:return a;case h:return u;case g:return l;case b:return c}return t}),jo=y}function Ui(){if(Ro)return Eo;Ro=1;var e=kr(),t=Pr(),n=Ar(),r=function(){if(bo)return go;bo=1;var e=Ii(),t=Object.prototype.hasOwnProperty;return go=function(n,r,o,i,s,a){var u=1&o,l=e(n),c=l.length;if(c!=e(r).length&&!u)return!1;for(var d=c;d--;){var f=l[d];if(!(u?f in r:t.call(r,f)))return!1}var p=a.get(n),h=a.get(r);if(p&&h)return p==r&&h==n;var g=!0;a.set(n,r),a.set(r,n);for(var b=u;++d<c;){var y=n[f=l[d]],m=r[f];if(i)var v=u?i(m,y,f,r,n,a):i(y,m,f,n,r,a);if(!(void 0===v?y===m||s(y,m,o,i,a):v)){g=!1;break}b||(b="constructor"==f)}if(g&&!b){var _=n.constructor,w=r.constructor;_==w||!("constructor"in n)||!("constructor"in r)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(n),a.delete(r),g},go}(),o=Di(),i=ke(),s=$r(),a=Ci(),u="[object Arguments]",l="[object Array]",c="[object Object]",d=Object.prototype.hasOwnProperty;return Eo=function(f,p,h,g,b,y){var m=i(f),v=i(p),_=m?l:o(f),w=v?l:o(p),S=(_=_==u?c:_)==c,O=(w=w==u?c:w)==c,x=_==w;if(x&&s(f)){if(!s(p))return!1;m=!0,S=!1}if(x&&!S)return y||(y=new e),m||a(f)?t(f,p,h,g,b,y):n(f,p,_,h,g,b,y);if(!(1&h)){var j=S&&d.call(f,"__wrapped__"),k=O&&d.call(p,"__wrapped__");if(j||k){var E=j?f.value():f,R=k?p.value():p;return y||(y=new e),b(E,R,h,g,y)}}return!!x&&(y||(y=new e),r(f,p,h,g,b,y))}}function zi(){if(Co)return Po;Co=1;var e=Ui(),t=ie();return Po=function n(r,o,i,s,a){return r===o||(null==r||null==o||!t(r)&&!t(o)?r!=r&&o!=o:e(r,o,i,s,n,a))},Po}function qi(){if(Mo)return No;Mo=1;var e=Z();return No=function(t){return t==t&&!e(t)}}function Bi(){if(Do)return Fo;return Do=1,Fo=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function Hi(){if(zo)return Uo;zo=1;var e=function(){if(To)return Ao;To=1;var e=kr(),t=zi();return Ao=function(n,r,o,i){var s=o.length,a=s,u=!i;if(null==n)return!a;for(n=Object(n);s--;){var l=o[s];if(u&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++s<a;){var c=(l=o[s])[0],d=n[c],f=l[1];if(u&&l[2]){if(void 0===d&&!(c in n))return!1}else{var p=new e;if(i)var h=i(d,f,c,n,r,p);if(!(void 0===h?t(f,d,3,i,p):h))return!1}}return!0},Ao}(),t=function(){if(Io)return Lo;Io=1;var e=qi(),t=Li();return Lo=function(n){for(var r=t(n),o=r.length;o--;){var i=r[o],s=n[i];r[o]=[i,s,e(s)]}return r}}(),n=Bi();return Uo=function(r){var o=t(r);return 1==o.length&&o[0][2]?n(o[0][0],o[0][1]):function(t){return t===r||e(t,r,o)}}}function Vi(){if(Bo)return qo;Bo=1;var e=jr();return qo=function(t,n,r){var o=null==t?void 0:e(t,n);return void 0===o?r:o}}function $i(){if(Ko)return Go;Ko=1;var e=Vo?Ho:(Vo=1,Ho=function(e,t){return null!=e&&t in Object(e)}),t=function(){if(Wo)return $o;Wo=1;var e=Or(),t=je(),n=ke(),r=Wr(),o=Gr(),i=xr();return $o=function(s,a,u){for(var l=-1,c=(a=e(a,s)).length,d=!1;++l<c;){var f=i(a[l]);if(!(d=null!=s&&u(s,f)))break;s=s[f]}return d||++l!=c?d:!!(c=null==s?0:s.length)&&o(c)&&r(f,c)&&(n(s)||t(s))},$o}();return Go=function(n,r){return null!=n&&t(n,r,e)}}function Wi(){if(Qo)return Xo;return Qo=1,Xo=function(e){return e}}function Gi(){if(oi)return ri;oi=1;var e=ei?Zo:(ei=1,Zo=function(e){return function(t){return null==t?void 0:t[e]}}),t=function(){if(ni)return ti;ni=1;var e=jr();return ti=function(t){return function(n){return e(n,t)}}}(),n=ur(),r=xr();return ri=function(o){return n(o)?e(r(o)):t(o)}}function Ki(){if(si)return ii;si=1;var e=Hi(),t=function(){if(Yo)return Jo;Yo=1;var e=zi(),t=Vi(),n=$i(),r=ur(),o=qi(),i=Bi(),s=xr();return Jo=function(a,u){return r(a)&&o(u)?i(s(a),u):function(r){var o=t(r,a);return void 0===o&&o===u?n(r,a):e(u,o,3)}}}(),n=Wi(),r=ke(),o=Gi();return ii=function(i){return"function"==typeof i?i:null==i?n:"object"==typeof i?r(i)?t(i[0],i[1]):e(i):o(i)}}function Ji(){if(ci)return li;ci=1;var e=(ui||(ui=1,ai=function(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var u=s[e?a:++o];if(!1===n(i[u],u,i))break}return t}}),ai),t=e();return li=t}function Yi(){if(bi)return gi;bi=1;var e=function(){if(fi)return di;fi=1;var e=Ji(),t=Li();return di=function(n,r){return n&&e(n,r,t)}}(),t=function(){if(hi)return pi;hi=1;var e=Mi();return pi=function(t,n){return function(r,o){if(null==r)return r;if(!e(r))return t(r,o);for(var i=r.length,s=n?i:-1,a=Object(r);(n?s--:++s<i)&&!1!==o(a[s],s,a););return r}},pi}(),n=t(e);return gi=n}function Xi(){if(xi)return Oi;xi=1;var e=function(){if(Si)return wi;Si=1;var e=se();return wi=function(t,n){if(t!==n){var r=void 0!==t,o=null===t,i=t==t,s=e(t),a=void 0!==n,u=null===n,l=n==n,c=e(n);if(!u&&!c&&!s&&t>n||s&&a&&l&&!u&&!c||o&&a&&l||!r&&l||!i)return 1;if(!o&&!s&&!c&&t<n||c&&r&&i&&!o&&!s||u&&r&&i||!a&&i||!l)return-1}return 0}}();return Oi=function(t,n,r){for(var o=-1,i=t.criteria,s=n.criteria,a=i.length,u=r.length;++o<a;){var l=e(i[o],s[o]);if(l)return o>=u?l:l*("desc"==r[o]?-1:1)}return t.index-n.index},Oi}function Qi(){if(ki)return ji;ki=1;var e=ar(),t=jr(),n=Ki(),r=function(){if(mi)return yi;mi=1;var e=Yi(),t=Mi();return yi=function(n,r){var o=-1,i=t(n)?Array(n.length):[];return e(n,function(e,t,n){i[++o]=r(e,t,n)}),i},yi}(),o=_i?vi:(_i=1,vi=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}),i=Kr(),s=Xi(),a=Wi(),u=ke();return ji=function(l,c,d){c=c.length?e(c,function(e){return u(e)?function(n){return t(n,1===e.length?e[0]:e)}:e}):[a];var f=-1;c=e(c,i(n));var p=r(l,function(t,n,r){return{criteria:e(c,function(e){return e(t)}),index:++f,value:t}});return o(p,function(e,t){return s(e,t,d)})},ji}var Zi,es,ts,ns,rs,os,is,ss,as,us,ls,cs,ds,fs,ps,hs,gs,bs,ys,ms,vs=function(){if(Ri)return Ei;Ri=1;var e=Qi(),t=ke();return Ei=function(n,r,o,i){return null==n?[]:(t(r)||(r=null==r?[]:[r]),t(o=i?void 0:o)||(o=null==o?[]:[o]),e(n,r,o))}}(),_s=Q(vs);function ws(){if(ss)return is;ss=1;var e=(es||(es=1,Zi=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}),Zi),t=ns?ts:(ns=1,ts=function(e){return e!=e}),n=(os||(os=1,rs=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}),rs);return is=function(r,o,i){return o==o?n(r,o,i):e(r,t,i)}}function Ss(){if(hs)return ps;hs=1;var e=Fi(),t=fs?ds:(fs=1,ds=function(){}),n=Cr(),r=e&&1/n(new e([,-0]))[1]==1/0?function(t){return new e(t)}:t;return ps=r}function Os(){if(bs)return gs;bs=1;var e=Er(),t=function(){if(us)return as;us=1;var e=ws();return as=function(t,n){return!(null==t||!t.length)&&e(t,n,0)>-1}}(),n=(cs||(cs=1,ls=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}),ls),r=Rr(),o=Ss(),i=Cr();return gs=function(s,a,u){var l=-1,c=t,d=s.length,f=!0,p=[],h=p;if(u)f=!1,c=n;else if(d>=200){var g=a?null:o(s);if(g)return i(g);f=!1,c=r,h=new e}else h=a?[]:p;e:for(;++l<d;){var b=s[l],y=a?a(b):b;if(b=u||0!==b?b:0,f&&y==y){for(var m=h.length;m--;)if(h[m]===y)continue e;a&&h.push(y),p.push(b)}else c(h,y,u)||(h!==p&&h.push(y),p.push(b))}return p},gs}var xs=Q(function(){if(ms)return ys;ms=1;var e=Os();return ys=function(t,n){return n="function"==typeof n?n:void 0,t&&t.length?e(t,void 0,n):[]}}());function js(e,t){return e&&t&&e===t}const ks=["stop","station","favouriteStop","favouriteStation"],Es=["favouriteVehicleRentalStation","bikestation"];function Rs(e){if(!e)return"";const t=e.split(":");return 0===t.length?"":`citybikes${t[0]}:bikestation:${t[1]}`}function Ps(e,t){const n=e.properties,r=t.properties;if("FutureRoute"===e.type&&"FutureRoute"===t.type){const e=n.origin,t=n.destination,o=r.origin,i=r.destination;return`${e.name}//${e.localadmin}//${t.name}//${t.localadmin}`===`${o.name}//${o.localadmin}//${i.name}//${i.localadmin}`}if("FutureRoute"===e.type||"FutureRoute"===t.type)return!1;if(Es.includes(n.layer)&&Es.includes(r.layer)){return(n.gid||Rs(n.labelId))===(r.gid||Rs(r.labelId))}if(n.gtfsId&&r.gtfsId)return n.gtfsId===r.gtfsId;if(ks.includes(n.layer)&&ks.includes(r.layer)&&n.gid&&r.gid)return n.gid===r.gid;const o=e&&e.geometry?e.geometry.coordinates:void 0,i=t&&t.geometry?t.geometry.coordinates:void 0;return!!(o&&i&&Math.abs(o[0]-i[0])<1e-6&&Math.abs(o[1]-i[1])<1e-6&&(js(n.name,r.name)||js(n.label,r.label)||js(n.address,r.address)||js(n.address,r.label)||js(n.label,r.address)))}const Cs=e=>sr(e)?e.toLowerCase():"",As=e=>e.split(/(\p{L}+)/u),Ts=e=>/^[0-9]+\p{L}+$/u.test(e),Ns="back",Ms="currentPosition",Ls="favouriteStop",Is="favouriteStation",Fs="favouritePlace",Ds="favouriteRoute",Us="favouriteVehicleRentalStation",zs="futureRoute",qs="station",Bs="selectFromMap",Hs="ownLocations",Vs="stop",$s="bikestation",Ws="carpark",Gs="bikepark",Ks=({layer:e,type:t})=>"stop"===e||"favouriteStop"===e||"stop"===t||"favouriteStop"===t,Js=(e,t)=>{switch(e){case Ms:return 1;case Ns:return.9;case Bs:return.8;case Hs:return.79;case Is:case Fs:case Ls:case Ds:case Us:return.45;case zs:return.44;case qs:return sr(t)&&0===t.indexOf("gtfs")?.43:.42;case Ws:case Gs:case $s:return.38;case Vs:return.36;default:return.41}},Ys=(e,t,n="")=>{if(!Array.isArray(t)||!t.length)return t;const r=t=>sr(t)&&e&&e.test(t),o=Cs(n),i=r(o),s=_s(t.filter(e=>e),[e=>i&&r(Cs(e.properties.shortName))&&0===Cs(e.properties.shortName).indexOf(o)?1:0,e=>{const{confidence:t,layer:n,source:r}=e.properties;if(0===o.length)return Js(n,r);if(!t)return Js(n,r)+((e,t)=>sr(e)&&0!==e.length?["name","label","address","shortName"].map(e=>({name:e,value:t[e]})).filter(e=>sr(e.value)&&e.value.length>0).map(t=>{let n=Cs(t.value);return 0===n.indexOf(e)?("shortName"===t.name&&Ts(n)&&([n]=As(n)),.5+e.length/n.length):.5*e.length/(e.length+1)}).reduce((e,t)=>t>e?t:e,0):0)(o,e.properties);switch(n){case qs:return t+(0===r.indexOf("gtfs")?.02:.01);case Vs:case Ws:case Gs:return t-.05;case $s:return t-.04;default:return t}},e=>{if(e.properties.shortName)return Ts(e.properties.shortName)?As(e.properties.shortName)[0]:e.properties.shortName},e=>{if(e.properties.shortName)return Ts(e.properties.shortName)?As(e.properties.shortName)[1]:e.properties.shortName},"properties.longName"],["desc","desc","asc","asc","asc"]);return xs(s,Ps)},Xs=(e,t)=>null!=t&&-1!==e.lastIndexOf(t)?e.substring(0,e.lastIndexOf(t)-1):e;var Qs=Q(Vi());function Zs(e,t,n){if("string"==typeof t&&t.length>0){const r=t.toLowerCase().trim(),o=r.includes(" ")||r.includes(",");return e.filter(e=>{let t=[];n.forEach(n=>{let r=Qs(e,n);o||"properties.label"!==n&&"address"!==n||!r||(r=r.split(","),r.length>2?r.splice(r.length-2,2):r.length>1&&r.splice(r.length-1,1),r=r.join(",")),r&&(t=o?t.concat(r.toLowerCase()):t.concat(r.toLowerCase().replace(/,/g," ").split(" ")))});for(let e=0;e<t.length;e++)if(0===t[e].indexOf(r))return!0;return!1})}return e}function ea(e,t){return function(){return e.apply(t,arguments)}}const{toString:ta}=Object.prototype,{getPrototypeOf:na}=Object,{iterator:ra,toStringTag:oa}=Symbol,ia=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sa=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),aa=(e,t,n)=>e===Object.prototype||!n&&null===t,ua=(e,t)=>{let n=e;const r=[];for(;null!=n;){if(-1!==r.indexOf(n))return!1;r.push(n);const o=na(n);if(aa(n,o,n===e))return!1;if(ia(n,t))return!0;n=o}return!1},la=(ca=Object.create(null),e=>{const t=ta.call(e);return ca[t]||(ca[t]=t.slice(8,-1).toLowerCase())});var ca;const da=e=>(e=e.toLowerCase(),t=>la(t)===e),fa=e=>t=>typeof t===e,{isArray:pa}=Array,ha=fa("undefined");function ga(e){return null!==e&&!ha(e)&&null!==e.constructor&&!ha(e.constructor)&&ma(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ba=da("ArrayBuffer");const ya=fa("string"),ma=fa("function"),va=fa("number"),_a=e=>null!==e&&"object"==typeof e,wa=e=>{if(!_a(e))return!1;const t=na(e);return(null===t||t===Object.prototype||null===na(t))&&(aa(e,t,!0)||!ia(e,oa)&&!ia(e,ra))},Sa=da("Date"),Oa=da("File"),xa=da("Blob"),ja=da("FileList"),ka=da("Set");const Ea="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Ra=void 0!==Ea.FormData?Ea.FormData:void 0,Pa=da("URLSearchParams"),[Ca,Aa,Ta,Na]=["ReadableStream","Request","Response","Headers"].map(da);function Ma(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),pa(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ga(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}const La="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ia=e=>!ha(e)&&e!==La;const Fa=(Da="undefined"!=typeof Uint8Array&&na(Uint8Array),e=>Da&&e instanceof Da);var Da;const Ua=da("HTMLFormElement"),{propertyIsEnumerable:za}=Object.prototype,qa=da("RegExp"),Ba=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ma(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const Ha=da("AsyncFunction"),Va=($a="function"==typeof setImmediate,Wa=ma(La.postMessage),$a?setImmediate:Wa?(Ga=`axios@${Math.random()}`,Ka=[],La.addEventListener("message",({source:e,data:t})=>{e===La&&t===Ga&&Ka.length&&Ka.shift()()},!1),e=>{Ka.push(e),La.postMessage(Ga,"*")}):e=>setTimeout(e));var $a,Wa,Ga,Ka;const Ja="undefined"!=typeof queueMicrotask?queueMicrotask.bind(La):"undefined"!=typeof process&&process.nextTick||Va,Ya=e=>null!=e&&ma(e[ra]);var Xa={isArray:pa,isArrayBuffer:ba,isBuffer:ga,isFormData:e=>{if(!e)return!1;if(Ra&&e instanceof Ra)return!0;const t=na(e);if(!t||t===Object.prototype)return!1;if(!ma(e.append))return!1;const n=la(e);return"formdata"===n||"object"===n&&ma(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ba(e.buffer),t},isString:ya,isNumber:va,isBoolean:e=>!0===e||!1===e,isObject:_a,isPlainObject:wa,isEmptyObject:e=>{if(!_a(e)||ga(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Ca,isRequest:Aa,isResponse:Ta,isHeaders:Na,isUndefined:ha,isDate:Sa,isFile:Oa,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:xa,isRegExp:qa,isFunction:ma,isStream:e=>_a(e)&&ma(e.pipe),isURLSearchParams:Pa,isTypedArray:Fa,isFileList:ja,forEach:Ma,merge:function e(...t){const{caseless:n,skipUndefined:r}=Ia(this)&&this||{},o={},i=n?Object.create(null):null,s=(t,n)=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;let s=n;if(i&&"string"==typeof n){const e=n.toLowerCase(),t=i[e];void 0!==t&&ia(o,t)?s=t:i[e]=n}const a=ia(o,s)?o[s]:void 0;wa(a)&&wa(t)?o[s]=e(a,t):wa(t)?o[s]=e({},t):pa(t)?o[s]=t.slice():r&&ha(t)||(o[s]=t)};for(let e=0,n=t.length;e<n;e++){const n=t[e];if(!n||ga(n))continue;if(Ma(n,s),"object"!=typeof n||pa(n)||!Object.getOwnPropertySymbols)continue;const r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){const t=r[e];za.call(n,t)&&s(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:r}={})=>(Ma(t,(t,r)=>{n&&ma(t)?Object.defineProperty(e,r,{__proto__:null,value:ea(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),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),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&na(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:la,kindOfTest:da,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(pa(e))return e;let t=e.length;if(!Number.isSafeInteger(t)||t<0||t>4294967295)return null;const n=new Set,r=new Set;let o=e;for(;null!=o&&n.size<t;){if(r.has(o))return null;r.add(o);const i=na(o);if(aa(o,i,o===e))break;Object.getOwnPropertyNames(o).forEach(e=>{const r=+e;Number.isInteger(r)&&r>=0&&r<t&&String(r)===e&&ia(o,e)&&n.add(r)}),o=i}if(n.size!==t)return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},forEachEntry:(e,t)=>{const n=(e&&e[ra]).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:Ua,hasOwnProperty:ia,hasOwnProp:ia,hasOwnInPrototypeChain:ua,getSafeProp:(e,t)=>null!=e&&ua(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=na(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(sa(t))return!1;const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let i=e;for(;null!=i&&-1===o.indexOf(i);){o.push(i);const s=i===e?t:na(i);if(aa(i,s,i===e))break;const a=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(i));for(const t of a)sa(t)||ia(r,t)||(n[t]=e[t],r[t]=!0);i=s}return n},reduceDescriptors:Ba,freezeMethods:e=>{Ba(e,(t,n)=>{if(ma(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];ma(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 pa(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:function(e,t){if(ga(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null},global:La,isContextDefined:Ia,isSpecCompliantForm:function(e){return!!(e&&ma(e.append)&&"FormData"===e[oa]&&e[ra])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(_a(e)){if(t.has(e))return;if(ga(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),ka(e)){r=[];for(const t of e){const e=n(t);!ha(e)&&r.push(e)}}else r=pa(e)?[]:{},Ma(e,(e,t)=>{const o=n(e);!ha(o)&&(r[t]=o)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:Ha,isThenable:e=>e&&(_a(e)||ma(e))&&ma(e.then)&&ma(e.catch),setImmediate:Va,asap:Ja,isIterable:Ya,isSafeIterable:e=>null!=e&&ua(e,ra)&&Ya(e)};const Qa=Xa.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"]);const Za=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),eu=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function tu(e,t){return Xa.isArray(e)?e.map(e=>tu(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function nu(e){const t=Object.create(null);return Xa.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>tu(e,eu))(e)}),t}const ru=Symbol("internals");function ou(e){return e&&String(e).trim().toLowerCase()}function iu(e){return!1===e||null==e?e:Xa.isArray(e)?e.map(iu):(e=>tu(e,Za))(String(e))}const su=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function au(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}const uu=e=>"__proto__"===e?"__Proto__":e;function lu(e,t,n,r,o){return Xa.isFunction(r)?r.call(e,t,n):(o&&(t=n),Xa.isString(t)?Xa.isString(r)?-1!==t.indexOf(r):Xa.isRegExp(r)?r.test(t):void 0:void 0)}let cu=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ou(t);if(!o)return;const i=Xa.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[uu(i||t)]=iu(e))}const i=(e,t)=>Xa.forEach(e,(e,n)=>o(e,n,t));if(Xa.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Xa.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t=Object.create(null);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();const i=Xa.hasOwnProp(t,n);!n||i&&Xa.hasOwnProp(Qa,n)||("set-cookie"===n?i?t[n].push(r):t[n]=[r]:t[n]=i?t[n]+", "+r:r)}),t})(e),t);else if(Xa.isObject(e)&&Xa.isSafeIterable(e)){let n,r,o=Object.create(null);for(const t of e){if(!Xa.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],Xa.hasOwnProp(o,r)?(n=o[r],o[r]=Xa.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ou(e)){const n=Xa.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(Xa.isFunction(t))return t.call(this,e,n);if(Xa.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ou(e)){const n=Xa.findKey(this,e);return!(!n||void 0===this[n]||t&&!lu(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ou(e)){const o=Xa.findKey(n,e);!o||t&&!lu(n,n[o],o,t)||(delete n[o],r=!0)}}return Xa.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&&!lu(this,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n=Object.create(null);return Xa.forEach(this,(r,o)=>{const i=Xa.findKey(n,o);if(i)return t[i]=iu(r),void delete t[o];const s=uu(e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim());s!==o&&delete t[o],t[s]=iu(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Xa.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Xa.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")}getSetCookie(){const e=this.get("set-cookie");return Xa.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),n=String(e);let r=0,o=!1,i=!1;function s(e){const o=au(n.slice(r,e)),i=o.indexOf("=");if(i<1)return;const s=au(o.slice(0,i));if(!su.test(s))return;const a=s.toLowerCase();if("__proto__"===a||"constructor"===a||"prototype"===a)return;const u=au(o.slice(i+1));t[a]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r<t;r++){const o=e.charCodeAt(r);if(34===o)return e;if(92===o&&(r+=1,r>=t))return e;n+=e[r]}return n}(u)}for(let e=0;e<n.length;e++){const t=n.charCodeAt(e);o?i?i=!1:92===t?i=!0:34===t&&(o=!1):34===t?o=!0:44!==t&&59!==t||(s(e),r=e+1)}return s(n.length),t}(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ru]=this[ru]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ou(e);t[r]||(!function(e,t){const n=Xa.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Xa.isArray(e)?e.forEach(r):r(e),this}};cu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Xa.reduceDescriptors(cu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Xa.freezeMethods(cu);const du="[REDACTED ****]";function fu(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(Xa.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof cu&&(e=e.toJSON()),r.push(e),Xa.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);Xa.isUndefined(r)||(t[n]=r)});else{if(!Xa.isPlainObject(e)&&function(e){if(Xa.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Xa.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,i]of Object.entries(e)){const e=n.has(r.toLowerCase())?du:o(i);Xa.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}function pu(e){try{return String(e)}catch(e){return""}}const hu=Symbol("causeStack");let gu=class e extends Error{static from(t,n,r,o,i,s){let a=t.message;!a&&Xa.isArray(t.errors)&&t.errors.length&&(a=function(e){return e.errors.map(e=>{try{return e&&e.message?pu(e.message):pu(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(t));const u=new e(a,n||t.code,r,o,i);return Object.defineProperty(u,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),u.name=t.name,function(e,t){try{const n=t&&t.stack;if("string"!=typeof n||!n)return;const r=e.stack;if("string"!=typeof r||!r)return;const o="\nCaused by: "+n;e.stack=r+o,Object.defineProperty(e,hu,{__proto__:null,value:o})}catch(e){}}(u,t),null!=t.status&&null==u.status&&(u.status=t.status),s&&Object.assign(u,s),u}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&Xa.hasOwnProp(e,"redact")?e.redact:void 0,n=Xa.isArray(t)&&t.length>0?fu(e,t):Xa.toJSONObject(e);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:n,code:this.code,status:this.status}}};gu.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",gu.ERR_BAD_OPTION="ERR_BAD_OPTION",gu.ECONNABORTED="ECONNABORTED",gu.ETIMEDOUT="ETIMEDOUT",gu.ECONNREFUSED="ECONNREFUSED",gu.ERR_NETWORK="ERR_NETWORK",gu.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",gu.ERR_DEPRECATED="ERR_DEPRECATED",gu.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",gu.ERR_BAD_REQUEST="ERR_BAD_REQUEST",gu.ERR_CANCELED="ERR_CANCELED",gu.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",gu.ERR_INVALID_URL="ERR_INVALID_URL",gu.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function bu(e){return Xa.isPlainObject(e)||Xa.isArray(e)}function yu(e){return Xa.endsWith(e,"[]")?e.slice(0,-2):e}function mu(e,t,n){return e?e.concat(t).map(function(e,t){return e=yu(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const vu=Xa.toFlatObject(Xa,{},null,function(e){return/^is[A-Z]/.test(e)});function _u(e,t,n){if(!Xa.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(e,t)=>{const r=Xa.getSafeProp(n,e);return Xa.isUndefined(r)?t:r},o=r("metaTokens",!0),i=r("visitor")||h,s=r("dots",!1),a=r("indexes",!1),u=r("Blob")||"undefined"!=typeof Blob&&Blob,l=r("maxDepth",100),c=u&&Xa.isSpecCompliantForm(t),d=[];if(!Xa.isFunction(i))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(Xa.isDate(e))return e.toISOString();if(Xa.isBoolean(e))return e.toString();if(!c&&Xa.isBlob(e))throw new gu("Blob is not supported. Use a Buffer instead.");if(Xa.isArrayBuffer(e)||Xa.isTypedArray(e)){if(c&&"function"==typeof u)return new u([e]);throw new gu("Blob is not supported. Use a Buffer instead.",gu.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new gu("Object is too deeply nested ("+e+" levels). Max depth: "+l,gu.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,r){let i=e;if(Xa.isReactNative(t)&&Xa.isReactNativeBlob(e))return t.append(mu(r,n,s),f(e)),!1;if(e&&!r&&"object"==typeof e)if(Xa.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!Xa.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}(e,1);else if(Xa.isArray(e)&&function(e){return Xa.isArray(e)&&!e.some(bu)}(e)||(Xa.isFileList(e)||Xa.endsWith(n,"[]"))&&(i=Xa.toArray(e)))return n=yu(n),i.forEach(function(e,r){!Xa.isUndefined(e)&&null!==e&&t.append(!0===a?mu([n],r,s):null===a?n:n+"[]",f(e))}),!1;return!!bu(e)||(t.append(mu(r,n,s),f(e)),!1)}const g=Object.assign(vu,{defaultVisitor:h,convertValue:f,isVisitable:bu});if(!Xa.isObject(e))throw new TypeError("data must be an object");return function e(n,r,o=0){if(!Xa.isUndefined(n)){if(p(o),-1!==d.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));d.push(n),Xa.forEach(n,function(n,s){!0===(!(Xa.isUndefined(n)||null===n)&&i.call(t,n,Xa.isString(s)?s.trim():s,r,g))&&e(n,r?r.concat(s):[s],o+1)}),d.pop()}}(e),t}function wu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Su(e,t){this._pairs=[],e&&_u(e,this,t)}const Ou=Su.prototype;function xu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ju(e,t,n){if(!t)return e;e=e||"";const r=Xa.isFunction(n)?{serialize:n}:n,o=Xa.getSafeProp(r,"encode")||xu,i=Xa.getSafeProp(r,"serialize");let s;if(s=i?i(t,r):Xa.isURLSearchParams(t)?t.toString():new Su(t,r).toString(o),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Ou.append=function(e,t){this._pairs.push([e,t])},Ou.toString=function(e){const t=e?t=>e.call(this,t,wu):wu;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const ku=Symbol("internals");function Eu(e){return e?e.length:0}function Ru(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function Pu(e,t){const n=e.handlers,r=Eu(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()),t.handlersLength=r}class Cu{constructor(){this.handlers=[],this[ku]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){const r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[ku];null==this.handlers&&(this.handlers=[]),Pu(this,o);const i=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(i,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(e){const t=this[ku];Pu(this,t);const n=function(e){return"string"==typeof e&&""!==e&&String(Number(e))===e?Number(e):e}(e),r=t.handlerEntries.get(n);if(r){if(t.handlerEntries.delete(n),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(Ru(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Pu(this,this[ku]))}forEach(e){const t=this[ku];Pu(this,t),t.iterationDepth++;try{Xa.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(Pu(this,t),Ru(this.handlers),t.handlersLength=Eu(this.handlers))}}}var Au={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0,encodeBasicAuthUsername:!1},Tu={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Su,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Nu="undefined"!=typeof window&&"undefined"!=typeof document,Mu="object"==typeof navigator&&navigator||void 0,Lu=Nu&&(!Mu||["ReactNative","NativeScript","NS"].indexOf(Mu.product)<0),Iu="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Fu=Nu&&window.location.href||"http://localhost";var Du={...Object.freeze({__proto__:null,hasBrowserEnv:Nu,hasStandardBrowserEnv:Lu,hasStandardBrowserWebWorkerEnv:Iu,navigator:Mu,origin:Fu}),...Tu};function Uu(e){if(e>100)throw new gu("FormData field is too deeply nested ("+e+" levels). Max depth: 100",gu.ERR_FORM_DATA_DEPTH_EXCEEDED)}function zu(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function qu(e){if(!Xa.isArray(e))return e;const t=Object.keys(e);return t.length!==e.length||t.some((e,t)=>e!==String(t))?zu(e):e}function Bu(e){function t(e,n,r,o){Uu(o);let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&Xa.isArray(r)?r.length:i,a)return Xa.hasOwnProp(r,i)?(r[i]=qu(r[i]),r[i]=Xa.isArray(r[i])?r[i].concat(n):[r[i],n]):r[i]=n,!s;Xa.hasOwnProp(r,i)&&Xa.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Xa.isArray(r[i])&&(r[i]=zu(r[i])),!s}if(Xa.isFormData(e)&&Xa.isFunction(e.entries)){const n={};return Xa.forEachEntry(e,(e,r)=>{t(function(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;null!==(r=n.exec(e));)Uu(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}(e),r,n,0)}),function(e){const t=[e];for(;t.length;){const e=t.pop();Object.keys(e).forEach(n=>{const r=e[n]=qu(e[n]);(Xa.isArray(r)||Xa.isPlainObject(r))&&t.push(r)})}return e}(n)}return null}const Hu=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Vu=(e,t)=>null!=e&&Xa.hasOwnProp(e,t)?e[t]:void 0;const $u={transitional:Au,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Xa.isObject(e);o&&Xa.isHTMLForm(e)&&(e=new FormData(e));if(Xa.isFormData(e))return r?JSON.stringify(Bu(e)):e;if(Xa.isArrayBuffer(e)||Xa.isBuffer(e)||Xa.isStream(e)||Xa.isFile(e)||Xa.isBlob(e)||Xa.isReadableStream(e))return e;if(Xa.isArrayBufferView(e))return e.buffer;if(Xa.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=Vu(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return _u(e,new Du.classes.URLSearchParams,{visitor:function(e,t,n,r){return Du.isNode&&Xa.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=Xa.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Vu(this,"env"),r=n&&n.FormData;return _u(i?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Xa.isString(e))try{return(t||JSON.parse)(e),Xa.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Vu(this,"transitional")||$u.transitional,n=t&&t.forcedJSONParsing,r=Vu(this,"responseType"),o="json"===r;if(Xa.isResponse(e)||Xa.isReadableStream(e))return e;if(e&&Xa.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Vu(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw gu.from(e,gu.ERR_BAD_RESPONSE,this,null,Vu(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Du.classes.FormData,Blob:Du.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function Wu(e,t){const n=this||$u,r=t||n,o=cu.from(r.headers);let i=r.data;return Xa.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Gu(e){return!(!e||!e.__CANCEL__)}Xa.forEach(Hu,e=>{$u.headers[e]={}});let Ku=class extends gu{constructor(e,t,n){super(null==e?"canceled":e,gu.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ju(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new gu("Request failed with status code "+n.status,n.status>=400&&n.status<500?gu.ERR_BAD_REQUEST:gu.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Yu=/[\t\n\r]/g;function Xu(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Yu,"")}function Qu(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1].toLowerCase()||""}const Zu=e=>{try{return decodeURIComponent(e)}catch(t){return e}};var el=Du.hasStandardBrowserEnv?{write(e,t,n,r,o,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];Xa.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),Xa.isString(r)&&a.push(`path=${r}`),Xa.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),Xa.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie;if(!t)return null;const n=t.split(";");for(let t=0;t<n.length;t++){const r=n[t].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return Zu(r.slice(o+1))}return null},async readAsync(e){try{const t="undefined"!=typeof window&&window.cookieStore;if(t&&Xa.isFunction(t.get)){const n=await t.get(e);return n?Zu(n.value):null}}catch(e){}return this.read(e)},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,readAsync:async()=>null,remove(){}};const tl=(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,s=0;return t=void 0!==t?t:1e3,function(a){const u=Date.now(),l=r[s];o||(o=u),n[i]=a,r[i]=u;let c=s,d=0;for(;c!==i;)d+=n[c++],c%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const f=l&&u-l;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},i-a)))},()=>n&&s(n),(...e)=>s(e)]}(n=>{if(!n||!Xa.isNumber(n.loaded))return;const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=Math.max(0,null!=s?Math.min(i,s):i),u=Math.max(0,a-r),l=o(u);r=Math.max(r,a);e({loaded:a,total:s,progress:s?a/s:void 0,bytes:u,rate:l||void 0,estimated:l&&s?(s-a)/l:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},nl=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rl=(e,t=Xa.asap)=>(...n)=>t(()=>e(...n));var ol=Du.hasStandardBrowserEnv?(e=>t=>(t=new URL(t,document.baseURI||Du.origin),e.protocol===t.protocol&&e.host===t.host&&e.port===t.port))(new URL(Du.origin)):()=>!0;const il=/^https?:(?!\/\/)/i;function sl(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${du}@`),n=t.indexOf("#"),r=(-1===n?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${du}`);return-1===n?r:`${r}#${o=t.slice(n+1),o?o.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${du}`):o}`;var o}function al(e,t){if("string"==typeof e){const n=Xu(e);if(il.test(n))throw new gu(`Invalid URL ${JSON.stringify(sl(n))}: missing "//" after protocol`,gu.ERR_INVALID_URL,t)}}function ul(e,t,n,r){al(t,r);let o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(o||!1===n)?(al(e,r),function(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const ll=e=>e instanceof cu?{...e}:e,cl=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>{const n=Object.getOwnPropertyDescriptor(e,t);return n&&n.enumerable})):Object.keys(e);function dl(e,t,n,r){return Xa.isPlainObject(e)&&Xa.isPlainObject(t)?Xa.merge.call({caseless:r},e,t):Xa.isPlainObject(t)?Xa.merge({},t):Xa.isArray(t)?t.slice():t}function fl(e,t,n,r){return Xa.isUndefined(t)?Xa.isUndefined(e)?void 0:dl(void 0,e,0,r):dl(e,t,0,r)}function pl(e,t){if(!Xa.isUndefined(t))return dl(void 0,t)}function hl(e,t){return Xa.isUndefined(t)?Xa.isUndefined(e)?void 0:dl(void 0,e):dl(void 0,t)}function gl(e,t,n,r,o){return Xa.hasOwnProp(o,n)?dl(e,t):Xa.hasOwnProp(r,n)?dl(void 0,e):void 0}const bl=Object.freeze({__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0}),yl={url:pl,method:pl,data:pl,baseURL:hl,transformRequest:hl,transformResponse:hl,params:function(e,t){const n=[],r=new WeakMap,o={};function i(e,t){if(!Xa.isPlainObject(t))return Xa.isArray(t)?t.slice():t;const i=Xa.isPlainObject(e)?e:o;let s=r.get(t);if(s||(s=new WeakMap,r.set(t,s)),s.has(i))return s.get(i);const a={};return s.set(i,a),n.push({base:i,source:t,result:a}),a}const s=Xa.isUndefined(t)?i(void 0,e):i(e,t);for(;n.length;){const{base:e,source:t,result:r}=n.pop(),o=new Set(cl(e)),s=new Set(cl(t));new Set([...o,...s]).forEach(n=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;const a=s.has(n),u=a?t[n]:void 0,l=a&&!Xa.isPlainObject(u)||!o.has(n)?void 0:e[n];r[n]=a?i(l,u):i(void 0,l)})}return function(e){const t=[{value:e}],n=new WeakSet,r=new WeakSet;for(;t.length;){const{value:e,done:o}=t.pop();if(!Xa.isPlainObject(e)&&!Xa.isArray(e))continue;if(o){n.delete(e);continue}if(n.has(e))throw new gu("Circular reference detected in params",gu.ERR_BAD_OPTION_VALUE);if(r.has(e))continue;r.add(e),n.add(e),t.push({value:e,done:!0});const i=Object.keys(e);Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertySymbols(e).forEach(t=>{const n=Object.getOwnPropertyDescriptor(e,t);n&&n.enumerable&&i.push(t)}),i.forEach(n=>{if("__proto__"===n||"constructor"===n||"prototype"===n){const r=Object.getOwnPropertyDescriptor(e,n);r&&Xa.hasOwnProp(r,"value")&&t.push({value:r.value})}else t.push({value:e[n]})})}}(s),s},paramsSerializer:hl,timeout:hl,timeoutErrorMessage:hl,withCredentials:hl,withXSRFToken:hl,adapter:hl,responseType:hl,xsrfCookieName:hl,xsrfHeaderName:hl,onUploadProgress:hl,onDownloadProgress:hl,decompress:hl,maxContentLength:hl,maxBodyLength:hl,beforeRedirect:hl,transport:hl,httpAgent:hl,httpsAgent:hl,cancelToken:hl,socketPath:hl,allowedSocketPaths:hl,responseEncoding:hl,validateStatus:gl,headers:function(e,t,n){return fl(ll(e),ll(t),0,!0)}};function ml(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",bl);const r=cl({...e,...t});for(let o=0,i=r.length;o<i;o++){const i=r[o];if("__proto__"===i||"constructor"===i||"prototype"===i)continue;const s=Xa.hasOwnProp(yl,i)?yl[i]:fl,a=Xa.hasOwnProp(e,i)?e[i]:void 0,u=Xa.hasOwnProp(t,i)?t[i]:void 0,l=s===gl?s(a,u,i,e,t):s(a,u,i);Xa.isUndefined(l)&&s!==gl||(n[i]=l)}return Xa.hasOwnProp(t,"validateStatus")&&Xa.isUndefined(t.validateStatus)&&!1===function(e,t,n){const r=Xa.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Xa.isUndefined(r)){if(!Xa.isPlainObject(r))return;if(Xa.hasOwnProp(r,n))return r[n]}const o=Xa.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Xa.isPlainObject(o)&&Xa.hasOwnProp(o,n))return o[n]}(e,t,"validateStatusUndefinedResolves")&&(Xa.hasOwnProp(e,"validateStatus")?n.validateStatus=dl(void 0,e.validateStatus):delete n.validateStatus),n}const vl=["content-type","content-length"];const _l=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),wl=e=>el.read(e);function Sl(e,t=wl){const n=ml({},e),r=e=>Xa.hasOwnProp(n,e)?n[e]:void 0,o=r("data");let i=r("withXSRFToken");const s=r("xsrfHeaderName"),a=r("xsrfCookieName");let u=r("headers");const l=r("auth"),c=r("baseURL"),d=r("allowAbsoluteUrls"),f=r("url");if(n.headers=u=cu.from(u),n.url=ju(ul(c,f,d,n),r("params"),r("paramsSerializer")),l){const t=Xa.getSafeProp(l,"username")||"",n=Xa.getSafeProp(l,"password")||"",o=r("transitional"),i=o&&Xa.hasOwnProp(o,"encodeBasicAuthUsername")&&!0===o.encodeBasicAuthUsername;try{u.set("Authorization","Basic "+btoa((i?_l(t):t)+":"+(n?_l(n):"")))}catch(t){throw gu.from(t,gu.ERR_BAD_OPTION_VALUE,e)}}if(Xa.isFormData(o)){const e=Xa.getSafeProp(o,"getHeaders");Du.hasStandardBrowserEnv||Du.hasStandardBrowserWebWorkerEnv||Xa.isReactNative(o)?u.setContentType(void 0):Xa.isFunction(e)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(([t,n])=>{vl.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(u,e.call(o),r("formDataHeaderPolicy"))}if(Du.hasStandardBrowserEnv){Xa.isFunction(i)&&(i=i(n));if(!0===i||null==i&&ol(n.url)){const e=s&&a&&t(a);e&&u.set(s,e)}}return n}var Ol="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,o;try{const e=Du.hasStandardBrowserEnv&&"undefined"!=typeof window&&window.cookieStore;r=e&&Xa.isFunction(e.get)}catch(e){}const i=Sl(e,r?e=>(o=e,null):void 0);let s=i.data;const a=cu.from(i.headers).normalize();let u,l,c,d,f,p,h,{responseType:g,onUploadProgress:b,onDownloadProgress:y}=i;function m(){clearTimeout(l);try{f&&f()}catch(e){setTimeout(()=>{throw e})}try{p&&p()}catch(e){setTimeout(()=>{throw e})}v&&(d&&v.removeEventListener("progress",d),v.upload&&(c&&v.upload.removeEventListener("progress",c),f&&v.upload.removeEventListener("loadend",f))),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;function _(r){if(!v)return;if(!(0!==v.status||"file"===(Qu(Xu(i.url))||Qu(Du.origin))||v.responseURL&&v.responseURL.startsWith("file:")))return n(new gu("Request aborted",gu.ECONNABORTED,e,v)),m(),void(v=null);try{r?h&&h(r):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!v)return;const o=cu.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());Ju(function(e){t(e),m()},function(e){n(e),m()},{data:g&&"text"!==g&&"json"!==g?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:o,config:e,request:v}),v=null}if(v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout,"onloadend"in v?v.onloadend=_:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&v.responseURL.startsWith("file:"))&&setTimeout(_)},v.onabort=function(){v&&(n(new gu("Request aborted",gu.ECONNABORTED,e,v)),m(),v=null)},v.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new gu(r,gu.ERR_NETWORK,e,v);o.event=t||null,n(o),m(),v=null},v.ontimeout=function(){if(!v)return;let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Au;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new gu(t,r.clarifyTimeoutError?gu.ETIMEDOUT:gu.ECONNABORTED,e,v)),m(),v=null},void 0===s&&a.setContentType(null),Xa.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),g&&"json"!==g&&(v.responseType=i.responseType),y&&([d,p,h]=tl(y,!0),v.addEventListener("progress",d)),b&&v.upload&&([c,f]=tl(b),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",f)),i.cancelToken||i.signal){if(u=t=>{if(!v)return;n(!t||t.type?new Ku(null,e,v):t);const r=v;m(),v=null,r.abort()},i.cancelToken&&i.cancelToken.subscribe(u),!v)return;i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u))}if(!v)return;const w=Qu(i.url);if(w&&!Du.protocols.includes(w))return n(new gu("Unsupported protocol "+w+":",gu.ERR_BAD_REQUEST,e)),void m();const S=()=>{v&&("setRequestHeader"in v&&Xa.forEach(nu(a),function(e,t){v.setRequestHeader(t,e)}),v.send(s||null))};if(o){const t="undefined"!=typeof performance&&Xa.isFunction(performance.now)?()=>performance.now():Date.now,r=v.timeout>0?t()+Number(v.timeout):void 0,s=()=>{if(!v)return;const e=v;e.ontimeout(),e.abort()};if(void 0!==r){const e=()=>{const n=r-t();n>0?l=setTimeout(e,Math.min(n,2147483647)):s()};e()}el.readAsync(o).then(e=>{if(v)if(void 0!==r&&t()>=r)s();else{if(e){const t=Xa.hasOwnProp(i,"xsrfHeaderName")&&i.xsrfHeaderName;a.set(t,e)}S()}}).catch(t=>{v&&(n(gu.from(t,null,e,v)),m(),v=null)})}else S()})};const xl=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof gu?t:new Ku(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new gu(`timeout of ${t}ms exceeded`,gu.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{const t=Xa.getSafeProp(e,"unsubscribe");Xa.isFunction(t)?t.call(e,o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{r||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});const{signal:a}=n;return a.unsubscribe=()=>Xa.asap(s),a},jl=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},kl=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},El=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of kl(e))yield*jl(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},Rl="\r\n",Pl=e=>String(e).replace(/\r\n|\r|\n/g,Rl),Cl=e=>String(e).replace(/[\r\n"]/g,e=>"\r"===e?"%0D":"\n"===e?"%0A":"%22"),Al=(e,t)=>{let n=0;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);!t||13!==o&&10!==o?o<128?n++:o<2048?n+=2:o>=55296&&o<=56319&&e.charCodeAt(r+1)>=56320&&e.charCodeAt(r+1)<=57343?(n+=4,r++):n+=3:(13===o&&10===e.charCodeAt(r+1)&&r++,n+=2)}return n};class Tl extends TypeError{constructor(e,t){super(e),this.name="FormDataError",this.reason=t}}function Nl(e,t,n,r,o){if(!Xa.isFunction(t))throw new gu("Blob is not supported",gu.ERR_NOT_SUPPORT);if(void 0===o)if(Xa.isFunction(Du.generateString))o="axios-"+Du.generateString(36,"0123456789abcdef");else{const e=Xa.global.crypto;if(!e||!Xa.isFunction(e.getRandomValues))throw new gu("Random byte generation is not supported",gu.ERR_NOT_SUPPORT);const t=new Uint8Array(18);e.getRandomValues(t),o="axios-"+Array.from(t,e=>("0"+e.toString(16)).slice(-2)).join("")}try{return function(e,t,n,r,o){if(!Xa.isFunction(t))throw new Tl("Blob is not supported","blob");if(!Xa.isString(o)||!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(o)||/ $/.test(o))throw new Tl("Invalid multipart boundary","boundary");const i="--"+o+"--"+Rl;let s=i.length;const a=[],u=e=>{if(s+e>n)throw r()};u(0);for(const[t,n]of e){const e=Xa.isString(n),r=e?Al(n,!0):n.size;if(!Number.isFinite(r)||r<0)throw new Tl("Unsupported FormData part size","part");u(r+Al(t,!0)+(!e&&n.name?Al(n.name,!1):0)+(!e&&n.type?Al(n.type,!1):0));let i="--"+o+'\r\nContent-Disposition: form-data; name="'+Cl(Pl(t))+'"';e||(i+='; filename="'+Cl(Xa.isString(n.name)?n.name:"blob")+'"\r\nContent-Type: '+String(n.type||"application/octet-stream").replace(/[\r\n]/g,"")),i+=Rl+Rl;const l=Al(i,!1)+r+2;u(l),s+=l,a.push({header:i,value:n,isString:e})}const l=[];for(const e of a)l.push(e.header,e.isString?Pl(e.value):e.value,Rl);return l.push(i),new t(l,{type:"multipart/form-data; boundary="+o})}(e,t,n,r,o)}catch(e){if(e instanceof Tl){const t="boundary"===e.reason?gu.ERR_BAD_OPTION_VALUE:gu.ERR_BAD_REQUEST;throw new gu(e.message,t)}throw e}}const Ml=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Ll=(e,t,n)=>t+2<n&&Ml(e.charCodeAt(t+1))&&Ml(e.charCodeAt(t+2)),Il=e=>e<=57?e-48:(223&e)-55,Fl=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Dl=e=>9===e||10===e||12===e||13===e||32===e,Ul=e=>{const t=e.length;let n=0,r=0,o=!1;for(let i=0;i<t;i++){let s=e.charCodeAt(i);37===s&&Ll(e,i,t)&&(s=16*Il(e.charCodeAt(i+1))+Il(e.charCodeAt(i+2)),i+=2),Dl(s)||(61!==s?!Fl(s)||r>0?o=!0:n++:r++)}return o||r>2||r>0&&(n+r)%4!=0||n%4==1?(e=>{const t=e.length;let n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)})(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(n)};function zl(e){const t="string"==typeof e?e.indexOf("#"):-1;return((e,t,n)=>{if(!e||"string"!=typeof e)return 0;if(!/^data:/i.test(e))return 0;const r=e.indexOf(",");if(r<0)return 0;const o=e.slice(5,r),i=e.slice(r+1);if(n.test(o))return t(i);let s=0;for(let e=0,t=i.length;e<t;e++){const n=i.charCodeAt(e);if(37===n&&Ll(i,e,t))s+=1,e+=2;else if(n<128)s+=1;else if(n<2048)s+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=i.charCodeAt(e+1);t>=56320&&t<=57343?(s+=4,e++):s+=3}else s+=3}return s})(-1===t?e:e.slice(0,t),Ul,/; *base64[\t\n\f\r ]*$/i)}const ql="1.21.0",Bl={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Hl}=Xa,Vl=e=>{if(!Xa.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},$l=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Wl=e=>{const t=void 0!==Xa.global&&null!==Xa.global?Xa.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Xa.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response,Blob:t.Blob},e);const o=Xa.hasOwnProp(e,"fetch")?e.fetch:void 0,{Request:i,Response:s,Blob:a}=e,u=o?Hl(o):"function"==typeof fetch,l=Hl(i),c=Hl(s);if(!u)return!1;const d=u&&Hl(n),f=u&&("function"==typeof r?(p=new r,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const h=l&&d&&$l(()=>{let e=!1;const t=new i(Du.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),g=c&&d&&$l(()=>Xa.isReadableStream(new s("").body)),b=Object.assign(Object.create(null),Bl);l&&!$l(()=>new i(Du.origin,b))&&(delete b.cache,$l(()=>new i(Du.origin,b))||(b.cache=Bl.cache));const y={stream:g&&(e=>e.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!y[e]&&(y[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new gu(`Response type '${e}' is not supported`,gu.ERR_NOT_SUPPORT,n)})});const m=async e=>null==e?0:Xa.isBlob(e)?e.size:Xa.isArrayBufferView(e)||Xa.isArrayBuffer(e)?e.byteLength:(Xa.isURLSearchParams(e)&&(e+=""),Xa.isString(e)?(await f(e)).byteLength:void 0);return async e=>{let{url:t,method:n,data:u,signal:c,cancelToken:f,timeout:p,onDownloadProgress:v,onUploadProgress:_,responseType:w,headers:S,withCredentials:O="same-origin",fetchOptions:x,maxContentLength:j,maxBodyLength:k,maxRedirects:E}=Sl(e);const R=Xa.isNumber(j)&&j>-1,P=Xa.isNumber(k)&&k>-1,C=t=>Xa.hasOwnProp(e,t)?e[t]:void 0;let A=o||fetch;w=w?(w+"").toLowerCase():"text";let T=xl([c,f&&f.toAbortSignal()],p),N=null;const M=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let L,I=null,F=null;const D=()=>new gu("Request body larger than maxBodyLength limit",gu.ERR_BAD_REQUEST,e,N);try{let o;const c=C("auth");if(c){const e=Xa.getSafeProp(c,"username")||"";o={username:e,password:Xa.getSafeProp(c,"password")||""}}let f;if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){if(f=new URL(t,Du.origin),!o&&(f.username||f.password)){const e=Vl(f.username);o={username:e,password:Vl(f.password)}}(f.username||f.password)&&(f.username="",f.password="",t=f.href)}if(o&&(S.delete("authorization"),S.set("Authorization","Basic "+btoa((U=(o.username||"")+":"+(o.password||""),encodeURIComponent(U).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),R&&f&&"data:"===f.protocol){if(zl(f.href)>j)throw new gu("maxContentLength size of "+j+" exceeded",gu.ERR_BAD_RESPONSE,e,N)}const p=Xa.isSpecCompliantForm(u)&&cu.from(C("headers")).getContentType();let z;if(Xa.isString(p)&&/^multipart\/form-data(?:\s*;|$)/i.test(p.trim())){const e=cu.parseParameters(p);Xa.hasOwnProp(e,"boundary")&&(z=e.boundary)}if(Xa.isSpecCompliantForm(u)&&"get"!==n&&"head"!==n&&(P||_&&h||void 0!==z)&&(u=Nl(u,a,P?k:1/0,D,z),S.setContentType(void 0===z?u.type:p),L=u.size),P&&"get"!==n&&"head"!==n){const e=await m(u);if("number"==typeof e&&isFinite(e)&&(L=e,e>k))throw D()}const q=P&&(Xa.isReadableStream(u)||Xa.isStream(u)),B=(e,t,n)=>El(e,65536,e=>{if(P&&e>k)throw I=D();t&&t(e)},n);if(h&&"get"!==n&&"head"!==n&&(_||q)){if(L=null==L?await(async(e,t)=>{const n=Xa.toFiniteNumber(e.getContentLength());return null==n?m(t):n})(S,u):L,0!==L||q){let e,n=new i(t,{method:"POST",body:u,duplex:"half"});if(Xa.isFormData(u)&&(e=n.headers.get("content-type"))&&S.setContentType(e),n.body){const[e,t]=_&&nl(L,tl(rl(_)))||[];u=B(n.body,e,t)}}}else if(q&&!l&&d&&"get"!==n&&"head"!==n)u=B(u);else if(q&&l&&!h&&"get"!==n&&"head"!==n)throw new gu("Stream request bodies are not supported by the current fetch implementation",gu.ERR_NOT_SUPPORT,e,N);Xa.isString(O)||(O=O?"include":"omit");const H=l&&"credentials"in i.prototype;if(Xa.isFormData(u)){const e=S.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&S.delete("content-type")}S.set("User-Agent","axios/"+ql,!1);const V=null==x?x:Object.assign(Object.create(null),x);V&&(delete V.body,delete V.headers,delete V.method,delete V.signal,delete V.duplex,delete V.credentials);const $=Object.assign(Object.create(null),V,{signal:T,method:n.toUpperCase(),headers:nu(S.normalize()),body:u,duplex:"half",credentials:H?O:void 0});l&&(Xa.forEach(b,(e,t)=>{void 0===$[t]&&($[t]=e)}),void 0===$.signal&&($.signal=null),void 0===$.body&&($.body=null)),0===E&&($.redirect="manual",V&&(V.redirect="manual")),N=l&&new i(t,$);let W=await(l?A(N,V):A(t,$));const G=cu.from(W.headers);if(R){const t=Xa.toFiniteNumber(G.getContentLength());if(null!=t&&t>j)throw new gu("maxContentLength size of "+j+" exceeded",gu.ERR_BAD_RESPONSE,e,N)}const K=g&&("stream"===w||"response"===w);if(g&&W.body&&(v||R||K&&M)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=W[e]});const n=Xa.toFiniteNumber(G.getContentLength()),[r,o]=v&&nl(n,tl(rl(v),!0))||[];let i=0;const a=t=>{if(R&&(i=t,i>j))throw F=new gu("maxContentLength size of "+j+" exceeded",gu.ERR_BAD_RESPONSE,e,N);r&&r(t)};W=new s(El(W.body,65536,a,()=>{o&&o(),M&&M()}),t)}w=w||"text";let J=await y[Xa.findKey(y,w)||"text"](W,e);if(R&&!g&&!K){let t;if(null!=J&&("number"==typeof J.byteLength?t=J.byteLength:"number"==typeof J.size?t=J.size:"string"==typeof J&&(t="function"==typeof r?(new r).encode(J).byteLength:J.length)),"number"==typeof t&&t>j)throw new gu("maxContentLength size of "+j+" exceeded",gu.ERR_BAD_RESPONSE,e,N)}return!K&&M&&M(),await new Promise((t,n)=>{Ju(t,n,{data:J,headers:cu.from(W.headers),status:W.status,statusText:W.statusText,config:e,request:N})})}catch(t){if(M&&M(),T&&T.aborted&&T.reason instanceof gu){const n=T.reason;throw n.config=e,N&&(n.request=N),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(I)throw N&&!I.request&&(I.request=N),I;if(F)throw F;if(t instanceof gu)throw N&&!t.request&&(t.request=N),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const n=new gu("Network Error",gu.ERR_NETWORK,e,N,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw gu.from(t,t&&t.code,e,N,t&&t.response)}var U}},Gl=new Map,Kl=e=>{const t=Object.create(null),n=e&&Xa.hasOwnProp(e,"env")&&e.env;["fetch","Request","Response","Blob"].forEach(e=>{n&&Xa.hasOwnProp(n,e)&&(t[e]=n[e])});const{fetch:r,Request:o,Response:i,Blob:s}=t,a=[o,i,r,s];let u,l,c=a.length,d=Gl;for(;c--;)u=a[c],l=d.get(u),void 0===l&&d.set(u,l=c?new Map:Wl(t)),d=l;return l};Kl();const Jl={http:null,xhr:Ol,fetch:{get:Kl}};Xa.forEach(Jl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Yl=e=>`- ${e}`,Xl=e=>Xa.isFunction(e)||null===e||!1===e;var Ql={getAdapter:function(e,t){e=Xa.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){let n;if(r=e[s],o=r,!Xl(r)&&(o=Jl[(n=String(r)).toLowerCase()],void 0===o))throw new gu(`Unknown adapter '${n}'`);if(o&&(Xa.isFunction(o)||(o=o.get(t))))break;i[n||"#"+s]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Yl).join("\n"):" "+Yl(e[0]):"as no adapter specified";throw new gu("There is no suitable adapter to dispatch the request "+t,gu.ERR_NOT_SUPPORT)}return o},adapters:Jl};function Zl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ku(null,e)}function ec(e){return Math.max(0,Date.now()-e)}function tc(e){const t=Xa.toSafeFlatObject(e);Zl(t),t.headers=cu.from(Xa.getSafeProp(t,"headers")),t.data=Wu.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const n=Ql.getAdapter(t.adapter||$u.adapter,t),r=Date.now();return n(t).then(function(e){Zl(t),e.duration=ec(r),t.response=e;try{e.data=Wu.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=cu.from(e.headers),e},function(e){if(!Gu(e)&&(Zl(t),e&&e.response)){e.response.duration=ec(r),t.response=e.response;try{e.response.data=Wu.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=cu.from(e.response.headers)}return Promise.reject(e)})}const nc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const rc={};nc.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ql+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new gu(r(o," has been removed"+(t?" in "+t:"")),gu.ERR_DEPRECATED);return t&&!rc[o]&&(rc[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)}},nc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var oc={assertOptions:function(e,t,n){if("object"!=typeof e||null===e)throw new gu("options must be an object",gu.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new gu("option "+i+" must be "+n,gu.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new gu("Unknown option "+i,gu.ERR_BAD_OPTION)}},validators:nc};const ic=oc.validators,sc=e=>{if(null==e||Xa.isPlainObject(e)||e instanceof cu)return!0;try{return Xa.isObject(e)&&"AxiosHeaders"===Xa.getSafeProp(e,Symbol.toStringTag)&&["toJSON","set","get","has","delete","clear","normalize","concat","toString",Symbol.iterator].every(t=>Xa.isFunction(Xa.getSafeProp(e,t)))}catch(e){return!1}};let ac=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Cu,response:new Cu}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack;let r="";if("string"==typeof n){const e=n.indexOf("\n");r=-1===e?"":n.slice(e+1)}if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),o=-1===n?r:r.slice(n+1),i=String(e.stack),s=function(e,t){const n=Xa.hasOwnProp(e,hu)&&e[hu];return n&&t.endsWith(n)?t.length-n.length:-1}(e,i),a=-1===s?i:i.slice(0,s),u=-1===s?"":i.slice(s);a.endsWith(o)||(e.stack=a+"\n"+r+u)}}else e.stack=r}catch(e){}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ml(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&oc.assertOptions(n,{silentJSONParsing:ic.transitional(ic.boolean),forcedJSONParsing:ic.transitional(ic.boolean),clarifyTimeoutError:ic.transitional(ic.boolean),legacyInterceptorReqResOrdering:ic.transitional(ic.boolean),advertiseZstdAcceptEncoding:ic.transitional(ic.boolean),validateStatusUndefinedResolves:ic.transitional(ic.boolean),encodeBasicAuthUsername:ic.transitional(ic.boolean)},!1),null!=r&&(Xa.isFunction(r)?t.paramsSerializer={serialize:r}:oc.assertOptions(r,{encode:ic.function,serialize:ic.function},!0)),void 0!==t.allowAbsoluteUrls||(Xa.hasOwnProp(this.defaults,"allowAbsoluteUrls")&&void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),oc.assertOptions(t,{baseUrl:ic.spelling("baseURL"),withXsrfToken:ic.spelling("withXSRFToken")},!0),t.method=(Xa.getSafeProp(t,"method")||Xa.getSafeProp(this.defaults,"method")||"get").toLowerCase();const i=Xa.getSafeProp(o,"common"),s=Xa.getSafeProp(o,t.method),a=o&&Xa.merge(sc(i)?i:void 0,sc(s)?s:void 0);o&&Xa.forEach(Hu.concat("common"),e=>{sc(Xa.getSafeProp(o,e))&&delete o[e]}),t.headers=cu.concat(a,o);const u=[];let l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;const n=t.transitional||Au;n&&n.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)});const c=[];let d;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let f,p=0;if(!l){const e=[tc.bind(this),void 0];for(e.unshift(...u),e.push(...c),f=e.length,d=Promise.resolve(t);p<f;)d=d.then(e[p++],e[p++]);return d}f=u.length;let h=t;for(;p<f;){const e=u[p++],t=u[p++];try{h=e?e(h):h}catch(e){if(!t){d=Promise.reject(e);break}try{const n=t.call(this,e);Xa.isThenable(n)&&(d=Promise.resolve(n).then(()=>tc.call(this,h)))}catch(e){d=Promise.reject(e)}break}}if(!d)try{d=tc.call(this,h)}catch(e){d=Promise.reject(e)}for(p=0,f=c.length;p<f;)d=d.then(c[p++],c[p++]);return d}getUri(e){return ju(ul((e=ml(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};Xa.forEach(["delete","get","head","options"],function(e){ac.prototype[e]=async function(t,n){return this.request(ml(n||{},{method:e,url:t,data:n&&Xa.hasOwnProp(n,"data")?n.data:void 0}))}}),Xa.forEach(["post","put","patch","query"],function(e){function t(t){return async function(n,r,o){return this.request(ml(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ac.prototype[e]=t(),"query"!==e&&(ac.prototype[e+"Form"]=t(!0))});const uc={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(uc).forEach(([e,t])=>{void 0===uc[t]&&(uc[t]=e)});const lc=function e(t){const n=new ac(t),r=ea(ac.prototype.request,n);return Xa.extend(r,ac.prototype,n,{allOwnKeys:!0}),Xa.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ml(t,n))},r}($u);lc.Axios=ac,lc.CanceledError=Ku,lc.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{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 Ku(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},lc.isCancel=Gu,lc.VERSION=ql,lc.toFormData=_u,lc.AxiosError=gu,lc.Cancel=lc.CanceledError,lc.all=function(e){return Promise.all(e)},lc.spread=function(e){return function(t){return e.apply(null,t)}},lc.isAxiosError=function(e){return Xa.isObject(e)&&!0===e.isAxiosError},lc.mergeConfig=ml,lc.AxiosHeaders=cu,lc.formToJSON=e=>Bu(Xa.isHTMLForm(e)?new FormData(e):e),lc.getAdapter=Ql.getAdapter,lc.HttpStatusCode=uc,lc.default=lc;const{Axios:cc,AxiosError:dc,CanceledError:fc,isCancel:pc,CancelToken:hc,VERSION:gc,all:bc,Cancel:yc,isAxiosError:mc,spread:vc,toFormData:_c,AxiosHeaders:wc,HttpStatusCode:Sc,formToJSON:Oc,getAdapter:xc,mergeConfig:jc,create:kc}=lc;function Ec(e,t){return e?Object.keys(e).map(n=>{const r=t||n,o=e[n];return"object"==typeof o?Ec(o,r):`${encodeURIComponent(r)}=${encodeURIComponent(o)}`}).join("&"):""}function Rc(e,t){return lc.get(encodeURI(e)+(t?(-1===e.search(/\?/)?"?":"&")+Ec(t):""),{timeout:1e4,method:"GET",responseType:"json",transitional:{silentJSONParsing:!1},headers:{Accept:"application/json"}}).then(e=>e.data)}function Pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pc(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ac(e,t,n,r,o,i,s,a){const u=e?e.trim():null;if(null==u||u.length<1||s&&!s.test(u))return Promise.resolve([]);const l=i||"https://api.digitransit.fi/geocoding/v1/search";let c=Cc(Cc(Cc({text:u},t),r),{},{lang:n});if(o&&(c=Cc(Cc({},c),{},{sources:o})),a){const e=a.toString();c=Cc(Cc({},c),{},{layers:e})}return Rc(l,c).then(e=>e.features)}function Tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mc(e,t){if(!e||e.length<1)return Promise.resolve([]);let n="";const r=e.map(e=>{const t="stop"===e.type?"stop":"station";let r=`gtfs${e.gtfsId.split(":")[0].toLowerCase()}:${t}:GTFS:${e.gtfsId}`;return e.code&&(r+=`#${e.code}`),n+=`${r},`,Nc(Nc({},e),{},{gid:r})}).reduce(function(e,t){return e[t.gid]=t,e},{});return Rc(t,{ids:n.slice(0,-1)}).then(e=>e.features.map(e=>({type:"FavouriteStop",properties:{addendum:e.properties.addendum,gid:r[e.properties.gid].gid,code:r[e.properties.gid].code,gtfsId:r[e.properties.gid].gtfsId,lastUpdated:r[e.properties.gid].lastUpdated,favouriteId:r[e.properties.gid].favouriteId,address:e.properties.label,layer:Ks(e.properties)?"favouriteStop":"favouriteStation"},geometry:e.geometry})))}function Lc(e,t,n){let r=Zs(e,t,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return n&&(r=r.filter(e=>!n.includes(e.properties.layer))),Promise.resolve(qe(r,10).map(e=>{const t=Nc(Nc({},e),{},{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete t.properties.confidence,t}))}const Ic=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE","route-FUNICULAR"],Fc=["venue","address","street"],Dc=["carpark","bikepark"],Uc=["stop","station"];const zc=Oe(function(e,t,n,r,o,i,{input:s},a,u,l){const{getPositions:c,getFavouriteLocations:d,getOldSearches:f,getFavouriteStops:p,parkingAreaSources:h,getLanguage:g,getStopAndStationsQuery:b,getFavouriteVehicleRentalStationsQuery:y,getFavouriteVehicleRentalStations:m,getFavouriteRoutesQuery:v,getFavouriteRoutes:_,getRoutesQuery:w,context:S,isPeliasLocationAware:O,minimalRegexp:x,lineRegexp:j,URL_PELIAS:k,URL_PELIAS_PLACE:E,feedIDs:R,geocodingSearchParams:P,geocodingSources:C,getFutureRoutes:A,cityBikeNetworks:T}=r,N=!e||0===e.length,M=!t||0===t.length,L=c(S),I=[],F={type:"all",term:s,results:[]},D=g(S),U=O&&l?.lat&&l?.lon?{"focus.point.lat":l.lat.toFixed(3),"focus.point.lon":l.lon.toFixed(3)}:{},z=n?n.split("-")[1]:void 0;if(e.includes("CurrentPosition")&&"geolocation-not-supported"!==L.status&&I.push(function(e,t){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"CurrentLocation",address:t.address,lat:t.lat,lon:t.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:t.address,lat:t.lat,lon:t.lon},geometry:{type:"Point",coordinates:[t.lon,t.lat]}}]):Promise.resolve([])}(s,L)),(N||e.includes("MapPosition"))&&I.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromMap",address:"SelectFromMap",lat:null,lon:null,properties:{labelId:"select-from-map",layer:"selectFromMap",address:"SelectFromMap",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(s)),e.includes("FutureRoutes")){const e=A(S);I.push(qe(e,3))}if(e.includes("SelectFromOwnLocations")&&function(e){const t=e.getFavouriteLocations(e.context);if(t?.length>0)return!0;if("function"==typeof e.getHasOtpLocationFavourites)return!!e.getHasOtpLocationFavourites(e.context);const n=e.getFavouriteVehicleRentalStations(e.context);if(n?.length>0)return!0;const r=e.getFavouriteStops(e.context);return r?.length>0}(r)&&I.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromOwnLocations",address:"SelectFromOwnLocations",lat:null,lon:null,properties:{labelId:"select-from-own-locations",layer:"ownLocations",address:"selectFromOwnLocations",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(s)),N||e.includes("Locations")){const n=P;if(t.includes("Favourite")){const e=d(S);I.push(function(e,t){return Promise.resolve(Zs(e,t,["address","name"]).map(e=>({type:"FavouritePlace",properties:Nc(Nc({},e),{},{label:e.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[e.lon,e.lat]}})))}(e,s)),t.includes("Back")&&I.push(Promise.resolve([{type:"back",address:"back",lat:null,lon:null,properties:{labelId:"back",layer:"back",address:"back",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]))}if(M||t.includes("Datasource")){const t=["venue","address","street"];e.includes("Stations")&&t.push("station"),I.push(Ac(s,n,D,U,C.join(","),k,x,t))}if(M||t.includes("History")){const e=f("endpoint"),t=["bikestation"];t.push(...Uc),t.push(...Ic),t.push(...Dc),I.push(Lc(e,s,t))}}if(N||e.includes("ParkingAreas")){if(M||t.includes("Datasource")){const e=P;i&&10!==i&&(e.size=i);const t=["carpark","bikepark"],n=h?h.join(","):null;I.push(Ac(s,e,D,U,n,k,x,t).then(e=>o?o(e,z):e))}if(M||t.includes("History")){const e=f(),t=["bikestation"];t.push(...Uc),t.push(...Ic),t.push(...Fc),I.push(Lc(e,s,t))}}const q=e.includes("Stops"),B=e.includes("Stations");if(N||q||B){if(t.includes("Favourite")){const e=p(S);let t;t=e.every(e=>"station"===e.type)?Mc(e,E).then(e=>o?o(e,z):e):b(e).then(e=>Mc(e,E)).then(e=>o?o(e,z):e),I.push(function(e,t,n,r){return e.then(e=>Zs(e.filter(e=>"stop"===e.type?n:r),t,["properties.name","properties.name","properties.address"]))}(t,s,q,B))}if(M||t.includes("Datasource")){const t=[];q&&t.push("stop"),B&&t.push("station");const n=i&&10!==i?{size:i}:{};P&&P["boundary.country"]&&(n["boundary.country"]=P["boundary.country"]),(N||e.includes("Locations"))&&(n.dedupestops=1);const r=R.map(e=>`gtfs${e}`).join(",");I.push(Ac(s,n,D,U,r,k,x,t).then(e=>o?o(e,z):e))}if(M||t.includes("History")){const e=f().filter(e=>!e.properties.gid||e.properties.gid.includes("GTFS:")),t=["bikestation"];t.push(...Ic),t.push(...Fc),t.push(...Dc),q||t.push("stop"),B||t.push("station"),n?I.push(Lc(e,s,t).then(e=>o?o(e,z):e)):I.push(Lc(e,s,t))}}if(N||e.includes("Routes")){if(t.includes("Favourite")){const e=_(S);I.push(v(e,s,z,u).then(e=>o?o(e,z,"Routes"):e))}if(I.push(w(s,R,n,u).then(e=>o?o(e,z,"Routes"):e)),M||t.includes("History")){const e=f(),t=["bikestation"];n&&t.push(...Ic.filter(e=>!(e===n))),t.push(...Uc),t.push(...Fc),t.push(...Dc),I.push(Lc(e,s,t).then(e=>o?o(e,z,"Routes"):e))}}if(N||e.includes("VehicleRentalStations")){if(t.includes("Favourite")){const e=m(S);I.push(y(e,s))}if(M||t.includes("Datasource")){const e=["bikestation"],t=i&&10!==i?{size:i}:{};I.push(Ac(s,t,D,U,T.join(","),k,x,e).then(e=>o?o(e,z,"VehicleRentalStations"):e))}if(M||t.includes("History")){const e=f(),t=[...Uc];t.push(...Ic),t.push(...Fc),t.push(...Dc),I.push(Lc(e,s,t))}}Promise.all(I).then(Ie).then(e=>{F.results=e}).catch(e=>{F.error=e}).then(()=>{a(Nc(Nc({},F),{},{results:Ys(j,F.results,s)}))})},300,{leading:!0}),qc=u.createInstance({fallbackLng:"fi",resources:{de:{translation:{"add-via-button-label":"Füge Zwischenziel hinzu","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",address:"Adresse","address-place-or-business":"Adress, Ort or Geschäft",airplane:"Flug",arrival:"Ankunft",back:"Zurück",bikerentalstation:"Leihrad-Station",bus:"Bus",cancel:"Abbrechen","clear-button-label":"Löschen","clear-search-history":"Suchhistorie löschen",currentposition:"Aktuelle Position",delete:"Löschen","delete-old-searches-header":"Wollen Sie die Such-Historie löschen?",departure:"Abfahrt",destination:"Ziel",favourite:"Favoriten",ferry:"Fähre","future-route":"Zukünftige Verbindung","give-destination":"Ziel eingeben.","give-origin":"Start eingeben.",loading:"Laden...","minute-short":"min",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Eigene Favoriten",place:"Ort",rail:"Zug",search:"Suche","search-address-or-place":"Suche anhand von Adresse oder Ortsangabe","search-autosuggest-label":"Venue, place and stopsearch.","search-autosuggest-label-instructions-desktop":"Navigate list with arrow keys and select with enter key.","search-autosuggest-label-instructions-mobile":"Enter the location and navigate in the list by swiping.","search-autosuggest-label-move-to-destination":"After selecting the starting location you are automatically moved to the destination field.","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-button-label":"Suche","search-current-suggestion":"Aktuelle Auswahl: {{selection}}","search-destination":"Suche Zielort, Linie or Haltestelle","search-destination-index":"Zielort eingeben","search-destination-results-but-no-search":"Ergebnisse in “Zielort”-Reiter anzeigen","search-no-results":"Kein Ort gefunden.","search-origin":"Suche Startort, Linie oder Haltestelle","search-origin-index":"Startort eingeben","search-position":"Standort ermitteln","select-from-map":"Wähle Position anhand Karte","select-from-own-locations":"Aus eigenen Favoriten auswählen",station:"Station",stop:"Haltestelle","stop-near-you":"Suche Haltestellen und Linien in der Nähe","stop-near-you-bus":"Suche Buslinien or Haltestellen","stop-near-you-citybike":"Suche Leihrad-Stationen","stop-near-you-rail":"Suche Zugverbindungen oder Bahnhöfe","stop-near-you-subway":"Suche U-Bahn-Linien oder Haltestellen","stop-near-you-tram":"Suche Stadtbahn-Haltestellen-Suche",street:"Straße",subway:"U-Bahn","today-at":"Heute um","tomorrow-at":"Morgen um",tram:"Straßenbahn","use-own-position":"Benutze aktuellen Standort",venue:"Venue","via-point":"Zwischenziel",where:"Wohin?"}},en:{translation:{"add-via-button-label":"Add via point","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",address:"Address","address-place-or-business":"Address, place or business",airplane:"Flight",arrival:"Arrival",back:"Back",bikepark:"Park & Ride for bikes",bikerentalstation:"Bike station",bus:"bus",cancel:"Cancel",carpark:"Park & Ride","clear-button-label":"Clear","clear-search-history":"Clear search history",currentposition:"Current position",delete:"Delete","delete-old-searches-header":"Do you want to clear the search history?",departure:"Departure",destination:"Destination",favourite:"Favourite",ferry:"Ferry","future-route":"Future route","give-destination":"Enter your destination","give-origin":"Enter your origin.",loading:"Loading...","minute-short":"m",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Own locations",place:"Location",platform:"Platform",rail:"Train",required:"required field",search:"Search","search-address-or-place":"Search by address or place name","search-autosuggest-label":"Venue, place and stopsearch.","search-autosuggest-label-instructions-desktop":"Navigate list with arrow keys and select with enter key.","search-autosuggest-label-instructions-mobile":"Enter the location and navigate in the list by swiping.","search-autosuggest-label-move-to-destination":"After selecting the starting location you are automatically moved to the destination field.","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-button-label":"Search","search-current-suggestion":"Current selection: {{selection}}","search-destination":"Search destination, route or stop","search-destination-index":"Enter destination","search-destination-results-but-no-search":"View results in the adjacent “Destination” tab","search-no-results":"No location","search-origin":"Search origin, route or stop","search-origin-index":"Enter origin","search-position":"Detect location","select-from-map":"Select position from map","select-from-own-locations":"Select from own locations",station:"Station",stop:"Stop","stop-near-you":"Search stops and routes","stop-near-you-airplane":"Search flights or airports","stop-near-you-bikepark":"Search bike parks","stop-near-you-bus":"Search bus routes or stops","stop-near-you-carpark":"Search car parks","stop-near-you-citybike":"Search city bike stations","stop-near-you-rail":"Search train routes or stations","stop-near-you-subway":"Search metro routes or stations ","stop-near-you-tram":"Search tram routes or stops","stop-route-station":"Bus and stop search","stop-status-alert":"Service alert at stop","stop-status-info":"Notice at stop","stop-status-no-service-today":"No departures today","stop-status-out-of-service":"Stop out of service",street:"Street",subway:"Metro","today-at":"today at","tomorrow-at":"tomorrow at",track:"Track",tram:"Tram","use-own-position":"Use current location",venue:"Venue","via-point":"Via point",where:"Where to?"}},fi:{translation:{"add-via-button-label":"Lisää välipiste","add-via-duration-button-label":"Aseta välipisteelle {{index}} pysähdyksen kesto","add-via-duration-button-label-close":"Avaa välipisteen {{index}} pysähdyksen kesto valitsin","add-via-duration-button-label-open":"Sulje välipisteen {{index}} pysähdyksen kesto valitsin",address:"Osoite","address-place-or-business":"Osoite, paikka tai yritys",airplane:"Lentokone",arrival:"Perillä",back:"Takaisin",bikepark:"Liityntäpysäköinti",bikerentalstation:"Pyöräasema",bus:"bussi",cancel:"Peruuta",carpark:"Liityntäpysäköinti","clear-button-label":"Tyhjennä","clear-search-history":"Tyhjennä hakuhistoria",currentposition:"Tämänhetkinen sijainti",delete:"Poista","delete-old-searches-header":"Haluatko tyhjentää hakuhistorian?",departure:"Lähtöaika",destination:"Määränpää",favourite:"Suosikki",ferry:"Lautta","future-route":"Tuleva reitti","give-destination":"Määränpää","give-origin":"Lähtöpaikka",loading:"Ladataan...","minute-short":"min",origin:"Lähtöpaikka","origin-stop-near-you":"Lähtöpaikka",ownlocations:"Omat paikat",place:"Paikka",platform:"Laituri",rail:"Juna",required:"pakollinen kenttä",search:"Etsi","search-address-or-place":"Hae osoitteella tai paikan nimellä","search-autosuggest-label":"Paikka, linja ja pysäkkihaku.","search-autosuggest-label-instructions-desktop":"Navigoi listassa nuolinäppäimillä ja valitse enterillä.","search-autosuggest-label-instructions-mobile":"Syötä sijainti ja navigoi listassa pyyhkäisemällä.","search-autosuggest-label-move-to-destination":"Valittuasi lähtöpaikan siirrytään suoraan määränpää-kenttään.","search-autosuggest-len":" Löydettiin {{count}} ehdotus","search-autosuggest-len_plural":" Löydettiin {{count}} ehdotusta","search-button-label":"Hae","search-current-suggestion":"Tämänhetkinen valinta: {{selection}}","search-destination":"Hae määränpäätä, linjaa tai pysäkkiä","search-destination-index":"Syötä määränpää","search-destination-results-but-no-search":"Katso tulokset viereiseltä Määränpää-välilehdeltä","search-no-results":"Ei tuloksia","search-origin":"Hae lähtöpaikkaa, linjaa tai pysäkkiä","search-origin-index":"Syötä lähtöpaikka","search-position":"Paikanna","select-from-map":"Valitse sijainti kartalta","select-from-own-locations":"Valitse omista paikoista",station:"Asema",stop:"Pysäkki","stop-near-you":"Linja, pysäkki tai asema","stop-near-you-airplane":"Hae lentoja tai lentoasemaa","stop-near-you-bikepark":"Hae pyöräparkkia","stop-near-you-bus":"Hae bussilinjaa tai pysäkkiä","stop-near-you-carpark":"Hae autoparkkia","stop-near-you-citybike":"Hae kaupunkipyöräasemaa","stop-near-you-rail":"Hae lähijunaa tai asemaa","stop-near-you-subway":"Hae metrolinjaa tai asemaa","stop-near-you-tram":"Hae raitiolinjaa tai pysäkkiä","stop-route-station":"Linja- ja pysäkkihaku","stop-status-alert":"Häiriö pysäkillä","stop-status-info":"Tiedote pysäkillä","stop-status-no-service-today":"Ei lähtöjä tänään","stop-status-out-of-service":"Pysäkki poissa käytöstä",street:"Katu",subway:"Metro","today-at":"tänään klo","tomorrow-at":"huomenna klo",track:"Raide",tram:"Raitiovaunu","use-own-position":"Käytä nykyistä sijaintia",venue:"Paikka","via-point":"Välipiste",where:"Minne mennään?"}},pl:{translation:{"add-via-button-label":"Dodaj punkt pośredni","add-via-duration-button-label":"Wybierz czas postoju dla punktu {{index}}","add-via-duration-button-label-close":"Zamknij wybornik czasu postoju w punkcie {{index}}","add-via-duration-button-label-open":"Otwórz wybornik czasu postoju w punkcie {{index}}",address:"Adres","address-place-or-business":"Adres, miejsce lub firma",airplane:"Lot",arrival:"Przyjazd",back:"Wróć",bikepark:"Parkuj i Jedź dla rowerów",bikerentalstation:"Stacja rowerowa",bus:"autobus",cancel:"Anuluj",carpark:"Parkuj i Jedź","clear-button-label":"Wyczyść","clear-search-history":"Wyczyść historię wyszukiwania",currentposition:"Obecne położenie",delete:"Usuń","delete-old-searches-header":"Czy na pewno chcesz wyczyścić historię wyszukiwania?",departure:"Odjazd",destination:"Cel",favourite:"Ulubione",ferry:"Prom","future-route":"Przyszła trasa","give-destination":"Wprowadź swój cel","give-origin":"Wprowadź swój punkt początkowy.",loading:"Ładowanie…","minute-short":"min.",origin:"Początek","origin-stop-near-you":"Początek",ownlocations:"Własne miejsca",place:"Miejsce",platform:"Peron",rail:"Pociąg",required:"wymagane pole",search:"Szukaj","search-address-or-place":"Szukaj po adresie lub nazwie miejsca","search-autosuggest-label":"Miejsce, lokalizacja i przystanek.","search-autosuggest-label-instructions-desktop":"Nawiguj po liście używając strzałek i wybieraj klawiszem Enter.","search-autosuggest-label-instructions-mobile":"Wprowadź lokalizację i nawiguj po liście gestami przesuwania.","search-autosuggest-label-move-to-destination":"Po wybraniu lokalizacji początkowej, automatycznie przejdziesz do pola miejsca docelowego.","search-autosuggest-len":"Dostępna jest {{count}} propozycja","search-autosuggest-len_few":"Dostępne są {{count}} propozycje","search-autosuggest-len_other":"Dostępne jest {{count}} propozycji","search-button-label":"Szukaj","search-current-suggestion":"Obecny wybór: {{selection}}","search-destination":"Szukaj celu, trasy lub przystanku","search-destination-index":"Wprowadź punkt docelowy","search-destination-results-but-no-search":"Wyświetl wyniki w sąsiedniej karcie „Cel”","search-no-results":"Brak lokalizacji","search-origin":"Wyszukaj początek, koniec lub punkt pośredni","search-origin-index":"Wprowadź punkt początkowy","search-position":"Wykryj lokalizację","select-from-map":"Wybierz miejsce na mapie","select-from-own-locations":"Wybierz z własnych miejsc",station:"Stacja",stop:"Przystanek","stop-near-you":"Szukaj przystanków i tras","stop-near-you-airplane":"Szukaj lotów i lotnisk","stop-near-you-bus":"Szukaj tras autobusowych i przystanków","stop-near-you-citybike":"Szukaj stacji rowerów miejskich","stop-near-you-rail":"Szukaj tras kolejowych i przystanków","stop-near-you-subway":"Szukaj tras metra i przystanków ","stop-near-you-tram":"Szukaj tras tramwajowych i przystanków","stop-route-station":"Wyszukiwanie autobusów i przystanków","stop-status-alert":"Utrudnienie na przystanku","stop-status-info":"Komunikat na przystanku","stop-status-no-service-today":"Dziś brak odjazdów","stop-status-out-of-service":"Przystanek nieczynny",street:"Ulica",subway:"Metro","today-at":"dziś o","tomorrow-at":"jutro o",track:"Tor",tram:"Tramwaj","use-own-position":"Użyj obecnej lokalizacji",venue:"Miejsce","via-point":"Przez punkt",where:"Dokąd?"}},sv:{translation:{"add-via-button-label":"Lägg till viapunkt","add-via-duration-button-label":"Ställ in varaktighet för viapunkten {{index}}","add-via-duration-button-label-close":"Stäng väljaren för varaktighet vid via-punkten {{index}}","add-via-duration-button-label-open":"Öppna väljaren för varaktighet vid via-punkten {{index}}",address:"Adress","address-place-or-business":"Adress, plats eller företag",airplane:"Flyg",arrival:"Anländer",back:"Tillbaka",bikepark:"Anslutningsparkering för cyklar",bikerentalstation:"Stadscykelstation",bus:"Bussi",cancel:"Avbryt",carpark:"Infartsparkering","clear-button-label":"Töm","clear-search-history":"Töm sökhistoriken",currentposition:"Nuvarande position",delete:"Ta bort","delete-old-searches-header":"Vill du tömma sökhistoriken?",departure:"Avgångstid",destination:"Destination",favourite:"Favorit",ferry:"Färja","future-route":"Framtida rutt","give-destination":"Skriv in din destination","give-origin":"Skriv in din avfärdsplats",loading:"Laddar...","minute-short":"min",origin:"Avfärdsplats","origin-stop-near-you":"Avfärdsplats",ownlocations:"Egna platser",place:"Plats",platform:"Plattform",rail:"Tåg",required:"obligatoriskt fält",search:"Sök","search-address-or-place":"Sök med adressen eller platsens namn","search-autosuggest-label":"Plats, linje och hållplatssökning.","search-autosuggest-label-instructions-desktop":"Navigera listan med piltangenterna och välj med Enter-tangeten.","search-autosuggest-label-instructions-mobile":"Ange platsen och navigera i listan genom att svepa.","search-autosuggest-label-move-to-destination":"Efter att du valt avgångsplatsen tas du direkt till Destination-fältet.","search-autosuggest-len":"Hittade {{count}} förslag","search-autosuggest-len_plural":"Hittade {{count}} förslag","search-button-label":"Sök","search-current-suggestion":"Nuvarande val: {{selection}}","search-destination":"Sök destination, linje eller hållplats","search-destination-index":"Skriv destination","search-destination-results-but-no-search":"Se resultaten under fliken Destination","search-no-results":"Inga sökresultat","search-origin":"Sök avfärdsplats, linje eller hållplats","search-origin-index":"Skriv avfärdsplats","search-position":"Sök position","select-from-map":"Välj position från kartan","select-from-own-locations":"Välj från egna platser",station:"Station",stop:"Hållplats","stop-near-you":"Sök hållplatser eller linjer","stop-near-you-airplane":"Sök flyg eller flygplatser","stop-near-you-bikepark":"Sök cykelparkering","stop-near-you-bus":"Sök busslinjer eller hållplatser","stop-near-you-carpark":"Sök anslutningsparkering","stop-near-you-citybike":"Sök stadscykelstationer","stop-near-you-rail":"Sök närtåger eller stationer","stop-near-you-subway":"Sök metrolinjer eller stationer","stop-near-you-tram":"Sök spårvagnlinjer eller hållplatser","stop-route-station":"Buss och stopp sökningen","stop-status-alert":"Störning vid hållplatsen","stop-status-info":"Meddelande vid hållplatsen","stop-status-no-service-today":"Inga avgångar idag","stop-status-out-of-service":"Hållplats ur bruk",street:"Gata",subway:"Metro","today-at":"i dag kl","tomorrow-at":"i morgon",track:"Spår",tram:"Spårvagn","use-own-position":"Använd min position",venue:"Mötesplats","via-point":"Via punkt",where:"Vart vill du åka?"}}},defaultNS:"translation",react:{useSuspense:!0}});function Bc(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}qc.init();var Hc,Vc,$c,Wc,Gc={container:"styles_container__YKW96",input:"styles_input__--GRS",favourite:"styles_favourite__VJm6c",thin:"styles_thin__dDVH9",hasValue:"styles_hasValue__JCbDo",suggestionsContainerOpen:"styles_suggestionsContainerOpen__ARBAD",suggestionsContainer:"styles_suggestionsContainer__FCLTy",suggestionsList:"styles_suggestionsList__uyd8R",suggestion:"styles_suggestion__yZzst",suggestionHighlighted:"styles_suggestionHighlighted__4-yqj","autosuggest-input-container":"styles_autosuggest-input-container__d7zo4",origin:"styles_origin__3BSEn",destination:"styles_destination__VSQ-a","stop-route-station":"styles_stop-route-station__Gcetf","autosuggest-input-icon":"styles_autosuggest-input-icon__4ww0f","origin-stop-near-you":"styles_origin-stop-near-you__NhZ-N","clear-input":"styles_clear-input__CYTYl","sr-only":"styles_sr-only__N8Ha-",hidden:"styles_hidden__iNw4s"};Bc("input[type=text] {\n margin: 0;\n}\n\n.styles_container__YKW96 {\n display: flex;\n width: 100%;\n}\n.styles_container__YKW96 .styles_input__--GRS.styles_favourite__VJm6c {\n padding-left: 47px;\n}\n.styles_container__YKW96 .styles_input__--GRS.styles_thin__dDVH9 {\n height: 34px;\n}\n.styles_container__YKW96 .styles_input__--GRS {\n font-size: 16px;\n font-family: inherit;\n display: flex;\n width: 100%;\n height: 44px;\n border-radius: 5px;\n border: solid 1px #888;\n background-color: #fff;\n padding-left: 50px;\n padding-right: 44px;\n line-height: 1.2;\n letter-spacing: -0.5px;\n color: #333;\n box-sizing: border-box;\n -webkit-appearance: none;\n appearance: none;\n}\n.styles_container__YKW96 .styles_input__--GRS:focus {\n background: #fff;\n outline: none;\n border: solid 1px var(--color);\n box-shadow: 0 0 2px 1px var(--hover-color);\n}\n@media screen and (min-width: 768px) {\n .styles_container__YKW96 .styles_input__--GRS {\n font-size: 15px;\n height: 44px;\n padding-left: 49px;\n }\n}\n.styles_container__YKW96 .styles_input__--GRS::placeholder {\n color: #666;\n opacity: 1;\n font-size: 15px;\n}\n\n.styles_hasValue__JCbDo {\n color: #333;\n}\n\n.styles_suggestionsContainerOpen__ARBAD {\n width: 100%;\n max-height: 44vh;\n border-radius: 5px;\n box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);\n border: solid 1px rgba(0, 0, 0, 0.1);\n overflow-x: hidden;\n overflow-y: scroll;\n position: absolute;\n background-color: white;\n top: calc(2.625rem + 9px);\n z-index: 20;\n}\n\n.styles_suggestionsContainer__FCLTy {\n background-color: white;\n z-index: 20;\n}\n.styles_suggestionsContainer__FCLTy .styles_suggestionsList__uyd8R {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background: white;\n}\n.styles_suggestionsContainer__FCLTy .styles_suggestionsList__uyd8R li:hover {\n background: #f2f5f7;\n}\n\n.styles_suggestion__yZzst {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n cursor: pointer;\n list-style: none;\n display: block;\n overflow-x: hidden;\n overflow-y: hidden;\n white-space: nowrap;\n z-index: 20;\n}\n\n.styles_suggestionHighlighted__4-yqj {\n background-color: #f2f5f7;\n}\n\n.styles_autosuggest-input-container__d7zo4 {\n position: relative;\n width: 100%;\n}\n.styles_autosuggest-input-container__d7zo4.styles_origin__3BSEn {\n z-index: 16;\n}\n.styles_autosuggest-input-container__d7zo4.styles_destination__VSQ-a {\n z-index: 10;\n}\n.styles_autosuggest-input-container__d7zo4.styles_stop-route-station__Gcetf {\n z-index: 9;\n}\n\n.styles_autosuggest-input-icon__4ww0f {\n display: flex;\n position: absolute;\n align-items: center;\n width: 16px;\n height: 100%;\n margin-top: 0;\n margin-left: 19px;\n}\n.styles_autosuggest-input-icon__4ww0f svg {\n width: 16px;\n height: 24px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_origin__3BSEn svg {\n color: #4ea700;\n fill: #4ea700;\n width: 16px;\n height: 16px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_destination__VSQ-a svg {\n fill: #ec5188;\n width: 16px;\n height: 24px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_stop-route-station__Gcetf svg, .styles_autosuggest-input-icon__4ww0f.styles_favourite__VJm6c svg {\n fill: #888;\n width: 16px;\n height: 16px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_origin-stop-near-you__NhZ-N svg {\n fill: #888;\n width: 16px;\n height: 16px;\n}\n\nbutton.styles_clear-input__CYTYl {\n display: flex;\n position: absolute;\n padding: 14px 0;\n right: 0;\n width: 44px;\n height: 100%;\n color: var(--color);\n outline: none;\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none;\n}\nbutton.styles_clear-input__CYTYl svg {\n fill: var(--color);\n width: 16px;\n height: 16px;\n}\nbutton.styles_clear-input__CYTYl:focus {\n background-color: transparent;\n color: inherit;\n /* First apply outline that is used in Edge and Firefox */\n /* Then override outline for webkit browsers like Chrome, this has no effect on other browsers */\n outline: 5px auto -webkit-focus-ring-color;\n}\nbutton.styles_clear-input__CYTYl:active {\n background-color: transparent;\n color: inherit;\n}\nbutton.styles_clear-input__CYTYl:hover {\n background-color: transparent;\n color: inherit;\n}\n\n.styles_sr-only__N8Ha-:not(:focus, :active) {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.styles_hidden__iNw4s {\n visibility: hidden;\n}"),function(){if(Vc)return Hc;Vc=1;var e=zi();Hc=function(t,n){return e(t,n)}}();var Kc=function(){if(Wc)return $c;Wc=1;var e=Sr(),t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);return $c=function(r){return(r=e(r))&&n.test(r)?r.replace(t,"\\$&"):r}}(),Jc=Q(Kc);const Yc=e=>e.localadmin||e.localadmin||e.address&&e.address.lastIndexOf(",")<e.address.length-2&&e.address.substring(e.address.lastIndexOf(",")+2)||"",Xc=({id:e,code:t})=>t||(void 0!==e&&void 0!==e.indexOf&&-1!==e.indexOf("#")?e.substring(e.indexOf("#")+1):void 0),Qc=(e,t=!1)=>{switch(e.layer){case"currentPosition":return[e.labelId,e.address];case"selectFromMap":case"ownLocations":case"back":return[e.labelId];case"favouritePlace":return n=e.name,r=e.address,[n||r&&r.split(",")[0],"string"==typeof r?r.replace(new RegExp(`${Jc(n)}([ ,]|$)+`),""):""];case"favouriteVehicleRentalStation":case"bikestation":return[e.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-FUNICULAR":case"route-AIRPLANE":return!t&&e.shortName?[e.gtfsId,e.mode.toLowerCase(),e.longName]:[e.shortName,e.longName,e.agency?e.agency.name:void 0];case"venue":case"address":case"street":return[e.name,e.label.replace(new RegExp(`${Jc(e.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return t?[e.name||e.label||e.address&&e.address.split(",")[0],Yc(e)]:[e.name,e.id,Xc(e),Yc(e)];default:return[e.name||e.label||e.address&&e.address.split(",")[0],Yc(e)]}var n,r};const Zc=e=>e.scrollIntoView({block:"nearest"}),ed=e=>{const t=e&&(e.key||e.which||e.keyCode)||"";return!(!t||![13," ","Spacebar"].concat([32,"Enter"]).includes(t))&&(e.preventDefault(),!0)},td=e=>"origin"===e||"destination"===e||"via-point"===e||"origin-stop-near-you"===e,nd=(e,t,n)=>{if(!n)return;if(!e||!e.GTFS.platform)return;const{modes:r,platform:o}=e.GTFS;return[r&&"RAIL"===r[0]?n("track",{lng:t}):n("platform",{lng:t}),o]};function rd(e,t,n){if(!n)return;if("FutureRoute"!==e.type){if("SelectFromMap"===e.type)return["",n("select-from-map",{lng:t})];if("CurrentLocation"===e.type)return["",n("use-own-position",{lng:t})];if("SelectFromOwnLocations"===e.type)return["",n("select-from-own-locations",{lng:t})];let r,[o,i]=Qc(e.properties,!0);if(e.properties.layer.toLowerCase().includes("bikerental")||e.properties.layer.toLowerCase().includes("bikestation")){r=n("bikerentalstation",{lng:t});return[r,o,void 0,e.properties.labelId]}if("bikepark"===e.properties.layer)return r=n("bikepark",{lng:t}),[r,o,void 0,void 0];if("carpark"===e.properties.layer)return r=n("carpark",{lng:t}),[r,o,void 0,void 0];if(e.properties.mode)r=n(e.properties.mode.toLowerCase().replace("favourite",""),{lng:t});else{r=n(e.properties.layer.replace("route-","").toLowerCase().replace("favourite",""),{lng:t})}if(e.properties.id&&("stop"===e.properties.layer||"station"===e.properties.layer)){const s=Xc(e.properties),a=e.properties.addendum?.GTFS.modes,u=nd(e.properties.addendum,t,n);return[r,Xs(o,s),i,s,a,u]}if("favouriteStop"===e.properties.layer||"favouriteStation"===e.properties.layer){const{address:n,code:s}=e.properties;return[r,n?Xs(n.split(",")[0],s):o,i,s,void 0,nd(e.properties.addendum,t)]}return[r,o,i]}const{origin:r,destination:o}=e.properties,i=r.locality?`, ${r.locality} foobar`:"",s=o.locality?`, ${o.locality}`:"",a=r.name,u=o.name;return[n("future-route",{lng:t}),`${n("origin",{lng:t})} ${a}${i} ${n("destination",{lng:t})} ${u}${s}`,e.translatedText]}function od(e,t,n){if(!n)return;const r=l.DateTime.fromSeconds(Number(e.properties.time)),o=l.DateTime.now();let i=e.properties.arriveBy?n("arrival",{lng:t}):n("departure",{lng:t});return i=r.hasSame(o,"day")?`${i} ${n("today-at")}`:r.hasSame(o.plus({days:1}),"day")?`${i} ${n("tomorrow-at",{lng:t})}`:`${i} ${r.toFormat("ccc d.L.")}`,i=`${i} ${r.toFormat("HH:mm")}`,i}const id=e=>"SelectFromOwnLocations"===e.type||"back"===e.type?"":function(e){const t=Qc(e,!0);switch(e.layer){case"selectFromMap":case"currentPosition":case"ownLocations":case"back":return t[1]||t[0];case"favouriteVehicleRentalStation":case"favouritePlace":return t[0];default:return t.length>1&&""!==t[1]?t.join(", "):t[1]||t[0]}}(e.properties),sd=({suggestions:e,t:t,lng:n})=>{let r=[];const o=e[0];return o&&(o.type&&o.type.includes("Favourite")&&r.push(t("favourite",{lng:n})),r=r.concat(rd(e[0],n))),[...new Set(r)].join(" - ")};var ad,ud={exports:{}};
2
- /*! For license information please see index.js.LICENSE.txt */var ld=(ad||(ad=1,function(e){var t;"undefined"!=typeof self&&self,e.exports=(t=H.default,function(){var e={888:function(e,t,n){var r,o;o=void 0!==n.g?n.g:"undefined"!=typeof window?window:this,r=function(){return function(e){var t={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},n=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}}),e},r=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),r=n.length,o=-1,i="",s=n.charCodeAt(0);++o<r;){if(0===(t=n.charCodeAt(o)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");i+=t>=1&&t<=31||127==t||0===o&&t>=48&&t<=57||1===o&&t>=48&&t<=57&&45===s?"\\"+t.toString(16)+" ":t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(o):"\\"+n.charAt(o)}return"#"+i},o=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},i=function(t){return t?(n=t,parseInt(e.getComputedStyle(n).height,10)+t.offsetTop):0;var n},s=function(t,n,r){0===t&&document.body.focus(),r||(t.focus(),document.activeElement!==t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),e.scrollTo(0,n))},a=function(t,n,r,o){if(n.emitEvents&&"function"==typeof e.CustomEvent){var i=new CustomEvent(t,{bubbles:!0,detail:{anchor:r,toggle:o}});document.dispatchEvent(i)}};return function(u,l){var c,d,f,p,h={cancelScroll:function(e){cancelAnimationFrame(p),p=null,e||a("scrollCancel",c)},animateScroll:function(r,u,l){h.cancelScroll();var d=n(c||t,l||{}),g="[object Number]"===Object.prototype.toString.call(r),b=g||!r.tagName?null:r;if(g||b){var y=e.pageYOffset;d.header&&!f&&(f=document.querySelector(d.header));var m,v,_,w=i(f),S=g?r:function(t,n,r,i){var s=0;if(t.offsetParent)do{s+=t.offsetTop,t=t.offsetParent}while(t);return s=Math.max(s-n-r,0),i&&(s=Math.min(s,o()-e.innerHeight)),s}(b,w,parseInt("function"==typeof d.offset?d.offset(r,u):d.offset,10),d.clip),O=S-y,x=o(),j=0,k=function(e,t){var n=t.speedAsDuration?t.speed:Math.abs(e/1e3*t.speed);return t.durationMax&&n>t.durationMax?t.durationMax:t.durationMin&&n<t.durationMin?t.durationMin:parseInt(n,10)}(O,d),E=function(t){m||(m=t),j+=t-m,_=y+O*function(e,t){var n;return"easeInQuad"===e.easing&&(n=t*t),"easeOutQuad"===e.easing&&(n=t*(2-t)),"easeInOutQuad"===e.easing&&(n=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e.easing&&(n=t*t*t),"easeOutCubic"===e.easing&&(n=--t*t*t+1),"easeInOutCubic"===e.easing&&(n=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e.easing&&(n=t*t*t*t),"easeOutQuart"===e.easing&&(n=1- --t*t*t*t),"easeInOutQuart"===e.easing&&(n=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e.easing&&(n=t*t*t*t*t),"easeOutQuint"===e.easing&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e.easing&&(n=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),e.customEasing&&(n=e.customEasing(t)),n||t}(d,v=(v=0===k?0:j/k)>1?1:v),e.scrollTo(0,Math.floor(_)),function(t,n){var o=e.pageYOffset;if(t==n||o==n||(y<n&&e.innerHeight+o)>=x)return h.cancelScroll(!0),s(r,n,g),a("scrollStop",d,r,u),m=null,p=null,!0}(_,S)||(p=e.requestAnimationFrame(E),m=t)};0===e.pageYOffset&&e.scrollTo(0,0),function(e,t,n){t||history.pushState&&n.updateURL&&history.pushState({smoothScroll:JSON.stringify(n),anchor:e.id},document.title,e===document.documentElement?"#top":"#"+e.id)}(r,g,d),"matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches?s(r,Math.floor(S),!1):(a("scrollStart",d,r,u),h.cancelScroll(!0),e.requestAnimationFrame(E))}}},g=function(t){if(!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(d=t.target.closest(u))&&"a"===d.tagName.toLowerCase()&&!t.target.closest(c.ignore)&&d.hostname===e.location.hostname&&d.pathname===e.location.pathname&&/#/.test(d.href)){var n,o;try{n=r(decodeURIComponent(d.hash))}catch(e){n=r(d.hash)}if("#"===n){if(!c.topOnEmptyHash)return;o=document.documentElement}else o=document.querySelector(n);(o=o||"#top"!==n?o:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var n=e.location.hash;n=n||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:n||e.pageYOffset},document.title,n||e.location.href)}}(c),h.animateScroll(o,d))}},b=function(e){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(c)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(r(history.state.anchor)))||h.animateScroll(t,null,{updateURL:!1})}};return h.destroy=function(){c&&(document.removeEventListener("click",g,!1),e.removeEventListener("popstate",b,!1),h.cancelScroll(),c=null,d=null,f=null,p=null)},function(){if(!("querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";h.destroy(),c=n(t,l||{}),f=c.header?document.querySelector(c.header):null,document.addEventListener("click",g,!1),c.updateURL&&c.popstate&&e.addEventListener("popstate",b,!1)}(),h}}(o)}.apply(t,[]),void 0===r||(e.exports=r)},432:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(47),t),o(n(926),t),o(n(349),t),o(n(137),t),o(n(729),t),o(n(383),t),o(n(450),t),o(n(358),t),o(n(753),t),o(n(869),t),o(n(352),t),o(n(446),t),o(n(164),t),o(n(305),t),o(n(502),t)},349:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowNavigation=void 0;var r=n(156);t.useArrowNavigation=function(e){var t=e.listItems,n=e.onArrowUpOrDown,o=(0,r.useState)(0),i=o[0],s=o[1],a=(0,r.useCallback)(function(e){s(e)},[t]),u=function(e){var r=e.key;if(null==t?void 0:t.length)if("ArrowUp"===r)n&&n(),e.preventDefault(),a(i>0?i-1:t.length-1);else{if("ArrowDown"!==r)return;n&&n(),e.preventDefault(),i<t.length-1?a(i+1):a(0)}};return(0,r.useEffect)(function(){return window.addEventListener("keydown",u),function(){return window.removeEventListener("keydown",u)}}),(0,r.useEffect)(function(){a(0)},[t]),{selectedIndex:i}}},446:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useDebounce=void 0;var r=n(156);t.useDebounce=function(e,t){void 0===t&&(t=300);var n=(0,r.useState)(e),o=n[0],i=n[1];return(0,r.useEffect)(function(){var n=setTimeout(function(){i(e)},t);return function(){clearTimeout(n)}},[e,t]),o}},164:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementSize=void 0;var r=n(156);t.useElementSize=function(){var e,t,n=(0,r.useRef)(null);return[n,{width:null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.clientWidth,height:null===(t=null==n?void 0:n.current)||void 0===t?void 0:t.clientHeight}]},t.default=t.useElementSize},137:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersectionObserver=void 0;var r=n(156);t.useIntersectionObserver=function(e){var t=(0,r.useRef)(null),n=(0,r.useState)(!1),o=n[0],i=n[1],s=function(e){var t=e[0];i(t.isIntersecting)};return(0,r.useEffect)(function(){if(window&&window.IntersectionObserver){var n=new IntersectionObserver(s,e),r=t.current;return t.current&&n.observe(t.current),function(){r&&n.unobserve(r)}}i(!1)},[t,e]),{containerRef:t,isVisible:o}},t.default=t.useIntersectionObserver},729:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsBreakpoint=void 0;var r=n(156),o=n(432),i={xs:1,mobileSmall:320,mobile:375,tablet:768,tabletLarge:920,desktopSmall:1024,desktop:1260,desktopLarge:1440};t.useIsBreakpoint=function(e){var t="string"==typeof e?i[e]:e,n=(0,r.useState)(null),s=n[0],a=n[1],u=(0,r.useCallback)(function(){a(window.innerWidth)},[]);return(0,r.useEffect)(function(){u()},[]),(0,o.useOnResize)(u),s>=t},t.default=t.useIsBreakpoint},450:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsLoadingAfterError=void 0;var r=n(156);t.useIsLoadingAfterError=function(e,t){var n=(0,r.useState)(t),o=n[0],i=n[1];return(0,r.useEffect)(function(){e||i(t)},[e,t]),e&&o}},305:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMobile=void 0;var r=n(729);t.useIsMobile=function(){return!(0,r.useIsBreakpoint)("tablet")},t.default=t.useIsMobile},383:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsomorphicLayoutEffect=void 0;var r=n(156);t.useIsomorphicLayoutEffect="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,t.default=t.useIsomorphicLayoutEffect},753:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnLoseFocusWithin=void 0;var r=n(156);t.useOnLoseFocusWithin=function(e){var t=e.ref,n=e.callback,o=e.watch;(0,r.useEffect)(function(){var e=function(){var e;if(o)return(null===(e=t.current)||void 0===e?void 0:e.matches(":focus-within"))?void 0:n()};return document.addEventListener("keyup",e),function(){return document.removeEventListener("keyup",e)}},[n,t,o])},t.default=t.useOnLoseFocusWithin},502:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnResize=void 0;var r=n(156);t.useOnResize=function(e){(0,r.useEffect)(function(){var t=function(){e(window.innerWidth)};return window.addEventListener("resize",t,{passive:!0}),function(){return window.removeEventListener("resize",t)}},[])},t.default=t.useOnResize},352:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnWindowFocus=void 0;var r=n(156);t.useOnWindowFocus=function(e){(0,r.useEffect)(function(){var t=function(){e&&"visible"===document.visibilityState&&e()};return window.addEventListener("visibilitychange",t,!1),function(){return window.removeEventListener("visibilitychange",t)}},[e])}},47:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOutsideReacter=void 0;var r=n(156);t.useOutsideReacter=function(e,t){function n(n){e.current&&!e.current.contains(n.target)&&t()}(0,r.useEffect)(function(){return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}})}},869:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRunAfterUpdate=void 0;var r=n(156);t.useRunAfterUpdate=function(){var e=(0,r.useRef)(null);return(0,r.useEffect)(function(){e.current&&(e.current(),e.current=null)}),function(t){e.current=t}},t.default=t.useRunAfterUpdate},926:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useScrollLock=void 0;var r=n(156);t.useScrollLock=function(){return{lock:(0,r.useCallback)(function(){var e=window.scrollY+"px",t=document.body;t.style.position="fixed",t.style.top="-"+e},[]),unlock:(0,r.useCallback)(function(){var e=document.body,t=e.style.top,n=-1*parseInt(t||"0");e.style.position="",e.style.top="",n&&window.scrollTo(0,-1*parseInt(t||"0"))},[])}}},358:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useSmoothScroll=void 0;var o=n(156),i=r(n(888));t.useSmoothScroll=function(e){var t=(0,o.useRef)(null),n=e.ref,r=e.offset,s=void 0===r?0:r,a=e.speed,u=void 0===a?500:a;return(0,o.useEffect)(function(){t.current=new i.default(null,{speed:u,speedAsDuration:!0})},[]),(0,o.useCallback)(function(){n&&t.current&&t.current.animateScroll(n.current,null,{offset:function(){return s},updateURL:!1})},[s,n])}},156:function(e){e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(432)}())}(ud)),ud.exports),cd=Q(ld),dd={"fullscreen-root":"MobileSearch_fullscreen-root__-fKuG","combobox-container":"MobileSearch_combobox-container__UApoj","right-column":"MobileSearch_right-column__n9ied","combobox-icon":"MobileSearch_combobox-icon__91hHs","combobox-label":"MobileSearch_combobox-label__TVrz1",container:"MobileSearch_container__fxGZ7",input:"MobileSearch_input__bUFhg","clear-input":"MobileSearch_clear-input__AaH3X",hasValue:"MobileSearch_hasValue__1Txox",suggestion:"MobileSearch_suggestion__v2-T8",suggestionHighlighted:"MobileSearch_suggestionHighlighted__laMbA",suggestionsContainerOpen:"MobileSearch_suggestionsContainerOpen__-ZF8G",suggestionsList:"MobileSearch_suggestionsList__zRJY4","clear-search-history":"MobileSearch_clear-search-history__XpFfN","mobile-modal-overlay":"MobileSearch_mobile-modal-overlay__BDcbD","mobile-modal":"MobileSearch_mobile-modal__-gEAQ","mobile-modal-content":"MobileSearch_mobile-modal-content__mUUFh"};Bc("input[type=text] {\n margin: 0;\n padding: 0;\n}\n\n.MobileSearch_fullscreen-root__-fKuG {\n display: flex;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000;\n}\n\n.MobileSearch_combobox-container__UApoj {\n margin: 15px 10px 0;\n border: solid #888 1px;\n display: flex;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n justify-content: space-between;\n}\n.MobileSearch_combobox-container__UApoj .MobileSearch_right-column__n9ied {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px;\n}\n\n.MobileSearch_combobox-icon__91hHs {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none;\n}\n.MobileSearch_combobox-icon__91hHs svg {\n width: 14px;\n height: 21px;\n transform: rotate(-180deg);\n}\n\n.MobileSearch_combobox-label__TVrz1 {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.2px;\n color: #333;\n}\n\n.MobileSearch_container__fxGZ7 {\n display: flex;\n align-items: center;\n width: 100%;\n}\n.MobileSearch_container__fxGZ7 .MobileSearch_input__bUFhg {\n font-family: inherit;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666;\n -webkit-appearance: none;\n appearance: none;\n}\n.MobileSearch_container__fxGZ7 .MobileSearch_input__bUFhg:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff;\n}\n\nbutton.MobileSearch_clear-input__AaH3X {\n display: flex;\n align-items: center;\n right: 0;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none;\n}\nbutton.MobileSearch_clear-input__AaH3X svg {\n fill: var(--color);\n width: 16px;\n height: 16px;\n}\nbutton.MobileSearch_clear-input__AaH3X:focus {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileSearch_clear-input__AaH3X:active {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileSearch_clear-input__AaH3X:hover {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileSearch_hasValue__1Txox {\n color: #333;\n}\n\n.MobileSearch_suggestion__v2-T8 {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0;\n}\n\n.MobileSearch_suggestionHighlighted__laMbA {\n background-color: #f2f5f7;\n}\n\n.MobileSearch_suggestionsContainerOpen__-ZF8G {\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.MobileSearch_suggestionsContainerOpen__-ZF8G .MobileSearch_suggestionsList__zRJY4 {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f2f5f7;\n}\n\n.MobileSearch_clear-search-history__XpFfN {\n display: flex;\n font-family: inherit;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f2f5f7;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd;\n}\n.MobileSearch_suggestionHighlighted__laMbA .MobileSearch_clear-search-history__XpFfN {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileSearch_mobile-modal-overlay__BDcbD {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed;\n}\n\n.MobileSearch_mobile-modal__-gEAQ {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.MobileSearch_mobile-modal__-gEAQ.ReactModal__Content--after-open > div {\n transform: translateY(0);\n}\n.MobileSearch_mobile-modal__-gEAQ.ReactModal__Content--before-close > div {\n transform: translateY(10%);\n}\n\n.MobileSearch_mobile-modal-content__mUUFh {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #fff;\n transition: transform 0.25s;\n transform: translateY(10%);\n}");var fd={"fullscreen-root":"MobileNoScroll_fullscreen-root__z0ny4","combobox-container":"MobileNoScroll_combobox-container__TTtSg","right-column":"MobileNoScroll_right-column__TS4N7","combobox-icon":"MobileNoScroll_combobox-icon__-r8Qf","combobox-label":"MobileNoScroll_combobox-label__rQ8p-",container:"MobileNoScroll_container__XXfFb",input:"MobileNoScroll_input__Xaj1-","clear-input":"MobileNoScroll_clear-input__Jz4Xv",hasValue:"MobileNoScroll_hasValue__ftyO6",suggestion:"MobileNoScroll_suggestion__7L2kI",suggestionHighlighted:"MobileNoScroll_suggestionHighlighted__IKy2t",suggestionsContainerOpen:"MobileNoScroll_suggestionsContainerOpen__ePksf",suggestionsList:"MobileNoScroll_suggestionsList__aeQlJ","clear-search-history":"MobileNoScroll_clear-search-history__WrE0K","mobile-modal-overlay":"MobileNoScroll_mobile-modal-overlay__k1JdU","mobile-modal":"MobileNoScroll_mobile-modal__x5kKM","mobile-modal-content":"MobileNoScroll_mobile-modal-content__os7v8"};function pd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Bc("input[type=text] {\n margin: 0;\n padding: 0;\n}\n\n.MobileNoScroll_fullscreen-root__z0ny4 {\n display: flex;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000;\n}\n\n.MobileNoScroll_combobox-container__TTtSg {\n margin: 15px 10px 0;\n border: solid #888 1px;\n display: flex;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n justify-content: space-between;\n}\n.MobileNoScroll_combobox-container__TTtSg .MobileNoScroll_right-column__TS4N7 {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px;\n}\n\n.MobileNoScroll_combobox-icon__-r8Qf {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none;\n}\n.MobileNoScroll_combobox-icon__-r8Qf svg {\n width: 14px;\n height: 21px;\n transform: rotate(-180deg);\n}\n\n.MobileNoScroll_combobox-label__rQ8p- {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.2px;\n color: #333;\n}\n\n.MobileNoScroll_container__XXfFb {\n display: flex;\n align-items: center;\n width: 100%;\n}\n.MobileNoScroll_container__XXfFb .MobileNoScroll_input__Xaj1- {\n font-family: inherit;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666;\n -webkit-appearance: none;\n appearance: none;\n}\n.MobileNoScroll_container__XXfFb .MobileNoScroll_input__Xaj1-:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff;\n}\n\nbutton.MobileNoScroll_clear-input__Jz4Xv {\n display: flex;\n align-items: center;\n right: 0;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv svg {\n fill: var(--color);\n width: 16px;\n height: 16px;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv:focus {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv:active {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv:hover {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileNoScroll_hasValue__ftyO6 {\n color: #333;\n}\n\n.MobileNoScroll_suggestion__7L2kI {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0;\n}\n\n.MobileNoScroll_suggestionHighlighted__IKy2t {\n background-color: #f2f5f7;\n}\n\n.MobileNoScroll_suggestionsContainerOpen__ePksf {\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.MobileNoScroll_suggestionsContainerOpen__ePksf .MobileNoScroll_suggestionsList__aeQlJ {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f2f5f7;\n}\n\n.MobileNoScroll_clear-search-history__WrE0K {\n display: flex;\n font-family: inherit;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f2f5f7;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd;\n}\n.MobileNoScroll_suggestionHighlighted__IKy2t .MobileNoScroll_clear-search-history__WrE0K {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileNoScroll_mobile-modal-overlay__k1JdU {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed;\n}\n\n.MobileNoScroll_mobile-modal__x5kKM {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.MobileNoScroll_mobile-modal__x5kKM.ReactModal__Content--after-open > div {\n transform: translateY(0);\n}\n.MobileNoScroll_mobile-modal__x5kKM.ReactModal__Content--before-close > div {\n transform: translateY(10%);\n}\n\n.MobileNoScroll_mobile-modal-content__os7v8 {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #fff;\n transition: transform 0.25s;\n transform: translateY(10%);\n}\n\n.MobileNoScroll_suggestionsContainerOpen__ePksf {\n -ms-overflow-style: none; /* Internet Explorer 10+ */\n scrollbar-width: none; /* Firefox */\n}\n.MobileNoScroll_suggestionsContainerOpen__ePksf::-webkit-scrollbar {\n display: none; /* Safari and Chrome */\n}");const hd=["item","lng","getItemProps","highlightedIndex","itemIndex","styles"],gd=["suggestions","getMenuProps","getItemProps","lng","styles","hidden","renderClearHistoryButton","handleClearHistory"];function bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bd(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const md=n.memo(function(e){let{item:t,lng:n,getItemProps:o,highlightedIndex:i,itemIndex:s,styles:a}=e,u=pd(e,hd);const[l]=r.useTranslation(),c="FutureRoute"===t.type?yd(yd({},t),{},{translatedText:od(t,n,l)}):t,d=rd(t,n,l);return f.jsx("li",yd(yd({className:V.default(a.suggestion,i===s&&a.suggestionHighlighted)},o({index:s})),{},{children:f.jsx($.default,yd({item:c,content:d,lng:n},u))}))}),vd="production"!==process.env.NODE_ENV?B.default.shape({name:B.default.string,type:B.default.string,address:B.default.string,selectedIconId:B.default.string,iconColor:B.default.string,translatedText:B.default.string,properties:B.default.shape({layer:B.default.string,color:B.default.string,localadmin:B.default.string,mode:B.default.string,id:B.default.string,source:B.default.string,arrowClicked:B.default.bool,destination:B.default.shape({name:B.default.string,localadmin:B.default.string}),origin:B.default.shape({name:B.default.string,localadmin:B.default.string})})}):{};"production"!==process.env.NODE_ENV&&(md.propTypes={item:vd.isRequired,lng:B.default.string.isRequired,getItemProps:B.default.func.isRequired,highlightedIndex:B.default.number.isRequired,itemIndex:B.default.number.isRequired,styles:B.default.objectOf(B.default.string).isRequired});const _d=n.memo(function(e){let{suggestions:t,getMenuProps:n,getItemProps:o,lng:i,styles:s,hidden:a,renderClearHistoryButton:u=!1,handleClearHistory:l=()=>{}}=e,c=pd(e,gd);const[d]=r.useTranslation();return f.jsx("div",{className:V.default(s.suggestionsContainerOpen,s.suggestionsContainer,a&&s.hidden),children:f.jsxs("ul",yd(yd({className:s.suggestionsList},n()),{},{children:[t.map((e,t)=>f.jsx(md,yd({getItemProps:o,itemIndex:t,item:e,lng:i,styles:s},c),`${e.type}-${e.properties.gid||e.properties.gtfsId||JSON.stringify(e.properties)}`)),u&&f.jsx("li",{children:f.jsx("button",{onClick:l,type:"button",className:s["clear-search-history"],children:d("clear-search-history",{lng:i})})})]}))})});"production"!==process.env.NODE_ENV&&(_d.propTypes={suggestions:B.default.arrayOf(vd).isRequired,getMenuProps:B.default.func.isRequired,getItemProps:B.default.func.isRequired,lng:B.default.string.isRequired,styles:B.default.objectOf(B.default.string).isRequired,hidden:B.default.bool.isRequired,renderClearHistoryButton:B.default.bool,handleClearHistory:B.default.func});const wd=({color:e,lng:t,clearInput:n,onKeyDown:o,styles:i})=>{const[s]=r.useTranslation();return f.jsx("button",{type:"button",className:i["clear-input"],onClick:n,"aria-label":s("clear-button-label",{lng:t}),onKeyDown:o,children:f.jsx(W.default,{img:"close",color:e})})};function Sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sd(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xd({id:e,lng:t,value:n,placeholder:r,required:o,getInputProps:i,getLabelProps:s,clearInput:a,ariaLabel:u,inputRef:l,styles:c,renderLabel:d=!1,isMobile:p,inputClassName:h,transportMode:g,clearButtonColor:b,autoFocus:y=!1,inputOnBlur:m=()=>{},onValueChange:v}){return f.jsxs("div",{className:c.container,children:[d&&f.jsx("label",Od(Od({},s({className:c["sr-only"],htmlFor:e})),{},{children:u})),f.jsx("input",Od({"aria-label":u,autoFocus:y,placeholder:r,required:o,type:"text",className:V.default(c.input,c[e],h,p&&g&&c.thin,n&&c.hasValue),id:e},i({ref:l,onBlur:m,onChange:e=>{v(e.target.value)}}))),n&&f.jsx(wd,{lng:t,clearInput:()=>a(l),styles:c,color:b,onKeyDown:e=>ed(e)&&a(l)})]})}function jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jd(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ed({appElement:e,id:t,placeholder:o,clearInput:s,onSelectedItemChange:a,clearOldSearches:u,suggestionProps:l,lng:c,ariaProps:d,value:p,inputClassName:h,required:g,mobileLabel:b,showScroll:y,state:m,dispatch:v,pendingEnterRef:_,colors:w}){const[S]=r.useTranslation(),{lock:O,unlock:x}=cd.useScrollLock(),j=y?dd:fd,k=`${t}-input`,E=`${t}-label`,[R,P]=n.useState(!1),C=n.useRef();n.useEffect(()=>{G.default.setAppElement(e)},[]),n.useEffect(()=>{m.renderMobile?O():x()},[m.renderMobile]);const{highlightedIndex:A,getLabelProps:T,getMenuProps:N,getInputProps:M,getItemProps:L,setHighlightedIndex:I}=i.useCombobox({items:m.suggestions,inputValue:p,isOpen:!0,scrollIntoView:Zc,onSelectedItemChange:e=>{a(e),v({type:"TOGGLE_MENU",isMobile:!0})},inputId:k,labelId:E,selectedItem:null,defaultHighlightedIndex:-1,onInputValueChange:({inputValue:e,type:t})=>m.renderMobile&&t!==i.useCombobox.stateChangeTypes.InputChange&&v({type:"INPUT_CHANGE",value:e}),stateReducer:(e,{changes:t,type:n})=>{switch(n){case i.useCombobox.stateChangeTypes.InputKeyDownEscape:return I(-1),v({type:"TOGGLE_MENU",isMobile:!0}),e;case i.useCombobox.stateChangeTypes.InputKeyDownEnter:return m.loading?(_.current=!0,e):-1===e.highlightedIndex?kd(kd({},t),{},{selectedItem:m.suggestions[0]}):t;case i.useCombobox.stateChangeTypes.InputBlur:return e;default:return t}},itemToString:e=>e?id(e):""});N({},{suppressRefError:!0}),M({},{suppressRefError:!0});const F=n.useCallback(e=>m.renderMobile&&v({type:"INPUT_CHANGE",value:e}),[m.renderMobile,v]),D=n.useCallback(()=>P(!0),[]),{ariaRequiredText:U,SearchBarId:z,ariaCurrentSuggestion:q}=d,B=U.concat(" ").concat(z).concat(" ").concat(q);return f.jsx(G.default,{isOpen:m.renderMobile,className:j["mobile-modal"],overlayClassName:j["mobile-modal-overlay"],shouldReturnFocusAfterClose:!1,shouldCloseOnEsc:!0,children:f.jsxs("div",{className:j["mobile-modal-content"],style:{"--color":w.primary,"--accessible-primary-color":w.accessiblePrimary,"--hover-color":w.hover},children:[f.jsxs("div",{className:j["combobox-container"],htmlFor:k,children:[f.jsx("button",{type:"button",className:j["combobox-icon"],onClick:()=>{I(-1),v({type:"TOGGLE_MENU",isMobile:!0})},onKeyDown:e=>{ed(e)&&(I(-1),v({type:"TOGGLE_MENU",isMobile:!0}))},"aria-label":S("cancel",{lng:c}),tabIndex:0,children:f.jsx(W.default,{img:"arrow",color:w.primary})}),f.jsxs("span",{className:j["right-column"],children:[f.jsx("span",kd(kd({className:j["combobox-label"],id:E},T()),{},{children:b})),f.jsx(xd,{placeholder:td(t)?S("address-place-or-business",{lng:c}):o,id:t,lng:c,value:p,getInputProps:M,getLabelProps:T,clearInput:()=>s(C),ariaLabel:B,inputRef:C,styles:j,renderLabel:!1,clearButtonColor:w.primary,autoFocus:!0,inputClassName:h,required:g,isMobile:!0,onValueChange:F}),f.jsx(_d,kd({suggestions:m.suggestions,getMenuProps:N,getItemProps:L,highlightedIndex:A,isOpen:!0,hidden:!1,lng:c,styles:j,renderClearHistoryButton:!0,handleClearHistory:D},l))]})]}),f.jsx(K.default,{isModalOpen:R,handleClose:()=>P(!1),headerText:S("delete-old-searches-header",{lng:c}),primaryButtonText:S("delete",{lng:c}),secondaryButtonText:S("cancel",{lng:c}),primaryButtonOnClick:()=>{u(),P(!1)},secondaryButtonOnClick:()=>P(!1),lang:c})]})})}function Rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}"production"!==process.env.NODE_ENV&&(wd.propTypes={color:B.default.string.isRequired,lng:B.default.string.isRequired,clearInput:B.default.func.isRequired,onKeyDown:B.default.func.isRequired,styles:B.default.objectOf(B.default.string).isRequired}),"production"!==process.env.NODE_ENV&&(xd.propTypes={id:B.default.string.isRequired,lng:B.default.string.isRequired,placeholder:B.default.string.isRequired,required:B.default.bool.isRequired,value:B.default.string.isRequired,getInputProps:B.default.func.isRequired,getLabelProps:B.default.func.isRequired,clearInput:B.default.func.isRequired,ariaLabel:B.default.string.isRequired,inputRef:B.default.shape({current:B.default.oneOfType([B.default.string,B.default.object])}).isRequired,styles:B.default.objectOf(B.default.string).isRequired,renderLabel:B.default.bool,isMobile:B.default.bool.isRequired,inputClassName:B.default.string.isRequired,transportMode:B.default.string,clearButtonColor:B.default.string.isRequired,autoFocus:B.default.bool,inputOnBlur:B.default.func,onValueChange:B.default.func.isRequired}),"production"!==process.env.NODE_ENV&&(Ed.propTypes={appElement:B.default.string.isRequired,id:B.default.string.isRequired,clearInput:B.default.func.isRequired,clearOldSearches:B.default.func.isRequired,onSelectedItemChange:B.default.func.isRequired,value:B.default.string.isRequired,colors:B.default.objectOf(B.default.string).isRequired,suggestionProps:B.default.shape({}).isRequired,ariaProps:B.default.shape({ariaRequiredText:B.default.string.isRequired,SearchBarId:B.default.string.isRequired,ariaCurrentSuggestion:B.default.string.isRequired}).isRequired,inputClassName:B.default.string.isRequired,placeholder:B.default.string.isRequired,mobileLabel:B.default.string.isRequired,required:B.default.bool.isRequired,showScroll:B.default.bool.isRequired,lng:B.default.string.isRequired,state:B.default.shape({suggestions:B.default.arrayOf(B.default.shape({})).isRequired,renderMobile:B.default.bool.isRequired,loading:B.default.bool.isRequired}).isRequired,dispatch:B.default.func.isRequired,pendingEnterRef:B.default.shape({current:B.default.bool}).isRequired});const Cd=(e,t)=>{switch(t.type){case"INPUT_CHANGE":return Pd(Pd({},e),{},{value:t.value});case"FETCH_SUGGESTIONS":return t.loading!==e.loading||t.suggestions?Pd(Pd({},e),{},{loading:t.loading,suggestions:t.suggestions||e.suggestions}):e;case"CLEAR_SUGGESTIONS":return Pd(Pd({},e),{},{suggestions:[]});case"RESET_SOURCES":return Pd(Pd({},e),{},{sources:t.sources});case"SET_SOURCES":return Pd(Pd({},e),{},{showOwnPlaces:t.showOwnPlaces,sources:t.sources,pendingSelection:t.pendingSelection});case"CLEAR":return Pd(Pd({},e),{},{value:"",isCleared:!0,suggestions:[]});case"INPUT_BLUR":return Pd(Pd({},e),{},{value:t.value||e.value,isCleared:!t.isMobile&&e.isCleared,pendingSelection:null,showOwnPlaces:!1});case"RESET":return t.initialState;case"TOGGLE_MENU":return t.isMobile?e.renderMobile?Pd(Pd({},e),{},{renderMobile:!1,isCleared:!1}):Pd(Pd({},e),{},{renderMobile:!0,value:e.isCleared?"":e.value}):Pd(Pd({},e),{},{isMenuOpen:!e.isMenuOpen,renderMobile:t.isMobile&&!e.renderMobile});default:return e}};function Ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ad(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ad(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Nd=[],Md={routesPrefix:"linjat",stopsPrefix:"pysakit"},Ld={},Id=["Valittu sijainti","Nykyinen sijaintisi","Current position","Selected location","Vald position","Använd min position","Min position","Käytä nykyistä sijaintia","Use current location","Your current location","Wybrane miejsce"];function Fd({appElement:e,id:t,placeholder:o,onSelect:u,icon:l,value:c="",onClear:d,lang:p="fi",getAutoSuggestIcons:h,handleViaPoints:g,focusChange:b,storeRef:y,isMobile:m=!1,mobileLabel:v,inputClassName:_="",translatedPlaceholder:w,required:S=!1,ariaLabel:O,colors:x=a.defaultColors,modeSet:j,showScroll:k=!1,isEmbedded:E=!1,transportMode:R,targets:P,sources:C=Nd,geocodingSize:A,filterResults:T,searchContext:N,pathOpts:M=Md,refPoint:L=Ld}){const[I]=r.useTranslation(),F={suggestions:[],loading:!1,sources:C,showOwnPlaces:!1,pendingSelection:null,isCleared:!1,renderMobile:!1,value:c,isMenuOpen:!1},[D,U]=n.useReducer(Cd,F);n.useEffect(()=>U({type:"RESET",initialState:F}),[c]),n.useEffect(()=>U({type:"RESET_SOURCES",sources:C}),[C]);const z=n.useRef(t),q=n.useRef(!1),B=n.useRef(0);n.useEffect(()=>{y&&y(z.current)},[z.current]);const H=n.useCallback(()=>{const e=!P?.length||P.includes("Locations"),t=(({targets:e,isLocationSearch:t,isMobile:n,ownPlaces:r,sources:o})=>{const i=!e?.length;let s=e;return r?(s=["Locations"],(i||e.includes("Stops"))&&s.push("Stops"),(i||e.includes("Stations"))&&s.push("Stations"),(i||e.includes("VehicleRentalStations"))&&s.push("VehicleRentalStations")):i||(s=[...e],!t||n||o.length&&!o.includes("Favourite")||s.push("SelectFromOwnLocations")),s})({targets:P,isLocationSearch:e,isMobile:m,ownPlaces:D.showOwnPlaces,sources:D.sources}),n=D.sources?D.sources.filter(t=>!e||"Favourite"===!t||D.showOwnPlaces||m):D.sources;B.current+=1;const r=B.current;((e,t,n,r,o,i,s,a,u,l)=>{a(null),zc(e,t,n,r,o,i,s,a,u,l)})(t,n,R,N,T,A,{input:D.value||""},e=>{if(r!==B.current)return;if(null==e)return void U({type:"FETCH_SUGGESTIONS",loading:!0});const t=(e.results||[]).filter(e=>"FutureRoute"!==e.type||"FutureRoute"===e.type&&e.properties.time>Date.now()/1e3).map(e=>{if("CurrentLocation"===e.type||"SelectFromMap"===e.type||"SelectFromOwnLocations"===e.type||"back"===e.type){const t=Td({},e);return t.properties.labelId=I(e.properties.labelId,{lng:p}),t}return e});U({type:"FETCH_SUGGESTIONS",loading:!1,suggestions:t})},M,L)},[D.value,D.sources,D.showOwnPlaces,P,R,N,T,A,m,p,M,L,t]),$=n.useCallback((e,n)=>{e&&(g?g(e,n):u(e,t),!b||m&&!E||b(),z.current&&z.current.blur())},[m]),G=e=>{const{selectedItem:t}=e;t&&("SelectFromOwnLocations"!==t.type?"back"!==t.type?$(t,e.highlightedIndex):U({type:"SET_SOURCES",sources:C,showOwnPlaces:!1,pendingSelection:null}):U({type:"SET_SOURCES",sources:["Favourite","Back"],showOwnPlaces:!0,pendingSelection:t.type}))},{isOpen:K,highlightedIndex:J,getLabelProps:Y,getMenuProps:X,getInputProps:Q,getItemProps:Z,selectItem:ee,openMenu:te,closeMenu:ne}=i.useCombobox({inputId:t,inputValue:D.value,scrollIntoView:Zc,defaultHighlightedIndex:0,onInputValueChange:({inputValue:e,type:t})=>t!==i.useCombobox.stateChangeTypes.InputChange&&U({type:"INPUT_CHANGE",value:e}),stateReducer:n.useCallback((e,{type:t,changes:n})=>{switch(t){case i.useCombobox.stateChangeTypes.ItemClick:case i.useCombobox.stateChangeTypes.InputKeyDownEnter:return D.loading?(q.current=!0,e):n.selectedItem&&("SelectFromOwnLocations"===n.selectedItem.type||"back"===n.selectedItem.type)?Td(Td({},n),{},{isOpen:!0}):n;case i.useCombobox.stateChangeTypes.InputClick:return Id.includes(c)?Td(Td({},n),{},{inputValue:"",isOpen:!0}):Td(Td({},n),{},{isOpen:!0});case i.useCombobox.stateChangeTypes.InputBlur:return n.selectedItem?Td(Td({},n),{},{selectedItem:e.selectedItem,inputValue:e.inputValue}):n;case i.useCombobox.stateChangeTypes.InputKeyDownEscape:return Td(Td({},n),{},{inputValue:""});default:return n}},[D.loading,c,m]),items:D.suggestions,itemToString:e=>e?id(e):"",onSelectedItemChange:G,onIsOpenChange:e=>{e.isOpen&&!D.renderMobile&&U({type:"TOGGLE_MENU",isMobile:m})}}),re=e=>{U({type:"CLEAR"}),d&&d(t),e.current&&e.current.focus(),te()},oe=n.useCallback(e=>U({type:"INPUT_CHANGE",value:e}),[]);n.useEffect(()=>{!K&&!D.renderMobile||D.value===c&&Id.includes(c)||H(D.value)},[K,D.renderMobile,D.value,H]),n.useEffect(()=>{q.current&&!D.loading&&(q.current=!1,$(D.suggestions[0],0),ne())},[D.loading,D.suggestions]);const ie=n.useMemo(()=>({loading:D.loading,isMobile:m,ariaFavouriteString:I("favourite",{lng:p}),getAutoSuggestIcons:h,colors:x,modeSet:j,showStopStatusMarkers:!!N.showStopStatusMarkers,stopStatusLabels:{[s.STOP_STATUS.OUT_OF_SERVICE]:I("stop-status-out-of-service",{lng:p}),[s.STOP_STATUS.NO_SERVICE_TODAY]:I("stop-status-no-service-today",{lng:p}),[s.STOP_STATUS.ALERT]:I("stop-status-alert",{lng:p}),[s.STOP_STATUS.INFO]:I("stop-status-info",{lng:p})}}),[D.loading,m,I,p,h,x,j,N.showStopStatusMarkers]),{ariaCurrentSuggestion:se,ariaRequiredText:ae,SearchBarId:ue,ariaLabelText:le}=(({id:e,ariaLabel:t,lng:n,t:r,isMobile:o,suggestions:i,value:s,required:a})=>{const u=e.replace("searchfield-",""),l=t||r(u,{lng:n}).replace("searchfield-","").concat("."),c=a?`${r("required",{lng:n})}.`:"",d=r(o?"search-autosuggest-label-instructions-mobile":"search-autosuggest-label-instructions-desktop",{lng:n}),f="origin"===e?r("search-autosuggest-label-move-to-destination",{lng:n}):"";return{SearchBarId:l,ariaRequiredText:c,ariaLabelText:d.concat(" ").concat(f),ariaSuggestionLen:r("search-autosuggest-len",{count:i.length,lng:n}),ariaCurrentSuggestion:sd({suggestions:i,t:r,lng:n})||s?r("search-current-suggestion",{lng:n,selection:sd({suggestions:i,t:r,lng:n}).toLowerCase()||s}):""}})({id:t,lng:p,t:I,isMobile:m,ariaLabel:O,suggestions:D.suggestions,value:D.value,required:S});n.useEffect(()=>{D.renderMobile||K||U({type:"RESET",initialState:F})},[D.renderMobile,K]);const ce=m||J>=D.suggestions.length;return f.jsxs(f.Fragment,{children:[m&&f.jsx(Ed,{placeholder:I(o,{lng:p}),clearOldSearches:()=>{const{clearOldSearches:e,clearFutureRoutes:t}=N;e&&(e(),t&&t(),H(D.value))},appElement:e,mobileLabel:v||I(t,{lng:p}),ariaProps:{ariaCurrentSuggestion:se,SearchBarId:ue,ariaRequiredText:ae},id:t,lng:p,onSelectedItemChange:G,value:D.value,clearInput:re,suggestionProps:ie,showScroll:!!k,colors:x,inputClassName:_,required:S,state:D,dispatch:U,pendingEnterRef:q}),f.jsxs("div",{className:V.default(Gc["autosuggest-input-container"],Gc[t],D.renderMobile&&"hidden"),style:{"--color":x.primary,"--hover-color":x.hover},children:[l&&f.jsx("div",{className:V.default(Gc["autosuggest-input-icon"],Gc[t],_&&Gc[`${_}-input-icon`]),"aria-hidden":"true",children:f.jsx(W.default,{img:`${l}`})}),f.jsx(xd,{inputClassName:_,ariaLabel:se.concat(" ").concat(ae).concat(" ").concat(ue).concat(" ").concat(I("search-autosuggest-label",{lng:p})).concat(" ").concat(le),id:t,lng:p,getInputProps:e=>Q(Td(Td({},e),ce&&{"aria-activedescendant":void 0})),getLabelProps:Y,selectItem:ee,value:D.value,clearInput:re,inputRef:z,styles:Gc,clearButtonColor:x.primary,placeholder:w||I(o,{lng:p}),required:S,transportMode:R,isMobile:m,inputOnBlur:()=>{U({isMobile:m,value:!m&&c,type:"INPUT_BLUR"}),m||U({type:"RESET",initialState:F})},onValueChange:oe}),f.jsx(_d,Td({hidden:!K||!D.suggestions.length||m,highlightedIndex:J,getItemProps:Z,getMenuProps:X,suggestions:D.suggestions,lng:p,styles:Gc},ie))]})]})}"production"!==process.env.NODE_ENV&&(Fd.propTypes={appElement:B.default.string.isRequired,icon:B.default.string,id:B.default.string.isRequired,placeholder:B.default.string.isRequired,translatedPlaceholder:B.default.string,value:B.default.string,transportMode:B.default.string,geocodingSize:B.default.number,filterResults:B.default.func,searchContext:B.default.shape({URL_PELIAS:B.default.string,context:B.default.object,clearOldSearches:B.default.func,clearFutureRoutes:B.default.func,showStopStatusMarkers:B.default.bool}).isRequired,sources:B.default.arrayOf(B.default.string),targets:B.default.arrayOf(B.default.string),ariaLabel:B.default.string,onSelect:B.default.func.isRequired,onClear:B.default.func,storeRef:B.default.func,handleViaPoints:B.default.func,focusChange:B.default.func,lang:B.default.string,isMobile:B.default.bool,pathOpts:B.default.shape({routesPrefix:B.default.string,stopsPrefix:B.default.string}),mobileLabel:B.default.string,refPoint:B.default.shape({address:B.default.string,lat:B.default.number,lon:B.default.number}),inputClassName:B.default.string,colors:B.default.objectOf(B.default.string),getAutoSuggestIcons:B.default.objectOf(B.default.func),required:B.default.bool,modeSet:B.default.string,showScroll:B.default.bool,isEmbedded:B.default.bool});e.default=e=>f.jsx(r.I18nextProvider,{i18n:qc,children:f.jsx(Fd,Td({},e))}),Object.defineProperty(e,"__esModule",{value:!0})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react"),require("react-i18next"),require("classnames"),require("downshift"),require("@digitransit-component/digitransit-component-suggestion-item"),require("@digitransit-component/digitransit-component-icon"),require("i18next"),require("luxon"),require("react-modal"),require("@digitransit-component/digitransit-component-dialog-modal"),require("react/jsx-runtime")):"function"==typeof define&&define.amd?define(["exports","prop-types","react","react-i18next","classnames","downshift","@digitransit-component/digitransit-component-suggestion-item","@digitransit-component/digitransit-component-icon","i18next","luxon","react-modal","@digitransit-component/digitransit-component-dialog-modal","react/jsx-runtime"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).DTAutosuggest={},e.PropTypes,e.React,e.reactI18next,e.cx,e.downshift,e.SuggestionItem,e.Icon,e.i18next,e.luxon,e.ReactModal,e.DialogModal,e.jsxRuntime)}(this,function(e,t,n,r,o,i,s,a,u,l,c,d,f){"use strict";function p(e){return e&&e.__esModule?e:{default:e}}var h,g,b,y,m,v,_,w,S,O,x,j,k,E,R,P,C,A,T,N,M,L,I,F,D,U,z,B,q=p(t),H=p(n),V=p(o),$=p(s),W=p(a),G=p(c),K=p(d);function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function Y(e){var t=function(e,t){if("object"!=J(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=J(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==J(t)?t:t+""}function X(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z(){if(g)return h;return g=1,h=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function ee(){if(y)return b;y=1;var e="object"==typeof global&&global&&global.Object===Object&&global;return b=e}function te(){if(v)return m;v=1;var e=ee(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return m=n}function ne(){if(j)return x;j=1;var e=function(){if(O)return S;O=1;var e=/\s/;return S=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n},S}(),t=/^\s+/;return x=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}function re(){if(E)return k;E=1;var e=te().Symbol;return k=e}function oe(){if(N)return T;N=1;var e=re(),t=function(){if(P)return R;P=1;var e=re(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;return R=function(e){var t=n.call(e,o),i=e[o];try{e[o]=void 0;var s=!0}catch(e){}var a=r.call(e);return s&&(t?e[o]=i:delete e[o]),a}}(),n=function(){if(A)return C;A=1;var e=Object.prototype.toString;return C=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return T=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function ie(){if(L)return M;return L=1,M=function(e){return null!=e&&"object"==typeof e}}function se(){if(F)return I;F=1;var e=oe(),t=ie();return I=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function ae(){if(U)return D;U=1;var e=ne(),t=Z(),n=se(),r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;return D=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(t(a)){var u="function"==typeof a.valueOf?a.valueOf():a;a=t(u)?u+"":u}if("string"!=typeof a)return 0===a?a:+a;a=e(a);var l=o.test(a);return l||i.test(a)?s(a.slice(2),l?2:8):r.test(a)?NaN:+a}}var ue,le,ce,de,fe,pe,he,ge,be,ye,me,ve,_e,we,Se=function(){if(B)return z;B=1;var e=Z(),t=function(){if(w)return _;w=1;var e=te();return _=function(){return e.Date.now()}}(),n=ae(),r=Math.max,o=Math.min;return z=function(i,s,a){var u,l,c,d,f,p,h=0,g=!1,b=!1,y=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function m(e){var t=u,n=l;return u=l=void 0,h=e,d=i.apply(n,t)}function v(e){var t=e-p;return void 0===p||t>=s||t<0||b&&e-h>=c}function _(){var e=t();if(v(e))return w(e);f=setTimeout(_,function(e){var t=s-(e-p);return b?o(t,c-(e-h)):t}(e))}function w(e){return f=void 0,y&&u?m(e):(u=l=void 0,d)}function S(){var e=t(),n=v(e);if(u=arguments,l=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(_,s),g?m(e):d}(p);if(b)return clearTimeout(f),f=setTimeout(_,s),m(p)}return void 0===f&&(f=setTimeout(_,s)),d}return s=n(s)||0,e(a)&&(g=!!a.leading,c=(b="maxWait"in a)?r(n(a.maxWait)||0,s):c,y="trailing"in a?!!a.trailing:y),S.cancel=function(){void 0!==f&&clearTimeout(f),h=0,u=p=l=f=void 0},S.flush=function(){return void 0===f?d:w(t())},S},z}(),Oe=Q(Se);function xe(){if(le)return ue;return le=1,ue=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},ue}function je(){if(pe)return fe;pe=1;var e=function(){if(de)return ce;de=1;var e=oe(),t=ie();return ce=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=ie(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!o.call(e,"callee")};return fe=i}function ke(){if(ge)return he;ge=1;var e=Array.isArray;return he=e}function Ee(){if(ve)return me;ve=1;var e=xe(),t=function(){if(ye)return be;ye=1;var e=re(),t=je(),n=ke(),r=e?e.isConcatSpreadable:void 0;return be=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}();return me=function n(r,o,i,s,a){var u=-1,l=r.length;for(i||(i=t),a||(a=[]);++u<l;){var c=r[u];o>0&&i(c)?o>1?n(c,o-1,i,s,a):e(a,c):s||(a[a.length]=c)}return a},me}var Re,Pe,Ce,Ae,Te,Ne,Me,Le,Ie=Q(function(){if(we)return _e;we=1;var e=Ee();return _e=function(t){return(null==t?0:t.length)?e(t,1):[]}}());function Fe(){if(Ne)return Te;Ne=1;var e=function(){if(Ae)return Ce;Ae=1;var e=ae(),t=1/0;return Ce=function(n){return n?(n=e(n))===t||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}();return Te=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}var De,Ue,ze=function(){if(Le)return Me;Le=1;var e=(Pe||(Pe=1,Re=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}),Re),t=Fe();return Me=function(n,r,o){return n&&n.length?(r=o||void 0===r?1:t(r),e(n,0,r<0?0:r)):[]}}(),Be=Q(ze);var qe,He,Ve,$e,We,Ge,Ke,Je,Ye,Xe,Qe,Ze,et,tt,nt,rt,ot,it,st,at,ut,lt,ct,dt,ft,pt,ht,gt,bt,yt,mt,vt,_t,wt,St,Ot,xt,jt,kt,Et,Rt,Pt,Ct,At,Tt,Nt,Mt,Lt,It,Ft,Dt,Ut,zt,Bt,qt,Ht,Vt,$t,Wt,Gt,Kt,Jt,Yt,Xt,Qt,Zt,en,tn,nn,rn,on,sn,an,un,ln,cn,dn,fn,pn,hn,gn,bn,yn,mn,vn,_n,wn,Sn,On,xn,jn,kn,En,Rn,Pn,Cn,An,Tn,Nn,Mn,Ln,In,Fn,Dn,Un,zn,Bn,qn,Hn,Vn,$n,Wn,Gn,Kn,Jn,Yn,Xn,Qn,Zn,er,tr,nr,rr,or,ir=function(){if(Ue)return De;Ue=1;var e=oe(),t=ke(),n=ie();return De=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}(),sr=Q(ir);function ar(){if(He)return qe;return He=1,qe=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},qe}function ur(){if($e)return Ve;$e=1;var e=ke(),t=se(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Ve=function(o,i){if(e(o))return!1;var s=typeof o;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=o&&!t(o))||(r.test(o)||!n.test(o)||null!=i&&o in Object(i))}}function lr(){if(Ge)return We;Ge=1;var e=oe(),t=Z();return We=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function cr(){if(Xe)return Ye;Xe=1;var e,t=function(){if(Je)return Ke;Je=1;var e=te()["__core-js_shared__"];return Ke=e}(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return Ye=function(e){return!!n&&n in e}}function dr(){if(Ze)return Qe;Ze=1;var e=Function.prototype.toString;return Qe=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function fr(){if(it)return ot;it=1;var e=function(){if(tt)return et;tt=1;var e=lr(),t=cr(),n=Z(),r=dr(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,s=Object.prototype,a=i.toString,u=s.hasOwnProperty,l=RegExp("^"+a.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return et=function(i){return!(!n(i)||t(i))&&(e(i)?l:o).test(r(i))}}(),t=rt?nt:(rt=1,nt=function(e,t){return null==e?void 0:e[t]});return ot=function(n,r){var o=t(n,r);return e(o)?o:void 0}}function pr(){if(at)return st;at=1;var e=fr()(Object,"create");return st=e}function hr(){if(vt)return mt;vt=1;var e=function(){if(lt)return ut;lt=1;var e=pr();return ut=function(){this.__data__=e?e(null):{},this.size=0}}(),t=dt?ct:(dt=1,ct=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(pt)return ft;pt=1;var e=pr(),t=Object.prototype.hasOwnProperty;return ft=function(n){var r=this.__data__;if(e){var o=r[n];return"__lodash_hash_undefined__"===o?void 0:o}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(gt)return ht;gt=1;var e=pr(),t=Object.prototype.hasOwnProperty;return ht=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),o=function(){if(yt)return bt;yt=1;var e=pr();return bt=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,mt=i}function gr(){if(Ot)return St;return Ot=1,St=function(e,t){return e===t||e!=e&&t!=t}}function br(){if(jt)return xt;jt=1;var e=gr();return xt=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function yr(){if(Lt)return Mt;Lt=1;var e=wt?_t:(wt=1,_t=function(){this.__data__=[],this.size=0}),t=function(){if(Et)return kt;Et=1;var e=br(),t=Array.prototype.splice;return kt=function(n){var r=this.__data__,o=e(r,n);return!(o<0||(o==r.length-1?r.pop():t.call(r,o,1),--this.size,0))},kt}(),n=function(){if(Pt)return Rt;Pt=1;var e=br();return Rt=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]},Rt}(),r=function(){if(At)return Ct;At=1;var e=br();return Ct=function(t){return e(this.__data__,t)>-1}}(),o=function(){if(Nt)return Tt;Nt=1;var e=br();return Tt=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this},Tt}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Mt=i}function mr(){if(Ft)return It;Ft=1;var e=fr()(te(),"Map");return It=e}function vr(){if(Ht)return qt;Ht=1;var e=Bt?zt:(Bt=1,zt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return qt=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function _r(){if(Zt)return Qt;Zt=1;var e=function(){if(Ut)return Dt;Ut=1;var e=hr(),t=yr(),n=mr();return Dt=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if($t)return Vt;$t=1;var e=vr();return Vt=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(Gt)return Wt;Gt=1;var e=vr();return Wt=function(t){return e(this,t).get(t)}}(),r=function(){if(Jt)return Kt;Jt=1;var e=vr();return Kt=function(t){return e(this,t).has(t)}}(),o=function(){if(Xt)return Yt;Xt=1;var e=vr();return Yt=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=r.size==o?0:1,this}}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Qt=i}function wr(){if(rn)return nn;rn=1;var e=function(){if(tn)return en;tn=1;var e=_r();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],i=o.cache;if(i.has(t))return i.get(t);var s=n.apply(this,e);return o.cache=i.set(t,s)||i,s};return o.cache=new(t.Cache||e),o}return t.Cache=e,en=t}();return nn=function(t){var n=e(t,function(e){return 500===r.size&&r.clear(),e}),r=n.cache;return n}}function Sr(){if(cn)return ln;cn=1;var e=function(){if(un)return an;un=1;var e=re(),t=ar(),n=ke(),r=se(),o=e?e.prototype:void 0,i=o?o.toString:void 0;return an=function e(o){if("string"==typeof o)return o;if(n(o))return t(o,e)+"";if(r(o))return i?i.call(o):"";var s=o+"";return"0"==s&&1/o==-1/0?"-0":s},an}();return ln=function(t){return null==t?"":e(t)}}function Or(){if(fn)return dn;fn=1;var e=ke(),t=ur(),n=function(){if(sn)return on;sn=1;var e=wr(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,function(e,t,o,i){r.push(o?i.replace(n,"$1"):t||e)}),r});return on=r}(),r=Sr();return dn=function(o,i){return e(o)?o:t(o,i)?[o]:n(r(o))}}function xr(){if(hn)return pn;hn=1;var e=se();return pn=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}function jr(){if(bn)return gn;bn=1;var e=Or(),t=xr();return gn=function(n,r){for(var o=0,i=(r=e(r,n)).length;null!=n&&o<i;)n=n[t(r[o++])];return o&&o==i?n:void 0},gn}function kr(){if(Rn)return En;Rn=1;var e=yr(),t=function(){if(mn)return yn;mn=1;var e=yr();return yn=function(){this.__data__=new e,this.size=0}}(),n=_n?vn:(_n=1,vn=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=Sn?wn:(Sn=1,wn=function(e){return this.__data__.get(e)}),o=xn?On:(xn=1,On=function(e){return this.__data__.has(e)}),i=function(){if(kn)return jn;kn=1;var e=yr(),t=mr(),n=_r();return jn=function(r,o){var i=this.__data__;if(i instanceof e){var s=i.__data__;if(!t||s.length<199)return s.push([r,o]),this.size=++i.size,this;i=this.__data__=new n(s)}return i.set(r,o),this.size=i.size,this}}();function s(t){var n=this.__data__=new e(t);this.size=n.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=o,s.prototype.set=i,En=s}function Er(){if(Mn)return Nn;Mn=1;var e=_r(),t=Cn?Pn:(Cn=1,Pn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=Tn?An:(Tn=1,An=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Nn=r}function Rr(){if(Dn)return Fn;return Dn=1,Fn=function(e,t){return e.has(t)}}function Pr(){if(zn)return Un;zn=1;var e=Er(),t=(In||(In=1,Ln=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),Ln),n=Rr();return Un=function(r,o,i,s,a,u){var l=1&i,c=r.length,d=o.length;if(c!=d&&!(l&&d>c))return!1;var f=u.get(r),p=u.get(o);if(f&&p)return f==o&&p==r;var h=-1,g=!0,b=2&i?new e:void 0;for(u.set(r,o),u.set(o,r);++h<c;){var y=r[h],m=o[h];if(s)var v=l?s(m,y,h,o,r,u):s(y,m,h,r,o,u);if(void 0!==v){if(v)continue;g=!1;break}if(b){if(!t(o,function(e,t){if(!n(b,t)&&(y===e||a(y,e,i,s,u)))return b.push(t)})){g=!1;break}}else if(y!==m&&!a(y,m,i,s,u)){g=!1;break}}return u.delete(r),u.delete(o),g},Un}function Cr(){if(Wn)return $n;return Wn=1,$n=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},$n}function Ar(){if(Kn)return Gn;Kn=1;var e=re(),t=function(){if(qn)return Bn;qn=1;var e=te().Uint8Array;return Bn=e}(),n=gr(),r=Pr(),o=(Vn||(Vn=1,Hn=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}),Hn),i=Cr(),s=e?e.prototype:void 0,a=s?s.valueOf:void 0;return Gn=function(e,s,u,l,c,d,f){switch(u){case"[object DataView]":if(e.byteLength!=s.byteLength||e.byteOffset!=s.byteOffset)return!1;e=e.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=s.byteLength||!d(new t(e),new t(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+s);case"[object Error]":return e.name==s.name&&e.message==s.message;case"[object RegExp]":case"[object String]":return e==s+"";case"[object Map]":var p=o;case"[object Set]":var h=1&l;if(p||(p=i),e.size!=s.size&&!h)return!1;var g=f.get(e);if(g)return g==s;l|=2,f.set(e,s);var b=r(p(e),p(s),l,c,d,f);return f.delete(e),b;case"[object Symbol]":if(a)return a.call(e)==a.call(s)}return!1}}function Tr(){if(nr)return tr;nr=1;var e=(Qn||(Qn=1,Xn=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}),Xn),t=er?Zn:(er=1,Zn=function(){return[]}),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return tr=r?function(t){return null==t?[]:(t=Object(t),e(r(t),function(e){return n.call(t,e)}))}:t}var Nr,Mr,Lr,Ir,Fr,Dr,Ur,zr,Br,qr,Hr,Vr={exports:{}};function $r(){return Lr||(Lr=1,function(e,t){var n=te(),r=Mr?Nr:(Mr=1,Nr=function(){return!1}),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||r;e.exports=a}(Vr,Vr.exports)),Vr.exports}function Wr(){if(Fr)return Ir;Fr=1;var e=/^(?:0|[1-9]\d*)$/;return Ir=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function Gr(){if(Ur)return Dr;Ur=1;return Dr=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function Kr(){if(Hr)return qr;return Hr=1,qr=function(e){return function(t){return e(t)}}}var Jr,Yr,Xr,Qr,Zr,eo,to,no,ro,oo,io,so,ao,uo,lo,co,fo,po,ho,go,bo,yo,mo,vo,_o,wo,So,Oo,xo,jo,ko,Eo,Ro,Po,Co,Ao,To,No,Mo,Lo,Io,Fo,Do,Uo,zo,Bo,qo,Ho,Vo,$o,Wo,Go,Ko,Jo,Yo,Xo,Qo,Zo,ei,ti,ni,ri,oi,ii,si,ai,ui,li,ci,di,fi,pi,hi,gi,bi,yi,mi,vi,_i,wi,Si,Oi,xi,ji,ki,Ei,Ri,Pi={exports:{}};function Ci(){if(Xr)return Yr;Xr=1;var e=function(){if(Br)return zr;Br=1;var e=oe(),t=Gr(),n=ie(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,zr=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}(),t=Kr(),n=(Jr||(Jr=1,function(e,t){var n=ee(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,s=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}(Pi,Pi.exports)),Pi.exports),r=n&&n.isTypedArray,o=r?t(r):e;return Yr=o}function Ai(){if(Zr)return Qr;Zr=1;var e=(or||(or=1,rr=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),rr),t=je(),n=ke(),r=$r(),o=Wr(),i=Ci(),s=Object.prototype.hasOwnProperty;return Qr=function(a,u){var l=n(a),c=!l&&t(a),d=!l&&!c&&r(a),f=!l&&!c&&!d&&i(a),p=l||c||d||f,h=p?e(a.length,String):[],g=h.length;for(var b in a)!u&&!s.call(a,b)||p&&("length"==b||d&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||o(b,g))||h.push(b);return h}}function Ti(){if(io)return oo;io=1;var e=(ro?no:(ro=1,no=function(e,t){return function(n){return e(t(n))}}))(Object.keys,Object);return oo=e}function Ni(){if(ao)return so;ao=1;var e=function(){if(to)return eo;to=1;var e=Object.prototype;return eo=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}(),t=Ti(),n=Object.prototype.hasOwnProperty;return so=function(r){if(!e(r))return t(r);var o=[];for(var i in Object(r))n.call(r,i)&&"constructor"!=i&&o.push(i);return o}}function Mi(){if(lo)return uo;lo=1;var e=lr(),t=Gr();return uo=function(n){return null!=n&&t(n.length)&&!e(n)}}function Li(){if(fo)return co;fo=1;var e=Ai(),t=Ni(),n=Mi();return co=function(r){return n(r)?e(r):t(r)}}function Ii(){if(ho)return po;ho=1;var e=function(){if(Yn)return Jn;Yn=1;var e=xe(),t=ke();return Jn=function(n,r,o){var i=r(n);return t(n)?i:e(i,o(n))}}(),t=Tr(),n=Li();return po=function(r){return e(r,n,t)}}function Fi(){if(So)return wo;So=1;var e=fr()(te(),"Set");return wo=e}function Di(){if(ko)return jo;ko=1;var e=function(){if(mo)return yo;mo=1;var e=fr()(te(),"DataView");return yo=e}(),t=mr(),n=function(){if(_o)return vo;_o=1;var e=fr()(te(),"Promise");return vo=e}(),r=Fi(),o=function(){if(xo)return Oo;xo=1;var e=fr()(te(),"WeakMap");return Oo=e}(),i=oe(),s=dr(),a="[object Map]",u="[object Promise]",l="[object Set]",c="[object WeakMap]",d="[object DataView]",f=s(e),p=s(t),h=s(n),g=s(r),b=s(o),y=i;return(e&&y(new e(new ArrayBuffer(1)))!=d||t&&y(new t)!=a||n&&y(n.resolve())!=u||r&&y(new r)!=l||o&&y(new o)!=c)&&(y=function(e){var t=i(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case f:return d;case p:return a;case h:return u;case g:return l;case b:return c}return t}),jo=y}function Ui(){if(Ro)return Eo;Ro=1;var e=kr(),t=Pr(),n=Ar(),r=function(){if(bo)return go;bo=1;var e=Ii(),t=Object.prototype.hasOwnProperty;return go=function(n,r,o,i,s,a){var u=1&o,l=e(n),c=l.length;if(c!=e(r).length&&!u)return!1;for(var d=c;d--;){var f=l[d];if(!(u?f in r:t.call(r,f)))return!1}var p=a.get(n),h=a.get(r);if(p&&h)return p==r&&h==n;var g=!0;a.set(n,r),a.set(r,n);for(var b=u;++d<c;){var y=n[f=l[d]],m=r[f];if(i)var v=u?i(m,y,f,r,n,a):i(y,m,f,n,r,a);if(!(void 0===v?y===m||s(y,m,o,i,a):v)){g=!1;break}b||(b="constructor"==f)}if(g&&!b){var _=n.constructor,w=r.constructor;_==w||!("constructor"in n)||!("constructor"in r)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(n),a.delete(r),g},go}(),o=Di(),i=ke(),s=$r(),a=Ci(),u="[object Arguments]",l="[object Array]",c="[object Object]",d=Object.prototype.hasOwnProperty;return Eo=function(f,p,h,g,b,y){var m=i(f),v=i(p),_=m?l:o(f),w=v?l:o(p),S=(_=_==u?c:_)==c,O=(w=w==u?c:w)==c,x=_==w;if(x&&s(f)){if(!s(p))return!1;m=!0,S=!1}if(x&&!S)return y||(y=new e),m||a(f)?t(f,p,h,g,b,y):n(f,p,_,h,g,b,y);if(!(1&h)){var j=S&&d.call(f,"__wrapped__"),k=O&&d.call(p,"__wrapped__");if(j||k){var E=j?f.value():f,R=k?p.value():p;return y||(y=new e),b(E,R,h,g,y)}}return!!x&&(y||(y=new e),r(f,p,h,g,b,y))}}function zi(){if(Co)return Po;Co=1;var e=Ui(),t=ie();return Po=function n(r,o,i,s,a){return r===o||(null==r||null==o||!t(r)&&!t(o)?r!=r&&o!=o:e(r,o,i,s,n,a))},Po}function Bi(){if(Mo)return No;Mo=1;var e=Z();return No=function(t){return t==t&&!e(t)}}function qi(){if(Do)return Fo;return Do=1,Fo=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function Hi(){if(zo)return Uo;zo=1;var e=function(){if(To)return Ao;To=1;var e=kr(),t=zi();return Ao=function(n,r,o,i){var s=o.length,a=s,u=!i;if(null==n)return!a;for(n=Object(n);s--;){var l=o[s];if(u&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++s<a;){var c=(l=o[s])[0],d=n[c],f=l[1];if(u&&l[2]){if(void 0===d&&!(c in n))return!1}else{var p=new e;if(i)var h=i(d,f,c,n,r,p);if(!(void 0===h?t(f,d,3,i,p):h))return!1}}return!0},Ao}(),t=function(){if(Io)return Lo;Io=1;var e=Bi(),t=Li();return Lo=function(n){for(var r=t(n),o=r.length;o--;){var i=r[o],s=n[i];r[o]=[i,s,e(s)]}return r}}(),n=qi();return Uo=function(r){var o=t(r);return 1==o.length&&o[0][2]?n(o[0][0],o[0][1]):function(t){return t===r||e(t,r,o)}}}function Vi(){if(qo)return Bo;qo=1;var e=jr();return Bo=function(t,n,r){var o=null==t?void 0:e(t,n);return void 0===o?r:o}}function $i(){if(Ko)return Go;Ko=1;var e=Vo?Ho:(Vo=1,Ho=function(e,t){return null!=e&&t in Object(e)}),t=function(){if(Wo)return $o;Wo=1;var e=Or(),t=je(),n=ke(),r=Wr(),o=Gr(),i=xr();return $o=function(s,a,u){for(var l=-1,c=(a=e(a,s)).length,d=!1;++l<c;){var f=i(a[l]);if(!(d=null!=s&&u(s,f)))break;s=s[f]}return d||++l!=c?d:!!(c=null==s?0:s.length)&&o(c)&&r(f,c)&&(n(s)||t(s))},$o}();return Go=function(n,r){return null!=n&&t(n,r,e)}}function Wi(){if(Qo)return Xo;return Qo=1,Xo=function(e){return e}}function Gi(){if(oi)return ri;oi=1;var e=ei?Zo:(ei=1,Zo=function(e){return function(t){return null==t?void 0:t[e]}}),t=function(){if(ni)return ti;ni=1;var e=jr();return ti=function(t){return function(n){return e(n,t)}}}(),n=ur(),r=xr();return ri=function(o){return n(o)?e(r(o)):t(o)}}function Ki(){if(si)return ii;si=1;var e=Hi(),t=function(){if(Yo)return Jo;Yo=1;var e=zi(),t=Vi(),n=$i(),r=ur(),o=Bi(),i=qi(),s=xr();return Jo=function(a,u){return r(a)&&o(u)?i(s(a),u):function(r){var o=t(r,a);return void 0===o&&o===u?n(r,a):e(u,o,3)}}}(),n=Wi(),r=ke(),o=Gi();return ii=function(i){return"function"==typeof i?i:null==i?n:"object"==typeof i?r(i)?t(i[0],i[1]):e(i):o(i)}}function Ji(){if(ci)return li;ci=1;var e=(ui||(ui=1,ai=function(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var u=s[e?a:++o];if(!1===n(i[u],u,i))break}return t}}),ai),t=e();return li=t}function Yi(){if(bi)return gi;bi=1;var e=function(){if(fi)return di;fi=1;var e=Ji(),t=Li();return di=function(n,r){return n&&e(n,r,t)}}(),t=function(){if(hi)return pi;hi=1;var e=Mi();return pi=function(t,n){return function(r,o){if(null==r)return r;if(!e(r))return t(r,o);for(var i=r.length,s=n?i:-1,a=Object(r);(n?s--:++s<i)&&!1!==o(a[s],s,a););return r}},pi}(),n=t(e);return gi=n}function Xi(){if(xi)return Oi;xi=1;var e=function(){if(Si)return wi;Si=1;var e=se();return wi=function(t,n){if(t!==n){var r=void 0!==t,o=null===t,i=t==t,s=e(t),a=void 0!==n,u=null===n,l=n==n,c=e(n);if(!u&&!c&&!s&&t>n||s&&a&&l&&!u&&!c||o&&a&&l||!r&&l||!i)return 1;if(!o&&!s&&!c&&t<n||c&&r&&i&&!o&&!s||u&&r&&i||!a&&i||!l)return-1}return 0}}();return Oi=function(t,n,r){for(var o=-1,i=t.criteria,s=n.criteria,a=i.length,u=r.length;++o<a;){var l=e(i[o],s[o]);if(l)return o>=u?l:l*("desc"==r[o]?-1:1)}return t.index-n.index},Oi}function Qi(){if(ki)return ji;ki=1;var e=ar(),t=jr(),n=Ki(),r=function(){if(mi)return yi;mi=1;var e=Yi(),t=Mi();return yi=function(n,r){var o=-1,i=t(n)?Array(n.length):[];return e(n,function(e,t,n){i[++o]=r(e,t,n)}),i},yi}(),o=_i?vi:(_i=1,vi=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}),i=Kr(),s=Xi(),a=Wi(),u=ke();return ji=function(l,c,d){c=c.length?e(c,function(e){return u(e)?function(n){return t(n,1===e.length?e[0]:e)}:e}):[a];var f=-1;c=e(c,i(n));var p=r(l,function(t,n,r){return{criteria:e(c,function(e){return e(t)}),index:++f,value:t}});return o(p,function(e,t){return s(e,t,d)})},ji}var Zi,es,ts,ns,rs,os,is,ss,as,us,ls,cs,ds,fs,ps,hs,gs,bs,ys,ms,vs=function(){if(Ri)return Ei;Ri=1;var e=Qi(),t=ke();return Ei=function(n,r,o,i){return null==n?[]:(t(r)||(r=null==r?[]:[r]),t(o=i?void 0:o)||(o=null==o?[]:[o]),e(n,r,o))}}(),_s=Q(vs);function ws(){if(ss)return is;ss=1;var e=(es||(es=1,Zi=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}),Zi),t=ns?ts:(ns=1,ts=function(e){return e!=e}),n=(os||(os=1,rs=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}),rs);return is=function(r,o,i){return o==o?n(r,o,i):e(r,t,i)}}function Ss(){if(hs)return ps;hs=1;var e=Fi(),t=fs?ds:(fs=1,ds=function(){}),n=Cr(),r=e&&1/n(new e([,-0]))[1]==1/0?function(t){return new e(t)}:t;return ps=r}function Os(){if(bs)return gs;bs=1;var e=Er(),t=function(){if(us)return as;us=1;var e=ws();return as=function(t,n){return!(null==t||!t.length)&&e(t,n,0)>-1}}(),n=(cs||(cs=1,ls=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}),ls),r=Rr(),o=Ss(),i=Cr();return gs=function(s,a,u){var l=-1,c=t,d=s.length,f=!0,p=[],h=p;if(u)f=!1,c=n;else if(d>=200){var g=a?null:o(s);if(g)return i(g);f=!1,c=r,h=new e}else h=a?[]:p;e:for(;++l<d;){var b=s[l],y=a?a(b):b;if(b=u||0!==b?b:0,f&&y==y){for(var m=h.length;m--;)if(h[m]===y)continue e;a&&h.push(y),p.push(b)}else c(h,y,u)||(h!==p&&h.push(y),p.push(b))}return p},gs}var xs=Q(function(){if(ms)return ys;ms=1;var e=Os();return ys=function(t,n){return n="function"==typeof n?n:void 0,t&&t.length?e(t,void 0,n):[]}}());function js(e,t){return e&&t&&e===t}const ks=["stop","station","favouriteStop","favouriteStation"],Es=["favouriteVehicleRentalStation","bikestation"];function Rs(e){if(!e)return"";const t=e.split(":");return 0===t.length?"":`citybikes${t[0]}:bikestation:${t[1]}`}function Ps(e,t){const n=e.properties,r=t.properties;if("FutureRoute"===e.type&&"FutureRoute"===t.type){const e=n.origin,t=n.destination,o=r.origin,i=r.destination;return`${e.name}//${e.localadmin}//${t.name}//${t.localadmin}`===`${o.name}//${o.localadmin}//${i.name}//${i.localadmin}`}if("FutureRoute"===e.type||"FutureRoute"===t.type)return!1;if(Es.includes(n.layer)&&Es.includes(r.layer)){return(n.gid||Rs(n.labelId))===(r.gid||Rs(r.labelId))}if(n.gtfsId&&r.gtfsId)return n.gtfsId===r.gtfsId;if(ks.includes(n.layer)&&ks.includes(r.layer)&&n.gid&&r.gid)return n.gid===r.gid;const o=e&&e.geometry?e.geometry.coordinates:void 0,i=t&&t.geometry?t.geometry.coordinates:void 0;return!!(o&&i&&Math.abs(o[0]-i[0])<1e-6&&Math.abs(o[1]-i[1])<1e-6&&(js(n.name,r.name)||js(n.label,r.label)||js(n.address,r.address)||js(n.address,r.label)||js(n.label,r.address)))}const Cs=e=>sr(e)?e.toLowerCase():"",As=e=>e.split(/(\p{L}+)/u),Ts=e=>/^[0-9]+\p{L}+$/u.test(e),Ns="back",Ms="currentPosition",Ls="favouriteStop",Is="favouriteStation",Fs="favouritePlace",Ds="favouriteRoute",Us="favouriteVehicleRentalStation",zs="futureRoute",Bs="station",qs="selectFromMap",Hs="ownLocations",Vs="stop",$s="bikestation",Ws="carpark",Gs="bikepark",Ks=({layer:e,type:t})=>"stop"===e||"favouriteStop"===e||"stop"===t||"favouriteStop"===t,Js=(e,t)=>{switch(e){case Ms:return 1;case Ns:return.9;case qs:return.8;case Hs:return.79;case Is:case Fs:case Ls:case Ds:case Us:return.45;case zs:return.44;case Bs:return sr(t)&&0===t.indexOf("gtfs")?.43:.42;case Ws:case Gs:case $s:return.38;case Vs:return.36;default:return.41}},Ys=(e,t,n="")=>{if(!Array.isArray(t)||!t.length)return t;const r=t=>sr(t)&&e&&e.test(t),o=Cs(n),i=r(o),s=_s(t.filter(e=>e),[e=>i&&r(Cs(e.properties.shortName))&&0===Cs(e.properties.shortName).indexOf(o)?1:0,e=>{const{confidence:t,layer:n,source:r}=e.properties;if(0===o.length)return Js(n,r);if(!t)return Js(n,r)+((e,t)=>sr(e)&&0!==e.length?["name","label","address","shortName"].map(e=>({name:e,value:t[e]})).filter(e=>sr(e.value)&&e.value.length>0).map(t=>{let n=Cs(t.value);return 0===n.indexOf(e)?("shortName"===t.name&&Ts(n)&&([n]=As(n)),.5+e.length/n.length):.5*e.length/(e.length+1)}).reduce((e,t)=>t>e?t:e,0):0)(o,e.properties);switch(n){case Bs:return t+(0===r.indexOf("gtfs")?.02:.01);case Vs:case Ws:case Gs:return t-.05;case $s:return t-.04;default:return t}},e=>{if(e.properties.shortName)return Ts(e.properties.shortName)?As(e.properties.shortName)[0]:e.properties.shortName},e=>{if(e.properties.shortName)return Ts(e.properties.shortName)?As(e.properties.shortName)[1]:e.properties.shortName},"properties.longName"],["desc","desc","asc","asc","asc"]);return xs(s,Ps)},Xs=(e,t)=>null!=t&&-1!==e.lastIndexOf(t)?e.substring(0,e.lastIndexOf(t)-1):e;var Qs=Q(Vi());function Zs(e,t,n){if("string"==typeof t&&t.length>0){const r=t.toLowerCase().trim(),o=r.includes(" ")||r.includes(",");return e.filter(e=>{let t=[];n.forEach(n=>{let r=Qs(e,n);o||"properties.label"!==n&&"address"!==n||!r||(r=r.split(","),r.length>2?r.splice(r.length-2,2):r.length>1&&r.splice(r.length-1,1),r=r.join(",")),r&&(t=o?t.concat(r.toLowerCase()):t.concat(r.toLowerCase().replace(/,/g," ").split(" ")))});for(let e=0;e<t.length;e++)if(0===t[e].indexOf(r))return!0;return!1})}return e}function ea(e,t){return function(){return e.apply(t,arguments)}}const{toString:ta}=Object.prototype,{getPrototypeOf:na}=Object,{iterator:ra,toStringTag:oa}=Symbol,ia=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sa=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),aa=(e,t,n)=>e===Object.prototype||!n&&null===t,ua=(e,t)=>{let n=e;const r=[];for(;null!=n;){if(-1!==r.indexOf(n))return!1;r.push(n);const o=na(n);if(aa(n,o,n===e))return!1;if(ia(n,t))return!0;n=o}return!1},la=(ca=Object.create(null),e=>{const t=ta.call(e);return ca[t]||(ca[t]=t.slice(8,-1).toLowerCase())});var ca;const da=e=>(e=e.toLowerCase(),t=>la(t)===e),fa=e=>t=>typeof t===e,{isArray:pa}=Array,ha=fa("undefined");function ga(e){return null!==e&&!ha(e)&&null!==e.constructor&&!ha(e.constructor)&&ma(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ba=da("ArrayBuffer");const ya=fa("string"),ma=fa("function"),va=fa("number"),_a=e=>null!==e&&"object"==typeof e,wa=e=>{if(!_a(e))return!1;const t=na(e);return(null===t||t===Object.prototype||null===na(t))&&(aa(e,t,!0)||!ia(e,oa)&&!ia(e,ra))},Sa=da("Date"),Oa=da("File"),xa=da("Blob"),ja=da("FileList"),ka=da("Set");const Ea="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Ra=void 0!==Ea.FormData?Ea.FormData:void 0,Pa=da("URLSearchParams"),[Ca,Aa,Ta,Na]=["ReadableStream","Request","Response","Headers"].map(da);function Ma(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),pa(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ga(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}const La="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ia=e=>!ha(e)&&e!==La;const Fa=(Da="undefined"!=typeof Uint8Array&&na(Uint8Array),e=>Da&&e instanceof Da);var Da;const Ua=da("HTMLFormElement"),{propertyIsEnumerable:za}=Object.prototype,Ba=da("RegExp"),qa=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ma(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const Ha=da("AsyncFunction"),Va=($a="function"==typeof setImmediate,Wa=ma(La.postMessage),$a?setImmediate:Wa?(Ga=`axios@${Math.random()}`,Ka=[],La.addEventListener("message",({source:e,data:t})=>{e===La&&t===Ga&&Ka.length&&Ka.shift()()},!1),e=>{Ka.push(e),La.postMessage(Ga,"*")}):e=>setTimeout(e));var $a,Wa,Ga,Ka;const Ja="undefined"!=typeof queueMicrotask?queueMicrotask.bind(La):"undefined"!=typeof process&&process.nextTick||Va,Ya=e=>null!=e&&ma(e[ra]);var Xa={isArray:pa,isArrayBuffer:ba,isBuffer:ga,isFormData:e=>{if(!e)return!1;if(Ra&&e instanceof Ra)return!0;const t=na(e);if(!t||t===Object.prototype)return!1;if(!ma(e.append))return!1;const n=la(e);return"formdata"===n||"object"===n&&ma(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ba(e.buffer),t},isString:ya,isNumber:va,isBoolean:e=>!0===e||!1===e,isObject:_a,isPlainObject:wa,isEmptyObject:e=>{if(!_a(e)||ga(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Ca,isRequest:Aa,isResponse:Ta,isHeaders:Na,isUndefined:ha,isDate:Sa,isFile:Oa,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:xa,isRegExp:Ba,isFunction:ma,isStream:e=>_a(e)&&ma(e.pipe),isURLSearchParams:Pa,isTypedArray:Fa,isFileList:ja,forEach:Ma,merge:function e(...t){const{caseless:n,skipUndefined:r}=Ia(this)&&this||{},o={},i=n?Object.create(null):null,s=(t,n)=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;let s=n;if(i&&"string"==typeof n){const e=n.toLowerCase(),t=i[e];void 0!==t&&ia(o,t)?s=t:i[e]=n}const a=ia(o,s)?o[s]:void 0;wa(a)&&wa(t)?o[s]=e(a,t):wa(t)?o[s]=e({},t):pa(t)?o[s]=t.slice():r&&ha(t)||(o[s]=t)};for(let e=0,n=t.length;e<n;e++){const n=t[e];if(!n||ga(n))continue;if(Ma(n,s),"object"!=typeof n||pa(n)||!Object.getOwnPropertySymbols)continue;const r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){const t=r[e];za.call(n,t)&&s(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:r}={})=>(Ma(t,(t,r)=>{n&&ma(t)?Object.defineProperty(e,r,{__proto__:null,value:ea(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),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),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&na(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:la,kindOfTest:da,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(pa(e))return e;let t=e.length;if(!Number.isSafeInteger(t)||t<0||t>4294967295)return null;const n=new Set,r=new Set;let o=e;for(;null!=o&&n.size<t;){if(r.has(o))return null;r.add(o);const i=na(o);if(aa(o,i,o===e))break;Object.getOwnPropertyNames(o).forEach(e=>{const r=+e;Number.isInteger(r)&&r>=0&&r<t&&String(r)===e&&ia(o,e)&&n.add(r)}),o=i}if(n.size!==t)return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},forEachEntry:(e,t)=>{const n=(e&&e[ra]).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:Ua,hasOwnProperty:ia,hasOwnProp:ia,hasOwnInPrototypeChain:ua,getSafeProp:(e,t)=>null!=e&&ua(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=na(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(sa(t))return!1;const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let i=e;for(;null!=i&&-1===o.indexOf(i);){o.push(i);const s=i===e?t:na(i);if(aa(i,s,i===e))break;const a=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(i));for(const t of a)sa(t)||ia(r,t)||(n[t]=e[t],r[t]=!0);i=s}return n},reduceDescriptors:qa,freezeMethods:e=>{qa(e,(t,n)=>{if(ma(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];ma(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 pa(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:function(e,t){if(ga(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null},global:La,isContextDefined:Ia,isSpecCompliantForm:function(e){return!!(e&&ma(e.append)&&"FormData"===e[oa]&&e[ra])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(_a(e)){if(t.has(e))return;if(ga(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),ka(e)){r=[];for(const t of e){const e=n(t);!ha(e)&&r.push(e)}}else r=pa(e)?[]:{},Ma(e,(e,t)=>{const o=n(e);!ha(o)&&(r[t]=o)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:Ha,isThenable:e=>e&&(_a(e)||ma(e))&&ma(e.then)&&ma(e.catch),setImmediate:Va,asap:Ja,isIterable:Ya,isSafeIterable:e=>null!=e&&ua(e,ra)&&Ya(e)};const Qa=Xa.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"]);const Za=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),eu=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function tu(e,t){return Xa.isArray(e)?e.map(e=>tu(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function nu(e){const t=Object.create(null);return Xa.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>tu(e,eu))(e)}),t}const ru=Symbol("internals");function ou(e){return e&&String(e).trim().toLowerCase()}function iu(e){return!1===e||null==e?e:Xa.isArray(e)?e.map(iu):(e=>tu(e,Za))(String(e))}const su=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function au(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}const uu=e=>"__proto__"===e?"__Proto__":e;function lu(e,t,n,r,o){return Xa.isFunction(r)?r.call(e,t,n):(o&&(t=n),Xa.isString(t)?Xa.isString(r)?-1!==t.indexOf(r):Xa.isRegExp(r)?r.test(t):void 0:void 0)}let cu=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ou(t);if(!o)return;const i=Xa.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[uu(i||t)]=iu(e))}const i=(e,t)=>Xa.forEach(e,(e,n)=>o(e,n,t));if(Xa.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Xa.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t=Object.create(null);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();const i=Xa.hasOwnProp(t,n);!n||i&&Xa.hasOwnProp(Qa,n)||("set-cookie"===n?i?t[n].push(r):t[n]=[r]:t[n]=i?t[n]+", "+r:r)}),t})(e),t);else if(Xa.isObject(e)&&Xa.isSafeIterable(e)){let n,r,o=Object.create(null);for(const t of e){if(!Xa.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],Xa.hasOwnProp(o,r)?(n=o[r],o[r]=Xa.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ou(e)){const n=Xa.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(Xa.isFunction(t))return t.call(this,e,n);if(Xa.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ou(e)){const n=Xa.findKey(this,e);return!(!n||void 0===this[n]||t&&!lu(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ou(e)){const o=Xa.findKey(n,e);!o||t&&!lu(n,n[o],o,t)||(delete n[o],r=!0)}}return Xa.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&&!lu(this,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n=Object.create(null);return Xa.forEach(this,(r,o)=>{const i=Xa.findKey(n,o);if(i)return t[i]=iu(r),void delete t[o];const s=uu(e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim());s!==o&&delete t[o],t[s]=iu(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Xa.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Xa.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")}getSetCookie(){const e=this.get("set-cookie");return Xa.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),n=String(e);let r=0,o=!1,i=!1;function s(e){const o=au(n.slice(r,e)),i=o.indexOf("=");if(i<1)return;const s=au(o.slice(0,i));if(!su.test(s))return;const a=s.toLowerCase();if("__proto__"===a||"constructor"===a||"prototype"===a)return;const u=au(o.slice(i+1));t[a]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r<t;r++){const o=e.charCodeAt(r);if(34===o)return e;if(92===o&&(r+=1,r>=t))return e;n+=e[r]}return n}(u)}for(let e=0;e<n.length;e++){const t=n.charCodeAt(e);o?i?i=!1:92===t?i=!0:34===t&&(o=!1):34===t?o=!0:44!==t&&59!==t||(s(e),r=e+1)}return s(n.length),t}(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ru]=this[ru]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ou(e);t[r]||(!function(e,t){const n=Xa.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Xa.isArray(e)?e.forEach(r):r(e),this}};cu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Xa.reduceDescriptors(cu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Xa.freezeMethods(cu);const du="[REDACTED ****]";function fu(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(Xa.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof cu&&(e=e.toJSON()),r.push(e),Xa.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);Xa.isUndefined(r)||(t[n]=r)});else{if(!Xa.isPlainObject(e)&&function(e){if(Xa.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Xa.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,i]of Object.entries(e)){const e=n.has(r.toLowerCase())?du:o(i);Xa.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}function pu(e){try{return String(e)}catch(e){return""}}const hu=Symbol("causeStack");let gu=class e extends Error{static from(t,n,r,o,i,s){let a=t.message;!a&&Xa.isArray(t.errors)&&t.errors.length&&(a=function(e){return e.errors.map(e=>{try{return e&&e.message?pu(e.message):pu(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(t));const u=new e(a,n||t.code,r,o,i);return Object.defineProperty(u,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),u.name=t.name,function(e,t){try{const n=t&&t.stack;if("string"!=typeof n||!n)return;const r=e.stack;if("string"!=typeof r||!r)return;const o="\nCaused by: "+n;e.stack=r+o,Object.defineProperty(e,hu,{__proto__:null,value:o})}catch(e){}}(u,t),null!=t.status&&null==u.status&&(u.status=t.status),s&&Object.assign(u,s),u}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&Xa.hasOwnProp(e,"redact")?e.redact:void 0,n=Xa.isArray(t)&&t.length>0?fu(e,t):Xa.toJSONObject(e);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:n,code:this.code,status:this.status}}};gu.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",gu.ERR_BAD_OPTION="ERR_BAD_OPTION",gu.ECONNABORTED="ECONNABORTED",gu.ETIMEDOUT="ETIMEDOUT",gu.ECONNREFUSED="ECONNREFUSED",gu.ERR_NETWORK="ERR_NETWORK",gu.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",gu.ERR_DEPRECATED="ERR_DEPRECATED",gu.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",gu.ERR_BAD_REQUEST="ERR_BAD_REQUEST",gu.ERR_CANCELED="ERR_CANCELED",gu.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",gu.ERR_INVALID_URL="ERR_INVALID_URL",gu.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function bu(e){return Xa.isPlainObject(e)||Xa.isArray(e)}function yu(e){return Xa.endsWith(e,"[]")?e.slice(0,-2):e}function mu(e,t,n){return e?e.concat(t).map(function(e,t){return e=yu(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const vu=Xa.toFlatObject(Xa,{},null,function(e){return/^is[A-Z]/.test(e)});function _u(e,t,n){if(!Xa.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(e,t)=>{const r=Xa.getSafeProp(n,e);return Xa.isUndefined(r)?t:r},o=r("metaTokens",!0),i=r("visitor")||h,s=r("dots",!1),a=r("indexes",!1),u=r("Blob")||"undefined"!=typeof Blob&&Blob,l=r("maxDepth",100),c=u&&Xa.isSpecCompliantForm(t),d=[];if(!Xa.isFunction(i))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(Xa.isDate(e))return e.toISOString();if(Xa.isBoolean(e))return e.toString();if(!c&&Xa.isBlob(e))throw new gu("Blob is not supported. Use a Buffer instead.");if(Xa.isArrayBuffer(e)||Xa.isTypedArray(e)){if(c&&"function"==typeof u)return new u([e]);throw new gu("Blob is not supported. Use a Buffer instead.",gu.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new gu("Object is too deeply nested ("+e+" levels). Max depth: "+l,gu.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,r){let i=e;if(Xa.isReactNative(t)&&Xa.isReactNativeBlob(e))return t.append(mu(r,n,s),f(e)),!1;if(e&&!r&&"object"==typeof e)if(Xa.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!Xa.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}(e,1);else if(Xa.isArray(e)&&function(e){return Xa.isArray(e)&&!e.some(bu)}(e)||(Xa.isFileList(e)||Xa.endsWith(n,"[]"))&&(i=Xa.toArray(e)))return n=yu(n),i.forEach(function(e,r){!Xa.isUndefined(e)&&null!==e&&t.append(!0===a?mu([n],r,s):null===a?n:n+"[]",f(e))}),!1;return!!bu(e)||(t.append(mu(r,n,s),f(e)),!1)}const g=Object.assign(vu,{defaultVisitor:h,convertValue:f,isVisitable:bu});if(!Xa.isObject(e))throw new TypeError("data must be an object");return function e(n,r,o=0){if(!Xa.isUndefined(n)){if(p(o),-1!==d.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));d.push(n),Xa.forEach(n,function(n,s){!0===(!(Xa.isUndefined(n)||null===n)&&i.call(t,n,Xa.isString(s)?s.trim():s,r,g))&&e(n,r?r.concat(s):[s],o+1)}),d.pop()}}(e),t}function wu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Su(e,t){this._pairs=[],e&&_u(e,this,t)}const Ou=Su.prototype;function xu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ju(e,t,n){if(!t)return e;e=e||"";const r=Xa.isFunction(n)?{serialize:n}:n,o=Xa.getSafeProp(r,"encode")||xu,i=Xa.getSafeProp(r,"serialize");let s;if(s=i?i(t,r):Xa.isURLSearchParams(t)?t.toString():new Su(t,r).toString(o),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Ou.append=function(e,t){this._pairs.push([e,t])},Ou.toString=function(e){const t=e?t=>e.call(this,t,wu):wu;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const ku=Symbol("internals");function Eu(e){return e?e.length:0}function Ru(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function Pu(e,t){const n=e.handlers,r=Eu(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()),t.handlersLength=r}class Cu{constructor(){this.handlers=[],this[ku]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){const r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[ku];null==this.handlers&&(this.handlers=[]),Pu(this,o);const i=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(i,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(e){const t=this[ku];Pu(this,t);const n=function(e){return"string"==typeof e&&""!==e&&String(Number(e))===e?Number(e):e}(e),r=t.handlerEntries.get(n);if(r){if(t.handlerEntries.delete(n),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(Ru(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Pu(this,this[ku]))}forEach(e){const t=this[ku];Pu(this,t),t.iterationDepth++;try{Xa.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(Pu(this,t),Ru(this.handlers),t.handlersLength=Eu(this.handlers))}}}var Au={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0,encodeBasicAuthUsername:!1},Tu={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Su,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Nu="undefined"!=typeof window&&"undefined"!=typeof document,Mu="object"==typeof navigator&&navigator||void 0,Lu=Nu&&(!Mu||["ReactNative","NativeScript","NS"].indexOf(Mu.product)<0),Iu="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Fu=Nu&&window.location.href||"http://localhost";var Du={...Object.freeze({__proto__:null,hasBrowserEnv:Nu,hasStandardBrowserEnv:Lu,hasStandardBrowserWebWorkerEnv:Iu,navigator:Mu,origin:Fu}),...Tu};function Uu(e){if(e>100)throw new gu("FormData field is too deeply nested ("+e+" levels). Max depth: 100",gu.ERR_FORM_DATA_DEPTH_EXCEEDED)}function zu(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Bu(e){if(!Xa.isArray(e))return e;const t=Object.keys(e);return t.length!==e.length||t.some((e,t)=>e!==String(t))?zu(e):e}function qu(e){function t(e,n,r,o){Uu(o);let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&Xa.isArray(r)?r.length:i,a)return Xa.hasOwnProp(r,i)?(r[i]=Bu(r[i]),r[i]=Xa.isArray(r[i])?r[i].concat(n):[r[i],n]):r[i]=n,!s;Xa.hasOwnProp(r,i)&&Xa.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Xa.isArray(r[i])&&(r[i]=zu(r[i])),!s}if(Xa.isFormData(e)&&Xa.isFunction(e.entries)){const n={};return Xa.forEachEntry(e,(e,r)=>{t(function(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;null!==(r=n.exec(e));)Uu(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}(e),r,n,0)}),function(e){const t=[e];for(;t.length;){const e=t.pop();Object.keys(e).forEach(n=>{const r=e[n]=Bu(e[n]);(Xa.isArray(r)||Xa.isPlainObject(r))&&t.push(r)})}return e}(n)}return null}const Hu=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Vu=(e,t)=>null!=e&&Xa.hasOwnProp(e,t)?e[t]:void 0;const $u={transitional:Au,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Xa.isObject(e);o&&Xa.isHTMLForm(e)&&(e=new FormData(e));if(Xa.isFormData(e))return r?JSON.stringify(qu(e)):e;if(Xa.isArrayBuffer(e)||Xa.isBuffer(e)||Xa.isStream(e)||Xa.isFile(e)||Xa.isBlob(e)||Xa.isReadableStream(e))return e;if(Xa.isArrayBufferView(e))return e.buffer;if(Xa.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=Vu(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return _u(e,new Du.classes.URLSearchParams,{visitor:function(e,t,n,r){return Du.isNode&&Xa.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=Xa.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Vu(this,"env"),r=n&&n.FormData;return _u(i?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Xa.isString(e))try{return(t||JSON.parse)(e),Xa.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Vu(this,"transitional")||$u.transitional,n=t&&t.forcedJSONParsing,r=Vu(this,"responseType"),o="json"===r;if(Xa.isResponse(e)||Xa.isReadableStream(e))return e;if(e&&Xa.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Vu(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw gu.from(e,gu.ERR_BAD_RESPONSE,this,null,Vu(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Du.classes.FormData,Blob:Du.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function Wu(e,t){const n=this||$u,r=t||n,o=cu.from(r.headers);let i=r.data;return Xa.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Gu(e){return!(!e||!e.__CANCEL__)}Xa.forEach(Hu,e=>{$u.headers[e]={}});let Ku=class extends gu{constructor(e,t,n){super(null==e?"canceled":e,gu.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ju(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new gu("Request failed with status code "+n.status,n.status>=400&&n.status<500?gu.ERR_BAD_REQUEST:gu.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Yu=/[\t\n\r]/g;function Xu(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Yu,"")}function Qu(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1].toLowerCase()||""}const Zu=e=>{try{return decodeURIComponent(e)}catch(t){return e}};var el=Du.hasStandardBrowserEnv?{write(e,t,n,r,o,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];Xa.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),Xa.isString(r)&&a.push(`path=${r}`),Xa.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),Xa.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie;if(!t)return null;const n=t.split(";");for(let t=0;t<n.length;t++){const r=n[t].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return Zu(r.slice(o+1))}return null},async readAsync(e){try{const t="undefined"!=typeof window&&window.cookieStore;if(t&&Xa.isFunction(t.get)){const n=await t.get(e);return n?Zu(n.value):null}}catch(e){}return this.read(e)},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,readAsync:async()=>null,remove(){}};const tl=(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,s=0;return t=void 0!==t?t:1e3,function(a){const u=Date.now(),l=r[s];o||(o=u),n[i]=a,r[i]=u;let c=s,d=0;for(;c!==i;)d+=n[c++],c%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const f=l&&u-l;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},i-a)))},()=>n&&s(n),(...e)=>s(e)]}(n=>{if(!n||!Xa.isNumber(n.loaded))return;const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=Math.max(0,null!=s?Math.min(i,s):i),u=Math.max(0,a-r),l=o(u);r=Math.max(r,a);e({loaded:a,total:s,progress:s?a/s:void 0,bytes:u,rate:l||void 0,estimated:l&&s?(s-a)/l:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},nl=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rl=(e,t=Xa.asap)=>(...n)=>t(()=>e(...n));var ol=Du.hasStandardBrowserEnv?(e=>t=>(t=new URL(t,document.baseURI||Du.origin),e.protocol===t.protocol&&e.host===t.host&&e.port===t.port))(new URL(Du.origin)):()=>!0;const il=/^https?:(?!\/\/)/i;function sl(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${du}@`),n=t.indexOf("#"),r=(-1===n?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${du}`);return-1===n?r:`${r}#${o=t.slice(n+1),o?o.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${du}`):o}`;var o}function al(e,t){if("string"==typeof e){const n=Xu(e);if(il.test(n))throw new gu(`Invalid URL ${JSON.stringify(sl(n))}: missing "//" after protocol`,gu.ERR_INVALID_URL,t)}}function ul(e,t,n,r){al(t,r);let o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(o||!1===n)?(al(e,r),function(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const ll=e=>e instanceof cu?{...e}:e,cl=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>{const n=Object.getOwnPropertyDescriptor(e,t);return n&&n.enumerable})):Object.keys(e);function dl(e,t,n,r){return Xa.isPlainObject(e)&&Xa.isPlainObject(t)?Xa.merge.call({caseless:r},e,t):Xa.isPlainObject(t)?Xa.merge({},t):Xa.isArray(t)?t.slice():t}function fl(e,t,n,r){return Xa.isUndefined(t)?Xa.isUndefined(e)?void 0:dl(void 0,e,0,r):dl(e,t,0,r)}function pl(e,t){if(!Xa.isUndefined(t))return dl(void 0,t)}function hl(e,t){return Xa.isUndefined(t)?Xa.isUndefined(e)?void 0:dl(void 0,e):dl(void 0,t)}function gl(e,t,n,r,o){return Xa.hasOwnProp(o,n)?dl(e,t):Xa.hasOwnProp(r,n)?dl(void 0,e):void 0}const bl=Object.freeze({__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0}),yl={url:pl,method:pl,data:pl,baseURL:hl,transformRequest:hl,transformResponse:hl,params:function(e,t){const n=[],r=new WeakMap,o={};function i(e,t){if(!Xa.isPlainObject(t))return Xa.isArray(t)?t.slice():t;const i=Xa.isPlainObject(e)?e:o;let s=r.get(t);if(s||(s=new WeakMap,r.set(t,s)),s.has(i))return s.get(i);const a={};return s.set(i,a),n.push({base:i,source:t,result:a}),a}const s=Xa.isUndefined(t)?i(void 0,e):i(e,t);for(;n.length;){const{base:e,source:t,result:r}=n.pop(),o=new Set(cl(e)),s=new Set(cl(t));new Set([...o,...s]).forEach(n=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;const a=s.has(n),u=a?t[n]:void 0,l=a&&!Xa.isPlainObject(u)||!o.has(n)?void 0:e[n];r[n]=a?i(l,u):i(void 0,l)})}return function(e){const t=[{value:e}],n=new WeakSet,r=new WeakSet;for(;t.length;){const{value:e,done:o}=t.pop();if(!Xa.isPlainObject(e)&&!Xa.isArray(e))continue;if(o){n.delete(e);continue}if(n.has(e))throw new gu("Circular reference detected in params",gu.ERR_BAD_OPTION_VALUE);if(r.has(e))continue;r.add(e),n.add(e),t.push({value:e,done:!0});const i=Object.keys(e);Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertySymbols(e).forEach(t=>{const n=Object.getOwnPropertyDescriptor(e,t);n&&n.enumerable&&i.push(t)}),i.forEach(n=>{if("__proto__"===n||"constructor"===n||"prototype"===n){const r=Object.getOwnPropertyDescriptor(e,n);r&&Xa.hasOwnProp(r,"value")&&t.push({value:r.value})}else t.push({value:e[n]})})}}(s),s},paramsSerializer:hl,timeout:hl,timeoutErrorMessage:hl,withCredentials:hl,withXSRFToken:hl,adapter:hl,responseType:hl,xsrfCookieName:hl,xsrfHeaderName:hl,onUploadProgress:hl,onDownloadProgress:hl,decompress:hl,maxContentLength:hl,maxBodyLength:hl,beforeRedirect:hl,transport:hl,httpAgent:hl,httpsAgent:hl,cancelToken:hl,socketPath:hl,allowedSocketPaths:hl,responseEncoding:hl,validateStatus:gl,headers:function(e,t,n){return fl(ll(e),ll(t),0,!0)}};function ml(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",bl);const r=cl({...e,...t});for(let o=0,i=r.length;o<i;o++){const i=r[o];if("__proto__"===i||"constructor"===i||"prototype"===i)continue;const s=Xa.hasOwnProp(yl,i)?yl[i]:fl,a=Xa.hasOwnProp(e,i)?e[i]:void 0,u=Xa.hasOwnProp(t,i)?t[i]:void 0,l=s===gl?s(a,u,i,e,t):s(a,u,i);Xa.isUndefined(l)&&s!==gl||(n[i]=l)}return Xa.hasOwnProp(t,"validateStatus")&&Xa.isUndefined(t.validateStatus)&&!1===function(e,t,n){const r=Xa.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Xa.isUndefined(r)){if(!Xa.isPlainObject(r))return;if(Xa.hasOwnProp(r,n))return r[n]}const o=Xa.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Xa.isPlainObject(o)&&Xa.hasOwnProp(o,n))return o[n]}(e,t,"validateStatusUndefinedResolves")&&(Xa.hasOwnProp(e,"validateStatus")?n.validateStatus=dl(void 0,e.validateStatus):delete n.validateStatus),n}const vl=["content-type","content-length"];const _l=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),wl=e=>el.read(e);function Sl(e,t=wl){const n=ml({},e),r=e=>Xa.hasOwnProp(n,e)?n[e]:void 0,o=r("data");let i=r("withXSRFToken");const s=r("xsrfHeaderName"),a=r("xsrfCookieName");let u=r("headers");const l=r("auth"),c=r("baseURL"),d=r("allowAbsoluteUrls"),f=r("url");if(n.headers=u=cu.from(u),n.url=ju(ul(c,f,d,n),r("params"),r("paramsSerializer")),l){const t=Xa.getSafeProp(l,"username")||"",n=Xa.getSafeProp(l,"password")||"",o=r("transitional"),i=o&&Xa.hasOwnProp(o,"encodeBasicAuthUsername")&&!0===o.encodeBasicAuthUsername;try{u.set("Authorization","Basic "+btoa((i?_l(t):t)+":"+(n?_l(n):"")))}catch(t){throw gu.from(t,gu.ERR_BAD_OPTION_VALUE,e)}}if(Xa.isFormData(o)){const e=Xa.getSafeProp(o,"getHeaders");Du.hasStandardBrowserEnv||Du.hasStandardBrowserWebWorkerEnv||Xa.isReactNative(o)?u.setContentType(void 0):Xa.isFunction(e)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(([t,n])=>{vl.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(u,e.call(o),r("formDataHeaderPolicy"))}if(Du.hasStandardBrowserEnv){Xa.isFunction(i)&&(i=i(n));if(!0===i||null==i&&ol(n.url)){const e=s&&a&&t(a);e&&u.set(s,e)}}return n}var Ol="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,o;try{const e=Du.hasStandardBrowserEnv&&"undefined"!=typeof window&&window.cookieStore;r=e&&Xa.isFunction(e.get)}catch(e){}const i=Sl(e,r?e=>(o=e,null):void 0);let s=i.data;const a=cu.from(i.headers).normalize();let u,l,c,d,f,p,h,{responseType:g,onUploadProgress:b,onDownloadProgress:y}=i;function m(){clearTimeout(l);try{f&&f()}catch(e){setTimeout(()=>{throw e})}try{p&&p()}catch(e){setTimeout(()=>{throw e})}v&&(d&&v.removeEventListener("progress",d),v.upload&&(c&&v.upload.removeEventListener("progress",c),f&&v.upload.removeEventListener("loadend",f))),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;function _(r){if(!v)return;if(!(0!==v.status||"file"===(Qu(Xu(i.url))||Qu(Du.origin))||v.responseURL&&v.responseURL.startsWith("file:")))return n(new gu("Request aborted",gu.ECONNABORTED,e,v)),m(),void(v=null);try{r?h&&h(r):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!v)return;const o=cu.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());Ju(function(e){t(e),m()},function(e){n(e),m()},{data:g&&"text"!==g&&"json"!==g?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:o,config:e,request:v}),v=null}if(v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout,"onloadend"in v?v.onloadend=_:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&v.responseURL.startsWith("file:"))&&setTimeout(_)},v.onabort=function(){v&&(n(new gu("Request aborted",gu.ECONNABORTED,e,v)),m(),v=null)},v.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new gu(r,gu.ERR_NETWORK,e,v);o.event=t||null,n(o),m(),v=null},v.ontimeout=function(){if(!v)return;let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Au;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new gu(t,r.clarifyTimeoutError?gu.ETIMEDOUT:gu.ECONNABORTED,e,v)),m(),v=null},void 0===s&&a.setContentType(null),Xa.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),g&&"json"!==g&&(v.responseType=i.responseType),y&&([d,p,h]=tl(y,!0),v.addEventListener("progress",d)),b&&v.upload&&([c,f]=tl(b),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",f)),i.cancelToken||i.signal){if(u=t=>{if(!v)return;n(!t||t.type?new Ku(null,e,v):t);const r=v;m(),v=null,r.abort()},i.cancelToken&&i.cancelToken.subscribe(u),!v)return;i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u))}if(!v)return;const w=Qu(i.url);if(w&&!Du.protocols.includes(w))return n(new gu("Unsupported protocol "+w+":",gu.ERR_BAD_REQUEST,e)),void m();const S=()=>{v&&("setRequestHeader"in v&&Xa.forEach(nu(a),function(e,t){v.setRequestHeader(t,e)}),v.send(s||null))};if(o){const t="undefined"!=typeof performance&&Xa.isFunction(performance.now)?()=>performance.now():Date.now,r=v.timeout>0?t()+Number(v.timeout):void 0,s=()=>{if(!v)return;const e=v;e.ontimeout(),e.abort()};if(void 0!==r){const e=()=>{const n=r-t();n>0?l=setTimeout(e,Math.min(n,2147483647)):s()};e()}el.readAsync(o).then(e=>{if(v)if(void 0!==r&&t()>=r)s();else{if(e){const t=Xa.hasOwnProp(i,"xsrfHeaderName")&&i.xsrfHeaderName;a.set(t,e)}S()}}).catch(t=>{v&&(n(gu.from(t,null,e,v)),m(),v=null)})}else S()})};const xl=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof gu?t:new Ku(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new gu(`timeout of ${t}ms exceeded`,gu.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{const t=Xa.getSafeProp(e,"unsubscribe");Xa.isFunction(t)?t.call(e,o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{r||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});const{signal:a}=n;return a.unsubscribe=()=>Xa.asap(s),a},jl=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},kl=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},El=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of kl(e))yield*jl(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},Rl="\r\n",Pl=e=>String(e).replace(/\r\n|\r|\n/g,Rl),Cl=e=>String(e).replace(/[\r\n"]/g,e=>"\r"===e?"%0D":"\n"===e?"%0A":"%22"),Al=(e,t)=>{let n=0;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);!t||13!==o&&10!==o?o<128?n++:o<2048?n+=2:o>=55296&&o<=56319&&e.charCodeAt(r+1)>=56320&&e.charCodeAt(r+1)<=57343?(n+=4,r++):n+=3:(13===o&&10===e.charCodeAt(r+1)&&r++,n+=2)}return n};class Tl extends TypeError{constructor(e,t){super(e),this.name="FormDataError",this.reason=t}}function Nl(e,t,n,r,o){if(!Xa.isFunction(t))throw new gu("Blob is not supported",gu.ERR_NOT_SUPPORT);if(void 0===o)if(Xa.isFunction(Du.generateString))o="axios-"+Du.generateString(36,"0123456789abcdef");else{const e=Xa.global.crypto;if(!e||!Xa.isFunction(e.getRandomValues))throw new gu("Random byte generation is not supported",gu.ERR_NOT_SUPPORT);const t=new Uint8Array(18);e.getRandomValues(t),o="axios-"+Array.from(t,e=>("0"+e.toString(16)).slice(-2)).join("")}try{return function(e,t,n,r,o){if(!Xa.isFunction(t))throw new Tl("Blob is not supported","blob");if(!Xa.isString(o)||!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(o)||/ $/.test(o))throw new Tl("Invalid multipart boundary","boundary");const i="--"+o+"--"+Rl;let s=i.length;const a=[],u=e=>{if(s+e>n)throw r()};u(0);for(const[t,n]of e){const e=Xa.isString(n),r=e?Al(n,!0):n.size;if(!Number.isFinite(r)||r<0)throw new Tl("Unsupported FormData part size","part");u(r+Al(t,!0)+(!e&&n.name?Al(n.name,!1):0)+(!e&&n.type?Al(n.type,!1):0));let i="--"+o+'\r\nContent-Disposition: form-data; name="'+Cl(Pl(t))+'"';e||(i+='; filename="'+Cl(Xa.isString(n.name)?n.name:"blob")+'"\r\nContent-Type: '+String(n.type||"application/octet-stream").replace(/[\r\n]/g,"")),i+=Rl+Rl;const l=Al(i,!1)+r+2;u(l),s+=l,a.push({header:i,value:n,isString:e})}const l=[];for(const e of a)l.push(e.header,e.isString?Pl(e.value):e.value,Rl);return l.push(i),new t(l,{type:"multipart/form-data; boundary="+o})}(e,t,n,r,o)}catch(e){if(e instanceof Tl){const t="boundary"===e.reason?gu.ERR_BAD_OPTION_VALUE:gu.ERR_BAD_REQUEST;throw new gu(e.message,t)}throw e}}const Ml=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Ll=(e,t,n)=>t+2<n&&Ml(e.charCodeAt(t+1))&&Ml(e.charCodeAt(t+2)),Il=e=>e<=57?e-48:(223&e)-55,Fl=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Dl=e=>9===e||10===e||12===e||13===e||32===e,Ul=e=>{const t=e.length;let n=0,r=0,o=!1;for(let i=0;i<t;i++){let s=e.charCodeAt(i);37===s&&Ll(e,i,t)&&(s=16*Il(e.charCodeAt(i+1))+Il(e.charCodeAt(i+2)),i+=2),Dl(s)||(61!==s?!Fl(s)||r>0?o=!0:n++:r++)}return o||r>2||r>0&&(n+r)%4!=0||n%4==1?(e=>{const t=e.length;let n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)})(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(n)};function zl(e){const t="string"==typeof e?e.indexOf("#"):-1;return((e,t,n)=>{if(!e||"string"!=typeof e)return 0;if(!/^data:/i.test(e))return 0;const r=e.indexOf(",");if(r<0)return 0;const o=e.slice(5,r),i=e.slice(r+1);if(n.test(o))return t(i);let s=0;for(let e=0,t=i.length;e<t;e++){const n=i.charCodeAt(e);if(37===n&&Ll(i,e,t))s+=1,e+=2;else if(n<128)s+=1;else if(n<2048)s+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=i.charCodeAt(e+1);t>=56320&&t<=57343?(s+=4,e++):s+=3}else s+=3}return s})(-1===t?e:e.slice(0,t),Ul,/; *base64[\t\n\f\r ]*$/i)}const Bl="1.21.0",ql={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Hl}=Xa,Vl=e=>{if(!Xa.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},$l=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Wl=e=>{const t=void 0!==Xa.global&&null!==Xa.global?Xa.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Xa.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response,Blob:t.Blob},e);const o=Xa.hasOwnProp(e,"fetch")?e.fetch:void 0,{Request:i,Response:s,Blob:a}=e,u=o?Hl(o):"function"==typeof fetch,l=Hl(i),c=Hl(s);if(!u)return!1;const d=u&&Hl(n),f=u&&("function"==typeof r?(p=new r,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const h=l&&d&&$l(()=>{let e=!1;const t=new i(Du.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),g=c&&d&&$l(()=>Xa.isReadableStream(new s("").body)),b=Object.assign(Object.create(null),ql);l&&!$l(()=>new i(Du.origin,b))&&(delete b.cache,$l(()=>new i(Du.origin,b))||(b.cache=ql.cache));const y={stream:g&&(e=>e.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!y[e]&&(y[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new gu(`Response type '${e}' is not supported`,gu.ERR_NOT_SUPPORT,n)})});const m=async e=>null==e?0:Xa.isBlob(e)?e.size:Xa.isArrayBufferView(e)||Xa.isArrayBuffer(e)?e.byteLength:(Xa.isURLSearchParams(e)&&(e+=""),Xa.isString(e)?(await f(e)).byteLength:void 0);return async e=>{let{url:t,method:n,data:u,signal:c,cancelToken:f,timeout:p,onDownloadProgress:v,onUploadProgress:_,responseType:w,headers:S,withCredentials:O="same-origin",fetchOptions:x,maxContentLength:j,maxBodyLength:k,maxRedirects:E}=Sl(e);const R=Xa.isNumber(j)&&j>-1,P=Xa.isNumber(k)&&k>-1,C=t=>Xa.hasOwnProp(e,t)?e[t]:void 0;let A=o||fetch;w=w?(w+"").toLowerCase():"text";let T=xl([c,f&&f.toAbortSignal()],p),N=null;const M=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let L,I=null,F=null;const D=()=>new gu("Request body larger than maxBodyLength limit",gu.ERR_BAD_REQUEST,e,N);try{let o;const c=C("auth");if(c){const e=Xa.getSafeProp(c,"username")||"";o={username:e,password:Xa.getSafeProp(c,"password")||""}}let f;if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){if(f=new URL(t,Du.origin),!o&&(f.username||f.password)){const e=Vl(f.username);o={username:e,password:Vl(f.password)}}(f.username||f.password)&&(f.username="",f.password="",t=f.href)}if(o&&(S.delete("authorization"),S.set("Authorization","Basic "+btoa((U=(o.username||"")+":"+(o.password||""),encodeURIComponent(U).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),R&&f&&"data:"===f.protocol){if(zl(f.href)>j)throw new gu("maxContentLength size of "+j+" exceeded",gu.ERR_BAD_RESPONSE,e,N)}const p=Xa.isSpecCompliantForm(u)&&cu.from(C("headers")).getContentType();let z;if(Xa.isString(p)&&/^multipart\/form-data(?:\s*;|$)/i.test(p.trim())){const e=cu.parseParameters(p);Xa.hasOwnProp(e,"boundary")&&(z=e.boundary)}if(Xa.isSpecCompliantForm(u)&&"get"!==n&&"head"!==n&&(P||_&&h||void 0!==z)&&(u=Nl(u,a,P?k:1/0,D,z),S.setContentType(void 0===z?u.type:p),L=u.size),P&&"get"!==n&&"head"!==n){const e=await m(u);if("number"==typeof e&&isFinite(e)&&(L=e,e>k))throw D()}const B=P&&(Xa.isReadableStream(u)||Xa.isStream(u)),q=(e,t,n)=>El(e,65536,e=>{if(P&&e>k)throw I=D();t&&t(e)},n);if(h&&"get"!==n&&"head"!==n&&(_||B)){if(L=null==L?await(async(e,t)=>{const n=Xa.toFiniteNumber(e.getContentLength());return null==n?m(t):n})(S,u):L,0!==L||B){let e,n=new i(t,{method:"POST",body:u,duplex:"half"});if(Xa.isFormData(u)&&(e=n.headers.get("content-type"))&&S.setContentType(e),n.body){const[e,t]=_&&nl(L,tl(rl(_)))||[];u=q(n.body,e,t)}}}else if(B&&!l&&d&&"get"!==n&&"head"!==n)u=q(u);else if(B&&l&&!h&&"get"!==n&&"head"!==n)throw new gu("Stream request bodies are not supported by the current fetch implementation",gu.ERR_NOT_SUPPORT,e,N);Xa.isString(O)||(O=O?"include":"omit");const H=l&&"credentials"in i.prototype;if(Xa.isFormData(u)){const e=S.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&S.delete("content-type")}S.set("User-Agent","axios/"+Bl,!1);const V=null==x?x:Object.assign(Object.create(null),x);V&&(delete V.body,delete V.headers,delete V.method,delete V.signal,delete V.duplex,delete V.credentials);const $=Object.assign(Object.create(null),V,{signal:T,method:n.toUpperCase(),headers:nu(S.normalize()),body:u,duplex:"half",credentials:H?O:void 0});l&&(Xa.forEach(b,(e,t)=>{void 0===$[t]&&($[t]=e)}),void 0===$.signal&&($.signal=null),void 0===$.body&&($.body=null)),0===E&&($.redirect="manual",V&&(V.redirect="manual")),N=l&&new i(t,$);let W=await(l?A(N,V):A(t,$));const G=cu.from(W.headers);if(R){const t=Xa.toFiniteNumber(G.getContentLength());if(null!=t&&t>j)throw new gu("maxContentLength size of "+j+" exceeded",gu.ERR_BAD_RESPONSE,e,N)}const K=g&&("stream"===w||"response"===w);if(g&&W.body&&(v||R||K&&M)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=W[e]});const n=Xa.toFiniteNumber(G.getContentLength()),[r,o]=v&&nl(n,tl(rl(v),!0))||[];let i=0;const a=t=>{if(R&&(i=t,i>j))throw F=new gu("maxContentLength size of "+j+" exceeded",gu.ERR_BAD_RESPONSE,e,N);r&&r(t)};W=new s(El(W.body,65536,a,()=>{o&&o(),M&&M()}),t)}w=w||"text";let J=await y[Xa.findKey(y,w)||"text"](W,e);if(R&&!g&&!K){let t;if(null!=J&&("number"==typeof J.byteLength?t=J.byteLength:"number"==typeof J.size?t=J.size:"string"==typeof J&&(t="function"==typeof r?(new r).encode(J).byteLength:J.length)),"number"==typeof t&&t>j)throw new gu("maxContentLength size of "+j+" exceeded",gu.ERR_BAD_RESPONSE,e,N)}return!K&&M&&M(),await new Promise((t,n)=>{Ju(t,n,{data:J,headers:cu.from(W.headers),status:W.status,statusText:W.statusText,config:e,request:N})})}catch(t){if(M&&M(),T&&T.aborted&&T.reason instanceof gu){const n=T.reason;throw n.config=e,N&&(n.request=N),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(I)throw N&&!I.request&&(I.request=N),I;if(F)throw F;if(t instanceof gu)throw N&&!t.request&&(t.request=N),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const n=new gu("Network Error",gu.ERR_NETWORK,e,N,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw gu.from(t,t&&t.code,e,N,t&&t.response)}var U}},Gl=new Map,Kl=e=>{const t=Object.create(null),n=e&&Xa.hasOwnProp(e,"env")&&e.env;["fetch","Request","Response","Blob"].forEach(e=>{n&&Xa.hasOwnProp(n,e)&&(t[e]=n[e])});const{fetch:r,Request:o,Response:i,Blob:s}=t,a=[o,i,r,s];let u,l,c=a.length,d=Gl;for(;c--;)u=a[c],l=d.get(u),void 0===l&&d.set(u,l=c?new Map:Wl(t)),d=l;return l};Kl();const Jl={http:null,xhr:Ol,fetch:{get:Kl}};Xa.forEach(Jl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Yl=e=>`- ${e}`,Xl=e=>Xa.isFunction(e)||null===e||!1===e;var Ql={getAdapter:function(e,t){e=Xa.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){let n;if(r=e[s],o=r,!Xl(r)&&(o=Jl[(n=String(r)).toLowerCase()],void 0===o))throw new gu(`Unknown adapter '${n}'`);if(o&&(Xa.isFunction(o)||(o=o.get(t))))break;i[n||"#"+s]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Yl).join("\n"):" "+Yl(e[0]):"as no adapter specified";throw new gu("There is no suitable adapter to dispatch the request "+t,gu.ERR_NOT_SUPPORT)}return o},adapters:Jl};function Zl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ku(null,e)}function ec(e){return Math.max(0,Date.now()-e)}function tc(e){const t=Xa.toSafeFlatObject(e);Zl(t),t.headers=cu.from(Xa.getSafeProp(t,"headers")),t.data=Wu.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const n=Ql.getAdapter(t.adapter||$u.adapter,t),r=Date.now();return n(t).then(function(e){Zl(t),e.duration=ec(r),t.response=e;try{e.data=Wu.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=cu.from(e.headers),e},function(e){if(!Gu(e)&&(Zl(t),e&&e.response)){e.response.duration=ec(r),t.response=e.response;try{e.response.data=Wu.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=cu.from(e.response.headers)}return Promise.reject(e)})}const nc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const rc={};nc.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Bl+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new gu(r(o," has been removed"+(t?" in "+t:"")),gu.ERR_DEPRECATED);return t&&!rc[o]&&(rc[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)}},nc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var oc={assertOptions:function(e,t,n){if("object"!=typeof e||null===e)throw new gu("options must be an object",gu.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new gu("option "+i+" must be "+n,gu.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new gu("Unknown option "+i,gu.ERR_BAD_OPTION)}},validators:nc};const ic=oc.validators,sc=e=>{if(null==e||Xa.isPlainObject(e)||e instanceof cu)return!0;try{return Xa.isObject(e)&&"AxiosHeaders"===Xa.getSafeProp(e,Symbol.toStringTag)&&["toJSON","set","get","has","delete","clear","normalize","concat","toString",Symbol.iterator].every(t=>Xa.isFunction(Xa.getSafeProp(e,t)))}catch(e){return!1}};let ac=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Cu,response:new Cu}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack;let r="";if("string"==typeof n){const e=n.indexOf("\n");r=-1===e?"":n.slice(e+1)}if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),o=-1===n?r:r.slice(n+1),i=String(e.stack),s=function(e,t){const n=Xa.hasOwnProp(e,hu)&&e[hu];return n&&t.endsWith(n)?t.length-n.length:-1}(e,i),a=-1===s?i:i.slice(0,s),u=-1===s?"":i.slice(s);a.endsWith(o)||(e.stack=a+"\n"+r+u)}}else e.stack=r}catch(e){}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ml(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&oc.assertOptions(n,{silentJSONParsing:ic.transitional(ic.boolean),forcedJSONParsing:ic.transitional(ic.boolean),clarifyTimeoutError:ic.transitional(ic.boolean),legacyInterceptorReqResOrdering:ic.transitional(ic.boolean),advertiseZstdAcceptEncoding:ic.transitional(ic.boolean),validateStatusUndefinedResolves:ic.transitional(ic.boolean),encodeBasicAuthUsername:ic.transitional(ic.boolean)},!1),null!=r&&(Xa.isFunction(r)?t.paramsSerializer={serialize:r}:oc.assertOptions(r,{encode:ic.function,serialize:ic.function},!0)),void 0!==t.allowAbsoluteUrls||(Xa.hasOwnProp(this.defaults,"allowAbsoluteUrls")&&void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),oc.assertOptions(t,{baseUrl:ic.spelling("baseURL"),withXsrfToken:ic.spelling("withXSRFToken")},!0),t.method=(Xa.getSafeProp(t,"method")||Xa.getSafeProp(this.defaults,"method")||"get").toLowerCase();const i=Xa.getSafeProp(o,"common"),s=Xa.getSafeProp(o,t.method),a=o&&Xa.merge(sc(i)?i:void 0,sc(s)?s:void 0);o&&Xa.forEach(Hu.concat("common"),e=>{sc(Xa.getSafeProp(o,e))&&delete o[e]}),t.headers=cu.concat(a,o);const u=[];let l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;const n=t.transitional||Au;n&&n.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)});const c=[];let d;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let f,p=0;if(!l){const e=[tc.bind(this),void 0];for(e.unshift(...u),e.push(...c),f=e.length,d=Promise.resolve(t);p<f;)d=d.then(e[p++],e[p++]);return d}f=u.length;let h=t;for(;p<f;){const e=u[p++],t=u[p++];try{h=e?e(h):h}catch(e){if(!t){d=Promise.reject(e);break}try{const n=t.call(this,e);Xa.isThenable(n)&&(d=Promise.resolve(n).then(()=>tc.call(this,h)))}catch(e){d=Promise.reject(e)}break}}if(!d)try{d=tc.call(this,h)}catch(e){d=Promise.reject(e)}for(p=0,f=c.length;p<f;)d=d.then(c[p++],c[p++]);return d}getUri(e){return ju(ul((e=ml(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};Xa.forEach(["delete","get","head","options"],function(e){ac.prototype[e]=async function(t,n){return this.request(ml(n||{},{method:e,url:t,data:n&&Xa.hasOwnProp(n,"data")?n.data:void 0}))}}),Xa.forEach(["post","put","patch","query"],function(e){function t(t){return async function(n,r,o){return this.request(ml(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ac.prototype[e]=t(),"query"!==e&&(ac.prototype[e+"Form"]=t(!0))});const uc={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(uc).forEach(([e,t])=>{void 0===uc[t]&&(uc[t]=e)});const lc=function e(t){const n=new ac(t),r=ea(ac.prototype.request,n);return Xa.extend(r,ac.prototype,n,{allOwnKeys:!0}),Xa.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ml(t,n))},r}($u);lc.Axios=ac,lc.CanceledError=Ku,lc.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{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 Ku(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},lc.isCancel=Gu,lc.VERSION=Bl,lc.toFormData=_u,lc.AxiosError=gu,lc.Cancel=lc.CanceledError,lc.all=function(e){return Promise.all(e)},lc.spread=function(e){return function(t){return e.apply(null,t)}},lc.isAxiosError=function(e){return Xa.isObject(e)&&!0===e.isAxiosError},lc.mergeConfig=ml,lc.AxiosHeaders=cu,lc.formToJSON=e=>qu(Xa.isHTMLForm(e)?new FormData(e):e),lc.getAdapter=Ql.getAdapter,lc.HttpStatusCode=uc,lc.default=lc;const{Axios:cc,AxiosError:dc,CanceledError:fc,isCancel:pc,CancelToken:hc,VERSION:gc,all:bc,Cancel:yc,isAxiosError:mc,spread:vc,toFormData:_c,AxiosHeaders:wc,HttpStatusCode:Sc,formToJSON:Oc,getAdapter:xc,mergeConfig:jc,create:kc}=lc;function Ec(e,t){return e?Object.keys(e).map(n=>{const r=t||n,o=e[n];return"object"==typeof o?Ec(o,r):`${encodeURIComponent(r)}=${encodeURIComponent(o)}`}).join("&"):""}function Rc(e,t){return lc.get(encodeURI(e)+(t?(-1===e.search(/\?/)?"?":"&")+Ec(t):""),{timeout:1e4,method:"GET",responseType:"json",transitional:{silentJSONParsing:!1},headers:{Accept:"application/json"}}).then(e=>e.data)}function Pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pc(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ac(e,t,n,r,o,i,s,a){const u=e?e.trim():null;if(null==u||u.length<1||s&&!s.test(u))return Promise.resolve([]);const l=i||"https://api.digitransit.fi/geocoding/v1/search";let c=Cc(Cc(Cc({text:u},t),r),{},{lang:n});if(o&&(c=Cc(Cc({},c),{},{sources:o})),a){const e=a.toString();c=Cc(Cc({},c),{},{layers:e})}return Rc(l,c).then(e=>e.features)}function Tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mc(e,t){if(!e||e.length<1)return Promise.resolve([]);let n="";const r=e.map(e=>{const t="stop"===e.type?"stop":"station";let r=`gtfs${e.gtfsId.split(":")[0].toLowerCase()}:${t}:GTFS:${e.gtfsId}`;return e.code&&(r+=`#${e.code}`),n+=`${r},`,Nc(Nc({},e),{},{gid:r})}).reduce(function(e,t){return e[t.gid]=t,e},{});return Rc(t,{ids:n.slice(0,-1)}).then(e=>e.features.map(e=>({type:"FavouriteStop",properties:{addendum:e.properties.addendum,gid:r[e.properties.gid].gid,code:r[e.properties.gid].code,gtfsId:r[e.properties.gid].gtfsId,lastUpdated:r[e.properties.gid].lastUpdated,favouriteId:r[e.properties.gid].favouriteId,address:e.properties.label,layer:Ks(e.properties)?"favouriteStop":"favouriteStation"},geometry:e.geometry})))}function Lc(e,t,n){let r=Zs(e,t,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return n&&(r=r.filter(e=>!n.includes(e.properties.layer))),Promise.resolve(Be(r,10).map(e=>{const t=Nc(Nc({},e),{},{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete t.properties.confidence,t}))}const Ic=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE","route-FUNICULAR"],Fc=["venue","address","street"],Dc=["carpark","bikepark"],Uc=["stop","station"];const zc=Oe(function(e,t,n,r,o,i,{input:s},a,u,l){const{getPositions:c,getFavouriteLocations:d,getOldSearches:f,getFavouriteStops:p,parkingAreaSources:h,getLanguage:g,getStopAndStationsQuery:b,getFavouriteVehicleRentalStationsQuery:y,getFavouriteVehicleRentalStations:m,getFavouriteRoutesQuery:v,getFavouriteRoutes:_,getRoutesQuery:w,context:S,isPeliasLocationAware:O,minimalRegexp:x,lineRegexp:j,URL_PELIAS:k,URL_PELIAS_PLACE:E,feedIDs:R,geocodingSearchParams:P,geocodingSources:C,getFutureRoutes:A,cityBikeNetworks:T}=r,N=!e||0===e.length,M=!t||0===t.length,L=c(S),I=[],F={type:"all",term:s,results:[]},D=g(S),U=O&&l?.lat&&l?.lon?{"focus.point.lat":l.lat.toFixed(3),"focus.point.lon":l.lon.toFixed(3)}:{},z=n?n.split("-")[1]:void 0;if(e.includes("CurrentPosition")&&"geolocation-not-supported"!==L.status&&I.push(function(e,t){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"CurrentLocation",address:t.address,lat:t.lat,lon:t.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:t.address,lat:t.lat,lon:t.lon},geometry:{type:"Point",coordinates:[t.lon,t.lat]}}]):Promise.resolve([])}(s,L)),(N||e.includes("MapPosition"))&&I.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromMap",address:"SelectFromMap",lat:null,lon:null,properties:{labelId:"select-from-map",layer:"selectFromMap",address:"SelectFromMap",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(s)),e.includes("FutureRoutes")){const e=A(S);I.push(Be(e,3))}if(e.includes("SelectFromOwnLocations")&&function(e){const t=e.getFavouriteLocations(e.context);if(t?.length>0)return!0;if("function"==typeof e.getHasOtpLocationFavourites)return!!e.getHasOtpLocationFavourites(e.context);const n=e.getFavouriteVehicleRentalStations(e.context);if(n?.length>0)return!0;const r=e.getFavouriteStops(e.context);return r?.length>0}(r)&&I.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromOwnLocations",address:"SelectFromOwnLocations",lat:null,lon:null,properties:{labelId:"select-from-own-locations",layer:"ownLocations",address:"selectFromOwnLocations",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(s)),N||e.includes("Locations")){const n=P;if(t.includes("Favourite")){const e=d(S);I.push(function(e,t){return Promise.resolve(Zs(e,t,["address","name"]).map(e=>({type:"FavouritePlace",properties:Nc(Nc({},e),{},{label:e.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[e.lon,e.lat]}})))}(e,s)),t.includes("Back")&&I.push(Promise.resolve([{type:"back",address:"back",lat:null,lon:null,properties:{labelId:"back",layer:"back",address:"back",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]))}if(M||t.includes("Datasource")){const t=["venue","address","street"];e.includes("Stations")&&t.push("station"),I.push(Ac(s,n,D,U,C.join(","),k,x,t))}if(M||t.includes("History")){const e=f("endpoint"),t=["bikestation"];t.push(...Uc),t.push(...Ic),t.push(...Dc),I.push(Lc(e,s,t))}}if(N||e.includes("ParkingAreas")){if(M||t.includes("Datasource")){const e=P;i&&10!==i&&(e.size=i);const t=["carpark","bikepark"],n=h?h.join(","):null;I.push(Ac(s,e,D,U,n,k,x,t).then(e=>o?o(e,z):e))}if(M||t.includes("History")){const e=f(),t=["bikestation"];t.push(...Uc),t.push(...Ic),t.push(...Fc),I.push(Lc(e,s,t))}}const B=e.includes("Stops"),q=e.includes("Stations");if(N||B||q){if(t.includes("Favourite")){const e=p(S);let t;t=e.every(e=>"station"===e.type)?Mc(e,E).then(e=>o?o(e,z):e):b(e).then(e=>Mc(e,E)).then(e=>o?o(e,z):e),I.push(function(e,t,n,r){return e.then(e=>Zs(e.filter(e=>"stop"===e.type?n:r),t,["properties.name","properties.name","properties.address"]))}(t,s,B,q))}if(M||t.includes("Datasource")){const t=[];B&&t.push("stop"),q&&t.push("station");const n=i&&10!==i?{size:i}:{};P&&P["boundary.country"]&&(n["boundary.country"]=P["boundary.country"]),(N||e.includes("Locations"))&&(n.dedupestops=1);const r=R.map(e=>`gtfs${e}`).join(",");I.push(Ac(s,n,D,U,r,k,x,t).then(e=>o?o(e,z):e))}if(M||t.includes("History")){const e=f().filter(e=>!e.properties.gid||e.properties.gid.includes("GTFS:")),t=["bikestation"];t.push(...Ic),t.push(...Fc),t.push(...Dc),B||t.push("stop"),q||t.push("station"),n?I.push(Lc(e,s,t).then(e=>o?o(e,z):e)):I.push(Lc(e,s,t))}}if(N||e.includes("Routes")){if(t.includes("Favourite")){const e=_(S);I.push(v(e,s,z,u).then(e=>o?o(e,z,"Routes"):e))}if(I.push(w(s,R,n,u).then(e=>o?o(e,z,"Routes"):e)),M||t.includes("History")){const e=f(),t=["bikestation"];n&&t.push(...Ic.filter(e=>!(e===n))),t.push(...Uc),t.push(...Fc),t.push(...Dc),I.push(Lc(e,s,t).then(e=>o?o(e,z,"Routes"):e))}}if(N||e.includes("VehicleRentalStations")){if(t.includes("Favourite")){const e=m(S);I.push(y(e,s))}if(M||t.includes("Datasource")){const e=["bikestation"],t=i&&10!==i?{size:i}:{};I.push(Ac(s,t,D,U,T.join(","),k,x,e).then(e=>o?o(e,z,"VehicleRentalStations"):e))}if(M||t.includes("History")){const e=f(),t=[...Uc];t.push(...Ic),t.push(...Fc),t.push(...Dc),I.push(Lc(e,s,t))}}Promise.all(I).then(Ie).then(e=>{F.results=e}).catch(e=>{F.error=e}).then(()=>{a(Nc(Nc({},F),{},{results:Ys(j,F.results,s)}))})},300,{leading:!0}),Bc=u.createInstance({fallbackLng:"fi",resources:{de:{translation:{"add-via-button-label":"Füge Zwischenziel hinzu","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",address:"Adresse","address-place-or-business":"Adress, Ort or Geschäft",airplane:"Flug",arrival:"Ankunft",back:"Zurück",bikerentalstation:"Leihrad-Station",bus:"Bus",cancel:"Abbrechen","clear-button-label":"Löschen","clear-search-history":"Suchhistorie löschen",currentposition:"Aktuelle Position",delete:"Löschen","delete-old-searches-header":"Wollen Sie die Such-Historie löschen?",departure:"Abfahrt",destination:"Ziel",favourite:"Favoriten",ferry:"Fähre","future-route":"Zukünftige Verbindung","give-destination":"Ziel eingeben.","give-origin":"Start eingeben.",loading:"Laden...","minute-short":"min",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Eigene Favoriten",place:"Ort",rail:"Zug",search:"Suche","search-address-or-place":"Suche anhand von Adresse oder Ortsangabe","search-autosuggest-label":"Venue, place and stopsearch.","search-autosuggest-label-instructions-desktop":"Navigate list with arrow keys and select with enter key.","search-autosuggest-label-instructions-mobile":"Enter the location and navigate in the list by swiping.","search-autosuggest-label-move-to-destination":"After selecting the starting location you are automatically moved to the destination field.","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-button-label":"Suche","search-current-suggestion":"Aktuelle Auswahl: {{selection}}","search-destination":"Suche Zielort, Linie or Haltestelle","search-destination-index":"Zielort eingeben","search-destination-results-but-no-search":"Ergebnisse in “Zielort”-Reiter anzeigen","search-no-results":"Kein Ort gefunden.","search-origin":"Suche Startort, Linie oder Haltestelle","search-origin-index":"Startort eingeben","search-position":"Standort ermitteln","select-from-map":"Wähle Position anhand Karte","select-from-own-locations":"Aus eigenen Favoriten auswählen",station:"Station",stop:"Haltestelle","stop-near-you":"Suche Haltestellen und Linien in der Nähe","stop-near-you-bus":"Suche Buslinien or Haltestellen","stop-near-you-citybike":"Suche Leihrad-Stationen","stop-near-you-rail":"Suche Zugverbindungen oder Bahnhöfe","stop-near-you-subway":"Suche U-Bahn-Linien oder Haltestellen","stop-near-you-tram":"Suche Stadtbahn-Haltestellen-Suche",street:"Straße",subway:"U-Bahn","today-at":"Heute um","tomorrow-at":"Morgen um",tram:"Straßenbahn","use-own-position":"Benutze aktuellen Standort",venue:"Venue","via-point":"Zwischenziel",where:"Wohin?"}},en:{translation:{"add-via-button-label":"Add via point","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",address:"Address","address-place-or-business":"Address, place or business",airplane:"Flight",arrival:"Arrival",back:"Back",bikepark:"Park & Ride for bikes",bikerentalstation:"Bike station",bus:"bus",cancel:"Cancel",carpark:"Park & Ride","clear-button-label":"Clear","clear-search-history":"Clear search history",currentposition:"Current position",delete:"Delete","delete-old-searches-header":"Do you want to clear the search history?",departure:"Departure",destination:"Destination",favourite:"Favourite",ferry:"Ferry","future-route":"Future route","give-destination":"Enter your destination","give-origin":"Enter your origin.",loading:"Loading...","minute-short":"m",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Own locations",place:"Location",platform:"Platform",rail:"Train",required:"required field",search:"Search","search-address-or-place":"Search by address or place name","search-autosuggest-label":"Venue, place and stopsearch.","search-autosuggest-label-instructions-desktop":"Navigate list with arrow keys and select with enter key.","search-autosuggest-label-instructions-mobile":"Enter the location and navigate in the list by swiping.","search-autosuggest-label-move-to-destination":"After selecting the starting location you are automatically moved to the destination field.","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-button-label":"Search","search-current-suggestion":"Current selection: {{selection}}","search-destination":"Search destination, route or stop","search-destination-index":"Enter destination","search-destination-results-but-no-search":"View results in the adjacent “Destination” tab","search-no-results":"No location","search-origin":"Search origin, route or stop","search-origin-index":"Enter origin","search-position":"Detect location","select-from-map":"Select position from map","select-from-own-locations":"Select from own locations",station:"Station",stop:"Stop","stop-near-you":"Search stops and routes","stop-near-you-airplane":"Search flights or airports","stop-near-you-bikepark":"Search bike parks","stop-near-you-bus":"Search bus routes or stops","stop-near-you-carpark":"Search car parks","stop-near-you-citybike":"Search city bike stations","stop-near-you-rail":"Search train routes or stations","stop-near-you-subway":"Search metro routes or stations ","stop-near-you-tram":"Search tram routes or stops","stop-route-station":"Bus and stop search","stop-status-alert":"Service alert at stop","stop-status-info":"Notice at stop","stop-status-no-service-today":"No departures today","stop-status-out-of-service":"Stop out of service",street:"Street",subway:"Metro","today-at":"today at","tomorrow-at":"tomorrow at",track:"Track",tram:"Tram","use-own-position":"Use current location",venue:"Venue","via-point":"Via point",where:"Where to?"}},fi:{translation:{"add-via-button-label":"Lisää välipiste","add-via-duration-button-label":"Aseta välipisteelle {{index}} pysähdyksen kesto","add-via-duration-button-label-close":"Avaa välipisteen {{index}} pysähdyksen kesto valitsin","add-via-duration-button-label-open":"Sulje välipisteen {{index}} pysähdyksen kesto valitsin",address:"Osoite","address-place-or-business":"Osoite, paikka tai yritys",airplane:"Lentokone",arrival:"Perillä",back:"Takaisin",bikepark:"Liityntäpysäköinti",bikerentalstation:"Pyöräasema",bus:"bussi",cancel:"Peruuta",carpark:"Liityntäpysäköinti","clear-button-label":"Tyhjennä","clear-search-history":"Tyhjennä hakuhistoria",currentposition:"Tämänhetkinen sijainti",delete:"Poista","delete-old-searches-header":"Haluatko tyhjentää hakuhistorian?",departure:"Lähtöaika",destination:"Määränpää",favourite:"Suosikki",ferry:"Lautta","future-route":"Tuleva reitti","give-destination":"Määränpää","give-origin":"Lähtöpaikka",loading:"Ladataan...","minute-short":"min",origin:"Lähtöpaikka","origin-stop-near-you":"Lähtöpaikka",ownlocations:"Omat paikat",place:"Paikka",platform:"Laituri",rail:"Juna",required:"pakollinen kenttä",search:"Etsi","search-address-or-place":"Hae osoitteella tai paikan nimellä","search-autosuggest-label":"Paikka, linja ja pysäkkihaku.","search-autosuggest-label-instructions-desktop":"Navigoi listassa nuolinäppäimillä ja valitse enterillä.","search-autosuggest-label-instructions-mobile":"Syötä sijainti ja navigoi listassa pyyhkäisemällä.","search-autosuggest-label-move-to-destination":"Valittuasi lähtöpaikan siirrytään suoraan määränpää-kenttään.","search-autosuggest-len":" Löydettiin {{count}} ehdotus","search-autosuggest-len_plural":" Löydettiin {{count}} ehdotusta","search-button-label":"Hae","search-current-suggestion":"Tämänhetkinen valinta: {{selection}}","search-destination":"Hae määränpäätä, linjaa tai pysäkkiä","search-destination-index":"Syötä määränpää","search-destination-results-but-no-search":"Katso tulokset viereiseltä Määränpää-välilehdeltä","search-no-results":"Ei tuloksia","search-origin":"Hae lähtöpaikkaa, linjaa tai pysäkkiä","search-origin-index":"Syötä lähtöpaikka","search-position":"Paikanna","select-from-map":"Valitse sijainti kartalta","select-from-own-locations":"Valitse omista paikoista",station:"Asema",stop:"Pysäkki","stop-near-you":"Linja, pysäkki tai asema","stop-near-you-airplane":"Hae lentoja tai lentoasemaa","stop-near-you-bikepark":"Hae pyöräparkkia","stop-near-you-bus":"Hae bussilinjaa tai pysäkkiä","stop-near-you-carpark":"Hae autoparkkia","stop-near-you-citybike":"Hae kaupunkipyöräasemaa","stop-near-you-rail":"Hae lähijunaa tai asemaa","stop-near-you-subway":"Hae metrolinjaa tai asemaa","stop-near-you-tram":"Hae raitiolinjaa tai pysäkkiä","stop-route-station":"Linja- ja pysäkkihaku","stop-status-alert":"Häiriö pysäkillä","stop-status-info":"Tiedote pysäkillä","stop-status-no-service-today":"Ei lähtöjä tänään","stop-status-out-of-service":"Pysäkki poissa käytöstä",street:"Katu",subway:"Metro","today-at":"tänään klo","tomorrow-at":"huomenna klo",track:"Raide",tram:"Raitiovaunu","use-own-position":"Käytä nykyistä sijaintia",venue:"Paikka","via-point":"Välipiste",where:"Minne mennään?"}},pl:{translation:{"add-via-button-label":"Dodaj punkt pośredni","add-via-duration-button-label":"Wybierz czas postoju dla punktu {{index}}","add-via-duration-button-label-close":"Zamknij wybornik czasu postoju w punkcie {{index}}","add-via-duration-button-label-open":"Otwórz wybornik czasu postoju w punkcie {{index}}",address:"Adres","address-place-or-business":"Adres, miejsce lub firma",airplane:"Lot",arrival:"Przyjazd",back:"Wróć",bikepark:"Parkuj i Jedź dla rowerów",bikerentalstation:"Stacja rowerowa",bus:"autobus",cancel:"Anuluj",carpark:"Parkuj i Jedź","clear-button-label":"Wyczyść","clear-search-history":"Wyczyść historię wyszukiwania",currentposition:"Obecne położenie",delete:"Usuń","delete-old-searches-header":"Czy na pewno chcesz wyczyścić historię wyszukiwania?",departure:"Odjazd",destination:"Cel",favourite:"Ulubione",ferry:"Prom","future-route":"Przyszła trasa","give-destination":"Wprowadź swój cel","give-origin":"Wprowadź swój punkt początkowy.",loading:"Ładowanie…","minute-short":"min.",origin:"Początek","origin-stop-near-you":"Początek",ownlocations:"Własne miejsca",place:"Miejsce",platform:"Peron",rail:"Pociąg",required:"wymagane pole",search:"Szukaj","search-address-or-place":"Szukaj po adresie lub nazwie miejsca","search-autosuggest-label":"Miejsce, lokalizacja i przystanek.","search-autosuggest-label-instructions-desktop":"Nawiguj po liście używając strzałek i wybieraj klawiszem Enter.","search-autosuggest-label-instructions-mobile":"Wprowadź lokalizację i nawiguj po liście gestami przesuwania.","search-autosuggest-label-move-to-destination":"Po wybraniu lokalizacji początkowej, automatycznie przejdziesz do pola miejsca docelowego.","search-autosuggest-len":"Dostępna jest {{count}} propozycja","search-autosuggest-len_few":"Dostępne są {{count}} propozycje","search-autosuggest-len_other":"Dostępne jest {{count}} propozycji","search-button-label":"Szukaj","search-current-suggestion":"Obecny wybór: {{selection}}","search-destination":"Szukaj celu, trasy lub przystanku","search-destination-index":"Wprowadź punkt docelowy","search-destination-results-but-no-search":"Wyświetl wyniki w sąsiedniej karcie „Cel”","search-no-results":"Brak lokalizacji","search-origin":"Wyszukaj początek, koniec lub punkt pośredni","search-origin-index":"Wprowadź punkt początkowy","search-position":"Wykryj lokalizację","select-from-map":"Wybierz miejsce na mapie","select-from-own-locations":"Wybierz z własnych miejsc",station:"Stacja",stop:"Przystanek","stop-near-you":"Szukaj przystanków i tras","stop-near-you-airplane":"Szukaj lotów i lotnisk","stop-near-you-bus":"Szukaj tras autobusowych i przystanków","stop-near-you-citybike":"Szukaj stacji rowerów miejskich","stop-near-you-rail":"Szukaj tras kolejowych i przystanków","stop-near-you-subway":"Szukaj tras metra i przystanków ","stop-near-you-tram":"Szukaj tras tramwajowych i przystanków","stop-route-station":"Wyszukiwanie autobusów i przystanków","stop-status-alert":"Utrudnienie na przystanku","stop-status-info":"Komunikat na przystanku","stop-status-no-service-today":"Dziś brak odjazdów","stop-status-out-of-service":"Przystanek nieczynny",street:"Ulica",subway:"Metro","today-at":"dziś o","tomorrow-at":"jutro o",track:"Tor",tram:"Tramwaj","use-own-position":"Użyj obecnej lokalizacji",venue:"Miejsce","via-point":"Przez punkt",where:"Dokąd?"}},sv:{translation:{"add-via-button-label":"Lägg till viapunkt","add-via-duration-button-label":"Ställ in varaktighet för viapunkten {{index}}","add-via-duration-button-label-close":"Stäng väljaren för varaktighet vid via-punkten {{index}}","add-via-duration-button-label-open":"Öppna väljaren för varaktighet vid via-punkten {{index}}",address:"Adress","address-place-or-business":"Adress, plats eller företag",airplane:"Flyg",arrival:"Anländer",back:"Tillbaka",bikepark:"Anslutningsparkering för cyklar",bikerentalstation:"Stadscykelstation",bus:"Bussi",cancel:"Avbryt",carpark:"Infartsparkering","clear-button-label":"Töm","clear-search-history":"Töm sökhistoriken",currentposition:"Nuvarande position",delete:"Ta bort","delete-old-searches-header":"Vill du tömma sökhistoriken?",departure:"Avgångstid",destination:"Destination",favourite:"Favorit",ferry:"Färja","future-route":"Framtida rutt","give-destination":"Skriv in din destination","give-origin":"Skriv in din avfärdsplats",loading:"Laddar...","minute-short":"min",origin:"Avfärdsplats","origin-stop-near-you":"Avfärdsplats",ownlocations:"Egna platser",place:"Plats",platform:"Plattform",rail:"Tåg",required:"obligatoriskt fält",search:"Sök","search-address-or-place":"Sök med adressen eller platsens namn","search-autosuggest-label":"Plats, linje och hållplatssökning.","search-autosuggest-label-instructions-desktop":"Navigera listan med piltangenterna och välj med Enter-tangeten.","search-autosuggest-label-instructions-mobile":"Ange platsen och navigera i listan genom att svepa.","search-autosuggest-label-move-to-destination":"Efter att du valt avgångsplatsen tas du direkt till Destination-fältet.","search-autosuggest-len":"Hittade {{count}} förslag","search-autosuggest-len_plural":"Hittade {{count}} förslag","search-button-label":"Sök","search-current-suggestion":"Nuvarande val: {{selection}}","search-destination":"Sök destination, linje eller hållplats","search-destination-index":"Skriv destination","search-destination-results-but-no-search":"Se resultaten under fliken Destination","search-no-results":"Inga sökresultat","search-origin":"Sök avfärdsplats, linje eller hållplats","search-origin-index":"Skriv avfärdsplats","search-position":"Sök position","select-from-map":"Välj position från kartan","select-from-own-locations":"Välj från egna platser",station:"Station",stop:"Hållplats","stop-near-you":"Sök hållplatser eller linjer","stop-near-you-airplane":"Sök flyg eller flygplatser","stop-near-you-bikepark":"Sök cykelparkering","stop-near-you-bus":"Sök busslinjer eller hållplatser","stop-near-you-carpark":"Sök anslutningsparkering","stop-near-you-citybike":"Sök stadscykelstationer","stop-near-you-rail":"Sök närtåger eller stationer","stop-near-you-subway":"Sök metrolinjer eller stationer","stop-near-you-tram":"Sök spårvagnlinjer eller hållplatser","stop-route-station":"Buss och stopp sökningen","stop-status-alert":"Störning vid hållplatsen","stop-status-info":"Meddelande vid hållplatsen","stop-status-no-service-today":"Inga avgångar idag","stop-status-out-of-service":"Hållplats ur bruk",street:"Gata",subway:"Metro","today-at":"i dag kl","tomorrow-at":"i morgon",track:"Spår",tram:"Spårvagn","use-own-position":"Använd min position",venue:"Mötesplats","via-point":"Via punkt",where:"Vart vill du åka?"}}},defaultNS:"translation",react:{useSuspense:!0}});function qc(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Bc.init();var Hc,Vc,$c,Wc,Gc={container:"styles_container__YKW96",input:"styles_input__--GRS",favourite:"styles_favourite__VJm6c",thin:"styles_thin__dDVH9",hasValue:"styles_hasValue__JCbDo",suggestionsContainerOpen:"styles_suggestionsContainerOpen__ARBAD",suggestionsContainer:"styles_suggestionsContainer__FCLTy",suggestionsList:"styles_suggestionsList__uyd8R",suggestion:"styles_suggestion__yZzst",suggestionHighlighted:"styles_suggestionHighlighted__4-yqj","autosuggest-input-container":"styles_autosuggest-input-container__d7zo4",origin:"styles_origin__3BSEn",destination:"styles_destination__VSQ-a","stop-route-station":"styles_stop-route-station__Gcetf","autosuggest-input-icon":"styles_autosuggest-input-icon__4ww0f","origin-stop-near-you":"styles_origin-stop-near-you__NhZ-N","clear-input":"styles_clear-input__CYTYl","sr-only":"styles_sr-only__N8Ha-",hidden:"styles_hidden__iNw4s"};qc("input[type=text] {\n margin: 0;\n}\n\n.styles_container__YKW96 {\n display: flex;\n width: 100%;\n}\n.styles_container__YKW96 .styles_input__--GRS.styles_favourite__VJm6c {\n padding-left: 47px;\n}\n.styles_container__YKW96 .styles_input__--GRS.styles_thin__dDVH9 {\n height: 34px;\n}\n.styles_container__YKW96 .styles_input__--GRS {\n font-size: 16px;\n font-family: inherit;\n display: flex;\n width: 100%;\n height: 44px;\n border-radius: 5px;\n border: solid 1px #888;\n background-color: #fff;\n padding-left: 50px;\n padding-right: 44px;\n line-height: 1.2;\n letter-spacing: -0.5px;\n color: #333;\n box-sizing: border-box;\n -webkit-appearance: none;\n appearance: none;\n}\n.styles_container__YKW96 .styles_input__--GRS:focus {\n background: #fff;\n outline: none;\n border: solid 1px var(--color);\n box-shadow: 0 0 2px 1px var(--hover-color);\n}\n@media screen and (min-width: 768px) {\n .styles_container__YKW96 .styles_input__--GRS {\n font-size: 15px;\n height: 44px;\n padding-left: 49px;\n }\n}\n.styles_container__YKW96 .styles_input__--GRS::placeholder {\n color: #666;\n opacity: 1;\n font-size: 15px;\n}\n\n.styles_hasValue__JCbDo {\n color: #333;\n}\n\n.styles_suggestionsContainerOpen__ARBAD {\n width: 100%;\n max-height: 44vh;\n border-radius: 5px;\n box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);\n border: solid 1px rgba(0, 0, 0, 0.1);\n overflow-x: hidden;\n overflow-y: scroll;\n position: absolute;\n background-color: white;\n top: calc(2.625rem + 9px);\n z-index: 20;\n}\n\n.styles_suggestionsContainer__FCLTy {\n background-color: white;\n z-index: 20;\n}\n.styles_suggestionsContainer__FCLTy .styles_suggestionsList__uyd8R {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background: white;\n}\n.styles_suggestionsContainer__FCLTy .styles_suggestionsList__uyd8R li:hover {\n background: #f2f5f7;\n}\n\n.styles_suggestion__yZzst {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n cursor: pointer;\n list-style: none;\n display: block;\n overflow-x: hidden;\n overflow-y: hidden;\n white-space: nowrap;\n z-index: 20;\n}\n\n.styles_suggestionHighlighted__4-yqj {\n background-color: #f2f5f7;\n outline: 1px solid var(--accessible-primary-color, #000);\n outline-offset: -1px;\n border-radius: 4px;\n}\n\n.styles_autosuggest-input-container__d7zo4 {\n position: relative;\n width: 100%;\n}\n.styles_autosuggest-input-container__d7zo4.styles_origin__3BSEn {\n z-index: 16;\n}\n.styles_autosuggest-input-container__d7zo4.styles_destination__VSQ-a {\n z-index: 10;\n}\n.styles_autosuggest-input-container__d7zo4.styles_stop-route-station__Gcetf {\n z-index: 9;\n}\n\n.styles_autosuggest-input-icon__4ww0f {\n display: flex;\n position: absolute;\n align-items: center;\n width: 16px;\n height: 100%;\n margin-top: 0;\n margin-left: 19px;\n}\n.styles_autosuggest-input-icon__4ww0f svg {\n width: 16px;\n height: 24px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_origin__3BSEn svg {\n color: #4ea700;\n fill: #4ea700;\n width: 16px;\n height: 16px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_destination__VSQ-a svg {\n fill: #ec5188;\n width: 16px;\n height: 24px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_stop-route-station__Gcetf svg, .styles_autosuggest-input-icon__4ww0f.styles_favourite__VJm6c svg {\n fill: #888;\n width: 16px;\n height: 16px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_origin-stop-near-you__NhZ-N svg {\n fill: #888;\n width: 16px;\n height: 16px;\n}\n\nbutton.styles_clear-input__CYTYl {\n display: flex;\n position: absolute;\n padding: 14px 0;\n right: 0;\n width: 44px;\n height: 100%;\n color: var(--color);\n outline: none;\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none;\n}\nbutton.styles_clear-input__CYTYl svg {\n fill: var(--color);\n width: 16px;\n height: 16px;\n}\nbutton.styles_clear-input__CYTYl:focus {\n background-color: transparent;\n color: inherit;\n /* First apply outline that is used in Edge and Firefox */\n /* Then override outline for webkit browsers like Chrome, this has no effect on other browsers */\n outline: 5px auto -webkit-focus-ring-color;\n}\nbutton.styles_clear-input__CYTYl:active {\n background-color: transparent;\n color: inherit;\n}\nbutton.styles_clear-input__CYTYl:hover {\n background-color: transparent;\n color: inherit;\n}\n\n.styles_sr-only__N8Ha-:not(:focus, :active) {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.styles_hidden__iNw4s {\n visibility: hidden;\n}"),function(){if(Vc)return Hc;Vc=1;var e=zi();Hc=function(t,n){return e(t,n)}}();var Kc=function(){if(Wc)return $c;Wc=1;var e=Sr(),t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);return $c=function(r){return(r=e(r))&&n.test(r)?r.replace(t,"\\$&"):r}}(),Jc=Q(Kc);const Yc=e=>e.localadmin||e.localadmin||e.address&&e.address.lastIndexOf(",")<e.address.length-2&&e.address.substring(e.address.lastIndexOf(",")+2)||"",Xc=({id:e,code:t})=>t||(void 0!==e&&void 0!==e.indexOf&&-1!==e.indexOf("#")?e.substring(e.indexOf("#")+1):void 0),Qc=(e,t=!1)=>{switch(e.layer){case"currentPosition":return[e.labelId,e.address];case"selectFromMap":case"ownLocations":case"back":return[e.labelId];case"favouritePlace":return n=e.name,r=e.address,[n||r&&r.split(",")[0],"string"==typeof r?r.replace(new RegExp(`${Jc(n)}([ ,]|$)+`),""):""];case"favouriteVehicleRentalStation":case"bikestation":return[e.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-FUNICULAR":case"route-AIRPLANE":return!t&&e.shortName?[e.gtfsId,e.mode.toLowerCase(),e.longName]:[e.shortName,e.longName,e.agency?e.agency.name:void 0];case"venue":case"address":case"street":return[e.name,e.label.replace(new RegExp(`${Jc(e.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return t?[e.name||e.label||e.address&&e.address.split(",")[0],Yc(e)]:[e.name,e.id,Xc(e),Yc(e)];default:return[e.name||e.label||e.address&&e.address.split(",")[0],Yc(e)]}var n,r};const Zc=e=>e.scrollIntoView({block:"nearest"}),ed=e=>{const t=e&&(e.key||e.which||e.keyCode)||"";return!(!t||![13," ","Spacebar"].concat([32,"Enter"]).includes(t))&&(e.preventDefault(),!0)},td=e=>"origin"===e||"destination"===e||"via-point"===e||"origin-stop-near-you"===e,nd=(e,t,n)=>{if(!n)return;if(!e||!e.GTFS.platform)return;const{modes:r,platform:o}=e.GTFS;return[r&&"RAIL"===r[0]?n("track",{lng:t}):n("platform",{lng:t}),o]};function rd(e,t,n){if(!n)return;if("FutureRoute"!==e.type){if("SelectFromMap"===e.type)return["",n("select-from-map",{lng:t})];if("CurrentLocation"===e.type)return["",n("use-own-position",{lng:t})];if("SelectFromOwnLocations"===e.type)return["",n("select-from-own-locations",{lng:t})];let r,[o,i]=Qc(e.properties,!0);if(e.properties.layer.toLowerCase().includes("bikerental")||e.properties.layer.toLowerCase().includes("bikestation")){r=n("bikerentalstation",{lng:t});return[r,o,void 0,e.properties.labelId]}if("bikepark"===e.properties.layer)return r=n("bikepark",{lng:t}),[r,o,void 0,void 0];if("carpark"===e.properties.layer)return r=n("carpark",{lng:t}),[r,o,void 0,void 0];if(e.properties.mode)r=n(e.properties.mode.toLowerCase().replace("favourite",""),{lng:t});else{r=n(e.properties.layer.replace("route-","").toLowerCase().replace("favourite",""),{lng:t})}if(e.properties.id&&("stop"===e.properties.layer||"station"===e.properties.layer)){const s=Xc(e.properties),a=e.properties.addendum?.GTFS.modes,u=nd(e.properties.addendum,t,n);return[r,Xs(o,s),i,s,a,u]}if("favouriteStop"===e.properties.layer||"favouriteStation"===e.properties.layer){const{address:n,code:s}=e.properties;return[r,n?Xs(n.split(",")[0],s):o,i,s,void 0,nd(e.properties.addendum,t)]}return[r,o,i]}const{origin:r,destination:o}=e.properties,i=r.locality?`, ${r.locality} foobar`:"",s=o.locality?`, ${o.locality}`:"",a=r.name,u=o.name;return[n("future-route",{lng:t}),`${n("origin",{lng:t})} ${a}${i} ${n("destination",{lng:t})} ${u}${s}`,e.translatedText]}function od(e,t,n){if(!n)return;const r=l.DateTime.fromSeconds(Number(e.properties.time)),o=l.DateTime.now();let i=e.properties.arriveBy?n("arrival",{lng:t}):n("departure",{lng:t});return i=r.hasSame(o,"day")?`${i} ${n("today-at")}`:r.hasSame(o.plus({days:1}),"day")?`${i} ${n("tomorrow-at",{lng:t})}`:`${i} ${r.toFormat("ccc d.L.")}`,i=`${i} ${r.toFormat("HH:mm")}`,i}const id=e=>"SelectFromOwnLocations"===e.type||"back"===e.type?"":function(e){const t=Qc(e,!0);switch(e.layer){case"selectFromMap":case"currentPosition":case"ownLocations":case"back":return t[1]||t[0];case"favouriteVehicleRentalStation":case"favouritePlace":return t[0];default:return t.length>1&&""!==t[1]?t.join(", "):t[1]||t[0]}}(e.properties),sd=({suggestions:e,t:t,lng:n})=>{let r=[];const o=e[0];return o&&(o.type&&o.type.includes("Favourite")&&r.push(t("favourite",{lng:n})),r=r.concat(rd(e[0],n))),[...new Set(r)].join(" - ")};var ad,ud={exports:{}};
2
+ /*! For license information please see index.js.LICENSE.txt */var ld=(ad||(ad=1,function(e){var t;"undefined"!=typeof self&&self,e.exports=(t=H.default,function(){var e={888:function(e,t,n){var r,o;o=void 0!==n.g?n.g:"undefined"!=typeof window?window:this,r=function(){return function(e){var t={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},n=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}}),e},r=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),r=n.length,o=-1,i="",s=n.charCodeAt(0);++o<r;){if(0===(t=n.charCodeAt(o)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");i+=t>=1&&t<=31||127==t||0===o&&t>=48&&t<=57||1===o&&t>=48&&t<=57&&45===s?"\\"+t.toString(16)+" ":t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(o):"\\"+n.charAt(o)}return"#"+i},o=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},i=function(t){return t?(n=t,parseInt(e.getComputedStyle(n).height,10)+t.offsetTop):0;var n},s=function(t,n,r){0===t&&document.body.focus(),r||(t.focus(),document.activeElement!==t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),e.scrollTo(0,n))},a=function(t,n,r,o){if(n.emitEvents&&"function"==typeof e.CustomEvent){var i=new CustomEvent(t,{bubbles:!0,detail:{anchor:r,toggle:o}});document.dispatchEvent(i)}};return function(u,l){var c,d,f,p,h={cancelScroll:function(e){cancelAnimationFrame(p),p=null,e||a("scrollCancel",c)},animateScroll:function(r,u,l){h.cancelScroll();var d=n(c||t,l||{}),g="[object Number]"===Object.prototype.toString.call(r),b=g||!r.tagName?null:r;if(g||b){var y=e.pageYOffset;d.header&&!f&&(f=document.querySelector(d.header));var m,v,_,w=i(f),S=g?r:function(t,n,r,i){var s=0;if(t.offsetParent)do{s+=t.offsetTop,t=t.offsetParent}while(t);return s=Math.max(s-n-r,0),i&&(s=Math.min(s,o()-e.innerHeight)),s}(b,w,parseInt("function"==typeof d.offset?d.offset(r,u):d.offset,10),d.clip),O=S-y,x=o(),j=0,k=function(e,t){var n=t.speedAsDuration?t.speed:Math.abs(e/1e3*t.speed);return t.durationMax&&n>t.durationMax?t.durationMax:t.durationMin&&n<t.durationMin?t.durationMin:parseInt(n,10)}(O,d),E=function(t){m||(m=t),j+=t-m,_=y+O*function(e,t){var n;return"easeInQuad"===e.easing&&(n=t*t),"easeOutQuad"===e.easing&&(n=t*(2-t)),"easeInOutQuad"===e.easing&&(n=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e.easing&&(n=t*t*t),"easeOutCubic"===e.easing&&(n=--t*t*t+1),"easeInOutCubic"===e.easing&&(n=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e.easing&&(n=t*t*t*t),"easeOutQuart"===e.easing&&(n=1- --t*t*t*t),"easeInOutQuart"===e.easing&&(n=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e.easing&&(n=t*t*t*t*t),"easeOutQuint"===e.easing&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e.easing&&(n=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),e.customEasing&&(n=e.customEasing(t)),n||t}(d,v=(v=0===k?0:j/k)>1?1:v),e.scrollTo(0,Math.floor(_)),function(t,n){var o=e.pageYOffset;if(t==n||o==n||(y<n&&e.innerHeight+o)>=x)return h.cancelScroll(!0),s(r,n,g),a("scrollStop",d,r,u),m=null,p=null,!0}(_,S)||(p=e.requestAnimationFrame(E),m=t)};0===e.pageYOffset&&e.scrollTo(0,0),function(e,t,n){t||history.pushState&&n.updateURL&&history.pushState({smoothScroll:JSON.stringify(n),anchor:e.id},document.title,e===document.documentElement?"#top":"#"+e.id)}(r,g,d),"matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches?s(r,Math.floor(S),!1):(a("scrollStart",d,r,u),h.cancelScroll(!0),e.requestAnimationFrame(E))}}},g=function(t){if(!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(d=t.target.closest(u))&&"a"===d.tagName.toLowerCase()&&!t.target.closest(c.ignore)&&d.hostname===e.location.hostname&&d.pathname===e.location.pathname&&/#/.test(d.href)){var n,o;try{n=r(decodeURIComponent(d.hash))}catch(e){n=r(d.hash)}if("#"===n){if(!c.topOnEmptyHash)return;o=document.documentElement}else o=document.querySelector(n);(o=o||"#top"!==n?o:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var n=e.location.hash;n=n||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:n||e.pageYOffset},document.title,n||e.location.href)}}(c),h.animateScroll(o,d))}},b=function(e){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(c)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(r(history.state.anchor)))||h.animateScroll(t,null,{updateURL:!1})}};return h.destroy=function(){c&&(document.removeEventListener("click",g,!1),e.removeEventListener("popstate",b,!1),h.cancelScroll(),c=null,d=null,f=null,p=null)},function(){if(!("querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";h.destroy(),c=n(t,l||{}),f=c.header?document.querySelector(c.header):null,document.addEventListener("click",g,!1),c.updateURL&&c.popstate&&e.addEventListener("popstate",b,!1)}(),h}}(o)}.apply(t,[]),void 0===r||(e.exports=r)},432:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(47),t),o(n(926),t),o(n(349),t),o(n(137),t),o(n(729),t),o(n(383),t),o(n(450),t),o(n(358),t),o(n(753),t),o(n(869),t),o(n(352),t),o(n(446),t),o(n(164),t),o(n(305),t),o(n(502),t)},349:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowNavigation=void 0;var r=n(156);t.useArrowNavigation=function(e){var t=e.listItems,n=e.onArrowUpOrDown,o=(0,r.useState)(0),i=o[0],s=o[1],a=(0,r.useCallback)(function(e){s(e)},[t]),u=function(e){var r=e.key;if(null==t?void 0:t.length)if("ArrowUp"===r)n&&n(),e.preventDefault(),a(i>0?i-1:t.length-1);else{if("ArrowDown"!==r)return;n&&n(),e.preventDefault(),i<t.length-1?a(i+1):a(0)}};return(0,r.useEffect)(function(){return window.addEventListener("keydown",u),function(){return window.removeEventListener("keydown",u)}}),(0,r.useEffect)(function(){a(0)},[t]),{selectedIndex:i}}},446:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useDebounce=void 0;var r=n(156);t.useDebounce=function(e,t){void 0===t&&(t=300);var n=(0,r.useState)(e),o=n[0],i=n[1];return(0,r.useEffect)(function(){var n=setTimeout(function(){i(e)},t);return function(){clearTimeout(n)}},[e,t]),o}},164:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementSize=void 0;var r=n(156);t.useElementSize=function(){var e,t,n=(0,r.useRef)(null);return[n,{width:null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.clientWidth,height:null===(t=null==n?void 0:n.current)||void 0===t?void 0:t.clientHeight}]},t.default=t.useElementSize},137:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersectionObserver=void 0;var r=n(156);t.useIntersectionObserver=function(e){var t=(0,r.useRef)(null),n=(0,r.useState)(!1),o=n[0],i=n[1],s=function(e){var t=e[0];i(t.isIntersecting)};return(0,r.useEffect)(function(){if(window&&window.IntersectionObserver){var n=new IntersectionObserver(s,e),r=t.current;return t.current&&n.observe(t.current),function(){r&&n.unobserve(r)}}i(!1)},[t,e]),{containerRef:t,isVisible:o}},t.default=t.useIntersectionObserver},729:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsBreakpoint=void 0;var r=n(156),o=n(432),i={xs:1,mobileSmall:320,mobile:375,tablet:768,tabletLarge:920,desktopSmall:1024,desktop:1260,desktopLarge:1440};t.useIsBreakpoint=function(e){var t="string"==typeof e?i[e]:e,n=(0,r.useState)(null),s=n[0],a=n[1],u=(0,r.useCallback)(function(){a(window.innerWidth)},[]);return(0,r.useEffect)(function(){u()},[]),(0,o.useOnResize)(u),s>=t},t.default=t.useIsBreakpoint},450:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsLoadingAfterError=void 0;var r=n(156);t.useIsLoadingAfterError=function(e,t){var n=(0,r.useState)(t),o=n[0],i=n[1];return(0,r.useEffect)(function(){e||i(t)},[e,t]),e&&o}},305:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMobile=void 0;var r=n(729);t.useIsMobile=function(){return!(0,r.useIsBreakpoint)("tablet")},t.default=t.useIsMobile},383:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsomorphicLayoutEffect=void 0;var r=n(156);t.useIsomorphicLayoutEffect="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,t.default=t.useIsomorphicLayoutEffect},753:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnLoseFocusWithin=void 0;var r=n(156);t.useOnLoseFocusWithin=function(e){var t=e.ref,n=e.callback,o=e.watch;(0,r.useEffect)(function(){var e=function(){var e;if(o)return(null===(e=t.current)||void 0===e?void 0:e.matches(":focus-within"))?void 0:n()};return document.addEventListener("keyup",e),function(){return document.removeEventListener("keyup",e)}},[n,t,o])},t.default=t.useOnLoseFocusWithin},502:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnResize=void 0;var r=n(156);t.useOnResize=function(e){(0,r.useEffect)(function(){var t=function(){e(window.innerWidth)};return window.addEventListener("resize",t,{passive:!0}),function(){return window.removeEventListener("resize",t)}},[])},t.default=t.useOnResize},352:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnWindowFocus=void 0;var r=n(156);t.useOnWindowFocus=function(e){(0,r.useEffect)(function(){var t=function(){e&&"visible"===document.visibilityState&&e()};return window.addEventListener("visibilitychange",t,!1),function(){return window.removeEventListener("visibilitychange",t)}},[e])}},47:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOutsideReacter=void 0;var r=n(156);t.useOutsideReacter=function(e,t){function n(n){e.current&&!e.current.contains(n.target)&&t()}(0,r.useEffect)(function(){return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}})}},869:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRunAfterUpdate=void 0;var r=n(156);t.useRunAfterUpdate=function(){var e=(0,r.useRef)(null);return(0,r.useEffect)(function(){e.current&&(e.current(),e.current=null)}),function(t){e.current=t}},t.default=t.useRunAfterUpdate},926:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useScrollLock=void 0;var r=n(156);t.useScrollLock=function(){return{lock:(0,r.useCallback)(function(){var e=window.scrollY+"px",t=document.body;t.style.position="fixed",t.style.top="-"+e},[]),unlock:(0,r.useCallback)(function(){var e=document.body,t=e.style.top,n=-1*parseInt(t||"0");e.style.position="",e.style.top="",n&&window.scrollTo(0,-1*parseInt(t||"0"))},[])}}},358:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useSmoothScroll=void 0;var o=n(156),i=r(n(888));t.useSmoothScroll=function(e){var t=(0,o.useRef)(null),n=e.ref,r=e.offset,s=void 0===r?0:r,a=e.speed,u=void 0===a?500:a;return(0,o.useEffect)(function(){t.current=new i.default(null,{speed:u,speedAsDuration:!0})},[]),(0,o.useCallback)(function(){n&&t.current&&t.current.animateScroll(n.current,null,{offset:function(){return s},updateURL:!1})},[s,n])}},156:function(e){e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(432)}())}(ud)),ud.exports),cd=Q(ld),dd={"fullscreen-root":"MobileSearch_fullscreen-root__-fKuG","combobox-container":"MobileSearch_combobox-container__UApoj","right-column":"MobileSearch_right-column__n9ied","combobox-icon":"MobileSearch_combobox-icon__91hHs","sr-only":"MobileSearch_sr-only__DenlV","combobox-label":"MobileSearch_combobox-label__TVrz1",container:"MobileSearch_container__fxGZ7",input:"MobileSearch_input__bUFhg","clear-input":"MobileSearch_clear-input__AaH3X",hasValue:"MobileSearch_hasValue__1Txox",suggestion:"MobileSearch_suggestion__v2-T8",suggestionHighlighted:"MobileSearch_suggestionHighlighted__laMbA",suggestionsContainerOpen:"MobileSearch_suggestionsContainerOpen__-ZF8G",suggestionsList:"MobileSearch_suggestionsList__zRJY4","clear-search-history":"MobileSearch_clear-search-history__XpFfN","mobile-modal-overlay":"MobileSearch_mobile-modal-overlay__BDcbD","mobile-modal":"MobileSearch_mobile-modal__-gEAQ","mobile-modal-content":"MobileSearch_mobile-modal-content__mUUFh"};qc("input[type=text] {\n margin: 0;\n padding: 0;\n}\n\n.MobileSearch_fullscreen-root__-fKuG {\n display: flex;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000;\n}\n\n.MobileSearch_combobox-container__UApoj {\n margin: 15px 10px 0;\n border: solid #888 1px;\n display: flex;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n justify-content: space-between;\n}\n.MobileSearch_combobox-container__UApoj .MobileSearch_right-column__n9ied {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px;\n}\n\n.MobileSearch_combobox-icon__91hHs {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none;\n}\n.MobileSearch_combobox-icon__91hHs svg {\n width: 14px;\n height: 21px;\n transform: rotate(-180deg);\n}\n\n.MobileSearch_sr-only__DenlV:not(:focus, :active) {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.MobileSearch_combobox-label__TVrz1 {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.2px;\n color: #333;\n}\n\n.MobileSearch_container__fxGZ7 {\n display: flex;\n align-items: center;\n width: 100%;\n}\n.MobileSearch_container__fxGZ7 .MobileSearch_input__bUFhg {\n font-family: inherit;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666;\n -webkit-appearance: none;\n appearance: none;\n}\n.MobileSearch_container__fxGZ7 .MobileSearch_input__bUFhg:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff;\n}\n\nbutton.MobileSearch_clear-input__AaH3X {\n display: flex;\n align-items: center;\n right: 0;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none;\n}\nbutton.MobileSearch_clear-input__AaH3X svg {\n fill: var(--color);\n width: 16px;\n height: 16px;\n}\nbutton.MobileSearch_clear-input__AaH3X:focus {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileSearch_clear-input__AaH3X:active {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileSearch_clear-input__AaH3X:hover {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileSearch_hasValue__1Txox {\n color: #333;\n}\n\n.MobileSearch_suggestion__v2-T8 {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0;\n}\n\n.MobileSearch_suggestionHighlighted__laMbA {\n background-color: #f2f5f7;\n}\n\n.MobileSearch_suggestionsContainerOpen__-ZF8G {\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.MobileSearch_suggestionsContainerOpen__-ZF8G .MobileSearch_suggestionsList__zRJY4 {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f2f5f7;\n}\n\n.MobileSearch_clear-search-history__XpFfN {\n display: flex;\n font-family: inherit;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f2f5f7;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd;\n}\n.MobileSearch_suggestionHighlighted__laMbA .MobileSearch_clear-search-history__XpFfN {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileSearch_mobile-modal-overlay__BDcbD {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed;\n}\n\n.MobileSearch_mobile-modal__-gEAQ {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.MobileSearch_mobile-modal__-gEAQ.ReactModal__Content--after-open > div {\n transform: translateY(0);\n}\n.MobileSearch_mobile-modal__-gEAQ.ReactModal__Content--before-close > div {\n transform: translateY(10%);\n}\n\n.MobileSearch_mobile-modal-content__mUUFh {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #fff;\n transition: transform 0.25s;\n transform: translateY(10%);\n}");var fd={"fullscreen-root":"MobileNoScroll_fullscreen-root__z0ny4","combobox-container":"MobileNoScroll_combobox-container__TTtSg","right-column":"MobileNoScroll_right-column__TS4N7","combobox-icon":"MobileNoScroll_combobox-icon__-r8Qf","sr-only":"MobileNoScroll_sr-only__Vyhlo","combobox-label":"MobileNoScroll_combobox-label__rQ8p-",container:"MobileNoScroll_container__XXfFb",input:"MobileNoScroll_input__Xaj1-","clear-input":"MobileNoScroll_clear-input__Jz4Xv",hasValue:"MobileNoScroll_hasValue__ftyO6",suggestion:"MobileNoScroll_suggestion__7L2kI",suggestionHighlighted:"MobileNoScroll_suggestionHighlighted__IKy2t",suggestionsContainerOpen:"MobileNoScroll_suggestionsContainerOpen__ePksf",suggestionsList:"MobileNoScroll_suggestionsList__aeQlJ","clear-search-history":"MobileNoScroll_clear-search-history__WrE0K","mobile-modal-overlay":"MobileNoScroll_mobile-modal-overlay__k1JdU","mobile-modal":"MobileNoScroll_mobile-modal__x5kKM","mobile-modal-content":"MobileNoScroll_mobile-modal-content__os7v8"};function pd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}qc("input[type=text] {\n margin: 0;\n padding: 0;\n}\n\n.MobileNoScroll_fullscreen-root__z0ny4 {\n display: flex;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000;\n}\n\n.MobileNoScroll_combobox-container__TTtSg {\n margin: 15px 10px 0;\n border: solid #888 1px;\n display: flex;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n justify-content: space-between;\n}\n.MobileNoScroll_combobox-container__TTtSg .MobileNoScroll_right-column__TS4N7 {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px;\n}\n\n.MobileNoScroll_combobox-icon__-r8Qf {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none;\n}\n.MobileNoScroll_combobox-icon__-r8Qf svg {\n width: 14px;\n height: 21px;\n transform: rotate(-180deg);\n}\n\n.MobileNoScroll_sr-only__Vyhlo:not(:focus, :active) {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.MobileNoScroll_combobox-label__rQ8p- {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.2px;\n color: #333;\n}\n\n.MobileNoScroll_container__XXfFb {\n display: flex;\n align-items: center;\n width: 100%;\n}\n.MobileNoScroll_container__XXfFb .MobileNoScroll_input__Xaj1- {\n font-family: inherit;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666;\n -webkit-appearance: none;\n appearance: none;\n}\n.MobileNoScroll_container__XXfFb .MobileNoScroll_input__Xaj1-:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff;\n}\n\nbutton.MobileNoScroll_clear-input__Jz4Xv {\n display: flex;\n align-items: center;\n right: 0;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv svg {\n fill: var(--color);\n width: 16px;\n height: 16px;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv:focus {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv:active {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv:hover {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileNoScroll_hasValue__ftyO6 {\n color: #333;\n}\n\n.MobileNoScroll_suggestion__7L2kI {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0;\n}\n\n.MobileNoScroll_suggestionHighlighted__IKy2t {\n background-color: #f2f5f7;\n}\n\n.MobileNoScroll_suggestionsContainerOpen__ePksf {\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.MobileNoScroll_suggestionsContainerOpen__ePksf .MobileNoScroll_suggestionsList__aeQlJ {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f2f5f7;\n}\n\n.MobileNoScroll_clear-search-history__WrE0K {\n display: flex;\n font-family: inherit;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f2f5f7;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd;\n}\n.MobileNoScroll_suggestionHighlighted__IKy2t .MobileNoScroll_clear-search-history__WrE0K {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileNoScroll_mobile-modal-overlay__k1JdU {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed;\n}\n\n.MobileNoScroll_mobile-modal__x5kKM {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.MobileNoScroll_mobile-modal__x5kKM.ReactModal__Content--after-open > div {\n transform: translateY(0);\n}\n.MobileNoScroll_mobile-modal__x5kKM.ReactModal__Content--before-close > div {\n transform: translateY(10%);\n}\n\n.MobileNoScroll_mobile-modal-content__os7v8 {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #fff;\n transition: transform 0.25s;\n transform: translateY(10%);\n}\n\n.MobileNoScroll_suggestionsContainerOpen__ePksf {\n -ms-overflow-style: none; /* Internet Explorer 10+ */\n scrollbar-width: none; /* Firefox */\n}\n.MobileNoScroll_suggestionsContainerOpen__ePksf::-webkit-scrollbar {\n display: none; /* Safari and Chrome */\n}");const hd=["item","lng","getItemProps","highlightedIndex","itemIndex","styles"],gd=["suggestions","getMenuProps","label","labelledBy","getItemProps","lng","styles","hidden","renderClearHistoryButton","handleClearHistory"];function bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bd(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const md=n.memo(function(e){let{item:t,lng:n,getItemProps:o,highlightedIndex:i,itemIndex:s,styles:a}=e,u=pd(e,hd);const[l]=r.useTranslation(),c="FutureRoute"===t.type?yd(yd({},t),{},{translatedText:od(t,n,l)}):t,d=rd(t,n,l);return f.jsx("li",yd(yd({className:V.default(a.suggestion,i===s&&a.suggestionHighlighted)},o({index:s})),{},{children:f.jsx($.default,yd({item:c,content:d,lng:n},u))}))}),vd="production"!==process.env.NODE_ENV?q.default.shape({name:q.default.string,type:q.default.string,address:q.default.string,selectedIconId:q.default.string,iconColor:q.default.string,translatedText:q.default.string,properties:q.default.shape({layer:q.default.string,color:q.default.string,localadmin:q.default.string,mode:q.default.string,id:q.default.string,source:q.default.string,arrowClicked:q.default.bool,destination:q.default.shape({name:q.default.string,localadmin:q.default.string}),origin:q.default.shape({name:q.default.string,localadmin:q.default.string})})}):{};"production"!==process.env.NODE_ENV&&(md.propTypes={item:vd.isRequired,lng:q.default.string.isRequired,getItemProps:q.default.func.isRequired,highlightedIndex:q.default.number.isRequired,itemIndex:q.default.number.isRequired,styles:q.default.objectOf(q.default.string).isRequired});const _d=n.memo(function(e){let{suggestions:t,getMenuProps:n,label:o,labelledBy:i,getItemProps:s,lng:a,styles:u,hidden:l,renderClearHistoryButton:c=!1,handleClearHistory:d=()=>{}}=e,p=pd(e,gd);const[h]=r.useTranslation();return f.jsx("div",{className:V.default(u.suggestionsContainerOpen,u.suggestionsContainer,l&&u.hidden),children:f.jsxs("ul",yd(yd({className:u.suggestionsList},n({"aria-label":o,"aria-labelledby":i})),{},{children:[t.map((e,t)=>f.jsx(md,yd({getItemProps:s,itemIndex:t,item:e,lng:a,styles:u},p),`${e.type}-${e.properties.gid||e.properties.gtfsId||JSON.stringify(e.properties)}`)),c&&f.jsx("li",{children:f.jsx("button",{onClick:d,type:"button",className:u["clear-search-history"],children:h("clear-search-history",{lng:a})})})]}))})});"production"!==process.env.NODE_ENV&&(_d.propTypes={suggestions:q.default.arrayOf(vd).isRequired,getMenuProps:q.default.func.isRequired,label:q.default.string,labelledBy:q.default.string,getItemProps:q.default.func.isRequired,lng:q.default.string.isRequired,styles:q.default.objectOf(q.default.string).isRequired,hidden:q.default.bool.isRequired,renderClearHistoryButton:q.default.bool,handleClearHistory:q.default.func});const wd=({color:e,lng:t,clearInput:n,onKeyDown:o,styles:i})=>{const[s]=r.useTranslation();return f.jsx("button",{type:"button",className:i["clear-input"],onClick:n,"aria-label":s("clear-button-label",{lng:t}),onKeyDown:o,children:f.jsx(W.default,{img:"close",color:e})})};function Sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sd(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xd({id:e,lng:t,value:n,placeholder:r,required:o,getInputProps:i,clearInput:s,ariaLabel:a,ariaDescription:u,hasLabel:l=!1,inputRef:c,styles:d,isMobile:p,inputClassName:h,transportMode:g,clearButtonColor:b,autoFocus:y=!1,inputOnBlur:m=()=>{},onValueChange:v}){const _=`${e}-description`;return f.jsxs("div",{className:d.container,children:[f.jsx("input",Od({autoFocus:y,placeholder:r,required:o,type:"text",className:V.default(d.input,d[e],h,p&&g&&d.thin,n&&d.hasValue),id:e,"aria-describedby":u?_:void 0},i(Od(Od({ref:c,onBlur:m,onChange:e=>{v(e.target.value)}},a&&{"aria-label":a}),!a&&!l&&{"aria-labelledby":void 0})))),u&&f.jsx("span",{id:_,className:d["sr-only"],children:u}),n&&f.jsx(wd,{lng:t,clearInput:()=>s(c),styles:d,color:b,onKeyDown:e=>ed(e)&&s(c)})]})}function jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jd(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ed({appElement:e,id:t,placeholder:o,clearInput:s,onSelectedItemChange:a,clearOldSearches:u,suggestionProps:l,lng:c,ariaProps:d,value:p,inputClassName:h,required:g,mobileLabel:b,showScroll:y,state:m,dispatch:v,pendingEnterRef:_,colors:w}){const[S]=r.useTranslation(),{lock:O,unlock:x}=cd.useScrollLock(),j=y?dd:fd,k=`${t}-input`,E=`${t}-label`,[R,P]=n.useState(!1),C=n.useRef();n.useEffect(()=>{G.default.setAppElement(e)},[]),n.useEffect(()=>{m.renderMobile?O():x()},[m.renderMobile]);const{highlightedIndex:A,getLabelProps:T,getMenuProps:N,getInputProps:M,getItemProps:L,setHighlightedIndex:I}=i.useCombobox({items:m.suggestions,inputValue:p,isOpen:!0,scrollIntoView:Zc,onSelectedItemChange:e=>{a(e),v({type:"TOGGLE_MENU",isMobile:!0})},inputId:k,labelId:E,selectedItem:null,defaultHighlightedIndex:-1,onInputValueChange:({inputValue:e,type:t})=>m.renderMobile&&t!==i.useCombobox.stateChangeTypes.InputChange&&v({type:"INPUT_CHANGE",value:e}),stateReducer:(e,{changes:t,type:n})=>{switch(n){case i.useCombobox.stateChangeTypes.InputKeyDownEscape:return I(-1),v({type:"TOGGLE_MENU",isMobile:!0}),e;case i.useCombobox.stateChangeTypes.InputKeyDownEnter:return m.loading?(_.current=!0,e):-1===e.highlightedIndex?kd(kd({},t),{},{selectedItem:m.suggestions[0]}):t;case i.useCombobox.stateChangeTypes.InputBlur:return e;default:return t}},itemToString:e=>e?id(e):""});N({},{suppressRefError:!0}),M({},{suppressRefError:!0});const F=n.useCallback(e=>m.renderMobile&&v({type:"INPUT_CHANGE",value:e}),[m.renderMobile,v]),D=n.useCallback(()=>P(!0),[]),{ariaRequiredText:U,SearchBarId:z,ariaCurrentSuggestion:B}=d,q=U.concat(" ").concat(z).concat(" ").concat(B).trim();return f.jsx(G.default,{isOpen:m.renderMobile,className:j["mobile-modal"],overlayClassName:j["mobile-modal-overlay"],shouldReturnFocusAfterClose:!1,shouldCloseOnEsc:!0,children:f.jsxs("div",{className:j["mobile-modal-content"],style:{"--color":w.primary,"--accessible-primary-color":w.accessiblePrimary,"--hover-color":w.hover},children:[f.jsxs("div",{className:j["combobox-container"],htmlFor:k,children:[f.jsx("button",{type:"button",className:j["combobox-icon"],onClick:()=>{I(-1),v({type:"TOGGLE_MENU",isMobile:!0})},onKeyDown:e=>{ed(e)&&(I(-1),v({type:"TOGGLE_MENU",isMobile:!0}))},"aria-label":S("cancel",{lng:c}),tabIndex:0,children:f.jsx(W.default,{img:"arrow",color:w.primary})}),f.jsxs("span",{className:j["right-column"],children:[f.jsx("span",kd(kd({className:j["combobox-label"],id:E},T()),{},{children:b})),f.jsx(xd,{placeholder:td(t)?S("address-place-or-business",{lng:c}):o,id:t,lng:c,value:p,getInputProps:M,clearInput:()=>s(C),ariaDescription:q,hasLabel:!0,inputRef:C,styles:j,clearButtonColor:w.primary,autoFocus:!0,inputClassName:h,required:g,isMobile:!0,onValueChange:F}),f.jsx(_d,kd({suggestions:m.suggestions,getMenuProps:N,getItemProps:L,highlightedIndex:A,isOpen:!0,hidden:!1,lng:c,styles:j,renderClearHistoryButton:!0,handleClearHistory:D},l))]})]}),f.jsx(K.default,{isModalOpen:R,handleClose:()=>P(!1),headerText:S("delete-old-searches-header",{lng:c}),primaryButtonText:S("delete",{lng:c}),secondaryButtonText:S("cancel",{lng:c}),primaryButtonOnClick:()=>{u(),P(!1)},secondaryButtonOnClick:()=>P(!1),lang:c})]})})}function Rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}"production"!==process.env.NODE_ENV&&(wd.propTypes={color:q.default.string.isRequired,lng:q.default.string.isRequired,clearInput:q.default.func.isRequired,onKeyDown:q.default.func.isRequired,styles:q.default.objectOf(q.default.string).isRequired}),"production"!==process.env.NODE_ENV&&(xd.propTypes={id:q.default.string.isRequired,lng:q.default.string.isRequired,placeholder:q.default.string.isRequired,required:q.default.bool.isRequired,value:q.default.string.isRequired,getInputProps:q.default.func.isRequired,clearInput:q.default.func.isRequired,ariaLabel:q.default.string,ariaDescription:q.default.string,hasLabel:q.default.bool,inputRef:q.default.shape({current:q.default.oneOfType([q.default.string,q.default.object])}).isRequired,styles:q.default.objectOf(q.default.string).isRequired,isMobile:q.default.bool.isRequired,inputClassName:q.default.string.isRequired,transportMode:q.default.string,clearButtonColor:q.default.string.isRequired,autoFocus:q.default.bool,inputOnBlur:q.default.func,onValueChange:q.default.func.isRequired}),"production"!==process.env.NODE_ENV&&(Ed.propTypes={appElement:q.default.string.isRequired,id:q.default.string.isRequired,clearInput:q.default.func.isRequired,clearOldSearches:q.default.func.isRequired,onSelectedItemChange:q.default.func.isRequired,value:q.default.string.isRequired,colors:q.default.objectOf(q.default.string).isRequired,suggestionProps:q.default.shape({}).isRequired,ariaProps:q.default.shape({ariaRequiredText:q.default.string.isRequired,SearchBarId:q.default.string.isRequired,ariaCurrentSuggestion:q.default.string.isRequired}).isRequired,inputClassName:q.default.string.isRequired,placeholder:q.default.string.isRequired,mobileLabel:q.default.string.isRequired,required:q.default.bool.isRequired,showScroll:q.default.bool.isRequired,lng:q.default.string.isRequired,state:q.default.shape({suggestions:q.default.arrayOf(q.default.shape({})).isRequired,renderMobile:q.default.bool.isRequired,loading:q.default.bool.isRequired}).isRequired,dispatch:q.default.func.isRequired,pendingEnterRef:q.default.shape({current:q.default.bool}).isRequired});const Cd=(e,t)=>{switch(t.type){case"INPUT_CHANGE":return Pd(Pd({},e),{},{value:t.value});case"FETCH_SUGGESTIONS":return t.loading!==e.loading||t.suggestions?Pd(Pd({},e),{},{loading:t.loading,suggestions:t.suggestions||e.suggestions}):e;case"CLEAR_SUGGESTIONS":return Pd(Pd({},e),{},{suggestions:[]});case"RESET_SOURCES":return Pd(Pd({},e),{},{sources:t.sources});case"SET_SOURCES":return Pd(Pd({},e),{},{showOwnPlaces:t.showOwnPlaces,sources:t.sources,pendingSelection:t.pendingSelection});case"CLEAR":return Pd(Pd({},e),{},{value:"",isCleared:!0,suggestions:[]});case"INPUT_BLUR":return Pd(Pd({},e),{},{value:t.value||e.value,isCleared:!t.isMobile&&e.isCleared,pendingSelection:null,showOwnPlaces:!1});case"RESET":return t.initialState;case"TOGGLE_MENU":return t.isMobile?e.renderMobile?Pd(Pd({},e),{},{renderMobile:!1,isCleared:!1}):Pd(Pd({},e),{},{renderMobile:!0,value:e.isCleared?"":e.value}):Pd(Pd({},e),{},{isMenuOpen:!e.isMenuOpen,renderMobile:t.isMobile&&!e.renderMobile});default:return e}};function Ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ad(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ad(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Nd=[],Md={routesPrefix:"linjat",stopsPrefix:"pysakit"},Ld={},Id=["Valittu sijainti","Nykyinen sijaintisi","Current position","Selected location","Vald position","Använd min position","Min position","Käytä nykyistä sijaintia","Use current location","Your current location","Wybrane miejsce"];function Fd({appElement:e,id:t,placeholder:o,onSelect:u,icon:l,value:c="",onClear:d,lang:p="fi",getAutoSuggestIcons:h,handleViaPoints:g,focusChange:b,storeRef:y,isMobile:m=!1,mobileLabel:v,inputClassName:_="",translatedPlaceholder:w,required:S=!1,externalLabelId:O,ariaLabel:x,colors:j=a.defaultColors,modeSet:k,showScroll:E=!1,isEmbedded:R=!1,transportMode:P,targets:C,sources:A=Nd,geocodingSize:T,filterResults:N,searchContext:M,pathOpts:L=Md,refPoint:I=Ld}){const[F]=r.useTranslation(),D={suggestions:[],loading:!1,sources:A,showOwnPlaces:!1,pendingSelection:null,isCleared:!1,renderMobile:!1,value:c,isMenuOpen:!1},[U,z]=n.useReducer(Cd,D);n.useEffect(()=>z({type:"RESET",initialState:D}),[c]),n.useEffect(()=>z({type:"RESET_SOURCES",sources:A}),[A]);const B=n.useRef(t),q=n.useRef(!1),H=n.useRef(0);n.useEffect(()=>{y&&y(B.current)},[B.current]);const $=n.useCallback(()=>{const e=!C?.length||C.includes("Locations"),t=(({targets:e,isLocationSearch:t,isMobile:n,ownPlaces:r,sources:o})=>{const i=!e?.length;let s=e;return r?(s=["Locations"],(i||e.includes("Stops"))&&s.push("Stops"),(i||e.includes("Stations"))&&s.push("Stations"),(i||e.includes("VehicleRentalStations"))&&s.push("VehicleRentalStations")):i||(s=[...e],!t||n||o.length&&!o.includes("Favourite")||s.push("SelectFromOwnLocations")),s})({targets:C,isLocationSearch:e,isMobile:m,ownPlaces:U.showOwnPlaces,sources:U.sources}),n=U.sources?U.sources.filter(t=>!e||"Favourite"===!t||U.showOwnPlaces||m):U.sources;H.current+=1;const r=H.current;((e,t,n,r,o,i,s,a,u,l)=>{a(null),zc(e,t,n,r,o,i,s,a,u,l)})(t,n,P,M,N,T,{input:U.value||""},e=>{if(r!==H.current)return;if(null==e)return void z({type:"FETCH_SUGGESTIONS",loading:!0});const t=(e.results||[]).filter(e=>"FutureRoute"!==e.type||"FutureRoute"===e.type&&e.properties.time>Date.now()/1e3).map(e=>{if("CurrentLocation"===e.type||"SelectFromMap"===e.type||"SelectFromOwnLocations"===e.type||"back"===e.type){const t=Td({},e);return t.properties.labelId=F(e.properties.labelId,{lng:p}),t}return e});z({type:"FETCH_SUGGESTIONS",loading:!1,suggestions:t})},L,I)},[U.value,U.sources,U.showOwnPlaces,C,P,M,N,T,m,p,L,I,t]),G=n.useCallback((e,n)=>{e&&(g?g(e,n):u(e,t),!b||m&&!R||b(),B.current&&B.current.blur())},[m]),K=e=>{const{selectedItem:t}=e;t&&("SelectFromOwnLocations"!==t.type?"back"!==t.type?G(t,e.highlightedIndex):z({type:"SET_SOURCES",sources:A,showOwnPlaces:!1,pendingSelection:null}):z({type:"SET_SOURCES",sources:["Favourite","Back"],showOwnPlaces:!0,pendingSelection:t.type}))},{isOpen:J,highlightedIndex:Y,getMenuProps:X,getInputProps:Q,getItemProps:Z,selectItem:ee,openMenu:te,closeMenu:ne}=i.useCombobox({inputId:t,inputValue:U.value,scrollIntoView:Zc,defaultHighlightedIndex:0,onInputValueChange:({inputValue:e,type:t})=>t!==i.useCombobox.stateChangeTypes.InputChange&&z({type:"INPUT_CHANGE",value:e}),stateReducer:n.useCallback((e,{type:t,changes:n})=>{switch(t){case i.useCombobox.stateChangeTypes.ItemClick:case i.useCombobox.stateChangeTypes.InputKeyDownEnter:return U.loading?(q.current=!0,e):n.selectedItem&&("SelectFromOwnLocations"===n.selectedItem.type||"back"===n.selectedItem.type)?Td(Td({},n),{},{isOpen:!0}):n;case i.useCombobox.stateChangeTypes.InputClick:return Id.includes(c)?Td(Td({},n),{},{inputValue:"",isOpen:!0}):Td(Td({},n),{},{isOpen:!0});case i.useCombobox.stateChangeTypes.InputBlur:return n.selectedItem?Td(Td({},n),{},{selectedItem:e.selectedItem,inputValue:e.inputValue}):n;case i.useCombobox.stateChangeTypes.InputKeyDownEscape:return Td(Td({},n),{},{inputValue:""});default:return n}},[U.loading,c,m]),items:U.suggestions,itemToString:e=>e?id(e):"",onSelectedItemChange:K,onIsOpenChange:e=>{e.isOpen&&!U.renderMobile&&z({type:"TOGGLE_MENU",isMobile:m})}}),re=e=>{z({type:"CLEAR"}),d&&d(t),e.current&&e.current.focus(),te()},oe=n.useCallback(e=>z({type:"INPUT_CHANGE",value:e}),[]);n.useEffect(()=>{!J&&!U.renderMobile||U.value===c&&Id.includes(c)||$(U.value)},[J,U.renderMobile,U.value,$]),n.useEffect(()=>{q.current&&!U.loading&&(q.current=!1,G(U.suggestions[0],0),ne())},[U.loading,U.suggestions]);const ie=n.useMemo(()=>({loading:U.loading,isMobile:m,ariaFavouriteString:F("favourite",{lng:p}),getAutoSuggestIcons:h,colors:j,modeSet:k,showStopStatusMarkers:!!M.showStopStatusMarkers,stopStatusLabels:{[s.STOP_STATUS.OUT_OF_SERVICE]:F("stop-status-out-of-service",{lng:p}),[s.STOP_STATUS.NO_SERVICE_TODAY]:F("stop-status-no-service-today",{lng:p}),[s.STOP_STATUS.ALERT]:F("stop-status-alert",{lng:p}),[s.STOP_STATUS.INFO]:F("stop-status-info",{lng:p})}}),[U.loading,m,F,p,h,j,k,M.showStopStatusMarkers]),{ariaCurrentSuggestion:se,ariaRequiredText:ae,SearchBarId:ue,ariaLabelText:le}=(({id:e,ariaLabel:t,lng:n,t:r,isMobile:o,suggestions:i,value:s,required:a})=>{const u=e.replace("searchfield-",""),l=t||r(u,{lng:n}).replace("searchfield-","").concat("."),c=a?`${r("required",{lng:n})}.`:"",d=r(o?"search-autosuggest-label-instructions-mobile":"search-autosuggest-label-instructions-desktop",{lng:n}),f="origin"===e?r("search-autosuggest-label-move-to-destination",{lng:n}):"";return{SearchBarId:l,ariaRequiredText:c,ariaLabelText:d.concat(" ").concat(f),ariaSuggestionLen:r("search-autosuggest-len",{count:i.length,lng:n}),ariaCurrentSuggestion:sd({suggestions:i,t:r,lng:n})||s?r("search-current-suggestion",{lng:n,selection:sd({suggestions:i,t:r,lng:n}).toLowerCase()||s}):""}})({id:t,lng:p,t:F,isMobile:m,ariaLabel:x,suggestions:U.suggestions,value:U.value,required:S}),ce=O?void 0:ae.concat(" ").concat(ue).trim();n.useEffect(()=>{U.renderMobile||J||z({type:"RESET",initialState:D})},[U.renderMobile,J]);const de=m||Y>=U.suggestions.length;return f.jsxs(f.Fragment,{children:[m&&f.jsx(Ed,{placeholder:F(o,{lng:p}),clearOldSearches:()=>{const{clearOldSearches:e,clearFutureRoutes:t}=M;e&&(e(),t&&t(),$(U.value))},appElement:e,mobileLabel:v||F(t,{lng:p}),ariaProps:{ariaCurrentSuggestion:se,SearchBarId:ue,ariaRequiredText:ae},id:t,lng:p,onSelectedItemChange:K,value:U.value,clearInput:re,suggestionProps:ie,showScroll:!!E,colors:j,inputClassName:_,required:S,state:U,dispatch:z,pendingEnterRef:q}),f.jsxs("div",{className:V.default(Gc["autosuggest-input-container"],Gc[t],U.renderMobile&&"hidden"),style:{"--color":j.primary,"--accessible-primary-color":j.accessiblePrimary,"--hover-color":j.hover},children:[l&&f.jsx("div",{className:V.default(Gc["autosuggest-input-icon"],Gc[t],_&&Gc[`${_}-input-icon`]),"aria-hidden":"true",children:f.jsx(W.default,{img:`${l}`})}),f.jsx(xd,{inputClassName:_,ariaLabel:ce,ariaDescription:F("search-autosuggest-label",{lng:p}).concat(" ").concat(le).trim(),id:t,lng:p,getInputProps:e=>Q(Td(Td({},e),de&&{"aria-activedescendant":void 0})),selectItem:ee,value:U.value,clearInput:re,inputRef:B,styles:Gc,clearButtonColor:j.primary,placeholder:w||F(o,{lng:p}),required:S,transportMode:P,isMobile:m,inputOnBlur:()=>{z({isMobile:m,value:!m&&c,type:"INPUT_BLUR"}),m||z({type:"RESET",initialState:D})},onValueChange:oe}),f.jsx(_d,Td({hidden:!J||!U.suggestions.length||m,highlightedIndex:Y,getItemProps:Z,getMenuProps:X,label:ce,labelledBy:O,suggestions:U.suggestions,lng:p,styles:Gc},ie))]})]})}"production"!==process.env.NODE_ENV&&(Fd.propTypes={appElement:q.default.string.isRequired,icon:q.default.string,id:q.default.string.isRequired,placeholder:q.default.string.isRequired,translatedPlaceholder:q.default.string,value:q.default.string,transportMode:q.default.string,geocodingSize:q.default.number,filterResults:q.default.func,searchContext:q.default.shape({URL_PELIAS:q.default.string,context:q.default.object,clearOldSearches:q.default.func,clearFutureRoutes:q.default.func,showStopStatusMarkers:q.default.bool}).isRequired,sources:q.default.arrayOf(q.default.string),targets:q.default.arrayOf(q.default.string),ariaLabel:q.default.string,onSelect:q.default.func.isRequired,onClear:q.default.func,storeRef:q.default.func,handleViaPoints:q.default.func,focusChange:q.default.func,lang:q.default.string,isMobile:q.default.bool,pathOpts:q.default.shape({routesPrefix:q.default.string,stopsPrefix:q.default.string}),mobileLabel:q.default.string,refPoint:q.default.shape({address:q.default.string,lat:q.default.number,lon:q.default.number}),inputClassName:q.default.string,colors:q.default.objectOf(q.default.string),getAutoSuggestIcons:q.default.objectOf(q.default.func),required:q.default.bool,externalLabelId:q.default.string,modeSet:q.default.string,showScroll:q.default.bool,isEmbedded:q.default.bool});e.default=e=>f.jsx(r.I18nextProvider,{i18n:Bc,children:f.jsx(Fd,Td({},e))}),Object.defineProperty(e,"__esModule",{value:!0})});
3
3
  //# sourceMappingURL=index.cjs.map