diff --git a/asset-manifest.json b/asset-manifest.json
index 453f9f207..33a950cd5 100644
--- a/asset-manifest.json
+++ b/asset-manifest.json
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/react-amap/static/css/main.d0345bc4.css",
- "main.js": "/react-amap/static/js/main.f15336b7.js",
+ "main.js": "/react-amap/static/js/main.e42c3190.js",
"static/css/6555.42c6f354.chunk.css": "/react-amap/static/css/6555.42c6f354.chunk.css",
"static/js/6555.ca46d438.chunk.js": "/react-amap/static/js/6555.ca46d438.chunk.js",
"static/css/5741.42c6f354.chunk.css": "/react-amap/static/css/5741.42c6f354.chunk.css",
@@ -53,7 +53,7 @@
"static/css/8473.42c6f354.chunk.css": "/react-amap/static/css/8473.42c6f354.chunk.css",
"static/js/8473.1c176011.chunk.js": "/react-amap/static/js/8473.1c176011.chunk.js",
"static/css/8292.42c6f354.chunk.css": "/react-amap/static/css/8292.42c6f354.chunk.css",
- "static/js/8292.ef369cb4.chunk.js": "/react-amap/static/js/8292.ef369cb4.chunk.js",
+ "static/js/8292.15056df8.chunk.js": "/react-amap/static/js/8292.15056df8.chunk.js",
"static/js/2857.d83e485e.chunk.js": "/react-amap/static/js/2857.d83e485e.chunk.js",
"static/js/531.6af786ea.chunk.js": "/react-amap/static/js/531.6af786ea.chunk.js",
"static/js/4073.9db349d2.chunk.js": "/react-amap/static/js/4073.9db349d2.chunk.js",
@@ -88,11 +88,11 @@
"react-vendor.js": "/react-amap/static/js/react-vendor.62574d7d.js",
"static/js/9213.317d4de8.chunk.js": "/react-amap/static/js/9213.317d4de8.chunk.js",
"static/js/8505.6e331a64.js": "/react-amap/static/js/8505.6e331a64.js",
- "static/js/2515.48a74226.chunk.js": "/react-amap/static/js/2515.48a74226.chunk.js",
+ "static/js/2515.52640890.chunk.js": "/react-amap/static/js/2515.52640890.chunk.js",
"static/media/logo.svg": "/react-amap/static/media/logo.552138f67b47aa2ff9779e6ffc2abeed.svg",
"index.html": "/react-amap/index.html",
"main.d0345bc4.css.map": "/react-amap/static/css/main.d0345bc4.css.map",
- "main.f15336b7.js.map": "/react-amap/static/js/main.f15336b7.js.map",
+ "main.e42c3190.js.map": "/react-amap/static/js/main.e42c3190.js.map",
"6555.42c6f354.chunk.css.map": "/react-amap/static/css/6555.42c6f354.chunk.css.map",
"6555.ca46d438.chunk.js.map": "/react-amap/static/js/6555.ca46d438.chunk.js.map",
"5741.42c6f354.chunk.css.map": "/react-amap/static/css/5741.42c6f354.chunk.css.map",
@@ -144,7 +144,7 @@
"8473.42c6f354.chunk.css.map": "/react-amap/static/css/8473.42c6f354.chunk.css.map",
"8473.1c176011.chunk.js.map": "/react-amap/static/js/8473.1c176011.chunk.js.map",
"8292.42c6f354.chunk.css.map": "/react-amap/static/css/8292.42c6f354.chunk.css.map",
- "8292.ef369cb4.chunk.js.map": "/react-amap/static/js/8292.ef369cb4.chunk.js.map",
+ "8292.15056df8.chunk.js.map": "/react-amap/static/js/8292.15056df8.chunk.js.map",
"2857.d83e485e.chunk.js.map": "/react-amap/static/js/2857.d83e485e.chunk.js.map",
"531.6af786ea.chunk.js.map": "/react-amap/static/js/531.6af786ea.chunk.js.map",
"4073.9db349d2.chunk.js.map": "/react-amap/static/js/4073.9db349d2.chunk.js.map",
@@ -179,13 +179,13 @@
"react-vendor.62574d7d.js.map": "/react-amap/static/js/react-vendor.62574d7d.js.map",
"9213.317d4de8.chunk.js.map": "/react-amap/static/js/9213.317d4de8.chunk.js.map",
"8505.6e331a64.js.map": "/react-amap/static/js/8505.6e331a64.js.map",
- "2515.48a74226.chunk.js.map": "/react-amap/static/js/2515.48a74226.chunk.js.map"
+ "2515.52640890.chunk.js.map": "/react-amap/static/js/2515.52640890.chunk.js.map"
},
"entrypoints": [
"static/js/uiw-vendor.98a76a37.js",
"static/js/react-vendor.62574d7d.js",
"static/js/8505.6e331a64.js",
"static/css/main.d0345bc4.css",
- "static/js/main.f15336b7.js"
+ "static/js/main.e42c3190.js"
]
}
\ No newline at end of file
diff --git a/index.html b/index.html
index 1b082e427..6be5f00dd 100644
--- a/index.html
+++ b/index.html
@@ -1 +1 @@
-
React AMap - 高德地图 React 组件
\ No newline at end of file
+React AMap - 高德地图 React 组件
\ No newline at end of file
diff --git a/static/js/2515.48a74226.chunk.js b/static/js/2515.52640890.chunk.js
similarity index 99%
rename from static/js/2515.48a74226.chunk.js
rename to static/js/2515.52640890.chunk.js
index dadb6ecee..6240057ad 100644
--- a/static/js/2515.48a74226.chunk.js
+++ b/static/js/2515.52640890.chunk.js
@@ -1,2 +1,2 @@
-(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2515],{57135:function(e,n,t){e.exports=t(94808)},80363:function(e){function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=function(){return[]},n.resolve=n,n.id=80363,e.exports=n},47437:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var o=t(50189),r=t(53782),i=t(22951),a=t(91976),u=t(67591),c=t(43415),s=t(41473),l=t(41418),f="2.7.19",d=t(55220),p=t(69286),v=["version","dependencies","codeSandbox","codePen"];function h(e){var n=e.version,t=e.dependencies,i=e.codeSandbox,a=e.codePen,u=(0,r.Z)(e,v),c=(0,o.Z)({},u);return a&&(c.codePenOption={title:"uiw".concat(n," - demo"),includeModule:["uiw"],js:(c.code||"").replace("_mount_",'document.getElementById("container")'),html:'
',css_external:"https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.css"),js_external:"https://unpkg.com/react@17.x/umd/react.development.js;https://unpkg.com/react-dom@17.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.1.3/index.js")}),i&&(c.codeSandboxOption={files:{"sandbox.config.json":{content:'{\n "template": "node",\n "container": {\n "startScript": "start",\n "node": "14"\n }\n }'},"public/index.html":{content:'
'},"src/index.js":{content:(c.code||"").replace("_mount_",'document.getElementById("container")')},".kktrc.js":{content:'import lessModules from "@kkt/less-modules";\nexport default (conf, env, options) => {\nconf = lessModules(conf, env, options);\nreturn conf;\n};'},"package.json":{content:{name:"uiw-demo",description:"uiw v".concat(n," - demo"),dependencies:{react:"^17.0.2","react-dom":"^17.0.2","@uiw/react-amap":"latest"},devDependencies:{"@kkt/less-modules":"~7.1.1",kkt:"~7.1.5"},license:"MIT",scripts:{start:"kkt start",build:"kkt build",test:"kkt test --env=jsdom"},browserslist:[">0.2%","not dead","not ie <= 11","not op_mini all"]}}}}),(0,p.jsx)(d.Z,(0,o.Z)((0,o.Z)({},c),{},{dependencies:(0,o.Z)((0,o.Z)({},t),{},{React:s},s),style:{marginBottom:0}}))}var m="index_footer__Fp4ea",M=function(e){var n=(e||{}).editorUrl;return(0,p.jsxs)("div",{className:m,children:[n&&(0,p.jsx)("a",{title:"Editor Current Page",target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-amap/edit/master".concat(n),children:"\u7f16\u8f91\u5f53\u524d\u9875\u9762"}),(0,p.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/react-amap/issues/new",children:"\u63d0\u4ea4 Bug"}),(0,p.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/react-amap",children:"GitHub"}),(0,p.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,p.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"uiwjs"}),(0,p.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/react-baidu-map",children:"\u767e\u5ea6\u5730\u56fe React \u7248\u672c"})]})},w="index_markdown__hcQCp",g=["inline","node"],y=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.forEach((function(n){"text"===n.type?t+=n.value:n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t},C=function(e){(0,u.Z)(t,e);var n=(0,c.Z)(t);function t(e){var o;return(0,i.Z)(this,t),(o=n.call(this,e)).editorUrl=void 0,o.getMdStr=void 0,o.dependencies=void 0,o.state={mdStr:""},o}return(0,a.Z)(t,[{key:"componentDidMount",value:function(){var e=this;this.getMdStr&&this.getMdStr().then((function(n){e.setState({mdStr:n.default||n})}))}},{key:"render",value:function(){var e=this;return(0,p.jsxs)(s.Fragment,{children:[(0,p.jsx)(l.Z,{style:{padding:"20px 26px"},source:this.state.mdStr,className:w,components:{code:function(n){var t=n.inline,i=n.node,a=(0,r.Z)(n,g),u=a,c=u.noPreview,s=u.noScroll,l=u.bgWhite,d=u.noCode,v=u.codeSandbox,m=u.codePen;if(t)return(0,p.jsx)("code",(0,o.Z)({},a));var M={noPreview:c,noScroll:s,bgWhite:l,noCode:d,codeSandbox:v,codePen:m};return 0===Object.keys(M).filter((function(e){return void 0!==M[e]})).length?(0,p.jsx)("code",(0,o.Z)({},a)):(0,p.jsx)(h,{version:f,code:y(i.children),dependencies:e.dependencies,noPreview:c,noScroll:s,bgWhite:l,noCode:d,codePen:m,codeSandbox:v})}}}),(0,p.jsx)(M,{editorUrl:this.editorUrl})]})}}]),t}(s.Component)},94808:function(e){var n=function(e){"use strict";var n,t=Object.prototype,o=t.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",u=r.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(R){c=function(e,n,t){return e[n]=t}}function s(e,n,t,o){var r=n&&n.prototype instanceof m?n:m,i=Object.create(r.prototype),a=new A(o||[]);return i._invoke=function(e,n,t){var o=f;return function(r,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===r)throw i;return O()}for(t.method=r,t.arg=i;;){var a=t.delegate;if(a){var u=b(a,t);if(u){if(u===h)continue;return u}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(o===f)throw o=v,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);o=p;var c=l(e,n,t);if("normal"===c.type){if(o=t.done?v:d,c.arg===h)continue;return{value:c.arg,done:t.done}}"throw"===c.type&&(o=v,t.method="throw",t.arg=c.arg)}}}(e,t,a),i}function l(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(R){return{type:"throw",arg:R}}}e.wrap=s;var f="suspendedStart",d="suspendedYield",p="executing",v="completed",h={};function m(){}function M(){}function w(){}var g={};c(g,i,(function(){return this}));var y=Object.getPrototypeOf,C=y&&y(y(T([])));C&&C!==t&&o.call(C,i)&&(g=C);var k=w.prototype=m.prototype=Object.create(g);function E(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function x(e,n){function t(r,i,a,u){var c=l(e[r],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"===typeof f&&o.call(f,"__await")?n.resolve(f.__await).then((function(e){t("next",e,a,u)}),(function(e){t("throw",e,a,u)})):n.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return t("throw",e,a,u)}))}u(c.arg)}var r;this._invoke=function(e,o){function i(){return new n((function(n,r){t(e,o,n,r)}))}return r=r?r.then(i,i):i()}}function b(e,t){var o=e.iterator[t.method];if(o===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,b(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=l(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function Z(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function S(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Z,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--t){var r=this.tryEntries[t];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),S(t),h}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var o=t.completion;if("throw"===o.type){var r=o.arg;S(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:T(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=n),h}},e}(e.exports);try{regeneratorRuntime=n}catch(t){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},98202:function(e,n,t){"use strict";t.r(n),t.d(n,{APILoader:function(){return M},AutoComplete:function(){return O},BezierCurve:function(){return U},Circle:function(){return G},CircleMarker:function(){return V},Context:function(){return I},ContextMenu:function(){return K},ControlBarControl:function(){return ee},Ellipse:function(){return oe},Geolocation:function(){return ae},HawkEyeControl:function(){return se},InfoWindow:function(){return de},Map:function(){return z},MapTypeControl:function(){return he},Marker:function(){return we},MassMarks:function(){return Ce},Polygon:function(){return xe},PolygonEditor:function(){return be},Polyline:function(){return Ae},Provider:function(){return H},Rectangle:function(){return Re},ScaleControl:function(){return De},Text:function(){return Pe},ToolBarControl:function(){return He},Weather:function(){return Be},delay:function(){return m},getReactDOMClient:function(){return S},initialState:function(){return j},reducer:function(){return D},requireCss:function(){return p},requireScript:function(){return v},useAutoComplete:function(){return T},useBezierCurve:function(){return N},useCircle:function(){return F},useCircleMarker:function(){return q},useContextMenu:function(){return $},useControlBarControl:function(){return X},useEllipse:function(){return te},useEventProperties:function(){return b},useGeolocation:function(){return ie},useHawkEyeControl:function(){return ce},useInfoWindow:function(){return fe},useMap:function(){return P},useMapContext:function(){return L},useMapTypeControl:function(){return ve},useMarker:function(){return Me},useMassMarks:function(){return ye},usePolygon:function(){return Ee},usePolyline:function(){return Se},usePrevious:function(){return x},useRectangle:function(){return Oe},useRenderDom:function(){return A},useScaleControl:function(){return je},useSetStatus:function(){return k},useSettingProperties:function(){return Z},useText:function(){return Le},useToolBarControl:function(){return _e},useVisiable:function(){return E},useWeather:function(){return ze}});var o=t(22951),r=t(91976),i=t(67591),a=t(43415),u=t(57135),c=t.n(u);function s(e,n,t,o,r,i,a){try{var u=e[i](a),c=u.value}catch(s){return void t(s)}u.done?n(c):Promise.resolve(c).then(o,r)}function l(e){return function(){var n=this,t=arguments;return new Promise((function(o,r){var i=e.apply(n,t);function a(e){s(i,o,r,a,u,"next",e)}function u(e){s(i,o,r,a,u,"throw",e)}a(void 0)}))}}var f=t(41473),d={};function p(e,n){void 0===n&&(n="_react_amap_css");var t=document&&(document.head||document.getElementsByTagName("head")[0]),o=document.getElementById(n);return new Promise((function(r,i){if(!document||e in d||o)r();else{var a=document.createElement("link");a.type="text/css",a.rel="stylesheet",a.id=n,a.href=e,a.onerror=function(n){t.removeChild(a),i(new URIError("The css "+e+" is no accessible."))},a.onload=function(){d[e]=!0,r()},t.appendChild(a)}}))}function v(e,n){void 0===n&&(n="_react_amap_plugin");var t=document&&(document.head||document.getElementsByTagName("head")[0]),o=document.getElementById(n);return new Promise((function(r,i){if(!document||e in d||o)r();else{var a=document.createElement("script");a.type="text/javascript",a.id=n,a.async=!0,a.defer=!0,a.src=e,a.onerror=function(n){t.removeChild(a),i(new URIError("The Script "+e+" is no accessible."))},a.onload=function(){d[e]=!0,r()},t.appendChild(a)}}))}var h=t(69286);function m(e){return new Promise((function(n,t){window.setTimeout(n,e)}))}var M=function(e){(0,i.Z)(t,e);var n=(0,a.Z)(t);function t(e){var r;if((0,o.Z)(this,t),(r=n.call(this,e)).isMountedOk=!1,r.state={loaded:!!window.AMap},r.handleError=function(e){r.isMountedOk&&r.setState({error:e})},r.finish=function(){r.isMountedOk&&r.setState({loaded:!0})},null===e.akay)throw new TypeError("AMap: akay is required");return r}return(0,r.Z)(t,[{key:"componentDidMount",value:function(){this.isMountedOk=!0;var e=this.props.callbackName;if(null==window.AMap){if(window[e])return void t.waitQueue.push([this.finish,this.handleError]);this.loadMap()}}},{key:"componentWillUnmount",value:function(){this.isMountedOk=!1}},{key:"render",value:function(){return this.state.loaded?this.props.children:this.props.fallback?this.props.fallback(this.state.error):this.state.error?(0,h.jsx)("div",{style:{color:"red"},children:this.state.error.message}):null}},{key:"getScriptSrc",value:function(){var e=this.props,n=e.protocol||window.location.protocol;-1===n.indexOf(":")&&(n+=":");var t="";return e.plugin&&(t="&plugin="+e.plugin),n+"//"+e.hostAndPath+"?v="+e.version+"&key="+e.akay+"&callback="+e.callbackName+t}},{key:"loadMap",value:function(){var e=this;return l(c().mark((function n(){var o,r,i,a;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=e.props.callbackName,r=e.getScriptSrc(),window[o]=function(){var n=t.waitQueue;t.waitQueue=[],n.forEach((function(e){return e[0]()})),e.finish()},i=0;case 4:if(!(i<3)){n.next=22;break}return n.prev=5,n.next=8,v(r);case 8:return n.abrupt("break",22);case 11:if(n.prev=11,n.t0=n.catch(5),2!==i){n.next=17;break}if("object"!==typeof(a=function(){var o=new Error("Failed to load AMap: "+n.t0.message),r=t.waitQueue;return t.waitQueue=[],r.forEach((function(e){return e[1](o)})),e.handleError(o),{v:void 0}}())){n.next=17;break}return n.abrupt("return",a.v);case 17:return n.next=19,m(1e3*i);case 19:i++,n.next=4;break;case 22:case"end":return n.stop()}}),n,null,[[5,11]])})))()}}]),t}(f.Component);M.defaultProps={protocol:/^file:/.test(window.location.protocol)?"https":window.location.protocol,akay:"",hostAndPath:"webapi.amap.com/maps",version:"2.0",callbackName:"load_amap_sdk",plugin:""},M.waitQueue=[];var w=t(25773),g=t(11026),y=t(64649),C=t(7510);function k(e,n,t){void 0===n&&(n={}),void 0===t&&(t=[]),t.forEach((function(t){var o=t,r=(0,f.useState)(n[o]),i=(0,g.Z)(r,2),a=i[0],u=i[1];(0,f.useEffect)((function(){if(e&&void 0!==n[o]&&n[o]!==a){var t=e.getStatus();e.setStatus((0,w.Z)({},t,(0,y.Z)({},o,n[o]))),u(n[o])}}),[e,n[o]])}))}function E(e,n){var t=(0,f.useState)(n),o=(0,g.Z)(t,2),r=o[0],i=o[1];(0,f.useEffect)((function(){e&&void 0!==n&&(n?e.show&&e.show():e.hide&&e.hide(),n!==r&&i(n))}),[e,n])}function x(e){var n=(0,f.useRef)();return(0,f.useEffect)((function(){n.current=e})),n.current}function b(e,n,t,o){void 0===n&&(n={}),void 0===t&&(t=[]),t.forEach((function(t){var o=t,r=n[o];(0,f.useEffect)((function(){if(e){var n=t.toLocaleLowerCase().replace(/^on/,"");return r&&n&&e.on(n,r),function(){n&&r&&e.off(n,r)}}}),[e,n[o]])}))}function Z(e,n,t){void 0===e&&(e={}),void 0===n&&(n={}),void 0===t&&(t=[]),t.forEach((function(t){var o="set"+t,r=""+t.charAt(0).toLowerCase()+t.slice(1),i=(0,f.useState)(n[r]),a=(0,g.Z)(i,2),u=a[0],c=a[1];(0,f.useEffect)((function(){e&&void 0!==n[r]&&n[r]!==u&&e[o]&&"function"===typeof e[o]&&(e[o](n[r]),c(n[r]))}),[e,n[r]])}))}var S=function(){var e=l(c().mark((function e(){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("react-dom/client");case 3:n=e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.abrupt("return",n);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}();function A(e){var n=(0,f.useRef)(document.createElement("div")),t=(0,f.useCallback)(l(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.ReactDOM){e.next=4;break}e.t0=window.ReactDOM,e.next=7;break;case 4:return e.next=6,S();case 6:e.t0=e.sent;case 7:return e.abrupt("return",e.t0);case 8:case"end":return e.stop()}}),e)}))),[]),o=(0,f.useRef)();return(0,f.useLayoutEffect)((function(){l(c().mark((function e(){var r,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0=C;case 5:r=e.t0,i=Reflect.has(r,"createRoot"),o.current=i?r.createRoot(n.current):null;case 8:case"end":return e.stop()}}),e)})))()}),[]),(0,f.useLayoutEffect)((function(){o.current?o.current.render((0,h.jsx)(f.Fragment,{children:e.children})):C&&C.render((0,h.jsx)(f.Fragment,{children:e.children}),n.current)}),[e.children,n.current,o.current]),n.current}var T=function(e){void 0===e&&(e={});var n=(0,f.useState)(),t=(0,g.Z)(n,2),o=t[0],r=t[1];return(0,f.useEffect)((function(){var n;if(AMap&&!o)return AMap.plugin(["AMap.AutoComplete"],(function(){n=new AMap.AutoComplete(e),r(n)})),function(){n&&r(void 0)}}),[]),Z(o,e,["Type","City","CityLimit"]),b(o,e,["onChoose","onSelect"]),{autoComplete:o,setAutoComplete:r}},O=f.forwardRef((function(e,n){var t=T(e).autoComplete;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{autoComplete:t})})),null})),R=t(30808),j={map:void 0,AMap:void 0,container:void 0},D=function(e,n){return(0,w.Z)({},e,n)},I=f.createContext({state:j,dispatch:function(){return null}});function L(){var e=(0,f.useContext)(I),n=e.state,t=e.dispatch;return(0,w.Z)({},n,{state:n,dispatch:t})}var P=function(e){void 0===e&&(e={});var n=(0,w.Z)({},e),t=(0,f.useState)(),o=(0,g.Z)(t,2),r=o[0],i=o[1],a=(0,f.useState)(e.zoom||15),u=(0,g.Z)(a,2),c=u[0],s=u[1],l=(0,f.useState)(e.container),d=(0,g.Z)(l,2),p=d[0],v=d[1],h=(0,f.useContext)(I).dispatch;return(0,f.useEffect)((function(){if(p&&!r&&AMap){p.className=p.className+" react-amap-wapper";var e=new AMap.Map(p,(0,w.Z)({zoom:c},n));i(e)}return function(){r&&(r.clearInfoWindow(),r.clearLimitBounds(),r.clearMap(),r.destroy(),i(void 0))}}),[p,r]),(0,f.useEffect)((function(){return r&&p&&h({map:r,container:p,AMap:AMap}),function(){h({map:void 0,container:void 0,AMap:void 0})}}),[r,p]),(0,f.useMemo)((function(){r&&"number"===typeof e.zoom&&c!==e.zoom&&e.zoom>=2&&e.zoom<=20&&(s(e.zoom),r.setZoom(e.zoom))}),[c,e.zoom]),(0,f.useMemo)((function(){e.center&&r&&r.setCenter(e.center)}),[r,e.center]),k(r,e,["dragEnable","zoomEnable","jogEnable","pitchEnable","rotateEnable","animateEnable","keyboardEnable"]),Z(r,e,["Zoom","LabelzIndex","Layers","City","Bounds","LimitBounds","Lang","Rotation","DefaultCursor","MapStyle","Features","DefaultLayer","Pitch"]),b(r,e,["onMouseMove","onZoomChange","onMapMove","onMouseWheel","onZoomStart","onMouseOver","onMouseOut","onDblClick","onClick","onZoomEnd","onMoveEnd","onMouseUp","onMouseDown","onRightClick","onMoveStart","onDragStart","onDragging","onDragEnd","onHotspotOut","onHotspotOver","onTouchStart","onComplete","onHotspotClick","onTouchMove","onTouchEnd","onResize"]),{map:r,setMap:i,zoom:c,setZoom:s,container:p,setContainer:v}},_=["className","children"];function H(e){var n=(0,f.useReducer)(D,j),t=(0,g.Z)(n,2),o=t[0],r=t[1];return(0,h.jsx)(I.Provider,{value:(0,w.Z)({},o,{state:o,dispatch:r}),children:e.children})}var z=(0,f.forwardRef)((function(e,n){var t=e.className,o=e.children,r=(0,R.Z)(e,_),i=(0,f.useReducer)(D,j),a=(0,g.Z)(i,2),u=a[0],c=a[1],s=(0,f.useRef)(null),l=P((0,w.Z)({container:r.container||s.current},r)),d=l.setContainer,p=l.container,v=l.map;(0,f.useEffect)((function(){return d(s.current)}),[s.current]),(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},r,{map:v,AMap:AMap,container:r.container||s.current})}),[v]);var m=f.Children.toArray(o);return(0,f.useEffect)((function(){v&&c({map:v,container:s.current,AMap:AMap})}),[v]),(0,h.jsxs)(I.Provider,{value:(0,w.Z)({},u,{state:u,dispatch:c}),children:[!r.container&&(0,h.jsx)("div",{ref:s,className:"react-amap-wapper "+t,style:(0,w.Z)({fontSize:1,width:"100%",height:"100%"},r.style)}),AMap&&v&&"function"===typeof o&&o({AMap:AMap,map:v,container:p}),AMap&&v&&m.map((function(e,n){return(0,f.isValidElement)(e)?"string"===typeof e?(0,f.cloneElement)((0,h.jsx)(f.Fragment,{children:e}),{key:n}):e.type&&"string"===typeof e.type?(0,f.cloneElement)(e,{key:n}):(0,f.cloneElement)(e,(0,w.Z)({},e.props,{AMap:AMap,map:v,container:p,key:n})):null}))]})})),B=["visiable"],N=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,B),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.BezierCurve((0,w.Z)({},t));return o.add(e),u(e),function(){e&&(o&&o.removeLayer(e),u(void 0))}}}),[o]),E(a,n),Z(a,e,["Options","Path","ExtData","ExtData"]),b(a,e,["onHide","onShow","onDblClick","onMouseOver","onMouseUp","onMouseDown","onclick","onTouchEnd","onTouchMove","onTouchStart","onRightClick","onMouseOut"]),{bezierCurve:a,setBezierCurve:u}},U=f.forwardRef((function(e,n){var t=N(e).bezierCurve;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{bezierCurve:t})})),null})),W=["visiable"],F=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,W),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.Circle((0,w.Z)({},t));o.add(e),u(e)}return function(){a&&(o&&o.remove(a),u(void 0))}}),[o]),E(a,n),Z(a,e,["Center","Raius","Options","ExtData"]),b(a,e,["onHide","onShow","onRightClick","onClick","onTouchEnd","onDblClick","onTouchMove","onTouchStart","onMouseOut","onMouseOver","onMouseUp","onMouseDown"]),{circle:a,setCircle:u}},G=f.forwardRef((function(e,n){var t=F(e).circle;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{circle:t})})),null})),Q=["visiable"],q=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,Q),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.CircleMarker((0,w.Z)({},t));return o.add(e),u(e),function(){e&&(o&&o.removeLayer(e),u(void 0))}}}),[o]),E(a,n),Z(a,e,["Center","Raius","zIndex","Bubble","Cursor","StrokeColor","StrokeOpacity","StrokeWeight","FillColor","FillOpacity","Draggable","ExtData"]),b(a,e,["onHide","onShow","onMouseover","onTouchend","onClick","onTouchmove","onRightclick","onMouseup","onMouseout","onTouchstart","onMousedown","onDblclick"]),{circleMarker:a,setCircleMarker:u}},V=f.forwardRef((function(e,n){var t=q(e).circleMarker;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{circleMarker:t})})),null})),Y=["position"],$=function(e){void 0===e&&(e={});var n=e.position,t=(0,R.Z)(e,Y),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.ContextMenu((0,w.Z)({},t));u(e);var r=function(t){return e.open(o,n||t.lnglat)};return o.on("rightclick",r),function(){e&&(o.off("rightclick",r),o&&o.removeLayer(e),u(void 0))}}}),[o]),b(a,e,["onOpen","onClose"]),{contextMenu:a,setContextMenu:u}},J=function(){},K=f.forwardRef((function(e,n){var t=$(e).contextMenu;(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{contextMenu:t})}));var o=f.Children.toArray(e.children);return(0,h.jsx)(f.Fragment,{children:AMap&&t&&o.map((function(n,o){return f.isValidElement(n)?f.cloneElement(n,(0,w.Z)({},n.props,{AMap:AMap,map:e.map,contextMenu:t,key:o})):null}))})}));function X(e){void 0===e&&(e={});var n=e,t=n.position,o=n.visiable,r=n.offset,i=(0,f.useState)(),a=(0,g.Z)(i,2),u=a[0],c=a[1],s=L().map;return(0,f.useEffect)((function(){var e;if(s&&!u)return s.plugin(["AMap.ControlBar","AMap.HawkEye"],(function(){e=new AMap.ControlBar({offset:r,position:t}),s.addControl(e),c(e)})),function(){e&&s.removeControl(e)}}),[s]),E(u,o),{controlBarControl:u,setControlBarControl:c}}K.Item=function(e){void 0===e&&(e={});var n=e,t=n.text,o=void 0===t?"":t,r=n.onClick,i=void 0===r?J:r;return(0,f.useEffect)((function(){return e.contextMenu&&e.contextMenu.addItem(o,i,1),function(){e.contextMenu&&e.contextMenu.removeItem(o,i)}}),[e.contextMenu,e.text,e.onClick]),null};var ee=f.forwardRef((function(e,n){var t=X(e).controlBarControl;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{controlBarControl:t})}),[t]),null})),ne=["visiable"],te=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,ne),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.Ellipse((0,w.Z)({},t));return o.add(e),u(e),function(){e&&(o&&o.removeLayer(e),u(void 0))}}}),[o]),E(a,n),Z(a,e,["Center","Radius","Options","ExtData"]),b(a,e,["onHide","onShow","onClick","onDblClick","onRightClick","onMouseOut","onMouseOver","onMouseUp","onMouseDown","onTouchEnd","onTouchMove","onTouchStart"]),{ellipse:a,setEllipse:u}},oe=f.forwardRef((function(e,n){var t=te(e).ellipse;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{ellipse:t})})),null})),re=["type","onComplete","onError"],ie=function(e){void 0===e&&(e={});var n=e,t=n.type,o=void 0===t?"position":t,r=n.onComplete,i=n.onError,a=(0,R.Z)(e,re),u=(0,f.useState)(),c=(0,g.Z)(u,2),s=c[0],l=c[1],d=L().map;function p(e,n){"complete"===e&&r?r(n):i&&i(n)}return(0,f.useEffect)((function(){var e;if(AMap&&!s)return AMap.plugin(["AMap.Geolocation"],(function(){e=new AMap.Geolocation((0,w.Z)({},a)),l(e)})),function(){e&&l(void 0)}}),[AMap]),(0,f.useMemo)((function(){if(/^(position|cityInfo)$/.test(o)){var e="position"===o?"getCurrentPosition":"getCityInfo";s&&d?(s[e](p),d.addControl(s)):s&&s[e](p)}}),[s]),{geolocation:s,setGeolocation:l}},ae=f.forwardRef((function(e,n){var t=ie(e).geolocation;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{geolocation:t})})),null})),ue=["offset","visiable"];function ce(e){void 0===e&&(e={});var n=(0,f.useState)(),t=(0,g.Z)(n,2),o=t[0],r=t[1],i=e,a=i.offset,u=i.visiable,c=(0,R.Z)(e,ue),s=L().map;return(0,f.useEffect)((function(){var e;if(s&&!o)return s.plugin(["AMap.HawkEye"],(function(){e=new AMap.HawkEye((0,w.Z)({offset:a},c)),s.addControl(e),r(e)})),function(){e&&s&&(s.removeLayer(e),r(void 0))}}),[s]),E(o,u),{hawkEyeControl:o,setHawkEyeControl:r}}var se=f.forwardRef((function(e,n){var t=ce(e).hawkEyeControl;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{hawkEyeControl:t})}),[t]),null})),le=["visiable","position"],fe=function(e){void 0===e&&(e={});var n=e,t=n.visiable,o=n.position,r=(0,R.Z)(e,le),i=L().map,a=(0,f.useState)(t),u=(0,g.Z)(a,2),c=u[0],s=u[1],l=(0,f.useState)(),d=(0,g.Z)(l,2),p=d[0],v=d[1],h=A({children:e.children});return(0,f.useEffect)((function(){if(AMap&&i&&!p){var n=i.getCenter();e.children&&(r.content=h);var t=new AMap.InfoWindow((0,w.Z)({},r,{position:o||n}));return v(t),c&&t.open(i,o||n),function(){t&&(i&&i.remove(t),v(void 0))}}}),[i]),(0,f.useEffect)((function(){p&&p.setContent(e.children?h:r.content||"")}),[e.children,h,r.content,p]),(0,f.useMemo)((function(){if(c!==t&&p&&i)if(s(t),t){var e=i.getCenter();p.open(i,o||e)}else p.close()}),[t,p]),(0,f.useEffect)((function(){if(i&&p&&t){var e=i.getCenter();p.open(i,o||e)}}),[o]),Z(p,e,["Content","Anchor","Size"]),b(p,e,["onOpen","onClose","onChange"]),{isOpen:c,setIsOpen:s,infoWindow:p,setInfoWindow:v}},de=f.forwardRef((function(e,n){var t=fe(e).infoWindow;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{infoWindow:t})})),null})),pe=["visiable","defaultType"];function ve(e){void 0===e&&(e={});var n=(0,f.useState)(),t=(0,g.Z)(n,2),o=t[0],r=t[1],i=e,a=i.visiable,u=i.defaultType,c=void 0===u?0:u,s=(0,R.Z)(e,pe),l=L().map;return(0,f.useEffect)((function(){var e;if(l&&!o)return l.plugin(["AMap.MapType"],(function(){e=new AMap.MapType((0,w.Z)({defaultType:c},s)),l.addControl(e),r(e)})),function(){e&&l.removeControl(e)}}),[l]),E(o,a),{mapTypeControl:o,setMapTypeControl:r}}var he=f.forwardRef((function(e,n){var t=ve(e).mapTypeControl;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{mapTypeControl:t})}),[t]),null})),me=["visiable","children"],Me=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,me),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1],c=A({children:e.children});return(0,f.useEffect)((function(){if(!a&&o){e.children&&(t.content=c);var n=new AMap.Marker((0,w.Z)({},t));o.add(n),u(n)}return function(){a&&(a.remove(),u(void 0))}}),[o,a]),(0,f.useEffect)((function(){a&&a.setContent(e.children?c:e.content||"")}),[e.children,c,e.content,a]),E(a,n),Z(a,e,["Path","Anchor","Offset","Animation","Clickable","Position","Angle","Label","zIndex","Icon","Draggable","Cursor","Content","Map","Title","Top","Shadow","Shape","ExtData"]),b(a,e,["onClick","onDblClick","onRightClick","onMouseMove","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onDragStart","onDragging","onDragEnd","onMoving","onMoveEnd","onMoveAlong","onTouchStart","onTouchMove","onTouchEnd"]),{marker:a,setMarker:u}},we=(0,f.forwardRef)((function(e,n){var t=Me(e).marker;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{marker:t})}),[t]),null})),ge=["visiable"],ye=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,ge),o=L().map,r=t||{},i=r.opacity,a=void 0===i?.8:i,u=r.zIndex,c=void 0===u?1111:u,s=r.style,l=r.data,d=(0,f.useState)(),p=(0,g.Z)(d,2),v=p[0],h=p[1];return(0,f.useEffect)((function(){if(AMap&&o&&!v){var e=s;e||(e=[{url:"https://webapi.amap.com/images/mass/mass0.png",anchor:new AMap.Pixel(6,6),size:new AMap.Size(11,11),zIndex:3},{url:"https://webapi.amap.com/images/mass/mass1.png",anchor:new AMap.Pixel(4,4),size:new AMap.Size(7,7),zIndex:2},{url:"https://webapi.amap.com/images/mass/mass2.png",anchor:new AMap.Pixel(3,3),size:new AMap.Size(5,5),zIndex:1}]);var n=new AMap.MassMarks(l||[],{opacity:a,zIndex:c,style:e});return h(n),n.setMap(o),function(){n&&(n.clear(),h(void 0))}}}),[o]),E(v,n),Z(v,e,["Map","Data","Style","Opacity","zIndex","Zooms"]),b(v,e,["onClick","onDblClick","onMouseMove","onMouseOut","onMouseUp","onMouseDown","onMouseOver","onTouchStart","onTouchEnd"]),{massMarks:v,setMassMarks:h}},Ce=f.forwardRef((function(e,n){var t=ye(e).massMarks;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{massMarks:t})}),[t,e]),null})),ke=["visiable"],Ee=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,ke),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.Polygon((0,w.Z)({},t));o.add(e),u(e)}}),[o]),E(a,n),Z(a,e,["ExtData","ExtData"]),b(a,e,["onClick","onDblClick","onRightClick","onHide","onShow","onMouseDown","onMouseUp","onMouseOver","onMouseOut","onChange","onTouchStart","onTouchMove","onTouchEnd"]),{polygon:a,setPolygon:u}},xe=(0,f.forwardRef)((function(e,n){var t=e.children,o=Ee(e).polygon;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{polygon:o})})),t&&(0,f.isValidElement)(t)?(0,f.cloneElement)(t,(0,w.Z)({},e,{polygon:o})):null})),be=(0,f.forwardRef)((function(e,n){var t=e.active,o=e.polygon,r=L().map,i=(0,f.useState)(!0),a=(0,g.Z)(i,2),u=a[0],c=a[1],s=(0,f.useState)(),l=(0,g.Z)(s,2),d=l[0],p=l[1];return(0,f.useEffect)((function(){if(o&&r&&!d&&AMap&&AMap.PolygonEditor){var e=new AMap.PolygonEditor(r,o);o.on("hide",(function(){return c(!1)})),o.on("show",(function(){return c(!0)})),p(e)}}),[o]),(0,f.useEffect)((function(){d&&(u&&!t?d.close():u&&t?d.open():!u&&t&&d.close())}),[t,u]),b(d,e,["onEnd","onAddnode","onAdjust","onMove","onAdd"]),null})),Ze=["visiable"];function Se(e){void 0===e&&(e={});var n=(0,f.useState)(),t=(0,g.Z)(n,2),o=t[0],r=t[1],i=e.visiable,a=(0,R.Z)(e,Ze),u=L().map;return(0,f.useEffect)((function(){if(u&&!o){var e=new AMap.Polyline((0,w.Z)({},a));return u.add(e),r(e),function(){e&&(u&&u.removeLayer(e),r(void 0))}}}),[u]),E(o,i),Z(o,e,["Path","Options","Map","ExtData"]),b(o,e,["onHide","onShow","onMouseOut","onChange","onRightClick","onDblClick","onMouseDown","onClick","onMouseOver","onTouchEnd","onTouchMove","onTouchStart","onMouseUp"]),{polyline:o,setPolyline:r}}var Ae=f.forwardRef((function(e,n){var t=Se(e).polyline;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{polyline:t})}),[t]),null})),Te=["visiable"],Oe=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,Te),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.Rectangle((0,w.Z)({},t));return o.add(e),u(e),function(){e&&(o&&o.removeLayer(e),u(void 0))}}}),[o]),E(a,n),Z(a,e,["Bounds","Options","Map","ExtData"]),b(a,e,["onHide","onShow","onClick","onDblClick","onRightClick","onMouseOut","onMouseOver","onMouseUp","onMouseDown","onTouchEnd","onTouchMove","onTouchStart"]),{rectangle:a,setRectangle:u}},Re=f.forwardRef((function(e,n){var t=Oe(e).rectangle;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{rectangle:t})})),null}));function je(e){void 0===e&&(e={});var n=(0,f.useState)(),t=(0,g.Z)(n,2),o=t[0],r=t[1],i=e,a=i.position,u=i.visiable,c=i.offset,s=L().map;return(0,f.useEffect)((function(){var e;if(s&&!o)return s.plugin(["AMap.Scale"],(function(){e=new AMap.Scale({offset:c,position:a}),s.addControl(e),r(e)})),function(){e&&s.removeControl(e)}}),[s]),E(o,u),{scaleControl:o,setScaleControl:r}}var De=f.forwardRef((function(e,n){var t=je(e).scaleControl;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{scaleControl:t})}),[t]),null})),Ie=["visiable"],Le=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,Ie),o=(0,f.useState)(),r=(0,g.Z)(o,2),i=r[0],a=r[1],u=L().map,c=A({children:e.children});return(0,f.useEffect)((function(){if(AMap&&u&&!i){e.children&&(t.text=c.innerHTML);var n=new AMap.Text((0,w.Z)({},t));return u.add(n),a(n),function(){n&&(n.remove(),a(void 0))}}}),[u]),(0,f.useEffect)((function(){i&&i.setText(e.children?c.innerHTML:e.text||"")}),[e.children,e.text,c,i]),E(i,n),Z(i,e,["Style","Title","Clickable","Draggable","Map","Position","Offset","Angle","zIndex","Top","Cursor","ExtData"]),b(i,e,["onMoving","onTouchMove","onTouchEnd","onMoveaLong","onTouchStart","onMoveEnd","onClick","onDblClick","onRightClick","onMouseMove","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onDragStart","onDragEnd","onDragging"]),{text:i,setText:a}},Pe=(0,f.forwardRef)((function(e,n){var t=Le((0,w.Z)({},e)).text;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{text:t})})),null}));function _e(e){void 0===e&&(e={});var n=(0,f.useState)(),t=(0,g.Z)(n,2),o=t[0],r=t[1],i=e,a=i.position,u=i.visiable,c=i.offset,s=L().map;return(0,f.useEffect)((function(){var e;if(s&&!o)return s.plugin(["AMap.ToolBar"],(function(){e=new AMap.ToolBar({offset:c,position:a}),s.addControl(e),r(e)})),function(){e&&s.removeControl(e)}}),[s]),E(o,u),{toolBarControl:o,setToolBarControl:r}}var He=f.forwardRef((function(e,n){var t=_e(e).toolBarControl;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{toolBarControl:t})}),[t]),null})),ze=function(e){void 0===e&&(e={});var n=e,t=n.city,o=void 0===t?"":t,r=n.type,i=void 0===r?"live":r,a=n.onComplete,u=n.onError,c=(0,f.useState)(),s=(0,g.Z)(c,2),l=s[0],d=s[1],p="live"===i?"getLive":"getForecast";return(0,f.useEffect)((function(){var e;if(AMap&&!l)return AMap.plugin(["AMap.Weather"],(function(){e=new AMap.Weather,d(e)})),function(){e&&d(void 0)}}),[]),(0,f.useMemo)((function(){var e;l&&o&&i&&(e=l,i&&o&&/^(live|forecast)$/.test(i)&&e[p](o,(function(e,n){e&&u?u(e):n&&a&&a(n)})))}),[l,o,i]),{weather:l,setWeather:d}},Be=f.forwardRef((function(e,n){var t=ze(e).weather;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{weather:t})})),null}))}}]);
-//# sourceMappingURL=2515.48a74226.chunk.js.map
\ No newline at end of file
+(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2515],{57135:function(e,n,t){e.exports=t(94808)},80363:function(e){function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=function(){return[]},n.resolve=n,n.id=80363,e.exports=n},47437:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var o=t(50189),r=t(53782),i=t(22951),a=t(91976),u=t(67591),c=t(43415),s=t(41473),l=t(41418),f="2.7.20",d=t(55220),p=t(69286),v=["version","dependencies","codeSandbox","codePen"];function h(e){var n=e.version,t=e.dependencies,i=e.codeSandbox,a=e.codePen,u=(0,r.Z)(e,v),c=(0,o.Z)({},u);return a&&(c.codePenOption={title:"uiw".concat(n," - demo"),includeModule:["uiw"],js:(c.code||"").replace("_mount_",'document.getElementById("container")'),html:'
',css_external:"https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.css"),js_external:"https://unpkg.com/react@17.x/umd/react.development.js;https://unpkg.com/react-dom@17.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.1.3/index.js")}),i&&(c.codeSandboxOption={files:{"sandbox.config.json":{content:'{\n "template": "node",\n "container": {\n "startScript": "start",\n "node": "14"\n }\n }'},"public/index.html":{content:'
'},"src/index.js":{content:(c.code||"").replace("_mount_",'document.getElementById("container")')},".kktrc.js":{content:'import lessModules from "@kkt/less-modules";\nexport default (conf, env, options) => {\nconf = lessModules(conf, env, options);\nreturn conf;\n};'},"package.json":{content:{name:"uiw-demo",description:"uiw v".concat(n," - demo"),dependencies:{react:"^17.0.2","react-dom":"^17.0.2","@uiw/react-amap":"latest"},devDependencies:{"@kkt/less-modules":"~7.1.1",kkt:"~7.1.5"},license:"MIT",scripts:{start:"kkt start",build:"kkt build",test:"kkt test --env=jsdom"},browserslist:[">0.2%","not dead","not ie <= 11","not op_mini all"]}}}}),(0,p.jsx)(d.Z,(0,o.Z)((0,o.Z)({},c),{},{dependencies:(0,o.Z)((0,o.Z)({},t),{},{React:s},s),style:{marginBottom:0}}))}var m="index_footer__Fp4ea",M=function(e){var n=(e||{}).editorUrl;return(0,p.jsxs)("div",{className:m,children:[n&&(0,p.jsx)("a",{title:"Editor Current Page",target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-amap/edit/master".concat(n),children:"\u7f16\u8f91\u5f53\u524d\u9875\u9762"}),(0,p.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/react-amap/issues/new",children:"\u63d0\u4ea4 Bug"}),(0,p.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/react-amap",children:"GitHub"}),(0,p.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,p.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"uiwjs"}),(0,p.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/react-baidu-map",children:"\u767e\u5ea6\u5730\u56fe React \u7248\u672c"})]})},w="index_markdown__hcQCp",g=["inline","node"],y=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.forEach((function(n){"text"===n.type?t+=n.value:n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t},C=function(e){(0,u.Z)(t,e);var n=(0,c.Z)(t);function t(e){var o;return(0,i.Z)(this,t),(o=n.call(this,e)).editorUrl=void 0,o.getMdStr=void 0,o.dependencies=void 0,o.state={mdStr:""},o}return(0,a.Z)(t,[{key:"componentDidMount",value:function(){var e=this;this.getMdStr&&this.getMdStr().then((function(n){e.setState({mdStr:n.default||n})}))}},{key:"render",value:function(){var e=this;return(0,p.jsxs)(s.Fragment,{children:[(0,p.jsx)(l.Z,{style:{padding:"20px 26px"},source:this.state.mdStr,className:w,components:{code:function(n){var t=n.inline,i=n.node,a=(0,r.Z)(n,g),u=a,c=u.noPreview,s=u.noScroll,l=u.bgWhite,d=u.noCode,v=u.codeSandbox,m=u.codePen;if(t)return(0,p.jsx)("code",(0,o.Z)({},a));var M={noPreview:c,noScroll:s,bgWhite:l,noCode:d,codeSandbox:v,codePen:m};return 0===Object.keys(M).filter((function(e){return void 0!==M[e]})).length?(0,p.jsx)("code",(0,o.Z)({},a)):(0,p.jsx)(h,{version:f,code:y(i.children),dependencies:e.dependencies,noPreview:c,noScroll:s,bgWhite:l,noCode:d,codePen:m,codeSandbox:v})}}}),(0,p.jsx)(M,{editorUrl:this.editorUrl})]})}}]),t}(s.Component)},94808:function(e){var n=function(e){"use strict";var n,t=Object.prototype,o=t.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",u=r.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(R){c=function(e,n,t){return e[n]=t}}function s(e,n,t,o){var r=n&&n.prototype instanceof m?n:m,i=Object.create(r.prototype),a=new A(o||[]);return i._invoke=function(e,n,t){var o=f;return function(r,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===r)throw i;return O()}for(t.method=r,t.arg=i;;){var a=t.delegate;if(a){var u=b(a,t);if(u){if(u===h)continue;return u}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(o===f)throw o=v,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);o=p;var c=l(e,n,t);if("normal"===c.type){if(o=t.done?v:d,c.arg===h)continue;return{value:c.arg,done:t.done}}"throw"===c.type&&(o=v,t.method="throw",t.arg=c.arg)}}}(e,t,a),i}function l(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(R){return{type:"throw",arg:R}}}e.wrap=s;var f="suspendedStart",d="suspendedYield",p="executing",v="completed",h={};function m(){}function M(){}function w(){}var g={};c(g,i,(function(){return this}));var y=Object.getPrototypeOf,C=y&&y(y(T([])));C&&C!==t&&o.call(C,i)&&(g=C);var k=w.prototype=m.prototype=Object.create(g);function E(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function x(e,n){function t(r,i,a,u){var c=l(e[r],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"===typeof f&&o.call(f,"__await")?n.resolve(f.__await).then((function(e){t("next",e,a,u)}),(function(e){t("throw",e,a,u)})):n.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return t("throw",e,a,u)}))}u(c.arg)}var r;this._invoke=function(e,o){function i(){return new n((function(n,r){t(e,o,n,r)}))}return r=r?r.then(i,i):i()}}function b(e,t){var o=e.iterator[t.method];if(o===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,b(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=l(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function Z(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function S(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Z,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--t){var r=this.tryEntries[t];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),S(t),h}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var o=t.completion;if("throw"===o.type){var r=o.arg;S(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:T(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=n),h}},e}(e.exports);try{regeneratorRuntime=n}catch(t){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},98202:function(e,n,t){"use strict";t.r(n),t.d(n,{APILoader:function(){return M},AutoComplete:function(){return O},BezierCurve:function(){return U},Circle:function(){return G},CircleMarker:function(){return V},Context:function(){return I},ContextMenu:function(){return K},ControlBarControl:function(){return ee},Ellipse:function(){return oe},Geolocation:function(){return ae},HawkEyeControl:function(){return se},InfoWindow:function(){return de},Map:function(){return z},MapTypeControl:function(){return he},Marker:function(){return we},MassMarks:function(){return Ce},Polygon:function(){return xe},PolygonEditor:function(){return be},Polyline:function(){return Ae},Provider:function(){return H},Rectangle:function(){return Re},ScaleControl:function(){return De},Text:function(){return Pe},ToolBarControl:function(){return He},Weather:function(){return Be},delay:function(){return m},getReactDOMClient:function(){return S},initialState:function(){return j},reducer:function(){return D},requireCss:function(){return p},requireScript:function(){return v},useAutoComplete:function(){return T},useBezierCurve:function(){return N},useCircle:function(){return F},useCircleMarker:function(){return q},useContextMenu:function(){return $},useControlBarControl:function(){return X},useEllipse:function(){return te},useEventProperties:function(){return b},useGeolocation:function(){return ie},useHawkEyeControl:function(){return ce},useInfoWindow:function(){return fe},useMap:function(){return P},useMapContext:function(){return L},useMapTypeControl:function(){return ve},useMarker:function(){return Me},useMassMarks:function(){return ye},usePolygon:function(){return Ee},usePolyline:function(){return Se},usePrevious:function(){return x},useRectangle:function(){return Oe},useRenderDom:function(){return A},useScaleControl:function(){return je},useSetStatus:function(){return k},useSettingProperties:function(){return Z},useText:function(){return Le},useToolBarControl:function(){return _e},useVisiable:function(){return E},useWeather:function(){return ze}});var o=t(22951),r=t(91976),i=t(67591),a=t(43415),u=t(57135),c=t.n(u);function s(e,n,t,o,r,i,a){try{var u=e[i](a),c=u.value}catch(s){return void t(s)}u.done?n(c):Promise.resolve(c).then(o,r)}function l(e){return function(){var n=this,t=arguments;return new Promise((function(o,r){var i=e.apply(n,t);function a(e){s(i,o,r,a,u,"next",e)}function u(e){s(i,o,r,a,u,"throw",e)}a(void 0)}))}}var f=t(41473),d={};function p(e,n){void 0===n&&(n="_react_amap_css");var t=document&&(document.head||document.getElementsByTagName("head")[0]),o=document.getElementById(n);return new Promise((function(r,i){if(!document||e in d||o)r();else{var a=document.createElement("link");a.type="text/css",a.rel="stylesheet",a.id=n,a.href=e,a.onerror=function(n){t.removeChild(a),i(new URIError("The css "+e+" is no accessible."))},a.onload=function(){d[e]=!0,r()},t.appendChild(a)}}))}function v(e,n){void 0===n&&(n="_react_amap_plugin");var t=document&&(document.head||document.getElementsByTagName("head")[0]),o=document.getElementById(n);return new Promise((function(r,i){if(!document||e in d||o)r();else{var a=document.createElement("script");a.type="text/javascript",a.id=n,a.async=!0,a.defer=!0,a.src=e,a.onerror=function(n){t.removeChild(a),i(new URIError("The Script "+e+" is no accessible."))},a.onload=function(){d[e]=!0,r()},t.appendChild(a)}}))}var h=t(69286);function m(e){return new Promise((function(n,t){window.setTimeout(n,e)}))}var M=function(e){(0,i.Z)(t,e);var n=(0,a.Z)(t);function t(e){var r;if((0,o.Z)(this,t),(r=n.call(this,e)).isMountedOk=!1,r.state={loaded:!!window.AMap},r.handleError=function(e){r.isMountedOk&&r.setState({error:e})},r.finish=function(){r.isMountedOk&&r.setState({loaded:!0})},null===e.akay)throw new TypeError("AMap: akay is required");return r}return(0,r.Z)(t,[{key:"componentDidMount",value:function(){this.isMountedOk=!0;var e=this.props.callbackName;if(null==window.AMap){if(window[e])return void t.waitQueue.push([this.finish,this.handleError]);this.loadMap()}}},{key:"componentWillUnmount",value:function(){this.isMountedOk=!1}},{key:"render",value:function(){return this.state.loaded?this.props.children:this.props.fallback?this.props.fallback(this.state.error):this.state.error?(0,h.jsx)("div",{style:{color:"red"},children:this.state.error.message}):null}},{key:"getScriptSrc",value:function(){var e=this.props,n=e.protocol||window.location.protocol;-1===n.indexOf(":")&&(n+=":");var t="";return e.plugin&&(t="&plugin="+e.plugin),n+"//"+e.hostAndPath+"?v="+e.version+"&key="+e.akay+"&callback="+e.callbackName+t}},{key:"loadMap",value:function(){var e=this;return l(c().mark((function n(){var o,r,i,a;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=e.props.callbackName,r=e.getScriptSrc(),window[o]=function(){var n=t.waitQueue;t.waitQueue=[],n.forEach((function(e){return e[0]()})),e.finish()},i=0;case 4:if(!(i<3)){n.next=22;break}return n.prev=5,n.next=8,v(r);case 8:return n.abrupt("break",22);case 11:if(n.prev=11,n.t0=n.catch(5),2!==i){n.next=17;break}if("object"!==typeof(a=function(){var o=new Error("Failed to load AMap: "+n.t0.message),r=t.waitQueue;return t.waitQueue=[],r.forEach((function(e){return e[1](o)})),e.handleError(o),{v:void 0}}())){n.next=17;break}return n.abrupt("return",a.v);case 17:return n.next=19,m(1e3*i);case 19:i++,n.next=4;break;case 22:case"end":return n.stop()}}),n,null,[[5,11]])})))()}}]),t}(f.Component);M.defaultProps={protocol:/^file:/.test(window.location.protocol)?"https":window.location.protocol,akay:"",hostAndPath:"webapi.amap.com/maps",version:"2.0",callbackName:"load_amap_sdk",plugin:""},M.waitQueue=[];var w=t(25773),g=t(11026),y=t(64649),C=t(7510);function k(e,n,t){void 0===n&&(n={}),void 0===t&&(t=[]),t.forEach((function(t){var o=t,r=(0,f.useState)(n[o]),i=(0,g.Z)(r,2),a=i[0],u=i[1];(0,f.useEffect)((function(){if(e&&void 0!==n[o]&&n[o]!==a){var t=e.getStatus();e.setStatus((0,w.Z)({},t,(0,y.Z)({},o,n[o]))),u(n[o])}}),[e,n[o]])}))}function E(e,n){var t=(0,f.useState)(n),o=(0,g.Z)(t,2),r=o[0],i=o[1];(0,f.useEffect)((function(){e&&void 0!==n&&(n?e.show&&e.show():e.hide&&e.hide(),n!==r&&i(n))}),[e,n])}function x(e){var n=(0,f.useRef)();return(0,f.useEffect)((function(){n.current=e})),n.current}function b(e,n,t,o){void 0===n&&(n={}),void 0===t&&(t=[]),t.forEach((function(t){var o=t,r=n[o];(0,f.useEffect)((function(){if(e){var n=t.toLocaleLowerCase().replace(/^on/,"");return r&&n&&e.on(n,r),function(){n&&r&&e.off(n,r)}}}),[e,n[o]])}))}function Z(e,n,t){void 0===e&&(e={}),void 0===n&&(n={}),void 0===t&&(t=[]),t.forEach((function(t){var o="set"+t,r=""+t.charAt(0).toLowerCase()+t.slice(1),i=(0,f.useState)(n[r]),a=(0,g.Z)(i,2),u=a[0],c=a[1];(0,f.useEffect)((function(){e&&void 0!==n[r]&&n[r]!==u&&e[o]&&"function"===typeof e[o]&&(e[o](n[r]),c(n[r]))}),[e,n[r]])}))}var S=function(){var e=l(c().mark((function e(){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("react-dom/client");case 3:n=e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.abrupt("return",n);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}();function A(e){var n=(0,f.useRef)(document.createElement("div")),t=(0,f.useCallback)(l(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.ReactDOM){e.next=4;break}e.t0=window.ReactDOM,e.next=7;break;case 4:return e.next=6,S();case 6:e.t0=e.sent;case 7:return e.abrupt("return",e.t0);case 8:case"end":return e.stop()}}),e)}))),[]),o=(0,f.useRef)();return(0,f.useLayoutEffect)((function(){l(c().mark((function e(){var r,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0=C;case 5:r=e.t0,i=Reflect.has(r,"createRoot"),o.current=i?r.createRoot(n.current):null;case 8:case"end":return e.stop()}}),e)})))()}),[]),(0,f.useLayoutEffect)((function(){o.current?o.current.render((0,h.jsx)(f.Fragment,{children:e.children})):C&&C.render((0,h.jsx)(f.Fragment,{children:e.children}),n.current)}),[e.children,n.current,o.current]),n.current}var T=function(e){void 0===e&&(e={});var n=(0,f.useState)(),t=(0,g.Z)(n,2),o=t[0],r=t[1];return(0,f.useEffect)((function(){var n;if(AMap&&!o)return AMap.plugin(["AMap.AutoComplete"],(function(){n=new AMap.AutoComplete(e),r(n)})),function(){n&&r(void 0)}}),[]),Z(o,e,["Type","City","CityLimit"]),b(o,e,["onChoose","onSelect"]),{autoComplete:o,setAutoComplete:r}},O=f.forwardRef((function(e,n){var t=T(e).autoComplete;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{autoComplete:t})})),null})),R=t(30808),j={map:void 0,AMap:void 0,container:void 0},D=function(e,n){return(0,w.Z)({},e,n)},I=f.createContext({state:j,dispatch:function(){return null}});function L(){var e=(0,f.useContext)(I),n=e.state,t=e.dispatch;return(0,w.Z)({},n,{state:n,dispatch:t})}var P=function(e){void 0===e&&(e={});var n=(0,w.Z)({},e),t=(0,f.useState)(),o=(0,g.Z)(t,2),r=o[0],i=o[1],a=(0,f.useState)(e.zoom||15),u=(0,g.Z)(a,2),c=u[0],s=u[1],l=(0,f.useState)(e.container),d=(0,g.Z)(l,2),p=d[0],v=d[1],h=(0,f.useContext)(I).dispatch;return(0,f.useEffect)((function(){if(p&&!r&&AMap){p.className=p.className+" react-amap-wapper";var e=new AMap.Map(p,(0,w.Z)({zoom:c},n));i(e)}return function(){r&&(r.clearInfoWindow(),r.clearLimitBounds(),r.clearMap(),r.destroy(),i(void 0))}}),[p,r]),(0,f.useEffect)((function(){return r&&p&&h({map:r,container:p,AMap:AMap}),function(){h({map:void 0,container:void 0,AMap:void 0})}}),[r,p]),(0,f.useMemo)((function(){r&&"number"===typeof e.zoom&&c!==e.zoom&&e.zoom>=2&&e.zoom<=20&&(s(e.zoom),r.setZoom(e.zoom))}),[c,e.zoom]),(0,f.useMemo)((function(){e.center&&r&&r.setCenter(e.center)}),[r,e.center]),k(r,e,["dragEnable","zoomEnable","jogEnable","pitchEnable","rotateEnable","animateEnable","keyboardEnable"]),Z(r,e,["Zoom","LabelzIndex","Layers","City","Bounds","LimitBounds","Lang","Rotation","DefaultCursor","MapStyle","Features","DefaultLayer","Pitch"]),b(r,e,["onMouseMove","onZoomChange","onMapMove","onMouseWheel","onZoomStart","onMouseOver","onMouseOut","onDblClick","onClick","onZoomEnd","onMoveEnd","onMouseUp","onMouseDown","onRightClick","onMoveStart","onDragStart","onDragging","onDragEnd","onHotspotOut","onHotspotOver","onTouchStart","onComplete","onHotspotClick","onTouchMove","onTouchEnd","onResize"]),{map:r,setMap:i,zoom:c,setZoom:s,container:p,setContainer:v}},_=["className","children"];function H(e){var n=(0,f.useReducer)(D,j),t=(0,g.Z)(n,2),o=t[0],r=t[1];return(0,h.jsx)(I.Provider,{value:(0,w.Z)({},o,{state:o,dispatch:r}),children:e.children})}var z=(0,f.forwardRef)((function(e,n){var t=e.className,o=e.children,r=(0,R.Z)(e,_),i=(0,f.useReducer)(D,j),a=(0,g.Z)(i,2),u=a[0],c=a[1],s=(0,f.useRef)(null),l=P((0,w.Z)({container:r.container||s.current},r)),d=l.setContainer,p=l.container,v=l.map;(0,f.useEffect)((function(){return d(s.current)}),[s.current]),(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},r,{map:v,AMap:AMap,container:r.container||s.current})}),[v]);var m=f.Children.toArray(o);return(0,f.useEffect)((function(){v&&c({map:v,container:s.current,AMap:AMap})}),[v]),(0,h.jsxs)(I.Provider,{value:(0,w.Z)({},u,{state:u,dispatch:c}),children:[!r.container&&(0,h.jsx)("div",{ref:s,className:"react-amap-wapper "+t,style:(0,w.Z)({fontSize:1,width:"100%",height:"100%"},r.style)}),AMap&&v&&"function"===typeof o&&o({AMap:AMap,map:v,container:p}),AMap&&v&&m.map((function(e,n){return(0,f.isValidElement)(e)?"string"===typeof e?(0,f.cloneElement)((0,h.jsx)(f.Fragment,{children:e}),{key:n}):e.type&&"string"===typeof e.type?(0,f.cloneElement)(e,{key:n}):(0,f.cloneElement)(e,(0,w.Z)({},e.props,{AMap:AMap,map:v,container:p,key:n})):null}))]})})),B=["visiable"],N=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,B),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.BezierCurve((0,w.Z)({},t));return o.add(e),u(e),function(){e&&(o&&o.removeLayer(e),u(void 0))}}}),[o]),E(a,n),Z(a,e,["Options","Path","ExtData","ExtData"]),b(a,e,["onHide","onShow","onDblClick","onMouseOver","onMouseUp","onMouseDown","onclick","onTouchEnd","onTouchMove","onTouchStart","onRightClick","onMouseOut"]),{bezierCurve:a,setBezierCurve:u}},U=f.forwardRef((function(e,n){var t=N(e).bezierCurve;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{bezierCurve:t})})),null})),W=["visiable"],F=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,W),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.Circle((0,w.Z)({},t));o.add(e),u(e)}return function(){a&&(o&&o.remove(a),u(void 0))}}),[o]),E(a,n),Z(a,e,["Center","Raius","Options","ExtData"]),b(a,e,["onHide","onShow","onRightClick","onClick","onTouchEnd","onDblClick","onTouchMove","onTouchStart","onMouseOut","onMouseOver","onMouseUp","onMouseDown"]),{circle:a,setCircle:u}},G=f.forwardRef((function(e,n){var t=F(e).circle;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{circle:t})})),null})),Q=["visiable"],q=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,Q),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.CircleMarker((0,w.Z)({},t));return o.add(e),u(e),function(){e&&(o&&o.removeLayer(e),u(void 0))}}}),[o]),E(a,n),Z(a,e,["Center","Raius","zIndex","Bubble","Cursor","StrokeColor","StrokeOpacity","StrokeWeight","FillColor","FillOpacity","Draggable","ExtData"]),b(a,e,["onHide","onShow","onMouseover","onTouchend","onClick","onTouchmove","onRightclick","onMouseup","onMouseout","onTouchstart","onMousedown","onDblclick"]),{circleMarker:a,setCircleMarker:u}},V=f.forwardRef((function(e,n){var t=q(e).circleMarker;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{circleMarker:t})})),null})),Y=["position"],$=function(e){void 0===e&&(e={});var n=e.position,t=(0,R.Z)(e,Y),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.ContextMenu((0,w.Z)({},t));u(e);var r=function(t){return e.open(o,n||t.lnglat)};return o.on("rightclick",r),function(){e&&(o.off("rightclick",r),o&&o.removeLayer(e),u(void 0))}}}),[o]),b(a,e,["onOpen","onClose"]),{contextMenu:a,setContextMenu:u}},J=function(){},K=f.forwardRef((function(e,n){var t=$(e).contextMenu;(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{contextMenu:t})}));var o=f.Children.toArray(e.children);return(0,h.jsx)(f.Fragment,{children:AMap&&t&&o.map((function(n,o){return f.isValidElement(n)?f.cloneElement(n,(0,w.Z)({},n.props,{AMap:AMap,map:e.map,contextMenu:t,key:o})):null}))})}));function X(e){void 0===e&&(e={});var n=e,t=n.position,o=n.visiable,r=n.offset,i=(0,f.useState)(),a=(0,g.Z)(i,2),u=a[0],c=a[1],s=L().map;return(0,f.useEffect)((function(){var e;if(s&&!u)return s.plugin(["AMap.ControlBar","AMap.HawkEye"],(function(){e=new AMap.ControlBar({offset:r,position:t}),s.addControl(e),c(e)})),function(){e&&s.removeControl(e)}}),[s]),E(u,o),{controlBarControl:u,setControlBarControl:c}}K.Item=function(e){void 0===e&&(e={});var n=e,t=n.text,o=void 0===t?"":t,r=n.onClick,i=void 0===r?J:r;return(0,f.useEffect)((function(){return e.contextMenu&&e.contextMenu.addItem(o,i,1),function(){e.contextMenu&&e.contextMenu.removeItem(o,i)}}),[e.contextMenu,e.text,e.onClick]),null};var ee=f.forwardRef((function(e,n){var t=X(e).controlBarControl;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{controlBarControl:t})}),[t]),null})),ne=["visiable"],te=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,ne),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.Ellipse((0,w.Z)({},t));return o.add(e),u(e),function(){e&&(o&&o.removeLayer(e),u(void 0))}}}),[o]),E(a,n),Z(a,e,["Center","Radius","Options","ExtData"]),b(a,e,["onHide","onShow","onClick","onDblClick","onRightClick","onMouseOut","onMouseOver","onMouseUp","onMouseDown","onTouchEnd","onTouchMove","onTouchStart"]),{ellipse:a,setEllipse:u}},oe=f.forwardRef((function(e,n){var t=te(e).ellipse;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{ellipse:t})})),null})),re=["type","onComplete","onError"],ie=function(e){void 0===e&&(e={});var n=e,t=n.type,o=void 0===t?"position":t,r=n.onComplete,i=n.onError,a=(0,R.Z)(e,re),u=(0,f.useState)(),c=(0,g.Z)(u,2),s=c[0],l=c[1],d=L().map;function p(e,n){"complete"===e&&r?r(n):i&&i(n)}return(0,f.useEffect)((function(){var e;if(AMap&&!s)return AMap.plugin(["AMap.Geolocation"],(function(){e=new AMap.Geolocation((0,w.Z)({},a)),l(e)})),function(){e&&l(void 0)}}),[AMap]),(0,f.useMemo)((function(){if(/^(position|cityInfo)$/.test(o)){var e="position"===o?"getCurrentPosition":"getCityInfo";s&&d?(s[e](p),d.addControl(s)):s&&s[e](p)}}),[s]),{geolocation:s,setGeolocation:l}},ae=f.forwardRef((function(e,n){var t=ie(e).geolocation;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{geolocation:t})})),null})),ue=["offset","visiable"];function ce(e){void 0===e&&(e={});var n=(0,f.useState)(),t=(0,g.Z)(n,2),o=t[0],r=t[1],i=e,a=i.offset,u=i.visiable,c=(0,R.Z)(e,ue),s=L().map;return(0,f.useEffect)((function(){var e;if(s&&!o)return s.plugin(["AMap.HawkEye"],(function(){e=new AMap.HawkEye((0,w.Z)({offset:a},c)),s.addControl(e),r(e)})),function(){e&&s&&(s.removeLayer(e),r(void 0))}}),[s]),E(o,u),{hawkEyeControl:o,setHawkEyeControl:r}}var se=f.forwardRef((function(e,n){var t=ce(e).hawkEyeControl;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{hawkEyeControl:t})}),[t]),null})),le=["visiable","position"],fe=function(e){void 0===e&&(e={});var n=e,t=n.visiable,o=n.position,r=(0,R.Z)(e,le),i=L().map,a=(0,f.useState)(t),u=(0,g.Z)(a,2),c=u[0],s=u[1],l=(0,f.useState)(),d=(0,g.Z)(l,2),p=d[0],v=d[1],h=A({children:e.children});return(0,f.useEffect)((function(){if(AMap&&i&&!p){var n=i.getCenter();e.children&&(r.content=h);var t=new AMap.InfoWindow((0,w.Z)({},r,{position:o||n}));return v(t),c&&t.open(i,o||n),function(){t&&(i&&i.remove(t),v(void 0))}}}),[i]),(0,f.useEffect)((function(){p&&p.setContent(e.children?h:r.content||"")}),[e.children,h,r.content,p]),(0,f.useMemo)((function(){if(c!==t&&p&&i)if(s(t),t){var e=i.getCenter();p.open(i,o||e)}else p.close()}),[t,p]),(0,f.useEffect)((function(){if(i&&p&&t){var e=i.getCenter();p.open(i,o||e)}}),[o]),Z(p,e,["Content","Anchor","Size"]),b(p,e,["onOpen","onClose","onChange"]),{isOpen:c,setIsOpen:s,infoWindow:p,setInfoWindow:v}},de=f.forwardRef((function(e,n){var t=fe(e).infoWindow;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{infoWindow:t})})),null})),pe=["visiable","defaultType"];function ve(e){void 0===e&&(e={});var n=(0,f.useState)(),t=(0,g.Z)(n,2),o=t[0],r=t[1],i=e,a=i.visiable,u=i.defaultType,c=void 0===u?0:u,s=(0,R.Z)(e,pe),l=L().map;return(0,f.useEffect)((function(){var e;if(l&&!o)return l.plugin(["AMap.MapType"],(function(){e=new AMap.MapType((0,w.Z)({defaultType:c},s)),l.addControl(e),r(e)})),function(){e&&l.removeControl(e)}}),[l]),E(o,a),{mapTypeControl:o,setMapTypeControl:r}}var he=f.forwardRef((function(e,n){var t=ve(e).mapTypeControl;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{mapTypeControl:t})}),[t]),null})),me=["visiable","children"],Me=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,me),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1],c=A({children:e.children});return(0,f.useEffect)((function(){if(!a&&o){e.children&&(t.content=c);var n=new AMap.Marker((0,w.Z)({},t));o.add(n),u(n)}return function(){a&&(a.remove(),u(void 0))}}),[o,a]),(0,f.useEffect)((function(){a&&a.setContent(e.children?c:e.content||"")}),[e.children,c,e.content,a]),E(a,n),Z(a,e,["Path","Anchor","Offset","Animation","Clickable","Position","Angle","Label","zIndex","Icon","Draggable","Cursor","Content","Map","Title","Top","Shadow","Shape","ExtData"]),b(a,e,["onClick","onDblClick","onRightClick","onMouseMove","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onDragStart","onDragging","onDragEnd","onMoving","onMoveEnd","onMoveAlong","onTouchStart","onTouchMove","onTouchEnd"]),{marker:a,setMarker:u}},we=(0,f.forwardRef)((function(e,n){var t=Me(e).marker;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{marker:t})}),[t]),null})),ge=["visiable"],ye=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,ge),o=L().map,r=t||{},i=r.opacity,a=void 0===i?.8:i,u=r.zIndex,c=void 0===u?1111:u,s=r.style,l=r.data,d=(0,f.useState)(),p=(0,g.Z)(d,2),v=p[0],h=p[1];return(0,f.useEffect)((function(){if(AMap&&o&&!v){var e=s;e||(e=[{url:"https://webapi.amap.com/images/mass/mass0.png",anchor:new AMap.Pixel(6,6),size:new AMap.Size(11,11),zIndex:3},{url:"https://webapi.amap.com/images/mass/mass1.png",anchor:new AMap.Pixel(4,4),size:new AMap.Size(7,7),zIndex:2},{url:"https://webapi.amap.com/images/mass/mass2.png",anchor:new AMap.Pixel(3,3),size:new AMap.Size(5,5),zIndex:1}]);var n=new AMap.MassMarks(l||[],{opacity:a,zIndex:c,style:e});return h(n),n.setMap(o),function(){n&&(n.clear(),h(void 0))}}}),[o]),E(v,n),Z(v,e,["Map","Data","Style","Opacity","zIndex","Zooms"]),b(v,e,["onClick","onDblClick","onMouseMove","onMouseOut","onMouseUp","onMouseDown","onMouseOver","onTouchStart","onTouchEnd"]),{massMarks:v,setMassMarks:h}},Ce=f.forwardRef((function(e,n){var t=ye(e).massMarks;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{massMarks:t})}),[t,e]),null})),ke=["visiable"],Ee=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,ke),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.Polygon((0,w.Z)({},t));o.add(e),u(e)}}),[o]),E(a,n),Z(a,e,["ExtData","ExtData"]),b(a,e,["onClick","onDblClick","onRightClick","onHide","onShow","onMouseDown","onMouseUp","onMouseOver","onMouseOut","onChange","onTouchStart","onTouchMove","onTouchEnd"]),{polygon:a,setPolygon:u}},xe=(0,f.forwardRef)((function(e,n){var t=e.children,o=Ee(e).polygon;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{polygon:o})})),t&&(0,f.isValidElement)(t)?(0,f.cloneElement)(t,(0,w.Z)({},e,{polygon:o})):null})),be=(0,f.forwardRef)((function(e,n){var t=e.active,o=e.polygon,r=L().map,i=(0,f.useState)(!0),a=(0,g.Z)(i,2),u=a[0],c=a[1],s=(0,f.useState)(),l=(0,g.Z)(s,2),d=l[0],p=l[1];return(0,f.useEffect)((function(){if(o&&r&&!d&&AMap&&AMap.PolygonEditor){var e=new AMap.PolygonEditor(r,o);o.on("hide",(function(){return c(!1)})),o.on("show",(function(){return c(!0)})),p(e)}}),[o]),(0,f.useEffect)((function(){d&&(u&&!t?d.close():u&&t?d.open():!u&&t&&d.close())}),[t,u]),b(d,e,["onEnd","onAddnode","onAdjust","onMove","onAdd"]),null})),Ze=["visiable"];function Se(e){void 0===e&&(e={});var n=(0,f.useState)(),t=(0,g.Z)(n,2),o=t[0],r=t[1],i=e.visiable,a=(0,R.Z)(e,Ze),u=L().map;return(0,f.useEffect)((function(){if(u&&!o){var e=new AMap.Polyline((0,w.Z)({},a));return u.add(e),r(e),function(){e&&(u&&u.removeLayer(e),r(void 0))}}}),[u]),E(o,i),Z(o,e,["Path","Options","Map","ExtData"]),b(o,e,["onHide","onShow","onMouseOut","onChange","onRightClick","onDblClick","onMouseDown","onClick","onMouseOver","onTouchEnd","onTouchMove","onTouchStart","onMouseUp"]),{polyline:o,setPolyline:r}}var Ae=f.forwardRef((function(e,n){var t=Se(e).polyline;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{polyline:t})}),[t]),null})),Te=["visiable"],Oe=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,Te),o=L().map,r=(0,f.useState)(),i=(0,g.Z)(r,2),a=i[0],u=i[1];return(0,f.useEffect)((function(){if(AMap&&o&&!a){var e=new AMap.Rectangle((0,w.Z)({},t));return o.add(e),u(e),function(){e&&(o&&o.removeLayer(e),u(void 0))}}}),[o]),E(a,n),Z(a,e,["Bounds","Options","Map","ExtData"]),b(a,e,["onHide","onShow","onClick","onDblClick","onRightClick","onMouseOut","onMouseOver","onMouseUp","onMouseDown","onTouchEnd","onTouchMove","onTouchStart"]),{rectangle:a,setRectangle:u}},Re=f.forwardRef((function(e,n){var t=Oe(e).rectangle;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{rectangle:t})})),null}));function je(e){void 0===e&&(e={});var n=(0,f.useState)(),t=(0,g.Z)(n,2),o=t[0],r=t[1],i=e,a=i.position,u=i.visiable,c=i.offset,s=L().map;return(0,f.useEffect)((function(){var e;if(s&&!o)return s.plugin(["AMap.Scale"],(function(){e=new AMap.Scale({offset:c,position:a}),s.addControl(e),r(e)})),function(){e&&s.removeControl(e)}}),[s]),E(o,u),{scaleControl:o,setScaleControl:r}}var De=f.forwardRef((function(e,n){var t=je(e).scaleControl;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{scaleControl:t})}),[t]),null})),Ie=["visiable"],Le=function(e){void 0===e&&(e={});var n=e.visiable,t=(0,R.Z)(e,Ie),o=(0,f.useState)(),r=(0,g.Z)(o,2),i=r[0],a=r[1],u=L().map,c=A({children:e.children});return(0,f.useEffect)((function(){if(AMap&&u&&!i){e.children&&(t.text=c.innerHTML);var n=new AMap.Text((0,w.Z)({},t));return u.add(n),a(n),function(){n&&(n.remove(),a(void 0))}}}),[u]),(0,f.useEffect)((function(){i&&i.setText(e.children?c.innerHTML:e.text||"")}),[e.children,e.text,c,i]),E(i,n),Z(i,e,["Style","Title","Clickable","Draggable","Map","Position","Offset","Angle","zIndex","Top","Cursor","ExtData"]),b(i,e,["onMoving","onTouchMove","onTouchEnd","onMoveaLong","onTouchStart","onMoveEnd","onClick","onDblClick","onRightClick","onMouseMove","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onDragStart","onDragEnd","onDragging"]),{text:i,setText:a}},Pe=(0,f.forwardRef)((function(e,n){var t=Le((0,w.Z)({},e)).text;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{text:t})})),null}));function _e(e){void 0===e&&(e={});var n=(0,f.useState)(),t=(0,g.Z)(n,2),o=t[0],r=t[1],i=e,a=i.position,u=i.visiable,c=i.offset,s=L().map;return(0,f.useEffect)((function(){var e;if(s&&!o)return s.plugin(["AMap.ToolBar"],(function(){e=new AMap.ToolBar({offset:c,position:a}),s.addControl(e),r(e)})),function(){e&&s.removeControl(e)}}),[s]),E(o,u),{toolBarControl:o,setToolBarControl:r}}var He=f.forwardRef((function(e,n){var t=_e(e).toolBarControl;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{toolBarControl:t})}),[t]),null})),ze=function(e){void 0===e&&(e={});var n=e,t=n.city,o=void 0===t?"":t,r=n.type,i=void 0===r?"live":r,a=n.onComplete,u=n.onError,c=(0,f.useState)(),s=(0,g.Z)(c,2),l=s[0],d=s[1],p="live"===i?"getLive":"getForecast";return(0,f.useEffect)((function(){var e;if(AMap&&!l)return AMap.plugin(["AMap.Weather"],(function(){e=new AMap.Weather,d(e)})),function(){e&&d(void 0)}}),[]),(0,f.useMemo)((function(){var e;l&&o&&i&&(e=l,i&&o&&/^(live|forecast)$/.test(i)&&e[p](o,(function(e,n){e&&u?u(e):n&&a&&a(n)})))}),[l,o,i]),{weather:l,setWeather:d}},Be=f.forwardRef((function(e,n){var t=ze(e).weather;return(0,f.useImperativeHandle)(n,(function(){return(0,w.Z)({},e,{weather:t})})),null}))}}]);
+//# sourceMappingURL=2515.52640890.chunk.js.map
\ No newline at end of file
diff --git a/static/js/2515.48a74226.chunk.js.map b/static/js/2515.52640890.chunk.js.map
similarity index 99%
rename from static/js/2515.48a74226.chunk.js.map
rename to static/js/2515.52640890.chunk.js.map
index aa6d9cee8..10f3059b1 100644
--- a/static/js/2515.48a74226.chunk.js.map
+++ b/static/js/2515.52640890.chunk.js.map
@@ -1 +1 @@
-{"version":3,"file":"static/js/2515.48a74226.chunk.js","mappings":"4FAAAA,EAAOC,QAAU,EAAjB,Q,kBCAA,SAASC,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,EAEPF,EAAoBK,KAAO,WAAa,MAAO,IAC/CL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,MACzBT,EAAOC,QAAUC,G,qPCGF,SAASQ,EAAT,GAAqF,IAArEC,EAAoE,EAApEA,QAASC,EAA2D,EAA3DA,aAAcC,EAA6C,EAA7CA,YAAaC,EAAgC,EAAhCA,QAAYC,GAAoB,YAC3FC,GAAuB,UAAQD,GAyDrC,OAxDID,IACFE,EAAMC,cAAgB,CACpBC,MAAM,MAAD,OAAQP,EAAR,WACLQ,cAAe,CAAC,OAChBC,IAAKJ,EAAMV,MAAQ,IAAIe,QAAQ,UAAW,wCAC1CC,KAAM,mDACNC,aAAa,yBAAD,OAA2BZ,EAA3B,qBACZa,YAAY,yLAAD,OAA2Lb,EAA3L,qFAGXE,IACFG,EAAMS,kBAAoB,CACxBC,MAAO,CACL,sBAAuB,CACrBC,QAAQ,iKAQV,oBAAqB,CACnBA,QAAQ,8BAEV,eAAgB,CACdA,SAAUX,EAAMV,MAAQ,IAAIe,QAAQ,UAAW,yCAEjD,YAAa,CACXM,QAAQ,qJAEV,eAAgB,CACdA,QAAS,CACPC,KAAM,WACNC,YAAY,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components/Markdown/Code.tsx","webpack://website/./src/components/Footer/index.module.less?18ac","components/Footer/index.tsx","webpack://website/./src/components/Markdown/index.module.less?6e49","components/Markdown/index.tsx","../../node_modules/regenerator-runtime/runtime.js","../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","../../packages/require-script/src/index.ts","../../packages/api-loader/src/index.tsx","../../packages/utils/src/index.tsx","../../packages/auto-complete/src/useAutoComplete.tsx","../../packages/auto-complete/src/index.tsx","../../packages/map/src/context.ts","../../packages/map/src/useMap.tsx","../../packages/map/src/index.tsx","../../packages/bezier-curve/src/useBezierCurve.tsx","../../packages/bezier-curve/src/index.tsx","../../packages/circle/src/useCircle.tsx","../../packages/circle/src/index.tsx","../../packages/circle-marker/src/useCircleMarker.tsx","../../packages/circle-marker/src/index.tsx","../../packages/context-menu/src/useContextMenu.tsx","../../packages/context-menu/src/Item.tsx","../../packages/context-menu/src/index.tsx","../../packages/control-bar-control/src/useControlBarControl.tsx","../../packages/control-bar-control/src/index.tsx","../../packages/ellipse/src/useEllipse.tsx","../../packages/ellipse/src/index.tsx","../../packages/geolocation/src/useGeolocation.tsx","../../packages/geolocation/src/index.tsx","../../packages/hawk-eye-control/src/useHawkEyeControl.tsx","../../packages/hawk-eye-control/src/index.tsx","../../packages/info-window/src/useInfoWindow.tsx","../../packages/info-window/src/index.tsx","../../packages/map-type-control/src/useMapTypeControl.tsx","../../packages/map-type-control/src/index.tsx","../../packages/marker/src/useMarker.tsx","../../packages/marker/src/index.tsx","../../packages/mass-marks/src/useMassMarks.tsx","../../packages/mass-marks/src/index.tsx","../../packages/polygon/src/usePolygon.tsx","../../packages/polygon/src/index.tsx","../../packages/polygon-editor/src/index.tsx","../../packages/polyline/src/usePolyline.tsx","../../packages/polyline/src/index.tsx","../../packages/rectangle/src/useRectangle.tsx","../../packages/rectangle/src/index.tsx","../../packages/scale-control/src/useScaleControl.tsx","../../packages/scale-control/src/index.tsx","../../packages/text/src/useText.tsx","../../packages/text/src/index.tsx","../../packages/tool-bar-control/src/useToolBarControl.tsx","../../packages/tool-bar-control/src/index.tsx","../../packages/weather/src/useWeather.tsx","../../packages/weather/src/index.tsx"],"sourcesContent":["module.exports = require(\"regenerator-runtime\");\n","function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 80363;\nmodule.exports = webpackEmptyContext;","import React from 'react';\nimport CodePreview, { CodePreviewProps } from '@uiw/react-code-preview';\n\nexport interface CodeProps extends CodePreviewProps {\n version: string;\n code?: string;\n codePen?: string;\n codeSandbox?: boolean;\n dependencies?: any;\n}\n\nexport default function Code({ version, dependencies, codeSandbox, codePen, ...other }: CodeProps) {\n const props: CodePreviewProps = { ...other };\n if (codePen) {\n props.codePenOption = {\n title: `uiw${version} - demo`,\n includeModule: ['uiw'],\n js: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n html: '
',\n css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,\n js_external: `https://unpkg.com/react@17.x/umd/react.development.js;https://unpkg.com/react-dom@17.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.1.3/index.js`,\n };\n }\n if (codeSandbox) {\n props.codeSandboxOption = {\n files: {\n 'sandbox.config.json': {\n content: `{\n \"template\": \"node\",\n \"container\": {\n \"startScript\": \"start\",\n \"node\": \"14\"\n }\n }`,\n },\n 'public/index.html': {\n content: `
`,\n },\n 'src/index.js': {\n content: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n },\n '.kktrc.js': {\n content: `import lessModules from \"@kkt/less-modules\";\\nexport default (conf, env, options) => {\\nconf = lessModules(conf, env, options);\\nreturn conf;\\n};`,\n },\n 'package.json': {\n content: {\n name: 'uiw-demo',\n description: `uiw v${version} - demo`,\n dependencies: {\n react: '^17.0.2',\n 'react-dom': '^17.0.2',\n '@uiw/react-amap': 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '~7.1.1',\n kkt: '~7.1.5',\n },\n license: 'MIT',\n scripts: {\n start: 'kkt start',\n build: 'kkt build',\n test: 'kkt test --env=jsdom',\n },\n browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'],\n },\n },\n },\n };\n }\n return ;\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"footer\":\"index_footer__Fp4ea\"};","import styles from './index.module.less';\n\ntype FooterProps = {\n editorUrl?: string;\n};\n\nconst Footer = (props: FooterProps) => {\n const { editorUrl } = props || {};\n return (\n \n );\n};\n\nexport default Footer;\n","// extracted by mini-css-extract-plugin\nexport default {\"markdown\":\"index_markdown__hcQCp\"};","import { Component, Fragment } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport pkg from '@uiw/react-amap/package.json';\nimport Code from './Code';\nimport Footer from '../Footer';\nimport styles from './index.module.less';\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n}\n\nconst getCodeStr = (data: any[] = [], code: string = '') => {\n data.forEach((node) => {\n if (node.type === 'text') {\n code += node.value;\n } else if (node.children && Array.isArray(node.children)) {\n code += getCodeStr(node.children);\n }\n });\n return code;\n};\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n dependencies?: any;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default || str,\n });\n });\n }\n }\n render() {\n return (\n \n \n * ```\n * 参数用英文逗号隔开\n *\n * bordered 边框\n * bgWhite 设置代码预览背景白色,否则为格子背景。\n * noCode 不显示代码编辑器。\n * noPreview 不显示代码预览效果。\n * noScroll 预览区域不显示滚动条。\n * codePen 显示 Codepen 按钮,要特别注意 包导入的问题,实例中的 import 主要用于 Codepen 使用。\n */\n code: ({ inline, node, ...props }) => {\n const { noPreview, noScroll, bgWhite, noCode, codeSandbox, codePen } = props as any;\n if (inline) {\n return
;\n }\n const config = { noPreview, noScroll, bgWhite, noCode, codeSandbox, codePen } as any;\n if (Object.keys(config).filter((name) => config[name] !== undefined).length === 0) {\n return
;\n }\n return (\n
\n );\n },\n }}\n />\n \n \n );\n }\n}\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = GeneratorFunctionPrototype;\n define(Gp, \"constructor\", GeneratorFunctionPrototype);\n define(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction);\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n });\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n define(Gp, iteratorSymbol, function() {\n return this;\n });\n\n define(Gp, \"toString\", function() {\n return \"[object Generator]\";\n });\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, in modern engines\n // we can explicitly access globalThis. In older engines we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","const _importedScript: { [src: string]: true } = {};\n\n/**\n * load dependency by css tag\n */\nexport function requireCss(src: string, id: string = '_react_amap_css'): Promise {\n const headElement = document && (document.head || document.getElementsByTagName('head')[0]);\n const dom = document.getElementById(id);\n return new Promise((resolve, reject) => {\n if (!document || src in _importedScript || dom) {\n resolve();\n return;\n }\n const script = document.createElement('link');\n script.type = 'text/css';\n script.rel = 'stylesheet';\n script.id = id;\n script.href = src;\n script.onerror = (err) => {\n headElement.removeChild(script);\n reject(new URIError(`The css ${src} is no accessible.`));\n };\n script.onload = () => {\n _importedScript[src] = true;\n resolve();\n };\n headElement.appendChild(script);\n });\n}\n\n/**\n * load dependency by script tag\n */\nexport function requireScript(src: string, id: string = '_react_amap_plugin'): Promise {\n const headElement = document && (document.head || document.getElementsByTagName('head')[0]);\n const dom = document.getElementById(id);\n return new Promise((resolve, reject) => {\n if (!document || src in _importedScript || dom) {\n resolve();\n return;\n }\n const script = document.createElement('script');\n script.type = 'text/javascript';\n script.id = id;\n script.async = true;\n script.defer = true;\n script.src = src;\n script.onerror = (err) => {\n headElement.removeChild(script);\n reject(new URIError(`The Script ${src} is no accessible.`));\n };\n script.onload = () => {\n _importedScript[src] = true;\n resolve();\n };\n headElement.appendChild(script);\n });\n}\n","/// \n\nimport React, { Component, PropsWithChildren } from 'react';\nimport { requireScript } from '@uiw/react-amap-require-script';\n\nexport type APILoaderConfig = PropsWithChildren<{\n /**\n * akay 密钥\n * 您需先[申请密钥(ak)](https://lbs.amap.com/dev/key/app)。开发文档说明地址:https://lbs.amap.com/api/javascript-api/guide/abc/prepare\n *\n * 1. 首先,[注册开发者账号](https://lbs.amap.com/dev/id/newuser),成为高德开放平台开发者\n * 2. 登陆之后,在进入「应用管理」 页面「创建新应用」\n * 3. 为应用[添加 Key](https://lbs.amap.com/dev/key/app),「服务平台」一项请选择「 Web 端 ( JSAPI ) 」\n *\n */\n akay: string;\n /**\n * SDK 包版本\n * @default 1.4.15\n */\n version?: string;\n /**\n * 协议,默认是根据当前网站协议的\n */\n protocol?: 'http' | 'https';\n /**\n * 请求 SDK 的前半部分\n * https://webapi.amap.com/maps?v=1.4.15&key=您申请的key值\n * @default webapi.amap.com/maps\n */\n hostAndPath?: string;\n /**\n * JSONP 回调函数\n */\n callbackName?: string;\n /**\n * 加载一个或者多个插件\n * @example `AMap.ToolBar,AMap.Driving`\n */\n plugin?: string;\n}>\n\nexport function delay(time: number): Promise {\n return new Promise((resolve, reject) => {\n window.setTimeout(resolve, time);\n });\n}\n\nexport interface APILoaderProps extends APILoaderConfig {\n /**\n * 用于展示加载中或错误状态\n */\n fallback?: (error?: Error) => React.ReactNode;\n}\n\ninterface State {\n loaded: boolean;\n error?: Error;\n}\n\nconst DEFAULT_RETRY_TIME = 3;\n\n/**\n * APILoader 用于加载百度地图依赖\n */\nexport class APILoader extends Component {\n public static defaultProps = {\n protocol: /^file:/.test(window.location.protocol) ? 'https' : window.location.protocol,\n akay: '',\n hostAndPath: 'webapi.amap.com/maps',\n version: '2.0',\n callbackName: 'load_amap_sdk',\n plugin: '',\n };\n\n private isMountedOk: boolean = false;\n\n /**\n * 全局可能存在多个 Loader 同时渲染, 但是只能由一个负责加载\n */\n private static waitQueue: Array<[Function, Function]> = [];\n public state: State = {\n loaded: !!window.AMap,\n };\n\n public constructor(props: APILoaderProps) {\n super(props);\n if (props.akay === null) {\n throw new TypeError('AMap: akay is required');\n }\n }\n\n public componentDidMount() {\n this.isMountedOk = true;\n const { callbackName } = this.props;\n if (window.AMap == null) {\n if (window[callbackName as any]) {\n APILoader.waitQueue.push([this.finish, this.handleError]);\n return;\n }\n this.loadMap();\n }\n }\n\n componentWillUnmount() {\n this.isMountedOk = false;\n }\n\n public render() {\n if (this.state.loaded) {\n return this.props.children;\n }\n if (this.props.fallback) {\n return this.props.fallback(this.state.error);\n }\n if (this.state.error) {\n return {this.state.error.message}
;\n }\n return null;\n }\n\n private getScriptSrc() {\n const cfg = this.props;\n let protocol = (cfg.protocol || window.location.protocol) as APILoaderConfig['protocol'];\n if (protocol!.indexOf(':') === -1) {\n protocol += ':';\n }\n\n let plugin = '';\n if (cfg.plugin) {\n plugin = `&plugin=${cfg.plugin}`;\n }\n\n return `${protocol}//${cfg.hostAndPath}?v=${cfg.version}&key=${cfg.akay}&callback=${cfg.callbackName}${plugin}`;\n }\n /**\n * load BaiduMap in script tag\n */\n private async loadMap() {\n const { callbackName } = this.props;\n const src = this.getScriptSrc();\n (window as any)[callbackName as any] = () => {\n // flush queue\n const queue = APILoader.waitQueue;\n APILoader.waitQueue = [];\n queue.forEach((task) => task[0]());\n this.finish();\n };\n\n for (let i = 0; i < DEFAULT_RETRY_TIME; i++) {\n try {\n await requireScript(src);\n break;\n } catch (error: any) {\n if (i === DEFAULT_RETRY_TIME - 1) {\n const err = new Error(`Failed to load AMap: ${error.message}`);\n // flush queue\n const queue = APILoader.waitQueue;\n APILoader.waitQueue = [];\n queue.forEach((task) => task[1](err));\n this.handleError(err);\n return;\n }\n await delay(i * 1000);\n }\n }\n }\n\n private handleError = (error: Error) => {\n if (this.isMountedOk) {\n this.setState({ error });\n }\n };\n\n private finish = () => {\n if (this.isMountedOk) {\n this.setState({\n loaded: true,\n });\n }\n };\n}\n","/// \nimport ReactDOM from 'react-dom';\nimport React, { Fragment, useEffect, useState, useRef, useLayoutEffect, useCallback } from 'react';\n\n/**\n * 对实例有 setStatus 更改状态的处理\n * @param instance\n * @param props\n * @param propsName\n */\nexport function useSetStatus any; setStatus: (opt: any) => void }, F = {}>(\n instance: T,\n props = {} as F,\n propsName: string[] = [],\n) {\n propsName.forEach((name) => {\n const eName = name as keyof F;\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const [state, setState] = useState(props[eName]);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (instance && props[eName] !== undefined) {\n if (props[eName] !== state) {\n // map.setStatus({\n // dragEnable: true,\n // keyboardEnable: true,\n // doubleClickZoom: true,\n // zoomEnable: true,\n // rotateEnable: true\n // });\n const status = instance.getStatus();\n instance.setStatus({ ...status, [eName]: props[eName] });\n setState(props[eName]);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, props[eName]]);\n });\n}\n\n/**\n * 针对 Overlay 类型的组件,有公共的是否显示 对象处理\n * 通过参数 `visiable` 来控制执行 `show()` or `hide()`\n */\nexport function useVisiable void; hide: () => void }>(instance: T, visiable?: boolean) {\n const [state, setState] = useState(visiable);\n useEffect(() => {\n if (instance && visiable !== undefined) {\n if (visiable) {\n instance.show && instance.show();\n } else {\n instance.hide && instance.hide();\n }\n if (visiable !== state) {\n setState(visiable);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, visiable]);\n}\n\n/**\n * 获取上一轮的 props 或 state\n * How to get the previous props or state?\n * https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state\n * @example\n * ```js\n * function Counter() {\n * const [count, setCount] = useState(0);\n * const prevCount = usePrevious(count);\n * return Now: {count}, before: {prevCount} ;\n * }\n * ```\n */\nexport function usePrevious(value: T) {\n const ref = useRef();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n}\n\nexport type EventNameType = 'LowerCase';\n\n/**\n * 绑定事件\n * @param instance 实例对象\n * @param props 传递进来的 props\n * @param eventName 事件的名字,如,我们使用 `onClick` 事件,最终被转换成,`click` 绑定到实例中,`onDblClick` => `dblclick`\n *\n * @example\n * ```js\n * useEventProperties(marker!, props, [\n * 'onMouseMove', 'onZoomChange', 'onMapMove', 'onMouseWheel', 'onZoomStart'\n * ]);\n * ```\n */\nexport function useEventProperties, F>(\n instance: T,\n props = {} as F,\n eventName: string[] = [],\n type?: EventNameType,\n) {\n eventName.forEach((name) => {\n const eventName = name as keyof F;\n const eventHandle = props[eventName];\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (!instance) return;\n let eName = name.toLocaleLowerCase().replace(/^on/, '');\n if (eventHandle && eName) {\n instance.on(eName, eventHandle);\n }\n return () => {\n if (eName && eventHandle) {\n instance.off(eName, eventHandle);\n }\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, props[eventName]]);\n });\n}\n\n/**\n * 属性受控\n * @param instance 实例对象\n * @param props 属性值\n * @param propsName 多个属性设置的名称\n * @example\n * ```ts\n * useSettingProperties(polyline!, props, [\n * 'Path'\n * ]);\n * ```\n */\nexport function useSettingProperties(instance = {} as T, props = {} as F, propsName: string[] = []) {\n propsName.forEach((name) => {\n const eName = `set${name}` as keyof T;\n const vName = `${name.charAt(0).toLowerCase()}${name.slice(1)}` as keyof F;\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const [state, setState] = useState(props[vName]);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (instance && props[vName] !== undefined) {\n if (props[vName] !== state && instance[eName] && typeof instance[eName] === 'function') {\n (instance[eName] as any)(props[vName]);\n setState(props[vName]);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, props[vName]]);\n });\n}\n\nexport const getReactDOMClient = async () => {\n let _ReactDOM;\n try {\n // @ts-ignore\n _ReactDOM = await import(/* webpackIgnore: true */ 'react-dom/client');\n // 使用 require 解决 react v17 ts 报错问题\n // _ReactDOM = require('react-dom/client');\n } catch (err) {\n // console.warn(`如果使用的是 react-dom 小于v18的版本,可以忽略此警告:${err}`)\n }\n return _ReactDOM;\n};\n\n/**\n * react 17\n *\n * ```jsx\n * import ReactDOM from 'react-dom';\n * ReactDOM.render(, _mount_ );\n * ```\n *\n * react 18\n *\n * ```jsx\n * import ReactDOM from 'react-dom/client';\n * ReactDOM.createRoot(_mount_).render(
)\n * ```\n */\nexport function useRenderDom(props: { children: React.ReactNode }) {\n const container = useRef(document.createElement('div'));\n const ReactDOMClient = useCallback(async () => (window.ReactDOM ? window.ReactDOM : await getReactDOMClient()), []);\n const maybeV18Root = useRef();\n\n useLayoutEffect(() => {\n (async () => {\n const RDom = (await ReactDOMClient()) || ReactDOM;\n const isV18 = Reflect.has(RDom, 'createRoot');\n maybeV18Root.current = isV18 ? RDom.createRoot(container.current) : null;\n })();\n }, []);\n\n useLayoutEffect(() => {\n if (maybeV18Root.current) {\n // @ts-ignore\n maybeV18Root.current.render(
{props.children} );\n } else if (ReactDOM) {\n ReactDOM.render(
{props.children} , container.current);\n }\n }, [props.children, container.current, maybeV18Root.current]);\n\n return container.current;\n}\n","import { useState, useEffect } from 'react';\nimport { useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { AutoCompleteProps } from './';\n\nexport interface UseAutoComplete extends AutoCompleteProps {}\nexport const useAutoComplete = (props = {} as UseAutoComplete) => {\n const [autoComplete, setAutoComplete] = useState
();\n useEffect(() => {\n if (AMap && !autoComplete) {\n let instance: AMap.AutoComplete;\n AMap.plugin(['AMap.AutoComplete'], () => {\n instance = new AMap.AutoComplete(props);\n setAutoComplete(instance);\n });\n return () => {\n if (instance) {\n setAutoComplete(undefined);\n }\n };\n }\n }, []);\n useSettingProperties(autoComplete!, props, ['Type', 'City', 'CityLimit']);\n useEventProperties(autoComplete!, props, ['onChoose', 'onSelect']);\n return {\n autoComplete,\n setAutoComplete,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useAutoComplete } from './useAutoComplete';\nexport * from './useAutoComplete';\n\nexport interface AutoCompleteProps extends OverlayProps, AMap.AutoCompleteOptions, AMap.AutoCompleteEvents {}\nexport const AutoComplete = React.forwardRef((props, ref) => {\n const { autoComplete } = useAutoComplete(props);\n useImperativeHandle(ref, () => ({ ...props, autoComplete }));\n return null;\n});\n","import React from 'react';\nimport { useContext } from 'react';\n\ntype InitialState = {\n AMap?: typeof AMap;\n map?: AMap.Map;\n container?: HTMLDivElement | null;\n};\n\nexport const initialState: Partial = {\n map: undefined,\n AMap: undefined,\n container: undefined,\n};\n\nexport const reducer = (state: InitialState, action: InitialState) => {\n return {\n ...state,\n ...action,\n };\n};\n\nexport interface Context {\n state: Partial;\n dispatch: React.Dispatch;\n}\n\nexport const Context = React.createContext({\n state: initialState,\n dispatch: () => null,\n});\n\nexport function useMapContext() {\n const { state, dispatch } = useContext(Context);\n return { ...state, state, dispatch };\n}\n","import { useState, useMemo, useEffect, useContext } from 'react';\nimport { useSetStatus, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { MapProps } from '.';\nimport { Context } from './context';\n\nexport interface OverlayProps extends MapChildProps {}\n\n/**\n * 此类型是 `` 组件传递给子组件(如 ``)的两个 props\n */\nexport interface MapChildProps {\n /**\n * 地图API的核心类,SDK加载完成才有\n */\n AMap?: typeof AMap;\n /**\n * 实例化后的地图对象\n */\n map?: AMap.Map;\n}\n\nexport interface UseMap extends MapProps, MapChildProps {\n /**\n * 指定的容器\n */\n container?: HTMLDivElement | null;\n}\n\nexport const useMap = (props: UseMap = {}) => {\n const { ...other } = props;\n const [map, setMap] = useState();\n const [zoom, setZoom] = useState(props.zoom || 15);\n const [container, setContainer] = useState(props.container);\n const { dispatch } = useContext(Context);\n useEffect(() => {\n if (container && !map && AMap) {\n container.className = container.className + ' react-amap-wapper';\n const instance = new AMap.Map(container, { zoom, ...other });\n setMap(instance);\n }\n return () => {\n if (map) {\n map.clearInfoWindow();\n map.clearLimitBounds();\n map.clearMap();\n map.destroy();\n setMap(undefined);\n }\n };\n }, [container, map]);\n\n useEffect(() => {\n if (map && container) {\n dispatch({ map, container, AMap });\n }\n return () => {\n dispatch({ map: undefined, container: undefined, AMap: undefined });\n };\n }, [map, container]);\n\n useMemo(() => {\n if (map && typeof props.zoom === 'number' && zoom !== props.zoom && props.zoom >= 2 && props.zoom <= 20) {\n setZoom(props.zoom);\n map.setZoom(props.zoom);\n }\n }, [zoom, props.zoom]);\n\n useMemo(() => {\n if (props.center && map) {\n map.setCenter(props.center);\n }\n }, [map, props.center]);\n\n useSetStatus(map!, props, [\n 'dragEnable',\n 'zoomEnable',\n 'jogEnable',\n 'pitchEnable',\n 'rotateEnable',\n 'animateEnable',\n 'keyboardEnable',\n ]);\n // setStatus, setZoomAndCenter, setFitView\n // 'Center',\n useSettingProperties(map!, props, [\n 'Zoom',\n 'LabelzIndex',\n 'Layers',\n 'City',\n 'Bounds',\n 'LimitBounds',\n 'Lang',\n 'Rotation',\n 'DefaultCursor',\n 'MapStyle',\n 'Features',\n 'DefaultLayer',\n 'Pitch',\n ]);\n useEventProperties(map!, props, [\n 'onMouseMove',\n 'onZoomChange',\n 'onMapMove',\n 'onMouseWheel',\n 'onZoomStart',\n 'onMouseOver',\n 'onMouseOut',\n 'onDblClick',\n 'onClick',\n 'onZoomEnd',\n 'onMoveEnd',\n 'onMouseUp',\n 'onMouseDown',\n 'onRightClick',\n 'onMoveStart',\n 'onDragStart',\n 'onDragging',\n 'onDragEnd',\n 'onHotspotOut',\n 'onHotspotOver',\n 'onTouchStart',\n 'onComplete',\n 'onHotspotClick',\n 'onTouchMove',\n 'onTouchEnd',\n 'onResize',\n ]);\n return {\n map,\n setMap,\n zoom,\n setZoom,\n container,\n setContainer,\n };\n};\n","/// \nimport {\n useRef,\n useEffect,\n useImperativeHandle,\n Fragment,\n Children,\n cloneElement,\n isValidElement,\n forwardRef,\n useReducer,\n} from 'react';\nimport { useMap } from './useMap';\nimport { Context, reducer, initialState } from './context';\n\nexport * from './useMap';\nexport * from './context';\n\ntype RenderProps =\n | { children?: (data: { AMap: typeof AMap; map: AMap.Map; container?: HTMLDivElement | null }) => void }\n | { children?: React.ReactNode };\n\nexport interface MapProps extends AMap.MapEvents, AMap.MapOptions {\n className?: React.HTMLAttributes['className'];\n style?: React.HTMLAttributes['style'];\n container?: HTMLDivElement | null;\n}\n\nexport function Provider(props: RenderProps) {\n const [state, dispatch] = useReducer(reducer, initialState);\n return {props.children} ;\n}\n\nexport const Map = forwardRef(\n ({ className, children, ...props }, ref) => {\n const [state, dispatch] = useReducer(reducer, initialState);\n const elmRef = useRef(null);\n const { setContainer, container, map } = useMap({\n container: props.container || (elmRef.current as MapProps['container']),\n ...props,\n });\n useEffect(() => setContainer(elmRef.current), [elmRef.current]);\n useImperativeHandle(ref, () => ({ ...props, map, AMap, container: props.container || elmRef.current }), [map]);\n const childs = Children.toArray(children);\n\n useEffect(() => {\n if (map) {\n dispatch({ map, container: elmRef.current, AMap });\n }\n }, [map]);\n\n return (\n \n {!props.container && (\n
\n )}\n {AMap && map && typeof children === 'function' && children({ AMap, map, container })}\n {AMap &&\n map &&\n childs.map((child, key) => {\n if (!isValidElement(child)) return null;\n if (typeof child === 'string') {\n return cloneElement({child} , { key });\n }\n if (child.type && typeof child.type === 'string') {\n return cloneElement(child, { key });\n }\n return cloneElement(child, {\n ...child.props,\n AMap,\n map,\n container,\n key,\n });\n })}\n \n );\n },\n);\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { BezierCurveProps } from '.';\n\nexport interface UseBezierCurve extends BezierCurveProps {}\nexport const useBezierCurve = (props = {} as UseBezierCurve) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const [bezierCurve, setBezierCurve] = useState();\n useEffect(() => {\n if (AMap && map && !bezierCurve) {\n let instance: AMap.BezierCurve = new AMap.BezierCurve({ ...other });\n map.add(instance);\n setBezierCurve(instance);\n return () => {\n if (instance) {\n map && map.removeLayer(instance);\n setBezierCurve(undefined);\n }\n };\n }\n }, [map]);\n\n useVisiable(bezierCurve!, visiable);\n useSettingProperties(bezierCurve!, props, [\n 'Options',\n 'Path',\n 'ExtData',\n 'ExtData',\n ]);\n useEventProperties(bezierCurve!, props, [\n 'onHide',\n 'onShow',\n 'onDblClick',\n 'onMouseOver',\n 'onMouseUp',\n 'onMouseDown',\n 'onclick',\n 'onTouchEnd',\n 'onTouchMove',\n 'onTouchStart',\n 'onRightClick',\n 'onMouseOut',\n ]);\n return {\n bezierCurve,\n setBezierCurve,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useBezierCurve } from './useBezierCurve';\nexport * from './useBezierCurve';\n\nexport interface BezierCurveProps extends OverlayProps, AMap.BezierCurveEvents, AMap.BezierCurveOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const BezierCurve = React.forwardRef((props, ref) => {\n const { bezierCurve } = useBezierCurve(props);\n useImperativeHandle(ref, () => ({ ...props, bezierCurve }));\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { CircleProps } from '.';\n\nexport interface UseCircle extends CircleProps {}\nexport const useCircle = (props = {} as UseCircle) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const [circle, setCircle] = useState();\n useEffect(() => {\n if (AMap && map && !circle) {\n let instance: AMap.Circle = new AMap.Circle({ ...other });\n map.add(instance);\n setCircle(instance);\n }\n return () => {\n if (circle) {\n map && map.remove(circle);\n setCircle(undefined);\n }\n };\n }, [map]);\n\n useVisiable(circle!, visiable);\n useSettingProperties(circle!, props, ['Center', 'Raius', 'Options', 'ExtData']);\n useEventProperties(circle!, props, [\n 'onHide',\n 'onShow',\n 'onRightClick',\n 'onClick',\n 'onTouchEnd',\n 'onDblClick',\n 'onTouchMove',\n 'onTouchStart',\n 'onMouseOut',\n 'onMouseOver',\n 'onMouseUp',\n 'onMouseDown',\n ]);\n return {\n circle,\n setCircle,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useCircle } from './useCircle';\nexport * from './useCircle';\n\nexport interface CircleProps extends OverlayProps, AMap.CircleEvents, AMap.CircleOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const Circle = React.forwardRef((props, ref) => {\n const { circle } = useCircle(props);\n useImperativeHandle(ref, () => ({ ...props, circle }));\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { CircleMarkerProps } from '.';\n\nexport interface UseCircleMarker extends CircleMarkerProps {}\nexport const useCircleMarker = (props = {} as UseCircleMarker) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const [circleMarker, setCircleMarker] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!circleMarker) {\n let instance: AMap.CircleMarker = new AMap.CircleMarker({ ...other });\n map.add(instance);\n setCircleMarker(instance);\n return () => {\n if (instance) {\n map && map.removeLayer(instance);\n setCircleMarker(undefined);\n }\n };\n }\n }, [map]);\n\n useVisiable(circleMarker!, visiable);\n useSettingProperties(circleMarker!, props, [\n 'Center',\n 'Raius',\n 'zIndex',\n 'Bubble',\n 'Cursor',\n 'StrokeColor',\n 'StrokeOpacity',\n 'StrokeWeight',\n 'FillColor',\n 'FillOpacity',\n 'Draggable',\n 'ExtData',\n ]);\n useEventProperties(circleMarker!, props, [\n 'onHide',\n 'onShow',\n 'onMouseover',\n 'onTouchend',\n 'onClick',\n 'onTouchmove',\n 'onRightclick',\n 'onMouseup',\n 'onMouseout',\n 'onTouchstart',\n 'onMousedown',\n 'onDblclick',\n ]);\n return {\n circleMarker,\n setCircleMarker,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useCircleMarker } from './useCircleMarker';\nexport * from './useCircleMarker';\n\nexport interface CircleMarkerProps extends OverlayProps, AMap.CircleMarkerEvents, AMap.CircleMarkerOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const CircleMarker = React.forwardRef((props, ref) => {\n const { circleMarker } = useCircleMarker(props);\n useImperativeHandle(ref, () => ({ ...props, circleMarker }));\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { ContextMenuProps } from '.';\n\nexport interface UseContextMenu extends ContextMenuProps {}\nexport const useContextMenu = (props = {} as UseContextMenu) => {\n const { position, ...other } = props;\n const { map } = useMapContext();\n const [contextMenu, setContextMenu] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!contextMenu) {\n let instance: AMap.ContextMenu = new AMap.ContextMenu({ ...other });\n setContextMenu(instance);\n const rightclick = (e: AMap.MapsEvent) => instance.open(map, position || e.lnglat);\n map.on('rightclick', rightclick);\n return () => {\n if (instance) {\n map.off('rightclick', rightclick);\n map && map.removeLayer(instance);\n setContextMenu(undefined);\n }\n };\n }\n }, [map]);\n useEventProperties(contextMenu!, props, ['onOpen', 'onClose']);\n return {\n contextMenu,\n setContextMenu,\n };\n};\n","import { useEffect } from 'react';\nimport { MapChildProps } from '@uiw/react-amap-map';\n\nexport interface ContextMenuItem extends MapChildProps {\n contextMenu?: AMap.ContextMenu;\n text?: string;\n onClick?: (event: MouseEvent) => void;\n}\n\nconst noop = function () {};\n\nexport default (props: ContextMenuItem = {}) => {\n const { text = '', onClick = noop } = props;\n useEffect(() => {\n if (props.contextMenu) {\n props.contextMenu.addItem(text, onClick, 1);\n }\n return () => {\n if (props.contextMenu) {\n props.contextMenu.removeItem(text, onClick);\n }\n };\n }, [props.contextMenu, props.text, props.onClick]);\n return null;\n};\n","import React, { useImperativeHandle, Fragment } from 'react';\nimport { MapChildProps } from '@uiw/react-amap-map';\nimport { useContextMenu } from './useContextMenu';\nimport Item from './Item';\n\nexport * from './useContextMenu';\nexport * from './Item';\nexport interface ContextMenuProps extends MapChildProps, AMap.ContextMenuOptions, AMap.ContextMenuEvents {}\n\nexport const ContextMenu = React.forwardRef((props, ref) => {\n const { contextMenu } = useContextMenu(props);\n useImperativeHandle(ref, () => ({ ...props, contextMenu }));\n const childs = React.Children.toArray(props.children);\n return (\n \n {AMap &&\n contextMenu &&\n childs.map((child, key) => {\n if (!React.isValidElement(child)) return null;\n return React.cloneElement(child, { ...child.props, AMap, map: props.map, contextMenu, key });\n })}\n \n );\n});\n\ntype ContextMenu = typeof ContextMenu & {\n Item: typeof Item;\n};\n(ContextMenu as ContextMenu).Item = Item;\n","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { ControlBarControlProps } from '.';\n\nexport interface UseControlBarControl extends ControlBarControlProps {}\n\nexport function useControlBarControl(props = {} as UseControlBarControl) {\n const { position, visiable, offset } = props;\n const [controlBarControl, setControlBarControl] = useState();\n const { map } = useMapContext();\n useEffect(() => {\n if (map && !controlBarControl) {\n let instance: AMap.ControlBar;\n map.plugin(['AMap.ControlBar', 'AMap.HawkEye'], () => {\n instance = new AMap.ControlBar({\n offset: offset,\n position,\n });\n map.addControl(instance);\n setControlBarControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n\n useVisiable(controlBarControl!, visiable);\n return {\n controlBarControl,\n setControlBarControl,\n };\n}\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useControlBarControl } from './useControlBarControl';\nexport * from './useControlBarControl';\n\nexport interface ControlBarControlProps extends OverlayProps, AMap.ControlBarOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\n\nexport const ControlBarControl = React.forwardRef((props, ref) => {\n const { controlBarControl } = useControlBarControl(props);\n useImperativeHandle(ref, () => ({ ...props, controlBarControl }), [controlBarControl]);\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { EllipseProps } from './';\n\nexport interface UseEllipse extends EllipseProps {}\nexport const useEllipse = (props = {} as UseEllipse) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const [ellipse, setEllipse] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!ellipse) {\n let instance: AMap.Ellipse = new AMap.Ellipse({ ...other });\n map.add(instance);\n setEllipse(instance);\n return () => {\n if (instance) {\n map && map.removeLayer(instance);\n setEllipse(undefined);\n }\n };\n }\n }, [map]);\n\n useVisiable(ellipse!, visiable);\n useSettingProperties(ellipse!, props, ['Center', 'Radius', 'Options', 'ExtData']);\n useEventProperties(ellipse!, props, [\n 'onHide',\n 'onShow',\n 'onClick',\n 'onDblClick',\n 'onRightClick',\n 'onMouseOut',\n 'onMouseOver',\n 'onMouseUp',\n 'onMouseDown',\n 'onTouchEnd',\n 'onTouchMove',\n 'onTouchStart',\n ]);\n return {\n ellipse,\n setEllipse,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useEllipse } from './useEllipse';\nexport * from './useEllipse';\n\nexport interface EllipseProps extends OverlayProps, AMap.EllipseEvents, AMap.EllipseOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const Ellipse = React.forwardRef((props, ref) => {\n const { ellipse } = useEllipse(props);\n useImperativeHandle(ref, () => ({ ...props, ellipse }));\n return null;\n});\n","import { useState, useMemo, useEffect } from 'react';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { GeolocationProps } from '.';\n\nexport interface UseGeolocation extends GeolocationProps {}\nexport const useGeolocation = (props = {} as UseGeolocation) => {\n const { type = 'position', onComplete, onError, ...other } = props;\n const [geolocation, setGeolocation] = useState();\n const { map } = useMapContext();\n useEffect(() => {\n if (AMap && !geolocation) {\n let instance: AMap.Geolocation;\n AMap.plugin(['AMap.Geolocation'], () => {\n instance = new AMap.Geolocation({ ...other });\n setGeolocation(instance);\n });\n return () => {\n if (instance) {\n setGeolocation(undefined);\n }\n };\n }\n }, [AMap]);\n\n function callback(status: 'error' | 'complete', result: AMap.GeolocationResult) {\n if (status === 'complete' && onComplete) {\n onComplete(result);\n } else if (onError) {\n onError(result);\n }\n }\n\n useMemo(() => {\n if (!/^(position|cityInfo)$/.test(type)) return;\n const funName = type === 'position' ? 'getCurrentPosition' : 'getCityInfo';\n if (geolocation && map) {\n geolocation[funName](callback);\n map.addControl(geolocation);\n } else if (geolocation) {\n geolocation[funName](callback);\n }\n }, [geolocation]);\n\n return {\n geolocation,\n setGeolocation,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useGeolocation } from './useGeolocation';\n\nexport * from './useGeolocation';\nexport interface GeolocationProps extends OverlayProps, AMap.GeolocationEvents, AMap.GeolocationOptions {\n /**\n * 定位类型\n * - position 获取 用户的精确位置,有失败几率\n * - cityInfo 根据用户 IP 获取 用户所在城市信息\n * @default position\n */\n type?: 'position' | 'cityInfo';\n}\nexport const Geolocation = React.forwardRef((props, ref) => {\n const { geolocation } = useGeolocation(props);\n useImperativeHandle(ref, () => ({ ...props, geolocation }));\n return null;\n});\n","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { HawkEyeControlProps } from '.';\n\nexport interface UseHawkEyeControl extends HawkEyeControlProps {}\n\nexport function useHawkEyeControl(props = {} as UseHawkEyeControl) {\n const [hawkEyeControl, setHawkEyeControl] = useState();\n const { offset, visiable, ...other } = props;\n const { map } = useMapContext();\n useEffect(() => {\n if (map && !hawkEyeControl) {\n let instance: AMap.HawkEye;\n map.plugin(['AMap.HawkEye'], () => {\n instance = new AMap.HawkEye({ offset: offset, ...other });\n map.addControl(instance);\n setHawkEyeControl(instance);\n });\n\n return () => {\n if (instance && map) {\n map.removeLayer(instance);\n setHawkEyeControl(undefined);\n }\n };\n }\n }, [map]);\n\n useVisiable(hawkEyeControl! as any, visiable);\n return {\n hawkEyeControl,\n setHawkEyeControl,\n };\n}\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useHawkEyeControl } from './useHawkEyeControl';\nexport * from './useHawkEyeControl';\n\nexport interface HawkEyeControlProps extends OverlayProps, AMap.HawkEyeOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\n\nexport const HawkEyeControl = React.forwardRef((props, ref) => {\n const { hawkEyeControl } = useHawkEyeControl(props);\n useImperativeHandle(ref, () => ({ ...props, hawkEyeControl }), [hawkEyeControl]);\n return null;\n});\n","import { useState, useMemo, useEffect } from 'react';\nimport { useEventProperties, useSettingProperties, useRenderDom } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { InfoWindowProps } from '.';\n\nexport interface UseInfoWindow extends InfoWindowProps {}\nexport const useInfoWindow = (props = {} as UseInfoWindow) => {\n const { visiable, position, ...other } = props;\n const { map } = useMapContext();\n const [isOpen, setIsOpen] = useState(visiable);\n const [infoWindow, setInfoWindow] = useState();\n const container = useRenderDom({ children: props.children });\n\n useEffect(() => {\n if (!AMap || !map) return;\n if (!infoWindow) {\n const positionCenter = map.getCenter();\n if (props.children) {\n other.content = container;\n }\n let instance: AMap.InfoWindow = new AMap.InfoWindow({ ...other, position: position || positionCenter });\n setInfoWindow(instance);\n if (isOpen) {\n instance.open(map, position || positionCenter);\n }\n return () => {\n if (instance) {\n map && map.remove(instance);\n setInfoWindow(undefined);\n }\n };\n }\n }, [map]);\n\n useEffect(() => {\n if (infoWindow) {\n infoWindow.setContent(props.children ? container : other.content || '');\n }\n }, [props.children, container, other.content, infoWindow]);\n\n useMemo(() => {\n if (isOpen !== visiable && infoWindow && map) {\n setIsOpen(visiable);\n if (visiable) {\n const positionCenter = map.getCenter();\n infoWindow.open(map, position || positionCenter);\n } else {\n infoWindow.close();\n }\n }\n }, [visiable, infoWindow]);\n\n useEffect(() => {\n if (!map || !infoWindow || !visiable) return;\n const positionCenter = map.getCenter();\n infoWindow.open(map, position || positionCenter);\n }, [position]);\n\n useSettingProperties(infoWindow!, props, ['Content', 'Anchor', 'Size']);\n useEventProperties(infoWindow!, props, ['onOpen', 'onClose', 'onChange']);\n return {\n isOpen,\n setIsOpen,\n infoWindow,\n setInfoWindow,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useInfoWindow } from './useInfoWindow';\n\nexport * from './useInfoWindow';\nexport interface InfoWindowProps extends OverlayProps, AMap.InforWindowEvents, AMap.InforWindowOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n children?: JSX.Element;\n}\nexport const InfoWindow = React.forwardRef((props, ref) => {\n const { infoWindow } = useInfoWindow(props);\n useImperativeHandle(ref, () => ({ ...props, infoWindow }));\n return null;\n});\n","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { MapTypeControlProps } from '.';\n\nexport interface UseMapTypeControl extends MapTypeControlProps {}\n\nexport function useMapTypeControl(props = {} as UseMapTypeControl) {\n const [mapTypeControl, setMapTypeControl] = useState();\n const { visiable, defaultType = 0, ...other } = props;\n const { map } = useMapContext();\n useEffect(() => {\n if (map && !mapTypeControl) {\n let instance: AMap.MapType;\n map.plugin(['AMap.MapType'], () => {\n instance = new AMap.MapType({ defaultType, ...other });\n map.addControl(instance);\n setMapTypeControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n\n useVisiable(mapTypeControl!, visiable);\n return {\n mapTypeControl,\n setMapTypeControl,\n };\n}\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useMapTypeControl } from './useMapTypeControl';\n\nexport * from './useMapTypeControl';\nexport interface MapTypeControlProps extends OverlayProps, AMap.MapTypeOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\n\nexport const MapTypeControl = React.forwardRef((props, ref) => {\n const { mapTypeControl } = useMapTypeControl(props);\n useImperativeHandle(ref, () => ({ ...props, mapTypeControl }), [mapTypeControl]);\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties, useRenderDom } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { MarkerProps } from './';\n\nexport interface UseMarker extends MarkerProps {}\nexport const useMarker = (props: UseMarker = {}) => {\n const { visiable, children, ...other } = props;\n const { map } = useMapContext();\n const [marker, setMarker] = useState();\n const container = useRenderDom({ children: props.children });\n\n useEffect(() => {\n if (!marker && map) {\n if (props.children) {\n other.content = container;\n }\n let instance: AMap.Marker = new AMap.Marker({ ...other });\n map.add(instance);\n setMarker(instance);\n }\n return () => {\n if (marker) {\n marker.remove();\n setMarker(undefined);\n }\n };\n }, [map, marker]);\n\n useEffect(() => {\n if (marker) {\n marker.setContent(props.children ? container : props.content || '');\n }\n }, [props.children, container, props.content, marker]);\n\n // useEffect(() => {\n // if (marker) {\n // setContent(props.children);\n // }\n // }, [props.children, marker]);\n\n useVisiable(marker!, visiable);\n useSettingProperties(marker!, props, [\n 'Path',\n 'Anchor',\n 'Offset',\n 'Animation',\n 'Clickable',\n 'Position',\n 'Angle',\n 'Label',\n 'zIndex',\n 'Icon',\n 'Draggable',\n 'Cursor',\n 'Content',\n 'Map',\n 'Title',\n 'Top',\n 'Shadow',\n 'Shape',\n 'ExtData',\n ]);\n useEventProperties(marker!, props, [\n 'onClick',\n 'onDblClick',\n 'onRightClick',\n 'onMouseMove',\n 'onMouseOver',\n 'onMouseOut',\n 'onMouseDown',\n 'onMouseUp',\n 'onDragStart',\n 'onDragging',\n 'onDragEnd',\n 'onMoving',\n 'onMoveEnd',\n 'onMoveAlong',\n 'onTouchStart',\n 'onTouchMove',\n 'onTouchEnd',\n ]);\n return {\n marker,\n setMarker,\n };\n};\n","import { useImperativeHandle, forwardRef } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useMarker } from './useMarker';\n\nexport * from './useMarker';\n\nexport interface MarkerProps extends OverlayProps, AMap.MarkerEvents, AMap.MarkerOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n className?: string;\n children?: JSX.Element;\n}\n\nexport const Marker = forwardRef((props, ref) => {\n const { marker } = useMarker(props);\n useImperativeHandle(ref, () => ({ ...props, marker }), [marker]);\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { MassMarksProps } from './';\n\nexport interface UseMassMarks extends MassMarksProps {}\nexport const useMassMarks = (props = {} as UseMassMarks) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const { opacity = 0.8, zIndex = 1111, style, data } = other || {};\n const [massMarks, setMassMarks] = useState();\n\n useEffect(() => {\n if (!AMap || !map) return;\n if (!massMarks) {\n let initStyle = style;\n if (!initStyle) {\n // JSAPI 2.0 支持显示设置 zIndex, zIndex 越大约靠前,默认按顺序排列\n initStyle = [\n {\n url: 'https://webapi.amap.com/images/mass/mass0.png',\n anchor: new AMap.Pixel(6, 6),\n size: new AMap.Size(11, 11),\n zIndex: 3,\n },\n {\n url: 'https://webapi.amap.com/images/mass/mass1.png',\n anchor: new AMap.Pixel(4, 4),\n size: new AMap.Size(7, 7),\n zIndex: 2,\n },\n {\n url: 'https://webapi.amap.com/images/mass/mass2.png',\n anchor: new AMap.Pixel(3, 3),\n size: new AMap.Size(5, 5),\n zIndex: 1,\n },\n ];\n }\n let instance: AMap.MassMarks = new AMap.MassMarks(data || [], { opacity, zIndex, style: initStyle });\n // 将海量点实例添加到地图上\n // map.add(instance);\n setMassMarks(instance);\n instance.setMap(map);\n return () => {\n if (instance) {\n instance.clear();\n setMassMarks(undefined);\n }\n };\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [map]);\n\n useVisiable(massMarks!, visiable);\n useSettingProperties(massMarks!, props, [\n 'Map',\n 'Data',\n 'Style',\n 'Opacity',\n 'zIndex',\n 'Zooms',\n ]);\n\n useEventProperties(massMarks!, props, [\n // 'onRightClick',\n // 'onDragStart',\n // 'onDragging',\n // 'onDragEnd',\n // 'onMoving',\n // 'onMoveEnd',\n // 'onMoveAlong',\n 'onClick',\n 'onDblClick',\n 'onMouseMove',\n 'onMouseOut',\n 'onMouseUp',\n 'onMouseDown',\n 'onMouseOver',\n 'onTouchStart',\n 'onTouchEnd',\n ]);\n\n return { massMarks, setMassMarks };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useMassMarks } from './useMassMarks';\n\nexport * from './useMassMarks';\n\nexport interface MassMarksProps extends OverlayProps, AMap.MassMarksEvents, AMap.MassMarkersOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n data?: AMap.MassMarkersDataOptions;\n}\n\nexport const MassMarks = React.forwardRef((props, ref) => {\n const { massMarks } = useMassMarks(props);\n useImperativeHandle(ref, () => ({ ...props, massMarks }), [massMarks, props]);\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { PolygonProps } from '.';\n\nexport interface UsePolygon extends PolygonProps {}\nexport const usePolygon = (props = {} as UsePolygon) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const [polygon, setPolygon] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!polygon) {\n let instance: AMap.Polygon = new AMap.Polygon({ ...other });\n map.add(instance);\n setPolygon(instance);\n }\n }, [map]);\n\n useVisiable(polygon!, visiable);\n useSettingProperties(polygon!, props, ['ExtData', 'ExtData']);\n useEventProperties(polygon!, props, [\n 'onClick',\n 'onDblClick',\n 'onRightClick',\n 'onHide',\n 'onShow',\n 'onMouseDown',\n 'onMouseUp',\n 'onMouseOver',\n 'onMouseOut',\n 'onChange',\n 'onTouchStart',\n 'onTouchMove',\n 'onTouchEnd',\n ]);\n return {\n polygon,\n setPolygon,\n };\n};\n","import { useImperativeHandle, forwardRef, isValidElement, cloneElement } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { usePolygon } from './usePolygon';\n\nexport * from './usePolygon';\nexport interface PolygonProps extends OverlayProps, AMap.PolygonEvents, AMap.PolygonOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const Polygon = forwardRef((props, ref) => {\n const { children } = props;\n const { polygon } = usePolygon(props);\n useImperativeHandle(ref, () => ({ ...props, polygon }));\n if (children && isValidElement(children)) {\n return cloneElement(children, { ...props, polygon });\n }\n return null;\n});\n","import { forwardRef, useEffect, useState } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\n\nexport interface PolygonEditorProps extends AMap.PolygonEditor, AMap.PolygonEditorEvents {\n /** 是否开启编辑功能 */\n active?: boolean;\n polygon?: AMap.Polygon;\n}\n\nexport const PolygonEditor = forwardRef((props, ref) => {\n const { active, polygon } = props;\n const { map } = useMapContext();\n const [visiable, setVisiable] = useState(true);\n const [polyEditor, setPolyEditor] = useState();\n\n useEffect(() => {\n if (polygon && map && !polyEditor && AMap && AMap.PolygonEditor) {\n const instance = new AMap.PolygonEditor(map, polygon);\n polygon.on('hide', () => setVisiable(false));\n polygon.on('show', () => setVisiable(true));\n setPolyEditor(instance);\n }\n }, [polygon]);\n\n useEffect(() => {\n if (!polyEditor) {\n return;\n }\n if (visiable && !active) {\n polyEditor.close();\n } else if (visiable && active) {\n polyEditor.open();\n } else if (!visiable && active) {\n polyEditor.close();\n }\n }, [active, visiable]);\n\n useEventProperties(polyEditor!, props, [\n 'onEnd',\n 'onAddnode',\n 'onAdjust',\n 'onMove',\n 'onAdd',\n ]);\n return null;\n});\n","import { useEffect, useState } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { PolylineProps } from '.';\n\nexport interface UsePolyline extends PolylineProps {}\n\nexport function usePolyline(props = {} as UsePolyline) {\n const [polyline, setPolyline] = useState();\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n useEffect(() => {\n if (map && !polyline) {\n let instance: AMap.Polyline = new AMap.Polyline({ ...other });\n map.add(instance);\n setPolyline(instance);\n return () => {\n if (instance) {\n map && map.removeLayer(instance);\n setPolyline(undefined);\n }\n };\n }\n }, [map]);\n\n useVisiable(polyline!, visiable);\n useSettingProperties(polyline!, props, ['Path', 'Options', 'Map', 'ExtData']);\n useEventProperties(polyline!, props, [\n 'onHide',\n 'onShow',\n 'onMouseOut',\n 'onChange',\n 'onRightClick',\n 'onDblClick',\n 'onMouseDown',\n 'onClick',\n 'onMouseOver',\n 'onTouchEnd',\n 'onTouchMove',\n 'onTouchStart',\n 'onMouseUp',\n ]);\n return {\n polyline,\n setPolyline,\n };\n}\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { usePolyline } from './usePolyline';\n\nexport * from './usePolyline';\n\nexport interface PolylineProps extends OverlayProps, AMap.PolylineEvents, AMap.PolylineOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const Polyline = React.forwardRef((props, ref) => {\n const { polyline } = usePolyline(props);\n useImperativeHandle(ref, () => ({ ...props, polyline }), [polyline]);\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { RectangleProps } from '.';\n\nexport interface UseRectangle extends RectangleProps {}\nexport const useRectangle = (props = {} as UseRectangle) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const [rectangle, setRectangle] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!rectangle) {\n let instance: AMap.Rectangle = new AMap.Rectangle({ ...other });\n map.add(instance);\n setRectangle(instance);\n return () => {\n if (instance) {\n map && map.removeLayer(instance);\n setRectangle(undefined);\n }\n };\n }\n }, [map]);\n\n useVisiable(rectangle!, visiable);\n useSettingProperties(rectangle!, props, ['Bounds', 'Options', 'Map', 'ExtData']);\n useEventProperties(rectangle!, props, [\n 'onHide',\n 'onShow',\n 'onClick',\n 'onDblClick',\n 'onRightClick',\n 'onMouseOut',\n 'onMouseOver',\n 'onMouseUp',\n 'onMouseDown',\n 'onTouchEnd',\n 'onTouchMove',\n 'onTouchStart',\n ]);\n return {\n rectangle,\n setRectangle,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useRectangle } from './useRectangle';\n\nexport * from './useRectangle';\n\nexport interface RectangleProps extends OverlayProps, AMap.RectangleEvents, AMap.RectangleOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const Rectangle = React.forwardRef((props, ref) => {\n const { rectangle } = useRectangle(props);\n useImperativeHandle(ref, () => ({ ...props, rectangle }));\n return null;\n});\n","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { ScaleControlProps } from './';\n\nexport interface UseScaleControl extends ScaleControlProps {}\n\nexport function useScaleControl(props = {} as UseScaleControl) {\n const [scaleControl, setScaleControl] = useState();\n const { position, visiable, offset } = props;\n const { map } = useMapContext();\n useEffect(() => {\n if (map && !scaleControl) {\n let instance: AMap.Control;\n map.plugin(['AMap.Scale'], () => {\n instance = new AMap.Scale({\n offset: offset,\n position,\n });\n map.addControl(instance);\n setScaleControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n\n useVisiable(scaleControl!, visiable);\n return {\n scaleControl,\n setScaleControl,\n };\n}\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useScaleControl } from './useScaleControl';\n\nexport * from './useScaleControl';\n\nexport interface ScaleControlProps extends OverlayProps, AMap.ScaleOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\n\nexport const ScaleControl = React.forwardRef((props, ref) => {\n const { scaleControl } = useScaleControl(props);\n useImperativeHandle(ref, () => ({ ...props, scaleControl }), [scaleControl]);\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties, useRenderDom } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { TextProps } from './';\n\nexport interface UseText extends TextProps {}\nexport const useText = (props = {} as UseText) => {\n const { visiable, ...other } = props;\n const [text, setText] = useState();\n const { map } = useMapContext();\n const container = useRenderDom({ children: props.children });\n useEffect(() => {\n if (!AMap || !map) return;\n if (!text) {\n if (props.children) {\n other.text = container.innerHTML;\n }\n let instance: AMap.Text = new AMap.Text({ ...other });\n map.add(instance);\n setText(instance);\n return () => {\n if (instance) {\n instance.remove();\n setText(undefined);\n }\n };\n }\n }, [map]);\n\n useEffect(() => {\n if (text) {\n text.setText(props.children ? container.innerHTML : props.text || '');\n }\n }, [props.children, props.text, container, text]);\n\n useVisiable(text!, visiable);\n useSettingProperties(text!, props, [\n 'Style',\n 'Title',\n 'Clickable',\n 'Draggable',\n 'Map',\n 'Position',\n 'Offset',\n 'Angle',\n 'zIndex',\n 'Top',\n 'Cursor',\n 'ExtData',\n ]);\n useEventProperties(text!, props, [\n 'onMoving',\n 'onTouchMove',\n 'onTouchEnd',\n 'onMoveaLong',\n 'onTouchStart',\n 'onMoveEnd',\n 'onClick',\n 'onDblClick',\n 'onRightClick',\n 'onMouseMove',\n 'onMouseOver',\n 'onMouseOut',\n 'onMouseDown',\n 'onMouseUp',\n 'onDragStart',\n 'onDragEnd',\n 'onDragging',\n ]);\n return {\n text,\n setText,\n };\n};\n","import { forwardRef, useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useText } from './useText';\n\nexport * from './useText';\n\nexport interface TextProps extends OverlayProps, AMap.TextEvents, AMap.TextOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n children?: React.ReactNode;\n}\nexport const Text = forwardRef & { text?: AMap.Text }, TextProps>((props, ref) => {\n const { text } = useText({ ...props });\n useImperativeHandle(ref, () => ({ ...props, text }));\n return null;\n});\n","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { ToolBarControlProps } from './';\n\nexport interface UseToolBarControl extends ToolBarControlProps {}\n\nexport function useToolBarControl(props = {} as UseToolBarControl) {\n const [toolBarControl, setToolBarControl] = useState();\n const { position, visiable, offset } = props;\n const { map } = useMapContext();\n useEffect(() => {\n if (map && !toolBarControl) {\n let instance: AMap.Control;\n map.plugin(['AMap.ToolBar'], () => {\n instance = new AMap.ToolBar({\n offset,\n position,\n });\n map.addControl(instance);\n setToolBarControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n\n useVisiable(toolBarControl!, visiable);\n return {\n toolBarControl,\n setToolBarControl,\n };\n}\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useToolBarControl } from './useToolBarControl';\n\nexport * from './useToolBarControl';\n\nexport interface ToolBarControlProps extends OverlayProps, AMap.ToolBarOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\n\nexport const ToolBarControl = React.forwardRef((props, ref) => {\n const { toolBarControl } = useToolBarControl(props);\n useImperativeHandle(ref, () => ({ ...props, toolBarControl }), [toolBarControl]);\n return null;\n});\n","import { useState, useMemo, useEffect } from 'react';\nimport { WeatherProps } from '.';\n\nexport interface UseWeather extends WeatherProps {}\nexport const useWeather = (props = {} as UseWeather) => {\n const { city = '', type = 'live', onComplete, onError } = props;\n const [weather, setWeather] = useState();\n const funName = type === 'live' ? 'getLive' : 'getForecast';\n function getData(instance: AMap.Weather) {\n if (type && city && /^(live|forecast)$/.test(type)) {\n instance[funName as keyof AMap.Weather](\n city,\n (err?: Error, data?: AMap.WeatherForecastResult | AMap.WeatherLiveResult) => {\n if (err && onError) {\n onError(err);\n } else if (data && onComplete) {\n onComplete(data);\n }\n },\n );\n }\n }\n useEffect(() => {\n if (AMap && !weather) {\n let instance: AMap.Weather;\n AMap.plugin(['AMap.Weather'], () => {\n instance = new AMap.Weather();\n setWeather(instance);\n });\n return () => {\n if (instance) {\n setWeather(undefined);\n }\n };\n }\n }, []);\n\n useMemo(() => {\n if (weather && city && type) {\n getData(weather);\n }\n }, [weather, city, type]);\n\n return {\n weather,\n setWeather,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useWeather } from './useWeather';\n\nexport * from './useWeather';\nexport interface WeatherProps extends OverlayProps {\n /** 城市名称/区域编码(如:“杭州市”/“330100”) */\n city?: string;\n /**\n * 获取 `查询实时天气信息` 或 `查询四天预报天气`\n * - live 查询实时天气信息。\n * - forecast 查询四天预报天气,包括查询当天天气信息\n * @default live\n */\n type?: 'live' | 'forecast';\n /** 数据请求完成时触发事件。 */\n onComplete?(data: AMap.WeatherForecastResult | AMap.WeatherLiveResult): void;\n /** 数据请求错误时触发事件。 */\n onError?(err: Error): void;\n}\nexport const Weather = React.forwardRef((props, ref) => {\n const { weather } = useWeather(props);\n useImperativeHandle(ref, () => ({ ...props, weather }));\n return null;\n});\n"],"names":["module","exports","webpackEmptyContext","req","e","Error","code","keys","resolve","id","Code","version","dependencies","codeSandbox","codePen","other","props","codePenOption","title","includeModule","js","replace","html","css_external","js_external","codeSandboxOption","files","content","name","description","react","devDependencies","kkt","license","scripts","start","build","test","browserslist","React","style","marginBottom","editorUrl","className","styles","target","rel","href","getCodeStr","data","forEach","node","type","value","children","Array","isArray","Markdown","getMdStr","state","mdStr","this","then","str","setState","default","Fragment","padding","source","components","inline","noPreview","noScroll","bgWhite","noCode","config","Object","filter","undefined","length","pkg","Component","runtime","Op","prototype","hasOwn","hasOwnProperty","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","obj","key","defineProperty","enumerable","configurable","writable","err","wrap","innerFn","outerFn","self","tryLocsList","protoGenerator","Generator","generator","create","context","Context","_invoke","GenStateSuspendedStart","method","arg","GenStateExecuting","GenStateCompleted","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","sent","_sent","dispatchException","abrupt","record","tryCatch","done","GenStateSuspendedYield","makeInvokeMethod","fn","call","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","AsyncIterator","PromiseImpl","invoke","reject","result","__await","unwrapped","error","previousPromise","callInvokeWithMethodAndArg","TypeError","info","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","i","displayName","isGeneratorFunction","genFun","ctor","constructor","mark","setPrototypeOf","__proto__","awrap","async","Promise","iter","object","reverse","pop","skipTempReset","prev","charAt","slice","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","globalThis","Function","asyncGeneratorStep","gen","_next","_throw","_asyncToGenerator","args","arguments","apply","_importedScript","requireCss","src","headElement","document","head","getElementsByTagName","dom","getElementById","script","createElement","onerror","removeChild","URIError","onload","appendChild","requireScript","defer","delay","time","window","setTimeout","APILoader","isMountedOk","loaded","AMap","handleError","akay","componentDidMount","callbackName","waitQueue","loadMap","componentWillUnmount","render","fallback","_jsx","color","message","getScriptSrc","cfg","protocol","location","indexOf","plugin","hostAndPath","_this","queue","task","DEFAULT_RETRY_TIME","_ret","v","defaultProps","useSetStatus","instance","propsName","eName","useState","useEffect","status","getStatus","setStatus","useVisiable","visiable","show","hide","usePrevious","ref","useRef","current","useEventProperties","eventName","eventHandle","toLocaleLowerCase","on","off","useSettingProperties","vName","toLowerCase","getReactDOMClient","import","_ReactDOM","useRenderDom","container","ReactDOMClient","useCallback","ReactDOM","maybeV18Root","useLayoutEffect","RDom","isV18","Reflect","has","createRoot","useAutoComplete","autoComplete","setAutoComplete","AutoComplete","useImperativeHandle","initialState","map","reducer","action","dispatch","useMapContext","useContext","useMap","setMap","zoom","setZoom","setContainer","Map","clearInfoWindow","clearLimitBounds","clearMap","destroy","useMemo","center","setCenter","Provider","useReducer","forwardRef","elmRef","childs","Children","_jsxs","fontSize","width","height","child","isValidElement","cloneElement","useBezierCurve","bezierCurve","setBezierCurve","BezierCurve","add","removeLayer","useCircle","circle","setCircle","Circle","remove","useCircleMarker","circleMarker","setCircleMarker","CircleMarker","useContextMenu","position","contextMenu","setContextMenu","ContextMenu","rightclick","open","lnglat","noop","useControlBarControl","offset","controlBarControl","setControlBarControl","ControlBar","addControl","removeControl","Item","text","onClick","addItem","removeItem","ControlBarControl","useEllipse","ellipse","setEllipse","Ellipse","useGeolocation","onComplete","onError","geolocation","setGeolocation","callback","Geolocation","funName","useHawkEyeControl","hawkEyeControl","setHawkEyeControl","HawkEye","HawkEyeControl","useInfoWindow","isOpen","setIsOpen","infoWindow","setInfoWindow","positionCenter","getCenter","InfoWindow","setContent","close","useMapTypeControl","mapTypeControl","setMapTypeControl","defaultType","MapType","MapTypeControl","useMarker","marker","setMarker","Marker","useMassMarks","opacity","zIndex","massMarks","setMassMarks","initStyle","url","anchor","Pixel","size","Size","MassMarks","clear","usePolygon","polygon","setPolygon","Polygon","PolygonEditor","active","setVisiable","polyEditor","setPolyEditor","usePolyline","polyline","setPolyline","Polyline","useRectangle","rectangle","setRectangle","Rectangle","useScaleControl","scaleControl","setScaleControl","Scale","ScaleControl","useText","setText","innerHTML","Text","useToolBarControl","toolBarControl","setToolBarControl","ToolBar","ToolBarControl","useWeather","city","weather","setWeather","Weather"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"static/js/2515.52640890.chunk.js","mappings":"4FAAAA,EAAOC,QAAU,EAAjB,Q,kBCAA,SAASC,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,EAEPF,EAAoBK,KAAO,WAAa,MAAO,IAC/CL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,MACzBT,EAAOC,QAAUC,G,qPCGF,SAASQ,EAAT,GAAqF,IAArEC,EAAoE,EAApEA,QAASC,EAA2D,EAA3DA,aAAcC,EAA6C,EAA7CA,YAAaC,EAAgC,EAAhCA,QAAYC,GAAoB,YAC3FC,GAAuB,UAAQD,GAyDrC,OAxDID,IACFE,EAAMC,cAAgB,CACpBC,MAAM,MAAD,OAAQP,EAAR,WACLQ,cAAe,CAAC,OAChBC,IAAKJ,EAAMV,MAAQ,IAAIe,QAAQ,UAAW,wCAC1CC,KAAM,mDACNC,aAAa,yBAAD,OAA2BZ,EAA3B,qBACZa,YAAY,yLAAD,OAA2Lb,EAA3L,qFAGXE,IACFG,EAAMS,kBAAoB,CACxBC,MAAO,CACL,sBAAuB,CACrBC,QAAQ,iKAQV,oBAAqB,CACnBA,QAAQ,8BAEV,eAAgB,CACdA,SAAUX,EAAMV,MAAQ,IAAIe,QAAQ,UAAW,yCAEjD,YAAa,CACXM,QAAQ,qJ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node_modules/@babel/runtime/regenerator/index.js","../../node_modules/@babel/standalone|sync","components/Markdown/Code.tsx","webpack://website/./src/components/Footer/index.module.less?18ac","components/Footer/index.tsx","webpack://website/./src/components/Markdown/index.module.less?6e49","components/Markdown/index.tsx","../../node_modules/regenerator-runtime/runtime.js","../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","../../packages/require-script/src/index.ts","../../packages/api-loader/src/index.tsx","../../packages/utils/src/index.tsx","../../packages/auto-complete/src/useAutoComplete.tsx","../../packages/auto-complete/src/index.tsx","../../packages/map/src/context.ts","../../packages/map/src/useMap.tsx","../../packages/map/src/index.tsx","../../packages/bezier-curve/src/useBezierCurve.tsx","../../packages/bezier-curve/src/index.tsx","../../packages/circle/src/useCircle.tsx","../../packages/circle/src/index.tsx","../../packages/circle-marker/src/useCircleMarker.tsx","../../packages/circle-marker/src/index.tsx","../../packages/context-menu/src/useContextMenu.tsx","../../packages/context-menu/src/Item.tsx","../../packages/context-menu/src/index.tsx","../../packages/control-bar-control/src/useControlBarControl.tsx","../../packages/control-bar-control/src/index.tsx","../../packages/ellipse/src/useEllipse.tsx","../../packages/ellipse/src/index.tsx","../../packages/geolocation/src/useGeolocation.tsx","../../packages/geolocation/src/index.tsx","../../packages/hawk-eye-control/src/useHawkEyeControl.tsx","../../packages/hawk-eye-control/src/index.tsx","../../packages/info-window/src/useInfoWindow.tsx","../../packages/info-window/src/index.tsx","../../packages/map-type-control/src/useMapTypeControl.tsx","../../packages/map-type-control/src/index.tsx","../../packages/marker/src/useMarker.tsx","../../packages/marker/src/index.tsx","../../packages/mass-marks/src/useMassMarks.tsx","../../packages/mass-marks/src/index.tsx","../../packages/polygon/src/usePolygon.tsx","../../packages/polygon/src/index.tsx","../../packages/polygon-editor/src/index.tsx","../../packages/polyline/src/usePolyline.tsx","../../packages/polyline/src/index.tsx","../../packages/rectangle/src/useRectangle.tsx","../../packages/rectangle/src/index.tsx","../../packages/scale-control/src/useScaleControl.tsx","../../packages/scale-control/src/index.tsx","../../packages/text/src/useText.tsx","../../packages/text/src/index.tsx","../../packages/tool-bar-control/src/useToolBarControl.tsx","../../packages/tool-bar-control/src/index.tsx","../../packages/weather/src/useWeather.tsx","../../packages/weather/src/index.tsx"],"sourcesContent":["module.exports = require(\"regenerator-runtime\");\n","function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 80363;\nmodule.exports = webpackEmptyContext;","import React from 'react';\nimport CodePreview, { CodePreviewProps } from '@uiw/react-code-preview';\n\nexport interface CodeProps extends CodePreviewProps {\n version: string;\n code?: string;\n codePen?: string;\n codeSandbox?: boolean;\n dependencies?: any;\n}\n\nexport default function Code({ version, dependencies, codeSandbox, codePen, ...other }: CodeProps) {\n const props: CodePreviewProps = { ...other };\n if (codePen) {\n props.codePenOption = {\n title: `uiw${version} - demo`,\n includeModule: ['uiw'],\n js: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n html: '
',\n css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,\n js_external: `https://unpkg.com/react@17.x/umd/react.development.js;https://unpkg.com/react-dom@17.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.1.3/index.js`,\n };\n }\n if (codeSandbox) {\n props.codeSandboxOption = {\n files: {\n 'sandbox.config.json': {\n content: `{\n \"template\": \"node\",\n \"container\": {\n \"startScript\": \"start\",\n \"node\": \"14\"\n }\n }`,\n },\n 'public/index.html': {\n content: `
`,\n },\n 'src/index.js': {\n content: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n },\n '.kktrc.js': {\n content: `import lessModules from \"@kkt/less-modules\";\\nexport default (conf, env, options) => {\\nconf = lessModules(conf, env, options);\\nreturn conf;\\n};`,\n },\n 'package.json': {\n content: {\n name: 'uiw-demo',\n description: `uiw v${version} - demo`,\n dependencies: {\n react: '^17.0.2',\n 'react-dom': '^17.0.2',\n '@uiw/react-amap': 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '~7.1.1',\n kkt: '~7.1.5',\n },\n license: 'MIT',\n scripts: {\n start: 'kkt start',\n build: 'kkt build',\n test: 'kkt test --env=jsdom',\n },\n browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'],\n },\n },\n },\n };\n }\n return ;\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"footer\":\"index_footer__Fp4ea\"};","import styles from './index.module.less';\n\ntype FooterProps = {\n editorUrl?: string;\n};\n\nconst Footer = (props: FooterProps) => {\n const { editorUrl } = props || {};\n return (\n \n );\n};\n\nexport default Footer;\n","// extracted by mini-css-extract-plugin\nexport default {\"markdown\":\"index_markdown__hcQCp\"};","import { Component, Fragment } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport pkg from '@uiw/react-amap/package.json';\nimport Code from './Code';\nimport Footer from '../Footer';\nimport styles from './index.module.less';\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n}\n\nconst getCodeStr = (data: any[] = [], code: string = '') => {\n data.forEach((node) => {\n if (node.type === 'text') {\n code += node.value;\n } else if (node.children && Array.isArray(node.children)) {\n code += getCodeStr(node.children);\n }\n });\n return code;\n};\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n dependencies?: any;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default || str,\n });\n });\n }\n }\n render() {\n return (\n \n \n * ```\n * 参数用英文逗号隔开\n *\n * bordered 边框\n * bgWhite 设置代码预览背景白色,否则为格子背景。\n * noCode 不显示代码编辑器。\n * noPreview 不显示代码预览效果。\n * noScroll 预览区域不显示滚动条。\n * codePen 显示 Codepen 按钮,要特别注意 包导入的问题,实例中的 import 主要用于 Codepen 使用。\n */\n code: ({ inline, node, ...props }) => {\n const { noPreview, noScroll, bgWhite, noCode, codeSandbox, codePen } = props as any;\n if (inline) {\n return
;\n }\n const config = { noPreview, noScroll, bgWhite, noCode, codeSandbox, codePen } as any;\n if (Object.keys(config).filter((name) => config[name] !== undefined).length === 0) {\n return
;\n }\n return (\n
\n );\n },\n }}\n />\n \n \n );\n }\n}\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = GeneratorFunctionPrototype;\n define(Gp, \"constructor\", GeneratorFunctionPrototype);\n define(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction);\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n });\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n define(Gp, iteratorSymbol, function() {\n return this;\n });\n\n define(Gp, \"toString\", function() {\n return \"[object Generator]\";\n });\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, in modern engines\n // we can explicitly access globalThis. In older engines we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","const _importedScript: { [src: string]: true } = {};\n\n/**\n * load dependency by css tag\n */\nexport function requireCss(src: string, id: string = '_react_amap_css'): Promise {\n const headElement = document && (document.head || document.getElementsByTagName('head')[0]);\n const dom = document.getElementById(id);\n return new Promise((resolve, reject) => {\n if (!document || src in _importedScript || dom) {\n resolve();\n return;\n }\n const script = document.createElement('link');\n script.type = 'text/css';\n script.rel = 'stylesheet';\n script.id = id;\n script.href = src;\n script.onerror = (err) => {\n headElement.removeChild(script);\n reject(new URIError(`The css ${src} is no accessible.`));\n };\n script.onload = () => {\n _importedScript[src] = true;\n resolve();\n };\n headElement.appendChild(script);\n });\n}\n\n/**\n * load dependency by script tag\n */\nexport function requireScript(src: string, id: string = '_react_amap_plugin'): Promise {\n const headElement = document && (document.head || document.getElementsByTagName('head')[0]);\n const dom = document.getElementById(id);\n return new Promise((resolve, reject) => {\n if (!document || src in _importedScript || dom) {\n resolve();\n return;\n }\n const script = document.createElement('script');\n script.type = 'text/javascript';\n script.id = id;\n script.async = true;\n script.defer = true;\n script.src = src;\n script.onerror = (err) => {\n headElement.removeChild(script);\n reject(new URIError(`The Script ${src} is no accessible.`));\n };\n script.onload = () => {\n _importedScript[src] = true;\n resolve();\n };\n headElement.appendChild(script);\n });\n}\n","/// \n\nimport React, { Component, PropsWithChildren } from 'react';\nimport { requireScript } from '@uiw/react-amap-require-script';\n\nexport type APILoaderConfig = PropsWithChildren<{\n /**\n * akay 密钥\n * 您需先[申请密钥(ak)](https://lbs.amap.com/dev/key/app)。开发文档说明地址:https://lbs.amap.com/api/javascript-api/guide/abc/prepare\n *\n * 1. 首先,[注册开发者账号](https://lbs.amap.com/dev/id/newuser),成为高德开放平台开发者\n * 2. 登陆之后,在进入「应用管理」 页面「创建新应用」\n * 3. 为应用[添加 Key](https://lbs.amap.com/dev/key/app),「服务平台」一项请选择「 Web 端 ( JSAPI ) 」\n *\n */\n akay: string;\n /**\n * SDK 包版本\n * @default 1.4.15\n */\n version?: string;\n /**\n * 协议,默认是根据当前网站协议的\n */\n protocol?: 'http' | 'https';\n /**\n * 请求 SDK 的前半部分\n * https://webapi.amap.com/maps?v=1.4.15&key=您申请的key值\n * @default webapi.amap.com/maps\n */\n hostAndPath?: string;\n /**\n * JSONP 回调函数\n */\n callbackName?: string;\n /**\n * 加载一个或者多个插件\n * @example `AMap.ToolBar,AMap.Driving`\n */\n plugin?: string;\n}>\n\nexport function delay(time: number): Promise {\n return new Promise((resolve, reject) => {\n window.setTimeout(resolve, time);\n });\n}\n\nexport interface APILoaderProps extends APILoaderConfig {\n /**\n * 用于展示加载中或错误状态\n */\n fallback?: (error?: Error) => React.ReactNode;\n}\n\ninterface State {\n loaded: boolean;\n error?: Error;\n}\n\nconst DEFAULT_RETRY_TIME = 3;\n\n/**\n * APILoader 用于加载百度地图依赖\n */\nexport class APILoader extends Component {\n public static defaultProps = {\n protocol: /^file:/.test(window.location.protocol) ? 'https' : window.location.protocol,\n akay: '',\n hostAndPath: 'webapi.amap.com/maps',\n version: '2.0',\n callbackName: 'load_amap_sdk',\n plugin: '',\n };\n\n private isMountedOk: boolean = false;\n\n /**\n * 全局可能存在多个 Loader 同时渲染, 但是只能由一个负责加载\n */\n private static waitQueue: Array<[Function, Function]> = [];\n public state: State = {\n loaded: !!window.AMap,\n };\n\n public constructor(props: APILoaderProps) {\n super(props);\n if (props.akay === null) {\n throw new TypeError('AMap: akay is required');\n }\n }\n\n public componentDidMount() {\n this.isMountedOk = true;\n const { callbackName } = this.props;\n if (window.AMap == null) {\n if (window[callbackName as any]) {\n APILoader.waitQueue.push([this.finish, this.handleError]);\n return;\n }\n this.loadMap();\n }\n }\n\n componentWillUnmount() {\n this.isMountedOk = false;\n }\n\n public render() {\n if (this.state.loaded) {\n return this.props.children;\n }\n if (this.props.fallback) {\n return this.props.fallback(this.state.error);\n }\n if (this.state.error) {\n return {this.state.error.message}
;\n }\n return null;\n }\n\n private getScriptSrc() {\n const cfg = this.props;\n let protocol = (cfg.protocol || window.location.protocol) as APILoaderConfig['protocol'];\n if (protocol!.indexOf(':') === -1) {\n protocol += ':';\n }\n\n let plugin = '';\n if (cfg.plugin) {\n plugin = `&plugin=${cfg.plugin}`;\n }\n\n return `${protocol}//${cfg.hostAndPath}?v=${cfg.version}&key=${cfg.akay}&callback=${cfg.callbackName}${plugin}`;\n }\n /**\n * load BaiduMap in script tag\n */\n private async loadMap() {\n const { callbackName } = this.props;\n const src = this.getScriptSrc();\n (window as any)[callbackName as any] = () => {\n // flush queue\n const queue = APILoader.waitQueue;\n APILoader.waitQueue = [];\n queue.forEach((task) => task[0]());\n this.finish();\n };\n\n for (let i = 0; i < DEFAULT_RETRY_TIME; i++) {\n try {\n await requireScript(src);\n break;\n } catch (error: any) {\n if (i === DEFAULT_RETRY_TIME - 1) {\n const err = new Error(`Failed to load AMap: ${error.message}`);\n // flush queue\n const queue = APILoader.waitQueue;\n APILoader.waitQueue = [];\n queue.forEach((task) => task[1](err));\n this.handleError(err);\n return;\n }\n await delay(i * 1000);\n }\n }\n }\n\n private handleError = (error: Error) => {\n if (this.isMountedOk) {\n this.setState({ error });\n }\n };\n\n private finish = () => {\n if (this.isMountedOk) {\n this.setState({\n loaded: true,\n });\n }\n };\n}\n","/// \nimport ReactDOM from 'react-dom';\nimport React, { Fragment, useEffect, useState, useRef, useLayoutEffect, useCallback } from 'react';\n\n/**\n * 对实例有 setStatus 更改状态的处理\n * @param instance\n * @param props\n * @param propsName\n */\nexport function useSetStatus any; setStatus: (opt: any) => void }, F = {}>(\n instance: T,\n props = {} as F,\n propsName: string[] = [],\n) {\n propsName.forEach((name) => {\n const eName = name as keyof F;\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const [state, setState] = useState(props[eName]);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (instance && props[eName] !== undefined) {\n if (props[eName] !== state) {\n // map.setStatus({\n // dragEnable: true,\n // keyboardEnable: true,\n // doubleClickZoom: true,\n // zoomEnable: true,\n // rotateEnable: true\n // });\n const status = instance.getStatus();\n instance.setStatus({ ...status, [eName]: props[eName] });\n setState(props[eName]);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, props[eName]]);\n });\n}\n\n/**\n * 针对 Overlay 类型的组件,有公共的是否显示 对象处理\n * 通过参数 `visiable` 来控制执行 `show()` or `hide()`\n */\nexport function useVisiable void; hide: () => void }>(instance: T, visiable?: boolean) {\n const [state, setState] = useState(visiable);\n useEffect(() => {\n if (instance && visiable !== undefined) {\n if (visiable) {\n instance.show && instance.show();\n } else {\n instance.hide && instance.hide();\n }\n if (visiable !== state) {\n setState(visiable);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, visiable]);\n}\n\n/**\n * 获取上一轮的 props 或 state\n * How to get the previous props or state?\n * https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state\n * @example\n * ```js\n * function Counter() {\n * const [count, setCount] = useState(0);\n * const prevCount = usePrevious(count);\n * return Now: {count}, before: {prevCount} ;\n * }\n * ```\n */\nexport function usePrevious(value: T) {\n const ref = useRef();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n}\n\nexport type EventNameType = 'LowerCase';\n\n/**\n * 绑定事件\n * @param instance 实例对象\n * @param props 传递进来的 props\n * @param eventName 事件的名字,如,我们使用 `onClick` 事件,最终被转换成,`click` 绑定到实例中,`onDblClick` => `dblclick`\n *\n * @example\n * ```js\n * useEventProperties(marker!, props, [\n * 'onMouseMove', 'onZoomChange', 'onMapMove', 'onMouseWheel', 'onZoomStart'\n * ]);\n * ```\n */\nexport function useEventProperties, F>(\n instance: T,\n props = {} as F,\n eventName: string[] = [],\n type?: EventNameType,\n) {\n eventName.forEach((name) => {\n const eventName = name as keyof F;\n const eventHandle = props[eventName];\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (!instance) return;\n let eName = name.toLocaleLowerCase().replace(/^on/, '');\n if (eventHandle && eName) {\n instance.on(eName, eventHandle);\n }\n return () => {\n if (eName && eventHandle) {\n instance.off(eName, eventHandle);\n }\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, props[eventName]]);\n });\n}\n\n/**\n * 属性受控\n * @param instance 实例对象\n * @param props 属性值\n * @param propsName 多个属性设置的名称\n * @example\n * ```ts\n * useSettingProperties(polyline!, props, [\n * 'Path'\n * ]);\n * ```\n */\nexport function useSettingProperties(instance = {} as T, props = {} as F, propsName: string[] = []) {\n propsName.forEach((name) => {\n const eName = `set${name}` as keyof T;\n const vName = `${name.charAt(0).toLowerCase()}${name.slice(1)}` as keyof F;\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const [state, setState] = useState(props[vName]);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (instance && props[vName] !== undefined) {\n if (props[vName] !== state && instance[eName] && typeof instance[eName] === 'function') {\n (instance[eName] as any)(props[vName]);\n setState(props[vName]);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, props[vName]]);\n });\n}\n\nexport const getReactDOMClient = async () => {\n let _ReactDOM;\n try {\n // @ts-ignore\n _ReactDOM = await import(/* webpackIgnore: true */ 'react-dom/client');\n // 使用 require 解决 react v17 ts 报错问题\n // _ReactDOM = require('react-dom/client');\n } catch (err) {\n // console.warn(`如果使用的是 react-dom 小于v18的版本,可以忽略此警告:${err}`)\n }\n return _ReactDOM;\n};\n\n/**\n * react 17\n *\n * ```jsx\n * import ReactDOM from 'react-dom';\n * ReactDOM.render(, _mount_ );\n * ```\n *\n * react 18\n *\n * ```jsx\n * import ReactDOM from 'react-dom/client';\n * ReactDOM.createRoot(_mount_).render(
)\n * ```\n */\nexport function useRenderDom(props: { children: React.ReactNode }) {\n const container = useRef(document.createElement('div'));\n const ReactDOMClient = useCallback(async () => (window.ReactDOM ? window.ReactDOM : await getReactDOMClient()), []);\n const maybeV18Root = useRef();\n\n useLayoutEffect(() => {\n (async () => {\n const RDom = (await ReactDOMClient()) || ReactDOM;\n const isV18 = Reflect.has(RDom, 'createRoot');\n maybeV18Root.current = isV18 ? RDom.createRoot(container.current) : null;\n })();\n }, []);\n\n useLayoutEffect(() => {\n if (maybeV18Root.current) {\n // @ts-ignore\n maybeV18Root.current.render(
{props.children} );\n } else if (ReactDOM) {\n ReactDOM.render(
{props.children} , container.current);\n }\n }, [props.children, container.current, maybeV18Root.current]);\n\n return container.current;\n}\n","import { useState, useEffect } from 'react';\nimport { useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { AutoCompleteProps } from './';\n\nexport interface UseAutoComplete extends AutoCompleteProps {}\nexport const useAutoComplete = (props = {} as UseAutoComplete) => {\n const [autoComplete, setAutoComplete] = useState
();\n useEffect(() => {\n if (AMap && !autoComplete) {\n let instance: AMap.AutoComplete;\n AMap.plugin(['AMap.AutoComplete'], () => {\n instance = new AMap.AutoComplete(props);\n setAutoComplete(instance);\n });\n return () => {\n if (instance) {\n setAutoComplete(undefined);\n }\n };\n }\n }, []);\n useSettingProperties(autoComplete!, props, ['Type', 'City', 'CityLimit']);\n useEventProperties(autoComplete!, props, ['onChoose', 'onSelect']);\n return {\n autoComplete,\n setAutoComplete,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useAutoComplete } from './useAutoComplete';\nexport * from './useAutoComplete';\n\nexport interface AutoCompleteProps extends OverlayProps, AMap.AutoCompleteOptions, AMap.AutoCompleteEvents {}\nexport const AutoComplete = React.forwardRef((props, ref) => {\n const { autoComplete } = useAutoComplete(props);\n useImperativeHandle(ref, () => ({ ...props, autoComplete }));\n return null;\n});\n","import React from 'react';\nimport { useContext } from 'react';\n\ntype InitialState = {\n AMap?: typeof AMap;\n map?: AMap.Map;\n container?: HTMLDivElement | null;\n};\n\nexport const initialState: Partial = {\n map: undefined,\n AMap: undefined,\n container: undefined,\n};\n\nexport const reducer = (state: InitialState, action: InitialState) => {\n return {\n ...state,\n ...action,\n };\n};\n\nexport interface Context {\n state: Partial;\n dispatch: React.Dispatch;\n}\n\nexport const Context = React.createContext({\n state: initialState,\n dispatch: () => null,\n});\n\nexport function useMapContext() {\n const { state, dispatch } = useContext(Context);\n return { ...state, state, dispatch };\n}\n","import { useState, useMemo, useEffect, useContext } from 'react';\nimport { useSetStatus, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { MapProps } from '.';\nimport { Context } from './context';\n\nexport interface OverlayProps extends MapChildProps {}\n\n/**\n * 此类型是 `` 组件传递给子组件(如 ``)的两个 props\n */\nexport interface MapChildProps {\n /**\n * 地图API的核心类,SDK加载完成才有\n */\n AMap?: typeof AMap;\n /**\n * 实例化后的地图对象\n */\n map?: AMap.Map;\n}\n\nexport interface UseMap extends MapProps, MapChildProps {\n /**\n * 指定的容器\n */\n container?: HTMLDivElement | null;\n}\n\nexport const useMap = (props: UseMap = {}) => {\n const { ...other } = props;\n const [map, setMap] = useState();\n const [zoom, setZoom] = useState(props.zoom || 15);\n const [container, setContainer] = useState(props.container);\n const { dispatch } = useContext(Context);\n useEffect(() => {\n if (container && !map && AMap) {\n container.className = container.className + ' react-amap-wapper';\n const instance = new AMap.Map(container, { zoom, ...other });\n setMap(instance);\n }\n return () => {\n if (map) {\n map.clearInfoWindow();\n map.clearLimitBounds();\n map.clearMap();\n map.destroy();\n setMap(undefined);\n }\n };\n }, [container, map]);\n\n useEffect(() => {\n if (map && container) {\n dispatch({ map, container, AMap });\n }\n return () => {\n dispatch({ map: undefined, container: undefined, AMap: undefined });\n };\n }, [map, container]);\n\n useMemo(() => {\n if (map && typeof props.zoom === 'number' && zoom !== props.zoom && props.zoom >= 2 && props.zoom <= 20) {\n setZoom(props.zoom);\n map.setZoom(props.zoom);\n }\n }, [zoom, props.zoom]);\n\n useMemo(() => {\n if (props.center && map) {\n map.setCenter(props.center);\n }\n }, [map, props.center]);\n\n useSetStatus(map!, props, [\n 'dragEnable',\n 'zoomEnable',\n 'jogEnable',\n 'pitchEnable',\n 'rotateEnable',\n 'animateEnable',\n 'keyboardEnable',\n ]);\n // setStatus, setZoomAndCenter, setFitView\n // 'Center',\n useSettingProperties(map!, props, [\n 'Zoom',\n 'LabelzIndex',\n 'Layers',\n 'City',\n 'Bounds',\n 'LimitBounds',\n 'Lang',\n 'Rotation',\n 'DefaultCursor',\n 'MapStyle',\n 'Features',\n 'DefaultLayer',\n 'Pitch',\n ]);\n useEventProperties(map!, props, [\n 'onMouseMove',\n 'onZoomChange',\n 'onMapMove',\n 'onMouseWheel',\n 'onZoomStart',\n 'onMouseOver',\n 'onMouseOut',\n 'onDblClick',\n 'onClick',\n 'onZoomEnd',\n 'onMoveEnd',\n 'onMouseUp',\n 'onMouseDown',\n 'onRightClick',\n 'onMoveStart',\n 'onDragStart',\n 'onDragging',\n 'onDragEnd',\n 'onHotspotOut',\n 'onHotspotOver',\n 'onTouchStart',\n 'onComplete',\n 'onHotspotClick',\n 'onTouchMove',\n 'onTouchEnd',\n 'onResize',\n ]);\n return {\n map,\n setMap,\n zoom,\n setZoom,\n container,\n setContainer,\n };\n};\n","/// \nimport {\n useRef,\n useEffect,\n useImperativeHandle,\n Fragment,\n Children,\n cloneElement,\n isValidElement,\n forwardRef,\n useReducer,\n} from 'react';\nimport { useMap } from './useMap';\nimport { Context, reducer, initialState } from './context';\n\nexport * from './useMap';\nexport * from './context';\n\ntype RenderProps =\n | { children?: (data: { AMap: typeof AMap; map: AMap.Map; container?: HTMLDivElement | null }) => void }\n | { children?: React.ReactNode };\n\nexport interface MapProps extends AMap.MapEvents, AMap.MapOptions {\n className?: React.HTMLAttributes['className'];\n style?: React.HTMLAttributes['style'];\n container?: HTMLDivElement | null;\n}\n\nexport function Provider(props: RenderProps) {\n const [state, dispatch] = useReducer(reducer, initialState);\n return {props.children} ;\n}\n\nexport const Map = forwardRef(\n ({ className, children, ...props }, ref) => {\n const [state, dispatch] = useReducer(reducer, initialState);\n const elmRef = useRef(null);\n const { setContainer, container, map } = useMap({\n container: props.container || (elmRef.current as MapProps['container']),\n ...props,\n });\n useEffect(() => setContainer(elmRef.current), [elmRef.current]);\n useImperativeHandle(ref, () => ({ ...props, map, AMap, container: props.container || elmRef.current }), [map]);\n const childs = Children.toArray(children);\n\n useEffect(() => {\n if (map) {\n dispatch({ map, container: elmRef.current, AMap });\n }\n }, [map]);\n\n return (\n \n {!props.container && (\n
\n )}\n {AMap && map && typeof children === 'function' && children({ AMap, map, container })}\n {AMap &&\n map &&\n childs.map((child, key) => {\n if (!isValidElement(child)) return null;\n if (typeof child === 'string') {\n return cloneElement({child} , { key });\n }\n if (child.type && typeof child.type === 'string') {\n return cloneElement(child, { key });\n }\n return cloneElement(child, {\n ...child.props,\n AMap,\n map,\n container,\n key,\n });\n })}\n \n );\n },\n);\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { BezierCurveProps } from '.';\n\nexport interface UseBezierCurve extends BezierCurveProps {}\nexport const useBezierCurve = (props = {} as UseBezierCurve) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const [bezierCurve, setBezierCurve] = useState();\n useEffect(() => {\n if (AMap && map && !bezierCurve) {\n let instance: AMap.BezierCurve = new AMap.BezierCurve({ ...other });\n map.add(instance);\n setBezierCurve(instance);\n return () => {\n if (instance) {\n map && map.removeLayer(instance);\n setBezierCurve(undefined);\n }\n };\n }\n }, [map]);\n\n useVisiable(bezierCurve!, visiable);\n useSettingProperties(bezierCurve!, props, [\n 'Options',\n 'Path',\n 'ExtData',\n 'ExtData',\n ]);\n useEventProperties(bezierCurve!, props, [\n 'onHide',\n 'onShow',\n 'onDblClick',\n 'onMouseOver',\n 'onMouseUp',\n 'onMouseDown',\n 'onclick',\n 'onTouchEnd',\n 'onTouchMove',\n 'onTouchStart',\n 'onRightClick',\n 'onMouseOut',\n ]);\n return {\n bezierCurve,\n setBezierCurve,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useBezierCurve } from './useBezierCurve';\nexport * from './useBezierCurve';\n\nexport interface BezierCurveProps extends OverlayProps, AMap.BezierCurveEvents, AMap.BezierCurveOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const BezierCurve = React.forwardRef((props, ref) => {\n const { bezierCurve } = useBezierCurve(props);\n useImperativeHandle(ref, () => ({ ...props, bezierCurve }));\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { CircleProps } from '.';\n\nexport interface UseCircle extends CircleProps {}\nexport const useCircle = (props = {} as UseCircle) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const [circle, setCircle] = useState();\n useEffect(() => {\n if (AMap && map && !circle) {\n let instance: AMap.Circle = new AMap.Circle({ ...other });\n map.add(instance);\n setCircle(instance);\n }\n return () => {\n if (circle) {\n map && map.remove(circle);\n setCircle(undefined);\n }\n };\n }, [map]);\n\n useVisiable(circle!, visiable);\n useSettingProperties(circle!, props, ['Center', 'Raius', 'Options', 'ExtData']);\n useEventProperties(circle!, props, [\n 'onHide',\n 'onShow',\n 'onRightClick',\n 'onClick',\n 'onTouchEnd',\n 'onDblClick',\n 'onTouchMove',\n 'onTouchStart',\n 'onMouseOut',\n 'onMouseOver',\n 'onMouseUp',\n 'onMouseDown',\n ]);\n return {\n circle,\n setCircle,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useCircle } from './useCircle';\nexport * from './useCircle';\n\nexport interface CircleProps extends OverlayProps, AMap.CircleEvents, AMap.CircleOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const Circle = React.forwardRef((props, ref) => {\n const { circle } = useCircle(props);\n useImperativeHandle(ref, () => ({ ...props, circle }));\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { CircleMarkerProps } from '.';\n\nexport interface UseCircleMarker extends CircleMarkerProps {}\nexport const useCircleMarker = (props = {} as UseCircleMarker) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const [circleMarker, setCircleMarker] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!circleMarker) {\n let instance: AMap.CircleMarker = new AMap.CircleMarker({ ...other });\n map.add(instance);\n setCircleMarker(instance);\n return () => {\n if (instance) {\n map && map.removeLayer(instance);\n setCircleMarker(undefined);\n }\n };\n }\n }, [map]);\n\n useVisiable(circleMarker!, visiable);\n useSettingProperties(circleMarker!, props, [\n 'Center',\n 'Raius',\n 'zIndex',\n 'Bubble',\n 'Cursor',\n 'StrokeColor',\n 'StrokeOpacity',\n 'StrokeWeight',\n 'FillColor',\n 'FillOpacity',\n 'Draggable',\n 'ExtData',\n ]);\n useEventProperties(circleMarker!, props, [\n 'onHide',\n 'onShow',\n 'onMouseover',\n 'onTouchend',\n 'onClick',\n 'onTouchmove',\n 'onRightclick',\n 'onMouseup',\n 'onMouseout',\n 'onTouchstart',\n 'onMousedown',\n 'onDblclick',\n ]);\n return {\n circleMarker,\n setCircleMarker,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useCircleMarker } from './useCircleMarker';\nexport * from './useCircleMarker';\n\nexport interface CircleMarkerProps extends OverlayProps, AMap.CircleMarkerEvents, AMap.CircleMarkerOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const CircleMarker = React.forwardRef((props, ref) => {\n const { circleMarker } = useCircleMarker(props);\n useImperativeHandle(ref, () => ({ ...props, circleMarker }));\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { ContextMenuProps } from '.';\n\nexport interface UseContextMenu extends ContextMenuProps {}\nexport const useContextMenu = (props = {} as UseContextMenu) => {\n const { position, ...other } = props;\n const { map } = useMapContext();\n const [contextMenu, setContextMenu] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!contextMenu) {\n let instance: AMap.ContextMenu = new AMap.ContextMenu({ ...other });\n setContextMenu(instance);\n const rightclick = (e: AMap.MapsEvent) => instance.open(map, position || e.lnglat);\n map.on('rightclick', rightclick);\n return () => {\n if (instance) {\n map.off('rightclick', rightclick);\n map && map.removeLayer(instance);\n setContextMenu(undefined);\n }\n };\n }\n }, [map]);\n useEventProperties(contextMenu!, props, ['onOpen', 'onClose']);\n return {\n contextMenu,\n setContextMenu,\n };\n};\n","import { useEffect } from 'react';\nimport { MapChildProps } from '@uiw/react-amap-map';\n\nexport interface ContextMenuItem extends MapChildProps {\n contextMenu?: AMap.ContextMenu;\n text?: string;\n onClick?: (event: MouseEvent) => void;\n}\n\nconst noop = function () {};\n\nexport default (props: ContextMenuItem = {}) => {\n const { text = '', onClick = noop } = props;\n useEffect(() => {\n if (props.contextMenu) {\n props.contextMenu.addItem(text, onClick, 1);\n }\n return () => {\n if (props.contextMenu) {\n props.contextMenu.removeItem(text, onClick);\n }\n };\n }, [props.contextMenu, props.text, props.onClick]);\n return null;\n};\n","import React, { useImperativeHandle, Fragment } from 'react';\nimport { MapChildProps } from '@uiw/react-amap-map';\nimport { useContextMenu } from './useContextMenu';\nimport Item from './Item';\n\nexport * from './useContextMenu';\nexport * from './Item';\nexport interface ContextMenuProps extends MapChildProps, AMap.ContextMenuOptions, AMap.ContextMenuEvents {}\n\nexport const ContextMenu = React.forwardRef((props, ref) => {\n const { contextMenu } = useContextMenu(props);\n useImperativeHandle(ref, () => ({ ...props, contextMenu }));\n const childs = React.Children.toArray(props.children);\n return (\n \n {AMap &&\n contextMenu &&\n childs.map((child, key) => {\n if (!React.isValidElement(child)) return null;\n return React.cloneElement(child, { ...child.props, AMap, map: props.map, contextMenu, key });\n })}\n \n );\n});\n\ntype ContextMenu = typeof ContextMenu & {\n Item: typeof Item;\n};\n(ContextMenu as ContextMenu).Item = Item;\n","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { ControlBarControlProps } from '.';\n\nexport interface UseControlBarControl extends ControlBarControlProps {}\n\nexport function useControlBarControl(props = {} as UseControlBarControl) {\n const { position, visiable, offset } = props;\n const [controlBarControl, setControlBarControl] = useState();\n const { map } = useMapContext();\n useEffect(() => {\n if (map && !controlBarControl) {\n let instance: AMap.ControlBar;\n map.plugin(['AMap.ControlBar', 'AMap.HawkEye'], () => {\n instance = new AMap.ControlBar({\n offset: offset,\n position,\n });\n map.addControl(instance);\n setControlBarControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n\n useVisiable(controlBarControl!, visiable);\n return {\n controlBarControl,\n setControlBarControl,\n };\n}\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useControlBarControl } from './useControlBarControl';\nexport * from './useControlBarControl';\n\nexport interface ControlBarControlProps extends OverlayProps, AMap.ControlBarOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\n\nexport const ControlBarControl = React.forwardRef((props, ref) => {\n const { controlBarControl } = useControlBarControl(props);\n useImperativeHandle(ref, () => ({ ...props, controlBarControl }), [controlBarControl]);\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { EllipseProps } from './';\n\nexport interface UseEllipse extends EllipseProps {}\nexport const useEllipse = (props = {} as UseEllipse) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const [ellipse, setEllipse] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!ellipse) {\n let instance: AMap.Ellipse = new AMap.Ellipse({ ...other });\n map.add(instance);\n setEllipse(instance);\n return () => {\n if (instance) {\n map && map.removeLayer(instance);\n setEllipse(undefined);\n }\n };\n }\n }, [map]);\n\n useVisiable(ellipse!, visiable);\n useSettingProperties(ellipse!, props, ['Center', 'Radius', 'Options', 'ExtData']);\n useEventProperties(ellipse!, props, [\n 'onHide',\n 'onShow',\n 'onClick',\n 'onDblClick',\n 'onRightClick',\n 'onMouseOut',\n 'onMouseOver',\n 'onMouseUp',\n 'onMouseDown',\n 'onTouchEnd',\n 'onTouchMove',\n 'onTouchStart',\n ]);\n return {\n ellipse,\n setEllipse,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useEllipse } from './useEllipse';\nexport * from './useEllipse';\n\nexport interface EllipseProps extends OverlayProps, AMap.EllipseEvents, AMap.EllipseOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const Ellipse = React.forwardRef((props, ref) => {\n const { ellipse } = useEllipse(props);\n useImperativeHandle(ref, () => ({ ...props, ellipse }));\n return null;\n});\n","import { useState, useMemo, useEffect } from 'react';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { GeolocationProps } from '.';\n\nexport interface UseGeolocation extends GeolocationProps {}\nexport const useGeolocation = (props = {} as UseGeolocation) => {\n const { type = 'position', onComplete, onError, ...other } = props;\n const [geolocation, setGeolocation] = useState();\n const { map } = useMapContext();\n useEffect(() => {\n if (AMap && !geolocation) {\n let instance: AMap.Geolocation;\n AMap.plugin(['AMap.Geolocation'], () => {\n instance = new AMap.Geolocation({ ...other });\n setGeolocation(instance);\n });\n return () => {\n if (instance) {\n setGeolocation(undefined);\n }\n };\n }\n }, [AMap]);\n\n function callback(status: 'error' | 'complete', result: AMap.GeolocationResult) {\n if (status === 'complete' && onComplete) {\n onComplete(result);\n } else if (onError) {\n onError(result);\n }\n }\n\n useMemo(() => {\n if (!/^(position|cityInfo)$/.test(type)) return;\n const funName = type === 'position' ? 'getCurrentPosition' : 'getCityInfo';\n if (geolocation && map) {\n geolocation[funName](callback);\n map.addControl(geolocation);\n } else if (geolocation) {\n geolocation[funName](callback);\n }\n }, [geolocation]);\n\n return {\n geolocation,\n setGeolocation,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useGeolocation } from './useGeolocation';\n\nexport * from './useGeolocation';\nexport interface GeolocationProps extends OverlayProps, AMap.GeolocationEvents, AMap.GeolocationOptions {\n /**\n * 定位类型\n * - position 获取 用户的精确位置,有失败几率\n * - cityInfo 根据用户 IP 获取 用户所在城市信息\n * @default position\n */\n type?: 'position' | 'cityInfo';\n}\nexport const Geolocation = React.forwardRef((props, ref) => {\n const { geolocation } = useGeolocation(props);\n useImperativeHandle(ref, () => ({ ...props, geolocation }));\n return null;\n});\n","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { HawkEyeControlProps } from '.';\n\nexport interface UseHawkEyeControl extends HawkEyeControlProps {}\n\nexport function useHawkEyeControl(props = {} as UseHawkEyeControl) {\n const [hawkEyeControl, setHawkEyeControl] = useState();\n const { offset, visiable, ...other } = props;\n const { map } = useMapContext();\n useEffect(() => {\n if (map && !hawkEyeControl) {\n let instance: AMap.HawkEye;\n map.plugin(['AMap.HawkEye'], () => {\n instance = new AMap.HawkEye({ offset: offset, ...other });\n map.addControl(instance);\n setHawkEyeControl(instance);\n });\n\n return () => {\n if (instance && map) {\n map.removeLayer(instance);\n setHawkEyeControl(undefined);\n }\n };\n }\n }, [map]);\n\n useVisiable(hawkEyeControl! as any, visiable);\n return {\n hawkEyeControl,\n setHawkEyeControl,\n };\n}\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useHawkEyeControl } from './useHawkEyeControl';\nexport * from './useHawkEyeControl';\n\nexport interface HawkEyeControlProps extends OverlayProps, AMap.HawkEyeOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\n\nexport const HawkEyeControl = React.forwardRef((props, ref) => {\n const { hawkEyeControl } = useHawkEyeControl(props);\n useImperativeHandle(ref, () => ({ ...props, hawkEyeControl }), [hawkEyeControl]);\n return null;\n});\n","import { useState, useMemo, useEffect } from 'react';\nimport { useEventProperties, useSettingProperties, useRenderDom } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { InfoWindowProps } from '.';\n\nexport interface UseInfoWindow extends InfoWindowProps {}\nexport const useInfoWindow = (props = {} as UseInfoWindow) => {\n const { visiable, position, ...other } = props;\n const { map } = useMapContext();\n const [isOpen, setIsOpen] = useState(visiable);\n const [infoWindow, setInfoWindow] = useState();\n const container = useRenderDom({ children: props.children });\n\n useEffect(() => {\n if (!AMap || !map) return;\n if (!infoWindow) {\n const positionCenter = map.getCenter();\n if (props.children) {\n other.content = container;\n }\n let instance: AMap.InfoWindow = new AMap.InfoWindow({ ...other, position: position || positionCenter });\n setInfoWindow(instance);\n if (isOpen) {\n instance.open(map, position || positionCenter);\n }\n return () => {\n if (instance) {\n map && map.remove(instance);\n setInfoWindow(undefined);\n }\n };\n }\n }, [map]);\n\n useEffect(() => {\n if (infoWindow) {\n infoWindow.setContent(props.children ? container : other.content || '');\n }\n }, [props.children, container, other.content, infoWindow]);\n\n useMemo(() => {\n if (isOpen !== visiable && infoWindow && map) {\n setIsOpen(visiable);\n if (visiable) {\n const positionCenter = map.getCenter();\n infoWindow.open(map, position || positionCenter);\n } else {\n infoWindow.close();\n }\n }\n }, [visiable, infoWindow]);\n\n useEffect(() => {\n if (!map || !infoWindow || !visiable) return;\n const positionCenter = map.getCenter();\n infoWindow.open(map, position || positionCenter);\n }, [position]);\n\n useSettingProperties(infoWindow!, props, ['Content', 'Anchor', 'Size']);\n useEventProperties(infoWindow!, props, ['onOpen', 'onClose', 'onChange']);\n return {\n isOpen,\n setIsOpen,\n infoWindow,\n setInfoWindow,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useInfoWindow } from './useInfoWindow';\n\nexport * from './useInfoWindow';\nexport interface InfoWindowProps extends OverlayProps, AMap.InforWindowEvents, AMap.InforWindowOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n children?: JSX.Element;\n}\nexport const InfoWindow = React.forwardRef((props, ref) => {\n const { infoWindow } = useInfoWindow(props);\n useImperativeHandle(ref, () => ({ ...props, infoWindow }));\n return null;\n});\n","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { MapTypeControlProps } from '.';\n\nexport interface UseMapTypeControl extends MapTypeControlProps {}\n\nexport function useMapTypeControl(props = {} as UseMapTypeControl) {\n const [mapTypeControl, setMapTypeControl] = useState();\n const { visiable, defaultType = 0, ...other } = props;\n const { map } = useMapContext();\n useEffect(() => {\n if (map && !mapTypeControl) {\n let instance: AMap.MapType;\n map.plugin(['AMap.MapType'], () => {\n instance = new AMap.MapType({ defaultType, ...other });\n map.addControl(instance);\n setMapTypeControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n\n useVisiable(mapTypeControl!, visiable);\n return {\n mapTypeControl,\n setMapTypeControl,\n };\n}\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useMapTypeControl } from './useMapTypeControl';\n\nexport * from './useMapTypeControl';\nexport interface MapTypeControlProps extends OverlayProps, AMap.MapTypeOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\n\nexport const MapTypeControl = React.forwardRef((props, ref) => {\n const { mapTypeControl } = useMapTypeControl(props);\n useImperativeHandle(ref, () => ({ ...props, mapTypeControl }), [mapTypeControl]);\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties, useRenderDom } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { MarkerProps } from './';\n\nexport interface UseMarker extends MarkerProps {}\nexport const useMarker = (props: UseMarker = {}) => {\n const { visiable, children, ...other } = props;\n const { map } = useMapContext();\n const [marker, setMarker] = useState();\n const container = useRenderDom({ children: props.children });\n\n useEffect(() => {\n if (!marker && map) {\n if (props.children) {\n other.content = container;\n }\n let instance: AMap.Marker = new AMap.Marker({ ...other });\n map.add(instance);\n setMarker(instance);\n }\n return () => {\n if (marker) {\n marker.remove();\n setMarker(undefined);\n }\n };\n }, [map, marker]);\n\n useEffect(() => {\n if (marker) {\n marker.setContent(props.children ? container : props.content || '');\n }\n }, [props.children, container, props.content, marker]);\n\n // useEffect(() => {\n // if (marker) {\n // setContent(props.children);\n // }\n // }, [props.children, marker]);\n\n useVisiable(marker!, visiable);\n useSettingProperties(marker!, props, [\n 'Path',\n 'Anchor',\n 'Offset',\n 'Animation',\n 'Clickable',\n 'Position',\n 'Angle',\n 'Label',\n 'zIndex',\n 'Icon',\n 'Draggable',\n 'Cursor',\n 'Content',\n 'Map',\n 'Title',\n 'Top',\n 'Shadow',\n 'Shape',\n 'ExtData',\n ]);\n useEventProperties(marker!, props, [\n 'onClick',\n 'onDblClick',\n 'onRightClick',\n 'onMouseMove',\n 'onMouseOver',\n 'onMouseOut',\n 'onMouseDown',\n 'onMouseUp',\n 'onDragStart',\n 'onDragging',\n 'onDragEnd',\n 'onMoving',\n 'onMoveEnd',\n 'onMoveAlong',\n 'onTouchStart',\n 'onTouchMove',\n 'onTouchEnd',\n ]);\n return {\n marker,\n setMarker,\n };\n};\n","import { useImperativeHandle, forwardRef } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useMarker } from './useMarker';\n\nexport * from './useMarker';\n\nexport interface MarkerProps extends OverlayProps, AMap.MarkerEvents, AMap.MarkerOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n className?: string;\n children?: JSX.Element;\n}\n\nexport const Marker = forwardRef((props, ref) => {\n const { marker } = useMarker(props);\n useImperativeHandle(ref, () => ({ ...props, marker }), [marker]);\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { MassMarksProps } from './';\n\nexport interface UseMassMarks extends MassMarksProps {}\nexport const useMassMarks = (props = {} as UseMassMarks) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const { opacity = 0.8, zIndex = 1111, style, data } = other || {};\n const [massMarks, setMassMarks] = useState();\n\n useEffect(() => {\n if (!AMap || !map) return;\n if (!massMarks) {\n let initStyle = style;\n if (!initStyle) {\n // JSAPI 2.0 支持显示设置 zIndex, zIndex 越大约靠前,默认按顺序排列\n initStyle = [\n {\n url: 'https://webapi.amap.com/images/mass/mass0.png',\n anchor: new AMap.Pixel(6, 6),\n size: new AMap.Size(11, 11),\n zIndex: 3,\n },\n {\n url: 'https://webapi.amap.com/images/mass/mass1.png',\n anchor: new AMap.Pixel(4, 4),\n size: new AMap.Size(7, 7),\n zIndex: 2,\n },\n {\n url: 'https://webapi.amap.com/images/mass/mass2.png',\n anchor: new AMap.Pixel(3, 3),\n size: new AMap.Size(5, 5),\n zIndex: 1,\n },\n ];\n }\n let instance: AMap.MassMarks = new AMap.MassMarks(data || [], { opacity, zIndex, style: initStyle });\n // 将海量点实例添加到地图上\n // map.add(instance);\n setMassMarks(instance);\n instance.setMap(map);\n return () => {\n if (instance) {\n instance.clear();\n setMassMarks(undefined);\n }\n };\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [map]);\n\n useVisiable(massMarks!, visiable);\n useSettingProperties(massMarks!, props, [\n 'Map',\n 'Data',\n 'Style',\n 'Opacity',\n 'zIndex',\n 'Zooms',\n ]);\n\n useEventProperties(massMarks!, props, [\n // 'onRightClick',\n // 'onDragStart',\n // 'onDragging',\n // 'onDragEnd',\n // 'onMoving',\n // 'onMoveEnd',\n // 'onMoveAlong',\n 'onClick',\n 'onDblClick',\n 'onMouseMove',\n 'onMouseOut',\n 'onMouseUp',\n 'onMouseDown',\n 'onMouseOver',\n 'onTouchStart',\n 'onTouchEnd',\n ]);\n\n return { massMarks, setMassMarks };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useMassMarks } from './useMassMarks';\n\nexport * from './useMassMarks';\n\nexport interface MassMarksProps extends OverlayProps, AMap.MassMarksEvents, AMap.MassMarkersOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n data?: AMap.MassMarkersDataOptions;\n}\n\nexport const MassMarks = React.forwardRef((props, ref) => {\n const { massMarks } = useMassMarks(props);\n useImperativeHandle(ref, () => ({ ...props, massMarks }), [massMarks, props]);\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { PolygonProps } from '.';\n\nexport interface UsePolygon extends PolygonProps {}\nexport const usePolygon = (props = {} as UsePolygon) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const [polygon, setPolygon] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!polygon) {\n let instance: AMap.Polygon = new AMap.Polygon({ ...other });\n map.add(instance);\n setPolygon(instance);\n }\n }, [map]);\n\n useVisiable(polygon!, visiable);\n useSettingProperties(polygon!, props, ['ExtData', 'ExtData']);\n useEventProperties(polygon!, props, [\n 'onClick',\n 'onDblClick',\n 'onRightClick',\n 'onHide',\n 'onShow',\n 'onMouseDown',\n 'onMouseUp',\n 'onMouseOver',\n 'onMouseOut',\n 'onChange',\n 'onTouchStart',\n 'onTouchMove',\n 'onTouchEnd',\n ]);\n return {\n polygon,\n setPolygon,\n };\n};\n","import { useImperativeHandle, forwardRef, isValidElement, cloneElement } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { usePolygon } from './usePolygon';\n\nexport * from './usePolygon';\nexport interface PolygonProps extends OverlayProps, AMap.PolygonEvents, AMap.PolygonOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const Polygon = forwardRef((props, ref) => {\n const { children } = props;\n const { polygon } = usePolygon(props);\n useImperativeHandle(ref, () => ({ ...props, polygon }));\n if (children && isValidElement(children)) {\n return cloneElement(children, { ...props, polygon });\n }\n return null;\n});\n","import { forwardRef, useEffect, useState } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\n\nexport interface PolygonEditorProps extends AMap.PolygonEditor, AMap.PolygonEditorEvents {\n /** 是否开启编辑功能 */\n active?: boolean;\n polygon?: AMap.Polygon;\n}\n\nexport const PolygonEditor = forwardRef((props, ref) => {\n const { active, polygon } = props;\n const { map } = useMapContext();\n const [visiable, setVisiable] = useState(true);\n const [polyEditor, setPolyEditor] = useState();\n\n useEffect(() => {\n if (polygon && map && !polyEditor && AMap && AMap.PolygonEditor) {\n const instance = new AMap.PolygonEditor(map, polygon);\n polygon.on('hide', () => setVisiable(false));\n polygon.on('show', () => setVisiable(true));\n setPolyEditor(instance);\n }\n }, [polygon]);\n\n useEffect(() => {\n if (!polyEditor) {\n return;\n }\n if (visiable && !active) {\n polyEditor.close();\n } else if (visiable && active) {\n polyEditor.open();\n } else if (!visiable && active) {\n polyEditor.close();\n }\n }, [active, visiable]);\n\n useEventProperties(polyEditor!, props, [\n 'onEnd',\n 'onAddnode',\n 'onAdjust',\n 'onMove',\n 'onAdd',\n ]);\n return null;\n});\n","import { useEffect, useState } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { PolylineProps } from '.';\n\nexport interface UsePolyline extends PolylineProps {}\n\nexport function usePolyline(props = {} as UsePolyline) {\n const [polyline, setPolyline] = useState();\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n useEffect(() => {\n if (map && !polyline) {\n let instance: AMap.Polyline = new AMap.Polyline({ ...other });\n map.add(instance);\n setPolyline(instance);\n return () => {\n if (instance) {\n map && map.removeLayer(instance);\n setPolyline(undefined);\n }\n };\n }\n }, [map]);\n\n useVisiable(polyline!, visiable);\n useSettingProperties(polyline!, props, ['Path', 'Options', 'Map', 'ExtData']);\n useEventProperties(polyline!, props, [\n 'onHide',\n 'onShow',\n 'onMouseOut',\n 'onChange',\n 'onRightClick',\n 'onDblClick',\n 'onMouseDown',\n 'onClick',\n 'onMouseOver',\n 'onTouchEnd',\n 'onTouchMove',\n 'onTouchStart',\n 'onMouseUp',\n ]);\n return {\n polyline,\n setPolyline,\n };\n}\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { usePolyline } from './usePolyline';\n\nexport * from './usePolyline';\n\nexport interface PolylineProps extends OverlayProps, AMap.PolylineEvents, AMap.PolylineOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const Polyline = React.forwardRef((props, ref) => {\n const { polyline } = usePolyline(props);\n useImperativeHandle(ref, () => ({ ...props, polyline }), [polyline]);\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { RectangleProps } from '.';\n\nexport interface UseRectangle extends RectangleProps {}\nexport const useRectangle = (props = {} as UseRectangle) => {\n const { visiable, ...other } = props;\n const { map } = useMapContext();\n const [rectangle, setRectangle] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!rectangle) {\n let instance: AMap.Rectangle = new AMap.Rectangle({ ...other });\n map.add(instance);\n setRectangle(instance);\n return () => {\n if (instance) {\n map && map.removeLayer(instance);\n setRectangle(undefined);\n }\n };\n }\n }, [map]);\n\n useVisiable(rectangle!, visiable);\n useSettingProperties(rectangle!, props, ['Bounds', 'Options', 'Map', 'ExtData']);\n useEventProperties(rectangle!, props, [\n 'onHide',\n 'onShow',\n 'onClick',\n 'onDblClick',\n 'onRightClick',\n 'onMouseOut',\n 'onMouseOver',\n 'onMouseUp',\n 'onMouseDown',\n 'onTouchEnd',\n 'onTouchMove',\n 'onTouchStart',\n ]);\n return {\n rectangle,\n setRectangle,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useRectangle } from './useRectangle';\n\nexport * from './useRectangle';\n\nexport interface RectangleProps extends OverlayProps, AMap.RectangleEvents, AMap.RectangleOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\nexport const Rectangle = React.forwardRef((props, ref) => {\n const { rectangle } = useRectangle(props);\n useImperativeHandle(ref, () => ({ ...props, rectangle }));\n return null;\n});\n","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { ScaleControlProps } from './';\n\nexport interface UseScaleControl extends ScaleControlProps {}\n\nexport function useScaleControl(props = {} as UseScaleControl) {\n const [scaleControl, setScaleControl] = useState();\n const { position, visiable, offset } = props;\n const { map } = useMapContext();\n useEffect(() => {\n if (map && !scaleControl) {\n let instance: AMap.Control;\n map.plugin(['AMap.Scale'], () => {\n instance = new AMap.Scale({\n offset: offset,\n position,\n });\n map.addControl(instance);\n setScaleControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n\n useVisiable(scaleControl!, visiable);\n return {\n scaleControl,\n setScaleControl,\n };\n}\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useScaleControl } from './useScaleControl';\n\nexport * from './useScaleControl';\n\nexport interface ScaleControlProps extends OverlayProps, AMap.ScaleOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\n\nexport const ScaleControl = React.forwardRef((props, ref) => {\n const { scaleControl } = useScaleControl(props);\n useImperativeHandle(ref, () => ({ ...props, scaleControl }), [scaleControl]);\n return null;\n});\n","import { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties, useRenderDom } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { TextProps } from './';\n\nexport interface UseText extends TextProps {}\nexport const useText = (props = {} as UseText) => {\n const { visiable, ...other } = props;\n const [text, setText] = useState();\n const { map } = useMapContext();\n const container = useRenderDom({ children: props.children });\n useEffect(() => {\n if (!AMap || !map) return;\n if (!text) {\n if (props.children) {\n other.text = container.innerHTML;\n }\n let instance: AMap.Text = new AMap.Text({ ...other });\n map.add(instance);\n setText(instance);\n return () => {\n if (instance) {\n instance.remove();\n setText(undefined);\n }\n };\n }\n }, [map]);\n\n useEffect(() => {\n if (text) {\n text.setText(props.children ? container.innerHTML : props.text || '');\n }\n }, [props.children, props.text, container, text]);\n\n useVisiable(text!, visiable);\n useSettingProperties(text!, props, [\n 'Style',\n 'Title',\n 'Clickable',\n 'Draggable',\n 'Map',\n 'Position',\n 'Offset',\n 'Angle',\n 'zIndex',\n 'Top',\n 'Cursor',\n 'ExtData',\n ]);\n useEventProperties(text!, props, [\n 'onMoving',\n 'onTouchMove',\n 'onTouchEnd',\n 'onMoveaLong',\n 'onTouchStart',\n 'onMoveEnd',\n 'onClick',\n 'onDblClick',\n 'onRightClick',\n 'onMouseMove',\n 'onMouseOver',\n 'onMouseOut',\n 'onMouseDown',\n 'onMouseUp',\n 'onDragStart',\n 'onDragEnd',\n 'onDragging',\n ]);\n return {\n text,\n setText,\n };\n};\n","import { forwardRef, useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useText } from './useText';\n\nexport * from './useText';\n\nexport interface TextProps extends OverlayProps, AMap.TextEvents, AMap.TextOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n children?: React.ReactNode;\n}\nexport const Text = forwardRef & { text?: AMap.Text }, TextProps>((props, ref) => {\n const { text } = useText({ ...props });\n useImperativeHandle(ref, () => ({ ...props, text }));\n return null;\n});\n","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { ToolBarControlProps } from './';\n\nexport interface UseToolBarControl extends ToolBarControlProps {}\n\nexport function useToolBarControl(props = {} as UseToolBarControl) {\n const [toolBarControl, setToolBarControl] = useState();\n const { position, visiable, offset } = props;\n const { map } = useMapContext();\n useEffect(() => {\n if (map && !toolBarControl) {\n let instance: AMap.Control;\n map.plugin(['AMap.ToolBar'], () => {\n instance = new AMap.ToolBar({\n offset,\n position,\n });\n map.addControl(instance);\n setToolBarControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n\n useVisiable(toolBarControl!, visiable);\n return {\n toolBarControl,\n setToolBarControl,\n };\n}\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useToolBarControl } from './useToolBarControl';\n\nexport * from './useToolBarControl';\n\nexport interface ToolBarControlProps extends OverlayProps, AMap.ToolBarOptions {\n /** 覆盖物是否可见 */\n visiable?: boolean;\n}\n\nexport const ToolBarControl = React.forwardRef((props, ref) => {\n const { toolBarControl } = useToolBarControl(props);\n useImperativeHandle(ref, () => ({ ...props, toolBarControl }), [toolBarControl]);\n return null;\n});\n","import { useState, useMemo, useEffect } from 'react';\nimport { WeatherProps } from '.';\n\nexport interface UseWeather extends WeatherProps {}\nexport const useWeather = (props = {} as UseWeather) => {\n const { city = '', type = 'live', onComplete, onError } = props;\n const [weather, setWeather] = useState();\n const funName = type === 'live' ? 'getLive' : 'getForecast';\n function getData(instance: AMap.Weather) {\n if (type && city && /^(live|forecast)$/.test(type)) {\n instance[funName as keyof AMap.Weather](\n city,\n (err?: Error, data?: AMap.WeatherForecastResult | AMap.WeatherLiveResult) => {\n if (err && onError) {\n onError(err);\n } else if (data && onComplete) {\n onComplete(data);\n }\n },\n );\n }\n }\n useEffect(() => {\n if (AMap && !weather) {\n let instance: AMap.Weather;\n AMap.plugin(['AMap.Weather'], () => {\n instance = new AMap.Weather();\n setWeather(instance);\n });\n return () => {\n if (instance) {\n setWeather(undefined);\n }\n };\n }\n }, []);\n\n useMemo(() => {\n if (weather && city && type) {\n getData(weather);\n }\n }, [weather, city, type]);\n\n return {\n weather,\n setWeather,\n };\n};\n","import React, { useImperativeHandle } from 'react';\nimport { OverlayProps } from '@uiw/react-amap-map';\nimport { useWeather } from './useWeather';\n\nexport * from './useWeather';\nexport interface WeatherProps extends OverlayProps {\n /** 城市名称/区域编码(如:“杭州市”/“330100”) */\n city?: string;\n /**\n * 获取 `查询实时天气信息` 或 `查询四天预报天气`\n * - live 查询实时天气信息。\n * - forecast 查询四天预报天气,包括查询当天天气信息\n * @default live\n */\n type?: 'live' | 'forecast';\n /** 数据请求完成时触发事件。 */\n onComplete?(data: AMap.WeatherForecastResult | AMap.WeatherLiveResult): void;\n /** 数据请求错误时触发事件。 */\n onError?(err: Error): void;\n}\nexport const Weather = React.forwardRef((props, ref) => {\n const { weather } = useWeather(props);\n useImperativeHandle(ref, () => ({ ...props, weather }));\n return null;\n});\n"],"names":["module","exports","webpackEmptyContext","req","e","Error","code","keys","resolve","id","Code","version","dependencies","codeSandbox","codePen","other","props","codePenOption","title","includeModule","js","replace","html","css_external","js_external","codeSandboxOption","files","content","name","description","react","devDependencies","kkt","license","scripts","start","build","test","browserslist","React","style","marginBottom","editorUrl","className","styles","target","rel","href","getCodeStr","data","forEach","node","type","value","children","Array","isArray","Markdown","getMdStr","state","mdStr","this","then","str","setState","default","Fragment","padding","source","components","inline","noPreview","noScroll","bgWhite","noCode","config","Object","filter","undefined","length","pkg","Component","runtime","Op","prototype","hasOwn","hasOwnProperty","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","obj","key","defineProperty","enumerable","configurable","writable","err","wrap","innerFn","outerFn","self","tryLocsList","protoGenerator","Generator","generator","create","context","Context","_invoke","GenStateSuspendedStart","method","arg","GenStateExecuting","GenStateCompleted","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","sent","_sent","dispatchException","abrupt","record","tryCatch","done","GenStateSuspendedYield","makeInvokeMethod","fn","call","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","AsyncIterator","PromiseImpl","invoke","reject","result","__await","unwrapped","error","previousPromise","callInvokeWithMethodAndArg","TypeError","info","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","i","displayName","isGeneratorFunction","genFun","ctor","constructor","mark","setPrototypeOf","__proto__","awrap","async","Promise","iter","object","reverse","pop","skipTempReset","prev","charAt","slice","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","globalThis","Function","asyncGeneratorStep","gen","_next","_throw","_asyncToGenerator","args","arguments","apply","_importedScript","requireCss","src","headElement","document","head","getElementsByTagName","dom","getElementById","script","createElement","onerror","removeChild","URIError","onload","appendChild","requireScript","defer","delay","time","window","setTimeout","APILoader","isMountedOk","loaded","AMap","handleError","akay","componentDidMount","callbackName","waitQueue","loadMap","componentWillUnmount","render","fallback","_jsx","color","message","getScriptSrc","cfg","protocol","location","indexOf","plugin","hostAndPath","_this","queue","task","DEFAULT_RETRY_TIME","_ret","v","defaultProps","useSetStatus","instance","propsName","eName","useState","useEffect","status","getStatus","setStatus","useVisiable","visiable","show","hide","usePrevious","ref","useRef","current","useEventProperties","eventName","eventHandle","toLocaleLowerCase","on","off","useSettingProperties","vName","toLowerCase","getReactDOMClient","import","_ReactDOM","useRenderDom","container","ReactDOMClient","useCallback","ReactDOM","maybeV18Root","useLayoutEffect","RDom","isV18","Reflect","has","createRoot","useAutoComplete","autoComplete","setAutoComplete","AutoComplete","useImperativeHandle","initialState","map","reducer","action","dispatch","useMapContext","useContext","useMap","setMap","zoom","setZoom","setContainer","Map","clearInfoWindow","clearLimitBounds","clearMap","destroy","useMemo","center","setCenter","Provider","useReducer","forwardRef","elmRef","childs","Children","_jsxs","fontSize","width","height","child","isValidElement","cloneElement","useBezierCurve","bezierCurve","setBezierCurve","BezierCurve","add","removeLayer","useCircle","circle","setCircle","Circle","remove","useCircleMarker","circleMarker","setCircleMarker","CircleMarker","useContextMenu","position","contextMenu","setContextMenu","ContextMenu","rightclick","open","lnglat","noop","useControlBarControl","offset","controlBarControl","setControlBarControl","ControlBar","addControl","removeControl","Item","text","onClick","addItem","removeItem","ControlBarControl","useEllipse","ellipse","setEllipse","Ellipse","useGeolocation","onComplete","onError","geolocation","setGeolocation","callback","Geolocation","funName","useHawkEyeControl","hawkEyeControl","setHawkEyeControl","HawkEye","HawkEyeControl","useInfoWindow","isOpen","setIsOpen","infoWindow","setInfoWindow","positionCenter","getCenter","InfoWindow","setContent","close","useMapTypeControl","mapTypeControl","setMapTypeControl","defaultType","MapType","MapTypeControl","useMarker","marker","setMarker","Marker","useMassMarks","opacity","zIndex","massMarks","setMassMarks","initStyle","url","anchor","Pixel","size","Size","MassMarks","clear","usePolygon","polygon","setPolygon","Polygon","PolygonEditor","active","setVisiable","polyEditor","setPolyEditor","usePolyline","polyline","setPolyline","Polyline","useRectangle","rectangle","setRectangle","Rectangle","useScaleControl","scaleControl","setScaleControl","Scale","ScaleControl","useText","setText","innerHTML","Text","useToolBarControl","toolBarControl","setToolBarControl","ToolBar","ToolBarControl","useWeather","city","weather","setWeather","Weather"],"sourceRoot":""}
\ No newline at end of file
diff --git a/static/js/8292.ef369cb4.chunk.js b/static/js/8292.15056df8.chunk.js
similarity index 97%
rename from static/js/8292.ef369cb4.chunk.js
rename to static/js/8292.15056df8.chunk.js
index 1f2b2f4ab..8f220ddcb 100644
--- a/static/js/8292.ef369cb4.chunk.js
+++ b/static/js/8292.15056df8.chunk.js
@@ -1,2 +1,2 @@
-(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8292],{80363:function(e){function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=function(){return[]},n.resolve=n,n.id=80363,e.exports=n},47437:function(e,n,t){"use strict";t.d(n,{Z:function(){return j}});var r=t(50189),o=t(53782),i=t(22951),c=t(91976),d=t(67591),s=t(43415),a=t(41473),u=t(41418),l="2.7.19",p=t(55220),h=t(69286),m=["version","dependencies","codeSandbox","codePen"];function f(e){var n=e.version,t=e.dependencies,i=e.codeSandbox,c=e.codePen,d=(0,o.Z)(e,m),s=(0,r.Z)({},d);return c&&(s.codePenOption={title:"uiw".concat(n," - demo"),includeModule:["uiw"],js:(s.code||"").replace("_mount_",'document.getElementById("container")'),html:'
',css_external:"https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.css"),js_external:"https://unpkg.com/react@17.x/umd/react.development.js;https://unpkg.com/react-dom@17.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.1.3/index.js")}),i&&(s.codeSandboxOption={files:{"sandbox.config.json":{content:'{\n "template": "node",\n "container": {\n "startScript": "start",\n "node": "14"\n }\n }'},"public/index.html":{content:'
'},"src/index.js":{content:(s.code||"").replace("_mount_",'document.getElementById("container")')},".kktrc.js":{content:'import lessModules from "@kkt/less-modules";\nexport default (conf, env, options) => {\nconf = lessModules(conf, env, options);\nreturn conf;\n};'},"package.json":{content:{name:"uiw-demo",description:"uiw v".concat(n," - demo"),dependencies:{react:"^17.0.2","react-dom":"^17.0.2","@uiw/react-amap":"latest"},devDependencies:{"@kkt/less-modules":"~7.1.1",kkt:"~7.1.5"},license:"MIT",scripts:{start:"kkt start",build:"kkt build",test:"kkt test --env=jsdom"},browserslist:[">0.2%","not dead","not ie <= 11","not op_mini all"]}}}}),(0,h.jsx)(p.Z,(0,r.Z)((0,r.Z)({},s),{},{dependencies:(0,r.Z)((0,r.Z)({},t),{},{React:a},a),style:{marginBottom:0}}))}var v="index_footer__Fp4ea",k=function(e){var n=(e||{}).editorUrl;return(0,h.jsxs)("div",{className:v,children:[n&&(0,h.jsx)("a",{title:"Editor Current Page",target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-amap/edit/master".concat(n),children:"\u7f16\u8f91\u5f53\u524d\u9875\u9762"}),(0,h.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/react-amap/issues/new",children:"\u63d0\u4ea4 Bug"}),(0,h.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/react-amap",children:"GitHub"}),(0,h.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,h.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"uiwjs"}),(0,h.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/react-baidu-map",children:"\u767e\u5ea6\u5730\u56fe React \u7248\u672c"})]})},g="index_markdown__hcQCp",x=["inline","node"],b=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.forEach((function(n){"text"===n.type?t+=n.value:n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t},j=function(e){(0,d.Z)(t,e);var n=(0,s.Z)(t);function t(e){var r;return(0,i.Z)(this,t),(r=n.call(this,e)).editorUrl=void 0,r.getMdStr=void 0,r.dependencies=void 0,r.state={mdStr:""},r}return(0,c.Z)(t,[{key:"componentDidMount",value:function(){var e=this;this.getMdStr&&this.getMdStr().then((function(n){e.setState({mdStr:n.default||n})}))}},{key:"render",value:function(){var e=this;return(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)(u.Z,{style:{padding:"20px 26px"},source:this.state.mdStr,className:g,components:{code:function(n){var t=n.inline,i=n.node,c=(0,o.Z)(n,x),d=c,s=d.noPreview,a=d.noScroll,u=d.bgWhite,p=d.noCode,m=d.codeSandbox,v=d.codePen;if(t)return(0,h.jsx)("code",(0,r.Z)({},c));var k={noPreview:s,noScroll:a,bgWhite:u,noCode:p,codeSandbox:m,codePen:v};return 0===Object.keys(k).filter((function(e){return void 0!==k[e]})).length?(0,h.jsx)("code",(0,r.Z)({},c)):(0,h.jsx)(f,{version:l,code:b(i.children),dependencies:e.dependencies,noPreview:s,noScroll:a,bgWhite:u,noCode:p,codePen:v,codeSandbox:m})}}}),(0,h.jsx)(k,{editorUrl:this.editorUrl})]})}}]),t}(a.Component)},70025:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var r=t(91976),o=t(22951),i=t(67591),c=t(43415),d=function(e){(0,i.Z)(d,e);var n=(0,c.Z)(d);function d(){var e;(0,o.Z)(this,d);for(var r=arguments.length,i=new Array(r),c=0;c ',css_external:"https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.css"),js_external:"https://unpkg.com/react@17.x/umd/react.development.js;https://unpkg.com/react-dom@17.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.1.3/index.js")}),i&&(s.codeSandboxOption={files:{"sandbox.config.json":{content:'{\n "template": "node",\n "container": {\n "startScript": "start",\n "node": "14"\n }\n }'},"public/index.html":{content:'
'},"src/index.js":{content:(s.code||"").replace("_mount_",'document.getElementById("container")')},".kktrc.js":{content:'import lessModules from "@kkt/less-modules";\nexport default (conf, env, options) => {\nconf = lessModules(conf, env, options);\nreturn conf;\n};'},"package.json":{content:{name:"uiw-demo",description:"uiw v".concat(n," - demo"),dependencies:{react:"^17.0.2","react-dom":"^17.0.2","@uiw/react-amap":"latest"},devDependencies:{"@kkt/less-modules":"~7.1.1",kkt:"~7.1.5"},license:"MIT",scripts:{start:"kkt start",build:"kkt build",test:"kkt test --env=jsdom"},browserslist:[">0.2%","not dead","not ie <= 11","not op_mini all"]}}}}),(0,h.jsx)(p.Z,(0,r.Z)((0,r.Z)({},s),{},{dependencies:(0,r.Z)((0,r.Z)({},t),{},{React:a},a),style:{marginBottom:0}}))}var v="index_footer__Fp4ea",k=function(e){var n=(e||{}).editorUrl;return(0,h.jsxs)("div",{className:v,children:[n&&(0,h.jsx)("a",{title:"Editor Current Page",target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-amap/edit/master".concat(n),children:"\u7f16\u8f91\u5f53\u524d\u9875\u9762"}),(0,h.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/react-amap/issues/new",children:"\u63d0\u4ea4 Bug"}),(0,h.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/react-amap",children:"GitHub"}),(0,h.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,h.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"uiwjs"}),(0,h.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/react-baidu-map",children:"\u767e\u5ea6\u5730\u56fe React \u7248\u672c"})]})},g="index_markdown__hcQCp",x=["inline","node"],b=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.forEach((function(n){"text"===n.type?t+=n.value:n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t},j=function(e){(0,d.Z)(t,e);var n=(0,s.Z)(t);function t(e){var r;return(0,i.Z)(this,t),(r=n.call(this,e)).editorUrl=void 0,r.getMdStr=void 0,r.dependencies=void 0,r.state={mdStr:""},r}return(0,c.Z)(t,[{key:"componentDidMount",value:function(){var e=this;this.getMdStr&&this.getMdStr().then((function(n){e.setState({mdStr:n.default||n})}))}},{key:"render",value:function(){var e=this;return(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)(u.Z,{style:{padding:"20px 26px"},source:this.state.mdStr,className:g,components:{code:function(n){var t=n.inline,i=n.node,c=(0,o.Z)(n,x),d=c,s=d.noPreview,a=d.noScroll,u=d.bgWhite,p=d.noCode,m=d.codeSandbox,v=d.codePen;if(t)return(0,h.jsx)("code",(0,r.Z)({},c));var k={noPreview:s,noScroll:a,bgWhite:u,noCode:p,codeSandbox:m,codePen:v};return 0===Object.keys(k).filter((function(e){return void 0!==k[e]})).length?(0,h.jsx)("code",(0,r.Z)({},c)):(0,h.jsx)(f,{version:l,code:b(i.children),dependencies:e.dependencies,noPreview:s,noScroll:a,bgWhite:u,noCode:p,codePen:v,codeSandbox:m})}}}),(0,h.jsx)(k,{editorUrl:this.editorUrl})]})}}]),t}(a.Component)},70025:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var r=t(91976),o=t(22951),i=t(67591),c=t(43415),d=function(e){(0,i.Z)(d,e);var n=(0,c.Z)(d);function d(){var e;(0,o.Z)(this,d);for(var r=arguments.length,i=new Array(r),c=0;c ',\n css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,\n js_external: `https://unpkg.com/react@17.x/umd/react.development.js;https://unpkg.com/react-dom@17.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.1.3/index.js`,\n };\n }\n if (codeSandbox) {\n props.codeSandboxOption = {\n files: {\n 'sandbox.config.json': {\n content: `{\n \"template\": \"node\",\n \"container\": {\n \"startScript\": \"start\",\n \"node\": \"14\"\n }\n }`,\n },\n 'public/index.html': {\n content: `
`,\n },\n 'src/index.js': {\n content: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n },\n '.kktrc.js': {\n content: `import lessModules from \"@kkt/less-modules\";\\nexport default (conf, env, options) => {\\nconf = lessModules(conf, env, options);\\nreturn conf;\\n};`,\n },\n 'package.json': {\n content: {\n name: 'uiw-demo',\n description: `uiw v${version} - demo`,\n dependencies: {\n react: '^17.0.2',\n 'react-dom': '^17.0.2',\n '@uiw/react-amap': 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '~7.1.1',\n kkt: '~7.1.5',\n },\n license: 'MIT',\n scripts: {\n start: 'kkt start',\n build: 'kkt build',\n test: 'kkt test --env=jsdom',\n },\n browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'],\n },\n },\n },\n };\n }\n return ;\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"footer\":\"index_footer__Fp4ea\"};","import styles from './index.module.less';\n\ntype FooterProps = {\n editorUrl?: string;\n};\n\nconst Footer = (props: FooterProps) => {\n const { editorUrl } = props || {};\n return (\n \n );\n};\n\nexport default Footer;\n","// extracted by mini-css-extract-plugin\nexport default {\"markdown\":\"index_markdown__hcQCp\"};","import { Component, Fragment } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport pkg from '@uiw/react-amap/package.json';\nimport Code from './Code';\nimport Footer from '../Footer';\nimport styles from './index.module.less';\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n}\n\nconst getCodeStr = (data: any[] = [], code: string = '') => {\n data.forEach((node) => {\n if (node.type === 'text') {\n code += node.value;\n } else if (node.children && Array.isArray(node.children)) {\n code += getCodeStr(node.children);\n }\n });\n return code;\n};\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n dependencies?: any;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default || str,\n });\n });\n }\n }\n render() {\n return (\n \n \n * ```\n * 参数用英文逗号隔开\n *\n * bordered 边框\n * bgWhite 设置代码预览背景白色,否则为格子背景。\n * noCode 不显示代码编辑器。\n * noPreview 不显示代码预览效果。\n * noScroll 预览区域不显示滚动条。\n * codePen 显示 Codepen 按钮,要特别注意 包导入的问题,实例中的 import 主要用于 Codepen 使用。\n */\n code: ({ inline, node, ...props }) => {\n const { noPreview, noScroll, bgWhite, noCode, codeSandbox, codePen } = props as any;\n if (inline) {\n return
;\n }\n const config = { noPreview, noScroll, bgWhite, noCode, codeSandbox, codePen } as any;\n if (Object.keys(config).filter((name) => config[name] !== undefined).length === 0) {\n return
;\n }\n return (\n
\n );\n },\n }}\n />\n \n \n );\n }\n}\n","import Markdown from '../../components/Markdown';\n\nexport default class Page extends Markdown {\n editorUrl = '/packages/types/README.md';\n dependencies = {};\n getMdStr = () => import('@uiw/react-amap-types/README.md');\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","Code","version","dependencies","codeSandbox","codePen","other","props","codePenOption","title","includeModule","js","replace","html","css_external","js_external","codeSandboxOption","files","content","name","description","react","devDependencies","kkt","license","scripts","start","build","test","browserslist","React","style","marginBottom","editorUrl","className","styles","target","rel","href","getCodeStr","data","forEach","node","type","value","children","Array","isArray","Markdown","getMdStr","state","mdStr","this","then","str","setState","default","Fragment","padding","source","components","inline","noPreview","noScroll","bgWhite","noCode","config","Object","filter","undefined","length","pkg","Component","Page"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"static/js/8292.15056df8.chunk.js","mappings":"wFAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,EAEPF,EAAoBK,KAAO,WAAa,MAAO,IAC/CL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,MACzBC,EAAOC,QAAUT,G,qPCGF,SAASU,EAAT,GAAqF,IAArEC,EAAoE,EAApEA,QAASC,EAA2D,EAA3DA,aAAcC,EAA6C,EAA7CA,YAAaC,EAAgC,EAAhCA,QAAYC,GAAoB,YAC3FC,GAAuB,UAAQD,GAyDrC,OAxDID,IACFE,EAAMC,cAAgB,CACpBC,MAAM,MAAD,OAAQP,EAAR,WACLQ,cAAe,CAAC,OAChBC,IAAKJ,EAAMZ,MAAQ,IAAIiB,QAAQ,UAAW,wCAC1CC,KAAM,mDACNC,aAAa,yBAAD,OAA2BZ,EAA3B,qBACZa,YAAY,yLAAD,OAA2Lb,EAA3L,qFAGXE,IACFG,EAAMS,kBAAoB,CACxBC,MAAO,CACL,sBAAuB,CACrBC,QAAQ,iKAQV,oBAAqB,CACnBA,QAAQ,8BAEV,eAAgB,CACdA,SAAUX,EAAMZ,MAAQ,IAAIiB,QAAQ,UAAW,yCAEjD,YAAa,CACXM,QAAQ,qJAEV,eAAgB,CACdA,QAAS,CACPC,KAAM,WACNC,YAAY,QAAD,OAAUlB,EAAV,WACXC,aAAc,CACZkB,MAAO,UACP,YAAa,UACb,kBAAmB,UAErBC,gBAAiB,CACf,oBAAqB,SACrBC,IAAK,UAEPC,QAAS,MACTC,QAAS,CACPC,MAAO,YACPC,MAAO,YACPC,KAAM,wBAERC,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OAHQA,EAAAA,EAAAA,KAAAA,MAAAA,EAAAA,CAAAA,MAAAA,OAAAA,KACnBxC,UAAY,4BAA4B,EACxC9B,aAAe,GAAG,EAClB8C,SAAW,kBAAM,gCAAN,mBAHQwB,C,SAAazB","sources":["../../node_modules/@babel/standalone|sync","components/Markdown/Code.tsx","webpack://website/./src/components/Footer/index.module.less?18ac","components/Footer/index.tsx","webpack://website/./src/components/Markdown/index.module.less?6e49","components/Markdown/index.tsx","pages/types/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 80363;\nmodule.exports = webpackEmptyContext;","import React from 'react';\nimport CodePreview, { CodePreviewProps } from '@uiw/react-code-preview';\n\nexport interface CodeProps extends CodePreviewProps {\n version: string;\n code?: string;\n codePen?: string;\n codeSandbox?: boolean;\n dependencies?: any;\n}\n\nexport default function Code({ version, dependencies, codeSandbox, codePen, ...other }: CodeProps) {\n const props: CodePreviewProps = { ...other };\n if (codePen) {\n props.codePenOption = {\n title: `uiw${version} - demo`,\n includeModule: ['uiw'],\n js: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n html: '
',\n css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,\n js_external: `https://unpkg.com/react@17.x/umd/react.development.js;https://unpkg.com/react-dom@17.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.1.3/index.js`,\n };\n }\n if (codeSandbox) {\n props.codeSandboxOption = {\n files: {\n 'sandbox.config.json': {\n content: `{\n \"template\": \"node\",\n \"container\": {\n \"startScript\": \"start\",\n \"node\": \"14\"\n }\n }`,\n },\n 'public/index.html': {\n content: `
`,\n },\n 'src/index.js': {\n content: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n },\n '.kktrc.js': {\n content: `import lessModules from \"@kkt/less-modules\";\\nexport default (conf, env, options) => {\\nconf = lessModules(conf, env, options);\\nreturn conf;\\n};`,\n },\n 'package.json': {\n content: {\n name: 'uiw-demo',\n description: `uiw v${version} - demo`,\n dependencies: {\n react: '^17.0.2',\n 'react-dom': '^17.0.2',\n '@uiw/react-amap': 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '~7.1.1',\n kkt: '~7.1.5',\n },\n license: 'MIT',\n scripts: {\n start: 'kkt start',\n build: 'kkt build',\n test: 'kkt test --env=jsdom',\n },\n browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'],\n },\n },\n },\n };\n }\n return ;\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"footer\":\"index_footer__Fp4ea\"};","import styles from './index.module.less';\n\ntype FooterProps = {\n editorUrl?: string;\n};\n\nconst Footer = (props: FooterProps) => {\n const { editorUrl } = props || {};\n return (\n \n );\n};\n\nexport default Footer;\n","// extracted by mini-css-extract-plugin\nexport default {\"markdown\":\"index_markdown__hcQCp\"};","import { Component, Fragment } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport pkg from '@uiw/react-amap/package.json';\nimport Code from './Code';\nimport Footer from '../Footer';\nimport styles from './index.module.less';\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n}\n\nconst getCodeStr = (data: any[] = [], code: string = '') => {\n data.forEach((node) => {\n if (node.type === 'text') {\n code += node.value;\n } else if (node.children && Array.isArray(node.children)) {\n code += getCodeStr(node.children);\n }\n });\n return code;\n};\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n dependencies?: any;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default || str,\n });\n });\n }\n }\n render() {\n return (\n \n \n * ```\n * 参数用英文逗号隔开\n *\n * bordered 边框\n * bgWhite 设置代码预览背景白色,否则为格子背景。\n * noCode 不显示代码编辑器。\n * noPreview 不显示代码预览效果。\n * noScroll 预览区域不显示滚动条。\n * codePen 显示 Codepen 按钮,要特别注意 包导入的问题,实例中的 import 主要用于 Codepen 使用。\n */\n code: ({ inline, node, ...props }) => {\n const { noPreview, noScroll, bgWhite, noCode, codeSandbox, codePen } = props as any;\n if (inline) {\n return
;\n }\n const config = { noPreview, noScroll, bgWhite, noCode, codeSandbox, codePen } as any;\n if (Object.keys(config).filter((name) => config[name] !== undefined).length === 0) {\n return
;\n }\n return (\n
\n );\n },\n }}\n />\n \n \n );\n }\n}\n","import Markdown from '../../components/Markdown';\n\nexport default class Page extends Markdown {\n editorUrl = '/packages/types/README.md';\n dependencies = {};\n getMdStr = () => import('@uiw/react-amap-types/README.md');\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","Code","version","dependencies","codeSandbox","codePen","other","props","codePenOption","title","includeModule","js","replace","html","css_external","js_external","codeSandboxOption","files","content","name","description","react","devDependencies","kkt","license","scripts","start","build","test","browserslist","React","style","marginBottom","editorUrl","className","styles","target","rel","href","getCodeStr","data","forEach","node","type","value","children","Array","isArray","Markdown","getMdStr","state","mdStr","this","then","str","setState","default","Fragment","padding","source","components","inline","noPreview","noScroll","bgWhite","noCode","config","Object","filter","undefined","length","pkg","Component","Page"],"sourceRoot":""}
\ No newline at end of file
diff --git a/static/js/main.f15336b7.js b/static/js/main.e42c3190.js
similarity index 98%
rename from static/js/main.f15336b7.js
rename to static/js/main.e42c3190.js
index 81261f759..64a0a14d3 100644
--- a/static/js/main.f15336b7.js
+++ b/static/js/main.e42c3190.js
@@ -1,2 +1,2 @@
-!function(){"use strict";var e={95806:function(e,t,n){var a,r,l,o,i,c,p,d,u,f,h,s,b,m,v,y=n(7510),g=(n(67251),n(41473)),w=n(64310),x=n(57261),j=n(72645),_=n(23040),z=[{path:"/",exact:!0,component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(6555)]).then(n.bind(n,92359))}))},{path:"/api-loader",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(5741)]).then(n.bind(n,70532))}))},{path:"/map",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(7901)]).then(n.bind(n,18478))}))},{path:"/scale-control",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(2583)]).then(n.bind(n,68539))}))},{path:"/tool-bar-control",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(3818)]).then(n.bind(n,76870))}))},{path:"/control-bar-control",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(5047)]).then(n.bind(n,66024))}))},{path:"/map-type-control",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(9518)]).then(n.bind(n,50946))}))},{path:"/hawk-eye-control",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(7137)]).then(n.bind(n,74814))}))},{path:"/polyline",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(6565)]).then(n.bind(n,77236))}))},{path:"/marker",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(5814)]).then(n.bind(n,92947))}))},{path:"/mass-marks",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(5015)]).then(n.bind(n,35165))}))},{path:"/text",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(5257)]).then(n.bind(n,95763))}))},{path:"/circle",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(7549)]).then(n.bind(n,31299))}))},{path:"/ellipse",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(4618)]).then(n.bind(n,48461))}))},{path:"/rectangle",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(4366)]).then(n.bind(n,43122))}))},{path:"/beizer-curve",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(2021)]).then(n.bind(n,36626))}))},{path:"/polygon",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(4071)]).then(n.bind(n,27286))}))},{path:"/polygon-editor",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(5621)]).then(n.bind(n,45941))}))},{path:"/info-window",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(4227)]).then(n.bind(n,49454))}))},{path:"/circle-marker",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(2135)]).then(n.bind(n,8122))}))},{path:"/weather",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(5442)]).then(n.bind(n,44446))}))},{path:"/geolocation",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(9307)]).then(n.bind(n,50484))}))},{path:"/auto-complete",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(2144)]).then(n.bind(n,89765))}))},{path:"/context-menu",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(8337)]).then(n.bind(n,62659))}))},{path:"/require-script",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(2515),n.e(8473)]).then(n.bind(n,893))}))},{path:"/types",component:(0,g.lazy)((function(){return Promise.all([n.e(4382),n.e(9167),n.e(7474),n.e(8269),n.e(9438),n.e(9213),n.e(8292)]).then(n.bind(n,70025))}))}],k=[{label:"\u5feb\u901f\u5f00\u59cb",path:"/"},{label:"\u56fd\u5185\u955c\u50cf \ud83c\udde8\ud83c\uddf3",target:"__blank",path:"https://uiw.gitee.io/react-amap"},{divider:!0,label:"\u5bb9\u5668"},{label:"APILoader \u7ec4\u4ef6",path:"/api-loader"},{label:"Map \u7ec4\u4ef6",path:"/map"},{divider:!0,label:"\u63a7\u4ef6"},{label:"ScaleControl \u6bd4\u4f8b\u5c3a\u63a7\u4ef6",path:"/scale-control"},{label:"ToolBarControl \u7f29\u653e\u5de5\u5177\u6761",path:"/tool-bar-control"},{label:"MapTypeControl \u56fe\u5c42\u5207\u6362",path:"/map-type-control"},{label:"ControlBarControl \u5730\u56fe\u63a7\u4ef6",path:"/control-bar-control"},{label:"HawkEyeControl \u9e70\u773c\u63a7\u4ef6",path:"/hawk-eye-control"},{divider:!0,label:"\u70b9\u6807\u8bb0"},{label:"Marker \u70b9\u6807\u8bb0",path:"/marker"},{label:"MassMarks \u6d77\u91cf\u70b9\u6807\u8bb0",path:"/mass-marks"},{label:"Text \u6587\u672c\u6807\u8bb0",path:"/text"},{divider:!0,label:"\u77e2\u91cf\u56fe\u5f62"},{label:"Polygon \u591a\u8fb9\u5f62",path:"/polygon"},{label:"PolygonEditor \u7f16\u8f91\u5668",path:"/polygon-editor"},{label:"Polyline \u6298\u7ebf",path:"/polyline"},{label:"BesizerCurve \u8d1d\u585e\u5c14\u66f2\u7ebf",path:"/beizer-curve"},{label:"Circle \u5706\u5f62",path:"/circle"},{label:"CircleMarker \u5706\u70b9\u6807\u8bb0",path:"/circle-marker"},{label:"Ellipse \u5706\u5f62\u7ec4\u4ef6",path:"/ellipse"},{label:"Rectangle \u77e9\u5f62",path:"/rectangle"},{divider:!0,label:"\u4fe1\u606f\u7a97\u4f53"},{label:"InfoWindow \u4fe1\u606f\u7a97\u4f53",path:"/info-window"},{divider:!0,label:"\u53f3\u952e\u83dc\u5355"},{label:"ContextMenu \u53f3\u952e\u83dc\u5355",path:"/context-menu"},{divider:!0,label:"\u5de5\u5177"},{label:"Require Script",path:"/require-script"},{divider:!0,label:"\u670d\u52a1"},{label:"Weather \u5929\u6c14\u67e5\u8be2\u670d\u52a1",path:"/weather"},{label:"Geolocation \u5b9a\u4f4d",path:"/geolocation"},{divider:!0,label:"\u641c\u7d22"},{label:"AutoComplete \u8f93\u5165\u63d0\u793a",path:"/auto-complete"},{divider:!0,label:"\u5176\u5b83"},{label:"\u9ad8\u5fb7\u5730\u56fe API \u7c7b\u578b types \u5b9a\u4e49",path:"/types"},{label:"\u9ad8\u5fb7\u62fe\u53d6\u5750\u6807\u7cfb\u7edf",target:"__blank",path:"https://lbs.amap.com/console/show/picker"},{label:"\u5b98\u65b9\u793a\u4f8b\u4e2d\u5fc3",target:"__blank",path:"https://lbs.amap.com/demo-center/jsapi-v2"},{label:"\u9ad8\u5fb7\u5730\u56fe JSAPI 2.0",target:"__blank",path:"https://a.amap.com/jsapi/static/doc/index.html"},{label:"AMapUI \u7ec4\u4ef6\u5e93",target:"__blank",path:"https://lbs.amap.com/api/amap-ui/intro"},{label:"\u6e90\u7801 Github \u4ed3\u5e93",target:"__blank",path:"https://github.com/uiwjs/react-amap"},{label:"\u6e90\u7801 Gitee \u4ed3\u5e93",target:"__blank",path:"https://gitee.com/uiw/react-amap"},{divider:!0,label:"\u76f8\u5173\u8fde\u63a5"},{label:"\u767e\u5ea6\u5730\u56fe React \u7ec4\u4ef6",target:"__blank",path:"https://uiwjs.github.io/react-baidu-map/"},{label:"React Web \u7ec4\u4ef6\u5e93",target:"__blank",path:"https://uiwjs.github.io/"},{label:"React Native \u7ec4\u4ef6\u5e93",target:"__blank",path:"https://uimjs.github.io/"}],P=n(50189),E=n(53782),C=["title","titleId"];function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function O(e,t){var n=e.title,y=e.titleId,w=M(e,C);return g.createElement("svg",F({viewBox:"0 0 1024 1024",width:42,height:42,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":y},w),n?g.createElement("title",{id:y},n):null,a||(a=g.createElement("path",{d:"M0 801.787737c0 107.787661 92.888119 223.570702 230.061131 222.200213h570.123392c124.274901 0 223.803427-107.368757 223.803427-223.99995V224.8119C1023.98795 108.072102 927.888232 0 795.545547 0H225.018766C93.151874 0 0 111.397477 0 224.8119v576.975837z",fill:"#F1F1F1"})),r||(r=g.createElement("path",{d:"M620.097107 0H225.018766C93.151874 0 0 111.397477 0 224.8119v91.450399l620.097107 0.584397V0z",fill:"#AFE881"})),l||(l=g.createElement("path",{d:"M697.206503 1023.98795h102.972848c124.274901 0 223.808599-107.368757 223.808599-223.99995V796.435072h-325.814348l-0.967099 227.552878z",fill:"#A3CAFF"})),o||(o=g.createElement("path",{d:"M0 408.560849V315.471035h1023.98795v93.089814z",fill:"#FFFFFF"})),i||(i=g.createElement("path",{d:"M620.097107 1023.998293V0h78.102354v1023.998293z",fill:"#FFFFFF"})),c||(c=g.createElement("path",{d:"M0 796.435072v-124.119751h1023.98795v124.119751z",fill:"#FFDF48"})),p||(p=g.createElement("path",{d:"M206.866253 1023.998293V0h155.149689v1023.998293z",fill:"#FFCF68"})),d||(d=g.createElement("path",{d:"M134.463064 536.911015l73.411662 116.103684 3.201255-101.002447z",fill:"#D6D7D4"})),u||(u=g.createElement("path",{d:"M207.874726 653.014699l132.125475 208.965945 23.086274 2.482395v-280.122764l-155.211749-34.148446z",fill:"#E5BA5E"})),f||(f=g.createElement("path",{d:"M392.663177 796.435072h209.545171l-141.263792-62.059876z",fill:"#E4C84A"})),h||(h=g.createElement("path",{d:"M362.776175 864.426838l253.281868 27.213255-0.630942-97.692587H363.086475z",fill:"#D6D7D4"})),s||(s=g.createElement("path",{d:"M616.058043 891.640093l91.957221 9.877864L615.427101 793.952677z",fill:"#E7E7E8"})),b||(b=g.createElement("path",{d:"M890.936748 186.179627L318.780895 664.216507l21.219306 197.764137 60.472177-157.616569z",fill:"#0066BD"})),m||(m=g.createElement("path",{d:"M391.106509 702.884981l-51.106308 159.095663 120.944355-116.243319L419.814373 672.315321z",fill:"#014E9D"})),v||(v=g.createElement("path",{d:"M134.463064 536.911015l184.317831 127.305492L890.936748 186.179627l-500.440495 513.690279 317.519011 201.648051L890.936748 186.179627z",fill:"#0093FD"})))}var A=g.forwardRef(O),N=(n.p,"index_side__kUxPB"),S="index_logo__038c9",T="index_menus__vhYPT",B="index_divider__NNyG+",D=n(69286),L=["label","path","divider"];function I(){return(0,D.jsxs)("div",{className:N,children:[(0,D.jsxs)("div",{className:S,children:[(0,D.jsx)(A,{}),(0,D.jsxs)("div",{children:["\u9ad8\u5fb7\u5730\u56fe React \u7ec4\u4ef6",(0,D.jsx)("sup",{children:"2.7.19"})]})]}),(0,D.jsx)("div",{className:T,children:k.map((function(e,t){var n=e.label,a=e.path,r=e.divider,l=(0,E.Z)(e,L);return r?(0,D.jsx)("div",{className:B,children:n},t):a&&/^http/.test(a)?(0,D.jsxs)("a",(0,P.Z)((0,P.Z)({href:a,target:"__blank"},l),{},{children:[n,(0,D.jsxs)("svg",{viewBox:"0 0 1024 1024",width:14,children:[(0,D.jsx)("path",{d:"M821.1456 276.8384c-235.9296 25.1392-449.1776 226.7136-490.5472 452.352a38.4 38.4 0 1 1-75.5712-13.824c45.568-248.576 269.312-468.48 526.6944-510.6688l-117.8112-69.1712a38.4 38.4 0 0 1 38.912-66.2528l223.3344 131.1744a38.4 38.4 0 0 1 10.1376 57.6l-170.752 206.6432a38.4 38.4 0 1 1-59.1872-48.9472l114.7904-138.9056z"}),(0,D.jsx)("path",{d:"M832 620.0832a38.4 38.4 0 0 1 76.8 0v158.208c0 85.9648-61.5936 157.8496-140.8 157.8496H204.8c-79.2064 0-140.8-71.8848-140.8-157.9008V300.3904c0-86.016 61.5936-157.8496 140.8-157.8496h220.2112a38.4 38.4 0 1 1 0 76.8H204.8c-33.8944 0-64 35.072-64 81.0496V778.24c0 45.9776 30.1056 81.1008 64 81.1008h563.2c33.8944 0 64-35.1232 64-81.1008v-158.1568z"})]})]}),t):(0,D.jsx)(w.OL,{to:a||"",children:n},t)}))})]})}var H="App_warpper__aaHHc",V="App_content__WcBYa",R=(0,D.jsx)("div",{style:{padding:30},children:(0,D.jsx)(_.Z,{tip:"loading..."})});function Z(){return(0,D.jsx)(w.UT,{children:(0,D.jsxs)("div",{className:H,children:[(0,D.jsx)(j.Z,{fixed:!0,zIndex:99,size:60,target:"__blank",href:"https://github.com/uiwjs/react-amap"}),(0,D.jsx)(I,{}),(0,D.jsx)("div",{className:V,children:(0,D.jsx)(x.Z5,{children:z.map((function(e,t){var n=e.component,a=e.path,r=n;return(0,D.jsx)(x.AW,{path:a,element:(0,D.jsx)(g.Suspense,{fallback:R,children:(0,D.jsx)(r,{})})},t)}))})})]})})}y.render((0,D.jsx)(Z,{}),document.getElementById("root"))}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var l=t[a]={exports:{}};return e[a].call(l.exports,l,l.exports,n),l.exports}n.m=e,function(){var e=[];n.O=function(t,a,r,l){if(!a){var o=1/0;for(d=0;d=l)&&Object.keys(n.O).every((function(e){return n.O[e](a[c])}))?a.splice(c--,1):(i=!1,l0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[a,r,l]}}(),n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,a){return n.f[a](e,t),t}),[]))},n.u=function(e){return"static/js/"+({7474:"codemirror-vendor",8269:"refractor-vendor",9167:"babel-standalone-vendor",9438:"parse5-vendor"}[e]||e)+"."+{161:"d281c14e",260:"9bf5557e",337:"59b5244c",531:"6af786ea",949:"67dfbc50",1185:"b5f16296",2021:"742f04f3",2135:"89e3864a",2144:"0f97145c",2515:"48a74226",2533:"7cf46bfa",2583:"28234c18",2798:"f2c21d18",2857:"d83e485e",2976:"15f71867",3226:"5f38a342",3251:"11b4dc0d",3444:"9f998637",3818:"797dfe72",3831:"db948f53",3835:"5035deab",4071:"5c900fbf",4073:"9db349d2",4227:"adcdb74c",4366:"3077af9a",4386:"c5498c81",4618:"d366a35c",4727:"5bd872ca",4869:"323118d7",5015:"96f3f7cf",5047:"c6805f37",5257:"fae6aee3",5442:"033a4e57",5621:"e032d48e",5741:"06d9eaf7",5807:"0e27c19c",5814:"c547a6be",6161:"82ae0ba6",6544:"182ea298",6555:"ca46d438",6557:"b21182e5",6565:"6ef5f33d",7137:"dbf4de11",7474:"69873d65",7549:"ba5eb90e",7901:"eefa9cae",8269:"afa57639",8292:"ef369cb4",8337:"26e63f30",8433:"8dd63304",8473:"1c176011",8805:"246d74b9",9079:"7347a654",9167:"d5597ddd",9213:"317d4de8",9307:"e23026dd",9438:"f35edd49",9518:"8123dfd2"}[e]+".chunk.js"},n.miniCssF=function(e){return"static/css/"+e+"."+{2021:"42c6f354",2135:"42c6f354",2144:"42c6f354",2583:"42c6f354",3818:"42c6f354",4071:"42c6f354",4227:"42c6f354",4366:"42c6f354",4618:"42c6f354",5015:"42c6f354",5047:"42c6f354",5257:"42c6f354",5442:"42c6f354",5621:"42c6f354",5741:"42c6f354",5814:"42c6f354",6555:"42c6f354",6565:"42c6f354",7137:"42c6f354",7549:"42c6f354",7901:"42c6f354",8292:"42c6f354",8337:"42c6f354",8473:"42c6f354",9307:"42c6f354",9518:"7be59bce"}[e]+".chunk.css"},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="website:";n.l=function(a,r,l,o){if(e[a])e[a].push(r);else{var i,c;if(void 0!==l)for(var p=document.getElementsByTagName("script"),d=0;d=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function O(e,t){var n=e.title,y=e.titleId,w=M(e,C);return g.createElement("svg",F({viewBox:"0 0 1024 1024",width:42,height:42,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":y},w),n?g.createElement("title",{id:y},n):null,a||(a=g.createElement("path",{d:"M0 801.787737c0 107.787661 92.888119 223.570702 230.061131 222.200213h570.123392c124.274901 0 223.803427-107.368757 223.803427-223.99995V224.8119C1023.98795 108.072102 927.888232 0 795.545547 0H225.018766C93.151874 0 0 111.397477 0 224.8119v576.975837z",fill:"#F1F1F1"})),r||(r=g.createElement("path",{d:"M620.097107 0H225.018766C93.151874 0 0 111.397477 0 224.8119v91.450399l620.097107 0.584397V0z",fill:"#AFE881"})),l||(l=g.createElement("path",{d:"M697.206503 1023.98795h102.972848c124.274901 0 223.808599-107.368757 223.808599-223.99995V796.435072h-325.814348l-0.967099 227.552878z",fill:"#A3CAFF"})),o||(o=g.createElement("path",{d:"M0 408.560849V315.471035h1023.98795v93.089814z",fill:"#FFFFFF"})),i||(i=g.createElement("path",{d:"M620.097107 1023.998293V0h78.102354v1023.998293z",fill:"#FFFFFF"})),c||(c=g.createElement("path",{d:"M0 796.435072v-124.119751h1023.98795v124.119751z",fill:"#FFDF48"})),p||(p=g.createElement("path",{d:"M206.866253 1023.998293V0h155.149689v1023.998293z",fill:"#FFCF68"})),d||(d=g.createElement("path",{d:"M134.463064 536.911015l73.411662 116.103684 3.201255-101.002447z",fill:"#D6D7D4"})),u||(u=g.createElement("path",{d:"M207.874726 653.014699l132.125475 208.965945 23.086274 2.482395v-280.122764l-155.211749-34.148446z",fill:"#E5BA5E"})),f||(f=g.createElement("path",{d:"M392.663177 796.435072h209.545171l-141.263792-62.059876z",fill:"#E4C84A"})),h||(h=g.createElement("path",{d:"M362.776175 864.426838l253.281868 27.213255-0.630942-97.692587H363.086475z",fill:"#D6D7D4"})),s||(s=g.createElement("path",{d:"M616.058043 891.640093l91.957221 9.877864L615.427101 793.952677z",fill:"#E7E7E8"})),b||(b=g.createElement("path",{d:"M890.936748 186.179627L318.780895 664.216507l21.219306 197.764137 60.472177-157.616569z",fill:"#0066BD"})),m||(m=g.createElement("path",{d:"M391.106509 702.884981l-51.106308 159.095663 120.944355-116.243319L419.814373 672.315321z",fill:"#014E9D"})),v||(v=g.createElement("path",{d:"M134.463064 536.911015l184.317831 127.305492L890.936748 186.179627l-500.440495 513.690279 317.519011 201.648051L890.936748 186.179627z",fill:"#0093FD"})))}var A=g.forwardRef(O),N=(n.p,"index_side__kUxPB"),S="index_logo__038c9",T="index_menus__vhYPT",B="index_divider__NNyG+",D=n(69286),L=["label","path","divider"];function I(){return(0,D.jsxs)("div",{className:N,children:[(0,D.jsxs)("div",{className:S,children:[(0,D.jsx)(A,{}),(0,D.jsxs)("div",{children:["\u9ad8\u5fb7\u5730\u56fe React \u7ec4\u4ef6",(0,D.jsx)("sup",{children:"2.7.20"})]})]}),(0,D.jsx)("div",{className:T,children:k.map((function(e,t){var n=e.label,a=e.path,r=e.divider,l=(0,E.Z)(e,L);return r?(0,D.jsx)("div",{className:B,children:n},t):a&&/^http/.test(a)?(0,D.jsxs)("a",(0,P.Z)((0,P.Z)({href:a,target:"__blank"},l),{},{children:[n,(0,D.jsxs)("svg",{viewBox:"0 0 1024 1024",width:14,children:[(0,D.jsx)("path",{d:"M821.1456 276.8384c-235.9296 25.1392-449.1776 226.7136-490.5472 452.352a38.4 38.4 0 1 1-75.5712-13.824c45.568-248.576 269.312-468.48 526.6944-510.6688l-117.8112-69.1712a38.4 38.4 0 0 1 38.912-66.2528l223.3344 131.1744a38.4 38.4 0 0 1 10.1376 57.6l-170.752 206.6432a38.4 38.4 0 1 1-59.1872-48.9472l114.7904-138.9056z"}),(0,D.jsx)("path",{d:"M832 620.0832a38.4 38.4 0 0 1 76.8 0v158.208c0 85.9648-61.5936 157.8496-140.8 157.8496H204.8c-79.2064 0-140.8-71.8848-140.8-157.9008V300.3904c0-86.016 61.5936-157.8496 140.8-157.8496h220.2112a38.4 38.4 0 1 1 0 76.8H204.8c-33.8944 0-64 35.072-64 81.0496V778.24c0 45.9776 30.1056 81.1008 64 81.1008h563.2c33.8944 0 64-35.1232 64-81.1008v-158.1568z"})]})]}),t):(0,D.jsx)(w.OL,{to:a||"",children:n},t)}))})]})}var H="App_warpper__aaHHc",V="App_content__WcBYa",R=(0,D.jsx)("div",{style:{padding:30},children:(0,D.jsx)(_.Z,{tip:"loading..."})});function Z(){return(0,D.jsx)(w.UT,{children:(0,D.jsxs)("div",{className:H,children:[(0,D.jsx)(j.Z,{fixed:!0,zIndex:99,size:60,target:"__blank",href:"https://github.com/uiwjs/react-amap"}),(0,D.jsx)(I,{}),(0,D.jsx)("div",{className:V,children:(0,D.jsx)(x.Z5,{children:z.map((function(e,t){var n=e.component,a=e.path,r=n;return(0,D.jsx)(x.AW,{path:a,element:(0,D.jsx)(g.Suspense,{fallback:R,children:(0,D.jsx)(r,{})})},t)}))})})]})})}y.render((0,D.jsx)(Z,{}),document.getElementById("root"))}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var l=t[a]={exports:{}};return e[a].call(l.exports,l,l.exports,n),l.exports}n.m=e,function(){var e=[];n.O=function(t,a,r,l){if(!a){var o=1/0;for(d=0;d=l)&&Object.keys(n.O).every((function(e){return n.O[e](a[c])}))?a.splice(c--,1):(i=!1,l0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[a,r,l]}}(),n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,a){return n.f[a](e,t),t}),[]))},n.u=function(e){return"static/js/"+({7474:"codemirror-vendor",8269:"refractor-vendor",9167:"babel-standalone-vendor",9438:"parse5-vendor"}[e]||e)+"."+{161:"d281c14e",260:"9bf5557e",337:"59b5244c",531:"6af786ea",949:"67dfbc50",1185:"b5f16296",2021:"742f04f3",2135:"89e3864a",2144:"0f97145c",2515:"52640890",2533:"7cf46bfa",2583:"28234c18",2798:"f2c21d18",2857:"d83e485e",2976:"15f71867",3226:"5f38a342",3251:"11b4dc0d",3444:"9f998637",3818:"797dfe72",3831:"db948f53",3835:"5035deab",4071:"5c900fbf",4073:"9db349d2",4227:"adcdb74c",4366:"3077af9a",4386:"c5498c81",4618:"d366a35c",4727:"5bd872ca",4869:"323118d7",5015:"96f3f7cf",5047:"c6805f37",5257:"fae6aee3",5442:"033a4e57",5621:"e032d48e",5741:"06d9eaf7",5807:"0e27c19c",5814:"c547a6be",6161:"82ae0ba6",6544:"182ea298",6555:"ca46d438",6557:"b21182e5",6565:"6ef5f33d",7137:"dbf4de11",7474:"69873d65",7549:"ba5eb90e",7901:"eefa9cae",8269:"afa57639",8292:"15056df8",8337:"26e63f30",8433:"8dd63304",8473:"1c176011",8805:"246d74b9",9079:"7347a654",9167:"d5597ddd",9213:"317d4de8",9307:"e23026dd",9438:"f35edd49",9518:"8123dfd2"}[e]+".chunk.js"},n.miniCssF=function(e){return"static/css/"+e+"."+{2021:"42c6f354",2135:"42c6f354",2144:"42c6f354",2583:"42c6f354",3818:"42c6f354",4071:"42c6f354",4227:"42c6f354",4366:"42c6f354",4618:"42c6f354",5015:"42c6f354",5047:"42c6f354",5257:"42c6f354",5442:"42c6f354",5621:"42c6f354",5741:"42c6f354",5814:"42c6f354",6555:"42c6f354",6565:"42c6f354",7137:"42c6f354",7549:"42c6f354",7901:"42c6f354",8292:"42c6f354",8337:"42c6f354",8473:"42c6f354",9307:"42c6f354",9518:"7be59bce"}[e]+".chunk.css"},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="website:";n.l=function(a,r,l,o){if(e[a])e[a].push(r);else{var i,c;if(void 0!==l)for(var p=document.getElementsByTagName("script"),d=0;d= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nfunction SvgLogo(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 1024 1024\",\n width: 42,\n height: 42,\n xmlns: \"http://www.w3.org/2000/svg\",\n xmlnsXlink: \"http://www.w3.org/1999/xlink\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 801.787737c0 107.787661 92.888119 223.570702 230.061131 222.200213h570.123392c124.274901 0 223.803427-107.368757 223.803427-223.99995V224.8119C1023.98795 108.072102 927.888232 0 795.545547 0H225.018766C93.151874 0 0 111.397477 0 224.8119v576.975837z\",\n fill: \"#F1F1F1\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M620.097107 0H225.018766C93.151874 0 0 111.397477 0 224.8119v91.450399l620.097107 0.584397V0z\",\n fill: \"#AFE881\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M697.206503 1023.98795h102.972848c124.274901 0 223.808599-107.368757 223.808599-223.99995V796.435072h-325.814348l-0.967099 227.552878z\",\n fill: \"#A3CAFF\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 408.560849V315.471035h1023.98795v93.089814z\",\n fill: \"#FFFFFF\"\n })), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M620.097107 1023.998293V0h78.102354v1023.998293z\",\n fill: \"#FFFFFF\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 796.435072v-124.119751h1023.98795v124.119751z\",\n fill: \"#FFDF48\"\n })), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M206.866253 1023.998293V0h155.149689v1023.998293z\",\n fill: \"#FFCF68\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M134.463064 536.911015l73.411662 116.103684 3.201255-101.002447z\",\n fill: \"#D6D7D4\"\n })), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M207.874726 653.014699l132.125475 208.965945 23.086274 2.482395v-280.122764l-155.211749-34.148446z\",\n fill: \"#E5BA5E\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M392.663177 796.435072h209.545171l-141.263792-62.059876z\",\n fill: \"#E4C84A\"\n })), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M362.776175 864.426838l253.281868 27.213255-0.630942-97.692587H363.086475z\",\n fill: \"#D6D7D4\"\n })), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M616.058043 891.640093l91.957221 9.877864L615.427101 793.952677z\",\n fill: \"#E7E7E8\"\n })), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M890.936748 186.179627L318.780895 664.216507l21.219306 197.764137 60.472177-157.616569z\",\n fill: \"#0066BD\"\n })), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M391.106509 702.884981l-51.106308 159.095663 120.944355-116.243319L419.814373 672.315321z\",\n fill: \"#014E9D\"\n })), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M134.463064 536.911015l184.317831 127.305492L890.936748 186.179627l-500.440495 513.690279 317.519011 201.648051L890.936748 186.179627z\",\n fill: \"#0093FD\"\n })));\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgLogo);\nexport default __webpack_public_path__ + \"static/media/logo.552138f67b47aa2ff9779e6ffc2abeed.svg\";\nexport { ForwardRef as ReactComponent };","import React, { lazy } from 'react';\n\nexport type Routes = {\n path: string;\n exact?: boolean;\n component: React.ReactNode;\n}[];\n\nexport const routes: Routes = [\n {\n path: '/',\n exact: true,\n component: lazy(() => import('./pages/home')),\n },\n {\n path: '/api-loader',\n component: lazy(() => import('./pages/api-loader')),\n },\n {\n path: '/map',\n component: lazy(() => import('./pages/map')),\n },\n {\n path: '/scale-control',\n component: lazy(() => import('./pages/scale-control')),\n },\n {\n path: '/tool-bar-control',\n component: lazy(() => import('./pages/tool-bar-control')),\n },\n {\n path: '/control-bar-control',\n component: lazy(() => import('./pages/control-bar-control')),\n },\n {\n path: '/map-type-control',\n component: lazy(() => import('./pages/map-type-control')),\n },\n {\n path: '/hawk-eye-control',\n component: lazy(() => import('./pages/hawk-eye-control')),\n },\n {\n path: '/polyline',\n component: lazy(() => import('./pages/polyline')),\n },\n {\n path: '/marker',\n component: lazy(() => import('./pages/marker')),\n },\n {\n path: '/mass-marks',\n component: lazy(() => import('./pages/mass-marks')),\n },\n {\n path: '/text',\n component: lazy(() => import('./pages/text')),\n },\n {\n path: '/circle',\n component: lazy(() => import('./pages/circle')),\n },\n {\n path: '/ellipse',\n component: lazy(() => import('./pages/ellipse')),\n },\n {\n path: '/rectangle',\n component: lazy(() => import('./pages/rectangle')),\n },\n {\n path: '/beizer-curve',\n component: lazy(() => import('./pages/beizer-curve')),\n },\n {\n path: '/polygon',\n component: lazy(() => import('./pages/polygon')),\n },\n {\n path: '/polygon-editor',\n component: lazy(() => import('./pages/polygon-editor')),\n },\n {\n path: '/info-window',\n component: lazy(() => import('./pages/info-window')),\n },\n {\n path: '/circle-marker',\n component: lazy(() => import('./pages/circle-marker')),\n },\n {\n path: '/weather',\n component: lazy(() => import('./pages/weather')),\n },\n {\n path: '/geolocation',\n component: lazy(() => import('./pages/geolocation')),\n },\n {\n path: '/auto-complete',\n component: lazy(() => import('./pages/auto-complete')),\n },\n {\n path: '/context-menu',\n component: lazy(() => import('./pages/context-menu')),\n },\n {\n path: '/require-script',\n component: lazy(() => import('./pages/require-script')),\n },\n {\n path: '/types',\n component: lazy(() => import('./pages/types')),\n },\n];\n\nexport const menus = [\n {\n label: '快速开始',\n path: '/',\n },\n {\n label: '国内镜像 🇨🇳',\n target: '__blank',\n path: 'https://uiw.gitee.io/react-amap',\n },\n {\n divider: true,\n label: '容器',\n },\n {\n label: 'APILoader 组件',\n path: '/api-loader',\n },\n {\n label: 'Map 组件',\n path: '/map',\n },\n {\n divider: true,\n label: '控件',\n },\n {\n label: 'ScaleControl 比例尺控件',\n path: '/scale-control',\n },\n {\n label: 'ToolBarControl 缩放工具条',\n path: '/tool-bar-control',\n },\n {\n label: 'MapTypeControl 图层切换',\n path: '/map-type-control',\n },\n {\n label: 'ControlBarControl 地图控件',\n path: '/control-bar-control',\n },\n {\n label: 'HawkEyeControl 鹰眼控件',\n path: '/hawk-eye-control',\n },\n {\n divider: true,\n label: '点标记',\n },\n {\n label: 'Marker 点标记',\n path: '/marker',\n },\n {\n label: 'MassMarks 海量点标记',\n path: '/mass-marks',\n },\n {\n label: 'Text 文本标记',\n path: '/text',\n },\n {\n divider: true,\n label: '矢量图形',\n },\n {\n label: 'Polygon 多边形',\n path: '/polygon',\n },\n {\n label: 'PolygonEditor 编辑器',\n path: '/polygon-editor',\n },\n {\n label: 'Polyline 折线',\n path: '/polyline',\n },\n {\n label: 'BesizerCurve 贝塞尔曲线',\n path: '/beizer-curve',\n },\n {\n label: 'Circle 圆形',\n path: '/circle',\n },\n {\n label: 'CircleMarker 圆点标记',\n path: '/circle-marker',\n },\n {\n label: 'Ellipse 圆形组件',\n path: '/ellipse',\n },\n {\n label: 'Rectangle 矩形',\n path: '/rectangle',\n },\n {\n divider: true,\n label: '信息窗体',\n },\n {\n label: 'InfoWindow 信息窗体',\n path: '/info-window',\n },\n {\n divider: true,\n label: '右键菜单',\n },\n {\n label: 'ContextMenu 右键菜单',\n path: '/context-menu',\n },\n {\n divider: true,\n label: '工具',\n },\n {\n label: 'Require Script',\n path: '/require-script',\n },\n {\n divider: true,\n label: '服务',\n },\n {\n label: 'Weather 天气查询服务',\n path: '/weather',\n },\n {\n label: 'Geolocation 定位',\n path: '/geolocation',\n },\n {\n divider: true,\n label: '搜索',\n },\n {\n label: 'AutoComplete 输入提示',\n path: '/auto-complete',\n },\n {\n divider: true,\n label: '其它',\n },\n {\n label: '高德地图 API 类型 types 定义',\n path: '/types',\n },\n {\n label: '高德拾取坐标系统',\n target: '__blank',\n path: 'https://lbs.amap.com/console/show/picker',\n },\n {\n label: '官方示例中心',\n target: '__blank',\n path: 'https://lbs.amap.com/demo-center/jsapi-v2',\n },\n {\n label: '高德地图 JSAPI 2.0',\n target: '__blank',\n path: 'https://a.amap.com/jsapi/static/doc/index.html',\n },\n {\n label: 'AMapUI 组件库',\n target: '__blank',\n path: 'https://lbs.amap.com/api/amap-ui/intro',\n },\n {\n label: '源码 Github 仓库',\n target: '__blank',\n path: 'https://github.com/uiwjs/react-amap',\n },\n {\n label: '源码 Gitee 仓库',\n target: '__blank',\n path: 'https://gitee.com/uiw/react-amap',\n },\n {\n divider: true,\n label: '相关连接',\n },\n {\n label: '百度地图 React 组件',\n target: '__blank',\n path: 'https://uiwjs.github.io/react-baidu-map/',\n },\n {\n label: 'React Web 组件库',\n target: '__blank',\n path: 'https://uiwjs.github.io/',\n },\n {\n label: 'React Native 组件库',\n target: '__blank',\n path: 'https://uimjs.github.io/',\n },\n];\n","// extracted by mini-css-extract-plugin\nexport default {\"side\":\"index_side__kUxPB\",\"logo\":\"index_logo__038c9\",\"menus\":\"index_menus__vhYPT\",\"divider\":\"index_divider__NNyG+\"};","import { NavLink } from 'react-router-dom';\nimport { menus } from '../../router';\nimport { ReactComponent as Logo } from './logo.svg';\nimport styles from './index.module.less';\n\nexport default function SideMenu() {\n // @ts-ignore\n const version = VERSION;\n return (\n \n
\n
\n
\n 高德地图 React 组件{version} \n
\n
\n
\n {menus.map(({ label, path, divider, ...otherItem }, idx) => {\n if (divider) {\n return (\n
\n {label}\n
\n );\n }\n if (path && /^http/.test(path)) {\n return (\n
\n {label}\n \n \n \n \n \n );\n }\n return (\n
\n {label}\n \n );\n })}\n
\n
\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"warpper\":\"App_warpper__aaHHc\",\"content\":\"App_content__WcBYa\"};","import { Suspense } from 'react';\nimport { HashRouter, Route, Routes } from 'react-router-dom';\nimport GitHubCorners from '@uiw/react-github-corners';\nimport Loader from '@uiw/react-loader';\nimport { routes } from '../../router';\nimport SideMenu from '../../components/SideMenu';\nimport styles from './App.module.less';\n\nconst Loading = (\n \n \n
\n);\n\nexport default function App() {\n return (\n \n \n
\n
\n
\n \n {routes.map(({ component: Child, path }, idx) => {\n // @ts-ignore\n const Com = Child as any;\n return (\n \n \n \n }\n />\n );\n })}\n \n
\n
\n \n );\n}\n","import ReactDOM from 'react-dom';\nimport '@uiw/reset.css';\nimport './index.less';\nimport App from './pages/root/App';\n\nReactDOM.render( , document.getElementById('root'));\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + ({\"7474\":\"codemirror-vendor\",\"8269\":\"refractor-vendor\",\"9167\":\"babel-standalone-vendor\",\"9438\":\"parse5-vendor\"}[chunkId] || chunkId) + \".\" + {\"161\":\"d281c14e\",\"260\":\"9bf5557e\",\"337\":\"59b5244c\",\"531\":\"6af786ea\",\"949\":\"67dfbc50\",\"1185\":\"b5f16296\",\"2021\":\"742f04f3\",\"2135\":\"89e3864a\",\"2144\":\"0f97145c\",\"2515\":\"48a74226\",\"2533\":\"7cf46bfa\",\"2583\":\"28234c18\",\"2798\":\"f2c21d18\",\"2857\":\"d83e485e\",\"2976\":\"15f71867\",\"3226\":\"5f38a342\",\"3251\":\"11b4dc0d\",\"3444\":\"9f998637\",\"3818\":\"797dfe72\",\"3831\":\"db948f53\",\"3835\":\"5035deab\",\"4071\":\"5c900fbf\",\"4073\":\"9db349d2\",\"4227\":\"adcdb74c\",\"4366\":\"3077af9a\",\"4386\":\"c5498c81\",\"4618\":\"d366a35c\",\"4727\":\"5bd872ca\",\"4869\":\"323118d7\",\"5015\":\"96f3f7cf\",\"5047\":\"c6805f37\",\"5257\":\"fae6aee3\",\"5442\":\"033a4e57\",\"5621\":\"e032d48e\",\"5741\":\"06d9eaf7\",\"5807\":\"0e27c19c\",\"5814\":\"c547a6be\",\"6161\":\"82ae0ba6\",\"6544\":\"182ea298\",\"6555\":\"ca46d438\",\"6557\":\"b21182e5\",\"6565\":\"6ef5f33d\",\"7137\":\"dbf4de11\",\"7474\":\"69873d65\",\"7549\":\"ba5eb90e\",\"7901\":\"eefa9cae\",\"8269\":\"afa57639\",\"8292\":\"ef369cb4\",\"8337\":\"26e63f30\",\"8433\":\"8dd63304\",\"8473\":\"1c176011\",\"8805\":\"246d74b9\",\"9079\":\"7347a654\",\"9167\":\"d5597ddd\",\"9213\":\"317d4de8\",\"9307\":\"e23026dd\",\"9438\":\"f35edd49\",\"9518\":\"8123dfd2\"}[chunkId] + \".chunk.js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/css/\" + chunkId + \".\" + {\"2021\":\"42c6f354\",\"2135\":\"42c6f354\",\"2144\":\"42c6f354\",\"2583\":\"42c6f354\",\"3818\":\"42c6f354\",\"4071\":\"42c6f354\",\"4227\":\"42c6f354\",\"4366\":\"42c6f354\",\"4618\":\"42c6f354\",\"5015\":\"42c6f354\",\"5047\":\"42c6f354\",\"5257\":\"42c6f354\",\"5442\":\"42c6f354\",\"5621\":\"42c6f354\",\"5741\":\"42c6f354\",\"5814\":\"42c6f354\",\"6555\":\"42c6f354\",\"6565\":\"42c6f354\",\"7137\":\"42c6f354\",\"7549\":\"42c6f354\",\"7901\":\"42c6f354\",\"8292\":\"42c6f354\",\"8337\":\"42c6f354\",\"8473\":\"42c6f354\",\"9307\":\"42c6f354\",\"9518\":\"7be59bce\"}[chunkId] + \".chunk.css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"website:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"./\";","var createStylesheet = function(chunkId, fullhref, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tlinkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tdocument.head.appendChild(linkTag);\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"2021\":1,\"2135\":1,\"2144\":1,\"2583\":1,\"3818\":1,\"4071\":1,\"4227\":1,\"4366\":1,\"4618\":1,\"5015\":1,\"5047\":1,\"5257\":1,\"5442\":1,\"5621\":1,\"5741\":1,\"5814\":1,\"6555\":1,\"6565\":1,\"7137\":1,\"7549\":1,\"7901\":1,\"8292\":1,\"8337\":1,\"8473\":1,\"9307\":1,\"9518\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkwebsite\"] = self[\"webpackChunkwebsite\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [4382,8264,8505], function() { return __webpack_require__(95806); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["_path","_path2","_path3","_path4","_path5","_path6","_path7","_path8","_path9","_path10","_path11","_path12","_path13","_path14","_path15","routes","path","exact","component","lazy","menus","label","target","divider","_excluded","_extends","Object","assign","bind","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","SvgLogo","_ref","svgRef","title","titleId","props","viewBox","width","height","xmlns","xmlnsXlink","ref","id","d","fill","ForwardRef","SideMenu","className","styles","VERSION","map","idx","otherItem","test","href","to","Loading","style","padding","tip","App","fixed","zIndex","size","Child","Com","element","Suspense","fallback","ReactDOM","document","getElementById","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","splice","r","n","getter","__esModule","a","definition","o","defineProperty","enumerable","get","f","e","chunkId","Promise","all","reduce","promises","u","miniCssF","g","globalThis","Function","window","obj","prop","inProgress","dataWebpackPrefix","l","url","done","push","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","setTimeout","type","head","appendChild","Symbol","toStringTag","value","p","loadStylesheet","resolve","reject","fullhref","existingLinkTags","dataHref","tag","rel","existingStyleTags","findStylesheet","linkTag","errorType","realHref","err","Error","code","request","createStylesheet","installedCssChunks","miniCss","then","installedChunks","installedChunkData","promise","error","realSrc","message","name","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"static/js/main.e42c3190.js","mappings":"0DAAIA,EAAOC,EAAQC,EAAQC,EAAQC,EAAQC,EAAQC,EAAQC,EAAQC,EAAQC,EAASC,EAASC,EAASC,EAASC,EAASC,E,4ECQ3GC,EAAiB,CAC5B,CACEC,KAAM,IACNC,OAAO,EACPC,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,yHAExB,CACEH,KAAM,cACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,yHAExB,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WAAWC,EAAAA,EAAAA,OAAK,kBAAM,yHAExB,CACEH,KAAM,gBACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,yHAExB,CACEH,KAAM,kBACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,uHAExB,CACEH,KAAM,SACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,gHAIbC,EAAQ,CACnB,CACEC,MAAO,2BACPL,KAAM,KAER,CACEK,MAAO,oDACPC,OAAQ,UACRN,KAAM,mCAER,CACEO,SAAS,EACTF,MAAO,gBAET,CACEA,MAAO,yBACPL,KAAM,eAER,CACEK,MAAO,mBACPL,KAAM,QAER,CACEO,SAAS,EACTF,MAAO,gBAET,CACEA,MAAO,8CACPL,KAAM,kBAER,CACEK,MAAO,gDACPL,KAAM,qBAER,CACEK,MAAO,0CACPL,KAAM,qBAER,CACEK,MAAO,6CACPL,KAAM,wBAER,CACEK,MAAO,0CACPL,KAAM,qBAER,CACEO,SAAS,EACTF,MAAO,sBAET,CACEA,MAAO,4BACPL,KAAM,WAER,CACEK,MAAO,2CACPL,KAAM,eAER,CACEK,MAAO,gCACPL,KAAM,SAER,CACEO,SAAS,EACTF,MAAO,4BAET,CACEA,MAAO,6BACPL,KAAM,YAER,CACEK,MAAO,mCACPL,KAAM,mBAER,CACEK,MAAO,wBACPL,KAAM,aAER,CACEK,MAAO,8CACPL,KAAM,iBAER,CACEK,MAAO,sBACPL,KAAM,WAER,CACEK,MAAO,wCACPL,KAAM,kBAER,CACEK,MAAO,mCACPL,KAAM,YAER,CACEK,MAAO,yBACPL,KAAM,cAER,CACEO,SAAS,EACTF,MAAO,4BAET,CACEA,MAAO,sCACPL,KAAM,gBAER,CACEO,SAAS,EACTF,MAAO,4BAET,CACEA,MAAO,uCACPL,KAAM,iBAER,CACEO,SAAS,EACTF,MAAO,gBAET,CACEA,MAAO,iBACPL,KAAM,mBAER,CACEO,SAAS,EACTF,MAAO,gBAET,CACEA,MAAO,+CACPL,KAAM,YAER,CAC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BS,OAAEN,EAAW,CAAC,KAAK,KAAK,OAAO,WAAa,OAAOH,EAAoB,UACrHqH,EAAsBrH,EAAoBS,EAAE4G,G","sources":["components/SideMenu/logo.svg","router.tsx","webpack://website/./src/components/SideMenu/index.module.less?d1bb","components/SideMenu/index.tsx","webpack://website/./src/pages/root/App.module.less?3fe1","pages/root/App.tsx","index.tsx","../webpack/bootstrap","../webpack/runtime/chunk loaded","../webpack/runtime/compat get default export","../webpack/runtime/define property getters","../webpack/runtime/ensure chunk","../webpack/runtime/get javascript chunk filename","../webpack/runtime/get mini-css chunk filename","../webpack/runtime/global","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/load script","../webpack/runtime/make namespace object","../webpack/runtime/publicPath","../webpack/runtime/css loading","../webpack/runtime/jsonp chunk loading","../webpack/startup"],"sourcesContent":["var _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15;\n\nvar _excluded = [\"title\", \"titleId\"];\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nfunction SvgLogo(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 1024 1024\",\n width: 42,\n height: 42,\n xmlns: \"http://www.w3.org/2000/svg\",\n xmlnsXlink: \"http://www.w3.org/1999/xlink\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 801.787737c0 107.787661 92.888119 223.570702 230.061131 222.200213h570.123392c124.274901 0 223.803427-107.368757 223.803427-223.99995V224.8119C1023.98795 108.072102 927.888232 0 795.545547 0H225.018766C93.151874 0 0 111.397477 0 224.8119v576.975837z\",\n fill: \"#F1F1F1\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M620.097107 0H225.018766C93.151874 0 0 111.397477 0 224.8119v91.450399l620.097107 0.584397V0z\",\n fill: \"#AFE881\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M697.206503 1023.98795h102.972848c124.274901 0 223.808599-107.368757 223.808599-223.99995V796.435072h-325.814348l-0.967099 227.552878z\",\n fill: \"#A3CAFF\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 408.560849V315.471035h1023.98795v93.089814z\",\n fill: \"#FFFFFF\"\n })), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M620.097107 1023.998293V0h78.102354v1023.998293z\",\n fill: \"#FFFFFF\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 796.435072v-124.119751h1023.98795v124.119751z\",\n fill: \"#FFDF48\"\n })), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M206.866253 1023.998293V0h155.149689v1023.998293z\",\n fill: \"#FFCF68\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M134.463064 536.911015l73.411662 116.103684 3.201255-101.002447z\",\n fill: \"#D6D7D4\"\n })), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M207.874726 653.014699l132.125475 208.965945 23.086274 2.482395v-280.122764l-155.211749-34.148446z\",\n fill: \"#E5BA5E\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M392.663177 796.435072h209.545171l-141.263792-62.059876z\",\n fill: \"#E4C84A\"\n })), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M362.776175 864.426838l253.281868 27.213255-0.630942-97.692587H363.086475z\",\n fill: \"#D6D7D4\"\n })), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M616.058043 891.640093l91.957221 9.877864L615.427101 793.952677z\",\n fill: \"#E7E7E8\"\n })), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M890.936748 186.179627L318.780895 664.216507l21.219306 197.764137 60.472177-157.616569z\",\n fill: \"#0066BD\"\n })), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M391.106509 702.884981l-51.106308 159.095663 120.944355-116.243319L419.814373 672.315321z\",\n fill: \"#014E9D\"\n })), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M134.463064 536.911015l184.317831 127.305492L890.936748 186.179627l-500.440495 513.690279 317.519011 201.648051L890.936748 186.179627z\",\n fill: \"#0093FD\"\n })));\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgLogo);\nexport default __webpack_public_path__ + \"static/media/logo.552138f67b47aa2ff9779e6ffc2abeed.svg\";\nexport { ForwardRef as ReactComponent };","import React, { lazy } from 'react';\n\nexport type Routes = {\n path: string;\n exact?: boolean;\n component: React.ReactNode;\n}[];\n\nexport const routes: Routes = [\n {\n path: '/',\n exact: true,\n component: lazy(() => import('./pages/home')),\n },\n {\n path: '/api-loader',\n component: lazy(() => import('./pages/api-loader')),\n },\n {\n path: '/map',\n component: lazy(() => import('./pages/map')),\n },\n {\n path: '/scale-control',\n component: lazy(() => import('./pages/scale-control')),\n },\n {\n path: '/tool-bar-control',\n component: lazy(() => import('./pages/tool-bar-control')),\n },\n {\n path: '/control-bar-control',\n component: lazy(() => import('./pages/control-bar-control')),\n },\n {\n path: '/map-type-control',\n component: lazy(() => import('./pages/map-type-control')),\n },\n {\n path: '/hawk-eye-control',\n component: lazy(() => import('./pages/hawk-eye-control')),\n },\n {\n path: '/polyline',\n component: lazy(() => import('./pages/polyline')),\n },\n {\n path: '/marker',\n component: lazy(() => import('./pages/marker')),\n },\n {\n path: '/mass-marks',\n component: lazy(() => import('./pages/mass-marks')),\n },\n {\n path: '/text',\n component: lazy(() => import('./pages/text')),\n },\n {\n path: '/circle',\n component: lazy(() => import('./pages/circle')),\n },\n {\n path: '/ellipse',\n component: lazy(() => import('./pages/ellipse')),\n },\n {\n path: '/rectangle',\n component: lazy(() => import('./pages/rectangle')),\n },\n {\n path: '/beizer-curve',\n component: lazy(() => import('./pages/beizer-curve')),\n },\n {\n path: '/polygon',\n component: lazy(() => import('./pages/polygon')),\n },\n {\n path: '/polygon-editor',\n component: lazy(() => import('./pages/polygon-editor')),\n },\n {\n path: '/info-window',\n component: lazy(() => import('./pages/info-window')),\n },\n {\n path: '/circle-marker',\n component: lazy(() => import('./pages/circle-marker')),\n },\n {\n path: '/weather',\n component: lazy(() => import('./pages/weather')),\n },\n {\n path: '/geolocation',\n component: lazy(() => import('./pages/geolocation')),\n },\n {\n path: '/auto-complete',\n component: lazy(() => import('./pages/auto-complete')),\n },\n {\n path: '/context-menu',\n component: lazy(() => import('./pages/context-menu')),\n },\n {\n path: '/require-script',\n component: lazy(() => import('./pages/require-script')),\n },\n {\n path: '/types',\n component: lazy(() => import('./pages/types')),\n },\n];\n\nexport const menus = [\n {\n label: '快速开始',\n path: '/',\n },\n {\n label: '国内镜像 🇨🇳',\n target: '__blank',\n path: 'https://uiw.gitee.io/react-amap',\n },\n {\n divider: true,\n label: '容器',\n },\n {\n label: 'APILoader 组件',\n path: '/api-loader',\n },\n {\n label: 'Map 组件',\n path: '/map',\n },\n {\n divider: true,\n label: '控件',\n },\n {\n label: 'ScaleControl 比例尺控件',\n path: '/scale-control',\n },\n {\n label: 'ToolBarControl 缩放工具条',\n path: '/tool-bar-control',\n },\n {\n label: 'MapTypeControl 图层切换',\n path: '/map-type-control',\n },\n {\n label: 'ControlBarControl 地图控件',\n path: '/control-bar-control',\n },\n {\n label: 'HawkEyeControl 鹰眼控件',\n path: '/hawk-eye-control',\n },\n {\n divider: true,\n label: '点标记',\n },\n {\n label: 'Marker 点标记',\n path: '/marker',\n },\n {\n label: 'MassMarks 海量点标记',\n path: '/mass-marks',\n },\n {\n label: 'Text 文本标记',\n path: '/text',\n },\n {\n divider: true,\n label: '矢量图形',\n },\n {\n label: 'Polygon 多边形',\n path: '/polygon',\n },\n {\n label: 'PolygonEditor 编辑器',\n path: '/polygon-editor',\n },\n {\n label: 'Polyline 折线',\n path: '/polyline',\n },\n {\n label: 'BesizerCurve 贝塞尔曲线',\n path: '/beizer-curve',\n },\n {\n label: 'Circle 圆形',\n path: '/circle',\n },\n {\n label: 'CircleMarker 圆点标记',\n path: '/circle-marker',\n },\n {\n label: 'Ellipse 圆形组件',\n path: '/ellipse',\n },\n {\n label: 'Rectangle 矩形',\n path: '/rectangle',\n },\n {\n divider: true,\n label: '信息窗体',\n },\n {\n label: 'InfoWindow 信息窗体',\n path: '/info-window',\n },\n {\n divider: true,\n label: '右键菜单',\n },\n {\n label: 'ContextMenu 右键菜单',\n path: '/context-menu',\n },\n {\n divider: true,\n label: '工具',\n },\n {\n label: 'Require Script',\n path: '/require-script',\n },\n {\n divider: true,\n label: '服务',\n },\n {\n label: 'Weather 天气查询服务',\n path: '/weather',\n },\n {\n label: 'Geolocation 定位',\n path: '/geolocation',\n },\n {\n divider: true,\n label: '搜索',\n },\n {\n label: 'AutoComplete 输入提示',\n path: '/auto-complete',\n },\n {\n divider: true,\n label: '其它',\n },\n {\n label: '高德地图 API 类型 types 定义',\n path: '/types',\n },\n {\n label: '高德拾取坐标系统',\n target: '__blank',\n path: 'https://lbs.amap.com/console/show/picker',\n },\n {\n label: '官方示例中心',\n target: '__blank',\n path: 'https://lbs.amap.com/demo-center/jsapi-v2',\n },\n {\n label: '高德地图 JSAPI 2.0',\n target: '__blank',\n path: 'https://a.amap.com/jsapi/static/doc/index.html',\n },\n {\n label: 'AMapUI 组件库',\n target: '__blank',\n path: 'https://lbs.amap.com/api/amap-ui/intro',\n },\n {\n label: '源码 Github 仓库',\n target: '__blank',\n path: 'https://github.com/uiwjs/react-amap',\n },\n {\n label: '源码 Gitee 仓库',\n target: '__blank',\n path: 'https://gitee.com/uiw/react-amap',\n },\n {\n divider: true,\n label: '相关连接',\n },\n {\n label: '百度地图 React 组件',\n target: '__blank',\n path: 'https://uiwjs.github.io/react-baidu-map/',\n },\n {\n label: 'React Web 组件库',\n target: '__blank',\n path: 'https://uiwjs.github.io/',\n },\n {\n label: 'React Native 组件库',\n target: '__blank',\n path: 'https://uimjs.github.io/',\n },\n];\n","// extracted by mini-css-extract-plugin\nexport default {\"side\":\"index_side__kUxPB\",\"logo\":\"index_logo__038c9\",\"menus\":\"index_menus__vhYPT\",\"divider\":\"index_divider__NNyG+\"};","import { NavLink } from 'react-router-dom';\nimport { menus } from '../../router';\nimport { ReactComponent as Logo } from './logo.svg';\nimport styles from './index.module.less';\n\nexport default function SideMenu() {\n // @ts-ignore\n const version = VERSION;\n return (\n \n
\n
\n
\n 高德地图 React 组件{version} \n
\n
\n
\n {menus.map(({ label, path, divider, ...otherItem }, idx) => {\n if (divider) {\n return (\n
\n {label}\n
\n );\n }\n if (path && /^http/.test(path)) {\n return (\n
\n {label}\n \n \n \n \n \n );\n }\n return (\n
\n {label}\n \n );\n })}\n
\n
\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"warpper\":\"App_warpper__aaHHc\",\"content\":\"App_content__WcBYa\"};","import { Suspense } from 'react';\nimport { HashRouter, Route, Routes } from 'react-router-dom';\nimport GitHubCorners from '@uiw/react-github-corners';\nimport Loader from '@uiw/react-loader';\nimport { routes } from '../../router';\nimport SideMenu from '../../components/SideMenu';\nimport styles from './App.module.less';\n\nconst Loading = (\n \n \n
\n);\n\nexport default function App() {\n return (\n \n \n
\n
\n
\n \n {routes.map(({ component: Child, path }, idx) => {\n // @ts-ignore\n const Com = Child as any;\n return (\n \n \n \n }\n />\n );\n })}\n \n
\n
\n \n );\n}\n","import ReactDOM from 'react-dom';\nimport '@uiw/reset.css';\nimport './index.less';\nimport App from './pages/root/App';\n\nReactDOM.render( , document.getElementById('root'));\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + ({\"7474\":\"codemirror-vendor\",\"8269\":\"refractor-vendor\",\"9167\":\"babel-standalone-vendor\",\"9438\":\"parse5-vendor\"}[chunkId] || chunkId) + \".\" + {\"161\":\"d281c14e\",\"260\":\"9bf5557e\",\"337\":\"59b5244c\",\"531\":\"6af786ea\",\"949\":\"67dfbc50\",\"1185\":\"b5f16296\",\"2021\":\"742f04f3\",\"2135\":\"89e3864a\",\"2144\":\"0f97145c\",\"2515\":\"52640890\",\"2533\":\"7cf46bfa\",\"2583\":\"28234c18\",\"2798\":\"f2c21d18\",\"2857\":\"d83e485e\",\"2976\":\"15f71867\",\"3226\":\"5f38a342\",\"3251\":\"11b4dc0d\",\"3444\":\"9f998637\",\"3818\":\"797dfe72\",\"3831\":\"db948f53\",\"3835\":\"5035deab\",\"4071\":\"5c900fbf\",\"4073\":\"9db349d2\",\"4227\":\"adcdb74c\",\"4366\":\"3077af9a\",\"4386\":\"c5498c81\",\"4618\":\"d366a35c\",\"4727\":\"5bd872ca\",\"4869\":\"323118d7\",\"5015\":\"96f3f7cf\",\"5047\":\"c6805f37\",\"5257\":\"fae6aee3\",\"5442\":\"033a4e57\",\"5621\":\"e032d48e\",\"5741\":\"06d9eaf7\",\"5807\":\"0e27c19c\",\"5814\":\"c547a6be\",\"6161\":\"82ae0ba6\",\"6544\":\"182ea298\",\"6555\":\"ca46d438\",\"6557\":\"b21182e5\",\"6565\":\"6ef5f33d\",\"7137\":\"dbf4de11\",\"7474\":\"69873d65\",\"7549\":\"ba5eb90e\",\"7901\":\"eefa9cae\",\"8269\":\"afa57639\",\"8292\":\"15056df8\",\"8337\":\"26e63f30\",\"8433\":\"8dd63304\",\"8473\":\"1c176011\",\"8805\":\"246d74b9\",\"9079\":\"7347a654\",\"9167\":\"d5597ddd\",\"9213\":\"317d4de8\",\"9307\":\"e23026dd\",\"9438\":\"f35edd49\",\"9518\":\"8123dfd2\"}[chunkId] + \".chunk.js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/css/\" + chunkId + \".\" + {\"2021\":\"42c6f354\",\"2135\":\"42c6f354\",\"2144\":\"42c6f354\",\"2583\":\"42c6f354\",\"3818\":\"42c6f354\",\"4071\":\"42c6f354\",\"4227\":\"42c6f354\",\"4366\":\"42c6f354\",\"4618\":\"42c6f354\",\"5015\":\"42c6f354\",\"5047\":\"42c6f354\",\"5257\":\"42c6f354\",\"5442\":\"42c6f354\",\"5621\":\"42c6f354\",\"5741\":\"42c6f354\",\"5814\":\"42c6f354\",\"6555\":\"42c6f354\",\"6565\":\"42c6f354\",\"7137\":\"42c6f354\",\"7549\":\"42c6f354\",\"7901\":\"42c6f354\",\"8292\":\"42c6f354\",\"8337\":\"42c6f354\",\"8473\":\"42c6f354\",\"9307\":\"42c6f354\",\"9518\":\"7be59bce\"}[chunkId] + \".chunk.css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"website:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"./\";","var createStylesheet = function(chunkId, fullhref, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tlinkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tdocument.head.appendChild(linkTag);\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"2021\":1,\"2135\":1,\"2144\":1,\"2583\":1,\"3818\":1,\"4071\":1,\"4227\":1,\"4366\":1,\"4618\":1,\"5015\":1,\"5047\":1,\"5257\":1,\"5442\":1,\"5621\":1,\"5741\":1,\"5814\":1,\"6555\":1,\"6565\":1,\"7137\":1,\"7549\":1,\"7901\":1,\"8292\":1,\"8337\":1,\"8473\":1,\"9307\":1,\"9518\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkwebsite\"] = self[\"webpackChunkwebsite\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [4382,8264,8505], function() { return __webpack_require__(95806); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["_path","_path2","_path3","_path4","_path5","_path6","_path7","_path8","_path9","_path10","_path11","_path12","_path13","_path14","_path15","routes","path","exact","component","lazy","menus","label","target","divider","_excluded","_extends","Object","assign","bind","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","SvgLogo","_ref","svgRef","title","titleId","props","viewBox","width","height","xmlns","xmlnsXlink","ref","id","d","fill","ForwardRef","SideMenu","className","styles","VERSION","map","idx","otherItem","test","href","to","Loading","style","padding","tip","App","fixed","zIndex","size","Child","Com","element","Suspense","fallback","ReactDOM","document","getElementById","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","splice","r","n","getter","__esModule","a","definition","o","defineProperty","enumerable","get","f","e","chunkId","Promise","all","reduce","promises","u","miniCssF","g","globalThis","Function","window","obj","prop","inProgress","dataWebpackPrefix","l","url","done","push","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","setTimeout","type","head","appendChild","Symbol","toStringTag","value","p","loadStylesheet","resolve","reject","fullhref","existingLinkTags","dataHref","tag","rel","existingStyleTags","findStylesheet","linkTag","errorType","realHref","err","Error","code","request","createStylesheet","installedCssChunks","miniCss","then","installedChunks","installedChunkData","promise","error","realSrc","message","name","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
\ No newline at end of file