PageSourceSearch

https://www.babybjorn.ca/c8f7fe3b0e41be846d5687592cf2018ff6e22687-4ebfdc3c27787a96d95b.js

js babybjorn.ca collected 2026-10-04 12:40:53 UTC 43,047 bytes, 3 lines download raw bytes

1/*! For license information please see c8f7fe3b0e41be846d5687592cf2018ff6e22687-4ebfdc3c27787a96d95b.js.LICENSE.txt */
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"1ca49186a670a66e04e3a4c02172ea34c0d138b6"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="17fd97c8-31b8-45e2-9966-0a707f12e7d5",e._sentryDebugIdIdentifier="sentry-dbid-17fd97c8-31b8-45e2-9966-0a707f12e7d5")}catch(e){}}(),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"1ca49186a670a66e04e3a4c02172ea34c0d138b6"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="17fd97c8-31b8-45e2-9966-0a707f12e7d5",e._sentryDebugIdIdentifier="sentry-dbid-17fd97c8-31b8-45e2-9966-0a707f12e7d5")}catch(e){}}(),(self.webpackChunk_babybjorn_gatsby=self.webpackChunk_babybjorn_gatsby||[]).push([[906],{34320:function(e,t,r){"use strict";r.d(t,{K:function(){return j}});var n=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],o=n.join(","),i="undefined"==typeof Element,s=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!i&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},c=function(e,t,r){var n=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&s.call(e,o)&&n.unshift(e),n=n.filter(r)},u=function e(t,r,n){for(var i=[],a=Array.from(t);a.length;){var c=a.shift();if("SLOT"===c.tagName){var u=c.assignedElements(),l=e(u.length?u:c.children,!0,n);n.flatten?i.push.apply(i,l):i.push({scope:c,candidates:l})}else{s.call(c,o)&&n.filter(c)&&(r||!t.includes(c))&&i.push(c);var f=c.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(c),d=!n.shadowRootFilter||n.shadowRootFilter(c);if(f&&d){var h=e(!0===f?c.children:f.children,!0,n);n.flatten?i.push.apply(i,h):i.push({scope:c,candidates:h})}else a.unshift.apply(a,c.children)}}return i},l=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},f=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},d=function(e){return"INPUT"===e.tagName},h=function(e){return function(e){return d(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,r=e.form||a(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]}(t,e.form);return!o||o===e}(e)},p=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},g=function(e,t){return!(t.disabled||function(e){return d(e)&&"hidden"===e.type}(t)||function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=s.call(e,"details>summary:first-of-type")?e.parentElement:e;if(s.call(o,"details:not([open]) *"))return!0;var i=a(e).host,c=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(r&&"full"!==r){if("non-zero-area"===r)return p(e)}else{if("function"==typeof n){for(var u=e;e;){var l=e.parentElement,f=a(e);if(l&&!l.shadowRoot&&!0===n(l))return p(e);e=e.assignedSlot?e.assignedSlot:l||f===e.ownerDocument?l:f.host}e=u}if(c)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}
2(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!s.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1}(t))},v=function(e,t){return!(h(t)||l(t)<0||!g(e,t))},b=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},m=function e(t){var r=[],n=[];return t.forEach(function(t,o){var i=!!t.scope,s=i?t.scope:t,a=l(s,i),c=i?e(t.candidates):s;0===a?i?r.push.apply(r,c):r.push(s):n.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:c})}),n.sort(f).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(r)},y=function(e,t){var r;return r=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:v.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:b}):c(e,t.includeContainer,v.bind(null,t)),m(r)},w=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==s.call(e,o)&&v(t,e)},E=n.concat("iframe").join(","),x=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==s.call(e,E)&&g(t,e)};function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var L,_=(L=[],{activateTrap:function(e){if(L.length>0){var t=L[L.length-1];t!==e&&t.pause()}var r=L.indexOf(e);-1===r||L.splice(r,1),L.push(e)},deactivateTrap:function(e){var t=L.indexOf(e);-1!==t&&L.splice(t,1),L.length>0&&L[L.length-1].unpause()}}),A=function(e){return setTimeout(e,0)},M=function(e,t){var r=-1;return e.every(function(e,n){return!t(e)||(r=n,!1)}),r},O=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,r):e},R=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},j=function(e,t){var r,n=(null==t?void 0:t.document)||document,o=T({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s=function(e,t,r){return e&&void 0!==e[t]?e[t]:o[r||t]},a=function(e){return i.containerGroups.findIndex(function(t){var r=t.container,n=t.tabbableNodes;return r.contains(e)||n.find(function(t){return t===e})})},l=function(e){var t=o[e];if("function"==typeof t){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a=t;if("string"==typeof t&&!(a=n.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},f=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(a(n.activeElement)>=0)e=n.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(i.containerGroups=i.containers.map(function(e){var t,r,n=y(e,o.tabbableOptions),i=(t=e,(r=(r=o.tabbableOptions)||{}).getShadowRoot?u([t],r.includeContainer,{filter:g.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):c(t,r.includeContainer,g.bind(null,r)));return{container:e,tabbableNodes:n,focusableNodes:i,firstTabbableNode:n.length>0?n[0]:null,lastTabbableNode:n.length>0?n[n.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=i.findIndex(function(t){return t===e});if(!(r<0))return t?i.slice(r+1).find(function(e){return w(e,o.tabbableOptions)}):i.slice(0,r).reverse().find(function(e){return w(e,o.tabbableOptions)})}}}),i.tabbableGroups=i.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},h=function e(t){!1!==t&&t!==n.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(f()))},p=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},v=function(e){var t=R(e);a(t)>=0||(O(o.clickOutsideDeactivates,e)?r.deactivate({returnFocus:o.returnFocusOnDeactivate&&!x(t,o.tabbableOptions)}):O(o.allowOutsideClick,e)||e.preventDefault())},b=function(e){var t=R(e),r=a(t)>=0;r||t instanceof Document?r&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),h(i.mostRecentlyFocusedNode||f()))},m=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.ke
2yCode}(e)&&!1!==O(o.escapeDeactivates,e))return e.preventDefault(),void r.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=R(e);d();var r=null;if(i.tabbableGroups.length>0){var n=a(t),s=n>=0?i.containerGroups[n]:void 0;if(n<0)r=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=M(i.tabbableGroups,function(e){var r=e.firstTabbableNode;return t===r});if(c<0&&(s.container===t||x(t,o.tabbableOptions)&&!w(t,o.tabbableOptions)&&!s.nextTabbableNode(t,!1))&&(c=n),c>=0){var u=0===c?i.tabbableGroups.length-1:c-1;r=i.tabbableGroups[u].lastTabbableNode}}else{var f=M(i.tabbableGroups,function(e){var r=e.lastTabbableNode;return t===r});if(f<0&&(s.container===t||x(t,o.tabbableOptions)&&!w(t,o.tabbableOptions)&&!s.nextTabbableNode(t))&&(f=n),f>=0){var p=f===i.tabbableGroups.length-1?0:f+1;r=i.tabbableGroups[p].firstTabbableNode}}}else r=l("fallbackFocus");r&&(e.preventDefault(),h(r))}(e)},E=function(e){var t=R(e);a(t)>=0||O(o.clickOutsideDeactivates,e)||O(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},k=function(){if(i.active)return _.activateTrap(r),i.delayInitialFocusTimer=o.delayInitialFocus?A(function(){h(f())}):h(f()),n.addEventListener("focusin",b,!0),n.addEventListener("mousedown",v,{capture:!0,passive:!1}),n.addEventListener("touchstart",v,{capture:!0,passive:!1}),n.addEventListener("click",E,{capture:!0,passive:!1}),n.addEventListener("keydown",m,{capture:!0,passive:!1}),r},S=function(){if(i.active)return n.removeEventListener("focusin",b,!0),n.removeEventListener("mousedown",v,!0),n.removeEventListener("touchstart",v,!0),n.removeEventListener("click",E,!0),n.removeEventListener("keydown",m,!0),r};return(r={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=s(e,"onActivate"),r=s(e,"onPostActivate"),o=s(e,"checkCanFocusTrap");o||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=n.activeElement,t&&t();var a=function(){o&&d(),k(),r&&r()};return o?(o(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!i.active)return this;var t=T({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,S(),i.active=!1,i.paused=!1,_.deactivateTrap(r);var n=s(t,"onDeactivate"),a=s(t,"onPostDeactivate"),c=s(t,"checkCanReturnFocus"),u=s(t,"returnFocus","returnFocusOnDeactivate");n&&n();var l=function(){A(function(){u&&h(p(i.nodeFocusedBeforeActivation)),a&&a()})};return u&&c?(c(p(i.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,S()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,d(),k(),this):this}
2,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map(function(e){return"string"==typeof e?n.querySelector(e):e}),i.active&&d(),this}}).updateContainerElements(e),r}},34787:function(e,t){var r=function(){var e={},t=Math.PI/180,r=180/Math.PI,n=6378137,o=20037508.342789244;function i(e){return Number(e)===e&&e%1!=0}function s(t){if(t=t||{},this.size=t.size||256,this.expansion=!0===t.antimeridian?2:1,!e[this.size]){var r=this.size,n=e[this.size]={};n.Bc=[],n.Cc=[],n.zc=[],n.Ac=[];for(var o=0;o<30;o++)n.Bc.push(r/360),n.Cc.push(r/(2*Math.PI)),n.zc.push(r/2),n.Ac.push(r),r*=2}this.Bc=e[this.size].Bc,this.Cc=e[this.size].Cc,this.zc=e[this.size].zc,this.Ac=e[this.size].Ac}return s.prototype.px=function(e,r){if(i(r)){var n=this.size*Math.pow(2,r),o=n/2,s=n/360,a=n/(2*Math.PI),c=n,u=Math.min(Math.max(Math.sin(t*e[1]),-.9999),.9999),l=o+e[0]*s,f=o+.5*Math.log((1+u)/(1-u))*-a;return l>c*this.expansion&&(l=c*this.expansion),f>c&&(f=c),[l,f]}o=this.zc[r],u=Math.min(Math.max(Math.sin(t*e[1]),-.9999),.9999),l=Math.round(o+e[0]*this.Bc[r]),f=Math.round(o+.5*Math.log((1+u)/(1-u))*-this.Cc[r]);return l>this.Ac[r]*this.expansion&&(l=this.Ac[r]*this.expansion),f>this.Ac[r]&&(f=this.Ac[r]),[l,f]},s.prototype.ll=function(e,t){if(i(t)){var n=this.size*Math.pow(2,t),o=n/360,s=n/(2*Math.PI),a=n/2,c=(e[1]-a)/-s;return[(e[0]-a)/o,r*(2*Math.atan(Math.exp(c))-.5*Math.PI)]}c=(e[1]-this.zc[t])/-this.Cc[t];return[(e[0]-this.zc[t])/this.Bc[t],r*(2*Math.atan(Math.exp(c))-.5*Math.PI)]},s.prototype.bbox=function(e,t,r,n,o){n&&(t=Math.pow(2,r)-1-t);var i=[e*this.size,(+t+1)*this.size],s=[(+e+1)*this.size,t*this.size],a=this.ll(i,r).concat(this.ll(s,r));return"900913"===o?this.convert(a,"900913"):a},s.prototype.xyz=function(e,t,r,n){"900913"===n&&(e=this.convert(e,"WGS84"));var o=[e[0],e[1]],i=[e[2],e[3]],s=this.px(o,t),a=this.px(i,t),c=[Math.floor(s[0]/this.size),Math.floor((a[0]-1)/this.size)],u=[Math.floor(a[1]/this.size),Math.floor((s[1]-1)/this.size)],l={minX:Math.min.apply(Math,c)<0?0:Math.min.apply(Math,c),minY:Math.min.apply(Math,u)<0?0:Math.min.apply(Math,u),maxX:Math.max.apply(Math,c),maxY:Math.max.apply(Math,u)};if(r){var f={minY:Math.pow(2,t)-1-l.maxY,maxY:Math.pow(2,t)-1-l.minY};l.minY=f.minY,l.maxY=f.maxY}return l},s.prototype.convert=function(e,t){return"900913"===t?this.forward(e.slice(0,2)).concat(this.forward(e.slice(2,4))):this.inverse(e.slice(0,2)).concat(this.inverse(e.slice(2,4)))},s.prototype.forward=function(e){var r=[n*e[0]*t,n*Math.log(Math.tan(.25*Math.PI+.5*e[1]*t))];return r[0]>o&&(r[0]=o),r[0]<-o&&(r[0]=-o),r[1]>o&&(r[1]=o),r[1]<-o&&(r[1]=-o),r},s.prototype.inverse=function(e){return[e[0]*r/n,(.5*Math.PI-2*Math.atan(Math.exp(-e[1]/n)))*r]},s}();e.exports=r},36288:function(e,t,r){"use strict";r.r(t),r.d(t,{AddressAutofill:function(){return h},AddressMinimap:function(){return v},Geocoder:function(){return g},SearchBox:function(){return p},config:function(){return n.$W},useAddressAutofillCore:function(){return y},useConfirmAddress:function(){return T},useEvented:function(){return b},useGeocodingCore:function(){return x},useMapboxAutofill:function(){return y},useSearchBoxCore:function(){return E},useSearchSession:function(){return k}});var n=r(93264),o=r(27348),i=r(43674),s=Object.defineProperty,a=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,l=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&l(e,r,t[r]);if(a)for(var r of a(t))u.call(t,r)&&l(e,r,t[r]);return e},d=(e,t)=>{var r={};for(var n in e)c.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&a)for(var n of a(e))t.indexOf(n)<0&&u.call(e,n)&&(r[n]=e[n]);return r},h=o.forwardRef((e,t)=>{const{accessToken:r,options:n,theme:i,popoverOptions:s,confirmOnBrowserAutofill:a,browserAutofillEnabled:c,children:u,onChange:l,onSuggest:f,onSuggestError:d,onRetrieve:h,interceptSearch:p}=e,g=(0,o.useRef)();return(0,o.useImperativeHandle)(t,()=>({focus:()=>{if(g.current)return g.current.focus();throw new Error("AddressAutofill is not mounted")}})),(0,o.useEffect)(()=>{g.current&&(g.current.options=n)},[g.current,n]),(0,o.useEffect)(()=>{g.current&&(g.current.interceptSearch=p)},[g.current,n]),(0,o.useEffect)(()=>{g.current&&(g.current.theme=i)},[g.current,i]),(0,o.useEffect)(()=>{g.current&&(g.current.popoverOptions=s)},[g.current,s]),(0,o.useEffect)(()=>{g.current&&(g.current.confirmOnBrowserAutofill=a)},[g.current,a]),(0,o.useEffect)(()=>{g.current&&(g.current.browserAutofillEnabled=c)},[g.current,c]),(0,o.useEffect)(()=>{const e=g.current;if(!e)return;if(!f)return;const t=e=>f(e.detail);return e.addEventListener("suggest",t),()=>{e.removeEventListener("suggest",t)}},[g.current,f]),(0,o.useEffect)(()=>{const e=g.current;if(!e)return;if(!d)return;const t=e=>d(e.detail);return e.addEventListener("suggesterror",t),()=>{e.removeEventListener("suggesterror",t)}},[g.current,d]),(0,o.useEffect)(()=>{const e=g.current;if(!e)return;if(!h)return;const t=e=>h(e.detail);return e.addEventListener("retrieve",t),()=>{e.removeEventListener("retrieve",t)}},[g.current,h]),(0,o.useEffect)(()=>{const e=g.current;if(!e)return;if(!l)return;const t=e=>{e.target===e.currentTarget&&l(e.detail)};return e.addEventListener("input",t),()=>{e.removeEventListener("input",t)}},[g.current,l]),(0,o.useEffect)(()=>{g.current&&(g.current.accessToken=r)},[g.current,r]),o.createElement("mapbox-address-autofill",{ref:g},u)}),p=o.forwardRef((e,t)=>
2{const{accessToken:r,options:n,componentOptions:i,theme:s,popoverOptions:a,placeholder:c,map:u,marker:l,mapboxgl:f,value:d,onChange:h,onSuggest:p,onSuggestError:g,onRetrieve:v,onClear:b,onBlur:m,interceptSearch:y}=e,w=(0,o.useRef)();return(0,o.useImperativeHandle)(t,()=>({focus:()=>{if(w.current)return w.current.focus();throw new Error("SearchBox is not mounted")},search:e=>{if(w.current)return w.current.search(e);throw new Error("SearchBox is not mounted")}})),(0,o.useEffect)(()=>{w.current&&(w.current.options=n||{})},[w.current,n]),(0,o.useEffect)(()=>{w.current&&(w.current.componentOptions=i||{})},[w.current,i]),(0,o.useEffect)(()=>{w.current&&(w.current.interceptSearch=y)},[w.current,y]),(0,o.useEffect)(()=>{w.current&&(w.current.theme=s)},[w.current,s]),(0,o.useEffect)(()=>{w.current&&(w.current.popoverOptions=a)},[w.current,a]),(0,o.useEffect)(()=>{w.current&&(w.current.placeholder=c)},[w.current,c]),(0,o.useEffect)(()=>{w.current&&(w.current.value=d||"")},[w.current,d]),(0,o.useEffect)(()=>{const e=w.current;if(e)return e.bindMap(u),()=>{e.unbindMap()}},[w.current,u]),(0,o.useEffect)(()=>{w.current&&(w.current.marker=l)},[w.current,l]),(0,o.useEffect)(()=>{w.current&&(w.current.mapboxgl=f)},[w.current,f]),(0,o.useEffect)(()=>{const e=w.current;if(!e)return;if(!p)return;const t=e=>p(e.detail);return e.addEventListener("suggest",t),()=>{e.removeEventListener("suggest",t)}},[w.current,p]),(0,o.useEffect)(()=>{const e=w.current;if(!e)return;if(!g)return;const t=e=>g(e.detail);return e.addEventListener("suggesterror",t),()=>{e.removeEventListener("suggesterror",t)}},[w.current,g]),(0,o.useEffect)(()=>{const e=w.current;if(!e)return;if(!v)return;const t=e=>v(e.detail);return e.addEventListener("retrieve",t),()=>{e.removeEventListener("retrieve",t)}},[w.current,v]),(0,o.useEffect)(()=>{const e=w.current;if(!e)return;if(!h)return;const t=e=>{e.target===e.currentTarget&&h(e.detail)};return e.addEventListener("input",t),()=>{e.removeEventListener("input",t)}},[w.current,h]),(0,o.useEffect)(()=>{const e=w.current;if(!e)return;if(!b)return;const t=()=>{b()};return e.addEventListener("clear",t),()=>{e.removeEventListener("clear",t)}},[w.current,b]),(0,o.useEffect)(()=>{const e=w.current;if(!e)return;if(!m)return;const t=()=>{m()};return e.addEventListener("blur",t),()=>{e.removeEventListener("blur",t)}},[w.current,m]),(0,o.useEffect)(()=>{w.current&&(w.current.accessToken=r)},[w.current,r]),o.createElement("mapbox-search-box",{ref:w})}),g=o.forwardRef((e,t)=>{const{accessToken:r,options:n,componentOptions:i,theme:s,popoverOptions:a,placeholder:c,map:u,marker:l,mapboxgl:f,value:d,onChange:h,onSuggest:p,onSuggestError:g,onRetrieve:v,onClear:b,onBlur:m,interceptSearch:y}=e,w=(0,o.useRef)();return(0,o.useImperativeHandle)(t,()=>({focus:()=>{if(w.current)return w.current.focus();throw new Error("Geocoder is not mounted")},search:e=>{if(w.current)return w.current.search(e);throw new Error("Geocoder is not mounted")}})),(0,o.useEffect)(()=>{w.current&&(w.current.options=n||{})},[w.current,n]),(0,o.useEffect)(()=>{w.current&&(w.current.componentOptions=i||{})},[w.current,i]),(0,o.useEffect)(()=>{w.current&&(w.current.interceptSearch=y)},[w.current,y]),(0,o.useEffect)(()=>{w.current&&(w.current.theme=s)},[w.current,s]),(0,o.useEffect)(()=>{w.current&&(w.current.popoverOptions=a)},[w.current,a]),(0,o.useEffect)(()=>{w.current&&(w.current.placeholder=c)},[w.current,c]),(0,o.useEffect)(()=>{w.current&&(w.current.value=d||"")},[w.current,d]),(0,o.useEffect)(()=>{const e=w.current;if(e)return e.bindMap(u),()=>{e.unbindMap()}},[w.current,u]),(0,o.useEffect)(()=>{w.current&&(w.current.marker=l)},[w.current,l]),(0,o.useEffect)(()=>{w.current&&(w.current.mapboxgl=f)},[w.current,f]),(0,o.useEffect)(()=>{const e=w.current;if(!e)return;if(!p)return;const t=e=>p(e.detail);return e.addEventListener("suggest",t),()=>{e.removeEventListener("suggest",t)}},[w.current,p]),(0,o.useEffect)(()=>{const e=w.current;if(!e)return;if(!g)return;const t=e=>g(e.detail);return e.addEventListener("suggesterror",t),()=>{e.removeEventListener("suggesterror",t)}},[w.current,g]),(0,o.useEffect)(()=>{const e=w.current;if(!e)return;if(!v)return;const t=e=>v(e.detail);return e.addEventListener("retrieve",t),()=>{e.removeEventListener("retrieve",t)}},[w.current,v]),(0,o.useEffect)(()=>{const e=w.current;if(!e)return;if(!h)return;const t=e=>{e.target===e.currentTarget&&h(e.detail)};return e.addEventListener("input",t),()=>{e.removeEventListener("input",t)}},[w.current,h]),(0,o.useEffect)(()=>{const e=w.current;if(!e)return;if(!b)return;const t=()=>{b()};return e.addEventListener("clear",t),()=>{e.removeEventListener("clear",t)}},[w.current,b]),(0,o.useEffect)(()=>{const e=w.current;if(!e)return;if(!m)return;const t=()=>{m()};return e.addEventListener("blur",t),()=>{e.removeEventListener("blur",t)}},[w.current,m]),(0,o.useEffect)(()=>{w.current&&(w.current.accessToken=r)},[w.current,r]),o.createElement("mapbox-geocoder",{ref:w})});function v(e){const{canAdjustMarker:t=!1,keepMarkerCentered:r=!1,markerAnchor:n="bottom",onSaveMarkerLocation:i,show:s=!1,accessToken:a,feature:c=null,adjustBtnText:u,saveBtnText:l,cancelBtnText:f,satelliteToggle:d=!1,theme:h,mapStyleMode:p="default",defaultMapStyle:g=["mapbox","streets-v11"],footer:v}=e,b=(0,o.useRef)();return(0,o.useEffect)(()=>{b.current&&(s?b.current.show():b.current.hide())},[b.current,s]),(0,o.useEffect)(()=>{b.current&&(b.current.theme=h)},[b.current,h]),(0,o.useEffect)(()=>{b.current&&(b.current.feature=s?c:null)},[b.current,c,s]),(0,o.useEffect)(()=>{b.current&&(b.current.mapStyleMode=p)},[b.current,p]),(0,o.useEffect)(()=>{void 0!==u&&b.current&&(b.current.adjustBtnText=u)},[b.current,u]),(0,o.useEffect)(()=>{void 0!==l&&b.current&&(b.current.saveBtnText=l)},[b.current,l]),(0,o.useEffect)(()=>{void 0!==f&&b.current&&(b.current.cancelBtnText=f)},[b.current,f]),(0,o.useEffect)(()=>{b.current&&(b.current.defaultMapStyle=g)},[b.current,g]),(0,o.useEffect)(()=>{void 0!==v&&b.current&&(b.current.footer=v)},[b.current,v]),(0,o.useEffect)(()=>{b.current&&(b.current.accessToken=a)},[b.current,a]),(0,o.useEffect)(()=>{b.current&&(b.current.onSaveMarkerLocation=i)},[b.current,i]),o.createElement("mapbox-address-minimap",{ref:b,"can-adjust-marker":t,"keep-marker-centered":r,"marker-anchor":n,"satellite-toggle":d})}function b(e,t,r){const n=(0,o.useRef)(r);(0,o.useEffect)(()=>{n.current=r}),(0,o.useEffect)(()=>
2{if(!e)return;const r=e=>n.current(e);return e.addEventListener(t,r),()=>{e.removeEventListener(t,r)}},[e,t,n])}var m=i.qz.defaults;function y(e){const t=(0,o.useMemo)(()=>new i.qz,[]);return(0,o.useEffect)(()=>{const r=e,{accessToken:n}=r,o=d(r,["accessToken"]);t.accessToken=n,t.defaults=f(f({},m),o)},[e]),t}var w=i.pA.defaults;function E(e){const t=(0,o.useMemo)(()=>new i.pA,[]);return(0,o.useEffect)(()=>{const r=e,{accessToken:n}=r,o=d(r,["accessToken"]);t.accessToken=n,t.defaults=f(f({},w),o)},[e]),t}function x(e){const t=(0,o.useMemo)(()=>new i.Tu,[]);return(0,o.useEffect)(()=>{const r=e,{accessToken:n}=r,o=d(r,["accessToken"]);t.accessToken=n,t.defaults=f({},o)},[e]),t}function k(e){const t=(0,o.useMemo)(()=>new i.p7(e),[e]);return e instanceof i.pA||i.Tu,t}function T(e={}){const t=(0,o.useRef)(null);return(0,o.useMemo)(()=>({formRef:t,showConfirm:()=>(0,n.j9)(t.current,e)}),[t,e])}},39246:function(e){!function(t){var r,n,o=!1;function i(e){if("undefined"!=typeof document&&!o){var t=document.documentElement;n=window.pageYOffset,document.documentElement.scrollHeight>window.innerHeight?t.style.width="calc(100% - "+function(){if(void 0!==r)return r;var e=document.documentElement,t=document.createElement("div");return t.setAttribute("style","width:99px;height:99px;position:absolute;top:-9999px;overflow:scroll;"),e.appendChild(t),r=t.offsetWidth-t.clientWidth,e.removeChild(t),r}()+"px)":t.style.width="100%",t.style.position="fixed",t.style.top=-n+"px",t.style.overflow="hidden",o=!0}}function s(){if("undefined"!=typeof document&&o){var e=document.documentElement;e.style.width="",e.style.position="",e.style.top="",e.style.overflow="",window.scroll(0,n),o=!1}}var a={on:i,off:s,toggle:function(){o?s():i()}};void 0!==e.exports?e.exports=a:t.noScroll=a}(this)},43674:function(e,t,r){"use strict";r.d(t,{Dh:function(){return re},Tu:function(){return ue},UH:function(){return k},a$:function(){return me},cl:function(){return T},cr:function(){return xe},jJ:function(){return x},p7:function(){return Ee},pA:function(){return V},qz:function(){return I},sg:function(){return ye},tp:function(){return be}});var n=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,l=(e,t)=>{for(var r in t||(t={}))a.call(t,r)&&u(e,r,t[r]);if(s)for(var r of s(t))c.call(t,r)&&u(e,r,t[r]);return e},f=(e,t)=>o(e,i(t)),d=(e,t)=>{var r={};for(var n in e)a.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&s)for(var n of s(e))t.indexOf(n)<0&&c.call(e,n)&&(r[n]=e[n]);return r},h=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},p=(e,t,r)=>(h(e,t,"read from private field"),r?r.call(e):t.get(e)),g=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},v=(e,t,r,n)=>(h(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),b=(e,t,r)=>(h(e,t,"access private method"),r),m=(e,t,r)=>new Promise((n,o)=>{var i=e=>{try{a(r.next(e))}catch(t){o(t)}},s=e=>{try{a(r.throw(e))}catch(t){o(t)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,s);a((r=r.apply(e,t)).next())}),y="https://api.mapbox.com/autofill/v1",w=`${y}/suggest`,E=`${y}/retrieve`,x=class{constructor(e,t){if(isNaN(e)||isNaN(t))throw new Error(`Invalid LngLat object: (${e}, ${t})`);if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90");if(this.lng>180||this.lng<-180)throw new Error("Invalid LngLat longitude value: must be between -180 and 180")}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}static convert(e){if(e instanceof x)return new x(e.lng,e.lat);if(Array.isArray(e)&&2===e.length)return new x(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e&&("lng"in e||"lon"in e)&&"lat"in e)return new x(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}},k=class{constructor(e,t){this._sw=x.convert(e),this._ne=x.convert(t)}
2getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new x(this.getWest(),this.getNorth())}getSouthEast(){return new x(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toFlatArray(){return[this._sw.lng,this._sw.lat,this._ne.lng,this._ne.lat]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}static convert(e){if(!e)throw new Error("Invalid LngLatBounds convert value: falsy");if(e instanceof k)return new k(e.getSouthWest(),e.getNorthEast());if(Array.isArray(e)&&2===e.length)return new k(x.convert(e[0]),x.convert(e[1]));if(Array.isArray(e)&&4===e.length)return new k(x.convert([e[0],e[1]]),x.convert([e[2],e[3]]));throw new Error("`LngLatBoundsLike` argument must be specified as an array [<LngLatLike>, <LngLatLike>] or an array [<west>, <south>, <east>, <north>]")}};var T=class{constructor(e){this.id=null!=e?e:function(){const e=(Math.random().toString(16)+Date.now().toString(16)+Math.random().toString(16)).replace(/\./g,"");return[e.slice(0,8),e.slice(8,12),"4"+e.slice(12,15)+"-8"+e.slice(15,18),e.slice(18,30)].join("-")}()}toString(){return this.id}static convert(e){return new T(e instanceof T?e.id:e.toString())}},S=class extends Error{constructor(e,t){super(String(e.message||e.error||"Unknown error")),this.name="MapboxError",this.statusCode=t}toString(){return`${this.name} (${this.statusCode}): ${this.message}`}};function L(e){return m(this,null,function*(){if(!e.ok){const t=yield e.json();throw new S(t,e.status)}})}var _,A,M,O=globalThis.fetch,R=globalThis.AbortController;function j(){if(!O)throw new Error("Fetch implementation not found. Please include a fetch polyfill in your application or use `polyfillFetch` from `@mapbox/search-js-core` to fix this issue.");return{fetch:O,AbortController:R}}function N(...e){const t=[];for(const r of e){if(!r)continue;const e=Object.entries(r);for(const[r,n]of e)null!=n&&t.push(`${r}=${encodeURIComponent(String(n))}`)}return t.join("&")}var C=class{constructor(e={}){g(this,A),g(this,_,void 0);const t=e,{accessToken:r}=t,n=d(t,["accessToken"]);this.accessToken=r,this.defaults=l(l({},C.defaults),n)}get responseHeaders(){return p(this,_)}suggest(e,t){return m(this,null,function*(){if(!e)throw new Error("searchText is required");const{sessionToken:r,signal:n}=t,o=f(l(l({},this.defaults),t),{sessionToken:r}),i=new URL(`${w}/${encodeURIComponent(e)}`);i.search=b(this,A,M).call(this,o);const{fetch:s}=j(),a=yield s(i.toString(),{signal:n});v(this,_,a.headers),yield L(a);const c=yield a.json();return f(l({},c),{suggestions:c.suggestions.map(t=>f(l({},t),{original_search_text:e,_source:"mapbox"})),url:i.toString()})})}retrieve(e,t){return m(this,null,function*(){if(!e)throw new Error("suggestion is required");if(!this.canRetrieve(e))throw new Error("suggestion cannot be retrieved");const{sessionToken:r,signal:n}=t,o=T.convert(r),i=new URL(`${E}/${e.action.id}`);i.search=N({access_token:this.accessToken,session_token:o.id});const{fetch:s}=j(),a=yield s(i.toString(),{signal:n});yield L(a);const c=yield a.json();return c.url=i.toString(),c})}canRetrieve(e){const t=e.action;return"string"==typeof(null==t?void 0:t.id)}},I=C;_=new WeakMap,A=new WeakSet,M=function(e){return N({types:"address",access_token:this.accessToken,streets:e.streets,language:e.language,country:e.country,limit:e.limit},e.sessionToken&&{session_token:T.convert(e.sessionToken).id},e.proximity&&{proximity:"string"==typeof e.proximity?e.proximity:x.convert(e.proximity).toArray().join(",")},e.bbox&&{bbox:"string"==typeof e.bbox?e.bbox:k.convert(e.bbox).toFlatArray().join(",")})},I.defaults={language:"en",proximity:"ip",streets:!0};var $,F,D,P,z,B,q="https://api.mapbox.com/search/searchbox/v1",G=`${q}/suggest`,W=`${q}/retrieve`,U=`${q}/category`,Y=`${q}/reverse`,H="\\.\\d{1,256}",Z=`(-?(${`\\d{1,3}(${H})?`}|${H}))`,K=new RegExp(`^[ ]*${Z},\\s*${Z}[ ]*$`),X=/[\s,]+/,J=class{constructor(e={}){g(this,$),g(this,D),g(this,z);const t=e,{accessToken:r}=t,n=d(t,["accessToken"]);this.accessToken=r,this.defaults=l(l({},J.defaults),n)}suggest(e,t){return m(this,null,function*(){var r;if(!e)throw new Error("searchText is required");if(K.test(e)&&t.allowReverse){let r=e.trim().split(X).map(e=>e.trim());t.flipCoordinates&&(r=r.reverse());const n=r.join(","),o=yield this.reverse(n,t);
2return b(this,D,P).call(this,o)}const{sessionToken:n,signal:o}=t,i=f(l(l({},this.defaults),t),{q:e,sessionToken:n});if(i.eta_type&&(!i.origin||!i.navigation_profile))throw new Error("to provide eta estimate: eta, navigation_profile, and origin are required");if(i.origin&&!i.navigation_profile)throw new Error("to provide distance estimate: both navigation_profile and origin are required");const s=new URL(G);s.search=b(this,$,F).call(this,i);const{fetch:a}=j(),c=yield a(s.toString(),{signal:o});yield L(c);const u=yield c.json();return u.url=s.toString(),null==(r=u.suggestions)||r.forEach(e=>{e._source="mapbox"}),u})}retrieve(e,t){return m(this,null,function*(){if(!e)throw new Error("suggestion is required");if(e._originalFeature){return{type:"FeatureCollection",features:[e._originalFeature],url:e._originalUrl||""}}if(e._geometry){return{type:"FeatureCollection",features:[{type:"Feature",properties:e,geometry:e._geometry}]}}const{sessionToken:r,signal:n,language:o}=t,i=T.convert(r),s=l(l({},this.defaults),o&&{language:o}),a=new URL(`${W}/${encodeURIComponent(e.mapbox_id)}`);a.search=N({access_token:this.accessToken,session_token:i.id},{language:s.language});const{fetch:c}=j(),u=yield c(a.toString(),{signal:n});yield L(u);const f=yield u.json();return f.url=a.toString(),f})}category(e){return m(this,arguments,function*(e,t={}){if(!e)throw new Error("category is required");const r=l(l({},this.defaults),t),n=new URL(`${U}/${encodeURIComponent(e)}`);n.search=b(this,$,F).call(this,r);const{fetch:o}=j(),i=yield o(n.toString(),{signal:r.signal});yield L(i);const s=yield i.json();return s.url=n.toString(),s})}reverse(e){return m(this,arguments,function*(e,t={}){var r;if(!e)throw new Error("lngLat is required");const[n,o]="string"==typeof e?e.split(",").map(e=>parseFloat(e)):x.convert(e).toArray();if(isNaN(n)||isNaN(o))throw new Error("lngLat is required");const i=l(l({},this.defaults),t),s=new URL(Y);s.search=N({access_token:this.accessToken,language:i.language,limit:i.limit,longitude:n,latitude:o},i.types&&{types:"string"==typeof i.types?i.types:[...i.types].join(",")});const{fetch:a}=j(),c=yield a(s.toString(),{signal:i.signal});yield L(c);const u=yield c.json();return u.url=s.toString(),null==(r=u.features)||r.forEach(e=>{e._source="mapbox"}),u})}},V=J;$=new WeakSet,F=function(e){return N({q:e.q,access_token:this.accessToken,language:e.language,limit:e.limit,navigation_profile:e.navigation_profile,route:e.route,route_geometry:e.route_geometry,sar_type:e.sar_type,time_deviation:e.time_deviation,eta_type:e.eta_type,country:e.country,poi_category:e.poi_category,rich_metadata_provider:e.rich_metadata_provider,poi_category_exclusions:e.poi_category_exclusions},e.sessionToken&&{session_token:T.convert(e.sessionToken).id},e.proximity&&{proximity:"string"==typeof e.proximity?e.proximity:x.convert(e.proximity).toArray().join(",")},e.origin&&{origin:"string"==typeof e.origin?e.origin:x.convert(e.origin).toArray().join(",")},e.bbox&&{bbox:"string"==typeof e.bbox?e.bbox:k.convert(e.bbox).toFlatArray().join(",")},e.types&&{types:"string"==typeof e.types?e.types:[...e.types].join(",")})},D=new WeakSet,P=function(e){return{suggestions:e.features.map(t=>b(this,z,B).call(this,t,e.url)),attribution:e.attribution,url:e.url}},z=new WeakSet,B=function(e,t){return f(l({},e.properties),{_originalFeature:e,_originalUrl:t,_source:e._source})},V.defaults={language:"en"};var Q,ee,te=class{constructor(e={}){g(this,Q);const t=e,{accessToken:r}=t,n=d(t,["accessToken"]);this.accessToken=r,this.defaults=l(l({},te.defaults),n)}validate(e,t){return m(this,null,function*(){if(!e)throw new Error("searchText is required");const{sessionToken:r,signal:n}=t,o=f(l(l({},this.defaults),t),{sessionToken:r}),i=new URL(`https://api.mapbox.com/autofill/v1/retrieve/${encodeURIComponent(e)}`);i.search=b(this,Q,ee).call(this,o);const{fetch:s}=j(),a=yield s(i.toString(),{signal:n});yield L(a);const c=yield a.json();return c.url=i.toString(),c.features.length>0&&(c.features=[c.features[0]]),c})}},re=te;Q=new WeakSet,ee=function(e){return N({access_token:this.accessToken,language:e.language,country:e.country},e.sessionToken&&{session_token:T.convert(e.sessionToken).id},e.proximity&&{proximity:"string"==typeof e.proximity?e.proximity:x.convert(e.proximity).toArray().join(",")},e.bbox&&{bbox:"string"==typeof e.bbox?e.bbox:k.convert(e.bbox).toFlatArray().join(",")})},re.defaults={language:"en",proximity:"ip"};
2var ne,oe,ie,se="https://api.mapbox.com/search/geocode/v6",ae=`${se}/forward`,ce=`${se}/reverse`,ue=class{constructor(e={}){g(this,oe),g(this,ne,void 0);const t=e,{accessToken:r}=t,n=d(t,["accessToken"]);this.accessToken=r,this.defaults=l({},n)}get responseHeaders(){return p(this,ne)}forward(e,t){return m(this,null,function*(){var r;if(!e)throw new Error("searchText is required");let n;t&&({signal:n}=t);const o=f(l(l({},this.defaults),t),{q:e}),i=new URL(`${ae}`);i.search=b(this,oe,ie).call(this,o);const{fetch:s}=j(),a=n?{signal:n}:{},c=yield s(i.toString(),a);v(this,ne,c.headers),yield L(c);const u=yield c.json();return u.url=i.toString(),null==(r=u.features)||r.forEach(e=>{e._source="mapbox"}),u})}reverse(e,t){return m(this,null,function*(){var r;if(!e)throw new Error("lngLat is required");let n,o;if(t&&({signal:n}=t),"string"==typeof e){const[t,r]=e.split(",");o=new x(Number(t),Number(r))}else o=x.convert(e);const i=f(l(l({},this.defaults),t),{longitude:o.lng,latitude:o.lat}),s=new URL(`${ce}`);s.search=b(this,oe,ie).call(this,i,!0);const{fetch:a}=j(),c=n?{signal:n}:{},u=yield a(s.toString(),c);v(this,ne,u.headers),yield L(u);const d=yield u.json();return d.url=s.toString(),null==(r=d.features)||r.forEach(e=>{e._source="mapbox"}),d})}suggest(e,t){return m(this,null,function*(){if(K.test(e)){let r=e.trim().split(X).map(e=>e.trim());t.flipCoordinates&&(r=r.reverse());const n=r.join(",");return this.reverse(n,t)}return this.forward(e,t)})}retrieve(e){return m(this,null,function*(){return e})}};ne=new WeakMap,oe=new WeakSet,ie=function(e,t=!1){return t&&["proximity","autocomplete","bbox"].forEach(t=>{t in e&&delete e[t]}),N({q:e.q,longitude:e.longitude,latitude:e.latitude,access_token:this.accessToken,permanent:e.permanent,language:e.language,country:e.country,limit:e.limit,autocomplete:e.autocomplete,worldview:e.worldview},e.sessionToken&&{session_token:T.convert(e.sessionToken).id},e.proximity&&{proximity:"string"==typeof e.proximity?e.proximity:x.convert(e.proximity).toArray().join(",")},e.bbox&&{bbox:"string"==typeof e.bbox?e.bbox:k.convert(e.bbox).toFlatArray().join(",")},e.types&&{types:"string"==typeof e.types?e.types:[...e.types].join(",")})};var le,fe,de,he,pe,ge,ve,be=(e=>(e.exact="exact",e.high="high",e.medium="medium",e.low="low",e))(be||{}),me=class{constructor(){g(this,le,{})}addEventListener(e,t){const r=p(this,le);r[e]||(r[e]=[]),r[e].push(t)}removeEventListener(e,t){const r=p(this,le);if(!r[e])return;const n=r[e],o=n.indexOf(t);-1!==o&&n.splice(o,1)}fire(e,t){const r=p(this,le);if(!r[e])return;const n=r[e];for(const o of n)o(t)}};function ye(e,t,r){let n=null;return(...o)=>{null!==n&&clearTimeout(n);const i=r&&r();n=setTimeout(()=>{n=null,(null==i?void 0:i.aborted)||e(...o)},t)}}function we(){const{AbortController:e}=j();return new e}le=new WeakMap;var Ee=class extends me{constructor(e,t=0){super(),g(this,fe,new T),g(this,de,0),g(this,he,!1),g(this,pe,void 0),g(this,ge,we()),g(this,ve,void 0),v(this,ve,ye((e,...t)=>m(this,[e,...t],function*(e,t={}){if(p(this,ge).abort(),v(this,ge,we()),!e)return v(this,pe,null),void this.fire("suggest",p(this,pe));try{const r=yield this.search.suggest(e,f(l({sessionToken:this.sessionToken},t),{signal:p(this,ge).signal}));v(this,pe,r),this.fire("suggest",r)}catch(r){if("AbortError"===r.name)return;this.fire("suggesterror",r)}}),t,()=>p(this,ge).signal)),Object.defineProperties(this,{search:{value:e,writable:!1},debounce:{value:t,writable:!1}})}get sessionToken(){return p(this,he)?p(this,fe).id:`${p(this,fe).id}.${p(this,de)}`}set sessionToken(e){v(this,he,!0),v(this,fe,new T(e))}get suggestions(){return p(this,pe)}suggest(e,t){return p(this,ve).call(this,e,t),new Promise((e,t)=>{let r,n;r=t=>{this.removeEventListener("suggest",r),this.removeEventListener("suggesterror",n),e(t)},n=e=>{this.removeEventListener("suggest",r),this.removeEventListener("suggesterror",n),t(e)},this.addEventListener("suggest",r),this.addEventListener("suggesterror",n)})}clear(){this.suggest("")}retrieve(e,t){return m(this,null,function*(){const r=yield this.search.retrieve(e,l({sessionToken:this.sessionToken},t));return this.fire("retrieve",r),r})}canRetrieve(e){return!this.search.canRetrieve||this.search.canRetrieve(e)}canSuggest(e){return!this.search.canSuggest||this.search.canSuggest(e)}
2abort(){p(this,ge).abort(),v(this,ge,we())}incrementSession(){var e,t,r,n;(e=this,t=de,{set _(n){v(e,t,n,r)},get _(){return p(e,t,n)}})._++}};function xe(e){const{properties:t}=e;return l({},t)}fe=new WeakMap,de=new WeakMap,he=new WeakMap,pe=new WeakMap,ge=new WeakMap,ve=new WeakMap},68855:function(e){var t,r;t=this,r=function(){var e=/^([a-zA-Z]{2,3})(?:[_-]+([a-zA-Z]{3})(?=$|[_-]+))?(?:[_-]+([a-zA-Z]{4})(?=$|[_-]+))?(?:[_-]+([a-zA-Z]{2}|[0-9]{3})(?=$|[_-]+))?/;function t(t){return t.match(e)||[]}function r(e){return{language:(e=t(e))[1]||"",extlang:e[2]||"",script:e[3]||"",region:e[4]||""}}function n(e,t,r){Object.defineProperty(e,t,{value:r,enumerable:!0})}function o(e,o,i){function s(r){return t(r)[e]||""}n(s,"pattern",o),n(r,i,s)}return o(1,/^[a-zA-Z]{2,3}$/,"language"),o(2,/^[a-zA-Z]{3}$/,"extlang"),o(3,/^[a-zA-Z]{4}$/,"script"),o(4,/^[a-zA-Z]{2}$|^[0-9]{3}$/,"region"),n(r,"split",function(e){return t(e).filter(function(e,t){return e&&t})}),r},e.exports?e.exports=r():t.subtag=r()}}]);
3//# sourceMappingURL=c8f7fe3b0e41be846d5687592cf2018ff6e22687-4ebfdc3c27787a96d95b.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.