var ct=Object.defineProperty;var Q=Object.getOwnPropertySymbols;var dt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable;var K=(t,p,o)=>p in t?ct(t,p,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[p]=o,q=(t,p)=>{for(var o in p||(p={}))dt.call(p,o)&&K(t,o,p[o]);if(Q)for(var o of Q(p))gt.call(p,o)&&K(t,o,p[o]);return t};import{o as H,a as X,V as ft,K as at,L as mt,M as yt,J as vt,a1 as tt,k as _t,a4 as bt,Q as wt,R as et,a5 as A,Y as O}from"./vue.1704421723665.js";import{_ as xt}from"./index.1704421723665.js";var Mt={"bm-map":["click","dblclick","rightclick","rightdblclick","maptypechange","mousemove","mouseover","mouseout","movestart","moving","moveend","zoomstart","zoomend","addoverlay","addcontrol","removecontrol","removeoverlay","clearoverlays","dragstart","dragging","dragend","addtilelayer","removetilelayer","load","resize","hotspotclick","hotspotover","hotspotout","tilesloaded","touchstart","touchmove","touchend","longpress"],"bm-geolocation":["locationSuccess","locationError"],"bm-overview-map":["viewchanged","viewchanging"],"bm-marker":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","infowindowclose","infowindowopen","dragstart","dragging","dragend","rightclick"],"bm-polyline":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-polygon":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-circle":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-label":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","rightclick"],"bm-info-window":["close","open","maximize","restore","clickclose"],"bm-ground":["click","dblclick"],"bm-autocomplete":["onconfirm","onhighlight"],"bm-point-collection":["click","mouseover","mouseout"]};function V(t,p){const o=p||Mt[this.$options.name];o&&o.forEach(g=>{let m=g.slice(0,2)==="on"?g.slice(2):g;const i=this.$attrs["on"+m.replace(m[0],m[0].toUpperCase())];i&&t.addEventListener(g,i)})}function L(t,p={}){const{lng:o,lat:g}=p;return new t.Point(o,g)}function it(t,p={}){const{sw:o,ne:g}=p;return new t.Bounds(L(t,o),L(t,g))}function Z(t,p={}){const{width:o,height:g}=p;return new t.Size(o,g)}const nt=t=>Object.prototype.toString.call(t).slice(8,-1),N=t=>{Object.keys(t).forEach(p=>{typeof t[p]=="undefined"&&delete t[p]})};let j={v:"3.0",type:"API"};const Ct=(t={})=>{j=Object.assign(j,t),j.ak||console.error("\u8BF7\u914D\u7F6Eak\uFF1A\u767E\u5EA6\u5730\u56FE\u5F00\u53D1\u8005\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5")},E=()=>j;var $=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},U={exports:{}};function Y(){}Y.prototype={on:function(t,p,o){var g=this.e||(this.e={});return(g[t]||(g[t]=[])).push({fn:p,ctx:o}),this},once:function(t,p,o){var g=this;function w(){g.off(t,w),p.apply(o,arguments)}return w._=p,this.on(t,w,o)},emit:function(t){var p=[].slice.call(arguments,1),o=((this.e||(this.e={}))[t]||[]).slice(),g=0,w=o.length;for(g;gW.on(...t),$once:(...t)=>W.once(...t),$off:(...t)=>W.off(...t),$emit:(...t)=>W.emit(...t)};const ot={API:{"2.0":{setMapStyle:"setMapStyle",NavigationControl:"NavigationControl"},"3.0":{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl"}},WebGL:{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl3D"}},R=t=>{const p=E();return p.type=="WebGL"?ot[p.type][t]:ot[p.type][p.v][t]};let rt;new Promise(t=>{rt=t});var st=(t,p)=>{const o=t.__vccOpts||t;for(const[g,w]of p)o[g]=w;return o};const Bt={name:"bm-map",inheritAttrs:!1,emits:["ready","init","animationed"],props:{ak:{type:String},v:{type:String},type:{type:String},center:{type:[Object,String]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},highResolution:{type:Boolean,default:!0},mapClick:{type:Boolean,default:!0},mapType:{type:String},dragging:{type:Boolean,default:!0},scrollWheelZoom:{type:Boolean,default:!1},doubleClickZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},inertialDragging:{type:Boolean,default:!0},continuousZoom:{type:Boolean,default:!0},pinchToZoom:{type:Boolean,default:!0},autoResize:{type:Boolean,default:!0},theme:{type:Array},mapStyle:{type:Object},hasAnimation:{type:Boolean,default:!0},defaultAnimation:{type:Boolean,default:!0},preserveDrawingBuffer:{type:Boolean,default:!1}},watch:{center(t,p){const{map:o,zoom:g}=this;nt(t)==="String"&&t!==p&&this.setCenterZoom(o,t,g)},"center.lng"(t,p){const{BMap:o,map:g,zoom:w,center:m}=this;t!==p&&t>=-180&&t<=180&&this.setCenterZoom(g,new o.Point(t,m.lat),w)},"center.lat"(t,p){const{BMap:o,map:g,zoom:w,center:m}=this;t!==p&&t>=-74&&t<=74&&this.setCenterZoom(g,new o.Point(m.lng,t),w)},zoom(t,p){const{map:o}=this;t!==p&&t>=3&&t<=19&&o.setZoom(t)},minZoom(t){const{map:p}=this;p.setMinZoom(t)},maxZoom(t){const{map:p}=this;p.setMaxZoom(t)},highResolution(){this.reset()},mapClick(){this.reset()},mapType(t){const{map:p}=this;p.setMapType(window[t])},dragging(t){const{map:p}=this;t?p.enableDragging():p.disableDragging()},scrollWheelZoom(t){const{map:p}=this;t?p.enableScrollWheelZoom():p.disableScrollWheelZoom()},doubleClickZoom(t){const{map:p}=this;t?p.enableDoubleClickZoom():p.disableDoubleClickZoom()},keyboard(t){const{map:p}=this;t?p.enableKeyboard():p.disableKeyboard()},inertialDragging(t){const{map:p}=this;t?p.enableInertialDragging():p.disableInertialDragging()},continuousZoom(t){const{map:p}=this;t?p.enableContinuousZoom():p.disableContinuousZoom()},pinchToZoom(t){const{map:p}=this;t?p.enablePinchToZoom():p.disablePinchToZoom()},autoResize(t){const{map:p}=this;t?p.enableAutoResize():p.disableAutoResize()},theme(t){const{map:p}=this;p[R("setMapStyle")]({styleJson:t})},mapStyle:{handler(t){const{map:p,theme:o}=this;!o&&p[R("setMapStyle")](t)},deep:!0}},methods:{setMapOptions(){const{map:t,minZoom:p,maxZoom:o,mapType:g,dragging:w,scrollWheelZoom:m,doubleClickZoom:i,keyboard:r,inertialDragging:e,continuousZoom:n,pinchToZoom:u,autoResize:h}=this;p&&t.setMinZoom(p),o&&t.setMaxZoom(o),g&&t.setMapType(window[g]),w?t.enableDragging():t.disableDragging(),m?t.enableScrollWheelZoom():t.disableScrollWheelZoom(),i?t.enableDoubleClickZoom():t.disableDoubleClickZoom(),r?t.enableKeyboard():t.disableKeyboard(),e?t.enableInertialDragging():t.disableInertialDragging(),n?t.enableContinuousZoom():t.disableContinuousZoom(),u?t.enablePinchToZoom():t.disablePinchToZoom(),h?t.enableAutoResize():t.disableAutoResize()},init(t){if(this.map)return;let p=this.$refs.view;this.$slots.default;const o=new t.Map(p,{enableHighResolution:this.highResolution,enableMapClick:this.mapClick,preserveDrawingBuffer:this.preserveDrawingBuffer});this.map=o;const{setMapOptions:g,zoom:w,getCenterPoint:m,theme:i,mapStyle:r}=this;g(),V.call(this,o),o.reset(),this.setCenterZoom(o,m(),w),i?o[R("setMapStyle")]({styleJson:i}):r&&o[R("setMapStyle")](r);let e=0;this.$emit("init",{BMap:t,map:o}),z.$emit("init",{BMap:t,map:o}),o.addEventListener("tilesloaded",()=>{e||(e++,this.$emit("ready",{BMap:t,map:o}),z.$emit("ready",{BMap:t,map:o}))}),o.addEventListener("loaded",()=>{this.$emit("loaded",{BMap:t,map:o}),z.$emit("loaded",{BMap:t,map:o})})},setCenterZoom(t,p,o){E().type==="WebGL"&&(!this.hasAnimation||!this.defaultAnimation)?t.setCenter(p,{noAnimation:!this.hasAnimation,callback:()=>{t.setZoom(o,{noAnimation:!this.hasAnimation,zoomCenter:p,callback:()=>{this.$emit("animationed",{BMap:this.BMap,map:t})}})}}):t.centerAndZoom(p,o)},getCenterPoint(){const{center:t,BMap:p}=this;switch(nt(t)){case"String":return t;case"Object":return new p.Point(t.lng,t.lat);default:return new p.Point}},initMap(t){this.BMap=t,this.init(t),rt(t)},getMapScript(){return window.BMap?window.BMap._preloader?window.BMap._preloader:Promise.resolve(window.BMap):(window.BMap={},window.BMap._preloader=new Promise((t,p)=>{window._initBaiduMap=function(){window.BMap=E().type=="WebGL"?window.BMapGL:window.BMap,t(window.BMap),window.document.body.removeChild(o),window.BMap._preloader=null,window._initBaiduMap=null};const o=document.createElement("script");switch(window.document.body.appendChild(o),E().type){case"WebGL":o.src=`https://api.map.baidu.com/api?v=1.0&type=webgl&ak=${E().ak}&callback=_initBaiduMap`;break;default:o.src=`https://api.map.baidu.com/api?v=${E().v}&ak=${E().ak}&callback=_initBaiduMap`}}),window.BMap._preloader)},reset(){const{getMapScript:t,initMap:p}=this;t().then(p)}},created(){const t={};this.ak&&(t.ak=this.ak),this.v&&(t.v=this.v),this.type&&(t.type=this.type),Ct(t)},mounted(){this.reset()},data(){return{hasBmView:!1,map:null,BMap:null,name:"bm-map"}}},kt={key:0,ref:"view",style:{width:"100%",height:"100%"}};function Pt(t,p,o,g,w,m){return H(),X("div",{class:mt(t.$attrs.class),style:yt(t.$attrs.style)},[w.hasBmView?ft("",!0):(H(),X("div",kt,null,512)),at(t.$slots,"default")],6)}var It=st(Bt,[["render",Pt]]);const Tt={control:{unload:"removeControl"},layer:{unload:"removeTileLayer"},overlay:{unload:"removeOverlay"},contextMenu:{unload:"removeContextMenu"}},G=t=>t.abstract||t.name!=="bm-map"?G(t.$parent):t;function Ot(){const{unload:t,renderByParent:p,$parent:o,ready:g}=this;z.$off("ready",g),p&&o.reload(),t()}const Et=(t={})=>({emits:["ready"],computed:{renderByParent(){return this.$parent.preventChildrenRender}},created(){const p=G(this.$parent),o=p.map,{ready:g}=this;o?g():z.$on("ready",g),o?this.init({BMap:p.BMap,map:o}):z.$on("init",this.init)},mounted(){const o=G(this.$parent).map,{mountedReady:g}=this;o?g():z.$on("ready",g)},unmounted:Ot,methods:{init(){},ready(){const p=G(this.$parent),o=this.BMap=p.BMap,g=this.map=p.map;this.load(),this.$emit("ready",{BMap:o,map:g})},mountedReady(){this.mountedLoad()},transmitEvent(p){this.$emit(p.type.replace(/^on/,""),p)},reload(){this&&this.BMap&&this.$nextTick(()=>{this.unload(),this.$nextTick(()=>{this.load(),this.mountedLoad()})})},unload(){const{map:p,originInstance:o}=this;try{switch(t.type){case"search":return o.clearResults();case"autoComplete":case"lushu":return o.dispose();case"markerClusterer":return o.clearMarkers();default:p[Tt[t.type].unload](o)}}catch{}},mountedLoad(){}}});var D=t=>Et({type:t});const zt={name:"bm-navigation",render(){},mixins:[D("control")],props:{anchor:{type:String},offset:{type:Object},type:{type:String},showZoomInfo:{type:Boolean},enableGeolocation:{type:Boolean,default:!1}},watch:{anchor(){this.reload()},offset(){this.reload()},type(){this.reload()},showZoomInfo(){this.reload()}},methods:{load(){const{BMap:t,map:p,anchor:o,offset:g,type:w,showZoomInfo:m,enableGeolocation:i}=this;let r={anchor:window[o],offset:g&&Z(t,g),type:window[w],showZoomInfo:m,enableGeolocation:i};N(r),this.originInstance=new t[R("NavigationControl")](r),p.addControl(this.originInstance)}}},At={name:"bm-map-type",render(){},mixins:[D("control")],props:["type","mapTypes","anchor","offset"],watch:{anchor(){this.reload()},offset(){this.reload()},type(){this.reload()},mapTypes(){this.reload()}},methods:{load(){const{BMap:t,map:p,anchor:o,offset:g,type:w}=this,m=[];this.mapTypes&&this.mapTypes.forEach(r=>m.push(window[r]));let i={anchor:window[o],offset:g&&Z(t,g),type:window[w],mapTypes:m};N(i),this.originInstance=new t.MapTypeControl(i),p.addControl(this.originInstance)}}},Lt={name:"bm-polygon",render(){},mixins:[D("overlay")],props:{path:{type:Array,default(){return[]}},strokeColor:{type:String},strokeWeight:{type:Number},strokeOpacity:{type:Number},strokeStyle:{type:String},fillColor:{type:String},fillOpacity:{type:Number},massClear:{type:Boolean,default:!0},clicking:{type:Boolean,default:!0},editing:{type:Boolean,default:!1}},watch:{path:{handler(t,p){this.reload()},deep:!0},strokeColor(t){this.originInstance.setStrokeColor(t)},strokeOpacity(t){this.originInstance.setStrokeOpacity(t)},strokeWeight(t){this.originInstance.setStrokeWeight(t)},strokeStyle(t){this.originInstance.setStrokeStyle(t)},fillColor(t){this.originInstance.setFillColor(t)},fillOpacity(t){this.originInstance.setFillOpacity(t)},editing(t){t?this.originInstance.enableEditing():this.originInstance.disableEditing()},massClear(t){t?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},clicking(t){this.reload()}},methods:{load(){const{BMap:t,map:p,path:o,strokeColor:g,strokeWeight:w,strokeOpacity:m,strokeStyle:i,fillColor:r,fillOpacity:e,editing:n,massClear:u,clicking:h}=this;let d={strokeColor:g,strokeWeight:w,strokeOpacity:m,strokeStyle:i,fillColor:r,fillOpacity:e,enableMassClear:u,enableClicking:h};N(d);const a=new t.Polygon(o.map(c=>L(t,{lng:c.lng,lat:c.lat})),d);this.originInstance=a,p.addOverlay(a),V.call(this,a),n?a.enableEditing():a.disableEditing()}}},$t={name:"bm-ground",render(){},mixins:[D("overlay")],props:{bounds:{type:Object},opacity:{type:Number},imageURL:{type:String},displayOnMinLevel:{type:Number},displayOnMaxLevel:{type:Number}},watch:{bounds:{handler(t){const{BMap:p}=this;this.originInstance.setBounds(it(p,t))},deep:!0},opacity(t){this.originInstance.setOpacity(t)},imageURL(t){this.originInstance.setImageURL(t)},displayOnMinLevel(t){this.originInstance.setDisplayOnMinLevel(t)},displayOnMaxLevel(t){this.originInstance.setDisplayOnMaxLevel(t)}},methods:{load(){const{BMap:t,map:p,bounds:o,opacity:g,imageURL:w,displayOnMinLevel:m,displayOnMaxLevel:i}=this;let r={opacity:g,imageURL:w,displayOnMaxLevel:i,displayOnMinLevel:m};N(r);const e=new t.GroundOverlay(o&&it(t,o),r);e.setImageURL(w),this.originInstance=e,V.call(this,e),p.addOverlay(e)}}},Dt={name:"bm-label",render(){},mixins:[D("overlay")],props:{content:{type:String},title:{type:String},offset:{},position:{},labelStyle:{},zIndex:{type:Number,default:0},massClear:{type:Boolean,default:!0}},watch:{content(t){this.originInstance.setContent(t)},title(t){this.originInstance.setTitle(t)},"offset.width"(t,p){const{BMap:o}=this;t.toString()!==p.toString()&&this.originInstance.setOffset(Z(o,{width:t,height:this.offset.height}))},"offset.height"(t,p){const{BMap:o}=this;t.toString()!==p.toString()&&this.originInstance.setOffset(Z(o,{width:this.offset.width,height:t}))},"position.lng"(t,p){const{BMap:o}=this,g=t;t.toString()!==p.toString()&&g>=-180&&g<=180&&this.originInstance.setPosition(L(o,{lng:g,lat:this.position.lat}))},"position.lat"(t,p){const{BMap:o}=this,g=t;t.toString()!==p.toString()&&g>=-74&&g<=74&&this.originInstance.setPosition(L(o,{lng:this.position.lng,lat:g}))},labelStyle:{handler(t){this.originInstance.setStyle(t)},deep:!0},zIndex(t){this.originInstance.setZIndex(t)},massClear(t){t?this.originInstance.enableMassClear():this.originInstance.disableMassClear()}},methods:{load(){const{BMap:t,map:p,content:o,title:g,offset:w,position:m,labelStyle:i,zIndex:r,massClear:e,$parent:n}=this;let u={offset:Z(t,w),position:L(t,m),enableMassClear:e};N(u);const h=new t.Label(o,u);this.originInstance=h;try{n.originInstance.setLabel(h)}catch{p.addOverlay(h)}g&&h.setTitle(g),i&&h.setStyle(i),r&&h.setZIndex(r),V.call(this,h)}}},Ft={name:"bm-overlay",emits:["initialize","draw"],mixins:[D("overlay")],props:{pane:{type:String}},watch:{pane(){this.reload()}},methods:{load(){},mountedLoad(){const{BMap:t,map:p,$el:o,pane:g}=this,w=this.$emit.bind(this);class m extends t.Overlay{initialize(){w("initialize",{BMap:t,map:p,el:o,overlay:this});try{p.getPanes()[g].appendChild(o)}catch{}return o}draw(){w("draw",{BMap:t,map:p,el:o,overlay:this})}}const i=new m;this.originInstance=i,p.addOverlay(i)}}};function Rt(t,p,o,g,w,m){return H(),X("div",null,[at(t.$slots,"default")])}var Zt=st(Ft,[["render",Rt]]),lt={exports:{}};(function(t,p){(function(o,g){t.exports=g()})($,function(){var o=typeof window!="undefined"?window:typeof $!="undefined"?$:this;function g(a,c){return c={exports:{}},a(c,c.exports,o),c.exports}var w=g(function(a,c,y){(function(_,l){typeof c=="object"?a.exports=l():(_.BMapLib=_.BMapLib||{},_.BMapLib.TextIconOverlay=_.BMapLib.TextIconOverlay||l())})(o,function(){var _,l=_=l||{version:"1.3.8"},M={};l.guid="$BAIDU$",M[l.guid]=M[l.guid]||{},l.dom=l.dom||{},l.dom.g=function(s){return typeof s=="string"||s instanceof String?document.getElementById(s):s&&s.nodeName&&(s.nodeType==1||s.nodeType==9)?s:null},l.g=l.G=l.dom.g,l.dom.getDocument=function(s){return s=l.dom.g(s),s.nodeType==9?s:s.ownerDocument||s.document},l.lang=l.lang||{},l.lang.isString=function(s){return Object.prototype.toString.call(s)=="[object String]"},l.isString=l.lang.isString,l.dom._g=function(s){return l.lang.isString(s)?document.getElementById(s):s},l._g=l.dom._g,l.browser=l.browser||{},/msie (\d+\.\d)/i.test(navigator.userAgent)&&(l.browser.ie=l.ie=document.documentMode||+RegExp.$1),l.dom.getComputedStyle=function(s,f){s=l.dom._g(s);var v=l.dom.getDocument(s),b;return v.defaultView&&v.defaultView.getComputedStyle&&(b=v.defaultView.getComputedStyle(s,null),b)?b[f]||b.getPropertyValue(f):""},l.dom._styleFixer=l.dom._styleFixer||{},l.dom._styleFilter=l.dom._styleFilter||[],l.dom._styleFilter.filter=function(s,f,v){for(var b=0,x=l.dom._styleFilter,P;P=x[b];b++)(P=P[v])&&(f=P(s,f));return f},l.string=l.string||{},l.string.toCamelCase=function(s){return s.indexOf("-")<0&&s.indexOf("_")<0?s:s.replace(/[-_][^-_]/g,function(f){return f.charAt(1).toUpperCase()})},l.dom.getStyle=function(s,f){var v=l.dom;s=v.g(s),f=l.string.toCamelCase(f);var b=s.style[f]||(s.currentStyle?s.currentStyle[f]:"")||v.getComputedStyle(s,f);if(!b){var x=v._styleFixer[f];x&&(b=x.get?x.get(s):l.dom.getStyle(s,x))}return(x=v._styleFilter)&&(b=x.filter(f,b,"get")),b},l.getStyle=l.dom.getStyle,/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(l.browser.opera=+RegExp.$1),l.browser.isWebkit=/webkit/i.test(navigator.userAgent),l.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent),l.browser.isStrict=document.compatMode=="CSS1Compat",l.dom.getPosition=function(s){s=l.dom.g(s);var f=l.dom.getDocument(s),v=l.browser,b=l.dom.getStyle;v.isGecko>0&&f.getBoxObjectFor&&b(s,"position")=="absolute"&&(s.style.top===""||s.style.left);var x={left:0,top:0},P=v.ie&&!v.isStrict?f.body:f.documentElement,C,B;if(s==P)return x;if(s.getBoundingClientRect){B=s.getBoundingClientRect(),x.left=Math.floor(B.left)+Math.max(f.documentElement.scrollLeft,f.body.scrollLeft),x.top=Math.floor(B.top)+Math.max(f.documentElement.scrollTop,f.body.scrollTop),x.left-=f.documentElement.clientLeft,x.top-=f.documentElement.clientTop;var I=f.body,F=parseInt(b(I,"borderLeftWidth")),J=parseInt(b(I,"borderTopWidth"));v.ie&&!v.isStrict&&(x.left-=isNaN(F)?2:F,x.top-=isNaN(J)?2:J)}else{C=s;do{if(x.left+=C.offsetLeft,x.top+=C.offsetTop,v.isWebkit>0&&b(C,"position")=="fixed"){x.left+=f.body.scrollLeft,x.top+=f.body.scrollTop;break}C=C.offsetParent}while(C&&C!=s);for((v.opera>0||v.isWebkit>0&&b(s,"position")=="absolute")&&(x.top-=f.body.offsetTop),C=s.offsetParent;C&&C!=f.body;)x.left-=C.scrollLeft,(!v.opera||C.tagName!="TR")&&(x.top-=C.scrollTop),C=C.offsetParent}return x},l.event=l.event||{},l.event._listeners=l.event._listeners||[],l.event.on=function(s,f,v){f=f.replace(/^on/i,""),s=l.dom._g(s);var b=function(I){v.call(s,I)},x=l.event._listeners,P=l.event._eventFilter,C,B=f;return f=f.toLowerCase(),P&&P[f]&&(C=P[f](s,f,b),B=C.type,b=C.listener),s.addEventListener?s.addEventListener(B,b,!1):s.attachEvent&&s.attachEvent("on"+B,b),x[x.length]=[s,f,v,b,B],s},l.on=l.event.on,function(){var s=M[l.guid];l.lang.guid=function(){return"TANGRAM__"+(s._counter++).toString(36)},s._counter=s._counter||1}(),M[l.guid]._instances=M[l.guid]._instances||{},l.lang.isFunction=function(s){return Object.prototype.toString.call(s)=="[object Function]"},l.lang.Class=function(s){this.guid=s||l.lang.guid(),M[l.guid]._instances[this.guid]=this},M[l.guid]._instances=M[l.guid]._instances||{},l.lang.Class.prototype.dispose=function(){delete M[l.guid]._instances[this.guid];for(var s in this)l.lang.isFunction(this[s])||delete this[s];this.disposed=!0},l.lang.Class.prototype.toString=function(){return"[object "+(this._className||"Object")+"]"},l.lang.Event=function(s,f){this.type=s,this.returnValue=!0,this.target=f||null,this.currentTarget=null},l.lang.Class.prototype.addEventListener=function(s,f,v){if(!!l.lang.isFunction(f)){!this.__listeners&&(this.__listeners={});var b=this.__listeners,x;if(typeof v=="string"&&v){if(/[^\w\-]/.test(v))throw"nonstandard key:"+v;f.hashCode=v,x=v}s.indexOf("on")!=0&&(s="on"+s),typeof b[s]!="object"&&(b[s]={}),x=x||l.lang.guid(),f.hashCode=x,b[s][x]=f}},l.lang.Class.prototype.removeEventListener=function(s,f){if(!(typeof f!="undefined"&&(l.lang.isFunction(f)&&!(f=f.hashCode)||!l.lang.isString(f)))){!this.__listeners&&(this.__listeners={}),s.indexOf("on")!=0&&(s="on"+s);var v=this.__listeners;if(!!v[s])if(typeof f!="undefined")v[s][f]&&delete v[s][f];else for(var b in v[s])delete v[s][b]}},l.lang.Class.prototype.dispatchEvent=function(s,f){l.lang.isString(s)&&(s=new l.lang.Event(s)),!this.__listeners&&(this.__listeners={}),f=f||{};for(var v in f)s[v]=f[v];var v,b=this.__listeners,x=s.type;if(s.target=s.target||this,s.currentTarget=this,x.indexOf("on")!=0&&(x="on"+x),l.lang.isFunction(this[x])&&this[x].apply(this,arguments),typeof b[x]=="object")for(v in b[x])b[x][v].apply(this,arguments);return s.returnValue},l.lang.inherits=function(s,f,v){var b,x,P=s.prototype,C=new Function;C.prototype=f.prototype,x=s.prototype=new C;for(b in P)x[b]=P[b];s.prototype.constructor=s,s.superClass=f.prototype,typeof v=="string"&&(x._className=v)},l.inherits=l.lang.inherits;var k="http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m",T="png",S=function(s,f,v){try{BMap}catch{throw Error("Baidu Map JS API is not ready yet!")}_.lang.inherits(S,BMap.Overlay,"TextIconOverlay"),this._position=s,this._text=f,this._options=v||{},this._styles=this._options.styles||[],!this._styles.length&&this._setupDefaultStyles()};return S.prototype._setupDefaultStyles=function(){for(var s=[53,56,66,78,90],f=0,v;v=s[f];f++)this._styles.push({url:k+f+"."+T,size:new BMap.Size(v,v)})},S.prototype.initialize=function(s){return this._map=s,this._domElement=document.createElement("div"),this._updateCss(),this._updateText(),this._updatePosition(),this._bind(),this._map.getPanes().markerMouseTarget.appendChild(this._domElement),this._domElement},S.prototype.draw=function(){this._map&&this._updatePosition()},S.prototype.getText=function(){return this._text},S.prototype.setText=function(s){s&&(!this._text||this._text.toString()!=s.toString())&&(this._text=s,this._updateText(),this._updateCss(),this._updatePosition())},S.prototype.getPosition=function(){return this._position},S.prototype.setPosition=function(s){s&&(!this._position||!this._position.equals(s))&&(this._position=s,this._updatePosition())},S.prototype.getStyleByText=function(s,f){var v=parseInt(s),b=parseInt(v/10);return b=Math.max(0,b),b=Math.min(b,f.length-1),f[b]},S.prototype._updateCss=function(){if(!!this._domElement){var s=this.getStyleByText(this._text,this._styles);this._domElement.style.cssText=this._buildCssText(s)}},S.prototype._updateText=function(){this._domElement&&(this._domElement.innerHTML=this._text)},S.prototype._updatePosition=function(){if(this._domElement&&this._position){var s=this._domElement.style,f=this._map.pointToOverlayPixel(this._position);f.x-=Math.ceil(parseInt(s.width)/2),f.y-=Math.ceil(parseInt(s.height)/2),s.left=f.x+"px",s.top=f.y+"px"}},S.prototype._buildCssText=function(s){var f=s.url,v=s.size,b=s.anchor,x=s.offset,P=s.textColor||"black",C=s.textSize||10,B=[];if(_.browser.ie<7)B.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'+f+'");');else{B.push("background-image:url("+f+");");var I="0 0";x instanceof BMap.Size&&(I=x.width+"px "+x.height+"px"),B.push("background-position:"+I+";")}return v instanceof BMap.Size&&(b instanceof BMap.Size?(b.height>0&&b.height0&&b.widththis._markerClusterer.getMaxZoom()){this._clusterMarker&&this._map.removeOverlay(this._clusterMarker);for(var a=0,c;c=this._markers[a];a++)this._map.addOverlay(c);return}if(this._markers.length=y){if(clearInterval(n._intervalFlag),n.i>n._path.length)return;n._moveNext(++n.i)}else{u++;var _=e(a.x,c.x,u,y),l=e(a.y,c.y,u,y),M=n._projection.pointToLngLat(new BMap.Pixel(_,l));if(u==1){var k=null;n.i-1>=0&&(k=n._path[n.i-1]),n._opts.enableRotation==!0&&n.setRotation(k,i,r),n._opts.autoView&&(n._map.getBounds().containsPoint(M)||n._map.setCenter(M))}n._marker.setPosition(M),n._setInfoWin(M)}},h)},setRotation:function(i,r,e){var n=this,u=0;if(r=n._map.pointToPixel(r),e=n._map.pointToPixel(e),e.x!=r.x){var h=(e.y-r.y)/(e.x-r.x),d=Math.atan(h);u=d*360/(2*Math.PI),e.x0?c=-1:c=1,n._marker.setRotation(-c*90)}},linePixellength:function(i,r){return Math.sqrt(Math.abs(i.x-r.x)*Math.abs(i.x-r.x)+Math.abs(i.y-r.y)*Math.abs(i.y-r.y))},pointToPoint:function(i,r){return Math.abs(i.x-r.x)*Math.abs(i.x-r.x)+Math.abs(i.y-r.y)*Math.abs(i.y-r.y)},_moveNext:function(i){var r=this;i-1?_+="top:"+d+"px;":_+="bottom:"+d+"px;",h.indexOf("l")>-1?_+="left:"+d+"px;":_+="right:"+d+"px;",c=document.createElement("div"),c.style.cssText="border-radius:5px;position:absolute;"+_+"font-family:Helvetica; width:256px;z-index:10000000000; background:rgba(255,255,255,1);padding:10px;border:1px solid black;margin:0;",c.innerHTML="

