@carto/ps-react-maps 1.1.2-alpha.1 → 1.1.2-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react");var De=(n=>(n.Roadmap="roadmap",n.Satellite="satellite",n.Terrain="terrain",n))(De||{}),Ie=(n=>(n.DarkMatter="dark-matter",n.Positron="positron",n.Voyager="voyager",n))(Ie||{});const br={positron:"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",voyager:"https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json","dark-matter":"https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"},q=()=>{throw new Error("You forgot to wrap your component in <MapProvider>.")},F={state:{maps:{}},references:{current:{}},actions:{setViewState:q,setBasemap:q,setResize:q,setZoom:q}},ne=y.createContext(F.state),Ae=y.createContext(F.references),ae=y.createContext(F.actions);var D=(n=>(n.SetViewState="SetViewState",n.SetBasemap="SetBasemap",n.SetResize="SetResize",n.SetZoom="SetZoom",n))(D||{});function Me(n,{type:p,payload:R}){return{SetViewState:()=>{const{id:s,viewState:g}=R,l={...n.maps};return l[s]={...n.maps[s],viewState:g},{...n,maps:l}},SetResize:()=>{const{id:s,width:g,height:l}=R,C={...n.maps};return C[s]={...n.maps[s],viewState:{...n.maps[s].viewState,width:g,height:l}},{...n,maps:C}},SetBasemap:()=>{const{id:s,basemap:g}=R,l={...n.maps};return l[s]={...n.maps[s],basemap:g},{...n,maps:l}},SetZoom:()=>{const{id:s,zoom:g}=R,l={...n.maps};return l[s]={...n.maps[s],viewState:{...n.maps[s].viewState,zoom:g}},{...n,maps:l}}}[p]?.()??n}function Fe(){return y.useContext(ne)}function gr(){return y.useContext(Ae)}function Ve(){return y.useContext(ae)}function hr(n){const{maps:{[n]:p}}=Fe();return p}function Er(n){const{current:{[n]:{instanceRef:p,overlayRef:R}}}=gr(),h=y.useCallback(()=>{const l=p?.current;return l?.deck||l?._deck},[p]),s=y.useCallback(()=>R?.current,[R]),g=y.useCallback(()=>h()._getViewState(),[h]);return{instanceRef:p,overlayRef:R,getDeckInstance:h,getOverlayInstance:s,getViewState:g}}function _r(n){const{setBasemap:p,setResize:R,setViewState:h,setZoom:s}=Ve();return{setBasemap:p.bind(null,n),setResize:R.bind(null,n),setViewState:h.bind(null,n),setZoom:s.bind(null,n)}}var te={exports:{}},W={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react");var De=(n=>(n.Roadmap="roadmap",n.Satellite="satellite",n.Terrain="terrain",n))(De||{}),Ie=(n=>(n.DarkMatter="dark-matter",n.Positron="positron",n.Voyager="voyager",n))(Ie||{});const gr={positron:"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",voyager:"https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json","dark-matter":"https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"},q=()=>{throw new Error("You forgot to wrap your component in <MapProvider>.")},F={state:{maps:{}},references:{current:{}},actions:{setViewState:q,setBasemap:q,setResize:q,setZoom:q}},ne=g.createContext(F.state),Ae=g.createContext(F.references),ae=g.createContext(F.actions);var D=(n=>(n.SetViewState="SetViewState",n.SetBasemap="SetBasemap",n.SetResize="SetResize",n.SetZoom="SetZoom",n))(D||{});function Me(n,{type:m,payload:R}){return{SetViewState:()=>{const{id:u,viewState:b}=R,l={...n.maps};return l[u]={...n.maps[u],viewState:b},{...n,maps:l}},SetResize:()=>{const{id:u,width:b,height:l}=R,w={...n.maps};return w[u]={...n.maps[u],viewState:{...n.maps[u].viewState,width:b,height:l}},{...n,maps:w}},SetBasemap:()=>{const{id:u,basemap:b}=R,l={...n.maps};return l[u]={...n.maps[u],basemap:b},{...n,maps:l}},SetZoom:()=>{const{id:u,zoom:b}=R,l={...n.maps};return l[u]={...n.maps[u],viewState:{...n.maps[u].viewState,zoom:b}},{...n,maps:l}}}[m]?.()??n}function Fe(){return g.useContext(ne)}function br(){return g.useContext(Ae)}function Ve(){return g.useContext(ae)}function hr(n){const{maps:{[n]:m}}=Fe();return m}function Er(n){const{current:{[n]:{instanceRef:m,overlayRef:R}}}=br(),S=()=>{const l=m?.current;return l?.deck||l?._deck};return{instanceRef:m,overlayRef:R,getDeckInstance:S,getOverlayInstance:()=>R?.current,getViewState:()=>S()._getViewState()}}function _r(n){const{setBasemap:m,setResize:R,setViewState:S,setZoom:u}=Ve();return{setBasemap:m.bind(null,n),setResize:R.bind(null,n),setViewState:S.bind(null,n),setZoom:u.bind(null,n)}}var te={exports:{}},W={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ke;function Sr(){if(ke)return W;ke=1;var n=y,p=Symbol.for("react.element"),R=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g={key:!0,ref:!0,__self:!0,__source:!0};function l(C,b,x){var E,w={},f=null,d=null;x!==void 0&&(f=""+x),b.key!==void 0&&(f=""+b.key),b.ref!==void 0&&(d=b.ref);for(E in b)h.call(b,E)&&!g.hasOwnProperty(E)&&(w[E]=b[E]);if(C&&C.defaultProps)for(E in b=C.defaultProps,b)w[E]===void 0&&(w[E]=b[E]);return{$$typeof:p,type:C,key:f,ref:d,props:w,_owner:s.current}}return W.Fragment=R,W.jsx=l,W.jsxs=l,W}var Y={};/**
9
+ */var je;function Sr(){if(je)return W;je=1;var n=g,m=Symbol.for("react.element"),R=Symbol.for("react.fragment"),S=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function l(w,y,x){var h,C={},f=null,d=null;x!==void 0&&(f=""+x),y.key!==void 0&&(f=""+y.key),y.ref!==void 0&&(d=y.ref);for(h in y)S.call(y,h)&&!b.hasOwnProperty(h)&&(C[h]=y[h]);if(w&&w.defaultProps)for(h in y=w.defaultProps,y)C[h]===void 0&&(C[h]=y[h]);return{$$typeof:m,type:w,key:f,ref:d,props:C,_owner:u.current}}return W.Fragment=R,W.jsx=l,W.jsxs=l,W}var Y={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,14 +14,14 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var je;function Cr(){return je||(je=1,process.env.NODE_ENV!=="production"&&function(){var n=y,p=Symbol.for("react.element"),R=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),C=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),k=Symbol.iterator,oe="@@iterator";function $e(e){if(e===null||typeof e!="object")return null;var r=k&&e[k]||e[oe];return typeof r=="function"?r:null}var I=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];We("error",e,t)}}function We(e,r,t){{var a=I.ReactDebugCurrentFrame,u=a.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var c=t.map(function(i){return String(i)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var Ye=!1,Be=!1,Le=!1,Ne=!1,Ue=!1,ie;ie=Symbol.for("react.module.reference");function ze(e){return!!(typeof e=="string"||typeof e=="function"||e===h||e===g||Ue||e===s||e===x||e===E||Ne||e===d||Ye||Be||Le||typeof e=="object"&&e!==null&&(e.$$typeof===f||e.$$typeof===w||e.$$typeof===l||e.$$typeof===C||e.$$typeof===b||e.$$typeof===ie||e.getModuleId!==void 0))}function qe(e,r,t){var a=e.displayName;if(a)return a;var u=r.displayName||r.name||"";return u!==""?t+"("+u+")":t}function se(e){return e.displayName||"Context"}function P(e){if(e==null)return null;if(typeof e.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case h:return"Fragment";case R:return"Portal";case g:return"Profiler";case s:return"StrictMode";case x:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var r=e;return se(r)+".Consumer";case l:var t=e;return se(t._context)+".Provider";case b:return qe(e,e.render,"ForwardRef");case w:var a=e.displayName||null;return a!==null?a:P(e.type)||"Memo";case f:{var u=e,c=u._payload,i=u._init;try{return P(i(c))}catch{return null}}}return null}var j=Object.assign,V=0,ue,ce,le,fe,de,ve,pe;function me(){}me.__reactDisabledLog=!0;function Ze(){{if(V===0){ue=console.log,ce=console.info,le=console.warn,fe=console.error,de=console.group,ve=console.groupCollapsed,pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function Je(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:ue}),info:j({},e,{value:ce}),warn:j({},e,{value:le}),error:j({},e,{value:fe}),group:j({},e,{value:de}),groupCollapsed:j({},e,{value:ve}),groupEnd:j({},e,{value:pe})})}V<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=I.ReactCurrentDispatcher,J;function B(e,r,t){{if(J===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);J=a&&a[1]||""}return`
18
- `+J+e}}var G=!1,L;{var Ge=typeof WeakMap=="function"?WeakMap:Map;L=new Ge}function ye(e,r){if(!e||G)return"";{var t=L.get(e);if(t!==void 0)return t}var a;G=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=Z.current,Z.current=null,Ze();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(O){a=O}Reflect.construct(e,[],i)}else{try{i.call()}catch(O){a=O}e.call(i.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var o=O.stack.split(`
19
- `),S=a.stack.split(`
20
- `),v=o.length-1,m=S.length-1;v>=1&&m>=0&&o[v]!==S[m];)m--;for(;v>=1&&m>=0;v--,m--)if(o[v]!==S[m]){if(v!==1||m!==1)do if(v--,m--,m<0||o[v]!==S[m]){var T=`
21
- `+o[v].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,T),T}while(v>=1&&m>=0);break}}}finally{G=!1,Z.current=c,Je(),Error.prepareStackTrace=u}var M=e?e.displayName||e.name:"",xe=M?B(M):"";return typeof e=="function"&&L.set(e,xe),xe}function Ke(e,r,t){return ye(e,!1)}function He(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,He(e));if(typeof e=="string")return B(e);switch(e){case x:return B("Suspense");case E:return B("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case b:return Ke(e.render);case w:return N(e.type,r,t);case f:{var a=e,u=a._payload,c=a._init;try{return N(c(u),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,Re={},be=I.ReactDebugCurrentFrame;function z(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}function Xe(e,r,t,a,u){{var c=Function.call.bind(U);for(var i in e)if(c(e,i)){var o=void 0;try{if(typeof e[i]!="function"){var S=Error((a||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}o=e[i](r,i,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(v){o=v}o&&!(o instanceof Error)&&(z(u),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,i,typeof o),z(null)),o instanceof Error&&!(o.message in Re)&&(Re[o.message]=!0,z(u),_("Failed %s type: %s",t,o.message),z(null))}}}var Qe=Array.isArray;function K(e){return Qe(e)}function er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function rr(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function he(e){if(rr(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",er(e)),ge(e)}var $=I.ReactCurrentOwner,tr={key:!0,ref:!0,__self:!0,__source:!0},Ee,_e,H;H={};function nr(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ar(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&$.current&&r&&$.current.stateNode!==r){var t=P($.current.type);H[t]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',P($.current.type),e.ref),H[t]=!0)}}function ir(e,r){{var t=function(){Ee||(Ee=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function sr(e,r){{var t=function(){_e||(_e=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ur=function(e,r,t,a,u,c,i){var o={$$typeof:p,type:e,key:r,ref:t,props:i,_owner:c};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function cr(e,r,t,a,u){{var c,i={},o=null,S=null;t!==void 0&&(he(t),o=""+t),ar(r)&&(he(r.key),o=""+r.key),nr(r)&&(S=r.ref,or(r,u));for(c in r)U.call(r,c)&&!tr.hasOwnProperty(c)&&(i[c]=r[c]);if(e&&e.defaultProps){var v=e.defaultProps;for(c in v)i[c]===void 0&&(i[c]=v[c])}if(o||S){var m=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&ir(i,m),S&&sr(i,m)}return ur(e,o,S,u,a,$.current,i)}}var X=I.ReactCurrentOwner,Se=I.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(t)}else Se.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===p}function Ce(){{if(X.current){var e=P(X.current.type);if(e)return`
17
+ */var ke;function wr(){return ke||(ke=1,process.env.NODE_ENV!=="production"&&function(){var n=g,m=Symbol.for("react.element"),R=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),w=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),j=Symbol.iterator,oe="@@iterator";function $e(e){if(e===null||typeof e!="object")return null;var r=j&&e[j]||e[oe];return typeof r=="function"?r:null}var I=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];We("error",e,t)}}function We(e,r,t){{var a=I.ReactDebugCurrentFrame,s=a.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(i){return String(i)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var Ye=!1,Be=!1,Le=!1,Ne=!1,Ue=!1,ie;ie=Symbol.for("react.module.reference");function ze(e){return!!(typeof e=="string"||typeof e=="function"||e===S||e===b||Ue||e===u||e===x||e===h||Ne||e===d||Ye||Be||Le||typeof e=="object"&&e!==null&&(e.$$typeof===f||e.$$typeof===C||e.$$typeof===l||e.$$typeof===w||e.$$typeof===y||e.$$typeof===ie||e.getModuleId!==void 0))}function qe(e,r,t){var a=e.displayName;if(a)return a;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function se(e){return e.displayName||"Context"}function P(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case R:return"Portal";case b:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w:var r=e;return se(r)+".Consumer";case l:var t=e;return se(t._context)+".Provider";case y:return qe(e,e.render,"ForwardRef");case C:var a=e.displayName||null;return a!==null?a:P(e.type)||"Memo";case f:{var s=e,c=s._payload,i=s._init;try{return P(i(c))}catch{return null}}}return null}var k=Object.assign,V=0,ue,ce,le,fe,de,ve,pe;function me(){}me.__reactDisabledLog=!0;function Ze(){{if(V===0){ue=console.log,ce=console.info,le=console.warn,fe=console.error,de=console.group,ve=console.groupCollapsed,pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function Je(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:ue}),info:k({},e,{value:ce}),warn:k({},e,{value:le}),error:k({},e,{value:fe}),group:k({},e,{value:de}),groupCollapsed:k({},e,{value:ve}),groupEnd:k({},e,{value:pe})})}V<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=I.ReactCurrentDispatcher,J;function B(e,r,t){{if(J===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);J=a&&a[1]||""}return`
18
+ `+J+e}}var G=!1,L;{var Ge=typeof WeakMap=="function"?WeakMap:Map;L=new Ge}function ye(e,r){if(!e||G)return"";{var t=L.get(e);if(t!==void 0)return t}var a;G=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=Z.current,Z.current=null,Ze();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(O){a=O}Reflect.construct(e,[],i)}else{try{i.call()}catch(O){a=O}e.call(i.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var o=O.stack.split(`
19
+ `),_=a.stack.split(`
20
+ `),v=o.length-1,p=_.length-1;v>=1&&p>=0&&o[v]!==_[p];)p--;for(;v>=1&&p>=0;v--,p--)if(o[v]!==_[p]){if(v!==1||p!==1)do if(v--,p--,p<0||o[v]!==_[p]){var T=`
21
+ `+o[v].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,T),T}while(v>=1&&p>=0);break}}}finally{G=!1,Z.current=c,Je(),Error.prepareStackTrace=s}var M=e?e.displayName||e.name:"",xe=M?B(M):"";return typeof e=="function"&&L.set(e,xe),xe}function Ke(e,r,t){return ye(e,!1)}function He(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,He(e));if(typeof e=="string")return B(e);switch(e){case x:return B("Suspense");case h:return B("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return Ke(e.render);case C:return N(e.type,r,t);case f:{var a=e,s=a._payload,c=a._init;try{return N(c(s),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,Re={},ge=I.ReactDebugCurrentFrame;function z(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function Xe(e,r,t,a,s){{var c=Function.call.bind(U);for(var i in e)if(c(e,i)){var o=void 0;try{if(typeof e[i]!="function"){var _=Error((a||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}o=e[i](r,i,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(v){o=v}o&&!(o instanceof Error)&&(z(s),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,i,typeof o),z(null)),o instanceof Error&&!(o.message in Re)&&(Re[o.message]=!0,z(s),E("Failed %s type: %s",t,o.message),z(null))}}}var Qe=Array.isArray;function K(e){return Qe(e)}function er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function rr(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function he(e){if(rr(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",er(e)),be(e)}var $=I.ReactCurrentOwner,tr={key:!0,ref:!0,__self:!0,__source:!0},Ee,_e,H;H={};function nr(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ar(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&$.current&&r&&$.current.stateNode!==r){var t=P($.current.type);H[t]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',P($.current.type),e.ref),H[t]=!0)}}function ir(e,r){{var t=function(){Ee||(Ee=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function sr(e,r){{var t=function(){_e||(_e=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ur=function(e,r,t,a,s,c,i){var o={$$typeof:m,type:e,key:r,ref:t,props:i,_owner:c};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function cr(e,r,t,a,s){{var c,i={},o=null,_=null;t!==void 0&&(he(t),o=""+t),ar(r)&&(he(r.key),o=""+r.key),nr(r)&&(_=r.ref,or(r,s));for(c in r)U.call(r,c)&&!tr.hasOwnProperty(c)&&(i[c]=r[c]);if(e&&e.defaultProps){var v=e.defaultProps;for(c in v)i[c]===void 0&&(i[c]=v[c])}if(o||_){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&ir(i,p),_&&sr(i,p)}return ur(e,o,_,s,a,$.current,i)}}var X=I.ReactCurrentOwner,Se=I.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(t)}else Se.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===m}function we(){{if(X.current){var e=P(X.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function lr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
24
 
25
- Check your code at `+r+":"+t+"."}return""}}var Te={};function fr(e){{var r=Ce();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
25
+ Check your code at `+r+":"+t+"."}return""}}var Te={};function fr(e){{var r=we();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function we(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=fr(r);if(Te[t])return;Te[t]=!0;var a="";e&&e._owner&&e._owner!==X.current&&(a=" It was passed a child from "+P(e._owner.type)+"."),A(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),A(null)}}function Pe(e,r){{if(typeof e!="object")return;if(K(e))for(var t=0;t<e.length;t++){var a=e[t];ee(a)&&we(a,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var u=$e(e);if(typeof u=="function"&&u!==e.entries)for(var c=u.call(e),i;!(i=c.next()).done;)ee(i.value)&&we(i.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===b||r.$$typeof===w))t=r.propTypes;else return;if(t){var a=P(r);Xe(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var u=P(r);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){A(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),A(null);break}}e.ref!==null&&(A(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Oe(e,r,t,a,u,c){{var i=ze(e);if(!i){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var S=lr(u);S?o+=S:o+=Ce();var v;e===null?v="null":K(e)?v="array":e!==void 0&&e.$$typeof===p?(v="<"+(P(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):v=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",v,o)}var m=cr(e,r,t,u,c);if(m==null)return m;if(i){var T=r.children;if(T!==void 0)if(a)if(K(T)){for(var M=0;M<T.length;M++)Pe(T[M],e);Object.freeze&&Object.freeze(T)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pe(T,e)}return e===h?vr(m):dr(m),m}}function pr(e,r,t){return Oe(e,r,t,!0)}function mr(e,r,t){return Oe(e,r,t,!1)}var yr=mr,Rr=pr;Y.Fragment=h,Y.jsx=yr,Y.jsxs=Rr}()),Y}process.env.NODE_ENV==="production"?te.exports=Sr():te.exports=Cr();var re=te.exports;function Tr({children:n,maps:p,externalSync:R}){const[h,s]=y.useReducer(Me,{...F.state,maps:p.reduce((f,d)=>(f[d.id]=d,f),F.state.maps)}),g=y.useRef(p.reduce((f,d)=>(f[d.id]={instanceRef:{current:null},overlayRef:{current:null}},f),{})),l=y.useCallback((f,d,k)=>{p[0].id===f&&R?.({type:d,payload:k})},[R,p]),C=y.useCallback((f,d)=>{s({type:D.SetViewState,payload:{id:f,viewState:d}}),l(f,D.SetViewState,d)},[s,l]),b=y.useCallback((f,{height:d,width:k})=>{s({type:D.SetResize,payload:{id:f,height:d,width:k}}),l(f,D.SetResize,{height:d,width:k})},[s,l]),x=y.useCallback((f,d)=>{s({type:D.SetBasemap,payload:{id:f,basemap:d}})},[s]),E=y.useCallback((f,d)=>{s({type:D.SetZoom,payload:{id:f,zoom:d}})},[s]),w=y.useRef({setViewState:C,setBasemap:x,setResize:b,setZoom:E});return re.jsx(ae.Provider,{value:w.current,children:re.jsx(Ae.Provider,{value:g,children:re.jsx(ne.Provider,{value:h,children:n})})})}exports.CartoBasemapURL=br;exports.CartoBasemapsNames=Ie;exports.GMapsBasemap=De;exports.INITIAL_STATE=F;exports.MapActionsContext=ae;exports.MapContext=ne;exports.MapProvider=Tr;exports.reducer=Me;exports.useMap=Fe;exports.useMapActions=Ve;exports.useMapActionsByID=_r;exports.useMapByID=hr;exports.useMapReferencesByID=Er;
27
+ Check the top-level render call using <`+t+">.")}return r}}function Ce(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=fr(r);if(Te[t])return;Te[t]=!0;var a="";e&&e._owner&&e._owner!==X.current&&(a=" It was passed a child from "+P(e._owner.type)+"."),A(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),A(null)}}function Pe(e,r){{if(typeof e!="object")return;if(K(e))for(var t=0;t<e.length;t++){var a=e[t];ee(a)&&Ce(a,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var s=$e(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),i;!(i=c.next()).done;)ee(i.value)&&Ce(i.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===y||r.$$typeof===C))t=r.propTypes;else return;if(t){var a=P(r);Xe(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var s=P(r);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){A(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),A(null);break}}e.ref!==null&&(A(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Oe(e,r,t,a,s,c){{var i=ze(e);if(!i){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _=lr(s);_?o+=_:o+=we();var v;e===null?v="null":K(e)?v="array":e!==void 0&&e.$$typeof===m?(v="<"+(P(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):v=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",v,o)}var p=cr(e,r,t,s,c);if(p==null)return p;if(i){var T=r.children;if(T!==void 0)if(a)if(K(T)){for(var M=0;M<T.length;M++)Pe(T[M],e);Object.freeze&&Object.freeze(T)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pe(T,e)}return e===S?vr(p):dr(p),p}}function pr(e,r,t){return Oe(e,r,t,!0)}function mr(e,r,t){return Oe(e,r,t,!1)}var yr=mr,Rr=pr;Y.Fragment=S,Y.jsx=yr,Y.jsxs=Rr}()),Y}process.env.NODE_ENV==="production"?te.exports=Sr():te.exports=wr();var re=te.exports;function Tr({children:n,maps:m,externalSync:R}){const[S,u]=g.useReducer(Me,{...F.state,maps:m.reduce((f,d)=>(f[d.id]=d,f),F.state.maps)}),b=g.useRef(m.reduce((f,d)=>(f[d.id]={instanceRef:{current:null},overlayRef:{current:null}},f),{})),l=g.useCallback((f,d,j)=>{m[0].id===f&&R?.({type:d,payload:j})},[R,m]),w=g.useCallback((f,d)=>{u({type:D.SetViewState,payload:{id:f,viewState:d}}),l(f,D.SetViewState,d)},[u,l]),y=g.useCallback((f,{height:d,width:j})=>{u({type:D.SetResize,payload:{id:f,height:d,width:j}}),l(f,D.SetResize,{height:d,width:j})},[u,l]),x=g.useCallback((f,d)=>{u({type:D.SetBasemap,payload:{id:f,basemap:d}})},[u]),h=g.useCallback((f,d)=>{u({type:D.SetZoom,payload:{id:f,zoom:d}})},[u]),C=g.useRef({setViewState:w,setBasemap:x,setResize:y,setZoom:h});return re.jsx(ae.Provider,{value:C.current,children:re.jsx(Ae.Provider,{value:b,children:re.jsx(ne.Provider,{value:S,children:n})})})}exports.CartoBasemapURL=gr;exports.CartoBasemapsNames=Ie;exports.GMapsBasemap=De;exports.INITIAL_STATE=F;exports.MapActionsContext=ae;exports.MapContext=ne;exports.MapProvider=Tr;exports.reducer=Me;exports.useMap=Fe;exports.useMapActions=Ve;exports.useMapActionsByID=_r;exports.useMapByID=hr;exports.useMapReferencesByID=Er;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import Fe, { createContext as ne, useContext as ae, useCallback as x, useReducer as Rr, useRef as je } from "react";
2
- var gr = /* @__PURE__ */ ((n) => (n.Roadmap = "roadmap", n.Satellite = "satellite", n.Terrain = "terrain", n))(gr || {}), br = /* @__PURE__ */ ((n) => (n.DarkMatter = "dark-matter", n.Positron = "positron", n.Voyager = "voyager", n))(br || {});
3
- const Pr = {
1
+ import Fe, { createContext as ne, useContext as ae, useReducer as gr, useRef as je, useCallback as M } from "react";
2
+ var Rr = /* @__PURE__ */ ((n) => (n.Roadmap = "roadmap", n.Satellite = "satellite", n.Terrain = "terrain", n))(Rr || {}), br = /* @__PURE__ */ ((n) => (n.DarkMatter = "dark-matter", n.Positron = "positron", n.Voyager = "voyager", n))(br || {});
3
+ const Or = {
4
4
  positron: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
5
5
  voyager: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
6
6
  "dark-matter": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
@@ -21,31 +21,31 @@ const Pr = {
21
21
  setResize: Z,
22
22
  setZoom: Z
23
23
  }
24
- }, Ae = ne(
24
+ }, Ie = ne(
25
25
  Y.state
26
- ), Ie = ne(Y.references), Ve = ne(
26
+ ), Ae = ne(Y.references), Ve = ne(
27
27
  Y.actions
28
28
  );
29
- var D = /* @__PURE__ */ ((n) => (n.SetViewState = "SetViewState", n.SetBasemap = "SetBasemap", n.SetResize = "SetResize", n.SetZoom = "SetZoom", n))(D || {});
30
- function hr(n, { type: p, payload: y }) {
29
+ var k = /* @__PURE__ */ ((n) => (n.SetViewState = "SetViewState", n.SetBasemap = "SetBasemap", n.SetResize = "SetResize", n.SetZoom = "SetZoom", n))(k || {});
30
+ function hr(n, { type: m, payload: g }) {
31
31
  return {
32
32
  SetViewState: () => {
33
- const { id: s, viewState: g } = y, l = { ...n.maps };
34
- return l[s] = {
35
- ...n.maps[s],
36
- viewState: g
33
+ const { id: u, viewState: R } = g, l = { ...n.maps };
34
+ return l[u] = {
35
+ ...n.maps[u],
36
+ viewState: R
37
37
  }, {
38
38
  ...n,
39
39
  maps: l
40
40
  };
41
41
  },
42
42
  SetResize: () => {
43
- const { id: s, width: g, height: l } = y, S = { ...n.maps };
44
- return S[s] = {
45
- ...n.maps[s],
43
+ const { id: u, width: R, height: l } = g, S = { ...n.maps };
44
+ return S[u] = {
45
+ ...n.maps[u],
46
46
  viewState: {
47
- ...n.maps[s].viewState,
48
- width: g,
47
+ ...n.maps[u].viewState,
48
+ width: R,
49
49
  height: l
50
50
  }
51
51
  }, {
@@ -54,69 +54,69 @@ function hr(n, { type: p, payload: y }) {
54
54
  };
55
55
  },
56
56
  SetBasemap: () => {
57
- const { id: s, basemap: g } = y, l = { ...n.maps };
58
- return l[s] = {
59
- ...n.maps[s],
60
- basemap: g
57
+ const { id: u, basemap: R } = g, l = { ...n.maps };
58
+ return l[u] = {
59
+ ...n.maps[u],
60
+ basemap: R
61
61
  }, {
62
62
  ...n,
63
63
  maps: l
64
64
  };
65
65
  },
66
66
  SetZoom: () => {
67
- const { id: s, zoom: g } = y, l = { ...n.maps };
68
- return l[s] = {
69
- ...n.maps[s],
67
+ const { id: u, zoom: R } = g, l = { ...n.maps };
68
+ return l[u] = {
69
+ ...n.maps[u],
70
70
  viewState: {
71
- ...n.maps[s].viewState,
72
- zoom: g
71
+ ...n.maps[u].viewState,
72
+ zoom: R
73
73
  }
74
74
  }, {
75
75
  ...n,
76
76
  maps: l
77
77
  };
78
78
  }
79
- }[p]?.() ?? n;
79
+ }[m]?.() ?? n;
80
80
  }
81
81
  function Er() {
82
- return ae(Ae);
82
+ return ae(Ie);
83
83
  }
84
84
  function _r() {
85
- return ae(Ie);
85
+ return ae(Ae);
86
86
  }
87
87
  function Sr() {
88
88
  return ae(Ve);
89
89
  }
90
- function Or(n) {
90
+ function Pr(n) {
91
91
  const {
92
- maps: { [n]: p }
92
+ maps: { [n]: m }
93
93
  } = Er();
94
- return p;
94
+ return m;
95
95
  }
96
96
  function xr(n) {
97
97
  const {
98
98
  current: {
99
- [n]: { instanceRef: p, overlayRef: y }
99
+ [n]: { instanceRef: m, overlayRef: g }
100
100
  }
101
- } = _r(), b = x(() => {
102
- const l = p?.current;
101
+ } = _r(), _ = () => {
102
+ const l = m?.current;
103
103
  return l?.deck || l?._deck;
104
- }, [p]), s = x(() => y?.current, [y]), g = x(() => b()._getViewState(), [b]);
104
+ };
105
105
  return {
106
- instanceRef: p,
107
- overlayRef: y,
108
- getDeckInstance: b,
109
- getOverlayInstance: s,
110
- getViewState: g
106
+ instanceRef: m,
107
+ overlayRef: g,
108
+ getDeckInstance: _,
109
+ getOverlayInstance: () => g?.current,
110
+ getViewState: () => _()._getViewState()
111
111
  };
112
112
  }
113
113
  function jr(n) {
114
- const { setBasemap: p, setResize: y, setViewState: b, setZoom: s } = Sr();
114
+ const { setBasemap: m, setResize: g, setViewState: _, setZoom: u } = Sr();
115
115
  return {
116
- setBasemap: p.bind(null, n),
117
- setResize: y.bind(null, n),
118
- setViewState: b.bind(null, n),
119
- setZoom: s.bind(null, n)
116
+ setBasemap: m.bind(null, n),
117
+ setResize: g.bind(null, n),
118
+ setViewState: _.bind(null, n),
119
+ setZoom: u.bind(null, n)
120
120
  };
121
121
  }
122
122
  var te = { exports: {} }, $ = {};
@@ -134,18 +134,18 @@ function wr() {
134
134
  if (ke)
135
135
  return $;
136
136
  ke = 1;
137
- var n = Fe, p = Symbol.for("react.element"), y = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
138
- function l(S, R, O) {
139
- var h, T = {}, f = null, d = null;
140
- O !== void 0 && (f = "" + O), R.key !== void 0 && (f = "" + R.key), R.ref !== void 0 && (d = R.ref);
141
- for (h in R)
142
- b.call(R, h) && !g.hasOwnProperty(h) && (T[h] = R[h]);
137
+ var n = Fe, m = Symbol.for("react.element"), g = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, u = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
138
+ function l(S, y, P) {
139
+ var b, T = {}, f = null, d = null;
140
+ P !== void 0 && (f = "" + P), y.key !== void 0 && (f = "" + y.key), y.ref !== void 0 && (d = y.ref);
141
+ for (b in y)
142
+ _.call(y, b) && !R.hasOwnProperty(b) && (T[b] = y[b]);
143
143
  if (S && S.defaultProps)
144
- for (h in R = S.defaultProps, R)
145
- T[h] === void 0 && (T[h] = R[h]);
146
- return { $$typeof: p, type: S, key: f, ref: d, props: T, _owner: s.current };
144
+ for (b in y = S.defaultProps, y)
145
+ T[b] === void 0 && (T[b] = y[b]);
146
+ return { $$typeof: m, type: S, key: f, ref: d, props: T, _owner: u.current };
147
147
  }
148
- return $.Fragment = y, $.jsx = l, $.jsxs = l, $;
148
+ return $.Fragment = g, $.jsx = l, $.jsxs = l, $;
149
149
  }
150
150
  var W = {};
151
151
  /**
@@ -160,15 +160,15 @@ var W = {};
160
160
  var De;
161
161
  function Tr() {
162
162
  return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
163
- var n = Fe, p = Symbol.for("react.element"), y = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), S = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), d = Symbol.for("react.offscreen"), j = Symbol.iterator, oe = "@@iterator";
163
+ var n = Fe, m = Symbol.for("react.element"), g = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), S = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), d = Symbol.for("react.offscreen"), x = Symbol.iterator, oe = "@@iterator";
164
164
  function Me(e) {
165
165
  if (e === null || typeof e != "object")
166
166
  return null;
167
- var r = j && e[j] || e[oe];
167
+ var r = x && e[x] || e[oe];
168
168
  return typeof r == "function" ? r : null;
169
169
  }
170
- var F = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
171
- function E(e) {
170
+ var D = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
171
+ function h(e) {
172
172
  {
173
173
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
174
174
  t[a - 1] = arguments[a];
@@ -177,8 +177,8 @@ function Tr() {
177
177
  }
178
178
  function $e(e, r, t) {
179
179
  {
180
- var a = F.ReactDebugCurrentFrame, u = a.getStackAddendum();
181
- u !== "" && (r += "%s", t = t.concat([u]));
180
+ var a = D.ReactDebugCurrentFrame, s = a.getStackAddendum();
181
+ s !== "" && (r += "%s", t = t.concat([s]));
182
182
  var c = t.map(function(i) {
183
183
  return String(i);
184
184
  });
@@ -188,7 +188,7 @@ function Tr() {
188
188
  var We = !1, Ye = !1, Le = !1, Be = !1, Ne = !1, ie;
189
189
  ie = Symbol.for("react.module.reference");
190
190
  function Ue(e) {
191
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === g || Ne || e === s || e === O || e === h || Be || e === d || We || Ye || Le || typeof e == "object" && e !== null && (e.$$typeof === f || e.$$typeof === T || e.$$typeof === l || e.$$typeof === S || e.$$typeof === R || // This needs to include all possible module reference object
191
+ return !!(typeof e == "string" || typeof e == "function" || e === _ || e === R || Ne || e === u || e === P || e === b || Be || e === d || We || Ye || Le || typeof e == "object" && e !== null && (e.$$typeof === f || e.$$typeof === T || e.$$typeof === l || e.$$typeof === S || e.$$typeof === y || // This needs to include all possible module reference object
192
192
  // types supported by any Flight configuration anywhere since
193
193
  // we don't know which Flight build this will end up being used
194
194
  // with.
@@ -198,8 +198,8 @@ function Tr() {
198
198
  var a = e.displayName;
199
199
  if (a)
200
200
  return a;
201
- var u = r.displayName || r.name || "";
202
- return u !== "" ? t + "(" + u + ")" : t;
201
+ var s = r.displayName || r.name || "";
202
+ return s !== "" ? t + "(" + s + ")" : t;
203
203
  }
204
204
  function se(e) {
205
205
  return e.displayName || "Context";
@@ -207,22 +207,22 @@ function Tr() {
207
207
  function C(e) {
208
208
  if (e == null)
209
209
  return null;
210
- if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
210
+ if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
211
211
  return e.displayName || e.name || null;
212
212
  if (typeof e == "string")
213
213
  return e;
214
214
  switch (e) {
215
- case b:
215
+ case _:
216
216
  return "Fragment";
217
- case y:
218
- return "Portal";
219
217
  case g:
218
+ return "Portal";
219
+ case R:
220
220
  return "Profiler";
221
- case s:
221
+ case u:
222
222
  return "StrictMode";
223
- case O:
223
+ case P:
224
224
  return "Suspense";
225
- case h:
225
+ case b:
226
226
  return "SuspenseList";
227
227
  }
228
228
  if (typeof e == "object")
@@ -233,13 +233,13 @@ function Tr() {
233
233
  case l:
234
234
  var t = e;
235
235
  return se(t._context) + ".Provider";
236
- case R:
236
+ case y:
237
237
  return ze(e, e.render, "ForwardRef");
238
238
  case T:
239
239
  var a = e.displayName || null;
240
240
  return a !== null ? a : C(e.type) || "Memo";
241
241
  case f: {
242
- var u = e, c = u._payload, i = u._init;
242
+ var s = e, c = s._payload, i = s._init;
243
243
  try {
244
244
  return C(i(c));
245
245
  } catch {
@@ -249,13 +249,13 @@ function Tr() {
249
249
  }
250
250
  return null;
251
251
  }
252
- var k = Object.assign, V = 0, ue, ce, le, fe, de, ve, pe;
252
+ var j = Object.assign, A = 0, ue, ce, le, fe, de, ve, pe;
253
253
  function me() {
254
254
  }
255
255
  me.__reactDisabledLog = !0;
256
256
  function Ze() {
257
257
  {
258
- if (V === 0) {
258
+ if (A === 0) {
259
259
  ue = console.log, ce = console.info, le = console.warn, fe = console.error, de = console.group, ve = console.groupCollapsed, pe = console.groupEnd;
260
260
  var e = {
261
261
  configurable: !0,
@@ -273,52 +273,52 @@ function Tr() {
273
273
  groupEnd: e
274
274
  });
275
275
  }
276
- V++;
276
+ A++;
277
277
  }
278
278
  }
279
279
  function qe() {
280
280
  {
281
- if (V--, V === 0) {
281
+ if (A--, A === 0) {
282
282
  var e = {
283
283
  configurable: !0,
284
284
  enumerable: !0,
285
285
  writable: !0
286
286
  };
287
287
  Object.defineProperties(console, {
288
- log: k({}, e, {
288
+ log: j({}, e, {
289
289
  value: ue
290
290
  }),
291
- info: k({}, e, {
291
+ info: j({}, e, {
292
292
  value: ce
293
293
  }),
294
- warn: k({}, e, {
294
+ warn: j({}, e, {
295
295
  value: le
296
296
  }),
297
- error: k({}, e, {
297
+ error: j({}, e, {
298
298
  value: fe
299
299
  }),
300
- group: k({}, e, {
300
+ group: j({}, e, {
301
301
  value: de
302
302
  }),
303
- groupCollapsed: k({}, e, {
303
+ groupCollapsed: j({}, e, {
304
304
  value: ve
305
305
  }),
306
- groupEnd: k({}, e, {
306
+ groupEnd: j({}, e, {
307
307
  value: pe
308
308
  })
309
309
  });
310
310
  }
311
- V < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
311
+ A < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
312
312
  }
313
313
  }
314
- var q = F.ReactCurrentDispatcher, J;
314
+ var q = D.ReactCurrentDispatcher, J;
315
315
  function L(e, r, t) {
316
316
  {
317
317
  if (J === void 0)
318
318
  try {
319
319
  throw Error();
320
- } catch (u) {
321
- var a = u.stack.trim().match(/\n( *(at )?)/);
320
+ } catch (s) {
321
+ var a = s.stack.trim().match(/\n( *(at )?)/);
322
322
  J = a && a[1] || "";
323
323
  }
324
324
  return `
@@ -340,7 +340,7 @@ function Tr() {
340
340
  }
341
341
  var a;
342
342
  G = !0;
343
- var u = Error.prepareStackTrace;
343
+ var s = Error.prepareStackTrace;
344
344
  Error.prepareStackTrace = void 0;
345
345
  var c;
346
346
  c = q.current, q.current = null, Ze();
@@ -356,47 +356,47 @@ function Tr() {
356
356
  }), typeof Reflect == "object" && Reflect.construct) {
357
357
  try {
358
358
  Reflect.construct(i, []);
359
- } catch (P) {
360
- a = P;
359
+ } catch (O) {
360
+ a = O;
361
361
  }
362
362
  Reflect.construct(e, [], i);
363
363
  } else {
364
364
  try {
365
365
  i.call();
366
- } catch (P) {
367
- a = P;
366
+ } catch (O) {
367
+ a = O;
368
368
  }
369
369
  e.call(i.prototype);
370
370
  }
371
371
  } else {
372
372
  try {
373
373
  throw Error();
374
- } catch (P) {
375
- a = P;
374
+ } catch (O) {
375
+ a = O;
376
376
  }
377
377
  e();
378
378
  }
379
- } catch (P) {
380
- if (P && a && typeof P.stack == "string") {
381
- for (var o = P.stack.split(`
382
- `), _ = a.stack.split(`
383
- `), v = o.length - 1, m = _.length - 1; v >= 1 && m >= 0 && o[v] !== _[m]; )
384
- m--;
385
- for (; v >= 1 && m >= 0; v--, m--)
386
- if (o[v] !== _[m]) {
387
- if (v !== 1 || m !== 1)
379
+ } catch (O) {
380
+ if (O && a && typeof O.stack == "string") {
381
+ for (var o = O.stack.split(`
382
+ `), E = a.stack.split(`
383
+ `), v = o.length - 1, p = E.length - 1; v >= 1 && p >= 0 && o[v] !== E[p]; )
384
+ p--;
385
+ for (; v >= 1 && p >= 0; v--, p--)
386
+ if (o[v] !== E[p]) {
387
+ if (v !== 1 || p !== 1)
388
388
  do
389
- if (v--, m--, m < 0 || o[v] !== _[m]) {
389
+ if (v--, p--, p < 0 || o[v] !== E[p]) {
390
390
  var w = `
391
391
  ` + o[v].replace(" at new ", " at ");
392
392
  return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, w), w;
393
393
  }
394
- while (v >= 1 && m >= 0);
394
+ while (v >= 1 && p >= 0);
395
395
  break;
396
396
  }
397
397
  }
398
398
  } finally {
399
- G = !1, q.current = c, qe(), Error.prepareStackTrace = u;
399
+ G = !1, q.current = c, qe(), Error.prepareStackTrace = s;
400
400
  }
401
401
  var I = e ? e.displayName || e.name : "", xe = I ? L(I) : "";
402
402
  return typeof e == "function" && B.set(e, xe), xe;
@@ -416,36 +416,36 @@ function Tr() {
416
416
  if (typeof e == "string")
417
417
  return L(e);
418
418
  switch (e) {
419
- case O:
419
+ case P:
420
420
  return L("Suspense");
421
- case h:
421
+ case b:
422
422
  return L("SuspenseList");
423
423
  }
424
424
  if (typeof e == "object")
425
425
  switch (e.$$typeof) {
426
- case R:
426
+ case y:
427
427
  return Ge(e.render);
428
428
  case T:
429
429
  return N(e.type, r, t);
430
430
  case f: {
431
- var a = e, u = a._payload, c = a._init;
431
+ var a = e, s = a._payload, c = a._init;
432
432
  try {
433
- return N(c(u), r, t);
433
+ return N(c(s), r, t);
434
434
  } catch {
435
435
  }
436
436
  }
437
437
  }
438
438
  return "";
439
439
  }
440
- var U = Object.prototype.hasOwnProperty, Re = {}, ge = F.ReactDebugCurrentFrame;
440
+ var U = Object.prototype.hasOwnProperty, ge = {}, Re = D.ReactDebugCurrentFrame;
441
441
  function z(e) {
442
442
  if (e) {
443
443
  var r = e._owner, t = N(e.type, e._source, r ? r.type : null);
444
- ge.setExtraStackFrame(t);
444
+ Re.setExtraStackFrame(t);
445
445
  } else
446
- ge.setExtraStackFrame(null);
446
+ Re.setExtraStackFrame(null);
447
447
  }
448
- function He(e, r, t, a, u) {
448
+ function He(e, r, t, a, s) {
449
449
  {
450
450
  var c = Function.call.bind(U);
451
451
  for (var i in e)
@@ -453,14 +453,14 @@ function Tr() {
453
453
  var o = void 0;
454
454
  try {
455
455
  if (typeof e[i] != "function") {
456
- var _ = Error((a || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
457
- throw _.name = "Invariant Violation", _;
456
+ var E = Error((a || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
457
+ throw E.name = "Invariant Violation", E;
458
458
  }
459
459
  o = e[i](r, i, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
460
460
  } catch (v) {
461
461
  o = v;
462
462
  }
463
- o && !(o instanceof Error) && (z(u), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, i, typeof o), z(null)), o instanceof Error && !(o.message in Re) && (Re[o.message] = !0, z(u), E("Failed %s type: %s", t, o.message), z(null));
463
+ o && !(o instanceof Error) && (z(s), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, i, typeof o), z(null)), o instanceof Error && !(o.message in ge) && (ge[o.message] = !0, z(s), h("Failed %s type: %s", t, o.message), z(null));
464
464
  }
465
465
  }
466
466
  }
@@ -486,9 +486,9 @@ function Tr() {
486
486
  }
487
487
  function he(e) {
488
488
  if (er(e))
489
- return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), be(e);
489
+ return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), be(e);
490
490
  }
491
- var M = F.ReactCurrentOwner, rr = {
491
+ var V = D.ReactCurrentOwner, rr = {
492
492
  key: !0,
493
493
  ref: !0,
494
494
  __self: !0,
@@ -512,15 +512,15 @@ function Tr() {
512
512
  return e.key !== void 0;
513
513
  }
514
514
  function ar(e, r) {
515
- if (typeof e.ref == "string" && M.current && r && M.current.stateNode !== r) {
516
- var t = C(M.current.type);
517
- H[t] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(M.current.type), e.ref), H[t] = !0);
515
+ if (typeof e.ref == "string" && V.current && r && V.current.stateNode !== r) {
516
+ var t = C(V.current.type);
517
+ H[t] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(V.current.type), e.ref), H[t] = !0);
518
518
  }
519
519
  }
520
520
  function or(e, r) {
521
521
  {
522
522
  var t = function() {
523
- Ee || (Ee = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
523
+ Ee || (Ee = !0, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
524
524
  };
525
525
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
526
526
  get: t,
@@ -531,7 +531,7 @@ function Tr() {
531
531
  function ir(e, r) {
532
532
  {
533
533
  var t = function() {
534
- _e || (_e = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
534
+ _e || (_e = !0, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
535
535
  };
536
536
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
537
537
  get: t,
@@ -539,10 +539,10 @@ function Tr() {
539
539
  });
540
540
  }
541
541
  }
542
- var sr = function(e, r, t, a, u, c, i) {
542
+ var sr = function(e, r, t, a, s, c, i) {
543
543
  var o = {
544
544
  // This tag allows us to uniquely identify this as a React Element
545
- $$typeof: p,
545
+ $$typeof: m,
546
546
  // Built-in properties that belong on the element
547
547
  type: e,
548
548
  key: r,
@@ -565,13 +565,13 @@ function Tr() {
565
565
  configurable: !1,
566
566
  enumerable: !1,
567
567
  writable: !1,
568
- value: u
568
+ value: s
569
569
  }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
570
570
  };
571
- function ur(e, r, t, a, u) {
571
+ function ur(e, r, t, a, s) {
572
572
  {
573
- var c, i = {}, o = null, _ = null;
574
- t !== void 0 && (he(t), o = "" + t), nr(r) && (he(r.key), o = "" + r.key), tr(r) && (_ = r.ref, ar(r, u));
573
+ var c, i = {}, o = null, E = null;
574
+ t !== void 0 && (he(t), o = "" + t), nr(r) && (he(r.key), o = "" + r.key), tr(r) && (E = r.ref, ar(r, s));
575
575
  for (c in r)
576
576
  U.call(r, c) && !rr.hasOwnProperty(c) && (i[c] = r[c]);
577
577
  if (e && e.defaultProps) {
@@ -579,15 +579,15 @@ function Tr() {
579
579
  for (c in v)
580
580
  i[c] === void 0 && (i[c] = v[c]);
581
581
  }
582
- if (o || _) {
583
- var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
584
- o && or(i, m), _ && ir(i, m);
582
+ if (o || E) {
583
+ var p = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
584
+ o && or(i, p), E && ir(i, p);
585
585
  }
586
- return sr(e, o, _, u, a, M.current, i);
586
+ return sr(e, o, E, s, a, V.current, i);
587
587
  }
588
588
  }
589
- var X = F.ReactCurrentOwner, Se = F.ReactDebugCurrentFrame;
590
- function A(e) {
589
+ var X = D.ReactCurrentOwner, Se = D.ReactDebugCurrentFrame;
590
+ function F(e) {
591
591
  if (e) {
592
592
  var r = e._owner, t = N(e.type, e._source, r ? r.type : null);
593
593
  Se.setExtraStackFrame(t);
@@ -597,7 +597,7 @@ function Tr() {
597
597
  var Q;
598
598
  Q = !1;
599
599
  function ee(e) {
600
- return typeof e == "object" && e !== null && e.$$typeof === p;
600
+ return typeof e == "object" && e !== null && e.$$typeof === m;
601
601
  }
602
602
  function we() {
603
603
  {
@@ -645,10 +645,10 @@ Check the top-level render call using <` + t + ">.");
645
645
  return;
646
646
  Te[t] = !0;
647
647
  var a = "";
648
- e && e._owner && e._owner !== X.current && (a = " It was passed a child from " + C(e._owner.type) + "."), A(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), A(null);
648
+ e && e._owner && e._owner !== X.current && (a = " It was passed a child from " + C(e._owner.type) + "."), F(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), F(null);
649
649
  }
650
650
  }
651
- function Pe(e, r) {
651
+ function Oe(e, r) {
652
652
  {
653
653
  if (typeof e != "object")
654
654
  return;
@@ -660,9 +660,9 @@ Check the top-level render call using <` + t + ">.");
660
660
  else if (ee(e))
661
661
  e._store && (e._store.validated = !0);
662
662
  else if (e) {
663
- var u = Me(e);
664
- if (typeof u == "function" && u !== e.entries)
665
- for (var c = u.call(e), i; !(i = c.next()).done; )
663
+ var s = Me(e);
664
+ if (typeof s == "function" && s !== e.entries)
665
+ for (var c = s.call(e), i; !(i = c.next()).done; )
666
666
  ee(i.value) && Ce(i.value, r);
667
667
  }
668
668
  }
@@ -675,7 +675,7 @@ Check the top-level render call using <` + t + ">.");
675
675
  var t;
676
676
  if (typeof r == "function")
677
677
  t = r.propTypes;
678
- else if (typeof r == "object" && (r.$$typeof === R || // Note: Memo only checks outer props here.
678
+ else if (typeof r == "object" && (r.$$typeof === y || // Note: Memo only checks outer props here.
679
679
  // Inner props are checked in the reconciler.
680
680
  r.$$typeof === T))
681
681
  t = r.propTypes;
@@ -686,10 +686,10 @@ Check the top-level render call using <` + t + ">.");
686
686
  He(t, e.props, "prop", a, e);
687
687
  } else if (r.PropTypes !== void 0 && !Q) {
688
688
  Q = !0;
689
- var u = C(r);
690
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
689
+ var s = C(r);
690
+ h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
691
691
  }
692
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
692
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
693
693
  }
694
694
  }
695
695
  function dr(e) {
@@ -697,65 +697,65 @@ Check the top-level render call using <` + t + ">.");
697
697
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
698
698
  var a = r[t];
699
699
  if (a !== "children" && a !== "key") {
700
- A(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), A(null);
700
+ F(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), F(null);
701
701
  break;
702
702
  }
703
703
  }
704
- e.ref !== null && (A(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
704
+ e.ref !== null && (F(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
705
705
  }
706
706
  }
707
- function Oe(e, r, t, a, u, c) {
707
+ function Pe(e, r, t, a, s, c) {
708
708
  {
709
709
  var i = Ue(e);
710
710
  if (!i) {
711
711
  var o = "";
712
712
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
713
- var _ = cr(u);
714
- _ ? o += _ : o += we();
713
+ var E = cr(s);
714
+ E ? o += E : o += we();
715
715
  var v;
716
- e === null ? v = "null" : K(e) ? v = "array" : e !== void 0 && e.$$typeof === p ? (v = "<" + (C(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v, o);
716
+ e === null ? v = "null" : K(e) ? v = "array" : e !== void 0 && e.$$typeof === m ? (v = "<" + (C(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v, o);
717
717
  }
718
- var m = ur(e, r, t, u, c);
719
- if (m == null)
720
- return m;
718
+ var p = ur(e, r, t, s, c);
719
+ if (p == null)
720
+ return p;
721
721
  if (i) {
722
722
  var w = r.children;
723
723
  if (w !== void 0)
724
724
  if (a)
725
725
  if (K(w)) {
726
726
  for (var I = 0; I < w.length; I++)
727
- Pe(w[I], e);
727
+ Oe(w[I], e);
728
728
  Object.freeze && Object.freeze(w);
729
729
  } else
730
- E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
730
+ h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
731
731
  else
732
- Pe(w, e);
732
+ Oe(w, e);
733
733
  }
734
- return e === b ? dr(m) : fr(m), m;
734
+ return e === _ ? dr(p) : fr(p), p;
735
735
  }
736
736
  }
737
737
  function vr(e, r, t) {
738
- return Oe(e, r, t, !0);
738
+ return Pe(e, r, t, !0);
739
739
  }
740
740
  function pr(e, r, t) {
741
- return Oe(e, r, t, !1);
741
+ return Pe(e, r, t, !1);
742
742
  }
743
743
  var mr = pr, yr = vr;
744
- W.Fragment = b, W.jsx = mr, W.jsxs = yr;
744
+ W.Fragment = _, W.jsx = mr, W.jsxs = yr;
745
745
  }()), W;
746
746
  }
747
747
  process.env.NODE_ENV === "production" ? te.exports = wr() : te.exports = Tr();
748
748
  var re = te.exports;
749
749
  function kr({
750
750
  children: n,
751
- maps: p,
752
- externalSync: y
751
+ maps: m,
752
+ externalSync: g
753
753
  }) {
754
- const [b, s] = Rr(hr, {
754
+ const [_, u] = gr(hr, {
755
755
  ...Y.state,
756
- maps: p.reduce((f, d) => (f[d.id] = d, f), Y.state.maps)
757
- }), g = je(
758
- p.reduce((f, d) => (f[d.id] = {
756
+ maps: m.reduce((f, d) => (f[d.id] = d, f), Y.state.maps)
757
+ }), R = je(
758
+ m.reduce((f, d) => (f[d.id] = {
759
759
  instanceRef: {
760
760
  current: null
761
761
  },
@@ -763,79 +763,79 @@ function kr({
763
763
  current: null
764
764
  }
765
765
  }, f), {})
766
- ), l = x(
767
- (f, d, j) => {
768
- p[0].id === f && y?.({
766
+ ), l = M(
767
+ (f, d, x) => {
768
+ m[0].id === f && g?.({
769
769
  type: d,
770
- payload: j
770
+ payload: x
771
771
  });
772
772
  },
773
- [y, p]
774
- ), S = x(
773
+ [g, m]
774
+ ), S = M(
775
775
  (f, d) => {
776
- s({
777
- type: D.SetViewState,
776
+ u({
777
+ type: k.SetViewState,
778
778
  payload: {
779
779
  id: f,
780
780
  viewState: d
781
781
  }
782
- }), l(f, D.SetViewState, d);
782
+ }), l(f, k.SetViewState, d);
783
783
  },
784
- [s, l]
785
- ), R = x(
786
- (f, { height: d, width: j }) => {
787
- s({
788
- type: D.SetResize,
784
+ [u, l]
785
+ ), y = M(
786
+ (f, { height: d, width: x }) => {
787
+ u({
788
+ type: k.SetResize,
789
789
  payload: {
790
790
  id: f,
791
791
  height: d,
792
- width: j
792
+ width: x
793
793
  }
794
- }), l(f, D.SetResize, { height: d, width: j });
794
+ }), l(f, k.SetResize, { height: d, width: x });
795
795
  },
796
- [s, l]
797
- ), O = x(
796
+ [u, l]
797
+ ), P = M(
798
798
  (f, d) => {
799
- s({
800
- type: D.SetBasemap,
799
+ u({
800
+ type: k.SetBasemap,
801
801
  payload: {
802
802
  id: f,
803
803
  basemap: d
804
804
  }
805
805
  });
806
806
  },
807
- [s]
808
- ), h = x(
807
+ [u]
808
+ ), b = M(
809
809
  (f, d) => {
810
- s({
811
- type: D.SetZoom,
810
+ u({
811
+ type: k.SetZoom,
812
812
  payload: {
813
813
  id: f,
814
814
  zoom: d
815
815
  }
816
816
  });
817
817
  },
818
- [s]
818
+ [u]
819
819
  ), T = je({
820
820
  setViewState: S,
821
- setBasemap: O,
822
- setResize: R,
823
- setZoom: h
821
+ setBasemap: P,
822
+ setResize: y,
823
+ setZoom: b
824
824
  });
825
- return /* @__PURE__ */ re.jsx(Ve.Provider, { value: T.current, children: /* @__PURE__ */ re.jsx(Ie.Provider, { value: g, children: /* @__PURE__ */ re.jsx(Ae.Provider, { value: b, children: n }) }) });
825
+ return /* @__PURE__ */ re.jsx(Ve.Provider, { value: T.current, children: /* @__PURE__ */ re.jsx(Ae.Provider, { value: R, children: /* @__PURE__ */ re.jsx(Ie.Provider, { value: _, children: n }) }) });
826
826
  }
827
827
  export {
828
- Pr as CartoBasemapURL,
828
+ Or as CartoBasemapURL,
829
829
  br as CartoBasemapsNames,
830
- gr as GMapsBasemap,
830
+ Rr as GMapsBasemap,
831
831
  Y as INITIAL_STATE,
832
832
  Ve as MapActionsContext,
833
- Ae as MapContext,
833
+ Ie as MapContext,
834
834
  kr as MapProvider,
835
835
  hr as reducer,
836
836
  Er as useMap,
837
837
  Sr as useMapActions,
838
838
  jr as useMapActionsByID,
839
- Or as useMapByID,
839
+ Pr as useMapByID,
840
840
  xr as useMapReferencesByID
841
841
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/ps-react-maps",
3
- "version": "1.1.2-alpha.1",
3
+ "version": "1.1.2-alpha.2",
4
4
  "description": "CARTO's Professional Service React Maps library",
5
5
  "files": [
6
6
  "dist"