"use strict";function t(t,e,n){var a=t.$amap.events||(t.$amap.events={});(a[e]||(a[e]=[])).push(n)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.bindEvents=function(e){var n=e.$options.amapMeta.events,a=void 0===n?[]:n,o=e.$amap.context.target;a.forEach((function(n){e.$watch("$listeners."+n,(function(a,i){i&&o.off(n,i),a&&(t(e,n,a),o.on(n,a))}),{immediate:!0})}))},exports.bindTwoWayEvent=function(e,n,a,o){o||(o=e.$amap.context.target);var i=a.events;(void 0===i?[]:i).forEach((function(i){var r=a.getter;if(r){var f=function(t){var i="function"==typeof r?r.call(e,o,t):o[r](),f=e.$props[n];if("function"==typeof a.equals){if(a.equals(i,f))return}else if(i===f)return;e.$emit("update:"+n,i)};t(e,i,f),o.on(i,f)}}))},exports.unbindEvents=function(t){var e=t.$amap.context.target,n=t.$amap.events||{},a=function(t){n[t].forEach((function(n){e.off(t,n)}))};for(var o in n)a(o)};