"+u+"

",a.style.cssText="position:relative;font-size:12px;display:block;list-style:none;list-style-type:none;margin:0;height:15px;",y=document.createElement("div"),y.style.cssText=["position:relative;display:block;width:256px;height:15px;border-bottom:1px solid black; background-image:url(",e.createGradientImage(),");"].join(""),c.appendChild(a),c.appendChild(y),e.set("element",c),e.set("labelsEl",a),e.update(1)},processGradientObject:function(){var e=this,n=this.config.gradient,u=[];for(var h in n)n.hasOwnProperty(h)&&u.push({stop:h,value:n[h]});u.sort(function(d,a){return d.stop-a.stop}),u.unshift({stop:0,value:"rgba(0,0,0,0)"}),e.set("gradientArr",u)},createGradientImage:function(){var e=this,n=e.get("gradientArr"),u=n.length,h=document.createElement("canvas"),d=h.getContext("2d"),a;h.width="256",h.height="15",a=d.createLinearGradient(0,5,256,10);for(var c=0;c>0)+.5,0),d.lineTo((1/(u-1)*c*256>>0)+.5,c==0?15:5);return d.moveTo(255.5,0),d.lineTo(255.5,15),d.moveTo(255.5,4.5),d.lineTo(0,4.5),d.stroke(),e.set("ctx",d),h.toDataURL()},getElement:function(){return this.get("element")},update:function(e){for(var n=this,u=n.get("gradientArr"),h=n.get("ctx"),d=n.get("labelsEl"),a,c="",y,_=0;_>0,y=h.measureText(a).width/2>>0,_==0&&(y=0),_==u.length-1&&(y*=2),c+='
  • '+a+"
  • ";d.innerHTML=c}};var r=function(n){var u={radius:40,element:{},canvas:{},acanvas:{},ctx:{},actx:{},legend:null,visible:!0,width:0,height:0,max:!1,gradient:!1,opacity:180,premultiplyAlpha:!1,bounds:{l:1e3,r:0,t:1e3,b:0},debug:!1};this.store=new m(this),this.get=function(h){return u[h]},this.set=function(h,d){u[h]=d},this.configure(n),this.init()};return r.prototype={configure:function(e){var n=this;if(n.set("radius",e.radius||40),n.set("element",e.element instanceof Object?e.element:document.getElementById(e.element)),n.set("visible",e.visible!=null?e.visible:!0),n.set("max",e.max||!1),n.set("gradient",e.gradient||{.45:"rgb(0,0,255)",.55:"rgb(0,255,255)",.65:"rgb(0,255,0)",.95:"yellow",1:"rgb(255,0,0)"}),n.set("opacity",parseInt(255/(100/e.opacity),10)||180),n.set("width",e.width||0),n.set("height",e.height||0),n.set("debug",e.debug),e.legend){var u=e.legend;u.gradient=n.get("gradient"),n.set("legend",new i(u))}},resize:function(){var e=this,n=e.get("element"),u=e.get("canvas"),h=e.get("acanvas");u.width=h.width=e.get("width")||n.style.width.replace(/px/,"")||e.getWidth(n),this.set("width",u.width),u.height=h.height=e.get("height")||n.style.height.replace(/px/,"")||e.getHeight(n),this.set("height",u.height)},init:function(){var e=this,n=document.createElement("canvas"),u=document.createElement("canvas"),h=n.getContext("2d"),d=u.getContext("2d"),a=e.get("element");e.initColorPalette(),e.set("canvas",n),e.set("ctx",h),e.set("acanvas",u),e.set("actx",d),e.resize(),n.style.cssText=u.style.cssText="position:absolute;top:0;left:0;z-index:10000000;",e.get("visible")||(n.style.display="none"),a.appendChild(n),e.get("legend")&&a.appendChild(e.get("legend").getElement()),e.get("debug")&&document.body.appendChild(u),d.shadowOffsetX=15e3,d.shadowOffsetY=15e3,d.shadowBlur=15},initColorPalette:function(){var e=this,n=document.createElement("canvas"),u=e.get("gradient"),h,d,a;n.width="1",n.height="256",h=n.getContext("2d"),d=h.createLinearGradient(0,0,1,256),a=h.getImageData(0,0,1,1),a.data[0]=a.data[3]=64,a.data[1]=a.data[2]=0,h.putImageData(a,0,0),a=h.getImageData(0,0,1,1),e.set("premultiplyAlpha",a.data[0]<60||a.data[0]>70);for(var c in u)d.addColorStop(c,u[c]);h.fillStyle=d,h.fillRect(0,0,1,256),e.set("gradient",h.getImageData(0,0,1,256).data)},getWidth:function(e){var n=e.offsetWidth;return e.style.paddingLeft&&(n+=e.style.paddingLeft),e.style.paddingRight&&(n+=e.style.paddingRight),n},getHeight:function(e){var n=e.offsetHeight;return e.style.paddingTop&&(n+=e.style.paddingTop),e.style.paddingBottom&&(n+=e.style.paddingBottom),n},colorize:function(e,n){var u=this,h=u.get("width"),d=u.get("radius"),a=u.get("height"),c=u.get("actx"),y=u.get("ctx"),_=d*3,l=u.get("premultiplyAlpha"),M=u.get("gradient"),k=u.get("opacity"),T=u.get("bounds"),S,s,f,v,b,x,P,C,B;e!=null&&n!=null?(e+_>h&&(e=h-_),e<0&&(e=0),n<0&&(n=0),n+_>a&&(n=a-_),S=e,s=n,v=e+_,f=n+_):(T.l<0?S=0:S=T.l,T.r>h?v=h:v=T.r,T.t<0?s=0:s=T.t,T.b>a?f=a:f=T.b),b=c.getImageData(S,s,v-S,f-s),x=b.data.length;for(var I=3;I>0,l=n-1.5*a>>0,M=e+1.5*a>>0,k=n+1.5*a>>0;c.shadowColor="rgba(0,0,0,"+(u?u/d.store.max:"0.1")+")",c.shadowOffsetX=15e3,c.shadowOffsetY=15e3,c.shadowBlur=15,c.beginPath(),c.arc(e-15e3,n-15e3,a,0,Math.PI*2,!0),c.closePath(),c.fill(),h?d.colorize(_,l):(_y.r&&(y.r=M),k>y.b&&(y.b=k))},toggleDisplay:function(){var e=this,n=e.get("visible"),u=e.get("canvas");n?u.style.display="none":u.style.display="block",e.set("visible",!n)},getImageData:function(){return this.get("canvas").toDataURL()},clear:function(){var e=this,n=e.get("width"),u=e.get("height");e.store.set("data",[]),e.get("ctx").clearRect(0,0,n,u),e.get("actx").clearRect(0,0,n,u)},cleanup:function(){var e=this;e.get("element").removeChild(e.get("canvas"))}},{create:function(e){return new r(e)},util:{mousePosition:function(e){var n,u;if(e.layerX?(n=e.layerX,u=e.layerY):e.offsetX&&(n=e.offsetX,u=e.offsetY),typeof n!="undefined")return[n,u]}}}}(),w=function(m){try{BMap}catch{throw Error("Baidu Map JS API is not ready yet!")}if(!w._isExtended){w._isExtended=!0,o(w,BMap.Overlay,"HeatmapOverlay");var i=new w(m);this.__proto__=i.__proto__}this.conf=m,this.heatmap=null,this.latlngs=[],this.bounds=null,this._moveendHandler=this._moveendHandler.bind(this)};return w.prototype.initialize=function(m){this._map=m;var i=document.createElement("div");return i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.border=0,i.style.width=this._map.getSize().width+"px",i.style.height=this._map.getSize().height+"px",this.conf.element=i,m.getPanes().mapPane.appendChild(i),this.heatmap=g.create(this.conf),this._div=i,i},w.prototype.draw=function(){var m=this._map.getBounds();if(!m.equals(this.bounds)){this.bounds=m;var i=this._map.pointToOverlayPixel(m.getNorthEast()),r=this._map.pointToOverlayPixel(m.getSouthWest());if(!(!i||!r)){var e=i.y,n=r.x,u=r.y-i.y,h=i.x-r.x;if(this.conf.element.style.left=n+"px",this.conf.element.style.top=e+"px",this.conf.element.style.width=h+"px",this.conf.element.style.height=u+"px",this.heatmap.store.get("heatmap").resize(),this.latlngs.length>0){this.heatmap.clear();for(var d=this.latlngs.length,a={max:this.heatmap.store.max,data:[]};d--;){var c=this.latlngs[d].latlng;if(!!m.containsPoint(c)){var y=this._map.pointToOverlayPixel(c),_=new BMap.Pixel(y.x-n,y.y-e),l=this.pixelTransform(_);a.data.push({x:l.x,y:l.y,count:this.latlngs[d].c})}}this.heatmap.store.setDataSet(a)}}}},w.prototype.pixelTransform=function(m){for(var i=this.heatmap.get("width"),r=this.heatmap.get("height");m.x<0;)m.x+=i;for(;m.x>i;)m.x-=i;for(;m.y<0;)m.y+=r;for(;m.y>r;)m.y-=r;return m.x=m.x>>0,m.y=m.y>>0,m},w.prototype._moveendHandler=function(m){this.setDataSet(this._data),delete this._data,this._map.removeEventListener("moveend",this._moveendHandler)},w.prototype.setDataSet=function(m){if(!!this._map){var i=this._map.getBounds(),r=this._map.pointToOverlayPixel(i.getNorthEast()),e=this._map.pointToOverlayPixel(i.getSouthWest());(!r||!e)&&(this._data=m,this._map.addEventListener("moveend",this._moveendHandler));var n={max:m.max,data:[]},u=m.data,h=u.length;for(this.latlngs=[];h--;){var d=new BMap.Point(u[h].lng,u[h].lat);if(this.latlngs.push({latlng:d,c:u[h].count}),!!i.containsPoint(d)){var a=this._map.pointToOverlayPixel(d),c=this._map.pointToOverlayPixel(i.getSouthWest()).x,y=this._map.pointToOverlayPixel(i.getNorthEast()).y,_=new BMap.Pixel(a.x-c,a.y-y),l=this.pixelTransform(_);n.data.push({x:l.x,y:l.y,count:u[h].count})}}this.heatmap.clear(),this.heatmap.store.setDataSet(n)}},w.prototype.addDataPoint=function(m,i,r){var e=new BMap.Point(m,i),n=this.pixelTransform(this._map.pointToOverlayPixel(e));this.heatmap.store.addDataPoint(n.x,n.y,r),this.latlngs.push({latlng:e,c:r})},w.prototype.toggle=function(){this.heatmap.toggleDisplay()},w})})(ht);ht.exports;var ut={exports:{}};(function(t,p){(function(o,g){t.exports=g()})($,function(){function o(m,i){try{BMap}catch{throw Error("Baidu Map JS API is not ready yet!")}var r=g(m),e=new BMap.Polyline(r,i);return e.addEventListener("lineupdate",function(){this.isEditing&&this.enableEditing()}),e.cornerPoints=m,e.editMarkers=[],e.enableEditing=function(){var n=this;if(n.map){n.disableEditing();for(var u=0;u0&&(i=i.concat(e))}return i}function w(m,i){var r=[];if(!m||!i||!(m instanceof BMap.Point)||!(i instanceof BMap.Point))return null;var e=function(v){return 1-2*v+v*v},n=function(v){return 2*v-2*v*v},u=function(v){return v*v},h=30,d,a,c,y,_,l,M=0,k=0;if(typeof i=="undefined"){typeof r!="undefined"&&(r=[]);return}var T=parseFloat(m.lat),S=parseFloat(i.lat),s=parseFloat(m.lng),f=parseFloat(i.lng);for(f>s&&parseFloat(f-s)>180&&s<0&&(s=parseFloat(180+180+s)),s>f&&parseFloat(s-f)>180&&f<0&&(f=parseFloat(180+180+f)),l=0,S==T?(d=0,a=s-f):f==s?(d=Math.PI/2,a=T-S):(d=Math.atan((S-T)/(f-s)),a=(S-T)/Math.sin(d)),l==0&&(l=d+Math.PI/5),c=a/2,_=c*Math.cos(l)+s,y=c*Math.sin(l)+T,M=0;M{function w(){const m=document.documentElement.clientWidth/1920;document.documentElement.style.fontSize=38*Math.min(m,2)+"px",console.log("\u5207\u6362\u5C3A\u5BF8>>",document.documentElement.style.fontSize)}w(),window.onresize=()=>{w(),console.log("\u6267\u884C\u5207\u6362")}});const p=tt({});return q({initMap:()=>{t.polygonPath3=[{lng:85.127634,lat:45.604176},{lng:85.127331,lat:45.603931},{lng:85.127885,lat:45.603602},{lng:85.128178,lat:45.603853}],t.polygonPath5=[{lng:85.126928,lat:45.603873},{lng:85.126253,lat:45.603399},{lng:85.126923,lat:45.602951},{lng:85.12758,lat:45.603464}],t.polygonPath6=[{lng:85.12394,lat:45.604109},{lng:85.123651,lat:45.603782},{lng:85.124211,lat:45.603426},{lng:85.124538,lat:45.603693}],t.polygonPath7=[{lng:85.125489,lat:45.603525},{lng:85.124729,lat:45.603024},{lng:85.125304,lat:45.602703},{lng:85.125988,lat:45.603217}],t.polygonPath8=[{lng:85.12615,lat:45.603173},{lng:85.125339,lat:45.60258},{lng:85.125847,lat:45.602235},{lng:85.1267,lat:45.602838}],t.polygonPath9=[{lng:85.126805,lat:45.602739},{lng:85.125929,lat:45.602127},{lng:85.126505,lat:45.601715},{lng:85.127309,lat:45.602365}],console.log(p,"map")},map:p},bt(t))}});function Wt(t,p,o,g,w,m){const i=A("bm-ground"),r=A("bm-polygon"),e=A("bm-label"),n=A("bm-overlay"),u=A("bm-map-type"),h=A("baidu-map");return H(),wt(h,{class:"bigMap",ref:"map",ak:"Z4tYehNEVsdeMw3Mjspdn77pV50ffc8t",v:"3.0",type:"API","scroll-wheel-zoom":!0,center:{lng:85.126263,lat:45.603813},zoom:17,"map-type":"BMAP_SATELLITE_MAP",onReady:t.initMap},{default:et(()=>[O(i,{class:"picBg",bounds:{ne:{lng:85.129048,lat:45.60579},sw:{lng:85.122984,lat:45.592812}},imageURL:"/bigMap2.png",opacity:"1",displayOnMaxLevel:18,zIndex:1},null,8,["bounds"]),O(n,{pane:"mapPane",class:"polys",onDraw:t.initMap},{default:et(()=>[O(r,{path:t.polygonPath3,"stroke-color":"yellow",fillColor:"yellow",fillOpacity:1,"stroke-weight":2,zIndex:2},null,8,["path"]),O(e,{content:"1",position:{lng:85.127634,lat:45.604176},labelStyle:{color:"#000000",fontSize:"24px"},title:"1",zIndex:3},null,8,["position"]),O(r,{path:t.polygonPath5,"stroke-color":"#01007f",fillColor:"#01007f",fillOpacity:1,"stroke-weight":2,zIndex:2},null,8,["path"]),O(e,{content:"2",position:{lng:85.126928,lat:45.603873},labelStyle:{color:"#000000",fontSize:"24px"},title:"2",zIndex:3},null,8,["position"]),O(r,{path:t.polygonPath6,"stroke-color":"#ff00fa",fillColor:"#ff00fa",fillOpacity:1,"stroke-weight":2,zIndex:2},null,8,["path"]),O(e,{content:"3",position:{lng:85.12394,lat:45.604109},labelStyle:{color:"#000000",fontSize:"24px"},title:"3",zIndex:3},null,8,["position"]),O(r,{path:t.polygonPath7,"stroke-color":"#02ff02",fillColor:"#02ff02",fillOpacity:1,"stroke-weight":2,zIndex:2},null,8,["path"]),O(e,{content:"4",position:{lng:85.125489,lat:45.603525},labelStyle:{color:"#000000",fontSize:"24px"},title:"4",zIndex:3},null,8,["position"]),O(r,{path:t.polygonPath8,"stroke-color":"#028002",fillColor:"#028002",fillOpacity:1,"stroke-weight":2,zIndex:2},null,8,["path"]),O(e,{content:"5",position:{lng:85.12615,lat:45.603173},labelStyle:{color:"#000000",fontSize:"24px"},title:"5",zIndex:3},null,8,["position"]),O(r,{path:t.polygonPath9,"stroke-color":"#008081",fillColor:"#008081",fillOpacity:1,"stroke-weight":2,zIndex:2},null,8,["path"]),O(e,{content:"6",position:{lng:85.126805,lat:45.602739},labelStyle:{color:"#000000",fontSize:"24px"},title:"6",zIndex:3},null,8,["position"])]),_:1},8,["onDraw"]),O(u,{"map-types":["BMAP_SATELLITE_MAP","BMAP_NORMAL_MAP"],anchor:"BMAP_ANCHOR_TOP_LEFT"})]),_:1},8,["center","onReady"])}var jt=xt(Nt,[["render",Wt],["__scopeId","data-v-4edf26e8"]]),Xt=Object.freeze(Object.defineProperty({__proto__:null,default:jt},Symbol.toStringTag,{value:"Module"}));export{It as B,jt as M,At as _,zt as a,Lt as b,Xt as m};