v-ol-map 1.9.11 → 1.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ol-map.umd.js +1 -1
- package/package.json +1 -1
package/lib/ol-map.umd.js
CHANGED
|
@@ -33,7 +33,7 @@ __p += '`),Ft&&(ke+=`' +
|
|
|
33
33
|
function print() { __p += __j.call(arguments, '') }
|
|
34
34
|
`:`;
|
|
35
35
|
`)+ke+`return __p
|
|
36
|
-
}`;var Ct=DG(function(){return Wt(J,et+"return "+ke).apply(e,ae)});if(Ct.source=ke,lx(Ct))throw Ct;return Ct}function E8e(x){return Jt(x).toLowerCase()}function R8e(x){return Jt(x).toUpperCase()}function I8e(x,E,O){if(x=Jt(x),x&&(O||E===e))return VB(x);if(!x||!(E=wi(E)))return x;var H=fa(x),Y=fa(E),J=UB(H,Y),ae=$B(H,Y)+1;return Vs(H,J,ae).join("")}function P8e(x,E,O){if(x=Jt(x),x&&(O||E===e))return x.slice(0,WB(x)+1);if(!x||!(E=wi(E)))return x;var H=fa(x),Y=$B(H,fa(E))+1;return Vs(H,0,Y).join("")}function L8e(x,E,O){if(x=Jt(x),x&&(O||E===e))return x.replace(Kt,"");if(!x||!(E=wi(E)))return x;var H=fa(x),Y=UB(H,fa(E));return Vs(H,Y).join("")}function M8e(x,E){var O=R,H=I;if(Ir(E)){var Y="separator"in E?E.separator:Y;O="length"in E?bt(E.length):O,H="omission"in E?wi(E.omission):H}x=Jt(x);var J=x.length;if(Wh(x)){var ae=fa(x);J=ae.length}if(O>=J)return x;var ce=O-Zh(H);if(ce<1)return H;var ve=ae?Vs(ae,0,ce).join(""):x.slice(0,ce);if(Y===e)return ve+H;if(ae&&(ce+=ve.length-ce),ux(Y)){if(x.slice(ce).search(Y)){var Pe,Me=ve;for(Y.global||(Y=T9(Y.source,Jt(Za.exec(Y))+"g")),Y.lastIndex=0;Pe=Y.exec(Me);)var ke=Pe.index;ve=ve.slice(0,ke===e?ce:ke)}}else if(x.indexOf(wi(Y),ce)!=ce){var He=ve.lastIndexOf(Y);He>-1&&(ve=ve.slice(0,He))}return ve+H}function z8e(x){return x=Jt(x),x&&Mt.test(x)?x.replace(tr,lye):x}var D8e=tc(function(x,E,O){return x+(O?" ":"")+E.toUpperCase()}),fx=Oq("toUpperCase");function zG(x,E,O){return x=Jt(x),E=O?e:E,E===e?nye(x)?cye(x):Zme(x):x.match(E)||[]}var DG=At(function(x,E){try{return _i(x,e,E)}catch(O){return lx(O)?O:new yt(O)}}),O8e=No(function(x,E){return Ni(E,function(O){O=Ka(O),ko(x,O,ox(x[O],x))}),x});function k8e(x){var E=x==null?0:x.length,O=at();return x=E?br(x,function(H){if(typeof H[1]!="function")throw new ji(o);return[O(H[0]),H[1]]}):[],At(function(H){for(var Y=-1;++Y<E;){var J=x[Y];if(_i(J[0],this,H))return _i(J[1],this,H)}})}function F8e(x){return l_e(qi(x,c))}function dx(x){return function(){return x}}function N8e(x,E){return x==null||x!==x?E:x}var j8e=Fq(),B8e=Fq(!0);function oi(x){return x}function gx(x){return dq(typeof x=="function"?x:qi(x,c))}function q8e(x){return vq(qi(x,c))}function G8e(x,E){return pq(x,qi(E,c))}var V8e=At(function(x,E){return function(O){return Od(O,x,E)}}),U8e=At(function(x,E){return function(O){return Od(x,O,E)}});function vx(x,E,O){var H=gn(E),Y=Ip(E,H);O==null&&!(Ir(E)&&(Y.length||!H.length))&&(O=E,E=x,x=this,Y=Ip(E,gn(E)));var J=!(Ir(O)&&"chain"in O)||!!O.chain,ae=Bo(x);return Ni(Y,function(ce){var ve=E[ce];x[ce]=ve,ae&&(x.prototype[ce]=function(){var Pe=this.__chain__;if(J||Pe){var Me=x(this.__wrapped__),ke=Me.__actions__=ni(this.__actions__);return ke.push({func:ve,args:arguments,thisArg:x}),Me.__chain__=Pe,Me}return ve.apply(x,Fs([this.value()],arguments))})}),x}function $8e(){return Sn._===this&&(Sn._=mye),this}function px(){}function H8e(x){return x=bt(x),At(function(E){return mq(E,x)})}var W8e=W9(br),Z8e=W9(NB),Y8e=W9(y9);function OG(x){return ex(x)?_9(Ka(x)):T_e(x)}function X8e(x){return function(E){return x==null?e:Wl(x,E)}}var K8e=jq(),J8e=jq(!0);function mx(){return[]}function yx(){return!1}function Q8e(){return{}}function e7e(){return""}function t7e(){return!0}function r7e(x,E){if(x=bt(x),x<1||x>B)return[];var O=k,H=Ln(x,k);E=at(E),x-=k;for(var Y=S9(H,E);++O<x;)E(O);return Y}function n7e(x){return _t(x)?br(x,Ka):Si(x)?[x]:ni(tG(Jt(x)))}function i7e(x){var E=++vye;return Jt(x)+E}var a7e=Op(function(x,E){return x+E},0),o7e=Z9("ceil"),s7e=Op(function(x,E){return x/E},1),l7e=Z9("floor");function u7e(x){return x&&x.length?Rp(x,oi,z9):e}function h7e(x,E){return x&&x.length?Rp(x,at(E,2),z9):e}function c7e(x){return qB(x,oi)}function f7e(x,E){return qB(x,at(E,2))}function d7e(x){return x&&x.length?Rp(x,oi,F9):e}function g7e(x,E){return x&&x.length?Rp(x,at(E,2),F9):e}var v7e=Op(function(x,E){return x*E},1),p7e=Z9("round"),m7e=Op(function(x,E){return x-E},0);function y7e(x){return x&&x.length?w9(x,oi):0}function _7e(x,E){return x&&x.length?w9(x,at(E,2)):0}return K.after=q5e,K.ary=fG,K.assign=R6e,K.assignIn=AG,K.assignInWith=Zp,K.assignWith=I6e,K.at=P6e,K.before=dG,K.bind=ox,K.bindAll=O8e,K.bindKey=gG,K.castArray=Q5e,K.chain=uG,K.chunk=l4e,K.compact=u4e,K.concat=h4e,K.cond=k8e,K.conforms=F8e,K.constant=dx,K.countBy=y5e,K.create=L6e,K.curry=vG,K.curryRight=pG,K.debounce=mG,K.defaults=M6e,K.defaultsDeep=z6e,K.defer=G5e,K.delay=V5e,K.difference=c4e,K.differenceBy=f4e,K.differenceWith=d4e,K.drop=g4e,K.dropRight=v4e,K.dropRightWhile=p4e,K.dropWhile=m4e,K.fill=y4e,K.filter=x5e,K.flatMap=b5e,K.flatMapDeep=C5e,K.flatMapDepth=T5e,K.flatten=aG,K.flattenDeep=_4e,K.flattenDepth=x4e,K.flip=U5e,K.flow=j8e,K.flowRight=B8e,K.fromPairs=w4e,K.functions=B6e,K.functionsIn=q6e,K.groupBy=A5e,K.initial=b4e,K.intersection=C4e,K.intersectionBy=T4e,K.intersectionWith=A4e,K.invert=V6e,K.invertBy=U6e,K.invokeMap=R5e,K.iteratee=gx,K.keyBy=I5e,K.keys=gn,K.keysIn=ai,K.map=Gp,K.mapKeys=H6e,K.mapValues=W6e,K.matches=q8e,K.matchesProperty=G8e,K.memoize=Up,K.merge=Z6e,K.mergeWith=EG,K.method=V8e,K.methodOf=U8e,K.mixin=vx,K.negate=$p,K.nthArg=H8e,K.omit=Y6e,K.omitBy=X6e,K.once=$5e,K.orderBy=P5e,K.over=W8e,K.overArgs=H5e,K.overEvery=Z8e,K.overSome=Y8e,K.partial=sx,K.partialRight=yG,K.partition=L5e,K.pick=K6e,K.pickBy=RG,K.property=OG,K.propertyOf=X8e,K.pull=P4e,K.pullAll=sG,K.pullAllBy=L4e,K.pullAllWith=M4e,K.pullAt=z4e,K.range=K8e,K.rangeRight=J8e,K.rearg=W5e,K.reject=D5e,K.remove=D4e,K.rest=Z5e,K.reverse=ix,K.sampleSize=k5e,K.set=Q6e,K.setWith=e8e,K.shuffle=F5e,K.slice=O4e,K.sortBy=B5e,K.sortedUniq=G4e,K.sortedUniqBy=V4e,K.split=b8e,K.spread=Y5e,K.tail=U4e,K.take=$4e,K.takeRight=H4e,K.takeRightWhile=W4e,K.takeWhile=Z4e,K.tap=u5e,K.throttle=X5e,K.thru=qp,K.toArray=bG,K.toPairs=IG,K.toPairsIn=PG,K.toPath=n7e,K.toPlainObject=TG,K.transform=t8e,K.unary=K5e,K.union=Y4e,K.unionBy=X4e,K.unionWith=K4e,K.uniq=J4e,K.uniqBy=Q4e,K.uniqWith=e5e,K.unset=r8e,K.unzip=ax,K.unzipWith=lG,K.update=n8e,K.updateWith=i8e,K.values=ic,K.valuesIn=a8e,K.without=t5e,K.words=zG,K.wrap=J5e,K.xor=r5e,K.xorBy=n5e,K.xorWith=i5e,K.zip=a5e,K.zipObject=o5e,K.zipObjectDeep=s5e,K.zipWith=l5e,K.entries=IG,K.entriesIn=PG,K.extend=AG,K.extendWith=Zp,vx(K,K),K.add=a7e,K.attempt=DG,K.camelCase=u8e,K.capitalize=LG,K.ceil=o7e,K.clamp=o8e,K.clone=e6e,K.cloneDeep=r6e,K.cloneDeepWith=n6e,K.cloneWith=t6e,K.conformsTo=i6e,K.deburr=MG,K.defaultTo=N8e,K.divide=s7e,K.endsWith=h8e,K.eq=ga,K.escape=c8e,K.escapeRegExp=f8e,K.every=_5e,K.find=w5e,K.findIndex=nG,K.findKey=D6e,K.findLast=S5e,K.findLastIndex=iG,K.findLastKey=O6e,K.floor=l7e,K.forEach=hG,K.forEachRight=cG,K.forIn=k6e,K.forInRight=F6e,K.forOwn=N6e,K.forOwnRight=j6e,K.get=hx,K.gt=a6e,K.gte=o6e,K.has=G6e,K.hasIn=cx,K.head=oG,K.identity=oi,K.includes=E5e,K.indexOf=S4e,K.inRange=s8e,K.invoke=$6e,K.isArguments=Xl,K.isArray=_t,K.isArrayBuffer=s6e,K.isArrayLike=ii,K.isArrayLikeObject=qr,K.isBoolean=l6e,K.isBuffer=Us,K.isDate=u6e,K.isElement=h6e,K.isEmpty=c6e,K.isEqual=f6e,K.isEqualWith=d6e,K.isError=lx,K.isFinite=g6e,K.isFunction=Bo,K.isInteger=_G,K.isLength=Hp,K.isMap=xG,K.isMatch=v6e,K.isMatchWith=p6e,K.isNaN=m6e,K.isNative=y6e,K.isNil=x6e,K.isNull=_6e,K.isNumber=wG,K.isObject=Ir,K.isObjectLike=zr,K.isPlainObject=qd,K.isRegExp=ux,K.isSafeInteger=w6e,K.isSet=SG,K.isString=Wp,K.isSymbol=Si,K.isTypedArray=nc,K.isUndefined=S6e,K.isWeakMap=b6e,K.isWeakSet=C6e,K.join=E4e,K.kebabCase=d8e,K.last=Vi,K.lastIndexOf=R4e,K.lowerCase=g8e,K.lowerFirst=v8e,K.lt=T6e,K.lte=A6e,K.max=u7e,K.maxBy=h7e,K.mean=c7e,K.meanBy=f7e,K.min=d7e,K.minBy=g7e,K.stubArray=mx,K.stubFalse=yx,K.stubObject=Q8e,K.stubString=e7e,K.stubTrue=t7e,K.multiply=v7e,K.nth=I4e,K.noConflict=$8e,K.noop=px,K.now=Vp,K.pad=p8e,K.padEnd=m8e,K.padStart=y8e,K.parseInt=_8e,K.random=l8e,K.reduce=M5e,K.reduceRight=z5e,K.repeat=x8e,K.replace=w8e,K.result=J6e,K.round=p7e,K.runInContext=ge,K.sample=O5e,K.size=N5e,K.snakeCase=S8e,K.some=j5e,K.sortedIndex=k4e,K.sortedIndexBy=F4e,K.sortedIndexOf=N4e,K.sortedLastIndex=j4e,K.sortedLastIndexBy=B4e,K.sortedLastIndexOf=q4e,K.startCase=C8e,K.startsWith=T8e,K.subtract=m7e,K.sum=y7e,K.sumBy=_7e,K.template=A8e,K.times=r7e,K.toFinite=qo,K.toInteger=bt,K.toLength=CG,K.toLower=E8e,K.toNumber=Ui,K.toSafeInteger=E6e,K.toString=Jt,K.toUpper=R8e,K.trim=I8e,K.trimEnd=P8e,K.trimStart=L8e,K.truncate=M8e,K.unescape=z8e,K.uniqueId=i7e,K.upperCase=D8e,K.upperFirst=fx,K.each=hG,K.eachRight=cG,K.first=oG,vx(K,function(){var x={};return Ya(K,function(E,O){rr.call(K.prototype,O)||(x[O]=E)}),x}(),{chain:!1}),K.VERSION=n,Ni(["bind","bindKey","curry","curryRight","partial","partialRight"],function(x){K[x].placeholder=K}),Ni(["drop","take"],function(x,E){zt.prototype[x]=function(O){O=O===e?1:sn(bt(O),0);var H=this.__filtered__&&!E?new zt(this):this.clone();return H.__filtered__?H.__takeCount__=Ln(O,H.__takeCount__):H.__views__.push({size:Ln(O,k),type:x+(H.__dir__<0?"Right":"")}),H},zt.prototype[x+"Right"]=function(O){return this.reverse()[x](O).reverse()}}),Ni(["filter","map","takeWhile"],function(x,E){var O=E+1,H=O==M||O==D;zt.prototype[x]=function(Y){var J=this.clone();return J.__iteratees__.push({iteratee:at(Y,3),type:O}),J.__filtered__=J.__filtered__||H,J}}),Ni(["head","last"],function(x,E){var O="take"+(E?"Right":"");zt.prototype[x]=function(){return this[O](1).value()[0]}}),Ni(["initial","tail"],function(x,E){var O="drop"+(E?"":"Right");zt.prototype[x]=function(){return this.__filtered__?new zt(this):this[O](1)}}),zt.prototype.compact=function(){return this.filter(oi)},zt.prototype.find=function(x){return this.filter(x).head()},zt.prototype.findLast=function(x){return this.reverse().find(x)},zt.prototype.invokeMap=At(function(x,E){return typeof x=="function"?new zt(this):this.map(function(O){return Od(O,x,E)})}),zt.prototype.reject=function(x){return this.filter($p(at(x)))},zt.prototype.slice=function(x,E){x=bt(x);var O=this;return O.__filtered__&&(x>0||E<0)?new zt(O):(x<0?O=O.takeRight(-x):x&&(O=O.drop(x)),E!==e&&(E=bt(E),O=E<0?O.dropRight(-E):O.take(E-x)),O)},zt.prototype.takeRightWhile=function(x){return this.reverse().takeWhile(x).reverse()},zt.prototype.toArray=function(){return this.take(k)},Ya(zt.prototype,function(x,E){var O=/^(?:filter|find|map|reject)|While$/.test(E),H=/^(?:head|last)$/.test(E),Y=K[H?"take"+(E=="last"?"Right":""):E],J=H||/^find/.test(E);!Y||(K.prototype[E]=function(){var ae=this.__wrapped__,ce=H?[1]:arguments,ve=ae instanceof zt,Pe=ce[0],Me=ve||_t(ae),ke=function(Pt){var Ft=Y.apply(K,Fs([Pt],ce));return H&&He?Ft[0]:Ft};Me&&O&&typeof Pe=="function"&&Pe.length!=1&&(ve=Me=!1);var He=this.__chain__,et=!!this.__actions__.length,ot=J&&!He,Ct=ve&&!et;if(!J&&Me){ae=Ct?ae:new zt(this);var st=x.apply(ae,ce);return st.__actions__.push({func:qp,args:[ke],thisArg:e}),new Bi(st,He)}return ot&&Ct?x.apply(this,ce):(st=this.thru(ke),ot?H?st.value()[0]:st.value():st)})}),Ni(["pop","push","shift","sort","splice","unshift"],function(x){var E=dp[x],O=/^(?:push|sort|unshift)$/.test(x)?"tap":"thru",H=/^(?:pop|shift)$/.test(x);K.prototype[x]=function(){var Y=arguments;if(H&&!this.__chain__){var J=this.value();return E.apply(_t(J)?J:[],Y)}return this[O](function(ae){return E.apply(_t(ae)?ae:[],Y)})}}),Ya(zt.prototype,function(x,E){var O=K[E];if(O){var H=O.name+"";rr.call(Jh,H)||(Jh[H]=[]),Jh[H].push({name:E,func:O})}}),Jh[Dp(e,m).name]=[{name:"wrapper",func:e}],zt.prototype.clone=zye,zt.prototype.reverse=Dye,zt.prototype.value=Oye,K.prototype.at=h5e,K.prototype.chain=c5e,K.prototype.commit=f5e,K.prototype.next=d5e,K.prototype.plant=v5e,K.prototype.reverse=p5e,K.prototype.toJSON=K.prototype.valueOf=K.prototype.value=m5e,K.prototype.first=K.prototype.head,Rd&&(K.prototype[Rd]=g5e),K},Yh=fye();Gl?((Gl.exports=Yh)._=Yh,g9._=Yh):Sn._=Yh}).call(el)})(r1,r1.exports);const xJ=r1.exports;var Bb=function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("div",{style:{width:r.mapWidth,height:r.mapHeight},attrs:{id:r.target}},[e("a",{attrs:{id:r.downLoadId,download:r.downloadName}}),r.load?r._t("default"):r._e()],2)},wJ=[];Bb._withStripped=!0;function Kn(r,t,e,n,i,a,o,s){var l=typeof r=="function"?r.options:r;t&&(l.render=t,l.staticRenderFns=e,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var u;if(o?(u=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(f=__VUE_SSR_CONTEXT__),i&&i.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var h=l.render;l.render=function(d,g){return u.call(g),h(d,g)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,u):[u]}return{exports:r,options:l}}const SJ={name:"v-map",provide(){return{VMap:this}},props:{width:{type:[String,Number],default(){return"100%"}},height:{type:[String,Number],default(){return"100%"}},target:{type:String,default:`map-${mt()}`},view:{type:Object},controls:{type:Object},interactions:{type:Object},cesium:{type:Boolean,default:!1},cesiumOptions:{type:Object}},computed:{mapOption(){return{target:this.target,view:this.view,controls:this.controls,interactions:this.interactions,cesium:this.cesium,cesiumOptions:this.cesiumOptions}},map(){return Fe.map.map},map3d:{get(){return Fe.map3d},set(r){this.cesiumMap=r}},mapWidth(){return typeof this.width=="string"?this.width:this.width.toString()+"px"},mapHeight(){return typeof this.height=="string"?this.height:this.height.toString()+"px"}},watch:{"view.center":{handler(r){r&&this.setCenter(r)},immediate:!1,deep:!0},"view.zoom":{handler(r){r&&this.setZoom(r)},immediate:!1,deep:!0},"view.constrainRotation":{handler(r){r&&this.setConstrainResolution(r)},immediate:!1,deep:!0},"view.maxZoom":{handler(r){r&&this.setMaxZoom(r)},immediate:!1,deep:!0},"view.minZoom":{handler(r){r&&this.setMinZoom(r)},immediate:!1,deep:!0},"controls.zoom":{handler(r){Fe.map.mapControlsZoom&&Fe.setControl("zoom",r,this.controls.zoomOptions)},immediate:!1,deep:!0},"controls.rotate":{handler(r){Fe.map.mapControlsRotate&&Fe.setControl("rotate",r,this.controls.rotateOptions)},immediate:!1,deep:!0},"controls.attribution":{handler(r){Fe.map.mapControlsAttribution&&Fe.setControl("attribution",r,this.controls.attributionOptions)},immediate:!1,deep:!0},"controls.FullScreen":{handler(r){Fe.map.mapControlsFullScreen&&Fe.setControl("FullScreen",r)},immediate:!1,deep:!0},"controls.ScaleLine":{handler(r){Fe.map.mapControlsScaleLine&&Fe.setControl("ScaleLine",r)},immediate:!1,deep:!0},cesium:{handler(r){Fe.map3d?Fe.map3d.setEnabled(r):(this.map3d=Fe.setMap3d(),this.$emit("load3d",Fe.map3d),this.map3dEvents())},immediate:!1,deep:!0}},data(){return{vMap:null,load:!1,downLoadId:`download-${mt()}`,downloadName:"map.png",noBase:!0,properties:{isDefault:!0},cesiumMap:null}},methods:{initMap(){this.init().then(r=>{r==="success"&&(this.map3d&&this.map3dEvents(),this.map.on("singleclick",t=>{const e=[];this.$emit("click",t,this.map),this.map.forEachSmFeatureAtPixel(t.pixel,(n,i)=>{i&&(e.push({layerId:i.get("id"),layer:i,feature:n}),this.$emit("clickfeature",n,i,t,this.map))},{},t),this.$emit("clickfeatures",xJ.groupBy(e,"layerId"),t,this.map)}),this.map.on("dblclick",t=>{this.$emit("dblclick",t,this.map)}),this.map.getView().once("change:resolution",()=>{this.map.once("moveend",t=>{this.zoomEnd(t)})}),this.map.on("pointermove",t=>{const e=this.map.getEventPixel(t.originalEvent),n=this.map.hasFeatureAtPixel(e);this.map.getTargetElement().style.cursor=n?"pointer":"",this.map.getLayers().getArray().forEach(i=>{if(i.get("type")==="graphic"||i.get("type")==="wms"){const a=i.getData(t.pixel),o=a&&a[3]>0;this.map.getTargetElement().style.cursor=o||n?"pointer":""}}),this.$emit("pointermove",t,this.map)}),this.map.on("contextmenu",t=>{this.$emit("contextmenu",t,this.map)}),this.map.on("postrender",t=>{this.$emit("postrender",t,this.map)}),this.$emit("load"),this.load=!0)})},init(){return new Promise((r,t)=>{Fe.map=new Fe(this.mapOption),Fe.map.map?r("success"):t(new Error("fail"))})},dispose(){if(!this.map)return;[...this.map.getLayers().getArray()].forEach(t=>{t&&t.get("users")&&(t.getSource().clear(),t.getRenderer().dispose(),t.setSource(void 0),this.map.removeLayer(t))}),this.map.disposeInternal()},zoomEnd(r){this.$emit("changeZoom",r,this.map),r.map.once("moveend",t=>{this.zoomEnd(t)})},setCenter(r){Fe.setCenter(r)},setZoom(r){Fe.setZoom(r)},setConstrainResolution(r){Fe.setConstrainResolution(r)},setMaxZoom(r){Fe.setMaxZoom(r)},setMinZoom(r){Fe.setMinZoom(r)},setControl(r,t){Fe.setControl(r,t)},panTo(r){Fe.panTo(r)},flyTo(r){Fe.flyTo(r)},getCenterByExtent(r){return Dn(r)},boundingExtent(r){return Ur(r)},calculateCenter(r){return Fe.calculateCenter(r)},exportPNG(r){r?r.indexOf(".png")>-1?this.downloadName=r:this.downloadName=r+".png":this.downloadName=`map-export-${mt()}.png`,Fe.exportPNG(this.downLoadId)},map3dEvents(){new window.Cesium.ScreenSpaceEventHandler(Fe.map3d.getCesiumScene().canvas).setInputAction(this.onClickHandlerCS.bind(this),window.Cesium.ScreenSpaceEventType.LEFT_CLICK),Fe.map3d.getCesiumScene().camera.moveEnd.addEventListener(()=>{this.$emit("map3dMoveEnd",Fe.map3d.getCesiumScene().camera,this.map3d)})},onClickHandlerCS(r){if(r.position.x===0&&r.position.y===0)return;const t=Fe.map3d.getCesiumScene().pick(r.position);this.$emit("map3dClick",r,Fe.map3d,t)},getDistancePoint(r,t,e){return Fe.getDistancePoint(r,t,e)},closeOverlays(){this.map.getOverlays().forEach(r=>{r.setPosition(void 0)})},updateFeature(r,t,e){t==="style"&&r.setStyle(Or(e))}},mounted(){this.initMap()},beforeDestroy(){this.dispose()}},qb={};var Gb=Kn(SJ,Bb,wJ,!1,bJ,null,null,null);function bJ(r){for(let t in qb)this[t]=qb[t]}Gb.options.__file="src/components/map/index.vue";const Hc=function(){return Gb.exports}();Hc.install=function(r){r.component(Hc.name,Hc)};const CJ={render(r,t){return null},props:{className:{type:String,default:"ol-layer"},opacity:{type:Number,default:1},visible:{type:Boolean,default:!0},extent:{type:Array},zIndex:{type:Number},minResolution:{type:Number},maxResolution:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},title:{type:String},name:{type:String},preview:{type:String},baseLayer:{type:Boolean},properties:{type:Object,default:()=>{}}}};let TJ,AJ;const Vb={};var Ub=Kn(CJ,TJ,AJ,!1,EJ,null,null,null);function EJ(r){for(let t in Vb)this[t]=Vb[t]}Ub.options.__file="src/components/layers/BaseLayer.vue";const yo=function(){return Ub.exports}();var RJ=class extends $n{constructor(t){super(t),this._listener=[],t&&t.active===!1?this.set("active",!1):this.set("active",!0)}setActive(t){this.set("active",t===!0)}getActive(){return this.get("active")}};(function(){function r(a){this.get("active")&&a.context&&this.precompose(a)}function t(a){this.get("active")&&a.context&&this.postcompose(a)}function e(){if(this.renderSync)try{this.renderSync()}catch(a){}else this.changed()}function n(a){this.filters_||(this.filters_=[]),this.filters_.push(a),a.addToLayer&&a.addToLayer(this),a.precompose&&a._listener.push({listener:this.on(["precompose","prerender"],r.bind(a)),target:this}),a.postcompose&&a._listener.push({listener:this.on(["postcompose","postrender"],t.bind(a)),target:this}),a._listener.push({listener:a.on("propertychange",e.bind(this)),target:this}),e.call(this)}function i(a){var o;if(this.filters_||(this.filters_=[]),!a){this.filters_.forEach(function(s){this.removeFilter(s)}.bind(this));return}for(o=this.filters_.length-1;o>=0;o--)this.filters_[o]===a&&this.filters_.splice(o,1);for(o=a._listener.length-1;o>=0;o--)a._listener[o].target===this&&(a.removeFromLayer&&a.removeFromLayer(this),Un(a._listener[o].listener),a._listener.splice(o,1));e.call(this)}ul.prototype.addFilter=function(a){n.call(this,a)},ul.prototype.removeFilter=function(a){i.call(this,a)},ul.prototype.getFilters=function(){return this.filters_||[]},gu.prototype.addFilter=function(a){n.call(this,a)},gu.prototype.removeFilter=function(a){i.call(this,a)},gu.prototype.getFilters=function(){return this.filters_||[]}})();var IJ=class extends RJ{constructor(t){if(t=t||{},super(t),t.feature)switch(t.feature.getGeometry().getType()){case"Polygon":case"MultiPolygon":this.feature_=t.feature;break}this.set("inner",t.inner),this._fillColor=t.fill&&vu(t.fill.getColor())||"rgba(0,0,0,0.2)",this._shadowColor=t.shadowColor&&vu(t.shadowColor)||"rgba(0,0,0,0.5)",this.set("shadowWidth",t.shadowWidth||0),this.set("shadowMapUnits",t.shadowMapUnits===!0)}setFillColor(t){this._fillColor=t&&vu(t)||"rgba(0,0,0,0.2)"}setShadowColor(t){this._shadowColor=t&&vu(t)||"rgba(0,0,0,0.5)"}drawFeaturePath_(t,e){var n=t.context,i=n.canvas,a=t.frameState.pixelRatio,o;if(t.frameState.coordinateToPixelTransform){var s=t.frameState.coordinateToPixelTransform;if(t.inversePixelTransform){var l=t.inversePixelTransform;o=function(_){return _=[_[0]*s[0]+_[1]*s[1]+s[4],_[0]*s[2]+_[1]*s[3]+s[5]],[_[0]*l[0]-_[1]*l[1]+l[4],-_[0]*l[2]+_[1]*l[3]+l[5]]}}else o=function(_){return[(_[0]*s[0]+_[1]*s[1]+s[4])*a,(_[0]*s[2]+_[1]*s[3]+s[5])*a]}}else s=t.frameState.coordinateToPixelMatrix,o=function(_){return[(_[0]*s[0]+_[1]*s[1]+s[12])*a,(_[0]*s[4]+_[1]*s[5]+s[13])*a]};var u=this.feature_.getGeometry().getCoordinates();this.feature_.getGeometry().getType()==="Polygon"&&(u=[u]);function h(_){for(var b=0;b<u.length;b++)for(var S=u[b],T=0;T<S.length;T++){var w=o([S[T][0][0]+_,S[T][0][1]]);n.moveTo(w[0],w[1]);for(var C=1;C<S[T].length;C++)w=o([S[T][C][0]+_,S[T][C][1]]),n.lineTo(w[0],w[1])}}if(n.beginPath(),e&&(n.moveTo(-100,-100),n.lineTo(i.width+100,-100),n.lineTo(i.width+100,i.height+100),n.lineTo(-100,i.height+100),n.lineTo(-100,-100)),this.get("wrapX")){var c=t.frameState.viewState.projection.getExtent(),f=c[2]-c[0],d=t.frameState.extent,g=this.feature_.getGeometry().getExtent(),p=g[2]-g[1],v=Math.floor((d[0]+p-c[0])/f),m=Math.floor((d[2]-p-c[2])/f)+1;v>m&&([v,m]=[m,v]);for(var y=v;y<=m;y++)h(y*f)}else h(0)}postcompose(t){if(!!this.feature_){var e=t.context;if(e.save(),this.drawFeaturePath_(t,!this.get("inner")),e.fillStyle=this._fillColor,e.fill("evenodd"),this.get("shadowWidth")){var n=this.get("shadowWidth")*t.frameState.pixelRatio;this.get("shadowMapUnits")&&(n/=t.frameState.viewState.resolution),e.clip("evenodd"),e.filter="blur("+n+"px)",e.strokeStyle=this._shadowColor,e.lineCap="round",e.lineJoin="round",e.lineWidth=n,e.stroke()}e.restore()}}};const PJ={name:"v-tile",render(r,t){return null},extends:yo,inject:["VMap"],props:{layerId:{type:String,default(){return`tile-layer-${mt()}`}},preload:{type:Number,default:0},tileType:{type:String,default:"TD",validator:r=>["TD","TD_IMG","XYZ","BD","BD_DARK","BD_BLUE","GD","OSM","WMS","ARCGIS_BLUE","ARCGIS_WARM","ARCGIS_NORMAL","ARCGIS_GRAY","PGIS_XM_GA","PGIS_XM_GA_IMG","FJ_BLUE","FJ_BLUE_GA"].includes(r.toUpperCase())},tdVec:{type:String},tdCva:{type:String},tdImg:{type:String},tdCia:{type:String},gdUrl:{type:String},base:{type:Boolean,default:!0},xyz:{type:Object,default(){return{}}},tileArcGISRest:{type:Object,default(){return{}}},wms:{type:Object,default(){}},mask:{type:Object}},data(){return{layer:null,layers:[],addForOverview:!1,filterMask:null}},computed:{map(){return this.VMap.map}},watch:{tileType:{handler(r,t){r&&r!==t&&(this.clear(t),this.init())},immediate:!1,deep:!0},visible:{handler(r){this.layers.map(t=>t.setVisible(r))},immediate:!1},zIndex:{handler(r){this.layers.map(t=>t.setZIndex(r))},immediate:!1},maxZoom:{handler(r){this.layers.map(t=>t.setMaxZoom(r))},immediate:!1},minZoom:{handler(r){this.layers.map(t=>t.setMinZoom(r))},immediate:!1},extent:{handler(r){this.layers.map(t=>t.setExtent(r))},immediate:!1},"xyz.attributions":{handler(r){this.layers.map(t=>t.getSource().setAttributions(r))},immediate:!1,deep:!0},mask:{handler(r,t){r&&r!==t?this.layers.forEach(e=>{e.removeFilter(this.filterMask),this.addMask(e,this.mask)}):r||this.layers.forEach(e=>{e.removeFilter(this.filterMask)})},immediate:!1,deep:!0}},methods:{clear(r){const t=this.map.getLayers().getArray().filter(e=>e.get("base"));t&&t.length>0&&t.forEach(e=>{(e.get("tileType")===r||e.get("isDefault"))&&this.map.removeLayer(e)})},init(){switch(this.tileType.toUpperCase()){case"XYZ":this.initTileXYZ();break;case"PGIS_XM_GA":this.initTilePGISXMGA();break;case"FJ_BLUE":this.initTileFJBlue();break;case"FJ_BLUE_GA":this.initTileFJBlueGA();break;case"WMS":this.initTileWMS();break;case"TD":this.initTD();break;case"TD_IMG":this.initTDIMG();break;case"BD":this.initBD();break;case"BD_BLUE":this.initBD("midnight");break;case"BD_DARK":this.initBD("dark");break;case"ARCGISREST":this.initTileArcGISRest();break;case"ARCGIS_BLUE":this.initArcgisTile("blue");break;case"ARCGIS_WARM":this.initArcgisTile("warm");break;case"ARCGIS_NORMAL":this.initArcgisTile("normal");break;case"ARCGIS_GRAY":this.initArcgisTile("gray");break;case"GD":this.initGD();break;case"OSM":this.initTileOSM();break;default:this.initTD();break}},initTileArcGISRest(){let r;Et(this.tileArcGISRest,"tileGrid")&&(r=new Qs(this.tileArcGISRest.tileGrid));const t=It(tt({},this.tileArcGISRest),{tileGrid:r}),e=new TH(t),n=It(tt({},this.$props),{source:e});this.layer=new so(n),this.layer.set("base",this.base),this.layers=[this.layer],this.addForOverview||this.layers.forEach(i=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(i,this.mask),this.map.addLayer(i)})},initTileXYZ(){let r;Et(this.xyz,"tileGrid")&&(r=new Qs(this.xyz.tileGrid));const t=It(tt({},this.xyz),{tileGrid:r}),e=new xu(t),n=It(tt({},this.$props),{source:e});this.layer=new so(n),this.layer.set("base",this.base),this.zIndex&&this.layer.setZIndex(this.zIndex),this.layers=[this.layer],this.addForOverview||this.layers.forEach(i=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(this.mask),this.map.addLayer(i)})},initTileFJBlue(){const r="http://172.16.28.120:6080/arcgis/rest/services/xiamen/MapServer/tile";this.layer=this.initXYZbyURL(`${r}/{z}/{y}/{x}`,{projection:"EPSG:4326"}),this.layers=[this.layer],this.addForOverview||this.layers.forEach(t=>{this.zIndex&&t.setZIndex(this.zIndex),this.map.addLayer(t)})},initTileFJBlueGA(){const r="http://10.130.145.45:5001/xmblue";this.layer=this.initXYZbyURL(`${r}/{z}/{y}/{x}.png`,{projection:"EPSG:4326"}),this.layers=[this.layer],this.addForOverview||this.layers.forEach(t=>{this.zIndex&&t.setZIndex(this.zIndex),this.map.addLayer(t)})},initTilePGISXMGA(){const r={projection:"EPSG:4326",tileUrlFunction:function(n){if(!n)return"";const i=n[0],a=n[1],o=n[2];return`http://44.64.18.11/Tile_sl2019/40219e3adef540b4b3d0b9b5e1d66c53/EzMap?Service=getImage&Type=RGB&ZoomOffset=0&Col=${a}&Row=${o}&Zoom=${i}&V=1.0.0`},crossOrigin:"anonymous"},t=new xu(r),e=It(tt({},this.$props),{source:t});this.layer=new so(e),this.layers=[this.layer],this.addForOverview||this.layers.forEach(n=>{this.zIndex&&n.setZIndex(this.zIndex),this.map.addLayer(n)})},initTileWMS(){let r;Et(this.wms,"tileGrid")&&(r=new Qs(this.wms.tileGrid));const t=It(tt({},this.wms),{tileGrid:r}),e=new Mw(t),n=It(tt({},this.$props),{source:e});this.layer=new so(n),this.layer.set("base",this.base),this.layer.set("type","wms"),this.zIndex&&this.layer.setZIndex(this.zIndex),this.layers=[this.layer],this.addForOverview||this.layers.forEach(i=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(i,this.mask),this.map.addLayer(i)})},initTD(){const r=this.initXYZbyURL(this.tdVec||"https://t4.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=88e2f1d5ab64a7477a7361edd6b5f68a"),t=this.initXYZbyURL(this.tdCva||"https://t3.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=88e2f1d5ab64a7477a7361edd6b5f68a");this.layers=[r,t],this.addForOverview||this.layers.forEach(e=>{this.zIndex&&e.setZIndex(this.zIndex),this.map.addLayer(e)})},initXYZbyURL(r,t={}){const e=It(tt({crossOrigin:"anonymous"},this.$props.xyz),{url:r}),n=new xu(tt(tt({},e),t)),i=It(tt({},this.$props),{source:n}),a=new so(i);return a.set("base",!0),this.zIndex&&a.setZIndex(this.zIndex),this.mask&&Object.keys(this.mask).length>0&&this.addMask(a,this.mask),a},initTDIMG(){const r=this.initXYZbyURL(this.tdImg||"https://t4.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=88e2f1d5ab64a7477a7361edd6b5f68a"),t=this.initXYZbyURL(this.tdCia||"https://t3.tianditu.gov.cn/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=88e2f1d5ab64a7477a7361edd6b5f68a");this.layers=[r,t],this.addForOverview||this.layers.forEach(e=>{this.map.addLayer(e)})},initArcgisTile(r){let t="";switch(r){case"blue":t="http:",t=t+"//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/";break;case"warm":t="http:",t=t+"//cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetWarm/MapServer/tile";break;case"normal":t="http:",t=t+"//cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineCommunity/MapServer/tile";break;case"gray":t="http:",t=t+"//cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetGray/MapServer/tile";break;default:t="http:",t=t+"//cache1.arcgisonline.cn/arcgarcgis/rest/services/ChinaOnlineCommunity/MapServer/tile";break}this.layer=this.initXYZbyURL(`${t}/{z}/{y}/{x}`,{projection:"GCJ02"}),this.layers=[this.layer],this.addForOverview||this.layers.forEach(e=>{this.zIndex&&e.setZIndex(this.zIndex),this.map.addLayer(e)})},initBD(r){this.layers=this.getBDMap(this.xyz,this.$props,r),this.layers.length>0&&(this.addForOverview||this.layers.forEach(t=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(t,this.mask),this.map.addLayer(t)}))},getBDMap(r,t,e=""){const n=[];for(let u=0;u<19;u++)n[u]=Math.pow(2,18-u);const i=new Qs({origin:[0,0],resolutions:n}),a=It(tt({},r),{projection:"baidu",tileGrid:i,tileUrlFunction:function(u,h,c){if(!u)return"";const f=u[0],d=u[1],g=-u[2]-1;return e?"http://api0.map.bdimg.com/customimage/tile?&x="+d+"&y="+g+"&z="+f+"udt=20220819&scale=1&ak=5ieMMexWmzB9jivTq6oCRX9j&customid="+e:"https://maponline1.bdimg.com/tile/?qt=vtile&x="+d+"&y="+g+"&z="+f+"&styles=pl&scaler=1&udt=20220113&from=jsapi2_0"},crossOrigin:"anonymous"}),o=new xu(a),s=It(tt({},t),{source:o}),l=new so(s);return l.set("type","bd"),l.set("name","bd"),l.set("base",!0),this.zIndex&&l.setZIndex(this.zIndex),[l]},initGD(){this.layers=this.getAMap(this.xyz,this.$props,this.gdUrl),this.addForOverview||this.layers.forEach(r=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(r,this.mask),this.map.addLayer(r)})},getAMap(r,t,e){const n=It(tt({},r),{url:e||"https://wprd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=7",projection:"GCJ02",crossOrigin:"anonymous"}),i=new xu(n),a=It(tt({},t),{source:i}),o=new so(a);return o.set("type","AMap"),o.set("name","AMap"),o.set("base",!0),this.zIndex&&o.setZIndex(this.zIndex),[o]},initTileOSM(){const r=new pH,t=It(tt({},this.$props),{source:r});this.layer=new so(t),this.layer.set("base",this.base),this.layers=[this.layer],this.addForOverview||this.layers.forEach(e=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(e,this.mask),this.zIndex&&e.setZIndex(this.zIndex),this.map.addLayer(e)})},addMask(r,t){const e={feature:t.feature,wrapX:t.wrapX||!0,inner:t.inner||!1,shadowWidth:t.shadowWidth||0,fill:t.fill||"rgba(255, 255, 255, 0.8)"},n=kb(e.feature,this.map);this.filterMask=new IJ({feature:n,wrapX:e.wrapX||!0,inner:e.inner||!1,fill:new Bt({color:e.fill})}),this.filterMask.set("shadowWidth",e.shadowWidth||0),r.addFilter(this.filterMask)}},updated(){this.init()},mounted(){this.init()},beforeDestroy(){this.layers.forEach(r=>{r.getSource().clear(),this.map.removeLayer(r)})}};let LJ,MJ;const $b={};var Hb=Kn(PJ,LJ,MJ,!1,zJ,null,null,null);function zJ(r){for(let t in $b)this[t]=$b[t]}Hb.options.__file="src/components/layers/tile/index.vue";const qu=function(){return Hb.exports}(),DJ={name:"v-overview",render(r,t){return null},extends:qu,inject:["VMap"],props:{className:{type:String},collapsed:{type:Boolean},collapseLabel:{type:String},collapsible:{type:Boolean},render:{type:Function},rotateWithView:{type:Boolean},target:{type:String},tipLabel:{type:String},view:{type:Object}},computed:{map(){return this.VMap.map}},watch:{tileType:{handler(r,t){r&&r!==t&&(this.clearLayer(t),this.initLayers(),this.initOverview())},immediate:!1,deep:!0},rotateWithView:{handler(r){this.overview.setRotateWithView(r)},immediate:!1},collapsed:{handler(r){this.overview.setCollapsed(r)},immediate:!1},collapsible:{handler(r){this.overview.setCollapsible(r)},immediate:!1}},data(){return{overview:null}},methods:{initLayers(){this.addForOverview=!0,this.init()},clearLayer(r){const t=this.overview.getOverviewMap().getLayers().getArray().filter(e=>e.get("base"));t&&t.length>0&&t.forEach(e=>{(e.get("tileType")===r||e.get("isDefault"))&&this.overview.getOverviewMap().removeLayer(e)})},initOverview(){const r=tt({constrainResolution:!1,projection:"EPSG:4326"},this.view),t=It(tt({},this.$props),{view:new Aa(r),layers:this.layers});this.overview=new XY(t),this.map.addControl(this.overview)}},mounted(){this.initLayers(),this.initOverview()},beforeDestroy(){this.addForOverview=!1,this.map.removeControl(this.overview)}};let OJ,kJ;const Wb={};var Zb=Kn(DJ,OJ,kJ,!1,FJ,null,null,null);function FJ(r){for(let t in Wb)this[t]=Wb[t]}Zb.options.__file="src/components/overviewMap/index.vue";const Wc=function(){return Zb.exports}();Wc.install=r=>{r.component(Wc.name,Wc)};var Yb=function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("div",{class:r.className,attrs:{id:r.element}},[r._t("default",null,{position:r.position})],2)},NJ=[];Yb._withStripped=!0;const jJ={name:"v-overlay",inject:["VMap"],props:{overlayId:{type:String,default(){return`overlay-id-${mt()}`}},element:{type:String,default(){return`overlay-el-${mt()}`}},position:{type:[Array,void 0],default(){}},positioning:{type:String},offset:{type:Array,default(){return[0,0]}},autoPan:{type:Boolean,default:!1},className:{type:String}},data(){return{overlay:null}},computed:{map(){return this.VMap.map}},watch:{position:{handler(r){this.overlay.setPosition(r)},immediate:!1},positioning:{handler(r){this.overlay.setPositioning(r)},immediate:!1},offset:{handler(r){this.overlay.setOffset(r)},immediate:!1}},mounted(){let r;typeof this.element=="string"&&(r=document.getElementById(this.element.toString()));const t=It(tt({},this.$props),{id:this.overlayId,element:r});this.overlay=new zg(t),this.map.addOverlay(this.overlay),this.$emit("load",this.overlay,this.map)},beforeDestroy(){this.map.removeOverlay(this.overlay)}},Xb={};var Kb=Kn(jJ,Yb,NJ,!1,BJ,null,null,null);function BJ(r){for(let t in Xb)this[t]=Xb[t]}Kb.options.__file="src/components/overlay/index.vue";const Zc=function(){return Kb.exports}();Zc.install=r=>{r.component(Zc.name,Zc)},qu.install=function(r){r.component(qu.name,qu)};const qJ=function(r){let t=0;for(let e=0,n=r.length-1;e<n;++e)r[e+1]&&(t+=Math.sqrt(Math.pow(r[e+1][0]-r[e][0],2)+Math.pow(r[e+1][1]-r[e][1],2)));return t},GJ=function(r,t){if(!r)return!1;r={x:r[0],y:r[1]},t={x:t[0],y:t[1]};const e=Math.abs(t.x-r.x),n=Math.abs(t.y-r.y),i=Math.sqrt(e*e+n*n),a=Math.asin(n/i);let o=0;return t.y<r.y&&t.x===r.x?o=Math.PI*2/3:t.y>r.y&&t.x===r.x?o=Math.PI/2:t.y===r.y&&t.x<r.x?o=Math.PI:t.y===r.y&&t.x>r.x?o=0:t.y>r.y&&t.x>r.x?o=a:t.y>r.y&&t.x<r.x?o=Math.PI-a:t.y<r.y&&t.x<r.x?o=Math.PI+a:t.y<r.y&&t.x>r.x&&(o=Math.PI*2-a),o},VJ=function(r){const t=r.map,e=r.pixel,n=r.coordinates,i=[];for(let a=0;a<n.length-1;a++){const o=n[a],s=n[a+1],l=t.getPixelFromCoordinate(o),u=t.getPixelFromCoordinate(s),c=qJ([l,u]),f=Math.floor(c/e),d=GJ(l,u);for(let g=1;g<f+1;g++){const p=[l[0]+e*g*Math.cos(d),l[1]+e*g*Math.sin(d)],v=t.getCoordinateFromPixel(p);i.push({rotate:d,coordinate:v})}}return i},UJ=r=>{const{map:t,source:e,icon:n}=r,i={pixel:r.pixel||50,coordinates:r.coordinates,map:t},a=VJ(i),o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABfUlEQVQ4T3WTTSvFYRDFf8dLKIqytFckthTpJkQWlyhF2fgEVr6BheytpChEsqB08xbZWPgOJAs7ieRlNMzV//75P7vnmZkz58ycR2ZWD7QBF5KM1DGzTuBO0k065neZ2S3QBGwAU5I+iolmNgrsAI9An6SrNIgDnAE9EdgFJiS9+93MuoEToBx4AgYkXSZBHKAWOAS6IrAP5CW9BUge2AIqgJdg8guiSKoBDoDeDJBhwNlVBsiQpNPvGST0VgF7TjPeCsCIpNdo0g84O2fibx4r/AJEUjVwlJDjXbybU/eZjAGbMROXmC8BiKQ64BxoDyYLkuYTTCeB9WD/9B9AA3AMdGQAzALLAfCcluDF3r01itMS5oDFiP3MIUHNi90T7ko/XjyYGOIMsFJSXByimTVGQbFzegOuew0o+7PGKL4AmjM8MA2shua/RjIzX1suw8pucZfiUjOt/AC4BHfaeOoz+d63oziX9Zla3CzAkqTP9G8zM4/dS7r+7zt/Aaattn1kX8VgAAAAAElFTkSuQmCC",s=.5;for(let l=0;l<a.length;l++){const u=a[l].coordinate,h=a[l].rotate,c=new Wr({geometry:new $r(u)});c.setStyle(new or({image:new Ri(It(tt({src:o,scale:s},n),{rotation:h}))})),c.set("isArrow",!0),e.addFeature(c)}},Yc=r=>{if(!r.map||!r.coordinates||r.coordinates.length<2)return;const{source:t}=r;UJ(It(tt({},r),{source:t}))};function Jb(r){const t=r.frameState,e=Uo(r.inversePixelTransform.slice(),t.coordinateToPixelTransform);return new Tg(r.context,t.pixelRatio,t.extent,e,t.viewState.rotation)}window.ol&&(ol.util?ol.util.VERSION||(ol.util.VERSION=ol.VERSION||"6.1.0"):ol.util={VERSION:ol.VERSION||"5.3.0"});var Kg=Jp.split(".");Kg=parseInt(Kg[0])*100+parseInt(Kg[1]);var $J=function(r,t){var e=r.frameState.pixelRatio;if(Kg>605&&e!==1&&t.getImage()instanceof Ri){t=t.clone();var n=t.getImage();n.setScale(n.getScale()*e);var i=n.getAnchor();if(n.setDisplacement){var a=n.getDisplacement();a&&(a[0]-=i[0]/e,a[1]+=i[1]/e,n.setAnchor([0,0]))}else i&&(i[0]/=e,i[1]/=e)}return t},n1=class extends $n{constructor(t){t=t||{},super(),this.duration_=typeof t.duration=="number"?t.duration>=0?t.duration:0:1e3,this.fade_=typeof t.fade=="function"?t.fade:null,this.repeat_=Number(t.repeat);var e=typeof t.easing=="function"?t.easing:E3;t.revers?this.easing_=function(n){return 1-e(n)}:this.easing_=e,this.hiddenStyle=t.hiddenStyle}drawGeom_(t,e,n){this.fade_&&(t.context.globalAlpha=this.fade_(1-t.elapsed));for(var i=t.style,a=0;a<i.length;a++)try{var o=t.vectorContext||Jb(t),s=$J(t,i[a]);o.setStyle(s),s.getZIndex()<0?o.drawGeometry(n||e):o.drawGeometry(e)}catch(l){}}animate(){return!1}};n1.hiddenStyle=new or({image:new Ai({}),stroke:new ar({color:"transparent"})}),ul.prototype.animateFeature=function(r,t){var e=this._featureAnimationLayer;e||(e=this._featureAnimationLayer=new kn({source:new Sa}),e.setMap(this)),e.getSource().addFeature(r);var n=t.on("animationend",function(i){i.feature===r&&(e.getSource().removeFeature(r),Un(n))});e.animateFeature(r,t)},gu.prototype.animateFeature=function(r,t,e){var n=this,i,a=r.getStyle(),o=a||(this.getStyleFunction?this.getStyleFunction()(r):null);o||(o=[]),o instanceof Array||(o=[o]);var s={vectorContext:null,frameState:null,start:0,time:0,elapsed:0,extent:!1,feature:r,geom:r.getGeometry(),typeGeom:r.getGeometry().getType(),bbox:r.getGeometry().getExtent(),coord:Dn(r.getGeometry().getExtent()),style:o};t instanceof Array||(t=[t]);for(var l=t.length-1;l>=0;l--)t[l].duration_===0&&t.splice(l,1);var u=0,h=0,c=e&&this.getFilters?this.getFilters():[];function f(p){s.type=p.type;try{s.vectorContext=p.vectorContext||Jb(p)}catch(m){}if(s.frameState=p.frameState,s.inversePixelTransform=p.inversePixelTransform,s.extent||(s.extent=p.frameState.extent,s.start=p.frameState.time,s.context=p.context),s.time=p.frameState.time-s.start,s.elapsed=s.time/t[h].duration_,s.elapsed>1&&(s.elapsed=1),p.context.save(),c.forEach(function(m){m.get("active")&&m.precompose(p)}),this.getOpacity&&(p.context.globalAlpha=this.getOpacity()),!t[h].animate(s))u++,u<t[h].repeat_?s.extent=!1:h<t.length-1?(t[h].dispatchEvent({type:"animationend",feature:r}),h++,u=0,s.extent=!1):d();else{var v={type:"animating",step:h,start:s.start,time:s.time,elapsed:s.elapsed,rotation:s.rotation||0,geom:s.geom,coordinate:s.coord,feature:r,extra:s.extra||{}};t[h].dispatchEvent(v),n.dispatchEvent(v)}c.forEach(function(m){m.get("active")&&m.postcompose(p)}),p.context.restore(),p.frameState.animate=!0}function d(p){Un(i),i=null,r.setStyle(a),s.stop=new Date().getTime();var v={type:"animationend",feature:r};if(p)for(var m in p)p.hasOwnProperty(m)&&(v[m]=p[m]);t[h].dispatchEvent(v),n.dispatchEvent(v)}function g(p){if(t.length&&!i){if(s.stop&&(s.start=new Date().getTime()-s.stop+s.start,s.stop=0),i=n.on(["postcompose","postrender"],f.bind(n)),n.renderSync)try{n.renderSync()}catch(y){}else n.changed();r.setStyle(t[h].hiddenStyle||n1.hiddenStyle);var v={type:"animationstart",feature:r};if(p)for(var m in p)p.hasOwnProperty(m)&&(v[m]=p[m]);t[h].dispatchEvent(v),n.dispatchEvent(v)}}return g(),{start:g,stop:d,isPlaying:function(){return!!i}}};var HJ=class extends n1{constructor(t){t=t||{},super(t),this.set("zoomout",t.zoomOut)}animate(t){var e=this.easing_(t.elapsed);if(e){this.get("zoomout")&&(e=1/e);var n=t.style,i,a,o=[];for(i=0;i<n.length;i++)a=n[i].getImage(),a&&(o[i]=a.getScale(),t.type==="postrender"?a.setScale(o[i]*e/t.frameState.pixelRatio):a.setScale(o[i]*e));for(this.drawGeom_(t,t.geom),i=0;i<n.length;i++)a=n[i].getImage(),a&&a.setScale(o[i])}return t.time<=this.duration_}};const WJ={name:"v-vector",render(r,t){return null},extends:yo,inject:["VMap"],props:{layerId:{type:String,default(){return`vector-layer-${mt()}`}},source:{type:Object,default(){return{features:[]}}},features:{type:Array,default(){return[]}},FeatureStyle:{type:[Object,Boolean],default(){return!1}},modify:{type:[Object,Boolean],default:!1},select:{type:[Object,Boolean],default:!1},cluster:{type:[Object,Boolean],default:!1},flashTime:{type:Number}},data(){return{layer:null,ani:null,layerOpt:{},selectObj:null,modifyObj:null,clusterObj:null,clusterDefault:{distance:20,minDistance:0},flashInterval:null}},computed:{map(){return this.VMap.map}},watch:{cluster:{handler(r){if(r===null||r===!1)this.dispose(),this.init(!0);else if(this.clusterObj){const{distance:t}=r;(t||t===0)&&this.clusterObj.setDistance(t)}else this.init(!0)},immediate:!1,deep:!0},features:{handler(r){if(this.flashInterval&&(clearInterval(this.flashInterval),this.flashInterval=null),this.cluster){this.clusterObj.clear();const t=Ii(r,this.map,this.FeatureStyle&&Object.keys(this.FeatureStyle).length>0);this.clusterObj.getSource().addFeatures(t),this.$emit("change",t)}else{const t=this.layer.getSource();t.clear();const e=Ii(r,this.map,this.FeatureStyle&&Object.keys(this.FeatureStyle).length>0);e.forEach(n=>{n.type==="polyline"&&Et(n,"arrow")&&Yc(tt({coordinates:n.coordinates,map:this.map,source:t},n.arrow))}),t.addFeatures(e),this.$emit("change",e)}this.modify&&this.setModify(),this.setFlashAnimate(),this.flashTime&&(this.flashInterval=setInterval(()=>{this.setFlashAnimate()},this.flashTime))},immediate:!1,deep:!0},visible:{handler(r){this.layer.setVisible(r)},immediate:!1},zIndex:{handler(r){this.layer.setZIndex(r)},immediate:!1},maxZoom:{handler(r){this.layer.setMaxZoom(r)},immediate:!1},minZoom:{handler(r){this.layer.setMinZoom(r)},immediate:!1},extent:{handler(r){this.layer.setExtent(r)},immediate:!1,deep:!0},modify:{handler(r){r?this.setModify():(this.selectObj&&(this.map.removeInteraction(this.selectObj),this.selectObj=null),this.modifyObj&&(this.map.removeInteraction(this.modifyObj),this.modifyObj=null))},immediate:!1}},methods:{init(r){const t=$c(this.source,this.map);if(this.source.features.length<=0&&this.features.length>0){const e=Ii(this.features,this.map,this.FeatureStyle&&Object.keys(this.FeatureStyle).length>0);t.addFeatures(e)}if(this.cluster){let e={};typeof this.cluster=="boolean"&&this.cluster?e=tt(tt({},e),this.clusterDefault):e=this.cluster;const n=It(tt({},e),{source:t});this.clusterObj=new Z3(n),this.layerOpt=It(tt({},this.$props),{source:this.clusterObj,style:n.style}),this.layer=sJ(this.layerOpt,this.map),this.layer.set("cluster",!0)}else this.layerOpt=It(tt({},this.$props),{source:t}),this.layer=new kn(this.layerOpt),this.layer.setStyle(e=>e.get("style")?Ob(e,e.get("style"),this.map):this.FeatureStyle&&Object.keys(this.FeatureStyle).length>0?Or(this.FeatureStyle):Or({fill:{color:"rgba(67,126,255,0.15)"},stroke:{color:"rgba(67,126,255,1)",width:1}}));this.layer.set("id",this.layerId),this.layer.set("type","vector"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex),this.map.addLayer(this.layer),this.features.forEach(e=>{e.type==="polyline"&&Et(e,"arrow")&&Yc(tt({coordinates:e.coordinates,map:this.map,source:t},e.arrow))}),this.map.getView().on("change:resolution",()=>{const e=this.map.getView().getZoom();t.getFeatures().forEach(n=>{n.get("isArrow")&&t.removeFeature(n)}),Math.round(e)===e&&this.features.forEach(n=>{n.type==="polyline"&&Et(n,"arrow")&&Yc(tt({coordinates:n.coordinates,map:this.map,source:t},n.arrow))})}),this.setFlashAnimate(),this.flashTime&&(this.flashInterval=setInterval(()=>{this.setFlashAnimate()},this.flashTime)),this.$emit("load",this.layer,this.map),this.modify&&this.setModify(),r&&this.$emit("change",t.getFeatures())},setFlashAnimate(){if(this.cluster){const r=this.clusterObj.getFeatures();r.length>0&&r.forEach(t=>{const e=t.get("features");e.length===1&&e.forEach(n=>{n.get("flash")&&this.pulseFeature(n)})})}else this.layer.getSource().getFeatures().forEach(r=>{r.get("flash")&&this.pulseFeature(r)})},dispose(){this.clusterObj=null,this.map.removeLayer(this.layer),this.map.removeInteraction(this.selectObj),this.map.removeInteraction(this.modifyObj)},getFeatureById(r){const t=this.layer.getSource().getFeatures();let e;return t.forEach(n=>{(n.get("id")===r||n.getId()===r)&&(e=n)}),e},updateFeatureById(r,t){this.layer.getSource().getFeatures().forEach(n=>{if(n.get("id")===r&&typeof t=="object")for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.update(i,t[i])})},getFeatures(){return this.layer.getSource().getFeatures()},setModify(){let r=[];if(this.select){let e;Et(this.select,"style")&&(e=Or(this.select.style)),this.selectObj=new iK({style:e,layers:[this.layer]}),this.map.addInteraction(this.selectObj),this.selectObj.on("select",n=>{this.$emit("select",n,this.map)}),r=this.selectObj.getFeatures()}else r=new Tn(this.layer.getSource().getFeatures());let t;Et(this.modify,"style")&&(t=Or(this.modify.style)),this.modifyObj=new G0({features:r,style:t}),this.map.addInteraction(this.modifyObj),this.modifyObj.on("modifystart",e=>{this.$emit("modifystart",e,this.map),r.getArray().forEach(n=>{n.getGeometry().on("change",i=>{this.$emit("modifychange",i,this.map,n)})})}),this.modifyObj.on("modifyend",e=>{const n=It(tt({},e),{select:this.selectObj});this.$emit("modifyend",n,this.map)})},pulseFeature(r){const t=r.get("coordinates"),e=new Wr(new $r(t)),n=r.get("flash"),{radius:i,color:a,duration:o,width:s}=n;e.setStyle(new or({image:new Ai({radius:i||30,stroke:new ar({color:a,width:s})})})),this.layer.animateFeature(e,new HJ({fade:Yi,duration:o,easing:Yi}))},flash(r){const t=r.get("flash"),{radius:e,timeout:n}=t,i=Number(t.rate)*1e3||3e3,a=Date.now(),o=r.getGeometry().clone(),s=this.layer.on("postrender",h),l=this.map;let u=r.get("timer");u&&(Un(s),clearTimeout(u),r.set("timer",null)),n&&n>0&&(u=setTimeout(()=>{this.flash(r)},n));function h(c){const d=c.frameState.time-a;if(d>=i){Un(s);return}const g=rZ(c),p=d/i,v=Yi(p)*((e>10?e:25)||25),m=yc(t.color||"rgba(255, 0, 0, 1)");m.slice();const y=Yi(1-p),_=new or({zIndex:0,image:new Ai({radius:v,stroke:new ar({color:`rgba(${m[0]},${m[1]},${m[2]},${y})`,width:y})})});g.setStyle(_),g.drawGeometry(o),l.render()}}},mounted(){this.init()},beforeDestroy(){this.dispose()}};let ZJ,YJ;const Qb={};var eC=Kn(WJ,ZJ,YJ,!1,XJ,null,null,null);function XJ(r){for(let t in Qb)this[t]=Qb[t]}eC.options.__file="src/components/layers/vector/index.vue";const Xc=function(){return eC.exports}();Xc.install=function(r){r.component(Xc.name,Xc)};var KJ=class extends ag{constructor(t){super(t)}getExtent(){return this.getSource().getExtent()}},tC=class extends Y3{constructor(t){var e={attributions:t.attributions,logo:t.logo,projection:t.projection};e.canvasFunction=function(n,i,a,o){return this.calculateImage(n,i,a,o)},super(e),this._image=t.image?t.image:new Image,this._image.crossOrigin=t.crossOrigin,this._image.onload=function(){this.setCrop(this.crop),this.changed()}.bind(this),t.image||(this._image.src=t.url),this.center=t.imageCenter,this.setScale(t.imageScale),this.rotate=t.imageRotate?t.imageRotate:0,this.crop=t.imageCrop,this.mask=t.imageMask,this.setCrop(this.crop),this.on("change",function(){this.set("extent",this.calculateExtent())}.bind(this))}calculateImage(t,e,n,i){if(!this.center)return;var a=document.createElement("canvas");a.width=i[0],a.height=i[1];var o=a.getContext("2d");if(!this._imageSize)return a;function s(p){return[(p[0]-t[0])/(t[2]-t[0])*i[0],(p[1]-t[3])/(t[1]-t[3])*i[1]]}if(this.mask){o.beginPath();var l=s(this.mask[0]);o.moveTo(l[0],l[1]);for(var u=1;u<this.mask.length;u++)l=s(this.mask[u]),o.lineTo(l[0],l[1]);o.clip()}var h=s(this.center),c=(this._image.naturalWidth/2-this.crop[0])*this.scale[0]/e*n,f=(this._image.naturalHeight/2-this.crop[1])*this.scale[1]/e*n,d=this._imageSize[0]*this.scale[0]/e*n,g=this._imageSize[1]*this.scale[1]/e*n;return o.translate(h[0],h[1]),this.rotate&&o.rotate(this.rotate),o.drawImage(this._image,this.crop[0],this.crop[1],this._imageSize[0],this._imageSize[1],-c,-f,d,g),a}getCenter(){return this.center}setCenter(t){this.center=t,this.changed()}getScale(){return this.scale}setScale(t){switch(typeof t){case"number":t=[t,t];break;case"object":if(t.length!=2)return;break;default:return}this.scale=t,this.changed()}getRotation(){return this.rotate}setRotation(t){this.rotate=t,this.changed()}getGeoImage(){return this._image}getCrop(){return this.crop}setMask(t){this.mask=t,this.changed()}getMask(){return this.mask}setCrop(t){if(!this._image.naturalWidth){this.crop=t;return}if(t){switch(typeof t){case"number":t=[t,t,this._image.naturalWidth-t,this._image.naturalHeight-t];break;case"object":if(t.length!=4)return;break;default:return}t=Ur([[t[0],t[1]],[t[2],t[3]]]),this.crop=[Math.max(0,t[0]),Math.max(0,t[1]),Math.min(this._image.naturalWidth,t[2]),Math.min(this._image.naturalHeight,t[3])]}else this.crop=[0,0,this._image.naturalWidth,this._image.naturalHeight];this.crop[2]<=this.crop[0]&&(this.crop[2]=this.crop[0]+1),this.crop[3]<=this.crop[1]&&(this.crop[3]=this.crop[1]+1),this._imageSize=[this.crop[2]-this.crop[0],this.crop[3]-this.crop[1]],this.changed()}getExtent(t){var e=this.get("extent");if(e||(e=this.calculateExtent()),t)for(var n=0;n<t.length;n++)t[n]=e[n];return e}calculateExtent(t){var e;if(t!==!1&&this.getMask())e=new ba([this.getMask()]);else{var n=this.getCenter(),i=this.getScale(),a=this.getGeoImage().width*i[0],o=this.getGeoImage().height*i[1],s=Ur([[n[0]-a/2,n[1]-o/2],[n[0]+a/2,n[1]+o/2]]);e=pg(s),e.rotate(-this.getRotation(),n)}var l=e.getExtent();return l}};const JJ={name:"v-image",render(r,t){return null},extends:yo,inject:["VMap"],props:{layerId:{type:String,default(){return`image-layer-${mt()}`}},source:{type:Object},features:{type:Array,default(){return[]}},FeatureStyle:{type:[Object,Boolean],default(){return!1}},geoImage:{type:Boolean,default:!1},opacity:{type:Number,default:1}},data(){return{layer:null,layerOpt:{}}},computed:{map(){return this.VMap.map}},watch:{visible:{handler(r){this.layer.setVisible(r)},immediate:!1},zIndex:{handler(r){this.layer.setZIndex(r)},immediate:!1},maxZoom:{handler(r){this.layer.setMaxZoom(r)},immediate:!1},minZoom:{handler(r){this.layer.setMinZoom(r)},immediate:!1},extent:{handler(r){this.layer.setExtent(r)},immediate:!1,deep:!0},opacity:{handler(r){this.layer.setOpacity(r)},immediate:!1,deep:!0},source:{handler(r){this.layer.setSource(new tC(r))},immediate:!1,deep:!0}},methods:{init(){if(this.geoImage)this.layerOpt=tt({},this.$props),this.layer=new KJ(It(tt({},this.layerOpt),{source:new tC(this.source)}));else{let r=[0,0,180,90];Et(this.source,"extent")&&(r=this.source.extent);const t=new Ys({code:"EPSG:4326",units:"pixels",extent:r}),e=tt(tt({},this.source),t),n=new mw(e);this.layerOpt=tt({},this.$props),this.layer=new ag(It(tt({},this.layerOpt),{source:n}))}this.layer.set("id",this.layerId),this.layer.set("type","image"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex),this.map.addLayer(this.layer),this.$emit("load",this.layer,this.map)},dispose(){this.map.removeLayer(this.layer)}},mounted(){this.init()},beforeDestroy(){this.dispose()}};let QJ,eQ;const rC={};var nC=Kn(JJ,QJ,eQ,!1,tQ,null,null,null);function tQ(r){for(let t in rC)this[t]=rC[t]}nC.options.__file="src/components/layers/image/index.vue";const Kc=function(){return nC.exports}();Kc.install=r=>{r.component(Kc.name,Kc)};var iC={exports:{}},i1={exports:{}},aC=function(t,e){return function(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];return t.apply(e,i)}},rQ=aC,a1=Object.prototype.toString,o1=function(r){return function(t){var e=a1.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())}}(Object.create(null));function fl(r){return r=r.toLowerCase(),function(e){return o1(e)===r}}function s1(r){return Array.isArray(r)}function Jg(r){return typeof r=="undefined"}function nQ(r){return r!==null&&!Jg(r)&&r.constructor!==null&&!Jg(r.constructor)&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}var oC=fl("ArrayBuffer");function iQ(r){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(r):t=r&&r.buffer&&oC(r.buffer),t}function aQ(r){return typeof r=="string"}function oQ(r){return typeof r=="number"}function sC(r){return r!==null&&typeof r=="object"}function Qg(r){if(o1(r)!=="object")return!1;var t=Object.getPrototypeOf(r);return t===null||t===Object.prototype}var sQ=fl("Date"),lQ=fl("File"),uQ=fl("Blob"),hQ=fl("FileList");function l1(r){return a1.call(r)==="[object Function]"}function cQ(r){return sC(r)&&l1(r.pipe)}function fQ(r){var t="[object FormData]";return r&&(typeof FormData=="function"&&r instanceof FormData||a1.call(r)===t||l1(r.toString)&&r.toString()===t)}var dQ=fl("URLSearchParams");function gQ(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function vQ(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function u1(r,t){if(!(r===null||typeof r=="undefined"))if(typeof r!="object"&&(r=[r]),s1(r))for(var e=0,n=r.length;e<n;e++)t.call(null,r[e],e,r);else for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&t.call(null,r[i],i,r)}function h1(){var r={};function t(i,a){Qg(r[a])&&Qg(i)?r[a]=h1(r[a],i):Qg(i)?r[a]=h1({},i):s1(i)?r[a]=i.slice():r[a]=i}for(var e=0,n=arguments.length;e<n;e++)u1(arguments[e],t);return r}function pQ(r,t,e){return u1(t,function(i,a){e&&typeof i=="function"?r[a]=rQ(i,e):r[a]=i}),r}function mQ(r){return r.charCodeAt(0)===65279&&(r=r.slice(1)),r}function yQ(r,t,e,n){r.prototype=Object.create(t.prototype,n),r.prototype.constructor=r,e&&Object.assign(r.prototype,e)}function _Q(r,t,e){var n,i,a,o={};t=t||{};do{for(n=Object.getOwnPropertyNames(r),i=n.length;i-- >0;)a=n[i],o[a]||(t[a]=r[a],o[a]=!0);r=Object.getPrototypeOf(r)}while(r&&(!e||e(r,t))&&r!==Object.prototype);return t}function xQ(r,t,e){r=String(r),(e===void 0||e>r.length)&&(e=r.length),e-=t.length;var n=r.indexOf(t,e);return n!==-1&&n===e}function wQ(r){if(!r)return null;var t=r.length;if(Jg(t))return null;for(var e=new Array(t);t-- >0;)e[t]=r[t];return e}var SQ=function(r){return function(t){return r&&t instanceof r}}(typeof Uint8Array!="undefined"&&Object.getPrototypeOf(Uint8Array)),pn={isArray:s1,isArrayBuffer:oC,isBuffer:nQ,isFormData:fQ,isArrayBufferView:iQ,isString:aQ,isNumber:oQ,isObject:sC,isPlainObject:Qg,isUndefined:Jg,isDate:sQ,isFile:lQ,isBlob:uQ,isFunction:l1,isStream:cQ,isURLSearchParams:dQ,isStandardBrowserEnv:vQ,forEach:u1,merge:h1,extend:pQ,trim:gQ,stripBOM:mQ,inherits:yQ,toFlatObject:_Q,kindOf:o1,kindOfTest:fl,endsWith:xQ,toArray:wQ,isTypedArray:SQ,isFileList:hQ},Gu=pn;function lC(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var uC=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(Gu.isURLSearchParams(e))i=e.toString();else{var a=[];Gu.forEach(e,function(l,u){l===null||typeof l=="undefined"||(Gu.isArray(l)?u=u+"[]":l=[l],Gu.forEach(l,function(c){Gu.isDate(c)?c=c.toISOString():Gu.isObject(c)&&(c=JSON.stringify(c)),a.push(lC(u)+"="+lC(c))}))}),i=a.join("&")}if(i){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},bQ=pn;function ev(){this.handlers=[]}ev.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},ev.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},ev.prototype.forEach=function(t){bQ.forEach(this.handlers,function(n){n!==null&&t(n)})};var CQ=ev,TQ=pn,AQ=function(t,e){TQ.forEach(t,function(i,a){a!==e&&a.toUpperCase()===e.toUpperCase()&&(t[e]=i,delete t[a])})},hC=pn;function Vu(r,t,e,n,i){Error.call(this),this.message=r,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),n&&(this.request=n),i&&(this.response=i)}hC.inherits(Vu,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var cC=Vu.prototype,fC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(r){fC[r]={value:r}}),Object.defineProperties(Vu,fC),Object.defineProperty(cC,"isAxiosError",{value:!0}),Vu.from=function(r,t,e,n,i,a){var o=Object.create(cC);return hC.toFlatObject(r,o,function(l){return l!==Error.prototype}),Vu.call(o,r.message,t,e,n,i),o.name=r.name,a&&Object.assign(o,a),o};var Uu=Vu,dC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xi=pn;function EQ(r,t){t=t||new FormData;var e=[];function n(a){return a===null?"":Xi.isDate(a)?a.toISOString():Xi.isArrayBuffer(a)||Xi.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function i(a,o){if(Xi.isPlainObject(a)||Xi.isArray(a)){if(e.indexOf(a)!==-1)throw Error("Circular reference detected in "+o);e.push(a),Xi.forEach(a,function(l,u){if(!Xi.isUndefined(l)){var h=o?o+"."+u:u,c;if(l&&!o&&typeof l=="object"){if(Xi.endsWith(u,"{}"))l=JSON.stringify(l);else if(Xi.endsWith(u,"[]")&&(c=Xi.toArray(l))){c.forEach(function(f){!Xi.isUndefined(f)&&t.append(h,n(f))});return}}i(l,h)}}),e.pop()}else t.append(o,n(a))}return i(r),t}var gC=EQ,c1,vC;function RQ(){if(vC)return c1;vC=1;var r=Uu;return c1=function(e,n,i){var a=i.config.validateStatus;!i.status||!a||a(i.status)?e(i):n(new r("Request failed with status code "+i.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},c1}var f1,pC;function IQ(){if(pC)return f1;pC=1;var r=pn;return f1=r.isStandardBrowserEnv()?function(){return{write:function(n,i,a,o,s,l){var u=[];u.push(n+"="+encodeURIComponent(i)),r.isNumber(a)&&u.push("expires="+new Date(a).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),f1}var PQ=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},LQ=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},MQ=PQ,zQ=LQ,mC=function(t,e){return t&&!MQ(e)?zQ(t,e):e},d1,yC;function DQ(){if(yC)return d1;yC=1;var r=pn,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return d1=function(n){var i={},a,o,s;return n&&r.forEach(n.split(`
|
|
36
|
+
}`;var Ct=DG(function(){return Wt(J,et+"return "+ke).apply(e,ae)});if(Ct.source=ke,lx(Ct))throw Ct;return Ct}function E8e(x){return Jt(x).toLowerCase()}function R8e(x){return Jt(x).toUpperCase()}function I8e(x,E,O){if(x=Jt(x),x&&(O||E===e))return VB(x);if(!x||!(E=wi(E)))return x;var H=fa(x),Y=fa(E),J=UB(H,Y),ae=$B(H,Y)+1;return Vs(H,J,ae).join("")}function P8e(x,E,O){if(x=Jt(x),x&&(O||E===e))return x.slice(0,WB(x)+1);if(!x||!(E=wi(E)))return x;var H=fa(x),Y=$B(H,fa(E))+1;return Vs(H,0,Y).join("")}function L8e(x,E,O){if(x=Jt(x),x&&(O||E===e))return x.replace(Kt,"");if(!x||!(E=wi(E)))return x;var H=fa(x),Y=UB(H,fa(E));return Vs(H,Y).join("")}function M8e(x,E){var O=R,H=I;if(Ir(E)){var Y="separator"in E?E.separator:Y;O="length"in E?bt(E.length):O,H="omission"in E?wi(E.omission):H}x=Jt(x);var J=x.length;if(Wh(x)){var ae=fa(x);J=ae.length}if(O>=J)return x;var ce=O-Zh(H);if(ce<1)return H;var ve=ae?Vs(ae,0,ce).join(""):x.slice(0,ce);if(Y===e)return ve+H;if(ae&&(ce+=ve.length-ce),ux(Y)){if(x.slice(ce).search(Y)){var Pe,Me=ve;for(Y.global||(Y=T9(Y.source,Jt(Za.exec(Y))+"g")),Y.lastIndex=0;Pe=Y.exec(Me);)var ke=Pe.index;ve=ve.slice(0,ke===e?ce:ke)}}else if(x.indexOf(wi(Y),ce)!=ce){var He=ve.lastIndexOf(Y);He>-1&&(ve=ve.slice(0,He))}return ve+H}function z8e(x){return x=Jt(x),x&&Mt.test(x)?x.replace(tr,lye):x}var D8e=tc(function(x,E,O){return x+(O?" ":"")+E.toUpperCase()}),fx=Oq("toUpperCase");function zG(x,E,O){return x=Jt(x),E=O?e:E,E===e?nye(x)?cye(x):Zme(x):x.match(E)||[]}var DG=At(function(x,E){try{return _i(x,e,E)}catch(O){return lx(O)?O:new yt(O)}}),O8e=No(function(x,E){return Ni(E,function(O){O=Ka(O),ko(x,O,ox(x[O],x))}),x});function k8e(x){var E=x==null?0:x.length,O=at();return x=E?br(x,function(H){if(typeof H[1]!="function")throw new ji(o);return[O(H[0]),H[1]]}):[],At(function(H){for(var Y=-1;++Y<E;){var J=x[Y];if(_i(J[0],this,H))return _i(J[1],this,H)}})}function F8e(x){return l_e(qi(x,c))}function dx(x){return function(){return x}}function N8e(x,E){return x==null||x!==x?E:x}var j8e=Fq(),B8e=Fq(!0);function oi(x){return x}function gx(x){return dq(typeof x=="function"?x:qi(x,c))}function q8e(x){return vq(qi(x,c))}function G8e(x,E){return pq(x,qi(E,c))}var V8e=At(function(x,E){return function(O){return Od(O,x,E)}}),U8e=At(function(x,E){return function(O){return Od(x,O,E)}});function vx(x,E,O){var H=gn(E),Y=Ip(E,H);O==null&&!(Ir(E)&&(Y.length||!H.length))&&(O=E,E=x,x=this,Y=Ip(E,gn(E)));var J=!(Ir(O)&&"chain"in O)||!!O.chain,ae=Bo(x);return Ni(Y,function(ce){var ve=E[ce];x[ce]=ve,ae&&(x.prototype[ce]=function(){var Pe=this.__chain__;if(J||Pe){var Me=x(this.__wrapped__),ke=Me.__actions__=ni(this.__actions__);return ke.push({func:ve,args:arguments,thisArg:x}),Me.__chain__=Pe,Me}return ve.apply(x,Fs([this.value()],arguments))})}),x}function $8e(){return Sn._===this&&(Sn._=mye),this}function px(){}function H8e(x){return x=bt(x),At(function(E){return mq(E,x)})}var W8e=W9(br),Z8e=W9(NB),Y8e=W9(y9);function OG(x){return ex(x)?_9(Ka(x)):T_e(x)}function X8e(x){return function(E){return x==null?e:Wl(x,E)}}var K8e=jq(),J8e=jq(!0);function mx(){return[]}function yx(){return!1}function Q8e(){return{}}function e7e(){return""}function t7e(){return!0}function r7e(x,E){if(x=bt(x),x<1||x>B)return[];var O=k,H=Ln(x,k);E=at(E),x-=k;for(var Y=S9(H,E);++O<x;)E(O);return Y}function n7e(x){return _t(x)?br(x,Ka):Si(x)?[x]:ni(tG(Jt(x)))}function i7e(x){var E=++vye;return Jt(x)+E}var a7e=Op(function(x,E){return x+E},0),o7e=Z9("ceil"),s7e=Op(function(x,E){return x/E},1),l7e=Z9("floor");function u7e(x){return x&&x.length?Rp(x,oi,z9):e}function h7e(x,E){return x&&x.length?Rp(x,at(E,2),z9):e}function c7e(x){return qB(x,oi)}function f7e(x,E){return qB(x,at(E,2))}function d7e(x){return x&&x.length?Rp(x,oi,F9):e}function g7e(x,E){return x&&x.length?Rp(x,at(E,2),F9):e}var v7e=Op(function(x,E){return x*E},1),p7e=Z9("round"),m7e=Op(function(x,E){return x-E},0);function y7e(x){return x&&x.length?w9(x,oi):0}function _7e(x,E){return x&&x.length?w9(x,at(E,2)):0}return K.after=q5e,K.ary=fG,K.assign=R6e,K.assignIn=AG,K.assignInWith=Zp,K.assignWith=I6e,K.at=P6e,K.before=dG,K.bind=ox,K.bindAll=O8e,K.bindKey=gG,K.castArray=Q5e,K.chain=uG,K.chunk=l4e,K.compact=u4e,K.concat=h4e,K.cond=k8e,K.conforms=F8e,K.constant=dx,K.countBy=y5e,K.create=L6e,K.curry=vG,K.curryRight=pG,K.debounce=mG,K.defaults=M6e,K.defaultsDeep=z6e,K.defer=G5e,K.delay=V5e,K.difference=c4e,K.differenceBy=f4e,K.differenceWith=d4e,K.drop=g4e,K.dropRight=v4e,K.dropRightWhile=p4e,K.dropWhile=m4e,K.fill=y4e,K.filter=x5e,K.flatMap=b5e,K.flatMapDeep=C5e,K.flatMapDepth=T5e,K.flatten=aG,K.flattenDeep=_4e,K.flattenDepth=x4e,K.flip=U5e,K.flow=j8e,K.flowRight=B8e,K.fromPairs=w4e,K.functions=B6e,K.functionsIn=q6e,K.groupBy=A5e,K.initial=b4e,K.intersection=C4e,K.intersectionBy=T4e,K.intersectionWith=A4e,K.invert=V6e,K.invertBy=U6e,K.invokeMap=R5e,K.iteratee=gx,K.keyBy=I5e,K.keys=gn,K.keysIn=ai,K.map=Gp,K.mapKeys=H6e,K.mapValues=W6e,K.matches=q8e,K.matchesProperty=G8e,K.memoize=Up,K.merge=Z6e,K.mergeWith=EG,K.method=V8e,K.methodOf=U8e,K.mixin=vx,K.negate=$p,K.nthArg=H8e,K.omit=Y6e,K.omitBy=X6e,K.once=$5e,K.orderBy=P5e,K.over=W8e,K.overArgs=H5e,K.overEvery=Z8e,K.overSome=Y8e,K.partial=sx,K.partialRight=yG,K.partition=L5e,K.pick=K6e,K.pickBy=RG,K.property=OG,K.propertyOf=X8e,K.pull=P4e,K.pullAll=sG,K.pullAllBy=L4e,K.pullAllWith=M4e,K.pullAt=z4e,K.range=K8e,K.rangeRight=J8e,K.rearg=W5e,K.reject=D5e,K.remove=D4e,K.rest=Z5e,K.reverse=ix,K.sampleSize=k5e,K.set=Q6e,K.setWith=e8e,K.shuffle=F5e,K.slice=O4e,K.sortBy=B5e,K.sortedUniq=G4e,K.sortedUniqBy=V4e,K.split=b8e,K.spread=Y5e,K.tail=U4e,K.take=$4e,K.takeRight=H4e,K.takeRightWhile=W4e,K.takeWhile=Z4e,K.tap=u5e,K.throttle=X5e,K.thru=qp,K.toArray=bG,K.toPairs=IG,K.toPairsIn=PG,K.toPath=n7e,K.toPlainObject=TG,K.transform=t8e,K.unary=K5e,K.union=Y4e,K.unionBy=X4e,K.unionWith=K4e,K.uniq=J4e,K.uniqBy=Q4e,K.uniqWith=e5e,K.unset=r8e,K.unzip=ax,K.unzipWith=lG,K.update=n8e,K.updateWith=i8e,K.values=ic,K.valuesIn=a8e,K.without=t5e,K.words=zG,K.wrap=J5e,K.xor=r5e,K.xorBy=n5e,K.xorWith=i5e,K.zip=a5e,K.zipObject=o5e,K.zipObjectDeep=s5e,K.zipWith=l5e,K.entries=IG,K.entriesIn=PG,K.extend=AG,K.extendWith=Zp,vx(K,K),K.add=a7e,K.attempt=DG,K.camelCase=u8e,K.capitalize=LG,K.ceil=o7e,K.clamp=o8e,K.clone=e6e,K.cloneDeep=r6e,K.cloneDeepWith=n6e,K.cloneWith=t6e,K.conformsTo=i6e,K.deburr=MG,K.defaultTo=N8e,K.divide=s7e,K.endsWith=h8e,K.eq=ga,K.escape=c8e,K.escapeRegExp=f8e,K.every=_5e,K.find=w5e,K.findIndex=nG,K.findKey=D6e,K.findLast=S5e,K.findLastIndex=iG,K.findLastKey=O6e,K.floor=l7e,K.forEach=hG,K.forEachRight=cG,K.forIn=k6e,K.forInRight=F6e,K.forOwn=N6e,K.forOwnRight=j6e,K.get=hx,K.gt=a6e,K.gte=o6e,K.has=G6e,K.hasIn=cx,K.head=oG,K.identity=oi,K.includes=E5e,K.indexOf=S4e,K.inRange=s8e,K.invoke=$6e,K.isArguments=Xl,K.isArray=_t,K.isArrayBuffer=s6e,K.isArrayLike=ii,K.isArrayLikeObject=qr,K.isBoolean=l6e,K.isBuffer=Us,K.isDate=u6e,K.isElement=h6e,K.isEmpty=c6e,K.isEqual=f6e,K.isEqualWith=d6e,K.isError=lx,K.isFinite=g6e,K.isFunction=Bo,K.isInteger=_G,K.isLength=Hp,K.isMap=xG,K.isMatch=v6e,K.isMatchWith=p6e,K.isNaN=m6e,K.isNative=y6e,K.isNil=x6e,K.isNull=_6e,K.isNumber=wG,K.isObject=Ir,K.isObjectLike=zr,K.isPlainObject=qd,K.isRegExp=ux,K.isSafeInteger=w6e,K.isSet=SG,K.isString=Wp,K.isSymbol=Si,K.isTypedArray=nc,K.isUndefined=S6e,K.isWeakMap=b6e,K.isWeakSet=C6e,K.join=E4e,K.kebabCase=d8e,K.last=Vi,K.lastIndexOf=R4e,K.lowerCase=g8e,K.lowerFirst=v8e,K.lt=T6e,K.lte=A6e,K.max=u7e,K.maxBy=h7e,K.mean=c7e,K.meanBy=f7e,K.min=d7e,K.minBy=g7e,K.stubArray=mx,K.stubFalse=yx,K.stubObject=Q8e,K.stubString=e7e,K.stubTrue=t7e,K.multiply=v7e,K.nth=I4e,K.noConflict=$8e,K.noop=px,K.now=Vp,K.pad=p8e,K.padEnd=m8e,K.padStart=y8e,K.parseInt=_8e,K.random=l8e,K.reduce=M5e,K.reduceRight=z5e,K.repeat=x8e,K.replace=w8e,K.result=J6e,K.round=p7e,K.runInContext=ge,K.sample=O5e,K.size=N5e,K.snakeCase=S8e,K.some=j5e,K.sortedIndex=k4e,K.sortedIndexBy=F4e,K.sortedIndexOf=N4e,K.sortedLastIndex=j4e,K.sortedLastIndexBy=B4e,K.sortedLastIndexOf=q4e,K.startCase=C8e,K.startsWith=T8e,K.subtract=m7e,K.sum=y7e,K.sumBy=_7e,K.template=A8e,K.times=r7e,K.toFinite=qo,K.toInteger=bt,K.toLength=CG,K.toLower=E8e,K.toNumber=Ui,K.toSafeInteger=E6e,K.toString=Jt,K.toUpper=R8e,K.trim=I8e,K.trimEnd=P8e,K.trimStart=L8e,K.truncate=M8e,K.unescape=z8e,K.uniqueId=i7e,K.upperCase=D8e,K.upperFirst=fx,K.each=hG,K.eachRight=cG,K.first=oG,vx(K,function(){var x={};return Ya(K,function(E,O){rr.call(K.prototype,O)||(x[O]=E)}),x}(),{chain:!1}),K.VERSION=n,Ni(["bind","bindKey","curry","curryRight","partial","partialRight"],function(x){K[x].placeholder=K}),Ni(["drop","take"],function(x,E){zt.prototype[x]=function(O){O=O===e?1:sn(bt(O),0);var H=this.__filtered__&&!E?new zt(this):this.clone();return H.__filtered__?H.__takeCount__=Ln(O,H.__takeCount__):H.__views__.push({size:Ln(O,k),type:x+(H.__dir__<0?"Right":"")}),H},zt.prototype[x+"Right"]=function(O){return this.reverse()[x](O).reverse()}}),Ni(["filter","map","takeWhile"],function(x,E){var O=E+1,H=O==M||O==D;zt.prototype[x]=function(Y){var J=this.clone();return J.__iteratees__.push({iteratee:at(Y,3),type:O}),J.__filtered__=J.__filtered__||H,J}}),Ni(["head","last"],function(x,E){var O="take"+(E?"Right":"");zt.prototype[x]=function(){return this[O](1).value()[0]}}),Ni(["initial","tail"],function(x,E){var O="drop"+(E?"":"Right");zt.prototype[x]=function(){return this.__filtered__?new zt(this):this[O](1)}}),zt.prototype.compact=function(){return this.filter(oi)},zt.prototype.find=function(x){return this.filter(x).head()},zt.prototype.findLast=function(x){return this.reverse().find(x)},zt.prototype.invokeMap=At(function(x,E){return typeof x=="function"?new zt(this):this.map(function(O){return Od(O,x,E)})}),zt.prototype.reject=function(x){return this.filter($p(at(x)))},zt.prototype.slice=function(x,E){x=bt(x);var O=this;return O.__filtered__&&(x>0||E<0)?new zt(O):(x<0?O=O.takeRight(-x):x&&(O=O.drop(x)),E!==e&&(E=bt(E),O=E<0?O.dropRight(-E):O.take(E-x)),O)},zt.prototype.takeRightWhile=function(x){return this.reverse().takeWhile(x).reverse()},zt.prototype.toArray=function(){return this.take(k)},Ya(zt.prototype,function(x,E){var O=/^(?:filter|find|map|reject)|While$/.test(E),H=/^(?:head|last)$/.test(E),Y=K[H?"take"+(E=="last"?"Right":""):E],J=H||/^find/.test(E);!Y||(K.prototype[E]=function(){var ae=this.__wrapped__,ce=H?[1]:arguments,ve=ae instanceof zt,Pe=ce[0],Me=ve||_t(ae),ke=function(Pt){var Ft=Y.apply(K,Fs([Pt],ce));return H&&He?Ft[0]:Ft};Me&&O&&typeof Pe=="function"&&Pe.length!=1&&(ve=Me=!1);var He=this.__chain__,et=!!this.__actions__.length,ot=J&&!He,Ct=ve&&!et;if(!J&&Me){ae=Ct?ae:new zt(this);var st=x.apply(ae,ce);return st.__actions__.push({func:qp,args:[ke],thisArg:e}),new Bi(st,He)}return ot&&Ct?x.apply(this,ce):(st=this.thru(ke),ot?H?st.value()[0]:st.value():st)})}),Ni(["pop","push","shift","sort","splice","unshift"],function(x){var E=dp[x],O=/^(?:push|sort|unshift)$/.test(x)?"tap":"thru",H=/^(?:pop|shift)$/.test(x);K.prototype[x]=function(){var Y=arguments;if(H&&!this.__chain__){var J=this.value();return E.apply(_t(J)?J:[],Y)}return this[O](function(ae){return E.apply(_t(ae)?ae:[],Y)})}}),Ya(zt.prototype,function(x,E){var O=K[E];if(O){var H=O.name+"";rr.call(Jh,H)||(Jh[H]=[]),Jh[H].push({name:E,func:O})}}),Jh[Dp(e,m).name]=[{name:"wrapper",func:e}],zt.prototype.clone=zye,zt.prototype.reverse=Dye,zt.prototype.value=Oye,K.prototype.at=h5e,K.prototype.chain=c5e,K.prototype.commit=f5e,K.prototype.next=d5e,K.prototype.plant=v5e,K.prototype.reverse=p5e,K.prototype.toJSON=K.prototype.valueOf=K.prototype.value=m5e,K.prototype.first=K.prototype.head,Rd&&(K.prototype[Rd]=g5e),K},Yh=fye();Gl?((Gl.exports=Yh)._=Yh,g9._=Yh):Sn._=Yh}).call(el)})(r1,r1.exports);const xJ=r1.exports;var Bb=function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("div",{style:{width:r.mapWidth,height:r.mapHeight},attrs:{id:r.target}},[e("a",{attrs:{id:r.downLoadId,download:r.downloadName}}),r.load?r._t("default"):r._e()],2)},wJ=[];Bb._withStripped=!0;function Kn(r,t,e,n,i,a,o,s){var l=typeof r=="function"?r.options:r;t&&(l.render=t,l.staticRenderFns=e,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var u;if(o?(u=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(f=__VUE_SSR_CONTEXT__),i&&i.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var h=l.render;l.render=function(d,g){return u.call(g),h(d,g)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,u):[u]}return{exports:r,options:l}}const SJ={name:"v-map",provide(){return{VMap:this}},props:{width:{type:[String,Number],default(){return"100%"}},height:{type:[String,Number],default(){return"100%"}},target:{type:String,default:`map-${mt()}`},view:{type:Object},controls:{type:Object},interactions:{type:Object},cesium:{type:Boolean,default:!1},cesiumOptions:{type:Object}},computed:{mapOption(){return{target:this.target,view:this.view,controls:this.controls,interactions:this.interactions,cesium:this.cesium,cesiumOptions:this.cesiumOptions}},map(){return Fe.map.map},map3d:{get(){return Fe.map3d},set(r){this.cesiumMap=r}},mapWidth(){return typeof this.width=="string"?this.width:this.width.toString()+"px"},mapHeight(){return typeof this.height=="string"?this.height:this.height.toString()+"px"}},watch:{"view.center":{handler(r){r&&this.setCenter(r)},immediate:!1,deep:!0},"view.zoom":{handler(r){r&&this.setZoom(r)},immediate:!1,deep:!0},"view.constrainRotation":{handler(r){r&&this.setConstrainResolution(r)},immediate:!1,deep:!0},"view.maxZoom":{handler(r){r&&this.setMaxZoom(r)},immediate:!1,deep:!0},"view.minZoom":{handler(r){r&&this.setMinZoom(r)},immediate:!1,deep:!0},"controls.zoom":{handler(r){Fe.map.mapControlsZoom&&Fe.setControl("zoom",r,this.controls.zoomOptions)},immediate:!1,deep:!0},"controls.rotate":{handler(r){Fe.map.mapControlsRotate&&Fe.setControl("rotate",r,this.controls.rotateOptions)},immediate:!1,deep:!0},"controls.attribution":{handler(r){Fe.map.mapControlsAttribution&&Fe.setControl("attribution",r,this.controls.attributionOptions)},immediate:!1,deep:!0},"controls.FullScreen":{handler(r){Fe.map.mapControlsFullScreen&&Fe.setControl("FullScreen",r)},immediate:!1,deep:!0},"controls.ScaleLine":{handler(r){Fe.map.mapControlsScaleLine&&Fe.setControl("ScaleLine",r)},immediate:!1,deep:!0},cesium:{handler(r){Fe.map3d?Fe.map3d.setEnabled(r):(this.map3d=Fe.setMap3d(),this.$emit("load3d",Fe.map3d),this.map3dEvents())},immediate:!1,deep:!0}},data(){return{vMap:null,load:!1,downLoadId:`download-${mt()}`,downloadName:"map.png",noBase:!0,properties:{isDefault:!0},cesiumMap:null}},methods:{initMap(){this.init().then(r=>{r==="success"&&(this.map3d&&this.map3dEvents(),this.map.on("singleclick",t=>{const e=[];this.$emit("click",t,this.map),this.map.forEachSmFeatureAtPixel(t.pixel,(n,i)=>{i&&(e.push({layerId:i.get("id"),layer:i,feature:n}),this.$emit("clickfeature",n,i,t,this.map))},{},t),this.$emit("clickfeatures",xJ.groupBy(e,"layerId"),t,this.map)}),this.map.on("dblclick",t=>{this.$emit("dblclick",t,this.map)}),this.map.getView().once("change:resolution",()=>{this.map.once("moveend",t=>{this.zoomEnd(t)})}),this.map.on("pointermove",t=>{const e=this.map.getEventPixel(t.originalEvent),n=this.map.hasFeatureAtPixel(e);this.map.getTargetElement().style.cursor=n?"pointer":"",this.map.getLayers().getArray().forEach(i=>{if(i.get("type")==="graphic"||i.get("type")==="wms"){const a=i.getData(t.pixel),o=a&&a[3]>0;this.map.getTargetElement().style.cursor=o||n?"pointer":""}}),this.$emit("pointermove",t,this.map)}),this.map.on("contextmenu",t=>{this.$emit("contextmenu",t,this.map)}),this.map.on("postrender",t=>{this.$emit("postrender",t,this.map)}),this.$emit("load"),this.load=!0)})},init(){return new Promise((r,t)=>{Fe.map=new Fe(this.mapOption),Fe.map.map?r("success"):t(new Error("fail"))})},dispose(){if(!this.map)return;[...this.map.getLayers().getArray()].forEach(t=>{t&&t.get("users")&&(t.getSource().clear(),t.getRenderer().dispose(),t.setSource(void 0),this.map.removeLayer(t))}),this.map.disposeInternal()},zoomEnd(r){this.$emit("changeZoom",r,this.map),r.map.once("moveend",t=>{this.zoomEnd(t)})},setCenter(r){Fe.setCenter(r)},setZoom(r){Fe.setZoom(r)},setConstrainResolution(r){Fe.setConstrainResolution(r)},setMaxZoom(r){Fe.setMaxZoom(r)},setMinZoom(r){Fe.setMinZoom(r)},setControl(r,t){Fe.setControl(r,t)},panTo(r){Fe.panTo(r)},flyTo(r){Fe.flyTo(r)},getCenterByExtent(r){return Dn(r)},boundingExtent(r){return Ur(r)},calculateCenter(r){return Fe.calculateCenter(r)},exportPNG(r){r?r.indexOf(".png")>-1?this.downloadName=r:this.downloadName=r+".png":this.downloadName=`map-export-${mt()}.png`,Fe.exportPNG(this.downLoadId)},map3dEvents(){new window.Cesium.ScreenSpaceEventHandler(Fe.map3d.getCesiumScene().canvas).setInputAction(this.onClickHandlerCS.bind(this),window.Cesium.ScreenSpaceEventType.LEFT_CLICK),Fe.map3d.getCesiumScene().camera.moveEnd.addEventListener(()=>{this.$emit("map3dMoveEnd",Fe.map3d.getCesiumScene().camera,this.map3d)})},onClickHandlerCS(r){if(r.position.x===0&&r.position.y===0)return;const t=Fe.map3d.getCesiumScene().pick(r.position);this.$emit("map3dClick",r,Fe.map3d,t)},getDistancePoint(r,t,e){return Fe.getDistancePoint(r,t,e)},closeOverlays(){this.map.getOverlays().forEach(r=>{r.setPosition(void 0)})},updateFeature(r,t,e){t==="style"&&r.setStyle(Or(e))}},mounted(){this.initMap()},beforeDestroy(){this.dispose()}},qb={};var Gb=Kn(SJ,Bb,wJ,!1,bJ,null,null,null);function bJ(r){for(let t in qb)this[t]=qb[t]}Gb.options.__file="src/components/map/index.vue";const Hc=function(){return Gb.exports}();Hc.install=function(r){r.component(Hc.name,Hc)};const CJ={render(r,t){return null},props:{className:{type:String,default:"ol-layer"},opacity:{type:Number,default:1},visible:{type:Boolean,default:!0},extent:{type:Array},zIndex:{type:Number},minResolution:{type:Number},maxResolution:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},title:{type:String},name:{type:String},preview:{type:String},baseLayer:{type:Boolean},properties:{type:Object,default:()=>{}}}};let TJ,AJ;const Vb={};var Ub=Kn(CJ,TJ,AJ,!1,EJ,null,null,null);function EJ(r){for(let t in Vb)this[t]=Vb[t]}Ub.options.__file="src/components/layers/BaseLayer.vue";const yo=function(){return Ub.exports}();var RJ=class extends $n{constructor(t){super(t),this._listener=[],t&&t.active===!1?this.set("active",!1):this.set("active",!0)}setActive(t){this.set("active",t===!0)}getActive(){return this.get("active")}};(function(){function r(a){this.get("active")&&a.context&&this.precompose(a)}function t(a){this.get("active")&&a.context&&this.postcompose(a)}function e(){if(this.renderSync)try{this.renderSync()}catch(a){}else this.changed()}function n(a){this.filters_||(this.filters_=[]),this.filters_.push(a),a.addToLayer&&a.addToLayer(this),a.precompose&&a._listener.push({listener:this.on(["precompose","prerender"],r.bind(a)),target:this}),a.postcompose&&a._listener.push({listener:this.on(["postcompose","postrender"],t.bind(a)),target:this}),a._listener.push({listener:a.on("propertychange",e.bind(this)),target:this}),e.call(this)}function i(a){var o;if(this.filters_||(this.filters_=[]),!a){this.filters_.forEach(function(s){this.removeFilter(s)}.bind(this));return}for(o=this.filters_.length-1;o>=0;o--)this.filters_[o]===a&&this.filters_.splice(o,1);for(o=a._listener.length-1;o>=0;o--)a._listener[o].target===this&&(a.removeFromLayer&&a.removeFromLayer(this),Un(a._listener[o].listener),a._listener.splice(o,1));e.call(this)}ul.prototype.addFilter=function(a){n.call(this,a)},ul.prototype.removeFilter=function(a){i.call(this,a)},ul.prototype.getFilters=function(){return this.filters_||[]},gu.prototype.addFilter=function(a){n.call(this,a)},gu.prototype.removeFilter=function(a){i.call(this,a)},gu.prototype.getFilters=function(){return this.filters_||[]}})();var IJ=class extends RJ{constructor(t){if(t=t||{},super(t),t.feature)switch(t.feature.getGeometry().getType()){case"Polygon":case"MultiPolygon":this.feature_=t.feature;break}this.set("inner",t.inner),this._fillColor=t.fill&&vu(t.fill.getColor())||"rgba(0,0,0,0.2)",this._shadowColor=t.shadowColor&&vu(t.shadowColor)||"rgba(0,0,0,0.5)",this.set("shadowWidth",t.shadowWidth||0),this.set("shadowMapUnits",t.shadowMapUnits===!0)}setFillColor(t){this._fillColor=t&&vu(t)||"rgba(0,0,0,0.2)"}setShadowColor(t){this._shadowColor=t&&vu(t)||"rgba(0,0,0,0.5)"}drawFeaturePath_(t,e){var n=t.context,i=n.canvas,a=t.frameState.pixelRatio,o;if(t.frameState.coordinateToPixelTransform){var s=t.frameState.coordinateToPixelTransform;if(t.inversePixelTransform){var l=t.inversePixelTransform;o=function(_){return _=[_[0]*s[0]+_[1]*s[1]+s[4],_[0]*s[2]+_[1]*s[3]+s[5]],[_[0]*l[0]-_[1]*l[1]+l[4],-_[0]*l[2]+_[1]*l[3]+l[5]]}}else o=function(_){return[(_[0]*s[0]+_[1]*s[1]+s[4])*a,(_[0]*s[2]+_[1]*s[3]+s[5])*a]}}else s=t.frameState.coordinateToPixelMatrix,o=function(_){return[(_[0]*s[0]+_[1]*s[1]+s[12])*a,(_[0]*s[4]+_[1]*s[5]+s[13])*a]};var u=this.feature_.getGeometry().getCoordinates();this.feature_.getGeometry().getType()==="Polygon"&&(u=[u]);function h(_){for(var b=0;b<u.length;b++)for(var S=u[b],T=0;T<S.length;T++){var w=o([S[T][0][0]+_,S[T][0][1]]);n.moveTo(w[0],w[1]);for(var C=1;C<S[T].length;C++)w=o([S[T][C][0]+_,S[T][C][1]]),n.lineTo(w[0],w[1])}}if(n.beginPath(),e&&(n.moveTo(-100,-100),n.lineTo(i.width+100,-100),n.lineTo(i.width+100,i.height+100),n.lineTo(-100,i.height+100),n.lineTo(-100,-100)),this.get("wrapX")){var c=t.frameState.viewState.projection.getExtent(),f=c[2]-c[0],d=t.frameState.extent,g=this.feature_.getGeometry().getExtent(),p=g[2]-g[1],v=Math.floor((d[0]+p-c[0])/f),m=Math.floor((d[2]-p-c[2])/f)+1;v>m&&([v,m]=[m,v]);for(var y=v;y<=m;y++)h(y*f)}else h(0)}postcompose(t){if(!!this.feature_){var e=t.context;if(e.save(),this.drawFeaturePath_(t,!this.get("inner")),e.fillStyle=this._fillColor,e.fill("evenodd"),this.get("shadowWidth")){var n=this.get("shadowWidth")*t.frameState.pixelRatio;this.get("shadowMapUnits")&&(n/=t.frameState.viewState.resolution),e.clip("evenodd"),e.filter="blur("+n+"px)",e.strokeStyle=this._shadowColor,e.lineCap="round",e.lineJoin="round",e.lineWidth=n,e.stroke()}e.restore()}}};const PJ={name:"v-tile",render(r,t){return null},extends:yo,inject:["VMap"],props:{layerId:{type:String,default(){return`tile-layer-${mt()}`}},preload:{type:Number,default:0},tileType:{type:String,default:"TD",validator:r=>["TD","TD_IMG","XYZ","BD","BD_DARK","BD_BLUE","GD","OSM","WMS","ARCGIS_BLUE","ARCGIS_WARM","ARCGIS_NORMAL","ARCGIS_GRAY","PGIS_XM_GA","PGIS_XM_GA_IMG","FJ_BLUE","FJ_BLUE_GA"].includes(r.toUpperCase())},tdVec:{type:String},tdCva:{type:String},tdImg:{type:String},tdCia:{type:String},gdUrl:{type:String},base:{type:Boolean,default:!0},xyz:{type:Object,default(){return{}}},tileArcGISRest:{type:Object,default(){return{}}},wms:{type:Object,default(){}},mask:{type:Object}},data(){return{layer:null,layers:[],addForOverview:!1,filterMask:null}},computed:{map(){return this.VMap.map}},watch:{tileType:{handler(r,t){r&&r!==t&&(this.clear(t),this.init())},immediate:!1,deep:!0},visible:{handler(r){this.layers.map(t=>t.setVisible(r))},immediate:!1},zIndex:{handler(r){this.layers.map(t=>t.setZIndex(r))},immediate:!1},maxZoom:{handler(r){this.layers.map(t=>t.setMaxZoom(r))},immediate:!1},minZoom:{handler(r){this.layers.map(t=>t.setMinZoom(r))},immediate:!1},extent:{handler(r){this.layers.map(t=>t.setExtent(r))},immediate:!1},"xyz.attributions":{handler(r){this.layers.map(t=>t.getSource().setAttributions(r))},immediate:!1,deep:!0},mask:{handler(r,t){r&&r!==t?this.layers.forEach(e=>{e.removeFilter(this.filterMask),this.addMask(e,this.mask)}):r||this.layers.forEach(e=>{e.removeFilter(this.filterMask)})},immediate:!1,deep:!0}},methods:{clear(r){const t=this.map.getLayers().getArray().filter(e=>e.get("base"));t&&t.length>0&&t.forEach(e=>{(e.get("tileType")===r||e.get("isDefault"))&&this.map.removeLayer(e)})},init(){switch(this.tileType.toUpperCase()){case"XYZ":this.initTileXYZ();break;case"PGIS_XM_GA":this.initTilePGISXMGA();break;case"FJ_BLUE":this.initTileFJBlue();break;case"FJ_BLUE_GA":this.initTileFJBlueGA();break;case"WMS":this.initTileWMS();break;case"TD":this.initTD();break;case"TD_IMG":this.initTDIMG();break;case"BD":this.initBD();break;case"BD_BLUE":this.initBD("midnight");break;case"BD_DARK":this.initBD("dark");break;case"ARCGISREST":this.initTileArcGISRest();break;case"ARCGIS_BLUE":this.initArcgisTile("blue");break;case"ARCGIS_WARM":this.initArcgisTile("warm");break;case"ARCGIS_NORMAL":this.initArcgisTile("normal");break;case"ARCGIS_GRAY":this.initArcgisTile("gray");break;case"GD":this.initGD();break;case"OSM":this.initTileOSM();break;default:this.initTD();break}},initTileArcGISRest(){let r;Et(this.tileArcGISRest,"tileGrid")&&(r=new Qs(this.tileArcGISRest.tileGrid));const t=It(tt({},this.tileArcGISRest),{tileGrid:r}),e=new TH(t),n=It(tt({},this.$props),{source:e});this.layer=new so(n),this.layer.set("base",this.base),this.layers=[this.layer],this.addForOverview||this.layers.forEach(i=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(i,this.mask),this.map.addLayer(i)})},initTileXYZ(){let r;Et(this.xyz,"tileGrid")&&(r=new Qs(this.xyz.tileGrid));const t=It(tt({},this.xyz),{tileGrid:r}),e=new xu(t),n=It(tt({},this.$props),{source:e});this.layer=new so(n),this.layer.set("base",this.base),this.zIndex&&this.layer.setZIndex(this.zIndex),this.layers=[this.layer],this.addForOverview||this.layers.forEach(i=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(this.mask),this.map.addLayer(i)})},initTileFJBlue(){const r="http://172.16.28.120:6080/arcgis/rest/services/xiamen/MapServer/tile";this.layer=this.initXYZbyURL(`${r}/{z}/{y}/{x}`,{projection:"EPSG:4326"}),this.layers=[this.layer],this.addForOverview||this.layers.forEach(t=>{this.zIndex&&t.setZIndex(this.zIndex),this.map.addLayer(t)})},initTileFJBlueGA(){const r="http://10.130.145.45:5001/xmblue";this.layer=this.initXYZbyURL(`${r}/{z}/{y}/{x}.png`,{projection:"EPSG:4326"}),this.layers=[this.layer],this.addForOverview||this.layers.forEach(t=>{this.zIndex&&t.setZIndex(this.zIndex),this.map.addLayer(t)})},initTilePGISXMGA(){const r={projection:"EPSG:4326",tileUrlFunction:function(n){if(!n)return"";const i=n[0],a=n[1],o=n[2];return`http://44.64.18.11/Tile_sl2019/40219e3adef540b4b3d0b9b5e1d66c53/EzMap?Service=getImage&Type=RGB&ZoomOffset=0&Col=${a}&Row=${o}&Zoom=${i}&V=1.0.0`},crossOrigin:"anonymous"},t=new xu(r),e=It(tt({},this.$props),{source:t});this.layer=new so(e),this.layers=[this.layer],this.addForOverview||this.layers.forEach(n=>{this.zIndex&&n.setZIndex(this.zIndex),this.map.addLayer(n)})},initTileWMS(){let r;Et(this.wms,"tileGrid")&&(r=new Qs(this.wms.tileGrid));const t=It(tt({},this.wms),{tileGrid:r}),e=new Mw(t),n=It(tt({},this.$props),{source:e});this.layer=new so(n),this.layer.set("base",this.base),this.layer.set("type","wms"),this.zIndex&&this.layer.setZIndex(this.zIndex),this.layers=[this.layer],this.addForOverview||this.layers.forEach(i=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(i,this.mask),this.map.addLayer(i)})},initTD(){const r=this.initXYZbyURL(this.tdVec||"https://t4.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=88e2f1d5ab64a7477a7361edd6b5f68a"),t=this.initXYZbyURL(this.tdCva||"https://t3.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=88e2f1d5ab64a7477a7361edd6b5f68a");this.layers=[r,t],this.addForOverview||this.layers.forEach(e=>{this.zIndex&&e.setZIndex(this.zIndex),this.map.addLayer(e)})},initXYZbyURL(r,t={}){const e=It(tt({crossOrigin:"anonymous"},this.$props.xyz),{url:r}),n=new xu(tt(tt({},e),t)),i=It(tt({},this.$props),{source:n}),a=new so(i);return a.set("base",!0),this.zIndex&&a.setZIndex(this.zIndex),this.mask&&Object.keys(this.mask).length>0&&this.addMask(a,this.mask),a},initTDIMG(){const r=this.initXYZbyURL(this.tdImg||"https://t4.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=88e2f1d5ab64a7477a7361edd6b5f68a"),t=this.initXYZbyURL(this.tdCia||"https://t3.tianditu.gov.cn/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=88e2f1d5ab64a7477a7361edd6b5f68a");this.layers=[r,t],this.addForOverview||this.layers.forEach(e=>{this.map.addLayer(e)})},initArcgisTile(r){let t="";switch(r){case"blue":t="http:",t=t+"//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/";break;case"warm":t="http:",t=t+"//cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetWarm/MapServer/tile";break;case"normal":t="http:",t=t+"//cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineCommunity/MapServer/tile";break;case"gray":t="http:",t=t+"//cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetGray/MapServer/tile";break;default:t="http:",t=t+"//cache1.arcgisonline.cn/arcgarcgis/rest/services/ChinaOnlineCommunity/MapServer/tile";break}this.layer=this.initXYZbyURL(`${t}/{z}/{y}/{x}`,{projection:"GCJ02"}),this.layers=[this.layer],this.addForOverview||this.layers.forEach(e=>{this.zIndex&&e.setZIndex(this.zIndex),this.map.addLayer(e)})},initBD(r){this.layers=this.getBDMap(this.xyz,this.$props,r),this.layers.length>0&&(this.addForOverview||this.layers.forEach(t=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(t,this.mask),this.map.addLayer(t)}))},getBDMap(r,t,e=""){const n=[];for(let u=0;u<19;u++)n[u]=Math.pow(2,18-u);const i=new Qs({origin:[0,0],resolutions:n}),a=It(tt({},r),{projection:"baidu",tileGrid:i,tileUrlFunction:function(u,h,c){if(!u)return"";const f=u[0],d=u[1],g=-u[2]-1;return e?"http://api0.map.bdimg.com/customimage/tile?&x="+d+"&y="+g+"&z="+f+"udt=20220819&scale=1&ak=5ieMMexWmzB9jivTq6oCRX9j&customid="+e:"https://maponline1.bdimg.com/tile/?qt=vtile&x="+d+"&y="+g+"&z="+f+"&styles=pl&scaler=1&udt=20220113&from=jsapi2_0"},crossOrigin:"anonymous"}),o=new xu(a),s=It(tt({},t),{source:o}),l=new so(s);return l.set("type","bd"),l.set("name","bd"),l.set("base",!0),this.zIndex&&l.setZIndex(this.zIndex),[l]},initGD(){this.layers=this.getAMap(this.xyz,this.$props,this.gdUrl),this.addForOverview||this.layers.forEach(r=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(r,this.mask),this.map.addLayer(r)})},getAMap(r,t,e){const n=It(tt({},r),{url:e||"https://wprd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=7",projection:"GCJ02",crossOrigin:"anonymous"}),i=new xu(n),a=It(tt({},t),{source:i}),o=new so(a);return o.set("type","AMap"),o.set("name","AMap"),o.set("base",!0),this.zIndex&&o.setZIndex(this.zIndex),[o]},initTileOSM(){const r=new pH,t=It(tt({},this.$props),{source:r});this.layer=new so(t),this.layer.set("base",this.base),this.layers=[this.layer],this.addForOverview||this.layers.forEach(e=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(e,this.mask),this.zIndex&&e.setZIndex(this.zIndex),this.map.addLayer(e)})},addMask(r,t){const e={feature:t.feature,wrapX:t.wrapX||!0,inner:t.inner||!1,shadowWidth:t.shadowWidth||0,fill:t.fill||"rgba(255, 255, 255, 0.8)"},n=kb(e.feature,this.map);this.filterMask=new IJ({feature:n,wrapX:e.wrapX||!0,inner:e.inner||!1,fill:new Bt({color:e.fill})}),this.filterMask.set("shadowWidth",e.shadowWidth||0),r.addFilter(this.filterMask)}},updated(){this.init()},mounted(){this.init()},beforeDestroy(){this.layers.forEach(r=>{r.getSource().clear(),this.map.removeLayer(r)})}};let LJ,MJ;const $b={};var Hb=Kn(PJ,LJ,MJ,!1,zJ,null,null,null);function zJ(r){for(let t in $b)this[t]=$b[t]}Hb.options.__file="src/components/layers/tile/index.vue";const qu=function(){return Hb.exports}(),DJ={name:"v-overview",render(r,t){return null},extends:qu,inject:["VMap"],props:{className:{type:String},collapsed:{type:Boolean},collapseLabel:{type:String},collapsible:{type:Boolean},render:{type:Function},rotateWithView:{type:Boolean},target:{type:String},tipLabel:{type:String},view:{type:Object}},computed:{map(){return this.VMap.map}},watch:{tileType:{handler(r,t){r&&r!==t&&(this.clearLayer(t),this.initLayers(),this.initOverview())},immediate:!1,deep:!0},rotateWithView:{handler(r){this.overview.setRotateWithView(r)},immediate:!1},collapsed:{handler(r){this.overview.setCollapsed(r)},immediate:!1},collapsible:{handler(r){this.overview.setCollapsible(r)},immediate:!1}},data(){return{overview:null}},methods:{initLayers(){this.addForOverview=!0,this.init()},clearLayer(r){const t=this.overview.getOverviewMap().getLayers().getArray().filter(e=>e.get("base"));t&&t.length>0&&t.forEach(e=>{(e.get("tileType")===r||e.get("isDefault"))&&this.overview.getOverviewMap().removeLayer(e)})},initOverview(){const r=tt({constrainResolution:!1,projection:"EPSG:4326"},this.view),t=It(tt({},this.$props),{view:new Aa(r),layers:this.layers});this.overview=new XY(t),this.map.addControl(this.overview)}},mounted(){this.initLayers(),this.initOverview()},beforeDestroy(){this.addForOverview=!1,this.map.removeControl(this.overview)}};let OJ,kJ;const Wb={};var Zb=Kn(DJ,OJ,kJ,!1,FJ,null,null,null);function FJ(r){for(let t in Wb)this[t]=Wb[t]}Zb.options.__file="src/components/overviewMap/index.vue";const Wc=function(){return Zb.exports}();Wc.install=r=>{r.component(Wc.name,Wc)};var Yb=function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("div",{class:r.className,attrs:{id:r.element}},[r._t("default",null,{position:r.position})],2)},NJ=[];Yb._withStripped=!0;const jJ={name:"v-overlay",inject:["VMap"],props:{overlayId:{type:String,default(){return`overlay-id-${mt()}`}},element:{type:String,default(){return`overlay-el-${mt()}`}},position:{type:[Array,void 0],default(){}},positioning:{type:String},offset:{type:Array,default(){return[0,0]}},autoPan:{type:Boolean,default:!1},className:{type:String}},data(){return{overlay:null}},computed:{map(){return this.VMap.map}},watch:{position:{handler(r){this.overlay.setPosition(r)},immediate:!1},positioning:{handler(r){this.overlay.setPositioning(r)},immediate:!1},offset:{handler(r){this.overlay.setOffset(r)},immediate:!1}},mounted(){let r;typeof this.element=="string"&&(r=document.getElementById(this.element.toString()));const t=It(tt({},this.$props),{id:this.overlayId,element:r});this.overlay=new zg(t),this.map.addOverlay(this.overlay),this.$emit("load",this.overlay,this.map)},beforeDestroy(){this.map.removeOverlay(this.overlay)}},Xb={};var Kb=Kn(jJ,Yb,NJ,!1,BJ,null,null,null);function BJ(r){for(let t in Xb)this[t]=Xb[t]}Kb.options.__file="src/components/overlay/index.vue";const Zc=function(){return Kb.exports}();Zc.install=r=>{r.component(Zc.name,Zc)},qu.install=function(r){r.component(qu.name,qu)};const qJ=function(r){let t=0;for(let e=0,n=r.length-1;e<n;++e)r[e+1]&&(t+=Math.sqrt(Math.pow(r[e+1][0]-r[e][0],2)+Math.pow(r[e+1][1]-r[e][1],2)));return t},GJ=function(r,t){if(!r)return!1;r={x:r[0],y:r[1]},t={x:t[0],y:t[1]};const e=Math.abs(t.x-r.x),n=Math.abs(t.y-r.y),i=Math.sqrt(e*e+n*n),a=Math.asin(n/i);let o=0;return t.y<r.y&&t.x===r.x?o=Math.PI*2/3:t.y>r.y&&t.x===r.x?o=Math.PI/2:t.y===r.y&&t.x<r.x?o=Math.PI:t.y===r.y&&t.x>r.x?o=0:t.y>r.y&&t.x>r.x?o=a:t.y>r.y&&t.x<r.x?o=Math.PI-a:t.y<r.y&&t.x<r.x?o=Math.PI+a:t.y<r.y&&t.x>r.x&&(o=Math.PI*2-a),o},VJ=function(r){const t=r.map,e=r.pixel,n=r.coordinates,i=[];for(let a=0;a<n.length-1;a++){const o=n[a],s=n[a+1],l=t.getPixelFromCoordinate(o),u=t.getPixelFromCoordinate(s),c=qJ([l,u]),f=Math.floor(c/e),d=GJ(l,u);for(let g=1;g<f+1;g++){const p=[l[0]+e*g*Math.cos(d),l[1]+e*g*Math.sin(d)],v=t.getCoordinateFromPixel(p);i.push({rotate:d,coordinate:v})}}return i},UJ=r=>{const{map:t,source:e,icon:n}=r,i={pixel:r.pixel||50,coordinates:r.coordinates,map:t},a=VJ(i),o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABfUlEQVQ4T3WTTSvFYRDFf8dLKIqytFckthTpJkQWlyhF2fgEVr6BheytpChEsqB08xbZWPgOJAs7ieRlNMzV//75P7vnmZkz58ycR2ZWD7QBF5KM1DGzTuBO0k065neZ2S3QBGwAU5I+iolmNgrsAI9An6SrNIgDnAE9EdgFJiS9+93MuoEToBx4AgYkXSZBHKAWOAS6IrAP5CW9BUge2AIqgJdg8guiSKoBDoDeDJBhwNlVBsiQpNPvGST0VgF7TjPeCsCIpNdo0g84O2fibx4r/AJEUjVwlJDjXbybU/eZjAGbMROXmC8BiKQ64BxoDyYLkuYTTCeB9WD/9B9AA3AMdGQAzALLAfCcluDF3r01itMS5oDFiP3MIUHNi90T7ko/XjyYGOIMsFJSXByimTVGQbFzegOuew0o+7PGKL4AmjM8MA2shua/RjIzX1suw8pucZfiUjOt/AC4BHfaeOoz+d63oziX9Zla3CzAkqTP9G8zM4/dS7r+7zt/Aaattn1kX8VgAAAAAElFTkSuQmCC",s=.5;for(let l=0;l<a.length;l++){const u=a[l].coordinate,h=a[l].rotate,c=new Wr({geometry:new $r(u)});c.setStyle(new or({image:new Ri(It(tt({src:o,scale:s},n),{rotation:h}))})),c.set("isArrow",!0),e.addFeature(c)}},Yc=r=>{if(!r.map||!r.coordinates||r.coordinates.length<2)return;const{source:t}=r;UJ(It(tt({},r),{source:t}))};function Jb(r){const t=r.frameState,e=Uo(r.inversePixelTransform.slice(),t.coordinateToPixelTransform);return new Tg(r.context,t.pixelRatio,t.extent,e,t.viewState.rotation)}window.ol&&(ol.util?ol.util.VERSION||(ol.util.VERSION=ol.VERSION||"6.1.0"):ol.util={VERSION:ol.VERSION||"5.3.0"});var Kg=Jp.split(".");Kg=parseInt(Kg[0])*100+parseInt(Kg[1]);var $J=function(r,t){var e=r.frameState.pixelRatio;if(Kg>605&&e!==1&&t.getImage()instanceof Ri){t=t.clone();var n=t.getImage();n.setScale(n.getScale()*e);var i=n.getAnchor();if(n.setDisplacement){var a=n.getDisplacement();a&&(a[0]-=i[0]/e,a[1]+=i[1]/e,n.setAnchor([0,0]))}else i&&(i[0]/=e,i[1]/=e)}return t},n1=class extends $n{constructor(t){t=t||{},super(),this.duration_=typeof t.duration=="number"?t.duration>=0?t.duration:0:1e3,this.fade_=typeof t.fade=="function"?t.fade:null,this.repeat_=Number(t.repeat);var e=typeof t.easing=="function"?t.easing:E3;t.revers?this.easing_=function(n){return 1-e(n)}:this.easing_=e,this.hiddenStyle=t.hiddenStyle}drawGeom_(t,e,n){this.fade_&&(t.context.globalAlpha=this.fade_(1-t.elapsed));for(var i=t.style,a=0;a<i.length;a++)try{var o=t.vectorContext||Jb(t),s=$J(t,i[a]);o.setStyle(s),s.getZIndex()<0?o.drawGeometry(n||e):o.drawGeometry(e)}catch(l){}}animate(){return!1}};n1.hiddenStyle=new or({image:new Ai({}),stroke:new ar({color:"transparent"})}),ul.prototype.animateFeature=function(r,t){var e=this._featureAnimationLayer;e||(e=this._featureAnimationLayer=new kn({source:new Sa}),e.setMap(this)),e.getSource().addFeature(r);var n=t.on("animationend",function(i){i.feature===r&&(e.getSource().removeFeature(r),Un(n))});e.animateFeature(r,t)},gu.prototype.animateFeature=function(r,t,e){var n=this,i,a=r.getStyle(),o=a||(this.getStyleFunction?this.getStyleFunction()(r):null);o||(o=[]),o instanceof Array||(o=[o]);var s={vectorContext:null,frameState:null,start:0,time:0,elapsed:0,extent:!1,feature:r,geom:r.getGeometry(),typeGeom:r.getGeometry().getType(),bbox:r.getGeometry().getExtent(),coord:Dn(r.getGeometry().getExtent()),style:o};t instanceof Array||(t=[t]);for(var l=t.length-1;l>=0;l--)t[l].duration_===0&&t.splice(l,1);var u=0,h=0,c=e&&this.getFilters?this.getFilters():[];function f(p){s.type=p.type;try{s.vectorContext=p.vectorContext||Jb(p)}catch(m){}if(s.frameState=p.frameState,s.inversePixelTransform=p.inversePixelTransform,s.extent||(s.extent=p.frameState.extent,s.start=p.frameState.time,s.context=p.context),s.time=p.frameState.time-s.start,s.elapsed=s.time/t[h].duration_,s.elapsed>1&&(s.elapsed=1),p.context.save(),c.forEach(function(m){m.get("active")&&m.precompose(p)}),this.getOpacity&&(p.context.globalAlpha=this.getOpacity()),!t[h].animate(s))u++,u<t[h].repeat_?s.extent=!1:h<t.length-1?(t[h].dispatchEvent({type:"animationend",feature:r}),h++,u=0,s.extent=!1):d();else{var v={type:"animating",step:h,start:s.start,time:s.time,elapsed:s.elapsed,rotation:s.rotation||0,geom:s.geom,coordinate:s.coord,feature:r,extra:s.extra||{}};t[h].dispatchEvent(v),n.dispatchEvent(v)}c.forEach(function(m){m.get("active")&&m.postcompose(p)}),p.context.restore(),p.frameState.animate=!0}function d(p){Un(i),i=null,r.setStyle(a),s.stop=new Date().getTime();var v={type:"animationend",feature:r};if(p)for(var m in p)p.hasOwnProperty(m)&&(v[m]=p[m]);t[h].dispatchEvent(v),n.dispatchEvent(v)}function g(p){if(t.length&&!i){if(s.stop&&(s.start=new Date().getTime()-s.stop+s.start,s.stop=0),i=n.on(["postcompose","postrender"],f.bind(n)),n.renderSync)try{n.renderSync()}catch(y){}else n.changed();r.setStyle(t[h].hiddenStyle||n1.hiddenStyle);var v={type:"animationstart",feature:r};if(p)for(var m in p)p.hasOwnProperty(m)&&(v[m]=p[m]);t[h].dispatchEvent(v),n.dispatchEvent(v)}}return g(),{start:g,stop:d,isPlaying:function(){return!!i}}};var HJ=class extends n1{constructor(t){t=t||{},super(t),this.set("zoomout",t.zoomOut)}animate(t){var e=this.easing_(t.elapsed);if(e){this.get("zoomout")&&(e=1/e);var n=t.style,i,a,o=[];for(i=0;i<n.length;i++)a=n[i].getImage(),a&&(o[i]=a.getScale(),t.type==="postrender"?a.setScale(o[i]*e/t.frameState.pixelRatio):a.setScale(o[i]*e));for(this.drawGeom_(t,t.geom),i=0;i<n.length;i++)a=n[i].getImage(),a&&a.setScale(o[i])}return t.time<=this.duration_}};const WJ={name:"v-vector",render(r,t){return null},extends:yo,inject:["VMap"],props:{layerId:{type:String,default(){return`vector-layer-${mt()}`}},source:{type:Object,default(){return{features:[]}}},features:{type:Array,default(){return[]}},FeatureStyle:{type:[Object,Boolean],default(){return!1}},modify:{type:[Object,Boolean],default:!1},select:{type:[Object,Boolean],default:!1},cluster:{type:[Object,Boolean],default:!1},flashTime:{type:Number}},data(){return{layer:null,ani:null,layerOpt:{},selectObj:null,modifyObj:null,clusterObj:null,clusterDefault:{distance:20,minDistance:0},flashInterval:null}},computed:{map(){return this.VMap.map}},watch:{cluster:{handler(r){if(r===null||r===!1)this.dispose(),this.init(!0);else if(this.clusterObj){const{distance:t}=r;(t||t===0)&&this.clusterObj.setDistance(t)}else this.init(!0)},immediate:!1,deep:!0},features:{handler(r){if(this.flashInterval&&(clearInterval(this.flashInterval),this.flashInterval=null),this.cluster){this.clusterObj.getSource().clear();const t=Ii(r,this.map,this.FeatureStyle&&Object.keys(this.FeatureStyle).length>0);this.clusterObj.getSource().addFeatures(t),this.$emit("change",t)}else{const t=this.layer.getSource();t.clear();const e=Ii(r,this.map,this.FeatureStyle&&Object.keys(this.FeatureStyle).length>0);e.forEach(n=>{n.type==="polyline"&&Et(n,"arrow")&&Yc(tt({coordinates:n.coordinates,map:this.map,source:t},n.arrow))}),t.addFeatures(e),this.$emit("change",e)}this.modify&&this.setModify(),this.setFlashAnimate(),this.flashTime&&(this.flashInterval=setInterval(()=>{this.setFlashAnimate()},this.flashTime))},immediate:!1,deep:!0},visible:{handler(r){this.layer.setVisible(r)},immediate:!1},zIndex:{handler(r){this.layer.setZIndex(r)},immediate:!1},maxZoom:{handler(r){this.layer.setMaxZoom(r)},immediate:!1},minZoom:{handler(r){this.layer.setMinZoom(r)},immediate:!1},extent:{handler(r){this.layer.setExtent(r)},immediate:!1,deep:!0},modify:{handler(r){r?this.setModify():(this.selectObj&&(this.map.removeInteraction(this.selectObj),this.selectObj=null),this.modifyObj&&(this.map.removeInteraction(this.modifyObj),this.modifyObj=null))},immediate:!1}},methods:{init(r){const t=$c(this.source,this.map);if(this.source.features.length<=0&&this.features.length>0){const e=Ii(this.features,this.map,this.FeatureStyle&&Object.keys(this.FeatureStyle).length>0);t.addFeatures(e)}if(this.cluster){let e={};typeof this.cluster=="boolean"&&this.cluster?e=tt(tt({},e),this.clusterDefault):e=this.cluster;const n=It(tt({},e),{source:t});this.clusterObj=new Z3(n),this.layerOpt=It(tt({},this.$props),{source:this.clusterObj,style:n.style}),this.layer=sJ(this.layerOpt,this.map),this.layer.set("cluster",!0)}else this.layerOpt=It(tt({},this.$props),{source:t}),this.layer=new kn(this.layerOpt),this.layer.setStyle(e=>e.get("style")?Ob(e,e.get("style"),this.map):this.FeatureStyle&&Object.keys(this.FeatureStyle).length>0?Or(this.FeatureStyle):Or({fill:{color:"rgba(67,126,255,0.15)"},stroke:{color:"rgba(67,126,255,1)",width:1}}));this.layer.set("id",this.layerId),this.layer.set("type","vector"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex),this.map.addLayer(this.layer),this.features.forEach(e=>{e.type==="polyline"&&Et(e,"arrow")&&Yc(tt({coordinates:e.coordinates,map:this.map,source:t},e.arrow))}),this.map.getView().on("change:resolution",()=>{const e=this.map.getView().getZoom();t.getFeatures().forEach(n=>{n.get("isArrow")&&t.removeFeature(n)}),Math.round(e)===e&&this.features.forEach(n=>{n.type==="polyline"&&Et(n,"arrow")&&Yc(tt({coordinates:n.coordinates,map:this.map,source:t},n.arrow))})}),this.setFlashAnimate(),this.flashTime&&(this.flashInterval=setInterval(()=>{this.setFlashAnimate()},this.flashTime)),this.$emit("load",this.layer,this.map),this.modify&&this.setModify(),r&&this.$emit("change",t.getFeatures())},setFlashAnimate(){if(this.cluster){const r=this.clusterObj.getFeatures();r.length>0&&r.forEach(t=>{const e=t.get("features");e.length===1&&e.forEach(n=>{n.get("flash")&&this.pulseFeature(n)})})}else this.layer.getSource().getFeatures().forEach(r=>{r.get("flash")&&this.pulseFeature(r)})},dispose(){this.clusterObj&&(this.clusterObj.getSource().clear(),this.clusterObj=null),this.map.removeLayer(this.layer),this.map.removeInteraction(this.selectObj),this.map.removeInteraction(this.modifyObj)},getFeatureById(r){const t=this.layer.getSource().getFeatures();let e;return t.forEach(n=>{(n.get("id")===r||n.getId()===r)&&(e=n)}),e},updateFeatureById(r,t){this.layer.getSource().getFeatures().forEach(n=>{if(n.get("id")===r&&typeof t=="object")for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.update(i,t[i])})},getFeatures(){return this.layer.getSource().getFeatures()},setModify(){let r=[];if(this.select){let e;Et(this.select,"style")&&(e=Or(this.select.style)),this.selectObj=new iK({style:e,layers:[this.layer]}),this.map.addInteraction(this.selectObj),this.selectObj.on("select",n=>{this.$emit("select",n,this.map)}),r=this.selectObj.getFeatures()}else r=new Tn(this.layer.getSource().getFeatures());let t;Et(this.modify,"style")&&(t=Or(this.modify.style)),this.modifyObj=new G0({features:r,style:t}),this.map.addInteraction(this.modifyObj),this.modifyObj.on("modifystart",e=>{this.$emit("modifystart",e,this.map),r.getArray().forEach(n=>{n.getGeometry().on("change",i=>{this.$emit("modifychange",i,this.map,n)})})}),this.modifyObj.on("modifyend",e=>{const n=It(tt({},e),{select:this.selectObj});this.$emit("modifyend",n,this.map)})},pulseFeature(r){const t=r.get("coordinates"),e=new Wr(new $r(t)),n=r.get("flash"),{radius:i,color:a,duration:o,width:s}=n;e.setStyle(new or({image:new Ai({radius:i||30,stroke:new ar({color:a,width:s})})})),this.layer.animateFeature(e,new HJ({fade:Yi,duration:o,easing:Yi}))},flash(r){const t=r.get("flash"),{radius:e,timeout:n}=t,i=Number(t.rate)*1e3||3e3,a=Date.now(),o=r.getGeometry().clone(),s=this.layer.on("postrender",h),l=this.map;let u=r.get("timer");u&&(Un(s),clearTimeout(u),r.set("timer",null)),n&&n>0&&(u=setTimeout(()=>{this.flash(r)},n));function h(c){const d=c.frameState.time-a;if(d>=i){Un(s);return}const g=rZ(c),p=d/i,v=Yi(p)*((e>10?e:25)||25),m=yc(t.color||"rgba(255, 0, 0, 1)");m.slice();const y=Yi(1-p),_=new or({zIndex:0,image:new Ai({radius:v,stroke:new ar({color:`rgba(${m[0]},${m[1]},${m[2]},${y})`,width:y})})});g.setStyle(_),g.drawGeometry(o),l.render()}}},mounted(){this.init()},beforeDestroy(){this.dispose()}};let ZJ,YJ;const Qb={};var eC=Kn(WJ,ZJ,YJ,!1,XJ,null,null,null);function XJ(r){for(let t in Qb)this[t]=Qb[t]}eC.options.__file="src/components/layers/vector/index.vue";const Xc=function(){return eC.exports}();Xc.install=function(r){r.component(Xc.name,Xc)};var KJ=class extends ag{constructor(t){super(t)}getExtent(){return this.getSource().getExtent()}},tC=class extends Y3{constructor(t){var e={attributions:t.attributions,logo:t.logo,projection:t.projection};e.canvasFunction=function(n,i,a,o){return this.calculateImage(n,i,a,o)},super(e),this._image=t.image?t.image:new Image,this._image.crossOrigin=t.crossOrigin,this._image.onload=function(){this.setCrop(this.crop),this.changed()}.bind(this),t.image||(this._image.src=t.url),this.center=t.imageCenter,this.setScale(t.imageScale),this.rotate=t.imageRotate?t.imageRotate:0,this.crop=t.imageCrop,this.mask=t.imageMask,this.setCrop(this.crop),this.on("change",function(){this.set("extent",this.calculateExtent())}.bind(this))}calculateImage(t,e,n,i){if(!this.center)return;var a=document.createElement("canvas");a.width=i[0],a.height=i[1];var o=a.getContext("2d");if(!this._imageSize)return a;function s(p){return[(p[0]-t[0])/(t[2]-t[0])*i[0],(p[1]-t[3])/(t[1]-t[3])*i[1]]}if(this.mask){o.beginPath();var l=s(this.mask[0]);o.moveTo(l[0],l[1]);for(var u=1;u<this.mask.length;u++)l=s(this.mask[u]),o.lineTo(l[0],l[1]);o.clip()}var h=s(this.center),c=(this._image.naturalWidth/2-this.crop[0])*this.scale[0]/e*n,f=(this._image.naturalHeight/2-this.crop[1])*this.scale[1]/e*n,d=this._imageSize[0]*this.scale[0]/e*n,g=this._imageSize[1]*this.scale[1]/e*n;return o.translate(h[0],h[1]),this.rotate&&o.rotate(this.rotate),o.drawImage(this._image,this.crop[0],this.crop[1],this._imageSize[0],this._imageSize[1],-c,-f,d,g),a}getCenter(){return this.center}setCenter(t){this.center=t,this.changed()}getScale(){return this.scale}setScale(t){switch(typeof t){case"number":t=[t,t];break;case"object":if(t.length!=2)return;break;default:return}this.scale=t,this.changed()}getRotation(){return this.rotate}setRotation(t){this.rotate=t,this.changed()}getGeoImage(){return this._image}getCrop(){return this.crop}setMask(t){this.mask=t,this.changed()}getMask(){return this.mask}setCrop(t){if(!this._image.naturalWidth){this.crop=t;return}if(t){switch(typeof t){case"number":t=[t,t,this._image.naturalWidth-t,this._image.naturalHeight-t];break;case"object":if(t.length!=4)return;break;default:return}t=Ur([[t[0],t[1]],[t[2],t[3]]]),this.crop=[Math.max(0,t[0]),Math.max(0,t[1]),Math.min(this._image.naturalWidth,t[2]),Math.min(this._image.naturalHeight,t[3])]}else this.crop=[0,0,this._image.naturalWidth,this._image.naturalHeight];this.crop[2]<=this.crop[0]&&(this.crop[2]=this.crop[0]+1),this.crop[3]<=this.crop[1]&&(this.crop[3]=this.crop[1]+1),this._imageSize=[this.crop[2]-this.crop[0],this.crop[3]-this.crop[1]],this.changed()}getExtent(t){var e=this.get("extent");if(e||(e=this.calculateExtent()),t)for(var n=0;n<t.length;n++)t[n]=e[n];return e}calculateExtent(t){var e;if(t!==!1&&this.getMask())e=new ba([this.getMask()]);else{var n=this.getCenter(),i=this.getScale(),a=this.getGeoImage().width*i[0],o=this.getGeoImage().height*i[1],s=Ur([[n[0]-a/2,n[1]-o/2],[n[0]+a/2,n[1]+o/2]]);e=pg(s),e.rotate(-this.getRotation(),n)}var l=e.getExtent();return l}};const JJ={name:"v-image",render(r,t){return null},extends:yo,inject:["VMap"],props:{layerId:{type:String,default(){return`image-layer-${mt()}`}},source:{type:Object},features:{type:Array,default(){return[]}},FeatureStyle:{type:[Object,Boolean],default(){return!1}},geoImage:{type:Boolean,default:!1},opacity:{type:Number,default:1}},data(){return{layer:null,layerOpt:{}}},computed:{map(){return this.VMap.map}},watch:{visible:{handler(r){this.layer.setVisible(r)},immediate:!1},zIndex:{handler(r){this.layer.setZIndex(r)},immediate:!1},maxZoom:{handler(r){this.layer.setMaxZoom(r)},immediate:!1},minZoom:{handler(r){this.layer.setMinZoom(r)},immediate:!1},extent:{handler(r){this.layer.setExtent(r)},immediate:!1,deep:!0},opacity:{handler(r){this.layer.setOpacity(r)},immediate:!1,deep:!0},source:{handler(r){this.layer.setSource(new tC(r))},immediate:!1,deep:!0}},methods:{init(){if(this.geoImage)this.layerOpt=tt({},this.$props),this.layer=new KJ(It(tt({},this.layerOpt),{source:new tC(this.source)}));else{let r=[0,0,180,90];Et(this.source,"extent")&&(r=this.source.extent);const t=new Ys({code:"EPSG:4326",units:"pixels",extent:r}),e=tt(tt({},this.source),t),n=new mw(e);this.layerOpt=tt({},this.$props),this.layer=new ag(It(tt({},this.layerOpt),{source:n}))}this.layer.set("id",this.layerId),this.layer.set("type","image"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex),this.map.addLayer(this.layer),this.$emit("load",this.layer,this.map)},dispose(){this.map.removeLayer(this.layer)}},mounted(){this.init()},beforeDestroy(){this.dispose()}};let QJ,eQ;const rC={};var nC=Kn(JJ,QJ,eQ,!1,tQ,null,null,null);function tQ(r){for(let t in rC)this[t]=rC[t]}nC.options.__file="src/components/layers/image/index.vue";const Kc=function(){return nC.exports}();Kc.install=r=>{r.component(Kc.name,Kc)};var iC={exports:{}},i1={exports:{}},aC=function(t,e){return function(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];return t.apply(e,i)}},rQ=aC,a1=Object.prototype.toString,o1=function(r){return function(t){var e=a1.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())}}(Object.create(null));function fl(r){return r=r.toLowerCase(),function(e){return o1(e)===r}}function s1(r){return Array.isArray(r)}function Jg(r){return typeof r=="undefined"}function nQ(r){return r!==null&&!Jg(r)&&r.constructor!==null&&!Jg(r.constructor)&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}var oC=fl("ArrayBuffer");function iQ(r){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(r):t=r&&r.buffer&&oC(r.buffer),t}function aQ(r){return typeof r=="string"}function oQ(r){return typeof r=="number"}function sC(r){return r!==null&&typeof r=="object"}function Qg(r){if(o1(r)!=="object")return!1;var t=Object.getPrototypeOf(r);return t===null||t===Object.prototype}var sQ=fl("Date"),lQ=fl("File"),uQ=fl("Blob"),hQ=fl("FileList");function l1(r){return a1.call(r)==="[object Function]"}function cQ(r){return sC(r)&&l1(r.pipe)}function fQ(r){var t="[object FormData]";return r&&(typeof FormData=="function"&&r instanceof FormData||a1.call(r)===t||l1(r.toString)&&r.toString()===t)}var dQ=fl("URLSearchParams");function gQ(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function vQ(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function u1(r,t){if(!(r===null||typeof r=="undefined"))if(typeof r!="object"&&(r=[r]),s1(r))for(var e=0,n=r.length;e<n;e++)t.call(null,r[e],e,r);else for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&t.call(null,r[i],i,r)}function h1(){var r={};function t(i,a){Qg(r[a])&&Qg(i)?r[a]=h1(r[a],i):Qg(i)?r[a]=h1({},i):s1(i)?r[a]=i.slice():r[a]=i}for(var e=0,n=arguments.length;e<n;e++)u1(arguments[e],t);return r}function pQ(r,t,e){return u1(t,function(i,a){e&&typeof i=="function"?r[a]=rQ(i,e):r[a]=i}),r}function mQ(r){return r.charCodeAt(0)===65279&&(r=r.slice(1)),r}function yQ(r,t,e,n){r.prototype=Object.create(t.prototype,n),r.prototype.constructor=r,e&&Object.assign(r.prototype,e)}function _Q(r,t,e){var n,i,a,o={};t=t||{};do{for(n=Object.getOwnPropertyNames(r),i=n.length;i-- >0;)a=n[i],o[a]||(t[a]=r[a],o[a]=!0);r=Object.getPrototypeOf(r)}while(r&&(!e||e(r,t))&&r!==Object.prototype);return t}function xQ(r,t,e){r=String(r),(e===void 0||e>r.length)&&(e=r.length),e-=t.length;var n=r.indexOf(t,e);return n!==-1&&n===e}function wQ(r){if(!r)return null;var t=r.length;if(Jg(t))return null;for(var e=new Array(t);t-- >0;)e[t]=r[t];return e}var SQ=function(r){return function(t){return r&&t instanceof r}}(typeof Uint8Array!="undefined"&&Object.getPrototypeOf(Uint8Array)),pn={isArray:s1,isArrayBuffer:oC,isBuffer:nQ,isFormData:fQ,isArrayBufferView:iQ,isString:aQ,isNumber:oQ,isObject:sC,isPlainObject:Qg,isUndefined:Jg,isDate:sQ,isFile:lQ,isBlob:uQ,isFunction:l1,isStream:cQ,isURLSearchParams:dQ,isStandardBrowserEnv:vQ,forEach:u1,merge:h1,extend:pQ,trim:gQ,stripBOM:mQ,inherits:yQ,toFlatObject:_Q,kindOf:o1,kindOfTest:fl,endsWith:xQ,toArray:wQ,isTypedArray:SQ,isFileList:hQ},Gu=pn;function lC(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var uC=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(Gu.isURLSearchParams(e))i=e.toString();else{var a=[];Gu.forEach(e,function(l,u){l===null||typeof l=="undefined"||(Gu.isArray(l)?u=u+"[]":l=[l],Gu.forEach(l,function(c){Gu.isDate(c)?c=c.toISOString():Gu.isObject(c)&&(c=JSON.stringify(c)),a.push(lC(u)+"="+lC(c))}))}),i=a.join("&")}if(i){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},bQ=pn;function ev(){this.handlers=[]}ev.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},ev.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},ev.prototype.forEach=function(t){bQ.forEach(this.handlers,function(n){n!==null&&t(n)})};var CQ=ev,TQ=pn,AQ=function(t,e){TQ.forEach(t,function(i,a){a!==e&&a.toUpperCase()===e.toUpperCase()&&(t[e]=i,delete t[a])})},hC=pn;function Vu(r,t,e,n,i){Error.call(this),this.message=r,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),n&&(this.request=n),i&&(this.response=i)}hC.inherits(Vu,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var cC=Vu.prototype,fC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(r){fC[r]={value:r}}),Object.defineProperties(Vu,fC),Object.defineProperty(cC,"isAxiosError",{value:!0}),Vu.from=function(r,t,e,n,i,a){var o=Object.create(cC);return hC.toFlatObject(r,o,function(l){return l!==Error.prototype}),Vu.call(o,r.message,t,e,n,i),o.name=r.name,a&&Object.assign(o,a),o};var Uu=Vu,dC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xi=pn;function EQ(r,t){t=t||new FormData;var e=[];function n(a){return a===null?"":Xi.isDate(a)?a.toISOString():Xi.isArrayBuffer(a)||Xi.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function i(a,o){if(Xi.isPlainObject(a)||Xi.isArray(a)){if(e.indexOf(a)!==-1)throw Error("Circular reference detected in "+o);e.push(a),Xi.forEach(a,function(l,u){if(!Xi.isUndefined(l)){var h=o?o+"."+u:u,c;if(l&&!o&&typeof l=="object"){if(Xi.endsWith(u,"{}"))l=JSON.stringify(l);else if(Xi.endsWith(u,"[]")&&(c=Xi.toArray(l))){c.forEach(function(f){!Xi.isUndefined(f)&&t.append(h,n(f))});return}}i(l,h)}}),e.pop()}else t.append(o,n(a))}return i(r),t}var gC=EQ,c1,vC;function RQ(){if(vC)return c1;vC=1;var r=Uu;return c1=function(e,n,i){var a=i.config.validateStatus;!i.status||!a||a(i.status)?e(i):n(new r("Request failed with status code "+i.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},c1}var f1,pC;function IQ(){if(pC)return f1;pC=1;var r=pn;return f1=r.isStandardBrowserEnv()?function(){return{write:function(n,i,a,o,s,l){var u=[];u.push(n+"="+encodeURIComponent(i)),r.isNumber(a)&&u.push("expires="+new Date(a).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),f1}var PQ=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},LQ=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},MQ=PQ,zQ=LQ,mC=function(t,e){return t&&!MQ(e)?zQ(t,e):e},d1,yC;function DQ(){if(yC)return d1;yC=1;var r=pn,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return d1=function(n){var i={},a,o,s;return n&&r.forEach(n.split(`
|
|
37
37
|
`),function(u){if(s=u.indexOf(":"),a=r.trim(u.substr(0,s)).toLowerCase(),o=r.trim(u.substr(s+1)),a){if(i[a]&&t.indexOf(a)>=0)return;a==="set-cookie"?i[a]=(i[a]?i[a]:[]).concat([o]):i[a]=i[a]?i[a]+", "+o:o}}),i},d1}var g1,_C;function OQ(){if(_C)return g1;_C=1;var r=pn;return g1=r.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function a(o){var s=o;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=a(window.location.href),function(s){var l=r.isString(s)?a(s):s;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}(),g1}var v1,xC;function tv(){if(xC)return v1;xC=1;var r=Uu,t=pn;function e(n){r.call(this,n==null?"canceled":n,r.ERR_CANCELED),this.name="CanceledError"}return t.inherits(e,r,{__CANCEL__:!0}),v1=e,v1}var p1,wC;function kQ(){return wC||(wC=1,p1=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}),p1}var m1,SC;function bC(){if(SC)return m1;SC=1;var r=pn,t=RQ(),e=IQ(),n=uC,i=mC,a=DQ(),o=OQ(),s=dC,l=Uu,u=tv(),h=kQ();return m1=function(f){return new Promise(function(g,p){var v=f.data,m=f.headers,y=f.responseType,_;function b(){f.cancelToken&&f.cancelToken.unsubscribe(_),f.signal&&f.signal.removeEventListener("abort",_)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete m["Content-Type"];var S=new XMLHttpRequest;if(f.auth){var T=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";m.Authorization="Basic "+btoa(T+":"+w)}var C=i(f.baseURL,f.url);S.open(f.method.toUpperCase(),n(C,f.params,f.paramsSerializer),!0),S.timeout=f.timeout;function A(){if(!!S){var P="getAllResponseHeaders"in S?a(S.getAllResponseHeaders()):null,L=!y||y==="text"||y==="json"?S.responseText:S.response,M={data:L,status:S.status,statusText:S.statusText,headers:P,config:f,request:S};t(function(D){g(D),b()},function(D){p(D),b()},M),S=null}}if("onloadend"in S?S.onloadend=A:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(A)},S.onabort=function(){!S||(p(new l("Request aborted",l.ECONNABORTED,f,S)),S=null)},S.onerror=function(){p(new l("Network Error",l.ERR_NETWORK,f,S,S)),S=null},S.ontimeout=function(){var L=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",M=f.transitional||s;f.timeoutErrorMessage&&(L=f.timeoutErrorMessage),p(new l(L,M.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,f,S)),S=null},r.isStandardBrowserEnv()){var R=(f.withCredentials||o(C))&&f.xsrfCookieName?e.read(f.xsrfCookieName):void 0;R&&(m[f.xsrfHeaderName]=R)}"setRequestHeader"in S&&r.forEach(m,function(L,M){typeof v=="undefined"&&M.toLowerCase()==="content-type"?delete m[M]:S.setRequestHeader(M,L)}),r.isUndefined(f.withCredentials)||(S.withCredentials=!!f.withCredentials),y&&y!=="json"&&(S.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&S.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&S.upload&&S.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(_=function(P){!S||(p(!P||P&&P.type?new u:P),S.abort(),S=null)},f.cancelToken&&f.cancelToken.subscribe(_),f.signal&&(f.signal.aborted?_():f.signal.addEventListener("abort",_))),v||(v=null);var I=h(C);if(I&&["http","https","file"].indexOf(I)===-1){p(new l("Unsupported protocol "+I+":",l.ERR_BAD_REQUEST,f));return}S.send(v)})},m1}var y1,CC;function FQ(){return CC||(CC=1,y1=null),y1}var cn=pn,TC=AQ,AC=Uu,NQ=dC,jQ=gC,BQ={"Content-Type":"application/x-www-form-urlencoded"};function EC(r,t){!cn.isUndefined(r)&&cn.isUndefined(r["Content-Type"])&&(r["Content-Type"]=t)}function qQ(){var r;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(r=bC()),r}function GQ(r,t,e){if(cn.isString(r))try{return(t||JSON.parse)(r),cn.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(e||JSON.stringify)(r)}var rv={transitional:NQ,adapter:qQ(),transformRequest:[function(t,e){if(TC(e,"Accept"),TC(e,"Content-Type"),cn.isFormData(t)||cn.isArrayBuffer(t)||cn.isBuffer(t)||cn.isStream(t)||cn.isFile(t)||cn.isBlob(t))return t;if(cn.isArrayBufferView(t))return t.buffer;if(cn.isURLSearchParams(t))return EC(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n=cn.isObject(t),i=e&&e["Content-Type"],a;if((a=cn.isFileList(t))||n&&i==="multipart/form-data"){var o=this.env&&this.env.FormData;return jQ(a?{"files[]":t}:t,o&&new o)}else if(n||i==="application/json")return EC(e,"application/json"),GQ(t);return t}],transformResponse:[function(t){var e=this.transitional||rv.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,a=!n&&this.responseType==="json";if(a||i&&cn.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?AC.from(o,AC.ERR_BAD_RESPONSE,this,null,this.response):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:FQ()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};cn.forEach(["delete","get","head"],function(t){rv.headers[t]={}}),cn.forEach(["post","put","patch"],function(t){rv.headers[t]=cn.merge(BQ)});var _1=rv,VQ=pn,UQ=_1,$Q=function(t,e,n){var i=this||UQ;return VQ.forEach(n,function(o){t=o.call(i,t,e)}),t},x1,RC;function IC(){return RC||(RC=1,x1=function(t){return!!(t&&t.__CANCEL__)}),x1}var PC=pn,w1=$Q,HQ=IC(),WQ=_1,ZQ=tv();function S1(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new ZQ}var YQ=function(t){S1(t),t.headers=t.headers||{},t.data=w1.call(t,t.data,t.headers,t.transformRequest),t.headers=PC.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),PC.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var e=t.adapter||WQ.adapter;return e(t).then(function(i){return S1(t),i.data=w1.call(t,i.data,i.headers,t.transformResponse),i},function(i){return HQ(i)||(S1(t),i&&i.response&&(i.response.data=w1.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},gi=pn,LC=function(t,e){e=e||{};var n={};function i(h,c){return gi.isPlainObject(h)&&gi.isPlainObject(c)?gi.merge(h,c):gi.isPlainObject(c)?gi.merge({},c):gi.isArray(c)?c.slice():c}function a(h){if(gi.isUndefined(e[h])){if(!gi.isUndefined(t[h]))return i(void 0,t[h])}else return i(t[h],e[h])}function o(h){if(!gi.isUndefined(e[h]))return i(void 0,e[h])}function s(h){if(gi.isUndefined(e[h])){if(!gi.isUndefined(t[h]))return i(void 0,t[h])}else return i(void 0,e[h])}function l(h){if(h in e)return i(t[h],e[h]);if(h in t)return i(void 0,t[h])}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return gi.forEach(Object.keys(t).concat(Object.keys(e)),function(c){var f=u[c]||a,d=f(c);gi.isUndefined(d)&&f!==l||(n[c]=d)}),n},b1,MC;function zC(){return MC||(MC=1,b1={version:"0.27.2"}),b1}var XQ=zC().version,cs=Uu,C1={};["object","boolean","number","function","string","symbol"].forEach(function(r,t){C1[r]=function(n){return typeof n===r||"a"+(t<1?"n ":" ")+r}});var DC={};C1.transitional=function(t,e,n){function i(a,o){return"[Axios v"+XQ+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return function(a,o,s){if(t===!1)throw new cs(i(o," has been removed"+(e?" in "+e:"")),cs.ERR_DEPRECATED);return e&&!DC[o]&&(DC[o]=!0),t?t(a,o,s):!0}};function KQ(r,t,e){if(typeof r!="object")throw new cs("options must be an object",cs.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(r),i=n.length;i-- >0;){var a=n[i],o=t[a];if(o){var s=r[a],l=s===void 0||o(s,a,r);if(l!==!0)throw new cs("option "+a+" must be "+l,cs.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new cs("Unknown option "+a,cs.ERR_BAD_OPTION)}}var JQ={assertOptions:KQ,validators:C1},OC=pn,QQ=uC,kC=CQ,FC=YQ,nv=LC,eee=mC,NC=JQ,$u=NC.validators;function Hu(r){this.defaults=r,this.interceptors={request:new kC,response:new kC}}Hu.prototype.request=function(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=nv(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;n!==void 0&&NC.assertOptions(n,{silentJSONParsing:$u.transitional($u.boolean),forcedJSONParsing:$u.transitional($u.boolean),clarifyTimeoutError:$u.transitional($u.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(e)===!1||(a=a&&d.synchronous,i.unshift(d.fulfilled,d.rejected))});var o=[];this.interceptors.response.forEach(function(d){o.push(d.fulfilled,d.rejected)});var s;if(!a){var l=[FC,void 0];for(Array.prototype.unshift.apply(l,i),l=l.concat(o),s=Promise.resolve(e);l.length;)s=s.then(l.shift(),l.shift());return s}for(var u=e;i.length;){var h=i.shift(),c=i.shift();try{u=h(u)}catch(f){c(f);break}}try{s=FC(u)}catch(f){return Promise.reject(f)}for(;o.length;)s=s.then(o.shift(),o.shift());return s},Hu.prototype.getUri=function(t){t=nv(this.defaults,t);var e=eee(t.baseURL,t.url);return QQ(e,t.params,t.paramsSerializer)},OC.forEach(["delete","get","head","options"],function(t){Hu.prototype[t]=function(e,n){return this.request(nv(n||{},{method:t,url:e,data:(n||{}).data}))}}),OC.forEach(["post","put","patch"],function(t){function e(n){return function(a,o,s){return this.request(nv(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Hu.prototype[t]=e(),Hu.prototype[t+"Form"]=e(!0)});var tee=Hu,T1,jC;function ree(){if(jC)return T1;jC=1;var r=tv();function t(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(o){n=o});var i=this;this.promise.then(function(a){if(!!i._listeners){var o,s=i._listeners.length;for(o=0;o<s;o++)i._listeners[o](a);i._listeners=null}}),this.promise.then=function(a){var o,s=new Promise(function(l){i.subscribe(l),o=l}).then(a);return s.cancel=function(){i.unsubscribe(o)},s},e(function(o){i.reason||(i.reason=new r(o),n(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},t.prototype.unsubscribe=function(n){if(!!this._listeners){var i=this._listeners.indexOf(n);i!==-1&&this._listeners.splice(i,1)}},t.source=function(){var n,i=new t(function(o){n=o});return{token:i,cancel:n}},T1=t,T1}var A1,BC;function nee(){return BC||(BC=1,A1=function(t){return function(n){return t.apply(null,n)}}),A1}var E1,qC;function iee(){if(qC)return E1;qC=1;var r=pn;return E1=function(e){return r.isObject(e)&&e.isAxiosError===!0},E1}var GC=pn,aee=aC,iv=tee,oee=LC,see=_1;function VC(r){var t=new iv(r),e=aee(iv.prototype.request,t);return GC.extend(e,iv.prototype,t),GC.extend(e,t),e.create=function(i){return VC(oee(r,i))},e}var Jn=VC(see);Jn.Axios=iv,Jn.CanceledError=tv(),Jn.CancelToken=ree(),Jn.isCancel=IC(),Jn.VERSION=zC().version,Jn.toFormData=gC,Jn.AxiosError=Uu,Jn.Cancel=Jn.CanceledError,Jn.all=function(t){return Promise.all(t)},Jn.spread=nee(),Jn.isAxiosError=iee(),i1.exports=Jn,i1.exports.default=Jn,function(r){r.exports=i1.exports}(iC);const av=Gw(iC.exports),lee=aH(sH);var R1=typeof Map=="function"&&Map.prototype,I1=Object.getOwnPropertyDescriptor&&R1?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ov=R1&&I1&&typeof I1.get=="function"?I1.get:null,uee=R1&&Map.prototype.forEach,P1=typeof Set=="function"&&Set.prototype,L1=Object.getOwnPropertyDescriptor&&P1?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,sv=P1&&L1&&typeof L1.get=="function"?L1.get:null,hee=P1&&Set.prototype.forEach,cee=typeof WeakMap=="function"&&WeakMap.prototype,Jc=cee?WeakMap.prototype.has:null,fee=typeof WeakSet=="function"&&WeakSet.prototype,Qc=fee?WeakSet.prototype.has:null,dee=typeof WeakRef=="function"&&WeakRef.prototype,UC=dee?WeakRef.prototype.deref:null,gee=Boolean.prototype.valueOf,vee=Object.prototype.toString,pee=Function.prototype.toString,mee=String.prototype.match,M1=String.prototype.slice,fs=String.prototype.replace,yee=String.prototype.toUpperCase,$C=String.prototype.toLowerCase,HC=RegExp.prototype.test,WC=Array.prototype.concat,Ia=Array.prototype.join,_ee=Array.prototype.slice,ZC=Math.floor,z1=typeof BigInt=="function"?BigInt.prototype.valueOf:null,D1=Object.getOwnPropertySymbols,O1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="object",En=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Wu?"object":"symbol")?Symbol.toStringTag:null,YC=Object.prototype.propertyIsEnumerable,XC=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function KC(r,t){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||HC.call(/e/,t))return t;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-ZC(-r):ZC(r);if(n!==r){var i=String(n),a=M1.call(t,i.length+1);return fs.call(i,e,"$&_")+"."+fs.call(fs.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fs.call(t,e,"$&_")}var k1=lee,JC=k1.custom,QC=rT(JC)?JC:null,xee=function r(t,e,n,i){var a=e||{};if(ds(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ds(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=ds(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ds(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ds(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof t=="undefined")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return iT(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?KC(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return s?KC(t,u):u}var h=typeof a.depth=="undefined"?5:a.depth;if(typeof n=="undefined"&&(n=0),n>=h&&h>0&&typeof t=="object")return F1(t)?"[Array]":"[Object]";var c=Nee(a,n);if(typeof i=="undefined")i=[];else if(nT(i,t)>=0)return"[Circular]";function f(L,M,z){if(M&&(i=_ee.call(i),i.push(M)),z){var D={depth:a.depth};return ds(a,"quoteStyle")&&(D.quoteStyle=a.quoteStyle),r(L,D,n+1,i)}return r(L,a,n+1,i)}if(typeof t=="function"&&!tT(t)){var d=Iee(t),g=lv(t,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(g.length>0?" { "+Ia.call(g,", ")+" }":"")}if(rT(t)){var p=Wu?fs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O1.call(t);return typeof t=="object"&&!Wu?ef(p):p}if(Oee(t)){for(var v="<"+$C.call(String(t.nodeName)),m=t.attributes||[],y=0;y<m.length;y++)v+=" "+m[y].name+"="+eT(wee(m[y].value),"double",a);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+$C.call(String(t.nodeName))+">",v}if(F1(t)){if(t.length===0)return"[]";var _=lv(t,f);return c&&!Fee(_)?"["+j1(_,c)+"]":"[ "+Ia.call(_,", ")+" ]"}if(bee(t)){var b=lv(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!YC.call(t,"cause")?"{ ["+String(t)+"] "+Ia.call(WC.call("[cause]: "+f(t.cause),b),", ")+" }":b.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ia.call(b,", ")+" }"}if(typeof t=="object"&&o){if(QC&&typeof t[QC]=="function"&&k1)return k1(t,{depth:h-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Pee(t)){var S=[];return uee.call(t,function(L,M){S.push(f(M,t,!0)+" => "+f(L,t))}),aT("Map",ov.call(t),S,c)}if(zee(t)){var T=[];return hee.call(t,function(L){T.push(f(L,t))}),aT("Set",sv.call(t),T,c)}if(Lee(t))return N1("WeakMap");if(Dee(t))return N1("WeakSet");if(Mee(t))return N1("WeakRef");if(Tee(t))return ef(f(Number(t)));if(Eee(t))return ef(f(z1.call(t)));if(Aee(t))return ef(gee.call(t));if(Cee(t))return ef(f(String(t)));if(!See(t)&&!tT(t)){var w=lv(t,f),C=XC?XC(t)===Object.prototype:t instanceof Object||t.constructor===Object,A=t instanceof Object?"":"null prototype",R=!C&&En&&Object(t)===t&&En in t?M1.call(gs(t),8,-1):A?"Object":"",I=C||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",P=I+(R||A?"["+Ia.call(WC.call([],R||[],A||[]),": ")+"] ":"");return w.length===0?P+"{}":c?P+"{"+j1(w,c)+"}":P+"{ "+Ia.call(w,", ")+" }"}return String(t)};function eT(r,t,e){var n=(e.quoteStyle||t)==="double"?'"':"'";return n+r+n}function wee(r){return fs.call(String(r),/"/g,""")}function F1(r){return gs(r)==="[object Array]"&&(!En||!(typeof r=="object"&&En in r))}function See(r){return gs(r)==="[object Date]"&&(!En||!(typeof r=="object"&&En in r))}function tT(r){return gs(r)==="[object RegExp]"&&(!En||!(typeof r=="object"&&En in r))}function bee(r){return gs(r)==="[object Error]"&&(!En||!(typeof r=="object"&&En in r))}function Cee(r){return gs(r)==="[object String]"&&(!En||!(typeof r=="object"&&En in r))}function Tee(r){return gs(r)==="[object Number]"&&(!En||!(typeof r=="object"&&En in r))}function Aee(r){return gs(r)==="[object Boolean]"&&(!En||!(typeof r=="object"&&En in r))}function rT(r){if(Wu)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!O1)return!1;try{return O1.call(r),!0}catch(t){}return!1}function Eee(r){if(!r||typeof r!="object"||!z1)return!1;try{return z1.call(r),!0}catch(t){}return!1}var Ree=Object.prototype.hasOwnProperty||function(r){return r in this};function ds(r,t){return Ree.call(r,t)}function gs(r){return vee.call(r)}function Iee(r){if(r.name)return r.name;var t=mee.call(pee.call(r),/^function\s*([\w$]+)/);return t?t[1]:null}function nT(r,t){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e;return-1}function Pee(r){if(!ov||!r||typeof r!="object")return!1;try{ov.call(r);try{sv.call(r)}catch(t){return!0}return r instanceof Map}catch(t){}return!1}function Lee(r){if(!Jc||!r||typeof r!="object")return!1;try{Jc.call(r,Jc);try{Qc.call(r,Qc)}catch(t){return!0}return r instanceof WeakMap}catch(t){}return!1}function Mee(r){if(!UC||!r||typeof r!="object")return!1;try{return UC.call(r),!0}catch(t){}return!1}function zee(r){if(!sv||!r||typeof r!="object")return!1;try{sv.call(r);try{ov.call(r)}catch(t){return!0}return r instanceof Set}catch(t){}return!1}function Dee(r){if(!Qc||!r||typeof r!="object")return!1;try{Qc.call(r,Qc);try{Jc.call(r,Jc)}catch(t){return!0}return r instanceof WeakSet}catch(t){}return!1}function Oee(r){return!r||typeof r!="object"?!1:typeof HTMLElement!="undefined"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function iT(r,t){if(r.length>t.maxStringLength){var e=r.length-t.maxStringLength,n="... "+e+" more character"+(e>1?"s":"");return iT(M1.call(r,0,t.maxStringLength),t)+n}var i=fs.call(fs.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,kee);return eT(i,"single",t)}function kee(r){var t=r.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return e?"\\"+e:"\\x"+(t<16?"0":"")+yee.call(t.toString(16))}function ef(r){return"Object("+r+")"}function N1(r){return r+" { ? }"}function aT(r,t,e,n){var i=n?j1(e,n):Ia.call(e,", ");return r+" ("+t+") {"+i+"}"}function Fee(r){for(var t=0;t<r.length;t++)if(nT(r[t],`
|
|
38
38
|
`)>=0)return!1;return!0}function Nee(r,t){var e;if(r.indent===" ")e=" ";else if(typeof r.indent=="number"&&r.indent>0)e=Ia.call(Array(r.indent+1)," ");else return null;return{base:e,prev:Ia.call(Array(t+1),e)}}function j1(r,t){if(r.length===0)return"";var e=`
|
|
39
39
|
`+t.prev+t.base;return e+Ia.call(r,","+e)+`
|