mirror of https://gitee.com/antv-l7/antv-l7
2 lines
3.9 MiB
2 lines
3.9 MiB
/*! For license information please see app-6937779759cb955f6387.js.LICENSE.txt */
|
||
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+5th":function(e,t,n){var r=n("cLeC");e.exports=r({}.isPrototypeOf)},"+7q0":function(e,t,n){var r=n("eN33"),o=n("Pz+s"),i=n("zWgn"),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},"+AHF":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolve=void 0;var r=n("KWcp"),o=n("BEDn"),i=n("Ias3"),a=n("o7q5"),c=n("htTD"),u=function(e,t,n){try{return n()}catch(o){throw i.isStackOverflowExeption(o)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(e,t.toString())):o}};t.resolve=function(e){return function e(t){return function(n){n.parentContext.setCurrentRequest(n);var i=n.bindings,s=n.childRequests,l=n.target&&n.target.isArray(),f=!(n.parentRequest&&n.parentRequest.target&&n.target&&n.parentRequest.target.matchesArray(n.target.serviceIdentifier));if(l&&f)return s.map((function(n){return e(t)(n)}));var p=null;if(!n.target.isOptional()||0!==i.length){var d=i[0],h=d.scope===o.BindingScopeEnum.Singleton,v=d.scope===o.BindingScopeEnum.Request;if(h&&d.activated)return d.cache;if(v&&null!==t&&t.has(d.id))return t.get(d.id);if(d.type===o.BindingTypeEnum.ConstantValue)p=d.cache,d.activated=!0;else if(d.type===o.BindingTypeEnum.Function)p=d.cache,d.activated=!0;else if(d.type===o.BindingTypeEnum.Constructor)p=d.implementationType;else if(d.type===o.BindingTypeEnum.DynamicValue&&null!==d.dynamicValue)p=u("toDynamicValue",d.serviceIdentifier,(function(){return d.dynamicValue(n.parentContext)}));else if(d.type===o.BindingTypeEnum.Factory&&null!==d.factory)p=u("toFactory",d.serviceIdentifier,(function(){return d.factory(n.parentContext)}));else if(d.type===o.BindingTypeEnum.Provider&&null!==d.provider)p=u("toProvider",d.serviceIdentifier,(function(){return d.provider(n.parentContext)}));else{if(d.type!==o.BindingTypeEnum.Instance||null===d.implementationType){var y=a.getServiceIdentifierAsString(n.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+y)}p=c.resolveInstance(d.implementationType,s,e(t))}return"function"==typeof d.onActivation&&(p=d.onActivation(n.parentContext,p)),h&&(d.cache=p,d.activated=!0),v&&null!==t&&!t.has(d.id)&&t.set(d.id,p),p}}}(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}},"+AaY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiBindToService=void 0;t.multiBindToService=function(e){return function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.forEach((function(n){return e.bind(n).toService(t)}))}}}},"+CBx":function(e,t,n){"use strict";n.d(t,"a",(function(){return Oe}));var r=n("aqw4"),o=n("pufz"),i=n("Pm61"),a=n("zEXi"),c=n("s6Xb"),u=n("4Uv6"),s=n.n(u);n("qzOT");function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f,p,d,h,v,y,m,g,b,O,w,_,x,E,S=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=n.buffer,o=n.offset,i=n.stride,a=n.normalized,c=n.size,u=n.divisor;this.buffer=r,this.attribute={buffer:r.get(),offset:o||0,stride:i||0,normalized:a||!1,divisor:u||0},c&&(this.attribute.size=c)}var t,n,r;return t=e,(n=[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(e){this.buffer.subData(e)}},{key:"destroy",value:function(){this.buffer.destroy()}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=(C(f={},o.gl.POINTS,"points"),C(f,o.gl.LINES,"lines"),C(f,o.gl.LINE_LOOP,"line loop"),C(f,o.gl.LINE_STRIP,"line strip"),C(f,o.gl.TRIANGLES,"triangles"),C(f,o.gl.TRIANGLE_FAN,"triangle fan"),C(f,o.gl.TRIANGLE_STRIP,"triangle strip"),f),k=(C(p={},o.gl.STATIC_DRAW,"static"),C(p,o.gl.DYNAMIC_DRAW,"dynamic"),C(p,o.gl.STREAM_DRAW,"stream"),p),P=(C(d={},o.gl.BYTE,"int8"),C(d,o.gl.UNSIGNED_INT,"int16"),C(d,o.gl.INT,"int32"),C(d,o.gl.UNSIGNED_BYTE,"uint8"),C(d,o.gl.UNSIGNED_SHORT,"uint16"),C(d,o.gl.UNSIGNED_INT,"uint32"),C(d,o.gl.FLOAT,"float"),d),T=(C(h={},o.gl.ALPHA,"alpha"),C(h,o.gl.LUMINANCE,"luminance"),C(h,o.gl.LUMINANCE_ALPHA,"luminance alpha"),C(h,o.gl.RGB,"rgb"),C(h,o.gl.RGBA,"rgba"),C(h,o.gl.RGBA4,"rgba4"),C(h,o.gl.RGB5_A1,"rgb5 a1"),C(h,o.gl.RGB565,"rgb565"),C(h,o.gl.DEPTH_COMPONENT,"depth"),C(h,o.gl.DEPTH_STENCIL,"depth stencil"),h),M=(C(v={},o.gl.DONT_CARE,"dont care"),C(v,o.gl.NICEST,"nice"),C(v,o.gl.FASTEST,"fast"),v),A=(C(y={},o.gl.NEAREST,"nearest"),C(y,o.gl.LINEAR,"linear"),C(y,o.gl.LINEAR_MIPMAP_LINEAR,"mipmap"),C(y,o.gl.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),C(y,o.gl.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),C(y,o.gl.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),y),L=(C(m={},o.gl.REPEAT,"repeat"),C(m,o.gl.CLAMP_TO_EDGE,"clamp"),C(m,o.gl.MIRRORED_REPEAT,"mirror"),m),R=(C(g={},o.gl.NONE,"none"),C(g,o.gl.BROWSER_DEFAULT_WEBGL,"browser"),g),N=(C(b={},o.gl.NEVER,"never"),C(b,o.gl.ALWAYS,"always"),C(b,o.gl.LESS,"less"),C(b,o.gl.LEQUAL,"lequal"),C(b,o.gl.GREATER,"greater"),C(b,o.gl.GEQUAL,"gequal"),C(b,o.gl.EQUAL,"equal"),C(b,o.gl.NOTEQUAL,"notequal"),b),I=(C(O={},o.gl.FUNC_ADD,"add"),C(O,o.gl.MIN_EXT,"min"),C(O,o.gl.MAX_EXT,"max"),C(O,o.gl.FUNC_SUBTRACT,"subtract"),C(O,o.gl.FUNC_REVERSE_SUBTRACT,"reverse subtract"),O),D=(C(w={},o.gl.ZERO,"zero"),C(w,o.gl.ONE,"one"),C(w,o.gl.SRC_COLOR,"src color"),C(w,o.gl.ONE_MINUS_SRC_COLOR,"one minus src color"),C(w,o.gl.SRC_ALPHA,"src alpha"),C(w,o.gl.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),C(w,o.gl.DST_COLOR,"dst color"),C(w,o.gl.ONE_MINUS_DST_COLOR,"one minus dst color"),C(w,o.gl.DST_ALPHA,"dst alpha"),C(w,o.gl.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),C(w,o.gl.CONSTANT_COLOR,"constant color"),C(w,o.gl.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),C(w,o.gl.CONSTANT_ALPHA,"constant alpha"),C(w,o.gl.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),C(w,o.gl.SRC_ALPHA_SATURATE,"src alpha saturate"),w),F=(C(_={},o.gl.NEVER,"never"),C(_,o.gl.ALWAYS,"always"),C(_,o.gl.LESS,"less"),C(_,o.gl.LEQUAL,"lequal"),C(_,o.gl.GREATER,"greater"),C(_,o.gl.GEQUAL,"gequal"),C(_,o.gl.EQUAL,"equal"),C(_,o.gl.NOTEQUAL,"notequal"),_),z=(C(x={},o.gl.ZERO,"zero"),C(x,o.gl.KEEP,"keep"),C(x,o.gl.REPLACE,"replace"),C(x,o.gl.INVERT,"invert"),C(x,o.gl.INCR,"increment"),C(x,o.gl.DECR,"decrement"),C(x,o.gl.INCR_WRAP,"increment wrap"),C(x,o.gl.DECR_WRAP,"decrement wrap"),x),B=(C(E={},o.gl.FRONT,"front"),C(E,o.gl.BACK,"back"),E);function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var V=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=n.data,i=n.usage,a=n.type;this.buffer=t.buffer({data:r,usage:k[i||o.gl.STATIC_DRAW],type:P[a||o.gl.UNSIGNED_BYTE]})}var t,n,r;return t=e,(n=[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.buffer.destroy()}},{key:"subData",value:function(e){var t=e.data,n=e.offset;this.buffer.subdata(t,n)}}])&&U(t.prototype,n),r&&U(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var G=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=n.data,i=n.usage,a=n.type,c=n.count;this.elements=t.elements({data:r,usage:k[i||o.gl.STATIC_DRAW],type:P[a||o.gl.UNSIGNED_BYTE],count:c})}var t,n,r;return t=e,(n=[{key:"get",value:function(){return this.elements}},{key:"subData",value:function(e){var t=e.data;this.elements.subdata(t)}},{key:"destroy",value:function(){}}])&&H(t.prototype,n),r&&H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Y=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=n.width,o=n.height,i=n.color,a=n.colors,c=(n.depth,n.stencil,{width:r,height:o});Array.isArray(a)&&(c.colors=a.map((function(e){return e.get()}))),i&&"boolean"!=typeof i&&(c.color=i.get()),this.framebuffer=t.framebuffer(c)}var t,n,r;return t=e,(n=[{key:"get",value:function(){return this.framebuffer}},{key:"destroy",value:function(){this.framebuffer.destroy()}},{key:"resize",value:function(e){var t=e.width,n=e.height;this.framebuffer.resize(t,n)}}])&&W(t.prototype,n),r&&W(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),K=n("Qd2C"),X=n.n(K),q=n("Kkar"),Z=n.n(q),J=n("c2re"),Q=n.n(J);function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),re(this,"destroyed",!1),re(this,"uniforms",{}),this.reGl=t;var r=n.pick,i=void 0===r||r,a=n.vs,c=n.fs,u=n.attributes,s=n.uniforms,l=n.primitive,f=n.count,p=n.elements,d=n.depth,h=n.blend,v=n.stencil,y=n.cull,m=n.instances,g={};this.options=n,s&&(this.uniforms=this.extractUniforms(s),Object.keys(s).forEach((function(e){g[e]=t.prop(e)})));var b={};Object.keys(u).forEach((function(e){b[e]=u[e].get()}));var O={attributes:b,frag:c,uniforms:g,vert:a,blend:{},primitive:j[void 0===l?o.gl.TRIANGLES:l]};if(m&&(O.instances=m),f?O.count=f:p&&(O.elements=p.get()),this.initDepthDrawParams({depth:d},O),this.initBlendDrawParams({blend:h},O),this.initStencilDrawParams({stencil:v},O),this.initCullDrawParams({cull:y},O),this.drawCommand=t(O),i){var w=Q()(O);w.blend=te(te({},w.blend),{},{enable:!1}),this.drawPickCommand=t(w)}this.drawParams=O}var t,n,r;return t=e,(n=[{key:"updateAttributesAndElements",value:function(e,t){var n={};if(Object.keys(e).forEach((function(t){n[t]=e[t].get()})),this.drawParams.attributes=n,this.drawParams.elements=t.get(),this.drawCommand=this.reGl(this.drawParams),this.options.pick){var r=Q()(this.drawParams);r.blend=te(te({},r.blend),{},{enable:!1}),this.drawPickCommand=this.reGl(r)}}},{key:"updateAttributes",value:function(e){var t={};if(Object.keys(e).forEach((function(n){t[n]=e[n].get()})),this.drawParams.attributes=t,this.drawCommand=this.reGl(this.drawParams),this.options.pick){var n=Q()(this.drawParams);n.blend=te(te({},n.blend),{},{enable:!1}),this.drawPickCommand=this.reGl(n)}}},{key:"addUniforms",value:function(e){this.uniforms=te(te({},this.uniforms),this.extractUniforms(e))}},{key:"draw",value:function(e,t){if(!this.drawParams.attributes||0!==Object.keys(this.drawParams.attributes).length){var n=te(te({},this.uniforms),this.extractUniforms(e.uniforms||{})),r={};Object.keys(n).forEach((function(e){var t=$(n[e]);"boolean"===t||"number"===t||Array.isArray(n[e])||n[e].BYTES_PER_ELEMENT?r[e]=n[e]:r[e]=n[e].get()})),t?this.drawPickCommand&&this.drawPickCommand(r):this.drawCommand(r)}}},{key:"destroy",value:function(){var e,t;null===(e=this.drawParams)||void 0===e||null===(t=e.elements)||void 0===t||t.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach((function(e){null==e||e.destroy()})),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(e,t){var n=e.depth;n&&(t.depth={enable:void 0===n.enable||!!n.enable,mask:void 0===n.mask||!!n.mask,func:N[n.func||o.gl.LESS],range:n.range||[0,1]})}},{key:"initBlendDrawParams",value:function(e,t){var n=e.blend;if(n){var r=n.enable,i=n.func,a=n.equation,c=n.color,u=void 0===c?[0,0,0,0]:c;t.blend={enable:!!r,func:{srcRGB:D[i&&i.srcRGB||o.gl.SRC_ALPHA],srcAlpha:D[i&&i.srcAlpha||o.gl.SRC_ALPHA],dstRGB:D[i&&i.dstRGB||o.gl.ONE_MINUS_SRC_ALPHA],dstAlpha:D[i&&i.dstAlpha||o.gl.ONE_MINUS_SRC_ALPHA]},equation:{rgb:I[a&&a.rgb||o.gl.FUNC_ADD],alpha:I[a&&a.alpha||o.gl.FUNC_ADD]},color:u}}}},{key:"initStencilDrawParams",value:function(e,t){var n=e.stencil;if(n){var r=n.enable,i=n.mask,a=void 0===i?-1:i,c=n.func,u=void 0===c?{cmp:o.gl.ALWAYS,ref:0,mask:-1}:c,s=n.opFront,l=void 0===s?{fail:o.gl.KEEP,zfail:o.gl.KEEP,zpass:o.gl.KEEP}:s,f=n.opBack,p=void 0===f?{fail:o.gl.KEEP,zfail:o.gl.KEEP,zpass:o.gl.KEEP}:f;t.stencil={enable:!!r,mask:a,func:te(te({},u),{},{cmp:F[u.cmp]}),opFront:{fail:z[l.fail],zfail:z[l.zfail],zpass:z[l.zpass]},opBack:{fail:z[p.fail],zfail:z[p.zfail],zpass:z[p.zpass]}}}}},{key:"initCullDrawParams",value:function(e,t){var n=e.cull;if(n){var r=n.enable,i=n.face,a=void 0===i?o.gl.BACK:i;t.cull={enable:!!r,face:B[a]}}}},{key:"extractUniforms",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){t.extractUniformsRecursively(r,e[r],n,"")})),n}},{key:"extractUniformsRecursively",value:function(e,t,n,r){var o=this;null===t||"number"==typeof t||"boolean"==typeof t||Array.isArray(t)&&"number"==typeof t[0]||X()(t)||""===t||"resize"in t?n["".concat(r&&r+".").concat(e)]=t:(Z()(t)&&Object.keys(t).forEach((function(i){o.extractUniformsRecursively(i,t[i],n,"".concat(r&&r+".").concat(e))})),Array.isArray(t)&&t.forEach((function(t,i){Object.keys(t).forEach((function(a){o.extractUniformsRecursively(a,t[a],n,"".concat(r&&r+".").concat(e,"[").concat(i,"]"))}))})))}}])&&ne(t.prototype,n),r&&ne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ae,ce=function(){function e(t,n){var r,i,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a=!1,(i="isDistroy")in(r=this)?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a;var c=n.data,u=n.type,s=void 0===u?o.gl.UNSIGNED_BYTE:u,l=n.width,f=n.height,p=n.flipY,d=void 0!==p&&p,h=n.format,v=void 0===h?o.gl.RGBA:h,y=n.mipmap,m=void 0!==y&&y,g=n.wrapS,b=void 0===g?o.gl.CLAMP_TO_EDGE:g,O=n.wrapT,w=void 0===O?o.gl.CLAMP_TO_EDGE:O,_=n.aniso,x=void 0===_?0:_,E=n.alignment,S=void 0===E?1:E,C=n.premultiplyAlpha,j=void 0!==C&&C,k=n.mag,N=void 0===k?o.gl.NEAREST:k,I=n.min,D=void 0===I?o.gl.NEAREST:I,F=n.colorSpace,z=void 0===F?o.gl.BROWSER_DEFAULT_WEBGL:F,B=n.x,U=void 0===B?0:B,V=n.y,H=void 0===V?0:V,G=n.copy,W=void 0!==G&&G;this.width=l,this.height=f;var Y={width:l,height:f,type:P[s],format:T[v],wrapS:L[b],wrapT:L[w],mag:A[N],min:A[D],alignment:S,flipY:d,colorSpace:R[z],premultiplyAlpha:j,aniso:x,x:U,y:H,copy:W};c&&(Y.data=c),"number"==typeof m?Y.mipmap=M[m]:"boolean"==typeof m&&(Y.mipmap=m),this.texture=t.texture(Y)}var t,n,r;return t=e,(n=[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.texture(e)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(e){var t=e.width,n=e.height;this.texture.resize(t,n),this.width=t,this.height=n}},{key:"destroy",value:function(){var e;this.isDistroy||null===(e=this.texture)||void 0===e||e.destroy(),this.isDistroy=!0}}])&&ie(t.prototype,n),r&&ie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(){se=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==ue(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function le(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var de=Object(c.injectable)()(ae=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pe(this,"createModel",(function(e){return new oe(t.gl,e)})),pe(this,"createAttribute",(function(e){return new S(t.gl,e)})),pe(this,"createBuffer",(function(e){return new V(t.gl,e)})),pe(this,"createElements",(function(e){return new G(t.gl,e)})),pe(this,"createTexture2D",(function(e){return new ce(t.gl,e)})),pe(this,"createFramebuffer",(function(e){return new Y(t.gl,e)})),pe(this,"useFramebuffer",(function(e,n){t.gl({framebuffer:e?e.get():null})(n)})),pe(this,"clear",(function(e){var n,r=e.color,o=e.depth,i=e.stencil,a=e.framebuffer,c=void 0===a?null:a,u={color:r,depth:o,stencil:i};u.framebuffer=null===c?c:c.get(),null===(n=t.gl)||void 0===n||n.clear(u)})),pe(this,"viewport",(function(e){var n=e.x,r=e.y,o=e.width,i=e.height;t.gl._gl.viewport(n,r,o,i),t.width=o,t.height=i,t.gl._refresh()})),pe(this,"readPixels",(function(e){var n=e.framebuffer,r={x:e.x,y:e.y,width:e.width,height:e.height};return n&&(r.framebuffer=n.get()),t.gl.read(r)})),pe(this,"getViewportSize",(function(){return{width:t.gl._gl.drawingBufferWidth,height:t.gl._gl.drawingBufferHeight}})),pe(this,"getContainer",(function(){return a.jb?t.canvas:null===(e=t.canvas)||void 0===e?void 0:e.parentElement;var e})),pe(this,"getCanvas",(function(){return t.canvas})),pe(this,"getGLContext",(function(){return t.gl._gl})),pe(this,"destroy",(function(){var e,n,r;t.canvas=null,null===(e=t.gl)||void 0===e||null===(n=e._gl)||void 0===n||null===(r=n.getExtension("WEBGL_lose_context"))||void 0===r||r.loseContext(),t.gl.destroy(),t.gl=null}))}var t,n,r,o,i;return t=e,(n=[{key:"init",value:(o=se().mark((function e(t,n,r){var o=this;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.canvas=t,!r){e.next=5;break}this.gl=r,e.next=8;break;case 5:return e.next=7,new Promise((function(e,t){s()({canvas:o.canvas,attributes:{alpha:!0,antialias:n.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:n.preserveDrawingBuffer,stencil:n.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture"],profile:!0,onDone:function(n,r){!n&&r||t(n),e(r)}})}));case 7:this.gl=e.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){le(i,n,r,a,c,"next",e)}function c(e){le(i,n,r,a,c,"throw",e)}a(void 0)}))},function(e,t,n){return i.apply(this,arguments)})},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(e){return!!this.getGLContext().getExtension(e)}},{key:"setState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!0,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setBaseState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!1,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setCustomLayerDefaults",value:function(){var e=this.getGLContext();e.disable(e.CULL_FACE)}},{key:"setDirty",value:function(e){this.isDirty=e}},{key:"getDirty",value:function(){return this.isDirty}}])&&fe(t.prototype,n),r&&fe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||ae;function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ge(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Oe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=t.id,r=t.map,i=t.canvas,c=t.hasBaseMap,u=Object(o.createSceneContainer)();this.container=u,r.setContainer(u,n,i,c),u.bind(o.TYPES.IRendererService).to(de).inSingletonScope(),this.sceneService=u.get(o.TYPES.ISceneService),this.mapService=u.get(o.TYPES.IMapService),this.iconService=u.get(o.TYPES.IIconService),this.fontService=u.get(o.TYPES.IFontService),this.controlService=u.get(o.TYPES.IControlService),this.layerService=u.get(o.TYPES.ILayerService),this.markerService=u.get(o.TYPES.IMarkerService),this.interactionService=u.get(o.TYPES.IInteractionService),this.popupService=u.get(o.TYPES.IPopupService),a.jb?this.sceneService.initMiniScene(t):(this.initComponent(n),this.sceneService.init(t),this.initControl())}var t,n,c;return t=e,(n=[{key:"map",get:function(){return this.mapService.map}},{key:"loaded",get:function(){return this.sceneService.loaded}},{key:"getServiceContainer",value:function(){return this.container}},{key:"getSize",value:function(){return this.mapService.getSize()}},{key:"getMinZoom",value:function(){return this.mapService.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.mapService.getMaxZoom()}},{key:"getType",value:function(){return this.mapService.getType()}},{key:"getMapContainer",value:function(){return this.mapService.getMapContainer()}},{key:"getMapCanvasContainer",value:function(){return this.mapService.getMapCanvasContainer()}},{key:"getMapService",value:function(){return this.mapService}},{key:"exportPng",value:function(e){return this.sceneService.exportPng(e)}},{key:"exportMap",value:function(e){return this.sceneService.exportPng(e)}},{key:"registerRenderService",value:function(e){var t=this;this.sceneService.loaded?new e(this).init():this.on("loaded",(function(){new e(t).init()}))}},{key:"setBgColor",value:function(e){this.mapService.setBgColor(e)}},{key:"addLayer",value:function(e){var t=Object(o.createLayerContainer)(this.container);e.setContainer(t,this.container),this.sceneService.addLayer(e);var n=e.getLayerConfig();if(n){var r=n.mask,a=n.maskfence,c=n.maskColor,u=void 0===c?"#000":c,s=n.maskOpacity,l=void 0===s?0:s;if(r&&a){var f=(new i.a).source(a).shape("fill").style({color:u,opacity:l});this.addMask(f,e.id)}}else console.warn("addLayer should run after scene loaded!")}},{key:"addMask",value:function(e,t){var n=this.getLayer(t);if(n){var r=Object(o.createLayerContainer)(this.container);e.setContainer(r,this.container),n.addMaskLayer(e),this.sceneService.addLayer(e)}else console.warn("parent layer not find!")}},{key:"getPickedLayer",value:function(){return this.layerService.pickedLayerId}},{key:"getLayers",value:function(){return this.layerService.getLayers()}},{key:"getLayer",value:function(e){return this.layerService.getLayer(e)}},{key:"getLayerByName",value:function(e){return this.layerService.getLayerByName(e)}},{key:"removeLayer",value:function(e,t){this.layerService.remove(e,t)}},{key:"removeAllLayer",value:function(){this.layerService.removeAllLayers()}},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(e){this.layerService.setEnableRender(e)}},{key:"addIconFont",value:function(e,t){this.fontService.addIconFont(e,t)}},{key:"addIconFonts",value:function(e){var t=this;e.forEach((function(e){var n=me(e,2),r=n[0],o=n[1];t.fontService.addIconFont(r,o)}))}},{key:"addFontFace",value:function(e,t){this.sceneService.addFontFace(e,t)}},{key:"addImage",value:function(e,t){a.jb?this.iconService.addImageMini(e,t,this.sceneService):this.iconService.addImage(e,t)}},{key:"hasImage",value:function(e){return this.iconService.hasImage(e)}},{key:"removeImage",value:function(e){this.iconService.removeImage(e)}},{key:"addIconFontGlyphs",value:function(e,t){this.fontService.addIconGlyphs(t)}},{key:"addControl",value:function(e){this.controlService.addControl(e,this.container)}},{key:"removeControl",value:function(e){this.controlService.removeControl(e)}},{key:"getControlByName",value:function(e){return this.controlService.getControlByName(e)}},{key:"addMarker",value:function(e){this.markerService.addMarker(e)}},{key:"addMarkerLayer",value:function(e){this.markerService.addMarkerLayer(e)}},{key:"removeMarkerLayer",value:function(e){this.markerService.removeMarkerLayer(e)}},{key:"removeAllMakers",value:function(){this.markerService.removeAllMarkers()}},{key:"addPopup",value:function(e){this.popupService.addPopup(e)}},{key:"on",value:function(e,t){-1===o.SceneEventList.indexOf(e)?this.mapService.on(e,t):this.sceneService.on(e,t)}},{key:"once",value:function(e,t){-1===o.SceneEventList.indexOf(e)?this.mapService.once(e,t):this.sceneService.once(e,t)}},{key:"off",value:function(e,t){-1===o.SceneEventList.indexOf(e)?this.mapService.off(e,t):this.sceneService.off(e,t)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(e){return this.mapService.getCenter(e)}},{key:"setCenter",value:function(e,t){return this.mapService.setCenter(e,t)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(e){return this.mapService.setPitch(e)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(e){this.mapService.setRotation(e)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(e){this.mapService.panTo(e)}},{key:"panBy",value:function(e,t){this.mapService.panBy(e,t)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(e){this.mapService.setZoom(e)}},{key:"fitBounds",value:function(e,t){var n=this.sceneService.getSceneConfig(),r=n.fitBoundsOptions,o=n.animate;this.mapService.fitBounds(e,t||ve(ve({},r),{},{animate:o}))}},{key:"setZoomAndCenter",value:function(e,t){this.mapService.setZoomAndCenter(e,t)}},{key:"setMapStyle",value:function(e){this.mapService.setMapStyle(e)}},{key:"setMapStatus",value:function(e){this.mapService.setMapStatus(e)}},{key:"pixelToLngLat",value:function(e){return this.mapService.pixelToLngLat(e)}},{key:"lngLatToPixel",value:function(e){return this.mapService.lngLatToPixel(e)}},{key:"containerToLngLat",value:function(e){return this.mapService.containerToLngLat(e)}},{key:"lngLatToContainer",value:function(e){return this.mapService.lngLatToContainer(e)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(e,t){this.container.bind(o.TYPES.IPostProcessingPass).to(e).whenTargetNamed(t)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(e){this.controlService.init({container:a.f.getContainer(e)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var e=this.sceneService.getSceneConfig(),t=e.logoVisible,n=e.logoPosition;t&&this.addControl(new r.c({position:n}))}}])&&be(t.prototype,n),c&&be(t,c),Object.defineProperty(t,"prototype",{writable:!1}),e}()},"+FXs":function(e,t,n){"use strict";e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},"+Gah":function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="ExclamationCircleFilled";t.a=o.forwardRef(c)},"+Hko":function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="ExclamationCircleOutlined";t.a=o.forwardRef(c)},"+Jg7":function(e,t,n){},"+KLJ":function(e,t,n){"use strict";var r=n("cxan"),o=n("zygG"),i=n("zjfJ"),a=n("CZO1"),c=n("5ouU"),u=n("+RZ0"),s=n("r8k/"),l=n("Sp6C"),f=n("+Gah"),p=n("+Hko"),d=n("dRg2"),h=n("TyQ8"),v=n("O94r"),y=n.n(v),m=n("B5SY"),g=n("ERkP"),b=n("H84U"),O=n("RqAY"),w=n("0n0R"),_=n("9fIP"),x=n("MMYH"),E=n("8K1b"),S=n("AqVP"),C=function(e){Object(E.a)(n,e);var t=Object(S.a)(n);function n(){var e;return Object(_.a)(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return Object(x.a)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){var e=this.props,t=e.message,n=e.description,r=e.children,o=this.state,i=o.error,a=o.info,c=a&&a.componentStack?a.componentStack:null,u=void 0===t?(i||"").toString():t,s=void 0===n?c:n;return i?g.createElement(L,{type:"error",message:u,description:g.createElement("pre",null,s)}):r}}]),n}(g.Component),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},k={success:a.a,info:d.a,error:u.a,warning:f.a},P={success:c.a,info:h.a,error:s.a,warning:p.a},T=function(e){var t=e.description,n=e.icon,r=e.prefixCls,o=e.type,a=(t?P:k)[o]||null;return n?Object(w.c)(n,g.createElement("span",{className:"".concat(r,"-icon")},n),(function(){return{className:y()("".concat(r,"-icon"),Object(i.a)({},n.props.className,n.props.className))}})):g.createElement(a,{className:"".concat(r,"-icon")})},M=function(e){var t=e.isClosable,n=e.closeText,r=e.prefixCls,o=e.closeIcon,i=e.handleClose;return t?g.createElement("button",{type:"button",onClick:i,className:"".concat(r,"-close-icon"),tabIndex:0},n?g.createElement("span",{className:"".concat(r,"-close-text")},n):o):null},A=function(e){var t,n=e.description,a=e.prefixCls,c=e.message,u=e.banner,s=e.className,f=void 0===s?"":s,p=e.style,d=e.onMouseEnter,h=e.onMouseLeave,v=e.onClick,w=e.afterClose,_=e.showIcon,x=e.closable,E=e.closeText,S=e.closeIcon,C=void 0===S?g.createElement(l.a,null):S,k=e.action,P=j(e,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),A=g.useState(!1),L=Object(o.a)(A,2),R=L[0],N=L[1],I=g.useRef(),D=g.useContext(b.b),F=D.getPrefixCls,z=D.direction,B=F("alert",a),U=function(e){var t;N(!0),null===(t=P.onClose)||void 0===t||t.call(P,e)},V=!!E||x,H=function(){var e=P.type;return void 0!==e?e:u?"warning":"info"}(),G=!(!u||void 0!==_)||_,W=y()(B,"".concat(B,"-").concat(H),(t={},Object(i.a)(t,"".concat(B,"-with-description"),!!n),Object(i.a)(t,"".concat(B,"-no-icon"),!G),Object(i.a)(t,"".concat(B,"-banner"),!!u),Object(i.a)(t,"".concat(B,"-rtl"),"rtl"===z),t),f),Y=Object(O.a)(P);return g.createElement(m.b,{visible:!R,motionName:"".concat(B,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(e){return{maxHeight:e.offsetHeight}},onLeaveEnd:w},(function(e){var t=e.className,o=e.style;return g.createElement("div",Object(r.a)({ref:I,"data-show":!R,className:y()(W,t),style:Object(r.a)(Object(r.a)({},p),o),onMouseEnter:d,onMouseLeave:h,onClick:v,role:"alert"},Y),G?g.createElement(T,{description:n,icon:P.icon,prefixCls:B,type:H}):null,g.createElement("div",{className:"".concat(B,"-content")},c?g.createElement("div",{className:"".concat(B,"-message")},c):null,n?g.createElement("div",{className:"".concat(B,"-description")},n):null),k?g.createElement("div",{className:"".concat(B,"-action")},k):null,g.createElement(M,{isClosable:!!V,closeText:E,prefixCls:B,closeIcon:C,handleClose:U}))}))};A.ErrorBoundary=C;var L=t.a=A},"+L6B":function(e,t,n){"use strict";n("EFp3"),n("qCM6")},"+NSP":function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.FUNC_ADD=32774]="FUNC_ADD",e[e.BLEND_EQUATION=32777]="BLEND_EQUATION",e[e.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",e[e.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",e[e.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",e[e.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",e[e.MAX_EXT=32776]="MAX_EXT",e[e.MIN_EXT=32775]="MIN_EXT",e[e.BLEND_DST_RGB=32968]="BLEND_DST_RGB",e[e.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",e[e.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",e[e.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",e[e.BLEND_COLOR=32773]="BLEND_COLOR",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",e[e.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.BUFFER_SIZE=34660]="BUFFER_SIZE",e[e.BUFFER_USAGE=34661]="BUFFER_USAGE",e[e.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK",e[e.CULL_FACE=2884]="CULL_FACE",e[e.BLEND=3042]="BLEND",e[e.DITHER=3024]="DITHER",e[e.STENCIL_TEST=2960]="STENCIL_TEST",e[e.DEPTH_TEST=2929]="DEPTH_TEST",e[e.SCISSOR_TEST=3089]="SCISSOR_TEST",e[e.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",e[e.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",e[e.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",e[e.NO_ERROR=0]="NO_ERROR",e[e.INVALID_ENUM=1280]="INVALID_ENUM",e[e.INVALID_VALUE=1281]="INVALID_VALUE",e[e.INVALID_OPERATION=1282]="INVALID_OPERATION",e[e.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",e[e.CW=2304]="CW",e[e.CCW=2305]="CCW",e[e.LINE_WIDTH=2849]="LINE_WIDTH",e[e.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",e[e.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",e[e.CULL_FACE_MODE=2885]="CULL_FACE_MODE",e[e.FRONT_FACE=2886]="FRONT_FACE",e[e.DEPTH_RANGE=2928]="DEPTH_RANGE",e[e.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",e[e.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",e[e.DEPTH_FUNC=2932]="DEPTH_FUNC",e[e.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",e[e.STENCIL_FUNC=2962]="STENCIL_FUNC",e[e.STENCIL_FAIL=2964]="STENCIL_FAIL",e[e.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",e[e.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",e[e.STENCIL_REF=2967]="STENCIL_REF",e[e.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",e[e.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",e[e.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",e[e.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",e[e.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",e[e.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",e[e.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",e[e.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",e[e.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",e[e.VIEWPORT=2978]="VIEWPORT",e[e.SCISSOR_BOX=3088]="SCISSOR_BOX",e[e.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",e[e.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",e[e.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",e[e.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",e[e.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",e[e.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",e[e.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",e[e.RED_BITS=3410]="RED_BITS",e[e.GREEN_BITS=3411]="GREEN_BITS",e[e.BLUE_BITS=3412]="BLUE_BITS",e[e.ALPHA_BITS=3413]="ALPHA_BITS",e[e.DEPTH_BITS=3414]="DEPTH_BITS",e[e.STENCIL_BITS=3415]="STENCIL_BITS",e[e.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",e[e.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",e[e.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",e[e.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",e[e.SAMPLES=32937]="SAMPLES",e[e.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",e[e.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",e[e.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",e[e.DONT_CARE=4352]="DONT_CARE",e[e.FASTEST=4353]="FASTEST",e[e.NICEST=4354]="NICEST",e[e.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER",e[e.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",e[e.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",e[e.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",e[e.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",e[e.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",e[e.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",e[e.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",e[e.SHADER_TYPE=35663]="SHADER_TYPE",e[e.DELETE_STATUS=35712]="DELETE_STATUS",e[e.LINK_STATUS=35714]="LINK_STATUS",e[e.VALIDATE_STATUS=35715]="VALIDATE_STATUS",e[e.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",e[e.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",e[e.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",e[e.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",e[e.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP",e[e.VENDOR=7936]="VENDOR",e[e.RENDERER=7937]="RENDERER",e[e.VERSION=7938]="VERSION",e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",e[e.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",e[e.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",e[e.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",e[e.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE=5890]="TEXTURE",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",e[e.TEXTURE0=33984]="TEXTURE0",e[e.TEXTURE1=33985]="TEXTURE1",e[e.TEXTURE2=33986]="TEXTURE2",e[e.TEXTURE3=33987]="TEXTURE3",e[e.TEXTURE4=33988]="TEXTURE4",e[e.TEXTURE5=33989]="TEXTURE5",e[e.TEXTURE6=33990]="TEXTURE6",e[e.TEXTURE7=33991]="TEXTURE7",e[e.TEXTURE8=33992]="TEXTURE8",e[e.TEXTURE9=33993]="TEXTURE9",e[e.TEXTURE10=33994]="TEXTURE10",e[e.TEXTURE11=33995]="TEXTURE11",e[e.TEXTURE12=33996]="TEXTURE12",e[e.TEXTURE13=33997]="TEXTURE13",e[e.TEXTURE14=33998]="TEXTURE14",e[e.TEXTURE15=33999]="TEXTURE15",e[e.TEXTURE16=34e3]="TEXTURE16",e[e.TEXTURE17=34001]="TEXTURE17",e[e.TEXTURE18=34002]="TEXTURE18",e[e.TEXTURE19=34003]="TEXTURE19",e[e.TEXTURE20=34004]="TEXTURE20",e[e.TEXTURE21=34005]="TEXTURE21",e[e.TEXTURE22=34006]="TEXTURE22",e[e.TEXTURE23=34007]="TEXTURE23",e[e.TEXTURE24=34008]="TEXTURE24",e[e.TEXTURE25=34009]="TEXTURE25",e[e.TEXTURE26=34010]="TEXTURE26",e[e.TEXTURE27=34011]="TEXTURE27",e[e.TEXTURE28=34012]="TEXTURE28",e[e.TEXTURE29=34013]="TEXTURE29",e[e.TEXTURE30=34014]="TEXTURE30",e[e.TEXTURE31=34015]="TEXTURE31",e[e.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",e[e.REPEAT=10497]="REPEAT",e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",e[e.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",e[e.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",e[e.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",e[e.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",e[e.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",e[e.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",e[e.COMPILE_STATUS=35713]="COMPILE_STATUS",e[e.LOW_FLOAT=36336]="LOW_FLOAT",e[e.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",e[e.HIGH_FLOAT=36338]="HIGH_FLOAT",e[e.LOW_INT=36339]="LOW_INT",e[e.MEDIUM_INT=36340]="MEDIUM_INT",e[e.HIGH_INT=36341]="HIGH_INT",e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.RENDERBUFFER=36161]="RENDERBUFFER",e[e.RGBA4=32854]="RGBA4",e[e.RGB5_A1=32855]="RGB5_A1",e[e.RGB565=36194]="RGB565",e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX=6401]="STENCIL_INDEX",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",e[e.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",e[e.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",e[e.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",e[e.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",e[e.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",e[e.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",e[e.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",e[e.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",e[e.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",e[e.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",e[e.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",e[e.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",e[e.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",e[e.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",e[e.NONE=0]="NONE",e[e.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",e[e.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",e[e.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",e[e.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",e[e.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",e[e.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",e[e.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",e[e.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",e[e.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",e[e.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",e[e.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",e[e.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",e[e.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",e[e.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL"}(r||(r={}))},"+OwM":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.id=void 0;var r=0;t.id=function(){return r++}},"+RZ0":function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="CloseCircleFilled";t.a=o.forwardRef(c)},"+WmY":function(e,t,n){var r=n("BkAM");e.exports=r((function(e){return null==e}))},"+ZX+":function(e,t,n){"use strict";(function(e){n("6JDI"),n("nndn");var r=n("dEMF"),o=n("1TxV"),i=n("Komq");function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return s(this,e,t,n)}function s(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),o=(e=c(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|d(t.length);return 0===(e=c(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?c(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=c(e,t<0?0:0|d(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|d(t.length);e=c(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,a=1,c=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,c/=2,u/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<c;i++)if(s(e,i)===s(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>c&&(n=c-u),i=n;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(s(e,i+p)!==s(t,p)){f=!1;break}if(f)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var c=parseInt(t.substr(2*a,2),16);if(isNaN(c))return a;e[n+a]=c}return a}function O(e,t,n,r){return V(B(t,e.length-n),e,n,r)}function w(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return w(e,t,n,r)}function x(e,t,n,r){return V(U(t),e,n,r)}function E(e,t,n,r){return V(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,c,u,s=e[o],l=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(l=s);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&s)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&s)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],c=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(u=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return s(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?c(e,t):void 0!==n?"string"==typeof r?c(e,t).fill(n,r):c(e,t).fill(n):c(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):v.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),s=this.slice(r,o),l=e.slice(t,n),f=0;f<c;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=z(e[i]);return o}function T(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function M(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function N(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,i){return i||N(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,i){return i||N(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||A(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||A(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);A(this,e,t,n,o-1,-o)}var i=0,a=1,c=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===c&&0!==this[t+i-1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);A(this,e,t,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=u.isBuffer(e)?e:B(new u(e,r).toString()),c=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%c]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n("fRV1"))},"+a2B":function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},"+cKO":function(e,t,n){"use strict";n.r(t);var r=n("ERkP"),o=n.n(r),i=n("Wbzz"),a=n("4wDe"),c=n("zjfJ");function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Object(c.a)(e,t,n[t])}))}return e}var s=n("9fIP"),l=n("MMYH"),f=n("K/z8"),p=n("sRHE"),d=n("pWxA"),h=n("8K1b"),v={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},y=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(s.a)(this,e),this.init(t,n)}return Object(l.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||v,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,u({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),m=function(){function e(){Object(s.a)(this,e),this.observers={}}return Object(l.a)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function g(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function b(e){return null==e?"":""+e}function O(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function w(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function _(e,t,n){var r=w(e,t,Object);r.obj[r.k]=n}function x(e,t){var n=w(e,t),r=n.obj,o=n.k;if(r)return r[o]}function E(e,t,n){var r=x(e,n);return void 0!==r?r:x(t,n)}function S(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):S(e[r],t[r],n):e[r]=t[r]);return e}function C(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var j={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function k(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return j[e]})):e}var P="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,T=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Object(s.a)(this,t),n=Object(f.a)(this,Object(p.a)(t).call(this)),P&&m.call(Object(d.a)(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return Object(h.a)(t,e),Object(l.a)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),x(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),_(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var c=x(this.data,a)||{};r?S(c,n,o):c=u({},c,n),_(this.data,a,c),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?u({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(m),M={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},A={},L=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(s.a)(this,t),n=Object(f.a)(this,Object(p.a)(t).call(this)),P&&m.call(Object(d.a)(n)),O(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Object(d.a)(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=y.create("translator"),n}return Object(h.a)(t,e),Object(l.a)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==Object(a.a)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],n),s=c.key,l=c.namespaces,f=l[l.length-1],p=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(d){var h=n.nsSeparator||this.options.nsSeparator;return f+h+s}return s}var v=this.resolve(e,n),y=v&&v.res,m=v&&v.usedKey||s,g=v&&v.exactUsedKey||s,b=Object.prototype.toString.apply(y),O=["[object Number]","[object Function]","[object RegExp]"],w=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof y&&"boolean"!=typeof y&&"number"!=typeof y;if(_&&y&&x&&O.indexOf(b)<0&&("string"!=typeof w||"[object Array]"!==b)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,y,n):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(i){var E="[object Array]"===b,S=E?[]:{},C=E?g:m;for(var j in y)if(Object.prototype.hasOwnProperty.call(y,j)){var k="".concat(C).concat(i).concat(j);S[j]=this.translate(k,u({},n,{joinArrays:!1,ns:l})),S[j]===k&&(S[j]=y[j])}y=S}}else if(_&&"string"==typeof w&&"[object Array]"===b)(y=y.join(w))&&(y=this.extendTranslation(y,e,n,r));else{var P=!1,T=!1,M=void 0!==n.count&&"string"!=typeof n.count,A=t.hasDefaultValue(n),L=M?this.pluralResolver.getSuffix(p,n.count):"",R=n["defaultValue".concat(L)]||n.defaultValue;!this.isValidLookup(y)&&A&&(P=!0,y=R),this.isValidLookup(y)||(T=!0,y=s);var N=A&&R!==y&&this.options.updateMissing;if(T||P||N){if(this.logger.log(N?"updateKey":"missingKey",p,f,s,N?R:y),i){var I=this.resolve(s,u({},n,{keySeparator:!1}));I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var z=0;z<F.length;z++)D.push(F[z]);else"all"===this.options.saveMissingTo?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);var B=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,f,t,N?r:y,N,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,f,t,N?r:y,N,n),o.emit("missingKey",e,f,t,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?D.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){B([e],s+t,n["defaultValue".concat(t)]||R)}))})):B(D,s,R))}y=this.extendTranslation(y,e,n,v,r),T&&y===s&&this.options.appendNamespaceToMissingKey&&(y="".concat(f,":").concat(s)),T&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(y))}return y}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(u({},n,{interpolation:u({},this.options.interpolation,n.interpolation)}));var a,c=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(c){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=u({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),c){var f=e.match(this.interpolator.nestingRegexp);a<(f&&f.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var p=n.postProcess||this.options.postProcess,d="string"==typeof p?[p]:p;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=M.handle(d,e,t,this.options&&this.options.postProcessPassResolved?u({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,c),s=u.key;n=s;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==c.count&&"string"!=typeof c.count,p=void 0!==c.context&&"string"==typeof c.context&&""!==c.context,d=c.lngs?c.lngs:a.languageUtils.toResolveHierarchy(c.lng||a.language,c.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!A["".concat(d[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(A["".concat(d[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,u,l=s,d=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(d,s,n,e,c);else f&&(i=a.pluralResolver.getSuffix(n,c.count)),f&&p&&d.push(l+i),p&&d.push(l+="".concat(a.options.contextSeparator).concat(c.context)),f&&d.push(l+=i);for(;u=d.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,c))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),t}(m);function R(e){return e.charAt(0).toUpperCase()+e.slice(1)}var N=function(){function e(t){Object(s.a)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return Object(l.a)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=R(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=R(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=R(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),I=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],D={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function F(){var e={};return I.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:D[t.fc]}}))})),e}var z=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(s.a)(this,e),this.languageUtils=t,this.options=n,this.logger=y.create("pluralResolver"),this.rules=F()}return Object(l.a)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),B=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(s.a)(this,e),this.logger=y.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Object(l.a)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:k,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?C(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?C(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?C(t.nestingPrefix):t.nestingPrefixEscaped||C("$t("),this.nestingSuffix=t.nestingSuffix?C(t.nestingSuffix):t.nestingSuffixEscaped||C(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,c=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(c.formatSeparator)<0){var o=E(t,u,e);return c.alwaysFormat?c.format(o,void 0,n):o}var i=e.split(c.formatSeparator),a=i.shift().trim(),s=i.join(c.formatSeparator).trim();return c.format(E(t,u,a),s,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return s(e)}},{regex:this.regexp,safeValue:function(e){return c.escapeValue?s(c.escape(e)):s(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(p){i=o[0];continue}c.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||c.useRawValueToEscape||(i=b(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=c.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=u({},i);function c(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=u({},t,a))}catch(i){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),i),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=f.shift(),s=f,l=!0}if((r=t(c.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=b(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var U=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(s.a)(this,t),o=Object(f.a)(this,Object(p.a)(t).call(this)),P&&m.call(Object(d.a)(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=y.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return Object(h.a)(t,e),Object(l.a)(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],c=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var c="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[c]=2:o.state[c]<0||(1===o.state[c]?a.indexOf(c)<0&&a.push(c):(o.state[c]=1,r=!1,a.indexOf(c)<0&&a.push(c),i.indexOf(c)<0&&i.push(c),u.indexOf(t)<0&&u.push(t)))})),r||c.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:c,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,c,u,s,l,f;r=n.loaded,c=i,s=w(r,[o],Object),l=s.obj,f=s.k,l[f]=l[f]||[],u&&(l[f]=l[f].concat(c)),u||l[f].push(c),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(c,u){c&&u&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(c,u)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,u({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(m);function V(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Object(a.a)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Object(a.a)(e[2])||"object"===Object(a.a)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function H(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function G(){}var W=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Object(s.a)(this,t),e=Object(f.a)(this,Object(p.a)(t).call(this)),P&&m.call(Object(d.a)(e)),e.options=H(n),e.services={},e.logger=y,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),Object(f.a)(e,Object(d.a)(e));setTimeout((function(){e.init(n,r)}),0)}return e}return Object(h.a)(t,e),Object(l.a)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=u({},V(),this.options,H(t)),this.format=this.options.interpolation.format,n||(n=G),!this.options.isClone){this.modules.logger?y.init(r(this.modules.logger),this.options):y.init(null,this.options);var o=new N(this.options);this.store=new T(this.options.resources,this.options);var i=this.services;i.logger=y,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new z(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new B(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new U(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new L(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=g(),f=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=g();return e||(e=this.languages),t||(t=this.options.ns),n||(n=G),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&M.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=g();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o;if("object"!==Object(a.a)(r)){for(var i=arguments.length,c=new Array(i>2?i-2:0),s=2;s<i;s++)c[s-2]=arguments[s];o=n.options.overloadTranslationOptionHandler([t,r].concat(c))}else o=u({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var c=n.precheck(this,a);if(void 0!==c)return c}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=g();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=g();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G,o=u({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=u({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new L(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(m)),Y=n("snMe"),K=n("PChC"),X=n("Vgyk"),q=n("wPmp"),Z=(n("2qtc"),n("kLXV")),J=(n("Q9mQ"),n("diRs")),Q=(n("+L6B"),n("2/Rp")),$=(n("qVdP"),n("jsC+")),ee=(n("lUTK"),n("BvKs")),te=(n("miYZ"),n("tsqr")),ne=(n("OaEy"),n("2fM7")),re=n("Tc2z"),oe=n("GRoC"),ie=n("O94r"),ae=n.n(ie),ce=n("Tr4L"),ue=n("Czhu"),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},le=n("vspj"),fe=function(e,t){return r.createElement(le.a,Object(ue.a)(Object(ue.a)({},e),{},{ref:t,icon:se}))};fe.displayName="MenuOutlined";var pe=r.forwardRef(fe),de=n("sxM7"),he=n("yiAd"),ve=n("Szl1"),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 019.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 006.4-2.6 9 9 0 002.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 01-36 35.9z"}}]},name:"wechat",theme:"outlined"},me=function(e,t){return r.createElement(le.a,Object(ue.a)(Object(ue.a)({},e),{},{ref:t,icon:ye}))};me.displayName="WechatOutlined";var ge=r.forwardRef(me),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},Oe=function(e,t){return r.createElement(le.a,Object(ue.a)(Object(ue.a)({},e),{},{ref:t,icon:be}))};Oe.displayName="GithubOutlined";var we=r.forwardRef(Oe),_e=n("bywK"),xe=n.n(_e);function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){Object(c.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(p.a)(e);if(t){var o=Object(p.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var je=function(e){Object(h.a)(r,e);var t=Ce(r);function r(e){var n;return Object(s.a)(this,r),(n=t.call(this,e)).$=o.a.createRef(),n._=o.a.createRef(),n}return Object(l.a)(r,[{key:"render",value:function(){return o.a.createElement("span",{ref:this.$},o.a.createElement("a",Se(Se({},this.props),{},{ref:this._}),this.props.children))}},{key:"componentDidMount",value:function(){this.paint()}},{key:"getSnapshotBeforeUpdate",value:function(){return this.reset(),null}},{key:"componentDidUpdate",value:function(){this.paint()}},{key:"componentWillUnmount",value:function(){this.reset()}},{key:"paint",value:function(){var e=this,t=this.$.current.appendChild(document.createElement("span"));Promise.resolve().then(n.bind(null,"xbhO")).then((function(n){var r=n.render;null!=e._.current&&r(t.appendChild(e._.current),(function(e){try{t.parentNode.replaceChild(e,t)}catch(t){}}))}))}},{key:"reset",value:function(){this.$.current.replaceChild(this._.current,this.$.current.lastChild)}}]),r}(r.PureComponent),ke=n("xynK"),Pe=n("3GoW"),Te=n.n(Pe);var Me=function(e){var t=e.docsearchOptions,i=Object(ce.a)(),a=i.t,c=i.i18n;return Object(r.useEffect)((function(){"undefined"!=typeof window&&n.e(0).then(n.t.bind(null,"e3Ei",7)).then((function(e){!function(e){var t=e.docsearch,n=e.lang,r=e.docsearchOptions||{},o=r.apiKey,i=void 0===o?"194b1be7fb1254c787f4e036912af3eb":o,a=r.indexName;t({apiKey:i,indexName:void 0===a?"antv":a,inputSelector:".".concat(Te.a.input),algoliaOptions:{facetFilters:["tags:".concat(n)]},transformData:function(e){return e.forEach((function(e){e.url=e.url.replace("g2.antv.vision",window.location.host),e.url=e.url.replace("g6.antv.vision",window.location.host),e.url=e.url.replace("f2.antv.vision",window.location.host),e.url=e.url.replace("l7.antv.vision",window.location.host),e.url=e.url.replace("x6.antv.vision",window.location.host),e.url=e.url.replace("g2plot.antv.vision",window.location.host),e.url=e.url.replace("graphin.antv.vision",window.location.host),e.url=e.url.replace("https:",window.location.protocol),e.url=e.url.replace("#gatsby-focus-wrapper","")})),e},debug:!1})}({docsearch:e.default,lang:c.language,docsearchOptions:t})}))}),[]),o.a.createElement("label",{className:Te.a.search,htmlFor:"search"},o.a.createElement(ke.a,{className:Te.a.icon}),o.a.createElement("input",{className:Te.a.input,id:"search",placeholder:a("搜索…")}))},Ae=n("Lk4S"),Le=n.n(Ae),Re=function(e){return!e.startsWith("http")||e.includes("gitee.io")||e.includes("antv.vision")?"_self":"_blank"},Ne=function(e){var t,n,r=e.name,i=e.icon,a=e.url,c=void 0===a?"":a,u=e.slogan,s=e.description,l=e.links,f=void 0===l?{}:l,p=e.style,d=e.language,h=Object(ce.a)().t;return o.a.createElement("li",{className:Le.a.product,style:p},o.a.createElement("a",{href:c,target:Re(c)},o.a.createElement("img",{alt:r,src:i})),o.a.createElement("div",{className:Le.a.productContent},o.a.createElement("a",{href:c,target:Re(c)},o.a.createElement("h4",null,r,o.a.createElement("span",{className:Le.a.productSlogan,style:{opacity:"en"===d?.7:""}},u))),o.a.createElement("div",{className:Le.a.productDescription},s),o.a.createElement("div",{className:Le.a.productLinks},f.home&&o.a.createElement("a",{href:f.home.url,target:Re(f.home.url||""),key:f.home.url},null!==(t=f.home.title)&&void 0!==t?t:h("产品首页")),f.example&&o.a.createElement("a",{href:f.example.url,target:Re(f.example.url||""),key:f.example.url},null!==(n=f.example.title)&&void 0!==n?n:h("图表示例")))))},Ie=n("h4um"),De=n.n(Ie),Fe=(n("gCGT"),{icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z"}}]},name:"pie-chart",theme:"outlined"}),ze=function(e,t){return r.createElement(le.a,Object(ue.a)(Object(ue.a)({},e),{},{ref:t,icon:Fe}))};ze.displayName="PieChartOutlined";var Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z"}}]},name:"read",theme:"outlined"},Ue=function(e,t){return r.createElement(le.a,Object(ue.a)(Object(ue.a)({},e),{},{ref:t,icon:Be}))};Ue.displayName="ReadOutlined";var Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},He=function(e,t){return r.createElement(le.a,Object(ue.a)(Object(ue.a)({},e),{},{ref:t,icon:Ve}))};He.displayName="HistoryOutlined";var Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-616-64h536c4.4 0 8-3.6 8-8V284c0-7.2-8.7-10.7-13.7-5.7L592 488.6l-125.4-124a8.03 8.03 0 00-11.3 0l-189 189.6a7.87 7.87 0 00-2.3 5.6V720c0 4.4 3.6 8 8 8z"}}]},name:"area-chart",theme:"outlined"},We=function(e,t){return r.createElement(le.a,Object(ue.a)(Object(ue.a)({},e),{},{ref:t,icon:Ge}))};We.displayName="AreaChartOutlined";var Ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.8-8.1-194.9-3-195-3 .1 0 87.4 55.6 52.4 154.7-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6zm-204.1 334c-10.6 0-26.2.1-46.8.3l-23.6.2-17.8 15.5c-47.1 41-104.4 71.5-171.4 87.6-52.5 12.6-110 16.2-172.7 9.6 18-20.5 36.5-41.6 55.4-63.1 92-104.6 173.8-197.5 236.9-268.5l1.4-1.4 1.3-1.5c4.1-4.6 20.6-23.3 24.7-28.1 9.7-11.1 17.3-19.9 24.5-28.6 30.7-36.7 52.2-67.8 69-102.2l1.6-3.3 1.2-3.4c13.7-38.8 15.4-76.9 6.2-112.8 22.5.7 46.5 1.9 71.7 3.6 33.3 2.3 55.5 12.9 71.1 29.2 5.8 6 10.2 12.5 13.4 18.7 1 2 1.7 3.6 2.3 5l5 17.7c-15.7 34.5-19.9 73.3-11.4 107.2 3 11.8 6.9 22.4 12.3 34.4 2.1 4.7 9.5 20.1 11 23.3 10.3 22.7 15.4 43 16.7 78.7 3.3 94.6-82.7 181.9-182 181.9z"}}]},name:"yuque",theme:"outlined"},Ke=function(e,t){return r.createElement(le.a,Object(ue.a)(Object(ue.a)({},e),{},{ref:t,icon:Ye}))};Ke.displayName="YuqueOutlined";var Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"},qe=function(e,t){return r.createElement(le.a,Object(ue.a)(Object(ue.a)({},e),{},{ref:t,icon:Xe}))};qe.displayName="DingdingOutlined";var Ze=n("Jg/A");function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){$e(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var et=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},tt=(et("basic","extension","ecology"),et("home","example","api"),et("basic","extension","mobile","ecology"),[{type:"basic",name:"标准版基础产品"},{type:"extension",name:"标准版扩展产品"},{type:"mobile",name:"移动定制(F版)产品"},{type:"ecology",name:"周边生态"}]);var nt=n("9Ljn");function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ot(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var it=function(e){var t,n,r,i=e.show,a=e.language,c=e.className,u=Object(ce.a)(),s=u.t,l=u.i18n,f=rt(Object(nt.a)(),1)[0],p=rt(o.a.useState([]),2),d=p[0],h=p[1],v="zh"===l.language?"zh":"en";return o.a.useEffect((function(){(function(e){var t=e.language,n=e.isChinaMirrorHost;return fetch("https://render.alipay.com/p/h5data/antv-site-datas_site-products-h5data.json").then((function(e){return e.json()})).then((function(e){return e.filter((function(e){return e.lang===t})).map((function(e){var t="string"==typeof e.links?JSON.parse(e.links):Qe({},e.links),r={};return De()(t,(function(e,t){var o=(null==e?void 0:e.url)||"";if(n){var i=o.match(/([http|https]):\/\/(.*)\.antv\.vision/);i&&i[2]&&(o=o.replace("".concat(i[2],".antv.vision"),"antv-".concat(i[2],".gitee.io")))}r[t]=Qe(Qe({},e),{},{url:o})})),Qe(Qe({},e),{},{links:t})}))}))})({language:v,isChinaMirrorHost:f}).then((function(e){h(e)}))}),[v,f]),o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:ae()(Le.a.products,c,(t={},n=Le.a.show,r=!!i,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))},o.a.createElement("div",{className:Le.a.container},tt.map((function(e,t){var n=e.name,r=e.type;return o.a.createElement(o.a.Fragment,{key:t},o.a.createElement("h3",null,s(n)),o.a.createElement("ul",null,d.filter((function(e){return e.category===r})).map((function(e){var t,n;return o.a.createElement(Ne,{key:e.title,name:e.title,slogan:e.slogan||"",description:e.description,url:null===(t=e.links)||void 0===t||null===(n=t.home)||void 0===n?void 0:n.url,icon:e.icon,links:e.links,language:a||l.language})}))))})))),o.a.createElement("div",{className:Le.a.mask}))},at=n("Pu0A"),ct=n.n(at),ut=n("qXKs"),st=n.n(ut),lt=n("Ato4"),ft=n.n(lt),pt=function(){return o.a.createElement("i",{className:ft.a.export},o.a.createElement(st.a,null))},dt=n("FPB1"),ht=n.n(dt);var vt=function(e){var t=e.navs,n=void 0===t?[]:t,r=e.path,a=Object(ce.a)().i18n;return o.a.createElement(o.a.Fragment,null,n.map((function(e){var t,c,u,s,l=e.slug.startsWith("http")?e.slug:"/".concat(a.language,"/").concat(e.slug),f="string"!=typeof(t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.find((function(e){return e.slug===t}))||{title:{}}}(n,e.slug).title[a.language])?"":t.charAt(0).toUpperCase()+t.slice(1),p=ae()("header-menu-item-active",(c={},u=ht.a.activeItem,s=r.startsWith(l)||ct()(r.split("/").slice(0,4),l.split("/").slice(0,4)),u in c?Object.defineProperty(c,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):c[u]=s,c));return o.a.createElement("li",{key:f,className:p},"_blank"===e.target||l.startsWith("http")?o.a.createElement("a",{href:l,target:"_blank",rel:"noopener noreferrer"},f,o.a.createElement(pt,null)):o.a.createElement(i.Link,{to:l},f))})))},yt=n("MF4t"),mt=n.n(yt),gt=n("QuNn"),bt=n.n(gt),Ot=n("LWRl"),wt=n.n(Ot);function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return St(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return St(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ct=ne.a.Option,jt=function(e){var t=Object(Ze.b)();if(t===window.location.host){var n=xe()(e).name;if(!n.includes(".")&&!n.includes("-"))switch(n){case"antvis":window.location.href=window.location.href.replace(window.location.host,"antv.gitee.io");break;default:return void(window.location.href=window.location.href.replace(window.location.host,"antv-".concat(n,".gitee.io")))}te.b.info("镜像本地调试暂时无法跳转。")}else window.location.href=window.location.href.replace(window.location.host,t)},kt=function(e){var t,n,a=e.subTitle,c=void 0===a?"":a,u=e.subTitleHref,s=e.pathPrefix,l=void 0===s?"":s,f=e.path,p=void 0===f?"":f,d=e.navs,h=void 0===d?[]:d,v=e.showSearch,y=void 0===v||v,m=e.showGithubStar,g=void 0!==m&&m,b=e.showGithubCorner,O=void 0===b||b,w=e.showAntVProductsCard,_=void 0===w||w,x=e.showLanguageSwitcher,E=void 0===x||x,S=e.showChinaMirror,C=void 0===S||S,j=e.logo,k=e.onLanguageChange,P=e.showWxQrcode,T=void 0===P||P,M=e.wxQrcode,A=void 0===M?"https://gw.alipayobjects.com/zos/antfincdn/ZKlx96dsfs/qrcode_for_gh_f52d8b6aa591_258.jpg":M,L=e.siteUrl,R=e.githubUrl,N=void 0===R?"https://github.com/antvis":R,I=e.defaultLanguage,D=e.Link,F=void 0===D?"a":D,z=e.transparent,B=e.isHomePage,U=e.isAntVSite,V=void 0!==U&&U,H=e.rootDomain,G=void 0===H?"":H,W=e.docsearchOptions,Y=e.versions,K=e.ecosystems,X=Object(ce.a)(),q=X.t,te=X.i18n,ie=V&&B,ue=void 0!==I?I:te.language||"",se=(u||"").startsWith("http")?"a":F,le=Et(Object(r.useState)(!1),2),fe=le[0],ye=le[1],me=!1,be=Et(Object(r.useState)(!1),2),Oe=be[0],_e=be[1],Ee=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){xt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({img:ie?o.a.createElement(bt.a,null):o.a.createElement(mt.a,null),link:""},j),Se=Ee.img,Ce=Ee.link;Object(r.useEffect)((function(){Oe&&_e(!1)}),[p]),Object(r.useEffect)((function(){return document.documentElement.style.overflow=Oe?"hidden":"",function(){document.documentElement.style.overflow=""}}),[Oe]);var ke=Object(oe.a)("(min-width: 767.99px)",!0),Pe=ke?null:o.a.createElement(pe,{className:ht.a.menuIcon,onClick:function(){_e(!Oe)}}),Te=ke?{onMouseEnter:function(e){me=!0,e.persist(),setTimeout((function(){e.target instanceof Element&&e.target.matches(":hover")&&ye(!0)}),200)},onMouseLeave:function(e){e.persist(),me=!1,setTimeout((function(){me||ye(!1)}),200)}}:{onClick:function(){ye(!fe)}},Ae=xe()(N).name,Le="";"antvis"===Ae?Le="https://antv.gitee.io":Le&&(Le="https://antv-".concat(Ae,".gitee.io"));var Re=Et(Object(nt.b)({siteUrl:L,lang:ue,link:Ce}),1)[0],Ne=Et(Object(r.useState)(!1),2),Ie=Ne[0],De=Ne[1];Object(r.useEffect)((function(){var e=setTimeout((function(){"zh"!==ue||window.location.host.includes("chartcube")||window.location.host.includes("gitee.io")||localStorage.getItem("china-mirror-no-more-hint")||De(!0)}),5e3);return function(){clearTimeout(e)}}));var Fe=o.a.createElement("ul",{className:ae()(ht.a.menu,(t={},xt(t,ht.a.popup,!ke),xt(t,ht.a.popupHidden,!Oe),t))},h&&h.length?o.a.createElement(vt,{navs:h,path:p}):null,K&&K.length?o.a.createElement("li",null,o.a.createElement($.a,{className:ht.a.ecoSystems,overlay:o.a.createElement(ee.a,null,Object(re.a)(K,(function(e){var t=e.url,n=e.name;return o.a.createElement(ee.a.Item,{key:null==n?void 0:n[ue]},o.a.createElement("a",{target:"_blank",rel:"noreferrer",href:t},null==n?void 0:n[ue]," ",o.a.createElement(pt,null)))})))},o.a.createElement("span",null,q("周边生态"),o.a.createElement(de.a,{style:{marginLeft:"6px"}})))):null,C&&ke?o.a.createElement(J.a,{title:null,content:o.a.createElement("div",{style:{width:300}},o.a.createElement("div",null,o.a.createElement("span",{role:"img","aria-labelledby":"中国",style:{marginRight:"8px"}},"🇨🇳"),"AntV 系列网站部署在 gh-pages 上,若访问速度不佳,可以前往国内镜像站点。"),o.a.createElement("div",{style:{marginTop:16,textAlign:"right"}},o.a.createElement(Q.a,{onClick:function(){return De(!1)},size:"small",style:{marginRight:8}},"暂时关闭"),o.a.createElement(Q.a,{type:"primary",size:"small",onClick:function(){localStorage.setItem("china-mirror-no-more-hint",Date.now().toString()),De(!1)}},"不再提醒"))),visible:Ie,placement:"bottomRight",align:{offset:[-12,-16]}},o.a.createElement("li",{style:{display:Re.includes("gitee")?"none":""}},o.a.createElement("a",{href:Le,onClick:function(e){e.preventDefault(),jt(N)}},q("国内镜像"),!ie&&o.a.createElement(pt,null)))):null,C&&!ke&&!Re.includes("gitee")&&o.a.createElement(Z.a,{visible:Ie,cancelText:"不再提醒",okText:"立即前往",onCancel:function(){De(!1)},onOk:function(){return jt(N)},cancelButtonProps:{onClick:function(){localStorage.setItem("china-mirror-no-more-hint",Date.now().toString()),De(!1)}}},o.a.createElement("div",{className:ht.a.modalContent},o.a.createElement("span",{role:"img","aria-labelledby":"中国"},"🇨🇳"),"AntV 系列网站部署在 gh-pages 上,若访问速度不佳,可以前往",o.a.createElement("a",{href:Le,onClick:function(e){e.preventDefault(),jt(N)},className:ht.a.remindHref},q("国内镜像"),o.a.createElement(pt,null)),o.a.createElement("span",null," 站点。"))),_?o.a.createElement("li",Te,o.a.createElement("a",null,q("所有产品"),ie?o.a.createElement(he.a,{style:{top:"1px",color:"#fff"},className:ae()(ht.a.arrow,xt({},ht.a.open,fe))}):o.a.createElement("img",{src:"https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png",alt:"antv logo arrow",className:ae()(ht.a.arrow,xt({},ht.a.open,fe))})),o.a.createElement(it,{className:ht.a.productsMenu,show:fe,rootDomain:G,language:I})):null,Y?o.a.createElement("li",null,o.a.createElement(ne.a,{defaultValue:Object.keys(Y)[0],className:ht.a.versions,bordered:!1,size:"small",onChange:function(e){window.location.href=e}},Object.keys(Y).map((function(e){var t=Y[e];return t.startsWith("http")?o.a.createElement(Ct,{key:t,value:t},e):null})))):null,E&&o.a.createElement("li",null,o.a.createElement($.a,{placement:"bottomRight",overlay:o.a.createElement(ee.a,{defaultSelectedKeys:[ue],selectable:!0,onSelect:function(e){var t=e.key;t!==ue&&(k?k(t.toString()):p.endsWith("/".concat(ue))?Object(i.navigate)("/".concat(t)):Object(i.navigate)(p.replace(l,"").replace("/".concat(ue,"/"),"/".concat(t,"/"))))}},o.a.createElement(ee.a.Item,{key:"en"},o.a.createElement(ve.a,{style:{visibility:"en"===ue?"visible":"hidden",color:"#52c41a"}}),"English"),o.a.createElement(ee.a.Item,{key:"zh"},o.a.createElement(ve.a,{style:{visibility:"zh"===ue?"visible":"hidden",color:"#52c41a"}}),"简体中文")),className:ht.a.translation},o.a.createElement("a",{className:"ant-dropdown-link",onClick:function(e){return e.preventDefault()}},o.a.createElement(wt.a,{className:ht.a.translation})))),T&&A&&o.a.createElement("li",{className:ht.a.wxQrcode},o.a.createElement(J.a,{content:o.a.createElement("img",{width:"100%",height:"100%",src:A,alt:"wx-qrcode"}),title:null,overlayClassName:"wx-qrcode-popover",overlayStyle:{width:128,height:128},overlayInnerStyle:{padding:2}},o.a.createElement(ge,null))),O&&o.a.createElement("li",{className:ht.a.githubCorner},o.a.createElement("a",{href:xe()(N).toString("https"),target:"_blank",rel:"noopener noreferrer"},o.a.createElement(we,null))),g&&o.a.createElement("li",{className:ht.a.githubStar},o.a.createElement("span",null,o.a.createElement(je,{href:"https://github.com/".concat(xe()(N).full_name),"data-size":"large","data-show-count":"true","aria-label":"Star ".concat(xe()(N).full_name," on GitHub")},"Star"))));return o.a.createElement("header",{className:ae()(ht.a.header,(n={},xt(n,ht.a.transparent,!!z&&!fe),xt(n,ht.a.isHomePage,!!B&&!ie),xt(n,ht.a.lightTheme,!!ie&&!fe&&ke),xt(n,ht.a.fixed,Oe),n))},o.a.createElement("div",{className:ht.a.container},o.a.createElement("div",{className:ht.a.left},o.a.createElement("h1",null,o.a.createElement("a",{href:Re},Se)),c&&o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:ht.a.divider}),o.a.createElement("h2",{className:ht.a.subProduceName},o.a.createElement(se,xt({},"a"===se?"href":"to",void 0===u?"/".concat(ue):u),c))),y&&!ie&&o.a.createElement(Me,{docsearchOptions:W})),o.a.createElement("nav",{className:ht.a.nav},Fe,Pe)))},Pt=n("K1cu"),Tt=n("HbGN"),Mt=function(e){var t=e.prefixCls,n=e.icon,r=e.title,i=e.items,a=void 0===i?[]:i,c=e.style,u=e.className;return o.a.createElement("div",{className:ae()("".concat(t,"-column"),u),style:c},(r||n)&&o.a.createElement("h2",null,n&&o.a.createElement("span",{className:"".concat(t,"-column-icon")},n),r),a.map((function(e,n){var r=e.LinkComponent||"a";return o.a.createElement("div",{className:ae()("".concat(t,"-item"),e.className),style:e.style,key:n},o.a.createElement(r,{href:e.url,to:"string"!=typeof r?e.url:void 0,target:e.openExternal?"_blank":void 0,rel:e.openExternal?"noopener noreferrer":void 0},e.icon&&o.a.createElement("span",{className:"".concat(t,"-item-icon")},e.icon),e.title),e.description&&o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"".concat(t,"-item-separator")},"-"),o.a.createElement("span",{className:"".concat(t,"-item-description")},e.description)))})))},At=function(e){var t=e.prefixCls,n=void 0===t?"rc-footer":t,r=e.className,i=e.style,a=e.bottom,u=e.columns,s=e.maxColumnsPerRow,l=e.backgroundColor,f=e.columnLayout,p=e.theme,d=void 0===p?"dark":p,h=Object(Tt.a)(e,["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"]),v=ae()("".concat(n),r,Object(c.a)({},"".concat(n,"-").concat(d),!!d)),y="number"==typeof s&&s>0;return o.a.createElement("footer",Object.assign({},h,{className:v,style:Object(ue.a)(Object(ue.a)({},i),{},{backgroundColor:l})}),o.a.createElement("section",{className:"".concat(n,"-container")},u&&u.length>0&&o.a.createElement("section",{className:"".concat(n,"-columns"),style:{justifyContent:f,flexWrap:y?"wrap":void 0}},u.map((function(e,t){var r=e.title,i=e.icon,a=e.style,c=e.className,u=e.items,l=void 0===u?[]:u,f=Object(ue.a)({},a);return y&&(f.flex="0 0 ".concat(100/(s+1)+.1,"%")),o.a.createElement(Mt,{key:t,prefixCls:n,title:r,icon:i,items:l,style:f,className:c})})))),a&&o.a.createElement("section",{className:"".concat(n,"-bottom")},o.a.createElement("div",{className:"".concat(n,"-bottom-container")},a)))},Lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M564.7 230.1V803h60l25.2 71.4L756.3 803h131.5V230.1H564.7zm247.7 497h-59.9l-75.1 50.4-17.8-50.4h-18V308.3h170.7v418.8zM526.1 486.9H393.3c2.1-44.9 4.3-104.3 6.6-172.9h130.9l-.1-8.1c0-.6-.2-14.7-2.3-29.1-2.1-15-6.6-34.9-21-34.9H287.8c4.4-20.6 15.7-69.7 29.4-93.8l6.4-11.2-12.9-.7c-.8 0-19.6-.9-41.4 10.6-35.7 19-51.7 56.4-58.7 84.4-18.4 73.1-44.6 123.9-55.7 145.6-3.3 6.4-5.3 10.2-6.2 12.8-1.8 4.9-.8 9.8 2.8 13 10.5 9.5 38.2-2.9 38.5-3 .6-.3 1.3-.6 2.2-1 13.9-6.3 55.1-25 69.8-84.5h56.7c.7 32.2 3.1 138.4 2.9 172.9h-141l-2.1 1.5c-23.1 16.9-30.5 63.2-30.8 65.2l-1.4 9.2h167c-12.3 78.3-26.5 113.4-34 127.4-3.7 7-7.3 14-10.7 20.8-21.3 42.2-43.4 85.8-126.3 153.6-3.6 2.8-7 8-4.8 13.7 2.4 6.3 9.3 9.1 24.6 9.1 5.4 0 11.8-.3 19.4-1 49.9-4.4 100.8-18 135.1-87.6 17-35.1 31.7-71.7 43.9-108.9L497 850l5-12c.8-1.9 19-46.3 5.1-95.9l-.5-1.8-108.1-123-22 16.6c6.4-26.1 10.6-49.9 12.5-71.1h158.7v-8c0-40.1-18.5-63.9-19.2-64.9l-2.4-3z"}}]},name:"zhihu",theme:"outlined"},Rt=function(e,t){return r.createElement(le.a,Object(ue.a)(Object(ue.a)({},e),{},{ref:t,icon:Lt}))};Rt.displayName="ZhihuOutlined";var Nt=r.forwardRef(Rt),It=n("LxhF"),Dt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M457.3 543c-68.1-17.7-145 16.2-174.6 76.2-30.1 61.2-1 129.1 67.8 151.3 71.2 23 155.2-12.2 184.4-78.3 28.7-64.6-7.2-131-77.6-149.2zm-52 156.2c-13.8 22.1-43.5 31.7-65.8 21.6-22-10-28.5-35.7-14.6-57.2 13.7-21.4 42.3-31 64.4-21.7 22.4 9.5 29.6 35 16 57.3zm45.5-58.5c-5 8.6-16.1 12.7-24.7 9.1-8.5-3.5-11.2-13.1-6.4-21.5 5-8.4 15.6-12.4 24.1-9.1 8.7 3.2 11.8 12.9 7 21.5zm334.5-197.2c15 4.8 31-3.4 35.9-18.3 11.8-36.6 4.4-78.4-23.2-109a111.39 111.39 0 00-106-34.3 28.45 28.45 0 00-21.9 33.8 28.39 28.39 0 0033.8 21.8c18.4-3.9 38.3 1.8 51.9 16.7a54.2 54.2 0 0111.3 53.3 28.45 28.45 0 0018.2 36zm99.8-206c-56.7-62.9-140.4-86.9-217.7-70.5a32.98 32.98 0 00-25.4 39.3 33.12 33.12 0 0039.3 25.5c55-11.7 114.4 5.4 154.8 50.1 40.3 44.7 51.2 105.7 34 159.1-5.6 17.4 3.9 36 21.3 41.7 17.4 5.6 36-3.9 41.6-21.2v-.1c24.1-75.4 8.9-161.1-47.9-223.9zM729 499c-12.2-3.6-20.5-6.1-14.1-22.1 13.8-34.7 15.2-64.7.3-86-28-40.1-104.8-37.9-192.8-1.1 0 0-27.6 12.1-20.6-9.8 13.5-43.5 11.5-79.9-9.6-101-47.7-47.8-174.6 1.8-283.5 110.6C127.3 471.1 80 557.5 80 632.2 80 775.1 263.2 862 442.5 862c235 0 391.3-136.5 391.3-245 0-65.5-55.2-102.6-104.8-118zM443 810.8c-143 14.1-266.5-50.5-275.8-144.5-9.3-93.9 99.2-181.5 242.2-195.6 143-14.2 266.5 50.5 275.8 144.4C694.4 709 586 796.6 443 810.8z"}}]},name:"weibo",theme:"outlined"},Ft=function(e,t){return r.createElement(le.a,Object(ue.a)(Object(ue.a)({},e),{},{ref:t,icon:Dt}))};Ft.displayName="WeiboOutlined";var zt=r.forwardRef(Ft);var Bt=function(e,t){for(var n=Object.assign({},e),r=0;r<t.length;r+=1){delete n[t[r]]}return n},Ut=n("slaK"),Vt=n.n(Ut),Ht=(n("o2P7"),["columns","bottom","theme","language","rootDomain","location"]);function Gt(){return(Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Yt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Xt=function(e){var t=e.columns,n=e.bottom,a=e.theme,c=void 0===a?"dark":a,u=e.language,s=e.rootDomain,l=void 0===s?"":s,f=e.location,p=Kt(e,Ht),d=Wt(Object(r.useState)(!1),2),h=d[0],v=d[1],y=Object(ce.a)(),m=y.t,g=y.i18n,b=u||g.language;Object(r.useEffect)((function(){var e=Object(i.withPrefix)("/").replace(/\/$/,""),t=f.pathname.replace(e,""),n=t.startsWith("/zh/examples")||t.startsWith("/en/examples"),r=t.startsWith("/zh/docs")||t.startsWith("/en/docs");v(!!n||!!r&&!("initial"===f.key))}),[f]);var O,w,_;return o.a.createElement(At,Gt({maxColumnsPerRow:5,theme:c,columns:t||[{title:m("Resources"),items:[{title:"Ant Design",url:"https://ant.design",openExternal:!0},{title:"Ant Design Mobile",url:"https://mobile.ant.design",openExternal:!0},{title:"Umi",description:m("React 应用开发框架"),url:"https://umijs.org",openExternal:!0},{title:"Dumi",description:m("组件/文档研发工具"),url:"https://d.umijs.org",openExternal:!0},{title:"ahooks",description:m("React Hooks 库"),url:"https://github.com/alibaba/hooks",openExternal:!0},{title:m("国内镜像"),url:"https://antv.gitee.io/"}]},{title:m("社区"),items:[{icon:o.a.createElement(Nt,{style:{color:"#0084ff"}}),title:m("体验科技专栏"),url:"http://zhuanlan.zhihu.com/xtech",openExternal:!0},{icon:o.a.createElement("img",{src:"https://gw.alipayobjects.com/zos/rmsportal/mZBWtboYbnMkTBaRIuWQ.png",alt:"seeconf"}),title:"SEE Conf",description:m("蚂蚁体验科技大会"),url:"https://seeconf.antfin.com/",openExternal:!0}]},{title:m("帮助"),items:[{icon:o.a.createElement(we,null),title:"GitHub",url:"https://github.com/antvis",openExternal:!0},{icon:o.a.createElement(It.a,null),title:m("StackOverflow"),url:"http://stackoverflow.com/questions/tagged/antv",openExternal:!0}]},{icon:o.a.createElement("img",{src:"https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg",alt:"more products"}),title:m("更多产品"),items:[{icon:o.a.createElement("img",{src:"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg",alt:"Ant Design"}),title:"Ant Design",url:"https://ant.design",description:m("企业级 UI 设计语言"),openExternal:!0},{icon:o.a.createElement("img",{src:"https://gw.alipayobjects.com/zos/rmsportal/XuVpGqBFxXplzvLjJBZB.svg",alt:"yuque"}),title:m("语雀"),url:"https://yuque.com",description:m("知识创作与分享工具"),openExternal:!0},{icon:o.a.createElement("img",{src:"https://gw.alipayobjects.com/zos/antfincdn/v2%24rh7lqpu/82f338dd-b0a6-41bc-9a86-58aaa9df217b.png",alt:"Egg"}),title:"Egg",url:"https://eggjs.org",description:m("企业级 Node 开发框架"),openExternal:!0},{icon:o.a.createElement("img",{src:"https://gw.alipayobjects.com/zos/rmsportal/DMDOlAUhmktLyEODCMBR.ico",alt:"kitchen"}),title:"Kitchen",description:m("Sketch 工具集"),url:"https://kitchen.alipay.com",openExternal:!0},{icon:o.a.createElement("img",{src:"https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg",alt:"xtech"}),title:m("蚂蚁体验科技"),url:"https://xtech.antfin.com/",openExternal:!0}]}],className:ae()(Vt.a.footer,(O={},w=Vt.a.withMenu,_=h,w in O?Object.defineProperty(O,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):O[w]=_,O)),bottom:n||o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Vt.a.bottom},o.a.createElement("div",null,o.a.createElement("a",{href:"https://weibo.com/antv2017",target:"_blank",rel:"noopener noreferrer"},o.a.createElement(zt,null)),o.a.createElement("a",{href:"https://zhuanlan.zhihu.com/aiux-antv",target:"_blank",rel:"noopener noreferrer"},o.a.createElement(Nt,null)),o.a.createElement("a",{href:"https://github.com/antvis",target:"_blank",rel:"noopener noreferrer"},o.a.createElement(we,null)),o.a.createElement("a",{href:"".concat(l,"/").concat(b,"/about")},m("关于我们")),o.a.createElement("a",{href:"https://antv-2018.alipay.com",target:"_blank",rel:"noopener noreferrer"},m("返回旧版"))),o.a.createElement("div",null,"© ",(new Date).getFullYear()," Made with ❤ by"," ",o.a.createElement("a",{href:"https://xtech.antfin.com/"},"XTech"))))},Bt(p,["githubUrl"])))},qt=n("zP18"),Zt=n.n(qt),Jt=n("r6MD"),Qt=n("4jfu"),$t=n.n(Qt),en=n("ncrz"),tn=function(e){var t=e.announcement,n=Object(ce.a)().i18n,i=Object(r.useMemo)((function(){return t?t.en:""}),[t]),a=Object(Jt.a)(t,n.language);return a?o.a.createElement(en.a,{message:o.a.createElement("span",{className:$t.a.topBannerAnnouncements},a),bannerId:i,localStorageId:"antv_local_banner",style:{borderRadius:0,borderWidth:"1px 0"}}):null};function nn(){return(nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}W.use(Y.e).init({initImmediate:!1,fallbackLng:"zh",keySeparator:!1,react:{useSuspense:!1}});var rn=["zh","en"];function on(e){if(null!==e)return e}t.default=function(e){var t=e.children,n=e.location,a=e.footerProps;if(n.pathname.includes("offline-plugin-app-shell-fallback"))return o.a.createElement(Pt.a,null);var c=Object(i.useStaticQuery)("738567659"),u=c.site,s=c.locales,l=u.siteMetadata,f=l.title,p=l.navs,d=void 0===p?[]:p,h=l.githubUrl,v=l.siteUrl,y=l.logoUrl,m=void 0===y?"":y,g=l.showLanguageSwitcher,b=l.showSearch,O=l.showChinaMirror,w=l.isAntVSite,_=l.showGithubStar,x=l.showGithubCorner,E=l.showWxQrcode,S=l.wxQrcode,C=l.showAntVProductsCard,j=l.redirects,k=void 0===j?[]:j,P=l.docsearchOptions,T=l.versions,M=l.ecosystems,A=l.announcement,L={};try{L=JSON.parse(s.internal.content)}catch(U){}var R=Object(i.withPrefix)("/").replace(/\/$/,""),N=n.pathname.replace(R,""),I=Object(K.getCurrentLangKey)(rn,"zh",N),D="/"===N||N==="/".concat(I)||N==="/".concat(I,"/");if(W.options.lng,W.init({lng:I}),W.options.resources||W.init({resources:L}),Object(r.useEffect)((function(){W.language!==I&&W.changeLanguage(I)}),[I]),n.pathname===R||t&&t.type&&t.type.noLayout)return t;var F=function(){for(var e=k||[],t=0;t<e.length;t+=1){var r=e[t],o=r.from,i=void 0===o?"":o,a=r.to,c=r.keepUrl;if(n.pathname!==i&&!new RegExp(i).test(n.pathname))return;return c&&new RegExp(i).test(n.pathname)?n.pathname.replace(new RegExp(i),a):a||"".concat("https://antv-2018.alipay.com").concat(n.pathname)}}(),z=m?{logo:{img:o.a.createElement("img",{src:m,alt:"logo"})}}:{},B=n.pathname.includes("/examples/")&&!n.pathname.endsWith("/gallery");return o.a.createElement(o.a.Fragment,null,F&&o.a.createElement(X.a,null,o.a.createElement("meta",{httpEquiv:"refresh",content:"0;url=".concat(F)})),o.a.createElement(q.a,{title:"https://antv.vision"===v?"":f,lang:W.language}),o.a.createElement(kt,nn({subTitle:"https://antv.vision"===v?"":f,path:N,pathPrefix:R,navs:d,siteUrl:v,githubUrl:h,Link:i.Link,transparent:D,isHomePage:D,isAntVSite:w,showSearch:on(b),showGithubStar:on(_),showGithubCorner:on(x),showAntVProductsCard:on(C),showChinaMirror:on(O),showLanguageSwitcher:on(g),showWxQrcode:on(E),wxQrcode:on(S),docsearchOptions:P,versions:T,ecosystems:M},z)),!D&&!B&&o.a.createElement(tn,{announcement:A}),o.a.createElement("main",{className:Zt.a.main},t),!B&&o.a.createElement(Xt,nn({githubUrl:h,rootDomain:"https://antv.vision",location:n},a)))}},"+fUG":function(e,t,n){var r=n("5pfJ"),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},"+ooz":function(e,t,n){var r=n("8Zrg"),o=n("kwr2"),i=n("5VYK"),a=n("Coc+"),c=n("LzM7");function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},"+wNj":function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},"/+Qt":function(e,t,n){var r=n("fLdg"),o=n("GVul"),i=n("m2YG"),a=n("dw5g");e.exports=function(e,t,n){e=a(e);var c=(t=i(t))?o(e):0;return t&&c<t?e+r(t-c,n):e}},"/2nK":function(e,t,n){},"/30y":function(e,t,n){var r=n("Dhk8"),o=n("tLQN");e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},"/3tq":function(e,t,n){var r=n("BkAM");e.exports=r((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}))},"/FWC":function(e,t,n){},"/GY5":function(e,t,n){"use strict";var r=n("aMhq");function o(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(i,this,t),this.length=this._features.length}function i(e,t,n){15===e?t.version=n.readVarint():1===e?t.name=n.readString():5===e?t.extent=n.readVarint():2===e?t._features.push(n.pos):3===e?t._keys.push(n.readString()):4===e&&t._values.push(function(e){var t=null,n=e.readVarint()+e.pos;for(;e.pos<n;){var r=e.readVarint()>>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}e.exports=o,o.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new r(this._pbf,t,this.extent,this._keys,this._values)}},"/M6z":function(e,t,n){"use strict";n.r(t);n("ERkP"),n("aWzz"),n("emEt"),n("Wbzz"),n("0+Mw");var r=n("PJ1o");r.reportBuildError,r.dismissBuildError;r.startReportingRuntimeErrors({onError:function(){},filename:"/commons.js"}),r.setEditorHandler((function(e){return window.fetch("/__open-stack-frame-in-editor?fileName="+window.encodeURIComponent(e.fileName)+"&lineNumber="+window.encodeURIComponent(e.lineNumber||1))}));n("IOVJ"),n("Z7Uv");throw new Error("It appears like Gatsby is misconfigured. JSONStore is Gatsby internal development-only component and should never be used in production.\n\nUnless your site has a complex or custom webpack/Gatsby configuration this is likely a bug in Gatsby. Please report this at https://github.com/gatsbyjs/gatsby/issues with steps to reproduce this error.")},"/Qos":function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("gIIS"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("fRV1"))},"/UTG":function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},"/ezw":function(e,t,n){"use strict";var r=n("zjfJ"),o=n("cxan"),i=n("4wDe"),a=n("O94r"),c=n.n(a),u=n("ERkP"),s=n("H84U"),l=n("WSTu"),f=function(e){var t,n,i=e.prefixCls,a=e.className,s=e.style,l=e.size,f=e.shape,p=c()((t={},Object(r.a)(t,"".concat(i,"-lg"),"large"===l),Object(r.a)(t,"".concat(i,"-sm"),"small"===l),t)),d=c()((n={},Object(r.a)(n,"".concat(i,"-circle"),"circle"===f),Object(r.a)(n,"".concat(i,"-square"),"square"===f),Object(r.a)(n,"".concat(i,"-round"),"round"===f),n)),h="number"==typeof l?{width:l,height:l,lineHeight:"".concat(l,"px")}:{};return u.createElement("span",{className:c()(i,p,d,a),style:Object(o.a)(Object(o.a)({},h),s)})},p=function(e){var t=e.prefixCls,n=e.className,i=e.active,a=(0,u.useContext(s.b).getPrefixCls)("skeleton",t),p=Object(l.a)(e,["prefixCls","className"]),d=c()(a,"".concat(a,"-element"),Object(r.a)({},"".concat(a,"-active"),i),n);return u.createElement("div",{className:d},u.createElement(f,Object(o.a)({prefixCls:"".concat(a,"-avatar")},p)))};p.defaultProps={size:"default",shape:"circle"};var d=p,h=function(e){var t,n=e.prefixCls,i=e.className,a=e.active,p=e.block,d=void 0!==p&&p,h=(0,u.useContext(s.b).getPrefixCls)("skeleton",n),v=Object(l.a)(e,["prefixCls"]),y=c()(h,"".concat(h,"-element"),(t={},Object(r.a)(t,"".concat(h,"-active"),a),Object(r.a)(t,"".concat(h,"-block"),d),t),i);return u.createElement("div",{className:y},u.createElement(f,Object(o.a)({prefixCls:"".concat(h,"-button")},v)))};h.defaultProps={size:"default"};var v=h,y=n("Czhu"),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},g=n("vspj"),b=function(e,t){return u.createElement(g.a,Object(y.a)(Object(y.a)({},e),{},{ref:t,icon:m}))};b.displayName="DotChartOutlined";var O=u.forwardRef(b),w=function(e){var t,n=e.prefixCls,o=e.className,i=e.style,a=e.active,l=(0,u.useContext(s.b).getPrefixCls)("skeleton",n),f=c()(l,"".concat(l,"-element"),Object(r.a)({},"".concat(l,"-active"),a),o),p=null!==(t=e.children)&&void 0!==t?t:u.createElement(O,null);return u.createElement("div",{className:f},u.createElement("div",{className:c()("".concat(l,"-image"),o),style:i},p))},_=function(e){var t=e.prefixCls,n=e.className,o=e.style,i=e.active,a=(0,u.useContext(s.b).getPrefixCls)("skeleton",t),l=c()(a,"".concat(a,"-element"),Object(r.a)({},"".concat(a,"-active"),i),n);return u.createElement("div",{className:l},u.createElement("div",{className:c()("".concat(a,"-image"),n),style:o},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(a,"-image-svg")},u.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(a,"-image-path")}))))},x=function(e){var t,n=e.prefixCls,i=e.className,a=e.active,p=e.block,d=(0,u.useContext(s.b).getPrefixCls)("skeleton",n),h=Object(l.a)(e,["prefixCls"]),v=c()(d,"".concat(d,"-element"),(t={},Object(r.a)(t,"".concat(d,"-active"),a),Object(r.a)(t,"".concat(d,"-block"),p),t),i);return u.createElement("div",{className:v},u.createElement(f,Object(o.a)({prefixCls:"".concat(d,"-input")},h)))};x.defaultProps={size:"default"};var E=x,S=n("fGyu"),C=function(e){var t=function(t){var n=e.width,r=e.rows,o=void 0===r?2:r;return Array.isArray(n)?n[t]:o-1===t?n:void 0},n=e.prefixCls,r=e.className,o=e.style,i=e.rows,a=Object(S.a)(Array(i)).map((function(e,n){return u.createElement("li",{key:n,style:{width:t(n)}})}));return u.createElement("ul",{className:c()(n,r),style:o},a)},j=function(e){var t=e.prefixCls,n=e.className,r=e.width,i=e.style;return u.createElement("h3",{className:c()(t,n),style:Object(o.a)({width:r},i)})};function k(e){return e&&"object"===Object(i.a)(e)?e:{}}var P=function(e){var t=e.prefixCls,n=e.loading,i=e.className,a=e.style,l=e.children,p=e.avatar,d=e.title,h=e.paragraph,v=e.active,y=e.round,m=u.useContext(s.b),g=m.getPrefixCls,b=m.direction,O=g("skeleton",t);if(n||!("loading"in e)){var w,_,x,E=!!p,S=!!d,P=!!h;if(E){var T=Object(o.a)(Object(o.a)({prefixCls:"".concat(O,"-avatar")},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(S,P)),k(p));_=u.createElement("div",{className:"".concat(O,"-header")},u.createElement(f,Object(o.a)({},T)))}if(S||P){var M,A;if(S){var L=Object(o.a)(Object(o.a)({prefixCls:"".concat(O,"-title")},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(E,P)),k(d));M=u.createElement(j,Object(o.a)({},L))}if(P){var R=Object(o.a)(Object(o.a)({prefixCls:"".concat(O,"-paragraph")},function(e,t){var n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(E,S)),k(h));A=u.createElement(C,Object(o.a)({},R))}x=u.createElement("div",{className:"".concat(O,"-content")},M,A)}var N=c()(O,(w={},Object(r.a)(w,"".concat(O,"-with-avatar"),E),Object(r.a)(w,"".concat(O,"-active"),v),Object(r.a)(w,"".concat(O,"-rtl"),"rtl"===b),Object(r.a)(w,"".concat(O,"-round"),y),w),i);return u.createElement("div",{className:N,style:a},_,x)}return void 0!==l?l:null};P.defaultProps={avatar:!1,title:!0,paragraph:!0},P.Button=v,P.Avatar=d,P.Input=E,P.Image=_,P.Node=w;var T=P;t.a=T},"/iLo":function(e,t,n){var r=n("6I2w"),o=n("SU8Q"),i=n("T6vp"),a=i&&i.isSet,c=a?o(a):r;e.exports=c},"/kpp":function(e,t,n){"use strict";var r=n("zjfJ"),o=n("cxan"),i=n("4wDe"),a=n("O94r"),c=n.n(a),u=n("ERkP"),s=n("H84U"),l=n("o/2+"),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var p=["xs","sm","md","lg","xl","xxl"],d=u.forwardRef((function(e,t){var n,a=u.useContext(s.b),d=a.getPrefixCls,h=a.direction,v=u.useContext(l.a),y=v.gutter,m=v.wrap,g=v.supportFlexGap,b=e.prefixCls,O=e.span,w=e.order,_=e.offset,x=e.push,E=e.pull,S=e.className,C=e.children,j=e.flex,k=e.style,P=f(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),T=d("col",b),M={};p.forEach((function(t){var n,a={},c=e[t];"number"==typeof c?a.span=c:"object"===Object(i.a)(c)&&(a=c||{}),delete P[t],M=Object(o.a)(Object(o.a)({},M),(n={},Object(r.a)(n,"".concat(T,"-").concat(t,"-").concat(a.span),void 0!==a.span),Object(r.a)(n,"".concat(T,"-").concat(t,"-order-").concat(a.order),a.order||0===a.order),Object(r.a)(n,"".concat(T,"-").concat(t,"-offset-").concat(a.offset),a.offset||0===a.offset),Object(r.a)(n,"".concat(T,"-").concat(t,"-push-").concat(a.push),a.push||0===a.push),Object(r.a)(n,"".concat(T,"-").concat(t,"-pull-").concat(a.pull),a.pull||0===a.pull),Object(r.a)(n,"".concat(T,"-rtl"),"rtl"===h),n))}));var A=c()(T,(n={},Object(r.a)(n,"".concat(T,"-").concat(O),void 0!==O),Object(r.a)(n,"".concat(T,"-order-").concat(w),w),Object(r.a)(n,"".concat(T,"-offset-").concat(_),_),Object(r.a)(n,"".concat(T,"-push-").concat(x),x),Object(r.a)(n,"".concat(T,"-pull-").concat(E),E),n),S,M),L={};if(y&&y[0]>0){var R=y[0]/2;L.paddingLeft=R,L.paddingRight=R}if(y&&y[1]>0&&!g){var N=y[1]/2;L.paddingTop=N,L.paddingBottom=N}return j&&(L.flex=function(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(j),!1!==m||L.minWidth||(L.minWidth=0)),u.createElement("div",Object(o.a)({},P,{style:Object(o.a)(Object(o.a)({},L),k),className:A,ref:t}),C)}));t.a=d},"/mHc":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="2.9.29"},"/qsF":function(e,t){var n=Object.create(null);n.open="0",n.close="1",n.ping="2",n.pong="3",n.message="4",n.upgrade="5",n.noop="6";var r=Object.create(null);Object.keys(n).forEach((function(e){r[n[e]]=e}));e.exports={PACKET_TYPES:n,PACKET_TYPES_REVERSE:r,ERROR_PACKET:{type:"error",data:"parser error"}}},"/sJt":function(e,t,n){"use strict";e.exports=function(e,t){!0===t&&(t=0);var n=e.indexOf("://"),r=e.substring(0,n).split("+").filter(Boolean);return"number"==typeof t?r[t]:r}},"/soe":function(e,t,n){var r=n("CD8Q"),o=n("z9Ev");e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},"/wCD":function(e,t,n){var r=n("TAtK")(Object.getPrototypeOf,Object);e.exports=r},"/zun":function(e,t,n){var r=n("1Mu/"),o=n("ct80");e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},"0+Mw":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=t.io=t.Manager=t.protocol=void 0;var r=n("akv9"),o=n("Bkfe"),i=n("3YvA");Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});var a=n("KQpv")("socket.io-client");e.exports=t=u;var c=t.managers={};function u(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i=r.url(e,t.path),u=i.source,s=i.id,l=i.path,f=c[s]&&l in c[s].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||f?(a("ignoring socket cache for %s",u),n=new o.Manager(u,t)):(c[s]||(a("new io instance for %s",u),c[s]=new o.Manager(u,t)),n=c[s]),i.query&&!t.query&&(t.query=i.queryKey),n.socket(i.path,t)}t.io=u;var s=n("c5bu");Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return s.protocol}}),t.connect=u;var l=n("Bkfe");Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return l.Manager}})},"03hK":function(e,t,n){"use strict";e.exports=function(e){if("none"!=={}.FOLKTALE_ASSERTIONS){var t=new Error("").stack,n=void 0;if(t)n=t.split("\n")[3];n?console.warn(e+"\n Blame: "+n.trim()):console.warn(e)}}},"061g":function(e,t,n){"use strict";var r=n("1LhI"),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,c,u,s,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),c=document.createRange(),u=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),c.selectNodeContents(s),u.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}},"09Wf":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n("CWQg"),o=Object(r.a)("success","processing","error","default","warning"),i=Object(r.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0C76":function(e,t,n){"use strict";var r=n("iZBp");e.exports=function(e,t){Object.keys(t).forEach((function(n){var o=t[n];e.variants.forEach((function(e){var t=o[e.tag];if(!t)throw new TypeError("Method "+n+" not defined for "+e.tag);r(o,t),e.prototype[n]=t}))}))}},"0ECu":function(e,t,n){var r=n("+a2B")({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},"0H/D":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Target=void 0;var r=n("2u/a"),o=n("+OwM"),i=n("jFDj"),a=n("YCww"),c=function(){function e(e,t,n,c){this.id=o.id(),this.type=e,this.serviceIdentifier=n,this.name=new a.QueryableString(t||""),this.metadata=new Array;var u=null;"string"==typeof c?u=new i.Metadata(r.NAMED_TAG,c):c instanceof i.Metadata&&(u=c),null!==u&&this.metadata.push(u)}return e.prototype.hasTag=function(e){for(var t=0,n=this.metadata;t<n.length;t++){if(n[t].key===e)return!0}return!1},e.prototype.isArray=function(){return this.hasTag(r.MULTI_INJECT_TAG)},e.prototype.matchesArray=function(e){return this.matchesTag(r.MULTI_INJECT_TAG)(e)},e.prototype.isNamed=function(){return this.hasTag(r.NAMED_TAG)},e.prototype.isTagged=function(){return this.metadata.some((function(e){return r.NON_CUSTOM_TAG_KEYS.every((function(t){return e.key!==t}))}))},e.prototype.isOptional=function(){return this.matchesTag(r.OPTIONAL_TAG)(!0)},e.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter((function(e){return e.key===r.NAMED_TAG}))[0]:null},e.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter((function(e){return r.NON_CUSTOM_TAG_KEYS.every((function(t){return e.key!==t}))})):null},e.prototype.matchesNamedTag=function(e){return this.matchesTag(r.NAMED_TAG)(e)},e.prototype.matchesTag=function(e){var t=this;return function(n){for(var r=0,o=t.metadata;r<o.length;r++){var i=o[r];if(i.key===e&&i.value===n)return!0}return!1}},e}();t.Target=c},"0IOZ":function(e,t,n){var r=n("8SJ9"),o=n("BkAM"),i=n("c7QU");e.exports=o(r("tail",i(1,1/0)))},"0Jwk":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("Umn3"),o=n("5x5+"),i=n("HO86"),a=n("kQdG");function c(e){return Object(r.a)(e)||Object(o.a)(e)||Object(i.a)(e)||Object(a.a)()}},"0Ocv":function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},"0bJh":function(e,t,n){var r=n("mg+6"),o=n("BIH/"),i=n("2sZ7"),a=Array,c=Math.max;e.exports=function(e,t,n){for(var u=o(e),s=r(t,u),l=r(void 0===n?u:n,u),f=a(c(l-s,0)),p=0;s<l;s++,p++)i(f,p,e[s]);return f.length=p,f}},"0jbY":function(e,t,n){"use strict";var r=n("cxan"),o=n("Czhu"),i=n("zygG"),a=n("HbGN"),c=n("ERkP"),u=n("O94r"),s=n.n(u),l=n("8sde"),f=n("s1jM"),p=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"];function d(e,t){var n=e.prefixCls,i=e.invalidate,u=e.item,f=e.renderItem,d=e.responsive,h=e.responsiveDisabled,v=e.registerSize,y=e.itemKey,m=e.className,g=e.style,b=e.children,O=e.display,w=e.order,_=e.component,x=void 0===_?"div":_,E=Object(a.a)(e,p),S=d&&!O;function C(e){v(y,e)}c.useEffect((function(){return function(){C(null)}}),[]);var j,k=f&&void 0!==u?f(u):b;i||(j={opacity:S?0:1,height:S?0:void 0,overflowY:S?"hidden":void 0,order:d?w:void 0,pointerEvents:S?"none":void 0,position:S?"absolute":void 0});var P={};S&&(P["aria-hidden"]=!0);var T=c.createElement(x,Object(r.a)({className:s()(!i&&n,m),style:Object(o.a)(Object(o.a)({},j),g)},P,E,{ref:t}),k);return d&&(T=c.createElement(l.a,{onResize:function(e){C(e.offsetWidth)},disabled:h},T)),T}var h=c.forwardRef(d);h.displayName="Item";var v=h,y=n("jiyB"),m=n("mDRv");var g=["component"],b=["className"],O=["className"],w=function(e,t){var n=c.useContext(S);if(!n){var o=e.component,i=void 0===o?"div":o,u=Object(a.a)(e,g);return c.createElement(i,Object(r.a)({},u,{ref:t}))}var l=n.className,f=Object(a.a)(n,b),p=e.className,d=Object(a.a)(e,O);return c.createElement(S.Provider,{value:null},c.createElement(v,Object(r.a)({ref:t,className:s()(l,p)},f,d)))},_=c.forwardRef(w);_.displayName="RawItem";var x=_,E=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],S=c.createContext(null);function C(e){return"+ ".concat(e.length," ...")}function j(e,t){var n=e.prefixCls,u=void 0===n?"rc-overflow":n,p=e.data,d=void 0===p?[]:p,h=e.renderItem,g=e.renderRawItem,b=e.itemKey,O=e.itemWidth,w=void 0===O?10:O,_=e.ssr,x=e.style,j=e.className,k=e.maxCount,P=e.renderRest,T=e.renderRawRest,M=e.suffix,A=e.component,L=void 0===A?"div":A,R=e.itemComponent,N=e.onVisibleChange,I=Object(a.a)(e,E),D=function(){var e=Object(m.a)({}),t=Object(i.a)(e,2)[1],n=Object(c.useRef)([]),r=0,o=0;return function(e){var i=r;return r+=1,n.current.length<i+1&&(n.current[i]=e),[n.current[i],function(e){n.current[i]="function"==typeof e?e(n.current[i]):e,y.a.cancel(o),o=Object(y.a)((function(){t({},!0)}))}]}}(),F="full"===_,z=D(null),B=Object(i.a)(z,2),U=B[0],V=B[1],H=U||0,G=D(new Map),W=Object(i.a)(G,2),Y=W[0],K=W[1],X=D(0),q=Object(i.a)(X,2),Z=q[0],J=q[1],Q=D(0),$=Object(i.a)(Q,2),ee=$[0],te=$[1],ne=D(0),re=Object(i.a)(ne,2),oe=re[0],ie=re[1],ae=Object(c.useState)(null),ce=Object(i.a)(ae,2),ue=ce[0],se=ce[1],le=Object(c.useState)(null),fe=Object(i.a)(le,2),pe=fe[0],de=fe[1],he=c.useMemo((function(){return null===pe&&F?Number.MAX_SAFE_INTEGER:pe||0}),[pe,U]),ve=Object(c.useState)(!1),ye=Object(i.a)(ve,2),me=ye[0],ge=ye[1],be="".concat(u,"-item"),Oe=Math.max(Z,ee),we="responsive"===k,_e=d.length&&we,xe="invalidate"===k,Ee=_e||"number"==typeof k&&d.length>k,Se=Object(c.useMemo)((function(){var e=d;return _e?e=null===U&&F?d:d.slice(0,Math.min(d.length,H/w)):"number"==typeof k&&(e=d.slice(0,k)),e}),[d,w,U,k,_e]),Ce=Object(c.useMemo)((function(){return _e?d.slice(he+1):d.slice(Se.length)}),[d,Se,_e,he]),je=Object(c.useCallback)((function(e,t){var n;return"function"==typeof b?b(e):null!==(n=b&&(null==e?void 0:e[b]))&&void 0!==n?n:t}),[b]),ke=Object(c.useCallback)(h||function(e){return e},[h]);function Pe(e,t,n){(pe!==e||void 0!==t&&t!==ue)&&(de(e),n||(ge(e<d.length-1),null==N||N(e)),void 0!==t&&se(t))}function Te(e,t){K((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function Me(e){return Y.get(je(Se[e],e))}Object(f.a)((function(){if(H&&Oe&&Se){var e=oe,t=Se.length,n=t-1;if(!t)return void Pe(0,null);for(var r=0;r<t;r+=1){var o=Me(r);if(F&&(o=o||0),void 0===o){Pe(r-1,void 0,!0);break}if(e+=o,0===n&&e<=H||r===n-1&&e+Me(n)<=H){Pe(n,null);break}if(e+Oe>H){Pe(r-1,e-o-oe+ee);break}}M&&Me(0)+oe>H&&se(null)}}),[H,Y,ee,oe,je,Se]);var Ae=me&&!!Ce.length,Le={};null!==ue&&_e&&(Le={position:"absolute",left:ue,top:0});var Re,Ne={prefixCls:be,responsive:_e,component:R,invalidate:xe},Ie=g?function(e,t){var n=je(e,t);return c.createElement(S.Provider,{key:n,value:Object(o.a)(Object(o.a)({},Ne),{},{order:t,item:e,itemKey:n,registerSize:Te,display:t<=he})},g(e,t))}:function(e,t){var n=je(e,t);return c.createElement(v,Object(r.a)({},Ne,{order:t,key:n,item:e,renderItem:ke,itemKey:n,registerSize:Te,display:t<=he}))},De={order:Ae?he:Number.MAX_SAFE_INTEGER,className:"".concat(be,"-rest"),registerSize:function(e,t){te(t),J(ee)},display:Ae};if(T)T&&(Re=c.createElement(S.Provider,{value:Object(o.a)(Object(o.a)({},Ne),De)},T(Ce)));else{var Fe=P||C;Re=c.createElement(v,Object(r.a)({},Ne,De),"function"==typeof Fe?Fe(Ce):Fe)}var ze=c.createElement(L,Object(r.a)({className:s()(!xe&&u,j),style:x,ref:t},I),Se.map(Ie),Ee?Re:null,M&&c.createElement(v,Object(r.a)({},Ne,{responsive:we,responsiveDisabled:!_e,order:he,className:"".concat(be,"-suffix"),registerSize:function(e,t){ie(t)},display:!0,style:Le}),M));return we&&(ze=c.createElement(l.a,{onResize:function(e,t){V(t.clientWidth)},disabled:!_e},ze)),ze}var k=c.forwardRef(j);k.displayName="Overflow",k.Item=x,k.RESPONSIVE="responsive",k.INVALIDATE="invalidate";var P=k;t.a=P},"0n0R":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n("ERkP"),o=r.isValidElement;function i(e,t,n){return o(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}function a(e,t){return i(e,e,t)}},"0zFS":function(e,t,n){var r=n("1Mu/"),o=n("eiXn"),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),u=c&&"something"===function(){}.name,s=c&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:c,PROPER:u,CONFIGURABLE:s}},"16WD":function(e,t,n){},"19lg":function(e,t,n){"use strict";var r=function(e,t){for(var n=Object.keys(e),r={},o=0;o<n.length;++o){var i=n[o];r[i]=t(e[i])}return r};r.infix=function(e){return r(this,e)},e.exports=r},"1DJ1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataReader=void 0;var r=n("2u/a"),o=function(){function e(){}return e.prototype.getConstructorMetadata=function(e){return{compilerGeneratedMetadata:Reflect.getMetadata(r.PARAM_TYPES,e),userGeneratedMetadata:Reflect.getMetadata(r.TAGGED,e)||{}}},e.prototype.getPropertiesMetadata=function(e){return Reflect.getMetadata(r.TAGGED_PROP,e)||[]},e}();t.MetadataReader=o},"1Fob":function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function i(e,t){try{return decodeURIComponent(e.join(""))}catch(o){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function a(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=i(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var n={"%FE%FF":"<22><>","%FF%FE":"<22><>"},r=o.exec(e);r;){try{n[r[0]]=decodeURIComponent(r[0])}catch(t){var i=a(r[0]);i!==r[0]&&(n[r[0]]=i)}r=o.exec(e)}n["%C2"]="<22>";for(var c=Object.keys(n),u=0;u<c.length;u++){var s=c[u];e=e.replace(new RegExp(s,"g"),n[s])}return e}(e)}}},"1HDK":function(e,t,n){"use strict";var r=n("G12H");t.a=function(e){if("string"==typeof e||Object(r.a)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},"1LhI":function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},"1Mu/":function(e,t,n){var r=n("ct80");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"1Pcy":function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},"1T57":function(e,t,n){"use strict";t.__esModule=!0,t.useScrollRestoration=t.ScrollContainer=t.ScrollContext=void 0;var r=n("B8dz");t.ScrollContext=r.ScrollHandler;var o=n("ieLl");t.ScrollContainer=o.ScrollContainer;var i=n("Ebtn");t.useScrollRestoration=i.useScrollRestoration},"1TxV":function(e,t){t.read=function(e,t,n,r,o){var i,a,c=8*o-r-1,u=(1<<c)-1,s=u>>1,l=-7,f=n?o-1:0,p=n?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=c;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-s;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=s}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,c,u,s=8*i-o-1,l=(1<<s)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(c=0,a=l):a+f>=1?(c=(t*u-1)*Math.pow(2,o),a+=f):(c=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&c,d+=h,c/=256,o-=8);for(a=a<<o|c,s+=o;s>0;e[n+d]=255&a,d+=h,a/=256,s-=8);e[n+d-h]|=128*v}},"1ims":function(e,t,n){"use strict";var r=Object.keys,o=Object.getOwnPropertySymbols,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor;e.exports=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),c=1;c<t;c++)n[c-1]=arguments[c];return n.forEach((function(t){r(t).forEach((function(n){"prototype"===n?e[n]=t[n]:i(e,n,a(t,n))})),o(t).forEach((function(n){i(e,n,a(t,n))}))})),e}},"1j5w":function(e,t,n){"use strict";n.d(t,"f",(function(){return me})),n.d(t,"b",(function(){return K})),n.d(t,"d",(function(){return K})),n.d(t,"e",(function(){return Ue})),n.d(t,"c",(function(){return Ue})),n.d(t,"a",(function(){return Ve})),n.d(t,"h",(function(){return He}));var r=n("cxan"),o=n("zjfJ"),i=n("Czhu"),a=n("fGyu"),c=n("zygG"),u=n("HbGN"),s=n("ERkP"),l=n("O94r"),f=n.n(l),p=n("Pu0A"),d=n.n(p),h=n("MSM+"),v=n("5qS4"),y=n("0jbY"),m=n("9fIP"),g=n("MMYH"),b=n("8K1b"),O=n("AqVP"),w=n("tmJt"),_=n("WSTu"),x=n("p2vu"),E=["children","locked"],S=s.createContext(null);function C(e){var t=e.children,n=e.locked,r=Object(u.a)(e,E),o=s.useContext(S),a=Object(x.a)((function(){return e=o,t=r,n=Object(i.a)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&d()(e[1],t[1]))}));return s.createElement(S.Provider,{value:a},t)}function j(e,t,n,r){var o=s.useContext(S),i=o.activeKey,a=o.onActive,c=o.onInactive,u={active:i===e};return t||(u.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},u.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),c(e)}),u}var k=["item"];function P(e){var t=e.item,n=Object(u.a)(e,k);return Object.defineProperty(n,"item",{get:function(){return Object(v.a)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function T(e){var t=e.icon,n=e.props,r=e.children;return("function"==typeof t?s.createElement(t,Object(i.a)({},n)):t)||r||null}function M(e){var t=s.useContext(S),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}var A=[],L=s.createContext(null);function R(){return s.useContext(L)}var N=s.createContext(A);function I(e){var t=s.useContext(N);return s.useMemo((function(){return void 0!==e?[].concat(Object(a.a)(t),[e]):t}),[t,e])}var D=s.createContext(null),F=s.createContext(null);function z(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function B(e){return z(s.useContext(F),e)}var U=s.createContext({}),V=["title","attribute","elementRef"],H=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],G=["active"],W=function(e){Object(b.a)(n,e);var t=Object(O.a)(n);function n(){return Object(m.a)(this,n),t.apply(this,arguments)}return Object(g.a)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=Object(u.a)(e,V),a=Object(_.a)(i,["eventKey"]);return Object(v.a)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),s.createElement(y.a.Item,Object(r.a)({},n,{title:"string"==typeof t?t:void 0},a,{ref:o}))}}]),n}(s.Component),Y=function(e){var t,n=e.style,c=e.className,l=e.eventKey,p=(e.warnKey,e.disabled),d=e.itemIcon,h=e.children,v=e.role,y=e.onMouseEnter,m=e.onMouseLeave,g=e.onClick,b=e.onKeyDown,O=e.onFocus,_=Object(u.a)(e,H),x=B(l),E=s.useContext(S),C=E.prefixCls,k=E.onItemClick,A=E.disabled,L=E.overflowDisabled,R=E.itemIcon,N=E.selectedKeys,D=E.onActive,F=s.useContext(U)._internalRenderMenuItem,z="".concat(C,"-item"),V=s.useRef(),Y=s.useRef(),K=A||p,X=I(l);var q=function(e){return{key:l,keyPath:Object(a.a)(X).reverse(),item:V.current,domEvent:e}},Z=d||R,J=j(l,K,y,m),Q=J.active,$=Object(u.a)(J,G),ee=N.includes(l),te=M(X.length),ne={};"option"===e.role&&(ne["aria-selected"]=ee);var re=s.createElement(W,Object(r.a)({ref:V,elementRef:Y,role:null===v?"none":v||"menuitem",tabIndex:p?null:-1,"data-menu-id":L&&x?null:x},_,$,ne,{component:"li","aria-disabled":p,style:Object(i.a)(Object(i.a)({},te),n),className:f()(z,(t={},Object(o.a)(t,"".concat(z,"-active"),Q),Object(o.a)(t,"".concat(z,"-selected"),ee),Object(o.a)(t,"".concat(z,"-disabled"),K),t),c),onClick:function(e){if(!K){var t=q(e);null==g||g(P(t)),k(t)}},onKeyDown:function(e){if(null==b||b(e),e.which===w.a.ENTER){var t=q(e);null==g||g(P(t)),k(t)}},onFocus:function(e){D(l),null==O||O(e)}}),h,s.createElement(T,{props:Object(i.a)(Object(i.a)({},e),{},{isSelected:ee}),icon:Z}));return F&&(re=F(re,e,{selected:ee})),re};var K=function(e){var t=e.eventKey,n=R(),r=I(t);return s.useEffect((function(){if(n)return n.registerPath(t,r),function(){n.unregisterPath(t,r)}}),[r]),n?null:s.createElement(Y,e)},X=n("4wDe"),q=n("6Qj0"),Z=["label","children","key","type"];function J(e,t){return Object(q.a)(e).map((function(e,n){if(s.isValidElement(e)){var r,o,i=e.key,c=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;null==c&&(c="tmp_key-".concat([].concat(Object(a.a)(t),[n]).join("-")));var u={key:c,eventKey:c};return s.cloneElement(e,u)}return e}))}function Q(e,t,n){var o=e;return t&&(o=function e(t){return(t||[]).map((function(t,n){if(t&&"object"===Object(X.a)(t)){var o=t.label,i=t.children,a=t.key,c=t.type,l=Object(u.a)(t,Z),f=null!=a?a:"tmp-".concat(n);return i||"group"===c?"group"===c?s.createElement(Ue,Object(r.a)({key:f},l,{title:o}),e(i)):s.createElement(me,Object(r.a)({key:f},l,{title:o}),e(i)):"divider"===c?s.createElement(Ve,Object(r.a)({key:f},l)):s.createElement(K,Object(r.a)({key:f},l),o)}return null})).filter((function(e){return e}))}(t)),J(o,n)}function $(e){var t=s.useRef(e);t.current=e;var n=s.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var ee=["className","children"],te=function(e,t){var n=e.className,o=e.children,i=Object(u.a)(e,ee),a=s.useContext(S),c=a.prefixCls,l=a.mode,p=a.rtl;return s.createElement("ul",Object(r.a)({className:f()(c,p&&"".concat(c,"-rtl"),"".concat(c,"-sub"),"".concat(c,"-").concat("inline"===l?"inline":"vertical"),n)},i,{"data-menu-list":!0,ref:t}),o)},ne=s.forwardRef(te);ne.displayName="SubMenuList";var re=ne,oe=n("h/vM"),ie=n("jiyB"),ae={adjustX:1,adjustY:1},ce={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ae,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ae,offset:[4,0]}},ue={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ae,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ae,offset:[4,0]}};function se(e,t,n){return t||(n?n[e]||n.other:void 0)}var le={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function fe(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,u=e.popupClassName,l=e.popupOffset,p=e.disabled,d=e.mode,h=e.onVisibleChange,v=s.useContext(S),y=v.getPopupContainer,m=v.rtl,g=v.subMenuOpenDelay,b=v.subMenuCloseDelay,O=v.builtinPlacements,w=v.triggerSubMenuAction,_=v.forceSubMenuRender,x=v.rootClassName,E=v.motion,C=v.defaultMotions,j=s.useState(!1),k=Object(c.a)(j,2),P=k[0],T=k[1],M=m?Object(i.a)(Object(i.a)({},ue),O):Object(i.a)(Object(i.a)({},ce),O),A=le[d],L=se(d,E,C),R=Object(i.a)(Object(i.a)({},L),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),N=s.useRef();return s.useEffect((function(){return N.current=Object(ie.a)((function(){T(n)})),function(){ie.a.cancel(N.current)}}),[n]),s.createElement(oe.a,{prefixCls:t,popupClassName:f()("".concat(t,"-popup"),Object(o.a)({},"".concat(t,"-rtl"),m),u,x),stretch:"horizontal"===d?"minWidth":null,getPopupContainer:y,builtinPlacements:M,popupPlacement:A,popupVisible:P,popup:a,popupAlign:l&&{offset:l},action:p?[]:[w],mouseEnterDelay:g,mouseLeaveDelay:b,onPopupVisibleChange:h,forceRender:_,popupMotion:R},r)}var pe=n("B5SY");function de(e){var t=e.id,n=e.open,o=e.keyPath,a=e.children,u=s.useContext(S),l=u.prefixCls,f=u.forceSubMenuRender,p=u.motion,d=u.defaultMotions,h=u.mode,v=s.useRef(!1);v.current="inline"===h;var y=s.useState(!v.current),m=Object(c.a)(y,2),g=m[0],b=m[1],O=!!v.current&&n;s.useEffect((function(){v.current&&b(!1)}),[h]);var w=Object(i.a)({},se("inline",p,d));o.length>1&&(w.motionAppear=!1);var _=w.onVisibleChanged;return w.onVisibleChanged=function(e){return v.current||e||b(!0),null==_?void 0:_(e)},g?null:s.createElement(C,{mode:"inline",locked:!v.current},s.createElement(pe.b,Object(r.a)({visible:O},w,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return s.createElement(re,{id:t,className:n,style:r},a)})))}var he=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ve=["active"],ye=function(e){var t,n=e.style,a=e.className,l=e.title,p=e.eventKey,d=(e.warnKey,e.disabled),h=e.internalPopupClose,v=e.children,m=e.itemIcon,g=e.expandIcon,b=e.popupClassName,O=e.popupOffset,w=e.onClick,_=e.onMouseEnter,x=e.onMouseLeave,E=e.onTitleClick,k=e.onTitleMouseEnter,A=e.onTitleMouseLeave,L=Object(u.a)(e,he),R=B(p),N=s.useContext(S),F=N.prefixCls,z=N.mode,V=N.openKeys,H=N.disabled,G=N.overflowDisabled,W=N.activeKey,Y=N.selectedKeys,K=N.itemIcon,X=N.expandIcon,q=N.onItemClick,Z=N.onOpenChange,J=N.onActive,Q=s.useContext(U)._internalRenderSubMenuItem,ee=s.useContext(D).isSubPathKey,te=I(),ne="".concat(F,"-submenu"),oe=H||d,ie=s.useRef(),ae=s.useRef();var ce=m||K,ue=g||X,se=V.includes(p),le=!G&&se,pe=ee(Y,p),ye=j(p,oe,k,A),me=ye.active,ge=Object(u.a)(ye,ve),be=s.useState(!1),Oe=Object(c.a)(be,2),we=Oe[0],_e=Oe[1],xe=function(e){oe||_e(e)},Ee=s.useMemo((function(){return me||"inline"!==z&&(we||ee([W],p))}),[z,me,W,we,p,ee]),Se=M(te.length),Ce=$((function(e){null==w||w(P(e)),q(e)})),je=R&&"".concat(R,"-popup"),ke=s.createElement("div",Object(r.a)({role:"menuitem",style:Se,className:"".concat(ne,"-title"),tabIndex:oe?null:-1,ref:ie,title:"string"==typeof l?l:null,"data-menu-id":G&&R?null:R,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":je,"aria-disabled":oe,onClick:function(e){oe||(null==E||E({key:p,domEvent:e}),"inline"===z&&Z(p,!se))},onFocus:function(){J(p)}},ge),l,s.createElement(T,{icon:"horizontal"!==z?ue:null,props:Object(i.a)(Object(i.a)({},e),{},{isOpen:le,isSubMenu:!0})},s.createElement("i",{className:"".concat(ne,"-arrow")}))),Pe=s.useRef(z);if("inline"!==z&&(Pe.current=te.length>1?"vertical":z),!G){var Te=Pe.current;ke=s.createElement(fe,{mode:Te,prefixCls:ne,visible:!h&&le&&"inline"!==z,popupClassName:b,popupOffset:O,popup:s.createElement(C,{mode:"horizontal"===Te?"vertical":Te},s.createElement(re,{id:je,ref:ae},v)),disabled:oe,onVisibleChange:function(e){"inline"!==z&&Z(p,e)}},ke)}var Me=s.createElement(y.a.Item,Object(r.a)({role:"none"},L,{component:"li",style:n,className:f()(ne,"".concat(ne,"-").concat(z),a,(t={},Object(o.a)(t,"".concat(ne,"-open"),le),Object(o.a)(t,"".concat(ne,"-active"),Ee),Object(o.a)(t,"".concat(ne,"-selected"),pe),Object(o.a)(t,"".concat(ne,"-disabled"),oe),t)),onMouseEnter:function(e){xe(!0),null==_||_({key:p,domEvent:e})},onMouseLeave:function(e){xe(!1),null==x||x({key:p,domEvent:e})}}),ke,!G&&s.createElement(de,{id:je,open:le,keyPath:te},v));return Q&&(Me=Q(Me,e,{selected:pe,active:Ee,open:le,disabled:oe})),s.createElement(C,{onItemClick:Ce,mode:"horizontal"===z?"vertical":z,itemIcon:ce,expandIcon:ue},Me)};function me(e){var t,n=e.eventKey,r=e.children,o=I(n),i=J(r,o),a=R();return s.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:s.createElement(ye,e,i),s.createElement(N.Provider,{value:o},t)}var ge=n("wHo0"),be=w.a.LEFT,Oe=w.a.RIGHT,we=w.a.UP,_e=w.a.DOWN,xe=w.a.ENTER,Ee=w.a.ESC,Se=w.a.HOME,Ce=w.a.END,je=[we,_e,be,Oe];function ke(e,t){return Object(ge.a)(e,!0).filter((function(e){return t.has(e)}))}function Pe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=ke(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}function Te(e,t,n,r,i,a,c,u,l,f){var p=s.useRef(),d=s.useRef();d.current=t;var h=function(){ie.a.cancel(p.current)};return s.useEffect((function(){return function(){h()}}),[]),function(s){var v=s.which;if([].concat(je,[xe,Ee,Se,Ce]).includes(v)){var y,m,g,b=function(){return y=new Set,m=new Map,g=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(z(r,e),"']"));t&&(y.add(t),g.set(t,e),m.set(e,t))})),y};b();var O=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(m.get(t),y),w=g.get(O),_=function(e,t,n,r){var i,a,c,u;if("inline"===e&&r===xe)return{inlineTrigger:!0};var s=(i={},Object(o.a)(i,we,"prev"),Object(o.a)(i,_e,"next"),i),l=(a={},Object(o.a)(a,be,n?"next":"prev"),Object(o.a)(a,Oe,n?"prev":"next"),Object(o.a)(a,_e,"children"),Object(o.a)(a,xe,"children"),a),f=(c={},Object(o.a)(c,we,"prev"),Object(o.a)(c,_e,"next"),Object(o.a)(c,xe,"children"),Object(o.a)(c,Ee,"parent"),Object(o.a)(c,be,n?"children":"parent"),Object(o.a)(c,Oe,n?"parent":"children"),c);switch(null===(u={inline:s,horizontal:l,vertical:f,inlineSub:s,horizontalSub:f,verticalSub:f}["".concat(e).concat(t?"":"Sub")])||void 0===u?void 0:u[r]){case"prev":return{offset:-1,sibling:!0};case"next":return{offset:1,sibling:!0};case"parent":return{offset:-1,sibling:!1};case"children":return{offset:1,sibling:!1};default:return null}}(e,1===c(w,!0).length,n,v);if(!_&&v!==Se&&v!==Ce)return;(je.includes(v)||[Se,Ce].includes(v))&&s.preventDefault();var x=function(e){if(e){var t=e,n=e.querySelector("a");(null==n?void 0:n.getAttribute("href"))&&(t=n);var r=g.get(e);u(r),h(),p.current=Object(ie.a)((function(){d.current===r&&t.focus()}))}};if([Se,Ce].includes(v)||_.sibling||!O){var E,S,C=ke(E=O&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(O):i.current,y);S=v===Se?C[0]:v===Ce?C[C.length-1]:Pe(E,y,O,_.offset),x(S)}else if(_.inlineTrigger)l(w);else if(_.offset>0)l(w,!0),h(),p.current=Object(ie.a)((function(){b();var e=O.getAttribute("aria-controls"),t=Pe(document.getElementById(e),y);x(t)}),5);else if(_.offset<0){var j=c(w,!0),k=j[j.length-2],P=m.get(k);l(k,!1),x(P)}}null==f||f(s)}}var Me=Math.random().toFixed(5).toString().slice(2),Ae=0;var Le="__RC_UTIL_PATH_SPLIT__",Re=function(e){return e.join(Le)};function Ne(){var e=s.useState({}),t=Object(c.a)(e,2)[1],n=Object(s.useRef)(new Map),r=Object(s.useRef)(new Map),o=s.useState([]),i=Object(c.a)(o,2),u=i[0],l=i[1],f=Object(s.useRef)(0),p=Object(s.useRef)(!1),d=Object(s.useCallback)((function(e,o){var i=Re(o);r.current.set(i,e),n.current.set(e,i),f.current+=1;var a,c=f.current;a=function(){c===f.current&&(p.current||t({}))},Promise.resolve().then(a)}),[]),h=Object(s.useCallback)((function(e,t){var o=Re(t);r.current.delete(o),n.current.delete(e)}),[]),v=Object(s.useCallback)((function(e){l(e)}),[]),y=Object(s.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(Le);return t&&u.includes(o[0])&&o.unshift("rc-menu-more"),o}),[u]),m=Object(s.useCallback)((function(e,t){return e.some((function(e){return y(e,!0).includes(t)}))}),[y]),g=Object(s.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Le),o=new Set;return Object(a.a)(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return s.useEffect((function(){return function(){p.current=!0}}),[]),{registerPath:d,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:m,getKeyPath:y,getKeys:function(){var e=Object(a.a)(n.current.keys());return u.length&&e.push("rc-menu-more"),e},getSubPathKeys:g}}var Ie=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],De=[],Fe=["className","title","eventKey","children"],ze=["children"],Be=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=Object(u.a)(e,Fe),a=s.useContext(S).prefixCls,c="".concat(a,"-item-group");return s.createElement("li",Object(r.a)({},i,{onClick:function(e){return e.stopPropagation()},className:f()(c,t)}),s.createElement("div",{className:"".concat(c,"-title"),title:"string"==typeof n?n:void 0},n),s.createElement("ul",{className:"".concat(c,"-list")},o))};function Ue(e){var t=e.children,n=Object(u.a)(e,ze),r=J(t,I(n.eventKey));return R()?r:s.createElement(Be,Object(_.a)(n,["warnKey"]),r)}function Ve(e){var t=e.className,n=e.style,r=s.useContext(S).prefixCls;return R()?null:s.createElement("li",{className:f()("".concat(r,"-item-divider"),t),style:n})}var He=I,Ge=s.forwardRef((function(e,t){var n,l,p=e.prefixCls,v=void 0===p?"rc-menu":p,m=e.rootClassName,g=e.style,b=e.className,O=e.tabIndex,w=void 0===O?0:O,_=e.items,x=e.children,E=e.direction,S=e.id,j=e.mode,k=void 0===j?"vertical":j,T=e.inlineCollapsed,M=e.disabled,A=e.disabledOverflow,R=e.subMenuOpenDelay,N=void 0===R?.1:R,I=e.subMenuCloseDelay,B=void 0===I?.1:I,V=e.forceSubMenuRender,H=e.defaultOpenKeys,G=e.openKeys,W=e.activeKey,Y=e.defaultActiveFirst,X=e.selectable,q=void 0===X||X,Z=e.multiple,J=void 0!==Z&&Z,ee=e.defaultSelectedKeys,te=e.selectedKeys,ne=e.onSelect,re=e.onDeselect,oe=e.inlineIndent,ie=void 0===oe?24:oe,ae=e.motion,ce=e.defaultMotions,ue=e.triggerSubMenuAction,se=void 0===ue?"hover":ue,le=e.builtinPlacements,fe=e.itemIcon,pe=e.expandIcon,de=e.overflowedIndicator,he=void 0===de?"...":de,ve=e.overflowedIndicatorPopupClassName,ye=e.getPopupContainer,ge=e.onClick,be=e.onOpenChange,Oe=e.onKeyDown,we=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),_e=e._internalRenderSubMenuItem,xe=Object(u.a)(e,Ie),Ee=s.useMemo((function(){return Q(x,_,De)}),[x,_]),Se=s.useState(!1),Ce=Object(c.a)(Se,2),je=Ce[0],ke=Ce[1],Pe=s.useRef(),Le=function(e){var t=Object(h.a)(e,{value:e}),n=Object(c.a)(t,2),r=n[0],o=n[1];return s.useEffect((function(){Ae+=1;var e="".concat(Me,"-").concat(Ae);o("rc-menu-uuid-".concat(e))}),[]),r}(S),Re="rtl"===E;var Fe=s.useMemo((function(){return"inline"!==k&&"vertical"!==k||!T?[k,!1]:["vertical",T]}),[k,T]),ze=Object(c.a)(Fe,2),Be=ze[0],Ue=ze[1],Ve=s.useState(0),He=Object(c.a)(Ve,2),Ge=He[0],We=He[1],Ye=Ge>=Ee.length-1||"horizontal"!==Be||A,Ke=Object(h.a)(H,{value:G,postState:function(e){return e||De}}),Xe=Object(c.a)(Ke,2),qe=Xe[0],Ze=Xe[1],Je=function(e){Ze(e),null==be||be(e)},Qe=s.useState(qe),$e=Object(c.a)(Qe,2),et=$e[0],tt=$e[1],nt="inline"===Be,rt=s.useRef(!1);s.useEffect((function(){nt&&tt(qe)}),[qe]),s.useEffect((function(){rt.current?nt?Ze(et):Je(De):rt.current=!0}),[nt]);var ot=Ne(),it=ot.registerPath,at=ot.unregisterPath,ct=ot.refreshOverflowKeys,ut=ot.isSubPathKey,st=ot.getKeyPath,lt=ot.getKeys,ft=ot.getSubPathKeys,pt=s.useMemo((function(){return{registerPath:it,unregisterPath:at}}),[it,at]),dt=s.useMemo((function(){return{isSubPathKey:ut}}),[ut]);s.useEffect((function(){ct(Ye?De:Ee.slice(Ge+1).map((function(e){return e.key})))}),[Ge,Ye]);var ht=Object(h.a)(W||Y&&(null===(n=Ee[0])||void 0===n?void 0:n.key),{value:W}),vt=Object(c.a)(ht,2),yt=vt[0],mt=vt[1],gt=$((function(e){mt(e)})),bt=$((function(){mt(void 0)}));Object(s.useImperativeHandle)(t,(function(){return{list:Pe.current,focus:function(e){var t,n,r,o,i=null!=yt?yt:null===(t=Ee.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=Pe.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(z(Le,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}}));var Ot=Object(h.a)(ee||[],{value:te,postState:function(e){return Array.isArray(e)?e:null==e?De:[e]}}),wt=Object(c.a)(Ot,2),_t=wt[0],xt=wt[1],Et=$((function(e){null==ge||ge(P(e)),function(e){if(q){var t,n=e.key,r=_t.includes(n);t=J?r?_t.filter((function(e){return e!==n})):[].concat(Object(a.a)(_t),[n]):[n],xt(t);var o=Object(i.a)(Object(i.a)({},e),{},{selectedKeys:t});r?null==re||re(o):null==ne||ne(o)}!J&&qe.length&&"inline"!==Be&&Je(De)}(e)})),St=$((function(e,t){var n=qe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Be){var r=ft(e);n=n.filter((function(e){return!r.has(e)}))}d()(qe,n)||Je(n)})),Ct=$(ye),jt=Te(Be,yt,Re,Le,Pe,lt,st,mt,(function(e,t){var n=null!=t?t:!qe.includes(e);St(e,n)}),Oe);s.useEffect((function(){ke(!0)}),[]);var kt=s.useMemo((function(){return{_internalRenderMenuItem:we,_internalRenderSubMenuItem:_e}}),[we,_e]),Pt="horizontal"!==Be||A?Ee:Ee.map((function(e,t){return s.createElement(C,{key:e.key,overflowDisabled:t>Ge},e)})),Tt=s.createElement(y.a,Object(r.a)({id:S,ref:Pe,prefixCls:"".concat(v,"-overflow"),component:"ul",itemComponent:K,className:f()(v,"".concat(v,"-root"),"".concat(v,"-").concat(Be),b,(l={},Object(o.a)(l,"".concat(v,"-inline-collapsed"),Ue),Object(o.a)(l,"".concat(v,"-rtl"),Re),l),m),dir:E,style:g,role:"menu",tabIndex:w,data:Pt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?Ee.slice(-t):null;return s.createElement(me,{eventKey:"rc-menu-more",title:he,disabled:Ye,internalPopupClose:0===t,popupClassName:ve},n)},maxCount:"horizontal"!==Be||A?y.a.INVALIDATE:y.a.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){We(e)},onKeyDown:jt},xe));return s.createElement(U.Provider,{value:kt},s.createElement(F.Provider,{value:Le},s.createElement(C,{prefixCls:v,rootClassName:m,mode:Be,openKeys:qe,rtl:Re,disabled:M,motion:je?ae:null,defaultMotions:je?ce:null,activeKey:yt,onActive:gt,onInactive:bt,selectedKeys:_t,inlineIndent:ie,subMenuOpenDelay:N,subMenuCloseDelay:B,forceSubMenuRender:V,builtinPlacements:le,triggerSubMenuAction:se,getPopupContainer:Ct,itemIcon:fe,expandIcon:pe,onItemClick:Et,onOpenChange:St},s.createElement(D.Provider,{value:dt},Tt),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(L.Provider,{value:pt},Ee)))))}));Ge.Item=K,Ge.SubMenu=me,Ge.ItemGroup=Ue,Ge.Divider=Ve;t.g=Ge},"1kx4":function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},"1odi":function(e,t){e.exports={}},"1vzs":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("Szl1"),o=n("+RZ0"),i=n("Sp6C"),a=n("sxM7"),c=n("QmBg"),u=n("xynK"),s=n("ERkP");function l(e){var t=e.suffixIcon,n=e.clearIcon,l=e.menuItemSelectedIcon,f=e.removeIcon,p=e.loading,d=e.multiple,h=e.hasFeedback,v=e.prefixCls,y=e.showArrow,m=e.feedbackIcon,g=n;n||(g=s.createElement(o.a,null));var b=function(e){return s.createElement(s.Fragment,null,!1!==y&&e,h&&m)},O=null;if(void 0!==t)O=b(t);else if(p)O=b(s.createElement(c.a,{spin:!0}));else{var w="".concat(v,"-suffix");O=function(e){var t=e.open,n=e.showSearch;return b(t&&n?s.createElement(u.a,{className:w}):s.createElement(a.a,{className:w}))}}return{clearIcon:g,suffixIcon:O,itemIcon:void 0!==l?l:d?s.createElement(r.a,null):null,removeIcon:void 0!==f?f:s.createElement(i.a,null)}}},"1wcP":function(e,t,n){},"1xil":function(e,t,n){var r=n("YpBQ");e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},"2/Rp":function(e,t,n){"use strict";var r=n("zvFY");t.a=r.b},"29UP":function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="CaretDownOutlined";t.a=o.forwardRef(c)},"2Fbm":function(e,t,n){var r=n("5pfJ");e.exports=function(){this.__data__=r?r(null):{},this.size=0}},"2Lg3":function(e,t){e.exports=function(e){return null==e}},"2ZvR":function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},"2fM7":function(e,t,n){"use strict";var r=n("zjfJ"),o=n("cxan"),i=n("O94r"),a=n.n(i),c=n("diSF"),u=n("WSTu"),s=n("ERkP"),l=n("H84U"),f=n("XI05"),p=n("caoh"),d=n("3Nzz"),h=n("ihLV"),v=n("EXcs"),y=n("ATYA"),m=n("1vzs"),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},b=function(e,t){var n,i,b=e.prefixCls,O=e.bordered,w=void 0===O||O,_=e.className,x=e.getPopupContainer,E=e.dropdownClassName,S=e.listHeight,C=void 0===S?256:S,j=e.placement,k=e.listItemHeight,P=void 0===k?24:k,T=e.size,M=e.disabled,A=e.notFoundContent,L=e.status,R=e.showArrow,N=g(e,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),I=s.useContext(l.b),D=I.getPopupContainer,F=I.getPrefixCls,z=I.renderEmpty,B=I.direction,U=I.virtual,V=I.dropdownMatchSelectWidth,H=s.useContext(d.b),G=F("select",b),W=F(),Y=s.useMemo((function(){var e=N.mode;if("combobox"!==e)return"SECRET_COMBOBOX_MODE_DO_NOT_USE"===e?"combobox":e}),[N.mode]),K="multiple"===Y||"tags"===Y,X=void 0!==R?R:N.loading||!(K||"combobox"===Y),q=Object(s.useContext)(h.b),Z=q.status,J=q.hasFeedback,Q=q.isFormItemInput,$=q.feedbackIcon,ee=Object(y.a)(Z,L);i=void 0!==A?A:"combobox"===Y?null:(z||f.a)("Select");var te=Object(m.a)(Object(o.a)(Object(o.a)({},N),{multiple:K,hasFeedback:J,feedbackIcon:$,showArrow:X,prefixCls:G})),ne=te.suffixIcon,re=te.itemIcon,oe=te.removeIcon,ie=te.clearIcon,ae=Object(u.a)(N,["suffixIcon","itemIcon"]),ce=a()(E,Object(r.a)({},"".concat(G,"-dropdown-").concat(B),"rtl"===B)),ue=T||H,se=s.useContext(p.b),le=M||se,fe=a()((n={},Object(r.a)(n,"".concat(G,"-lg"),"large"===ue),Object(r.a)(n,"".concat(G,"-sm"),"small"===ue),Object(r.a)(n,"".concat(G,"-rtl"),"rtl"===B),Object(r.a)(n,"".concat(G,"-borderless"),!w),Object(r.a)(n,"".concat(G,"-in-form-item"),Q),n),Object(y.b)(G,ee,J),_);return s.createElement(c.d,Object(o.a)({ref:t,virtual:U,dropdownMatchSelectWidth:V},ae,{transitionName:Object(v.c)(W,Object(v.b)(j),N.transitionName),listHeight:C,listItemHeight:P,mode:Y,prefixCls:G,placement:void 0!==j?j:"rtl"===B?"bottomRight":"bottomLeft",direction:B,inputIcon:ne,menuItemSelectedIcon:re,removeIcon:oe,clearIcon:ie,notFoundContent:i,className:fe,getPopupContainer:x||D,dropdownClassName:ce,showArrow:J||R,disabled:le}))},O=s.forwardRef(b);O.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",O.Option=c.c,O.OptGroup=c.b,t.a=O},"2gZs":function(e,t,n){var r=n("POz8"),o=n("POgt"),i=n("amH4"),a=n("fVMg")("toStringTag"),c=Object,u="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=c(e),a))?n:u?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},"2hpT":function(e,t,n){var r=n("WhsZ"),o=n("jrXf"),i=n("P1cI");e.exports=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?o(n):n},r((function(t,n){return new e(t,n)}))}()},"2lrR":function(e,t,n){"use strict";n.r(t),n.d(t,"FBXLoader",(function(){return H}));n("6JDI"),n("nndn"),n("tQbP");var r=n("i8eK"),o={},i=o;function a(e,t){var n,r=e.split("."),o=i;!(r[0]in o)&&o.execScript&&o.execScript("var "+r[0]);for(;r.length&&(n=r.shift());)r.length||void 0===t?o=o[n]?o[n]:o[n]={}:o[n]=t}var c="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function u(e){var t,n,r,o,i,a,u,s,l,f,p=e.length,d=0,h=Number.POSITIVE_INFINITY;for(s=0;s<p;++s)e[s]>d&&(d=e[s]),e[s]<h&&(h=e[s]);for(t=1<<d,n=new(c?Uint32Array:Array)(t),r=1,o=0,i=2;r<=d;){for(s=0;s<p;++s)if(e[s]===r){for(a=0,u=o,l=0;l<r;++l)a=a<<1|1&u,u>>=1;for(f=r<<16|s,l=a;l<t;l+=i)n[l]=f;++o}++r,o<<=1,i<<=1}return[n,d,h]}function s(e,t){switch(this.g=[],this.h=32768,this.d=this.f=this.a=this.l=0,this.input=c?new Uint8Array(e):e,this.m=!1,this.i=f,this.r=!1,!t&&(t={})||(t.index&&(this.a=t.index),t.bufferSize&&(this.h=t.bufferSize),t.bufferType&&(this.i=t.bufferType),t.resize&&(this.r=t.resize)),this.i){case l:this.b=32768,this.c=new(c?Uint8Array:Array)(32768+this.h+258);break;case f:this.b=0,this.c=new(c?Uint8Array:Array)(this.h),this.e=this.z,this.n=this.v,this.j=this.w;break;default:throw Error("invalid inflate mode")}}var l=0,f=1,p={t:l,s:f};s.prototype.k=function(){for(;!this.m;){var e=M(this,3);switch(1&e&&(this.m=!0),e>>>=1){case 0:var t=this.input,n=this.a,r=this.c,o=this.b,i=t.length,a=void 0,s=r.length,p=void 0;if(this.d=this.f=0,n+1>=i)throw Error("invalid uncompressed block header: LEN");if(a=t[n++]|t[n++]<<8,n+1>=i)throw Error("invalid uncompressed block header: NLEN");if(a===~(t[n++]|t[n++]<<8))throw Error("invalid uncompressed block header: length verify");if(n+a>t.length)throw Error("input buffer is broken");switch(this.i){case l:for(;o+a>r.length;){if(a-=p=s-o,c)r.set(t.subarray(n,n+p),o),o+=p,n+=p;else for(;p--;)r[o++]=t[n++];this.b=o,r=this.e(),o=this.b}break;case f:for(;o+a>r.length;)r=this.e({p:2});break;default:throw Error("invalid inflate mode")}if(c)r.set(t.subarray(n,n+a),o),o+=a,n+=a;else for(;a--;)r[o++]=t[n++];this.a=n,this.b=o,this.c=r;break;case 1:this.j(k,T);break;case 2:var d,h,v,m,g=M(this,5)+257,b=M(this,5)+1,O=M(this,4)+4,w=new(c?Uint8Array:Array)(y.length),_=void 0,x=void 0,E=void 0,S=void 0,C=void 0;for(C=0;C<O;++C)w[y[C]]=M(this,3);if(!c)for(C=O,O=w.length;C<O;++C)w[y[C]]=0;for(d=u(w),_=new(c?Uint8Array:Array)(g+b),C=0,m=g+b;C<m;)switch(x=A(this,d)){case 16:for(S=3+M(this,2);S--;)_[C++]=E;break;case 17:for(S=3+M(this,3);S--;)_[C++]=0;E=0;break;case 18:for(S=11+M(this,7);S--;)_[C++]=0;E=0;break;default:E=_[C++]=x}h=u(c?_.subarray(0,g):_.slice(0,g)),v=u(c?_.subarray(g):_.slice(g)),this.j(h,v);break;default:throw Error("unknown BTYPE: "+e)}}return this.n()};var d,h,v=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],y=c?new Uint16Array(v):v,m=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],g=c?new Uint16Array(m):m,b=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],O=c?new Uint8Array(b):b,w=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],_=c?new Uint16Array(w):w,x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=c?new Uint8Array(x):x,S=new(c?Uint8Array:Array)(288);for(d=0,h=S.length;d<h;++d)S[d]=143>=d?8:255>=d?9:279>=d?7:8;var C,j,k=u(S),P=new(c?Uint8Array:Array)(30);for(C=0,j=P.length;C<j;++C)P[C]=5;var T=u(P);function M(e,t){for(var n,r=e.f,o=e.d,i=e.input,a=e.a,c=i.length;o<t;){if(a>=c)throw Error("input buffer is broken");r|=i[a++]<<o,o+=8}return n=r&(1<<t)-1,e.f=r>>>t,e.d=o-t,e.a=a,n}function A(e,t){for(var n,r,o=e.f,i=e.d,a=e.input,c=e.a,u=a.length,s=t[0],l=t[1];i<l&&!(c>=u);)o|=a[c++]<<i,i+=8;if((r=(n=s[o&(1<<l)-1])>>>16)>i)throw Error("invalid code length: "+r);return e.f=o>>r,e.d=i-r,e.a=c,65535&n}function L(e,t){var n,r;switch(this.input=e,this.a=0,!t&&(t={})||(t.index&&(this.a=t.index),t.verify&&(this.A=t.verify)),n=e[this.a++],r=e[this.a++],15&n){case R:this.method=R;break;default:throw Error("unsupported compression method")}if(0!=((n<<8)+r)%31)throw Error("invalid fcheck flag:"+((n<<8)+r)%31);if(32&r)throw Error("fdict flag is not supported");this.q=new s(e,{index:this.a,bufferSize:t.bufferSize,bufferType:t.bufferType,resize:t.resize})}s.prototype.j=function(e,t){var n=this.c,r=this.b;this.o=e;for(var o,i,a,c,u=n.length-258;256!==(o=A(this,e));)if(256>o)r>=u&&(this.b=r,n=this.e(),r=this.b),n[r++]=o;else for(c=g[i=o-257],0<O[i]&&(c+=M(this,O[i])),o=A(this,t),a=_[o],0<E[o]&&(a+=M(this,E[o])),r>=u&&(this.b=r,n=this.e(),r=this.b);c--;)n[r]=n[r++-a];for(;8<=this.d;)this.d-=8,this.a--;this.b=r},s.prototype.w=function(e,t){var n=this.c,r=this.b;this.o=e;for(var o,i,a,c,u=n.length;256!==(o=A(this,e));)if(256>o)r>=u&&(u=(n=this.e()).length),n[r++]=o;else for(c=g[i=o-257],0<O[i]&&(c+=M(this,O[i])),o=A(this,t),a=_[o],0<E[o]&&(a+=M(this,E[o])),r+c>u&&(u=(n=this.e()).length);c--;)n[r]=n[r++-a];for(;8<=this.d;)this.d-=8,this.a--;this.b=r},s.prototype.e=function(){var e,t,n=new(c?Uint8Array:Array)(this.b-32768),r=this.b-32768,o=this.c;if(c)n.set(o.subarray(32768,n.length));else for(e=0,t=n.length;e<t;++e)n[e]=o[e+32768];if(this.g.push(n),this.l+=n.length,c)o.set(o.subarray(r,r+32768));else for(e=0;32768>e;++e)o[e]=o[r+e];return this.b=32768,o},s.prototype.z=function(e){var t,n,r,o=this.input.length/this.a+1|0,i=this.input,a=this.c;return e&&("number"==typeof e.p&&(o=e.p),"number"==typeof e.u&&(o+=e.u)),2>o?n=(r=(i.length-this.a)/this.o[2]/2*258|0)<a.length?a.length+r:a.length<<1:n=a.length*o,c?(t=new Uint8Array(n)).set(a):t=a,this.c=t},s.prototype.n=function(){var e,t,n,r,o,i=0,a=this.c,u=this.g,s=new(c?Uint8Array:Array)(this.l+(this.b-32768));if(0===u.length)return c?this.c.subarray(32768,this.b):this.c.slice(32768,this.b);for(t=0,n=u.length;t<n;++t)for(r=0,o=(e=u[t]).length;r<o;++r)s[i++]=e[r];for(t=32768,n=this.b;t<n;++t)s[i++]=a[t];return this.g=[],this.buffer=s},s.prototype.v=function(){var e,t=this.b;return c?this.r?(e=new Uint8Array(t)).set(this.c.subarray(0,t)):e=this.c.subarray(0,t):(this.c.length>t&&(this.c.length=t),e=this.c),this.buffer=e},L.prototype.k=function(){var e,t,n=this.input;if(e=this.q.k(),this.a=this.q.a,this.A){t=(n[this.a++]<<24|n[this.a++]<<16|n[this.a++]<<8|n[this.a++])>>>0;var r=e;if("string"==typeof r){var o,i,a=r.split("");for(o=0,i=a.length;o<i;o++)a[o]=(255&a[o].charCodeAt(0))>>>0;r=a}for(var c,u=1,s=0,l=r.length,f=0;0<l;){l-=c=1024<l?1024:l;do{s+=u+=r[f++]}while(--c);u%=65521,s%=65521}if(t!==(s<<16|u)>>>0)throw Error("invalid adler-32 checksum")}return e};var R=8;a("Zlib.Inflate",L),a("Zlib.Inflate.prototype.decompress",L.prototype.k);var N,I,D,F,z={ADAPTIVE:p.s,BLOCK:p.t};if(Object.keys)N=Object.keys(z);else for(I in N=[],D=0,z)N[D++]=I;for(D=0,F=N.length;D<F;++D)a("Zlib.Inflate.BufferType."+(I=N[D]),z[I]);var B=o.Zlib,U={findSpan:function(e,t,n){var r=n.length-e-1;if(t>=n[r])return r-1;if(t<=n[e])return e;for(var o=e,i=r,a=Math.floor((o+i)/2);t<n[a]||t>=n[a+1];)t<n[a]?i=a:o=a,a=Math.floor((o+i)/2);return a},calcBasisFunctions:function(e,t,n,r){var o=[],i=[],a=[];o[0]=1;for(var c=1;c<=n;++c){i[c]=t-r[e+1-c],a[c]=r[e+c]-t;for(var u=0,s=0;s<c;++s){var l=a[s+1],f=i[c-s],p=o[s]/(l+f);o[s]=u+l*p,u=f*p}o[c]=u}return o},calcBSplinePoint:function(e,t,n,o){for(var i=this.findSpan(e,o,t),a=this.calcBasisFunctions(i,o,e,t),c=new r.Vector4(0,0,0,0),u=0;u<=e;++u){var s=n[i-e+u],l=a[u],f=s.w*l;c.x+=s.x*f,c.y+=s.y*f,c.z+=s.z*f,c.w+=s.w*l}return c},calcBasisFunctionDerivatives:function(e,t,n,r,o){for(var i=[],a=0;a<=n;++a)i[a]=0;var c=[];for(a=0;a<=r;++a)c[a]=i.slice(0);var u=[];for(a=0;a<=n;++a)u[a]=i.slice(0);u[0][0]=1;for(var s=i.slice(0),l=i.slice(0),f=1;f<=n;++f){s[f]=t-o[e+1-f],l[f]=o[e+f]-t;for(var p=0,d=0;d<f;++d){var h=l[d+1],v=s[f-d];u[f][d]=h+v;var y=u[d][f-1]/u[f][d];u[d][f]=p+h*y,p=v*y}u[f][f]=p}for(f=0;f<=n;++f)c[0][f]=u[f][n];for(d=0;d<=n;++d){var m=0,g=1,b=[];for(a=0;a<=n;++a)b[a]=i.slice(0);b[0][0]=1;for(var O=1;O<=r;++O){var w=0,_=d-O,x=n-O;d>=O&&(b[g][0]=b[m][0]/u[x+1][_],w=b[g][0]*u[_][x]);var E=d-1<=x?O-1:n-d;for(f=_>=-1?1:-_;f<=E;++f)b[g][f]=(b[m][f]-b[m][f-1])/u[x+1][_+f],w+=b[g][f]*u[_+f][x];d<=x&&(b[g][O]=-b[m][O-1]/u[x+1][d],w+=b[g][O]*u[d][x]),c[O][d]=w;f=m;m=g,g=f}}for(d=n,O=1;O<=r;++O){for(f=0;f<=n;++f)c[O][f]*=d;d*=n-O}return c},calcBSplineDerivatives:function(e,t,n,o,i){for(var a=i<e?i:e,c=[],u=this.findSpan(e,o,t),s=this.calcBasisFunctionDerivatives(u,o,e,a,t),l=[],f=0;f<n.length;++f){var p=(h=n[f].clone()).w;h.x*=p,h.y*=p,h.z*=p,l[f]=h}for(var d=0;d<=a;++d){for(var h=l[u-e].clone().multiplyScalar(s[d][0]),v=1;v<=e;++v)h.add(l[u-e+v].clone().multiplyScalar(s[d][v]));c[d]=h}for(d=a+1;d<=i+1;++d)c[d]=new r.Vector4(0,0,0);return c},calcKoverI:function(e,t){for(var n=1,r=2;r<=e;++r)n*=r;var o=1;for(r=2;r<=t;++r)o*=r;for(r=2;r<=e-t;++r)o*=r;return n/o},calcRationalCurveDerivatives:function(e){for(var t=e.length,n=[],o=[],i=0;i<t;++i){var a=e[i];n[i]=new r.Vector3(a.x,a.y,a.z),o[i]=a.w}for(var c=[],u=0;u<t;++u){var s=n[u].clone();for(i=1;i<=u;++i)s.sub(c[u-i].clone().multiplyScalar(this.calcKoverI(u,i)*o[i]));c[u]=s.divideScalar(o[0])}return c},calcNURBSDerivatives:function(e,t,n,r,o){var i=this.calcBSplineDerivatives(e,t,n,r,o);return this.calcRationalCurveDerivatives(i)},calcSurfacePoint:function(e,t,n,o,i,a,c,u){for(var s=this.findSpan(e,a,n),l=this.findSpan(t,c,o),f=this.calcBasisFunctions(s,a,e,n),p=this.calcBasisFunctions(l,c,t,o),d=[],h=0;h<=t;++h){d[h]=new r.Vector4(0,0,0,0);for(var v=0;v<=e;++v){var y=i[s-e+v][l-t+h].clone(),m=y.w;y.x*=m,y.y*=m,y.z*=m,d[h].add(y.multiplyScalar(f[v]))}}var g=new r.Vector4(0,0,0,0);for(h=0;h<=t;++h)g.add(d[h].multiplyScalar(p[h]));g.divideScalar(g.w),u.set(g.x,g.y,g.z)}},V=function(e,t,n,o,i){r.Curve.call(this),this.degree=e,this.knots=t,this.controlPoints=[],this.startKnot=o||0,this.endKnot=i||this.knots.length-1;for(var a=0;a<n.length;++a){var c=n[a];this.controlPoints[a]=new r.Vector4(c.x,c.y,c.z,c.w)}};(V.prototype=Object.create(r.Curve.prototype)).constructor=V,V.prototype.getPoint=function(e){var t=this.knots[this.startKnot]+e*(this.knots[this.endKnot]-this.knots[this.startKnot]),n=U.calcBSplinePoint(this.degree,this.knots,this.controlPoints,t);return 1!=n.w&&n.divideScalar(n.w),new r.Vector3(n.x,n.y,n.z)},V.prototype.getTangent=function(e){var t=this.knots[0]+e*(this.knots[this.knots.length-1]-this.knots[0]),n=U.calcNURBSDerivatives(this.degree,this.knots,this.controlPoints,t,1)[1].clone();return n.normalize(),n};var H=function(){var e,t,n;function o(e){r.Loader.call(this,e)}function i(e,t){this.textureLoader=e,this.manager=t}function a(){}function c(){}function u(){}function s(){}function l(e,t){this.dv=new DataView(e),this.offset=0,this.littleEndian=void 0===t||t}function f(){}function p(e){var t=e.match(/FBXVersion: (\d+)/);if(t)return parseInt(t[1]);throw new Error("THREE.FBXLoader: Cannot find the version number for the file given.")}function d(e){return e/46186158e3}o.prototype=Object.assign(Object.create(r.Loader.prototype),{constructor:o,load:function(e,t,n,o){var i=this,a=""===i.path?r.LoaderUtils.extractUrlBase(e):i.path,c=new r.FileLoader(this.manager);c.setPath(i.path),c.setResponseType("arraybuffer"),c.load(e,(function(n){try{t(i.parse(n,a))}catch(r){setTimeout((function(){o&&o(r),i.manager.itemError(e)}),0)}}),n,o)},parse:function(t,n){if(c="Kaydara FBX Binary \0",(a=t).byteLength>=c.length&&c===w(a,0,c.length))e=(new s).parse(t);else{var o=w(t);if(!function(e){var t=["K","a","y","d","a","r","a","\\","F","B","X","\\","B","i","n","a","r","y","\\","\\"],n=0;for(var r=0;r<t.length;++r){if((i=void 0,i=e[(o=1)-1],e=e.slice(n+o),n++,i)===t[r])return!1}var o,i;return!0}(o))throw new Error("THREE.FBXLoader: Unknown format.");if(p(o)<7e3)throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: "+p(o));e=(new u).parse(o)}var a,c;return new i(new r.TextureLoader(this.manager).setPath(this.resourcePath||n).setCrossOrigin(this.crossOrigin),this.manager).parse(e)}}),i.prototype={constructor:i,parse:function(){t=this.parseConnections();var e=this.parseImages(),r=this.parseTextures(e),o=this.parseMaterials(r),i=this.parseDeformers(),c=(new a).parse(i);return this.parseScene(i,c,o),n},parseConnections:function(){var t=new Map;"Connections"in e&&e.Connections.connections.forEach((function(e){var n=e[0],r=e[1],o=e[2];t.has(n)||t.set(n,{parents:[],children:[]});var i={ID:r,relationship:o};t.get(n).parents.push(i),t.has(r)||t.set(r,{parents:[],children:[]});var a={ID:n,relationship:o};t.get(r).children.push(a)}));return t},parseImages:function(){var t={},n={};if("Video"in e.Objects){var r=e.Objects.Video;for(var o in r){var i=r[o];if(t[s=parseInt(o)]=i.RelativeFilename||i.Filename,"Content"in i){var a=i.Content instanceof ArrayBuffer&&i.Content.byteLength>0,c="string"==typeof i.Content&&""!==i.Content;if(a||c){var u=this.parseImage(r[o]);n[i.RelativeFilename||i.Filename]=u}}}}for(var s in t){var l=t[s];void 0!==n[l]?t[s]=n[l]:t[s]=t[s].split("\\").pop()}return t},parseImage:function(e){var t,n=e.Content,r=e.RelativeFilename||e.Filename,o=r.slice(r.lastIndexOf(".")+1).toLowerCase();switch(o){case"bmp":t="image/bmp";break;case"jpg":case"jpeg":t="image/jpeg";break;case"png":t="image/png";break;case"tif":t="image/tiff";break;case"tga":null===this.manager.getHandler(".tga")&&console.warn("FBXLoader: TGA loader not found, skipping ",r),t="image/tga";break;default:return void console.warn('FBXLoader: Image type "'+o+'" is not supported.')}if("string"==typeof n)return"data:"+t+";base64,"+n;var i=new Uint8Array(n);return window.URL.createObjectURL(new Blob([i],{type:t}))},parseTextures:function(t){var n=new Map;if("Texture"in e.Objects){var r=e.Objects.Texture;for(var o in r){var i=this.parseTexture(r[o],t);n.set(parseInt(o),i)}}return n},parseTexture:function(e,t){var n=this.loadTexture(e,t);n.ID=e.id,n.name=e.attrName;var o=e.WrapModeU,i=e.WrapModeV,a=void 0!==o?o.value:0,c=void 0!==i?i.value:0;if(n.wrapS=0===a?r.RepeatWrapping:r.ClampToEdgeWrapping,n.wrapT=0===c?r.RepeatWrapping:r.ClampToEdgeWrapping,"Scaling"in e){var u=e.Scaling.value;n.repeat.x=u[0],n.repeat.y=u[1]}return n},loadTexture:function(e,n){var o,i,a=this.textureLoader.path,c=t.get(e.id).children;void 0!==c&&c.length>0&&void 0!==n[c[0].ID]&&(0!==(o=n[c[0].ID]).indexOf("blob:")&&0!==o.indexOf("data:")||this.textureLoader.setPath(void 0));var u=e.FileName.slice(-3).toLowerCase();if("tga"===u){var s=this.manager.getHandler(".tga");null===s?(console.warn("FBXLoader: TGA loader not found, creating placeholder texture for",e.RelativeFilename),i=new r.Texture):i=s.load(o)}else"psd"===u?(console.warn("FBXLoader: PSD textures are not supported, creating placeholder texture for",e.RelativeFilename),i=new r.Texture):i=this.textureLoader.load(o);return this.textureLoader.setPath(a),i},parseMaterials:function(t){var n=new Map;if("Material"in e.Objects){var r=e.Objects.Material;for(var o in r){var i=this.parseMaterial(r[o],t);null!==i&&n.set(parseInt(o),i)}}return n},parseMaterial:function(e,n){var o=e.id,i=e.attrName,a=e.ShadingModel;if("object"==typeof a&&(a=a.value),!t.has(o))return null;var c,u=this.parseParameters(e,n,o);switch(a.toLowerCase()){case"phong":c=new r.MeshPhongMaterial;break;case"lambert":c=new r.MeshLambertMaterial;break;default:console.warn('THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.',a),c=new r.MeshPhongMaterial}return c.setValues(u),c.name=i,c},parseParameters:function(e,n,o){var i={};e.BumpFactor&&(i.bumpScale=e.BumpFactor.value),e.Diffuse?i.color=(new r.Color).fromArray(e.Diffuse.value):e.DiffuseColor&&"Color"===e.DiffuseColor.type&&(i.color=(new r.Color).fromArray(e.DiffuseColor.value)),e.DisplacementFactor&&(i.displacementScale=e.DisplacementFactor.value),e.Emissive?i.emissive=(new r.Color).fromArray(e.Emissive.value):e.EmissiveColor&&"Color"===e.EmissiveColor.type&&(i.emissive=(new r.Color).fromArray(e.EmissiveColor.value)),e.EmissiveFactor&&(i.emissiveIntensity=parseFloat(e.EmissiveFactor.value)),e.Opacity&&(i.opacity=parseFloat(e.Opacity.value)),i.opacity<1&&(i.transparent=!0),e.ReflectionFactor&&(i.reflectivity=e.ReflectionFactor.value),e.Shininess&&(i.shininess=e.Shininess.value),e.Specular?i.specular=(new r.Color).fromArray(e.Specular.value):e.SpecularColor&&"Color"===e.SpecularColor.type&&(i.specular=(new r.Color).fromArray(e.SpecularColor.value));var a=this;return t.get(o).children.forEach((function(e){var t=e.relationship;switch(t){case"Bump":i.bumpMap=a.getTexture(n,e.ID);break;case"Maya|TEX_ao_map":i.aoMap=a.getTexture(n,e.ID);break;case"DiffuseColor":case"Maya|TEX_color_map":i.map=a.getTexture(n,e.ID),i.map.encoding=r.sRGBEncoding;break;case"DisplacementColor":i.displacementMap=a.getTexture(n,e.ID);break;case"EmissiveColor":i.emissiveMap=a.getTexture(n,e.ID),i.emissiveMap.encoding=r.sRGBEncoding;break;case"NormalMap":case"Maya|TEX_normal_map":i.normalMap=a.getTexture(n,e.ID);break;case"ReflectionColor":i.envMap=a.getTexture(n,e.ID),i.envMap.mapping=r.EquirectangularReflectionMapping,i.envMap.encoding=r.sRGBEncoding;break;case"SpecularColor":i.specularMap=a.getTexture(n,e.ID),i.specularMap.encoding=r.sRGBEncoding;break;case"TransparentColor":i.alphaMap=a.getTexture(n,e.ID),i.transparent=!0;break;case"AmbientColor":case"ShininessExponent":case"SpecularFactor":case"VectorDisplacementColor":default:console.warn("THREE.FBXLoader: %s map is not supported in three.js, skipping texture.",t)}})),i},getTexture:function(n,r){return"LayeredTexture"in e.Objects&&r in e.Objects.LayeredTexture&&(console.warn("THREE.FBXLoader: layered textures are not supported in three.js. Discarding all but first layer."),r=t.get(r).children[0].ID),n.get(r)},parseDeformers:function(){var n={},r={};if("Deformer"in e.Objects){var o=e.Objects.Deformer;for(var i in o){var a=o[i],c=t.get(parseInt(i));if("Skin"===a.attrType){var u=this.parseSkeleton(c,o);u.ID=i,c.parents.length>1&&console.warn("THREE.FBXLoader: skeleton attached to more than one geometry is not supported."),u.geometryID=c.parents[0].ID,n[i]=u}else if("BlendShape"===a.attrType){var s={id:i};s.rawTargets=this.parseMorphTargets(c,o),s.id=i,c.parents.length>1&&console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."),r[i]=s}}}return{skeletons:n,morphTargets:r}},parseSkeleton:function(e,t){var n=[];return e.children.forEach((function(e){var o=t[e.ID];if("Cluster"===o.attrType){var i={ID:e.ID,indices:[],weights:[],transformLink:(new r.Matrix4).fromArray(o.TransformLink.a)};"Indexes"in o&&(i.indices=o.Indexes.a,i.weights=o.Weights.a),n.push(i)}})),{rawBones:n,bones:[]}},parseMorphTargets:function(e,n){for(var r=[],o=0;o<e.children.length;o++){var i=e.children[o],a=n[i.ID],c={name:a.attrName,initialWeight:a.DeformPercent,id:a.id,fullWeights:a.FullWeights.a};if("BlendShapeChannel"!==a.attrType)return;c.geoID=t.get(parseInt(i.ID)).children.filter((function(e){return void 0===e.relationship}))[0].ID,r.push(c)}return r},parseScene:function(o,i,a){n=new r.Group;var u=this.parseModels(o.skeletons,i,a),s=e.Objects.Model,l=this;u.forEach((function(e){var r=s[e.ID];l.setLookAtProperties(e,r),t.get(e.ID).parents.forEach((function(t){var n=u.get(t.ID);void 0!==n&&n.add(e)})),null===e.parent&&n.add(e)})),this.bindSkeleton(o.skeletons,i,u),this.createAmbientLight(),this.setupMorphMaterials(),n.traverse((function(e){if(e.userData.transformData){e.parent&&(e.userData.transformData.parentMatrixWorld=e.parent.matrix);var t=g(e.userData.transformData);e.applyMatrix4(t)}}));var f=(new c).parse();1===n.children.length&&n.children[0].isGroup&&(n.children[0].animations=f,n=n.children[0]),n.animations=f},parseModels:function(n,o,i){var a=new Map,c=e.Objects.Model;for(var u in c){var s=parseInt(u),l=c[u],f=t.get(s),p=this.buildSkeleton(f,n,s,l.attrName);if(!p){switch(l.attrType){case"Camera":p=this.createCamera(f);break;case"Light":p=this.createLight(f);break;case"Mesh":p=this.createMesh(f,o,i);break;case"NurbsCurve":p=this.createCurve(f,o);break;case"LimbNode":case"Root":p=new r.Bone;break;case"Null":default:p=new r.Group}p.name=l.attrName?r.PropertyBinding.sanitizeNodeName(l.attrName):"",p.ID=s}this.getTransformData(p,l),a.set(s,p)}return a},buildSkeleton:function(e,t,n,o){var i=null;return e.parents.forEach((function(e){for(var a in t){var c=t[a];c.rawBones.forEach((function(t,a){if(t.ID===e.ID){var u=i;(i=new r.Bone).matrixWorld.copy(t.transformLink),i.name=o?r.PropertyBinding.sanitizeNodeName(o):"",i.ID=n,c.bones[a]=i,null!==u&&i.add(u)}}))}})),i},createCamera:function(t){var n,o;if(t.children.forEach((function(t){var n=e.Objects.NodeAttribute[t.ID];void 0!==n&&(o=n)})),void 0===o)n=new r.Object3D;else{var i=0;void 0!==o.CameraProjectionType&&1===o.CameraProjectionType.value&&(i=1);var a=1;void 0!==o.NearPlane&&(a=o.NearPlane.value/1e3);var c=1e3;void 0!==o.FarPlane&&(c=o.FarPlane.value/1e3);var u=window.innerWidth,s=window.innerHeight;void 0!==o.AspectWidth&&void 0!==o.AspectHeight&&(u=o.AspectWidth.value,s=o.AspectHeight.value);var l=u/s,f=45;void 0!==o.FieldOfView&&(f=o.FieldOfView.value);var p=o.FocalLength?o.FocalLength.value:null;switch(i){case 0:n=new r.PerspectiveCamera(f,l,a,c),null!==p&&n.setFocalLength(p);break;case 1:n=new r.OrthographicCamera(-u/2,u/2,s/2,-s/2,a,c);break;default:console.warn("THREE.FBXLoader: Unknown camera type "+i+"."),n=new r.Object3D}}return n},createLight:function(t){var n,o;if(t.children.forEach((function(t){var n=e.Objects.NodeAttribute[t.ID];void 0!==n&&(o=n)})),void 0===o)n=new r.Object3D;else{var i;i=void 0===o.LightType?0:o.LightType.value;var a=16777215;void 0!==o.Color&&(a=(new r.Color).fromArray(o.Color.value));var c=void 0===o.Intensity?1:o.Intensity.value/100;void 0!==o.CastLightOnObject&&0===o.CastLightOnObject.value&&(c=0);var u=0;void 0!==o.FarAttenuationEnd&&(u=void 0!==o.EnableFarAttenuation&&0===o.EnableFarAttenuation.value?0:o.FarAttenuationEnd.value);switch(i){case 0:n=new r.PointLight(a,c,u,1);break;case 1:n=new r.DirectionalLight(a,c);break;case 2:var s=Math.PI/3;void 0!==o.InnerAngle&&(s=r.MathUtils.degToRad(o.InnerAngle.value));var l=0;void 0!==o.OuterAngle&&(l=r.MathUtils.degToRad(o.OuterAngle.value),l=Math.max(l,1)),n=new r.SpotLight(a,c,u,s,l,1);break;default:console.warn("THREE.FBXLoader: Unknown light type "+o.LightType.value+", defaulting to a PointLight."),n=new r.PointLight(a,c)}void 0!==o.CastShadows&&1===o.CastShadows.value&&(n.castShadow=!0)}return n},createMesh:function(e,t,n){var o,i=null,a=null,c=[];return e.children.forEach((function(e){t.has(e.ID)&&(i=t.get(e.ID)),n.has(e.ID)&&c.push(n.get(e.ID))})),c.length>1?a=c:c.length>0?a=c[0]:(a=new r.MeshPhongMaterial({color:13421772}),c.push(a)),"color"in i.attributes&&c.forEach((function(e){e.vertexColors=!0})),i.FBX_Deformer?(c.forEach((function(e){e.skinning=!0})),(o=new r.SkinnedMesh(i,a)).normalizeSkinWeights()):o=new r.Mesh(i,a),o},createCurve:function(e,t){var n=e.children.reduce((function(e,n){return t.has(n.ID)&&(e=t.get(n.ID)),e}),null),o=new r.LineBasicMaterial({color:3342591,linewidth:1});return new r.Line(n,o)},getTransformData:function(e,t){var n={};"InheritType"in t&&(n.inheritType=parseInt(t.InheritType.value)),n.eulerOrder="RotationOrder"in t?b(t.RotationOrder.value):"ZYX","Lcl_Translation"in t&&(n.translation=t.Lcl_Translation.value),"PreRotation"in t&&(n.preRotation=t.PreRotation.value),"Lcl_Rotation"in t&&(n.rotation=t.Lcl_Rotation.value),"PostRotation"in t&&(n.postRotation=t.PostRotation.value),"Lcl_Scaling"in t&&(n.scale=t.Lcl_Scaling.value),"ScalingOffset"in t&&(n.scalingOffset=t.ScalingOffset.value),"ScalingPivot"in t&&(n.scalingPivot=t.ScalingPivot.value),"RotationOffset"in t&&(n.rotationOffset=t.RotationOffset.value),"RotationPivot"in t&&(n.rotationPivot=t.RotationPivot.value),e.userData.transformData=n},setLookAtProperties:function(o,i){"LookAtProperty"in i&&t.get(o.ID).children.forEach((function(t){if("LookAtProperty"===t.relationship){var i=e.Objects.Model[t.ID];if("Lcl_Translation"in i){var a=i.Lcl_Translation.value;void 0!==o.target?(o.target.position.fromArray(a),n.add(o.target)):o.lookAt((new r.Vector3).fromArray(a))}}}))},bindSkeleton:function(e,n,o){var i=this.parsePoseNodes();for(var a in e){var c=e[a];t.get(parseInt(c.ID)).parents.forEach((function(e){if(n.has(e.ID)){var a=e.ID;t.get(a).parents.forEach((function(e){o.has(e.ID)&&o.get(e.ID).bind(new r.Skeleton(c.bones),i[e.ID])}))}}))}},parsePoseNodes:function(){var t={};if("Pose"in e.Objects){var n=e.Objects.Pose;for(var o in n)if("BindPose"===n[o].attrType){var i=n[o].PoseNode;Array.isArray(i)?i.forEach((function(e){t[e.Node]=(new r.Matrix4).fromArray(e.Matrix.a)})):t[i.Node]=(new r.Matrix4).fromArray(i.Matrix.a)}}return t},createAmbientLight:function(){if("GlobalSettings"in e&&"AmbientColor"in e.GlobalSettings){var t=e.GlobalSettings.AmbientColor.value,o=t[0],i=t[1],a=t[2];if(0!==o||0!==i||0!==a){var c=new r.Color(o,i,a);n.add(new r.AmbientLight(c,1))}}},setupMorphMaterials:function(){var e=this;n.traverse((function(t){t.isMesh&&t.geometry.morphAttributes.position&&t.geometry.morphAttributes.position.length&&(Array.isArray(t.material)?t.material.forEach((function(n,r){e.setupMorphMaterial(t,n,r)})):e.setupMorphMaterial(t,t.material))}))},setupMorphMaterial:function(e,t,r){var o=e.uuid,i=t.uuid,a=!1;if(n.traverse((function(e){e.isMesh&&(Array.isArray(e.material)?e.material.forEach((function(t){t.uuid===i&&e.uuid!==o&&(a=!0)})):e.material.uuid===i&&e.uuid!==o&&(a=!0))})),!0===a){var c=t.clone();c.morphTargets=!0,void 0===r?e.material=c:e.material[r]=c}else t.morphTargets=!0}},a.prototype={constructor:a,parse:function(n){var r=new Map;if("Geometry"in e.Objects){var o=e.Objects.Geometry;for(var i in o){var a=t.get(parseInt(i)),c=this.parseGeometry(a,o[i],n);r.set(parseInt(i),c)}}return r},parseGeometry:function(e,t,n){switch(t.attrType){case"Mesh":return this.parseMeshGeometry(e,t,n);case"NurbsCurve":return this.parseNurbsGeometry(t)}},parseMeshGeometry:function(t,n,r){var o=r.skeletons,i=[],a=t.parents.map((function(t){return e.Objects.Model[t.ID]}));if(0!==a.length){var c=t.children.reduce((function(e,t){return void 0!==o[t.ID]&&(e=o[t.ID]),e}),null);t.children.forEach((function(e){void 0!==r.morphTargets[e.ID]&&i.push(r.morphTargets[e.ID])}));var u=a[0],s={};"RotationOrder"in u&&(s.eulerOrder=b(u.RotationOrder.value)),"InheritType"in u&&(s.inheritType=parseInt(u.InheritType.value)),"GeometricTranslation"in u&&(s.translation=u.GeometricTranslation.value),"GeometricRotation"in u&&(s.rotation=u.GeometricRotation.value),"GeometricScaling"in u&&(s.scale=u.GeometricScaling.value);var l=g(s);return this.genGeometry(n,c,i,l)}},genGeometry:function(e,t,n,o){var i=new r.BufferGeometry;e.attrName&&(i.name=e.attrName);var a=this.parseGeoNode(e,t),c=this.genBuffers(a),u=new r.Float32BufferAttribute(c.vertex,3);if(u.applyMatrix4(o),i.setAttribute("position",u),c.colors.length>0&&i.setAttribute("color",new r.Float32BufferAttribute(c.colors,3)),t&&(i.setAttribute("skinIndex",new r.Uint16BufferAttribute(c.weightsIndices,4)),i.setAttribute("skinWeight",new r.Float32BufferAttribute(c.vertexWeights,4)),i.FBX_Deformer=t),c.normal.length>0){var s=(new r.Matrix3).getNormalMatrix(o),l=new r.Float32BufferAttribute(c.normal,3);l.applyNormalMatrix(s),i.setAttribute("normal",l)}if(c.uvs.forEach((function(e,t){var n="uv"+(t+1).toString();0===t&&(n="uv"),i.setAttribute(n,new r.Float32BufferAttribute(c.uvs[t],2))})),a.material&&"AllSame"!==a.material.mappingType){var f=c.materialIndex[0],p=0;if(c.materialIndex.forEach((function(e,t){e!==f&&(i.addGroup(p,t-p,f),f=e,p=t)})),i.groups.length>0){var d=i.groups[i.groups.length-1],h=d.start+d.count;h!==c.materialIndex.length&&i.addGroup(h,c.materialIndex.length-h,f)}0===i.groups.length&&i.addGroup(0,c.materialIndex.length,c.materialIndex[0])}return this.addMorphTargets(i,e,n,o),i},parseGeoNode:function(e,t){var n={};if(n.vertexPositions=void 0!==e.Vertices?e.Vertices.a:[],n.vertexIndices=void 0!==e.PolygonVertexIndex?e.PolygonVertexIndex.a:[],e.LayerElementColor&&(n.color=this.parseVertexColors(e.LayerElementColor[0])),e.LayerElementMaterial&&(n.material=this.parseMaterialIndices(e.LayerElementMaterial[0])),e.LayerElementNormal&&(n.normal=this.parseNormals(e.LayerElementNormal[0])),e.LayerElementUV){n.uv=[];for(var r=0;e.LayerElementUV[r];)n.uv.push(this.parseUVs(e.LayerElementUV[r])),r++}return n.weightTable={},null!==t&&(n.skeleton=t,t.rawBones.forEach((function(e,t){e.indices.forEach((function(r,o){void 0===n.weightTable[r]&&(n.weightTable[r]=[]),n.weightTable[r].push({id:t,weight:e.weights[o]})}))}))),n},genBuffers:function(e){var t={vertex:[],normal:[],colors:[],uvs:[],materialIndex:[],vertexWeights:[],weightsIndices:[]},n=0,r=0,o=!1,i=[],a=[],c=[],u=[],s=[],l=[],f=this;return e.vertexIndices.forEach((function(p,d){var h=!1;p<0&&(p^=-1,h=!0);var y=[],m=[];if(i.push(3*p,3*p+1,3*p+2),e.color){var g=v(d,n,p,e.color);c.push(g[0],g[1],g[2])}if(e.skeleton){if(void 0!==e.weightTable[p]&&e.weightTable[p].forEach((function(e){m.push(e.weight),y.push(e.id)})),m.length>4){o||(console.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."),o=!0);var b=[0,0,0,0],O=[0,0,0,0];m.forEach((function(e,t){var n=e,r=y[t];O.forEach((function(e,t,o){if(n>e){o[t]=n,n=e;var i=b[t];b[t]=r,r=i}}))})),y=b,m=O}for(;m.length<4;)m.push(0),y.push(0);for(var w=0;w<4;++w)s.push(m[w]),l.push(y[w])}if(e.normal){g=v(d,n,p,e.normal);a.push(g[0],g[1],g[2])}if(e.material&&"AllSame"!==e.material.mappingType)var _=v(d,n,p,e.material)[0];e.uv&&e.uv.forEach((function(e,t){var r=v(d,n,p,e);void 0===u[t]&&(u[t]=[]),u[t].push(r[0]),u[t].push(r[1])})),r++,h&&(f.genFace(t,e,i,_,a,c,u,s,l,r),n++,r=0,i=[],a=[],c=[],u=[],s=[],l=[])})),t},genFace:function(e,t,n,r,o,i,a,c,u,s){for(var l=2;l<s;l++)e.vertex.push(t.vertexPositions[n[0]]),e.vertex.push(t.vertexPositions[n[1]]),e.vertex.push(t.vertexPositions[n[2]]),e.vertex.push(t.vertexPositions[n[3*(l-1)]]),e.vertex.push(t.vertexPositions[n[3*(l-1)+1]]),e.vertex.push(t.vertexPositions[n[3*(l-1)+2]]),e.vertex.push(t.vertexPositions[n[3*l]]),e.vertex.push(t.vertexPositions[n[3*l+1]]),e.vertex.push(t.vertexPositions[n[3*l+2]]),t.skeleton&&(e.vertexWeights.push(c[0]),e.vertexWeights.push(c[1]),e.vertexWeights.push(c[2]),e.vertexWeights.push(c[3]),e.vertexWeights.push(c[4*(l-1)]),e.vertexWeights.push(c[4*(l-1)+1]),e.vertexWeights.push(c[4*(l-1)+2]),e.vertexWeights.push(c[4*(l-1)+3]),e.vertexWeights.push(c[4*l]),e.vertexWeights.push(c[4*l+1]),e.vertexWeights.push(c[4*l+2]),e.vertexWeights.push(c[4*l+3]),e.weightsIndices.push(u[0]),e.weightsIndices.push(u[1]),e.weightsIndices.push(u[2]),e.weightsIndices.push(u[3]),e.weightsIndices.push(u[4*(l-1)]),e.weightsIndices.push(u[4*(l-1)+1]),e.weightsIndices.push(u[4*(l-1)+2]),e.weightsIndices.push(u[4*(l-1)+3]),e.weightsIndices.push(u[4*l]),e.weightsIndices.push(u[4*l+1]),e.weightsIndices.push(u[4*l+2]),e.weightsIndices.push(u[4*l+3])),t.color&&(e.colors.push(i[0]),e.colors.push(i[1]),e.colors.push(i[2]),e.colors.push(i[3*(l-1)]),e.colors.push(i[3*(l-1)+1]),e.colors.push(i[3*(l-1)+2]),e.colors.push(i[3*l]),e.colors.push(i[3*l+1]),e.colors.push(i[3*l+2])),t.material&&"AllSame"!==t.material.mappingType&&(e.materialIndex.push(r),e.materialIndex.push(r),e.materialIndex.push(r)),t.normal&&(e.normal.push(o[0]),e.normal.push(o[1]),e.normal.push(o[2]),e.normal.push(o[3*(l-1)]),e.normal.push(o[3*(l-1)+1]),e.normal.push(o[3*(l-1)+2]),e.normal.push(o[3*l]),e.normal.push(o[3*l+1]),e.normal.push(o[3*l+2])),t.uv&&t.uv.forEach((function(t,n){void 0===e.uvs[n]&&(e.uvs[n]=[]),e.uvs[n].push(a[n][0]),e.uvs[n].push(a[n][1]),e.uvs[n].push(a[n][2*(l-1)]),e.uvs[n].push(a[n][2*(l-1)+1]),e.uvs[n].push(a[n][2*l]),e.uvs[n].push(a[n][2*l+1])}))},addMorphTargets:function(t,n,r,o){if(0!==r.length){t.morphTargetsRelative=!0,t.morphAttributes.position=[];var i=this;r.forEach((function(r){r.rawTargets.forEach((function(r){var a=e.Objects.Geometry[r.geoID];void 0!==a&&i.genMorphGeometry(t,n,a,o,r.name)}))}))}},genMorphGeometry:function(e,t,n,o,i){for(var a=void 0!==t.PolygonVertexIndex?t.PolygonVertexIndex.a:[],c=void 0!==n.Vertices?n.Vertices.a:[],u=void 0!==n.Indexes?n.Indexes.a:[],s=3*e.attributes.position.count,l=new Float32Array(s),f=0;f<u.length;f++){var p=3*u[f];l[p]=c[3*f],l[p+1]=c[3*f+1],l[p+2]=c[3*f+2]}var d={vertexIndices:a,vertexPositions:l},h=this.genBuffers(d),v=new r.Float32BufferAttribute(h.vertex,3);v.name=i||n.attrName,v.applyMatrix4(o),e.morphAttributes.position.push(v)},parseNormals:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Normals.a,o=[];return"IndexToDirect"===n&&("NormalIndex"in e?o=e.NormalIndex.a:"NormalsIndex"in e&&(o=e.NormalsIndex.a)),{dataSize:3,buffer:r,indices:o,mappingType:t,referenceType:n}},parseUVs:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.UV.a,o=[];return"IndexToDirect"===n&&(o=e.UVIndex.a),{dataSize:2,buffer:r,indices:o,mappingType:t,referenceType:n}},parseVertexColors:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Colors.a,o=[];return"IndexToDirect"===n&&(o=e.ColorIndex.a),{dataSize:4,buffer:r,indices:o,mappingType:t,referenceType:n}},parseMaterialIndices:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType;if("NoMappingInformation"===t)return{dataSize:1,buffer:[0],indices:[0],mappingType:"AllSame",referenceType:n};for(var r=e.Materials.a,o=[],i=0;i<r.length;++i)o.push(i);return{dataSize:1,buffer:r,indices:o,mappingType:t,referenceType:n}},parseNurbsGeometry:function(e){if(void 0===V)return console.error("THREE.FBXLoader: The loader relies on NURBSCurve for any nurbs present in the model. Nurbs will show up as empty geometry."),new r.BufferGeometry;var t=parseInt(e.Order);if(isNaN(t))return console.error("THREE.FBXLoader: Invalid Order %s given for geometry ID: %s",e.Order,e.id),new r.BufferGeometry;for(var n,o,i=t-1,a=e.KnotVector.a,c=[],u=e.Points.a,s=0,l=u.length;s<l;s+=4)c.push((new r.Vector4).fromArray(u,s));if("Closed"===e.Form)c.push(c[0]);else if("Periodic"===e.Form){n=i,o=a.length-1-n;for(s=0;s<i;++s)c.push(c[s])}var f=new V(i,a,c,n,o).getPoints(7*c.length),p=new Float32Array(3*f.length);f.forEach((function(e,t){e.toArray(p,3*t)}));var d=new r.BufferGeometry;return d.setAttribute("position",new r.BufferAttribute(p,3)),d}},c.prototype={constructor:c,parse:function(){var e=[],t=this.parseClips();if(void 0!==t)for(var n in t){var r=t[n],o=this.addClip(r);e.push(o)}return e},parseClips:function(){if(void 0!==e.Objects.AnimationCurve){var t=this.parseAnimationCurveNodes();this.parseAnimationCurves(t);var n=this.parseAnimationLayers(t);return this.parseAnimStacks(n)}},parseAnimationCurveNodes:function(){var t=e.Objects.AnimationCurveNode,n=new Map;for(var r in t){var o=t[r];if(null!==o.attrName.match(/S|R|T|DeformPercent/)){var i={id:o.id,attr:o.attrName,curves:{}};n.set(i.id,i)}}return n},parseAnimationCurves:function(n){var r=e.Objects.AnimationCurve;for(var o in r){var i={id:r[o].id,times:r[o].KeyTime.a.map(d),values:r[o].KeyValueFloat.a},a=t.get(i.id);if(void 0!==a){var c=a.parents[0].ID,u=a.parents[0].relationship;u.match(/X/)?n.get(c).curves.x=i:u.match(/Y/)?n.get(c).curves.y=i:u.match(/Z/)?n.get(c).curves.z=i:u.match(/d|DeformPercent/)&&n.has(c)&&(n.get(c).curves.morph=i)}}},parseAnimationLayers:function(o){var i=e.Objects.AnimationLayer,a=new Map;for(var c in i){var u=[],s=t.get(parseInt(c));if(void 0!==s)s.children.forEach((function(i,a){if(o.has(i.ID)){var c=o.get(i.ID);if(void 0!==c.curves.x||void 0!==c.curves.y||void 0!==c.curves.z){if(void 0===u[a])if(void 0!==(h=t.get(i.ID).parents.filter((function(e){return void 0!==e.relationship}))[0].ID)){var s={modelName:(l=e.Objects.Model[h.toString()]).attrName?r.PropertyBinding.sanitizeNodeName(l.attrName):"",ID:l.id,initialPosition:[0,0,0],initialRotation:[0,0,0],initialScale:[1,1,1]};n.traverse((function(e){e.ID===l.id&&(s.transform=e.matrix,e.userData.transformData&&(s.eulerOrder=e.userData.transformData.eulerOrder))})),s.transform||(s.transform=new r.Matrix4),"PreRotation"in l&&(s.preRotation=l.PreRotation.value),"PostRotation"in l&&(s.postRotation=l.PostRotation.value),u[a]=s}u[a]&&(u[a][c.attr]=c)}else if(void 0!==c.curves.morph){if(void 0===u[a]){var l,f=t.get(i.ID).parents.filter((function(e){return void 0!==e.relationship}))[0].ID,p=t.get(f).parents[0].ID,d=t.get(p).parents[0].ID,h=t.get(d).parents[0].ID;s={modelName:(l=e.Objects.Model[h]).attrName?r.PropertyBinding.sanitizeNodeName(l.attrName):"",morphName:e.Objects.Deformer[f].attrName};u[a]=s}u[a][c.attr]=c}}})),a.set(parseInt(c),u)}return a},parseAnimStacks:function(n){var r=e.Objects.AnimationStack,o={};for(var i in r){var a=t.get(parseInt(i)).children;a.length>1&&console.warn("THREE.FBXLoader: Encountered an animation stack with multiple layers, this is currently not supported. Ignoring subsequent layers.");var c=n.get(a[0].ID);o[i]={name:r[i].attrName,layer:c}}return o},addClip:function(e){var t=[],n=this;return e.layer.forEach((function(e){t=t.concat(n.generateTracks(e))})),new r.AnimationClip(e.name,-1,t)},generateTracks:function(e){var t=[],n=new r.Vector3,o=new r.Quaternion,i=new r.Vector3;if(e.transform&&e.transform.decompose(n,o,i),n=n.toArray(),o=(new r.Euler).setFromQuaternion(o,e.eulerOrder).toArray(),i=i.toArray(),void 0!==e.T&&Object.keys(e.T.curves).length>0){var a=this.generateVectorTrack(e.modelName,e.T.curves,n,"position");void 0!==a&&t.push(a)}if(void 0!==e.R&&Object.keys(e.R.curves).length>0){var c=this.generateRotationTrack(e.modelName,e.R.curves,o,e.preRotation,e.postRotation,e.eulerOrder);void 0!==c&&t.push(c)}if(void 0!==e.S&&Object.keys(e.S.curves).length>0){var u=this.generateVectorTrack(e.modelName,e.S.curves,i,"scale");void 0!==u&&t.push(u)}if(void 0!==e.DeformPercent){var s=this.generateMorphTrack(e);void 0!==s&&t.push(s)}return t},generateVectorTrack:function(e,t,n,o){var i=this.getTimesForAllAxes(t),a=this.getKeyframeTrackValues(i,t,n);return new r.VectorKeyframeTrack(e+"."+o,i,a)},generateRotationTrack:function(e,t,n,o,i,a){void 0!==t.x&&(this.interpolateRotations(t.x),t.x.values=t.x.values.map(r.MathUtils.degToRad)),void 0!==t.y&&(this.interpolateRotations(t.y),t.y.values=t.y.values.map(r.MathUtils.degToRad)),void 0!==t.z&&(this.interpolateRotations(t.z),t.z.values=t.z.values.map(r.MathUtils.degToRad));var c=this.getTimesForAllAxes(t),u=this.getKeyframeTrackValues(c,t,n);void 0!==o&&((o=o.map(r.MathUtils.degToRad)).push(a),o=(new r.Euler).fromArray(o),o=(new r.Quaternion).setFromEuler(o)),void 0!==i&&((i=i.map(r.MathUtils.degToRad)).push(a),i=(new r.Euler).fromArray(i),i=(new r.Quaternion).setFromEuler(i).inverse());for(var s=new r.Quaternion,l=new r.Euler,f=[],p=0;p<u.length;p+=3)l.set(u[p],u[p+1],u[p+2],a),s.setFromEuler(l),void 0!==o&&s.premultiply(o),void 0!==i&&s.multiply(i),s.toArray(f,p/3*4);return new r.QuaternionKeyframeTrack(e+".quaternion",c,f)},generateMorphTrack:function(e){var t=e.DeformPercent.curves.morph,o=t.values.map((function(e){return e/100})),i=n.getObjectByName(e.modelName).morphTargetDictionary[e.morphName];return new r.NumberKeyframeTrack(e.modelName+".morphTargetInfluences["+i+"]",t.times,o)},getTimesForAllAxes:function(e){var t=[];return void 0!==e.x&&(t=t.concat(e.x.times)),void 0!==e.y&&(t=t.concat(e.y.times)),void 0!==e.z&&(t=t.concat(e.z.times)),t=t.sort((function(e,t){return e-t})).filter((function(e,t,n){return n.indexOf(e)==t}))},getKeyframeTrackValues:function(e,t,n){var r=n,o=[],i=-1,a=-1,c=-1;return e.forEach((function(e){if(t.x&&(i=t.x.times.indexOf(e)),t.y&&(a=t.y.times.indexOf(e)),t.z&&(c=t.z.times.indexOf(e)),-1!==i){var n=t.x.values[i];o.push(n),r[0]=n}else o.push(r[0]);if(-1!==a){var u=t.y.values[a];o.push(u),r[1]=u}else o.push(r[1]);if(-1!==c){var s=t.z.values[c];o.push(s),r[2]=s}else o.push(r[2])})),o},interpolateRotations:function(e){for(var t=1;t<e.values.length;t++){var n=e.values[t-1],r=e.values[t]-n,o=Math.abs(r);if(o>=180){for(var i=o/180,a=r/i,c=n+a,u=e.times[t-1],s=(e.times[t]-u)/i,l=u+s,f=[],p=[];l<e.times[t];)f.push(l),l+=s,p.push(c),c+=a;e.times=_(e.times,t,f),e.values=_(e.values,t,p)}}}},u.prototype={constructor:u,getPrevNode:function(){return this.nodeStack[this.currentIndent-2]},getCurrentNode:function(){return this.nodeStack[this.currentIndent-1]},getCurrentProp:function(){return this.currentProp},pushStack:function(e){this.nodeStack.push(e),this.currentIndent+=1},popStack:function(){this.nodeStack.pop(),this.currentIndent-=1},setCurrentProp:function(e,t){this.currentProp=e,this.currentPropName=t},parse:function(e){this.currentIndent=0,this.allNodes=new f,this.nodeStack=[],this.currentProp=[],this.currentPropName="";var t=this,n=e.split(/[\r\n]+/);return n.forEach((function(e,r){var o=e.match(/^[\s\t]*;/),i=e.match(/^[\s\t]*$/);if(!o&&!i){var a=e.match("^\\t{"+t.currentIndent+"}(\\w+):(.*){",""),c=e.match("^\\t{"+t.currentIndent+"}(\\w+):[\\s\\t\\r\\n](.*)"),u=e.match("^\\t{"+(t.currentIndent-1)+"}}");a?t.parseNodeBegin(e,a):c?t.parseNodeProperty(e,c,n[++r]):u?t.popStack():e.match(/^[^\s\t}]/)&&t.parseNodePropertyContinued(e)}})),this.allNodes},parseNodeBegin:function(e,t){var n=t[1].trim().replace(/^"/,"").replace(/"$/,""),r=t[2].split(",").map((function(e){return e.trim().replace(/^"/,"").replace(/"$/,"")})),o={name:n},i=this.parseNodeAttr(r),a=this.getCurrentNode();0===this.currentIndent?this.allNodes.add(n,o):n in a?("PoseNode"===n?a.PoseNode.push(o):void 0!==a[n].id&&(a[n]={},a[n][a[n].id]=a[n]),""!==i.id&&(a[n][i.id]=o)):"number"==typeof i.id?(a[n]={},a[n][i.id]=o):"Properties70"!==n&&(a[n]="PoseNode"===n?[o]:o),"number"==typeof i.id&&(o.id=i.id),""!==i.name&&(o.attrName=i.name),""!==i.type&&(o.attrType=i.type),this.pushStack(o)},parseNodeAttr:function(e){var t=e[0];""!==e[0]&&(t=parseInt(e[0]),isNaN(t)&&(t=e[0]));var n="",r="";return e.length>1&&(n=e[1].replace(/^(\w+)::/,""),r=e[2]),{id:t,name:n,type:r}},parseNodeProperty:function(e,t,n){var r=t[1].replace(/^"/,"").replace(/"$/,"").trim(),o=t[2].replace(/^"/,"").replace(/"$/,"").trim();"Content"===r&&","===o&&(o=n.replace(/"/g,"").replace(/,$/,"").trim());var i=this.getCurrentNode();if("Properties70"!==i.name){if("C"===r){var a=o.split(",").slice(1),c=parseInt(a[0]),u=parseInt(a[1]),s=o.split(",").slice(3);r="connections",function(e,t){for(var n=0,r=e.length,o=t.length;n<o;n++,r++)e[r]=t[n]}(o=[c,u],s=s.map((function(e){return e.trim().replace(/^"/,"")}))),void 0===i[r]&&(i[r]=[])}"Node"===r&&(i.id=o),r in i&&Array.isArray(i[r])?i[r].push(o):"a"!==r?i[r]=o:i.a=o,this.setCurrentProp(i,r),"a"===r&&","!==o.slice(-1)&&(i.a=O(o))}else this.parseNodeSpecialProperty(e,r,o)},parseNodePropertyContinued:function(e){var t=this.getCurrentNode();t.a+=e,","!==e.slice(-1)&&(t.a=O(t.a))},parseNodeSpecialProperty:function(e,t,n){var r=n.split('",').map((function(e){return e.trim().replace(/^\"/,"").replace(/\s/,"_")})),o=r[0],i=r[1],a=r[2],c=r[3],u=r[4];switch(i){case"int":case"enum":case"bool":case"ULongLong":case"double":case"Number":case"FieldOfView":u=parseFloat(u);break;case"Color":case"ColorRGB":case"Vector3D":case"Lcl_Translation":case"Lcl_Rotation":case"Lcl_Scaling":u=O(u)}this.getPrevNode()[o]={type:i,type2:a,flag:c,value:u},this.setCurrentProp(this.getPrevNode(),o)}},s.prototype={constructor:s,parse:function(e){var t=new l(e);t.skip(23);var n=t.getUint32();console.log("THREE.FBXLoader: FBX binary version: "+n);for(var r=new f;!this.endOfContent(t);){var o=this.parseNode(t,n);null!==o&&r.add(o.name,o)}return r},endOfContent:function(e){return e.size()%16==0?(e.getOffset()+160+16&-16)>=e.size():e.getOffset()+160+16>=e.size()},parseNode:function(e,t){var n={},r=t>=7500?e.getUint64():e.getUint32(),o=t>=7500?e.getUint64():e.getUint32(),i=(t>=7500?e.getUint64():e.getUint32(),e.getUint8()),a=e.getString(i);if(0===r)return null;for(var c=[],u=0;u<o;u++)c.push(this.parseProperty(e));var s=c.length>0?c[0]:"",l=c.length>1?c[1]:"",f=c.length>2?c[2]:"";for(n.singleProperty=1===o&&e.getOffset()===r;r>e.getOffset();){var p=this.parseNode(e,t);null!==p&&this.parseSubNode(a,n,p)}return n.propertyList=c,"number"==typeof s&&(n.id=s),""!==l&&(n.attrName=l),""!==f&&(n.attrType=f),""!==a&&(n.name=a),n},parseSubNode:function(e,t,n){if(!0===n.singleProperty){var r=n.propertyList[0];Array.isArray(r)?(t[n.name]=n,n.a=r):t[n.name]=r}else if("Connections"===e&&"C"===n.name){var o=[];n.propertyList.forEach((function(e,t){0!==t&&o.push(e)})),void 0===t.connections&&(t.connections=[]),t.connections.push(o)}else if("Properties70"===n.name){Object.keys(n).forEach((function(e){t[e]=n[e]}))}else if("Properties70"===e&&"P"===n.name){var i,a=n.propertyList[0],c=n.propertyList[1],u=n.propertyList[2],s=n.propertyList[3];0===a.indexOf("Lcl ")&&(a=a.replace("Lcl ","Lcl_")),0===c.indexOf("Lcl ")&&(c=c.replace("Lcl ","Lcl_")),i="Color"===c||"ColorRGB"===c||"Vector"===c||"Vector3D"===c||0===c.indexOf("Lcl_")?[n.propertyList[4],n.propertyList[5],n.propertyList[6]]:n.propertyList[4],t[a]={type:c,type2:u,flag:s,value:i}}else void 0===t[n.name]?"number"==typeof n.id?(t[n.name]={},t[n.name][n.id]=n):t[n.name]=n:"PoseNode"===n.name?(Array.isArray(t[n.name])||(t[n.name]=[t[n.name]]),t[n.name].push(n)):void 0===t[n.name][n.id]&&(t[n.name][n.id]=n)},parseProperty:function(e){var t=e.getString(1);switch(t){case"C":return e.getBoolean();case"D":return e.getFloat64();case"F":return e.getFloat32();case"I":return e.getInt32();case"L":return e.getInt64();case"R":var n=e.getUint32();return e.getArrayBuffer(n);case"S":n=e.getUint32();return e.getString(n);case"Y":return e.getInt16();case"b":case"c":case"d":case"f":case"i":case"l":var r=e.getUint32(),o=e.getUint32(),i=e.getUint32();if(0===o)switch(t){case"b":case"c":return e.getBooleanArray(r);case"d":return e.getFloat64Array(r);case"f":return e.getFloat32Array(r);case"i":return e.getInt32Array(r);case"l":return e.getInt64Array(r)}void 0===B&&console.error("THREE.FBXLoader: External library Inflate.min.js required, obtain or import from https://github.com/imaya/zlib.js");var a=new l(new B.Inflate(new Uint8Array(e.getArrayBuffer(i))).decompress().buffer);switch(t){case"b":case"c":return a.getBooleanArray(r);case"d":return a.getFloat64Array(r);case"f":return a.getFloat32Array(r);case"i":return a.getInt32Array(r);case"l":return a.getInt64Array(r)}default:throw new Error("THREE.FBXLoader: Unknown property type "+t)}}},l.prototype={constructor:l,getOffset:function(){return this.offset},size:function(){return this.dv.buffer.byteLength},skip:function(e){this.offset+=e},getBoolean:function(){return 1==(1&this.getUint8())},getBooleanArray:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getBoolean());return t},getUint8:function(){var e=this.dv.getUint8(this.offset);return this.offset+=1,e},getInt16:function(){var e=this.dv.getInt16(this.offset,this.littleEndian);return this.offset+=2,e},getInt32:function(){var e=this.dv.getInt32(this.offset,this.littleEndian);return this.offset+=4,e},getInt32Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getInt32());return t},getUint32:function(){var e=this.dv.getUint32(this.offset,this.littleEndian);return this.offset+=4,e},getInt64:function(){var e,t;return this.littleEndian?(e=this.getUint32(),t=this.getUint32()):(t=this.getUint32(),e=this.getUint32()),2147483648&t?(t=4294967295&~t,4294967295===(e=4294967295&~e)&&(t=t+1&4294967295),-(4294967296*t+(e=e+1&4294967295))):4294967296*t+e},getInt64Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getInt64());return t},getUint64:function(){var e,t;return this.littleEndian?(e=this.getUint32(),t=this.getUint32()):(t=this.getUint32(),e=this.getUint32()),4294967296*t+e},getFloat32:function(){var e=this.dv.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e},getFloat32Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getFloat32());return t},getFloat64:function(){var e=this.dv.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e},getFloat64Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getFloat64());return t},getArrayBuffer:function(e){var t=this.dv.buffer.slice(this.offset,this.offset+e);return this.offset+=e,t},getString:function(e){for(var t=[],n=0;n<e;n++)t[n]=this.getUint8();var o=t.indexOf(0);return o>=0&&(t=t.slice(0,o)),r.LoaderUtils.decodeText(new Uint8Array(t))}},f.prototype={constructor:f,add:function(e,t){this[e]=t}};var h=[];function v(e,t,n,r){var o;switch(r.mappingType){case"ByPolygonVertex":o=e;break;case"ByPolygon":o=t;break;case"ByVertice":o=n;break;case"AllSame":o=r.indices[0];break;default:console.warn("THREE.FBXLoader: unknown attribute mapping type "+r.mappingType)}"IndexToDirect"===r.referenceType&&(o=r.indices[o]);var i=o*r.dataSize,a=i+r.dataSize;return function(e,t,n,r){for(var o=n,i=0;o<r;o++,i++)e[i]=t[o];return e}(h,r.buffer,i,a)}var y=new r.Euler,m=new r.Vector3;function g(e){var t,n=new r.Matrix4,o=new r.Matrix4,i=new r.Matrix4,a=new r.Matrix4,c=new r.Matrix4,u=new r.Matrix4,s=new r.Matrix4,l=new r.Matrix4,f=new r.Matrix4,p=new r.Matrix4,d=new r.Matrix4,h=e.inheritType?e.inheritType:0;(e.translation&&n.setPosition(m.fromArray(e.translation)),e.preRotation)&&((t=e.preRotation.map(r.MathUtils.degToRad)).push(e.eulerOrder),o.makeRotationFromEuler(y.fromArray(t)));e.rotation&&((t=e.rotation.map(r.MathUtils.degToRad)).push(e.eulerOrder),i.makeRotationFromEuler(y.fromArray(t)));e.postRotation&&((t=e.postRotation.map(r.MathUtils.degToRad)).push(e.eulerOrder),a.makeRotationFromEuler(y.fromArray(t)));e.scale&&c.scale(m.fromArray(e.scale)),e.scalingOffset&&s.setPosition(m.fromArray(e.scalingOffset)),e.scalingPivot&&u.setPosition(m.fromArray(e.scalingPivot)),e.rotationOffset&&l.setPosition(m.fromArray(e.rotationOffset)),e.rotationPivot&&f.setPosition(m.fromArray(e.rotationPivot)),e.parentMatrixWorld&&(p=e.parentMatrixWorld);var v=o.multiply(i).multiply(a),g=new r.Matrix4;p.extractRotation(g);var b,O,w,_,x=new r.Matrix4;if(x.copyPosition(p),w=x.getInverse(x).multiply(p),O=g.getInverse(g).multiply(w),b=c,0===h)_=g.multiply(v).multiply(O).multiply(b);else if(1===h)_=g.multiply(O).multiply(v).multiply(b);else{var E=(new r.Matrix4).copy(c),S=O.multiply(E.getInverse(E));_=g.multiply(v).multiply(S).multiply(b)}var C=n.multiply(l).multiply(f).multiply(o).multiply(i).multiply(a).multiply(f.getInverse(f)).multiply(s).multiply(u).multiply(c).multiply(u.getInverse(u)),j=(new r.Matrix4).copyPosition(C),k=p.multiply(j);return d.copyPosition(k),C=d.multiply(_)}function b(e){var t=["ZYX","YZX","XZY","ZXY","YXZ","XYZ"];return 6===(e=e||0)?(console.warn("THREE.FBXLoader: unsupported Euler Order: Spherical XYZ. Animations and rotations may be incorrect."),t[0]):t[e]}function O(e){return e.split(",").map((function(e){return parseFloat(e)}))}function w(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.byteLength),r.LoaderUtils.decodeText(new Uint8Array(e,t,n))}function _(e,t,n){return e.slice(0,t).concat(n).concat(e.slice(t))}return o}()},"2q8g":function(e,t,n){var r=n("Dhk8"),o=n("tQYX");e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"2qtc":function(e,t,n){"use strict";n("EFp3"),n("1wcP"),n("+L6B")},"2sZ7":function(e,t,n){"use strict";var r=n("/soe"),o=n("q9+l"),i=n("lhjL");e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},"2u/a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NON_CUSTOM_TAG_KEYS=t.POST_CONSTRUCT=t.DESIGN_PARAM_TYPES=t.PARAM_TYPES=t.TAGGED_PROP=t.TAGGED=t.MULTI_INJECT_TAG=t.INJECT_TAG=t.OPTIONAL_TAG=t.UNMANAGED_TAG=t.NAME_TAG=t.NAMED_TAG=void 0,t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct",t.NON_CUSTOM_TAG_KEYS=[t.INJECT_TAG,t.MULTI_INJECT_TAG,t.NAME_TAG,t.UNMANAGED_TAG,t.NAMED_TAG,t.OPTIONAL_TAG]},"2wsP":function(e,t,n){var r=n("EI7Z")("length");e.exports=r},"3/cu":function(e,t,n){"use strict";n.d(t,"a",(function(){return et}));var r=n("Gf+y"),o=n("hlMf"),i=n("mGvo"),a=n.n(i),c=n("pufz"),u=n("zEXi"),s=n("pfNN"),l=n("PGAt");function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O={solid:0,dash:1},w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(i,e);var t,n,r,o=v(i);function i(){var e;p(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b(m(e=o.call.apply(o,[this].concat(n))),"updateTexture",(function(){var t=e.rendererService.createTexture2D;if(e.texture)return e.texture.update({data:e.iconService.getCanvas()}),void e.layer.render();e.texture=t({data:e.iconService.getCanvas(),mag:c.gl.NEAREST,min:c.gl.NEAREST,premultiplyAlpha:!1,width:1024,height:e.iconService.canvasHeight||128})})),e}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.sourceColor,o=e.targetColor,i=e.textureBlend,s=void 0===i?"normal":i,l=e.lineType,f=void 0===l?"solid":l,p=e.dashArray,d=void 0===p?[10,5]:p,h=e.forward,v=void 0===h||h,y=e.lineTexture,m=void 0!==y&&y,g=e.iconStep,b=void 0===g?100:g,w=e.segmentNumber,_=void 0===w?30:w,x=e.thetaOffset,E=void 0===x?.314:x;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n,thetaOffset:E})){this.judgeStyleAttributes({opacity:n,thetaOffset:E});var S=this.layer.getEncodedData(),C=this.calDataFrame(this.cellLength,S,this.cellProperties),j=C.data,k=C.width,P=C.height;this.rowCount=P,this.dataTexture=this.cellLength>0&&j.length>0?this.createTexture2D({flipY:!0,data:j,format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:k,height:P}):this.createTexture2D({flipY:!0,data:[1],format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:1,height:1})}2===d.length&&d.push(0,0);var T=0,M=[0,0,0,0],A=[0,0,0,0];return r&&o&&(M=Object(u.Eb)(r),A=Object(u.Eb)(o),T=1),this.rendererService.getDirty()&&this.texture.bind(),{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_thetaOffset:a()(E)?E:0,u_opacity:a()(n)?n:1,u_textureBlend:"normal"===s?0:1,segmentNumber:_,u_line_type:O[f||"solid"],u_dash_array:d,u_blur:.9,u_lineDir:v?1:-1,u_texture:this.texture,u_line_texture:m?1:0,u_icon_step:b,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:T,u_sourceColor:M,u_targetColor:A}}},{key:"getAnimateUniforms",value:function(){var e=this.layer.getLayerConfig().animateOption;return{u_animate:this.animateOption2Array(e),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(e){this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels(e)}},{key:"clearModels",value:function(){var e,t;null===(e=this.texture)||void 0===e||e.destroy(),null===(t=this.dataTexture)||void 0===t||t.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"getShaders",value:function(){var e=this.layer.getLayerConfig(),t=e.sourceColor,n=e.targetColor;return"dash"===e.lineType?{frag:'\nuniform float u_opacity;\n\nvarying vec4 v_dash_array;\nvarying vec4 v_color;\n\nuniform float segmentNumber;\n\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\n#pragma include "picking"\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float d_distance_ratio = styleMappingMat[3].b; // 当前顶点在弧线中所处的分段比例\n\n gl_FragColor = v_color;\n gl_FragColor.a *= opacity;\n\n float flag = 0.;\n float dashLength = mod(d_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w);\n if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) {\n flag = 1.;\n };\n gl_FragColor.a *=flag;\n \n gl_FragColor = filterColor(gl_FragColor);\n}',vert:'\nattribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec4 a_Instance;\nattribute float a_Size;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float segmentNumber;\nvarying vec4 v_color;\n\n\nuniform vec4 u_dash_array: [10.0, 5., 0, 0];\nuniform float u_lineDir: 1.0;\nvarying vec4 v_dash_array;\n\nuniform float u_thetaOffset: 0.314;\n\nuniform float u_opacity: 1.0;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n#pragma include "styleMappingCalThetaOffset"\n\n#pragma include "projection"\n#pragma include "project"\n#pragma include "picking"\n\nfloat bezier3(vec3 arr, float t) {\n float ut = 1. - t;\n return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t;\n}\nvec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) {\n vec2 center = target - source;\n float r = length(center);\n float theta = atan(center.y, center.x);\n float thetaOffset = arcThetaOffset;\n float r2 = r / 2.0 / cos(thetaOffset);\n float theta2 = theta + thetaOffset;\n vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y);\n if(u_lineDir == 1.0) { // 正向\n return mid;\n } else { // 逆向\n // (mid + vmin)/2 = (s + t)/2\n vec2 vmid = source + target - mid;\n return vmid;\n }\n // return mid;\n}\nfloat getSegmentRatio(float index) {\n // dash: index / (segmentNumber - 1.);\n // normal: smoothstep(0.0, 1.0, index / (segmentNumber - 1.));\n return index / (segmentNumber - 1.);\n}\nvec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) {\n // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation\n vec2 mid = midPoint(source, target, arcThetaOffset);\n vec3 x = vec3(source.x, mid.x, target.x);\n vec3 y = vec3(source.y, mid.y, target.y);\n return vec2(bezier3(x ,t), bezier3(y,t));\n}\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0;\n return offset;\n}\nvec2 getNormal(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction);\n}\n\nvoid main() {\n v_color = a_Color;\n\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // dataset 数据集\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke -> thetaOffset... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n\n vec2 thetaOffsetAndOffset = calThetaOffsetAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][1] = thetaOffsetAndOffset.r;\n textureOffset = thetaOffsetAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n \n vec2 source = a_Instance.rg; // 起始点\n vec2 target = a_Instance.ba; // 终点\n float segmentIndex = a_Position.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir);\n\n vec2 s = source;\n vec2 t = target;\n \n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n s = unProjCustomCoord(source);\n t = unProjCustomCoord(target);\n }\n float total_Distance = pixelDistance(s, t) / 2.0 * PI;\n v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / total_Distance;\n\n styleMappingMat[3].b = segmentIndex / segmentNumber;\n\n // styleMappingMat[0][1] - arcThetaOffset\n vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, styleMappingMat[0][1]), 0.0, 1.0));\n vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, styleMappingMat[0][1]), 0.0, 1.0));\n // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y);\n //unProjCustomCoord\n \n vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y));\n \n\n // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0));\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n // gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0));\n gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0));\n }\n gl_PointSize = 5.0;\n setPickingColor(a_PickingColor);\n}\n',type:"Dash"}:t&&n?{frag:'#define Animate 0.0\n#define LineTexture 1.0\n\nuniform float u_opacity;\nuniform float u_textureBlend;\nuniform float u_blur : 0.9;\nuniform float u_line_type: 0.0;\n// varying vec2 v_normal;\nvarying vec4 v_dash_array;\nvarying vec4 v_color;\n\nuniform float u_time;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\n\nuniform float u_line_texture;\nuniform sampler2D u_texture;\nuniform vec2 u_textSize;\n\nuniform float segmentNumber;\nvarying vec2 v_iconMapUV;\n\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\nuniform float u_linearColor: 0;\nuniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\n\n#pragma include "picking"\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float d_segmentIndex = styleMappingMat[3].r; // 当前顶点在弧线中所处的分段位置\n\n // 设置弧线的底色\n gl_FragColor = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber);\n gl_FragColor.a *= opacity;\n gl_FragColor = filterColor(gl_FragColor);\n}',vert:'\nattribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec4 a_Instance;\nattribute float a_Size;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float segmentNumber;\nvarying vec4 v_color;\n\nuniform float u_lineDir: 1.0;\n\nuniform float u_thetaOffset: 0.314;\n\nuniform float u_opacity: 1.0;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n#pragma include "styleMappingCalThetaOffset"\n\n#pragma include "projection"\n#pragma include "project"\n#pragma include "picking"\n\nfloat bezier3(vec3 arr, float t) {\n float ut = 1. - t;\n return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t;\n}\nvec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) {\n vec2 center = target - source;\n float r = length(center);\n float theta = atan(center.y, center.x);\n float thetaOffset = arcThetaOffset;\n float r2 = r / 2.0 / cos(thetaOffset);\n float theta2 = theta + thetaOffset;\n vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y);\n if(u_lineDir == 1.0) { // 正向\n return mid;\n } else { // 逆向\n // (mid + vmin)/2 = (s + t)/2\n vec2 vmid = source + target - mid;\n return vmid;\n }\n // return mid;\n}\nfloat getSegmentRatio(float index) {\n return smoothstep(0.0, 1.0, index / (segmentNumber - 1.));\n}\nvec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) {\n // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation\n vec2 mid = midPoint(source, target, arcThetaOffset);\n vec3 x = vec3(source.x, mid.x, target.x);\n vec3 y = vec3(source.y, mid.y, target.y);\n return vec2(bezier3(x ,t), bezier3(y,t));\n}\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0;\n return offset;\n}\nvec2 getNormal(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction);\n}\n\nvoid main() {\n v_color = a_Color;\n\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // dataset 数据集\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke -> thetaOffset... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n\n vec2 thetaOffsetAndOffset = calThetaOffsetAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][1] = thetaOffsetAndOffset.r;\n textureOffset = thetaOffsetAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n \n vec2 source = a_Instance.rg; // 起始点\n vec2 target = a_Instance.ba; // 终点\n float segmentIndex = a_Position.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir);\n float d_distance_ratio;\n\n styleMappingMat[3].b = d_distance_ratio;\n\n // styleMappingMat[0][1] - arcThetaOffset\n vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, styleMappingMat[0][1]), 0.0, 1.0));\n vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, styleMappingMat[0][1]), 0.0, 1.0));\n // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y);\n //unProjCustomCoord\n \n vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y));\n\n\n float d_segmentIndex = a_Position.x + 1.0; // 当前顶点在弧线中所处的分段位置\n styleMappingMat[3].r = d_segmentIndex;\n\n // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0));\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n // gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0));\n gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0));\n }\n setPickingColor(a_PickingColor);\n}\n',type:"Linear"}:{frag:'\n#define Animate 0.0\n#define LineTexture 1.0\n\nuniform float u_opacity;\nuniform float u_textureBlend;\nuniform float u_blur : 0.9;\nuniform float u_line_type: 0.0;\n// varying vec2 v_normal;\nvarying vec4 v_dash_array;\nvarying vec4 v_color;\n\nuniform float u_time;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\n\nuniform float u_line_texture;\nuniform sampler2D u_texture;\nuniform vec2 u_textSize;\n\nuniform float segmentNumber;\nvarying vec2 v_iconMapUV;\n\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\n#pragma include "picking"\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float animateSpeed = 0.0; // 运动速度\n float d_segmentIndex = styleMappingMat[3].r; // 当前顶点在弧线中所处的分段位置\n float d_distance_ratio = styleMappingMat[3].b; // 当前顶点在弧线中所处的分段比例\n\n gl_FragColor = v_color;\n \n gl_FragColor.a *= opacity;\n\n if(u_animate.x == Animate && u_line_texture != LineTexture) {\n animateSpeed = u_time / u_animate.y;\n float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y);\n alpha = (alpha + u_animate.w -1.0) / u_animate.w;\n // alpha = smoothstep(0., 1., alpha);\n alpha = clamp(alpha, 0.0, 1.0);\n gl_FragColor.a *= alpha;\n }\n\n // 当存在贴图时在底色上贴上贴图\n if(u_line_texture == LineTexture) { // while load texture\n float arcRadio = smoothstep( 0.0, 1.0, (d_segmentIndex / segmentNumber));\n // float arcRadio = smoothstep( 0.0, 1.0, d_distance_ratio);\n\n float count = styleMappingMat[3].g; // 贴图在弧线上重复的数量\n\n float time = 0.0;\n if(u_animate.x == Animate) {\n time = u_time / u_animate.y;\n }\n float redioCount = arcRadio * count;\n\n float u = fract(redioCount - time);\n float v = styleMappingMat[3].a; // 横向 v\n vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.;\n\n vec4 pattern = texture2D(u_texture, uv);\n\n if(u_animate.x == Animate) {\n float currentPlane = floor(redioCount - time);\n float textureStep = floor(count * u_animate.z);\n float a = mod(currentPlane, textureStep);\n if(a < textureStep - 1.0) {\n pattern = vec4(0.0);\n }\n }\n\n if(u_textureBlend == 0.0) { // normal\n pattern.a = 0.0;\n gl_FragColor = filterColor(gl_FragColor + pattern);\n } else { // replace\n pattern.a *= opacity;\n if(gl_FragColor.a <= 0.0) {\n pattern.a = 0.0;\n }\n gl_FragColor = filterColor(pattern);\n }\n \n } else {\n gl_FragColor = filterColor(gl_FragColor);\n }\n}',vert:'#define Animate 0.0\n#define LineTexture 1.0\n\nattribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec4 a_Instance;\nattribute float a_Size;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float segmentNumber;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\nvarying vec4 v_color;\n\nuniform float u_lineDir: 1.0;\n\nuniform float u_thetaOffset: 0.314;\nuniform float u_icon_step: 100;\nuniform float u_line_texture: 0.0;\nattribute vec2 a_iconMapUV;\nvarying vec2 v_iconMapUV;\n\nuniform float u_opacity: 1.0;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n#pragma include "styleMappingCalThetaOffset"\n\n#pragma include "projection"\n#pragma include "project"\n#pragma include "picking"\n\nfloat bezier3(vec3 arr, float t) {\n float ut = 1. - t;\n return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t;\n}\nvec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) {\n vec2 center = target - source;\n float r = length(center);\n float theta = atan(center.y, center.x);\n float thetaOffset = arcThetaOffset;\n float r2 = r / 2.0 / cos(thetaOffset);\n float theta2 = theta + thetaOffset;\n vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y);\n if(u_lineDir == 1.0) { // 正向\n return mid;\n } else { // 逆向\n // (mid + vmin)/2 = (s + t)/2\n vec2 vmid = source + target - mid;\n return vmid;\n }\n // return mid;\n}\nfloat getSegmentRatio(float index) {\n // dash: index / (segmentNumber - 1.);\n // normal: smoothstep(0.0, 1.0, index / (segmentNumber - 1.));\n return smoothstep(0.0, 1.0, index / (segmentNumber - 1.));\n // return index / (segmentNumber - 1.);\n}\nvec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) {\n // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation\n vec2 mid = midPoint(source, target, arcThetaOffset);\n vec3 x = vec3(source.x, mid.x, target.x);\n vec3 y = vec3(source.y, mid.y, target.y);\n return vec2(bezier3(x ,t), bezier3(y,t));\n}\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0;\n return offset;\n}\nvec2 getNormal(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction);\n}\n\nvoid main() {\n v_color = a_Color;\n\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // dataset 数据集\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke -> thetaOffset... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n\n vec2 thetaOffsetAndOffset = calThetaOffsetAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][1] = thetaOffsetAndOffset.r;\n textureOffset = thetaOffsetAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n \n vec2 source = a_Instance.rg; // 起始点\n vec2 target = a_Instance.ba; // 终点\n float segmentIndex = a_Position.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir);\n float d_distance_ratio;\n \n if(u_animate.x == Animate) {\n d_distance_ratio = segmentIndex / segmentNumber;\n if(u_lineDir != 1.0) {\n d_distance_ratio = 1.0 - d_distance_ratio;\n }\n }\n\n styleMappingMat[3].b = d_distance_ratio;\n\n // styleMappingMat[0][1] - arcThetaOffset\n float arcThetaOffset = styleMappingMat[0][1];\n vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, arcThetaOffset), 0.0, 1.0));\n vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, arcThetaOffset), 0.0, 1.0));\n // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y);\n //unProjCustomCoord\n \n vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y));\n\n\n float d_segmentIndex = a_Position.x + 1.0; // 当前顶点在弧线中所处的分段位置\n styleMappingMat[3].r = d_segmentIndex;\n\n if(LineTexture == u_line_texture) { // 开启贴图模式\n\n float arcDistrance = length(source - target); // 起始点和终点的距离\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap\n arcDistrance *= 1000000.0;\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox\n // arcDistrance *= 8.0;\n arcDistrance = project_pixel_allmap(arcDistrance);\n }\n v_iconMapUV = a_iconMapUV;\n\n float pixelLen = project_pixel_texture(u_icon_step); // 贴图沿弧线方向的长度 - 随地图缩放改变\n float texCount = floor(arcDistrance/pixelLen); // 贴图在弧线上重复的数量\n styleMappingMat[3].g = texCount;\n\n float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // 线横向偏移的距离\n float linePixelSize = project_pixel(a_Size); // 定点位置偏移\n styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // 线图层贴图部分的 v 坐标值\n }\n \n\n // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0));\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n // gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0));\n gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0));\n }\n setPickingColor(a_PickingColor);\n}\n',type:""}}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.segmentNumber,r=void 0===n?30:n,o=t.mask,i=void 0!==o&&o,a=t.maskInside,c=void 0===a||a,s=this.getShaders(),f=s.frag,p=s.vert,d=s.type;this.layer.buildLayerModel({moduleName:"lineArc2d"+d,vertexShader:p,fragmentShader:f,triangulation:l.d,depth:{enable:!1},blend:this.getBlend(),segmentNumber:r,stencil:Object(u.bb)(i,c)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){var e=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:c.AttributeType.Attribute,descriptor:{name:"a_Instance",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:4,update:function(e,t,n){return[n[3],n[4],n[5],n[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:c.AttributeType.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:2,update:function(t){var n=e.iconService.getIconMap()[t.texture]||{x:0,y:0};return[n.x,n.y]}}})}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.a),_=n("M4fI");function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T(e);if(t){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){if(t&&("object"===x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A={solid:0,dash:1},L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(i,e);var t,n,r,o=j(i);function i(){var e;E(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return M(P(e=o.call.apply(o,[this].concat(n))),"updateTexture",(function(){var t=e.rendererService.createTexture2D;if(e.texture)return e.texture.update({data:e.iconService.getCanvas()}),void e.layer.render();e.texture=t({data:e.iconService.getCanvas(),mag:c.gl.NEAREST,min:c.gl.NEAREST,premultiplyAlpha:!1,width:1024,height:e.iconService.canvasHeight||128})})),e}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.sourceColor,o=e.targetColor,i=e.textureBlend,s=void 0===i?"normal":i,l=e.lineType,f=void 0===l?"solid":l,p=e.dashArray,d=void 0===p?[10,5]:p,h=e.lineTexture,v=void 0!==h&&h,y=e.iconStep,m=void 0===y?100:y,g=e.segmentNumber,b=void 0===g?30:g,O=e.globalArcHeight,w=void 0===O?10:O;2===d.length&&d.push(0,0);var x=0,E=[0,0,0,0],S=[0,0,0,0];if(r&&o&&(E=Object(u.Eb)(r),S=Object(u.Eb)(o),x=1),this.rendererService.getDirty()&&this.texture.bind(),this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n})){this.judgeStyleAttributes({opacity:n});var C=this.layer.getEncodedData(),j=this.calDataFrame(this.cellLength,C,this.cellProperties),k=j.data,P=j.width,T=j.height;this.rowCount=T,this.dataTexture=this.cellLength>0&&k.length>0?this.createTexture2D({flipY:!0,data:k,format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:P,height:T}):this.createTexture2D({flipY:!0,data:[1],format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:1,height:1})}return{u_globel:"GLOBEL"===this.mapService.version?1:0,u_globel_radius:_.a,u_global_height:w,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:a()(n)?n:1,u_textureBlend:"normal"===s?0:1,segmentNumber:b,u_line_type:A[f]||0,u_dash_array:d,u_texture:this.texture,u_line_texture:v?1:0,u_icon_step:m,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:x,u_sourceColor:E,u_targetColor:S}}},{key:"getAnimateUniforms",value:function(){var e=this.layer.getLayerConfig().animateOption;return{u_animate:this.animateOption2Array(e),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(e){this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels(e)}},{key:"clearModels",value:function(){var e,t;null===(e=this.texture)||void 0===e||e.destroy(),null===(t=this.dataTexture)||void 0===t||t.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"getShaders",value:function(){var e=this.layer.getLayerConfig(),t=e.sourceColor,n=e.targetColor;return t&&n?{frag:'\n#define Animate 0.0\n\nuniform float u_opacity;\nuniform float u_blur : 0.9;\nvarying float v_segmentIndex;\nuniform float segmentNumber;\n\nuniform float u_time;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\n\nuniform float u_linearColor: 0;\nuniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\n\nvarying mat4 styleMappingMat;\n\n#pragma include "picking"\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float animateSpeed = 0.0; // 运动速度\n float d_distance_ratio = styleMappingMat[3].g; // 当前点位距离占线总长的比例\n\n gl_FragColor = mix(u_sourceColor, u_targetColor, v_segmentIndex/segmentNumber);\n\n gl_FragColor.a *= opacity;\n\n if(u_animate.x == Animate) {\n animateSpeed = u_time / u_animate.y;\n float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y);\n\n alpha = (alpha + u_animate.w -1.0) / u_animate.w;\n // alpha = smoothstep(0., 1., alpha);\n alpha = clamp(alpha, 0.0, 1.0);\n gl_FragColor.a *= alpha;\n\n // u_animate \n // x enable\n // y duration\n // z interval\n // w trailLength\n }\n\n gl_FragColor = filterColor(gl_FragColor);\n}\n',vert:'#define LineTypeSolid 0.0\n#define LineTypeDash 1.0\n#define Animate 0.0\n#define LineTexture 1.0\nattribute vec3 a_Position;\nattribute vec4 a_Instance;\nattribute vec4 a_Color;\nattribute float a_Size;\nattribute vec2 a_iconMapUV;\n\nuniform float u_globel;\nuniform float u_globel_radius;\nuniform float u_global_height: 10;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float segmentNumber;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\n\nuniform float u_line_type: 0.0;\nuniform vec4 u_dash_array: [10.0, 5., 0, 0];\nuniform float u_icon_step: 100;\nuniform float u_line_texture: 0.0;\nuniform float u_opacity: 1.0;\n\nvarying vec4 v_dash_array;\nvarying vec4 v_color;\nvarying float v_segmentIndex;\nvarying vec2 v_iconMapUV;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "project"\n#pragma include "picking"\n\nfloat maps (float value, float start1, float stop1, float start2, float stop2) {\n return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1));\n}\n\nfloat getSegmentRatio(float index) {\n return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0));\n}\n\nfloat paraboloid(vec2 source, vec2 target, float ratio) {\n vec2 x = mix(source, target, ratio);\n vec2 center = mix(source, target, 0.5);\n float dSourceCenter = distance(source, center);\n float dXCenter = distance(x, center);\n return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter);\n}\n\nvec3 getPos(vec2 source, vec2 target, float segmentRatio) {\n float vertex_height = paraboloid(source, target, segmentRatio);\n\n return vec3(\n mix(source, target, segmentRatio),\n sqrt(max(0.0, vertex_height))\n );\n}\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0;\n\n return offset;\n}\nvec2 getNormal(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction);\n}\n\nfloat torad(float deg) {\n return (deg / 180.0) * acos(-1.0);\n}\n\nvec3 lglt2xyz(vec2 lnglat) {\n float pi = 3.1415926;\n // + Math.PI/2 是为了对齐坐标\n float lng = torad(lnglat.x) + pi / 2.0;\n float lat = torad(lnglat.y);\n\n // 手动增加一些偏移,减轻面的冲突\n float radius = u_globel_radius;\n\n float z = radius * cos(lat) * cos(lng);\n float x = radius * cos(lat) * sin(lng);\n float y = radius * sin(lat);\n return vec3(x, y, z);\n}\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // dataset 数据集\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n v_color = a_Color;\n vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy;\n vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy;\n float segmentIndex = a_Position.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n\n float d_distance_ratio;\n if(u_line_type == LineTypeDash) {\n d_distance_ratio = segmentIndex / segmentNumber;\n // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba) / 2.0 * PI;\n vec2 s = source;\n vec2 t = target;\n \n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n s = unProjCustomCoord(source);\n t = unProjCustomCoord(target);\n }\n float total_Distance = pixelDistance(s, t) / 2.0 * PI;\n v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex);\n }\n if(u_animate.x == Animate) {\n d_distance_ratio = segmentIndex / segmentNumber;\n }\n styleMappingMat[3].g = d_distance_ratio; // 当前点位距离占线总长的比例\n\n float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir);\n vec3 curr = getPos(source, target, segmentRatio);\n vec3 next = getPos(source, target, nextSegmentRatio);\n vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y);\n // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y);\n\n\n v_segmentIndex = a_Position.x;\n if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // 开启贴图模式 \n\n float arcDistrance = length(source - target);\n float pixelLen = project_pixel_texture(u_icon_step);\n styleMappingMat[3].b = floor(arcDistrance/pixelLen); // 贴图在弧线上重复的数量\n\n vec2 projectOffset = project_pixel(offset);\n float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // 线横向偏移的距离\n float linePixelSize = project_pixel(a_Size); // 定点位置偏移,按地图等级缩放后的距离\n styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // 线图层贴图部分的 v 坐标值\n\n v_iconMapUV = a_iconMapUV;\n }\n \n\n // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0));\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(curr.xy + project_pixel(offset), curr.z, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0));\n }\n\n // 地球模式\n if(u_globel > 0.0) {\n vec3 startLngLat = lglt2xyz(a_Instance.rg);\n vec3 endLngLat = lglt2xyz(a_Instance.ba);\n float globalRadius = length(startLngLat);\n\n vec3 lineDir = normalize(endLngLat - startLngLat);\n vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0);\n\n // 线的偏移\n vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y;\n // 计算起始点和终止点的距离\n float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0;\n // 计算飞线各个节点相应的高度\n float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength;\n // 地球点位\n vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size;\n \n gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0);\n }\n \n\n setPickingColor(a_PickingColor);\n}\n',type:"Linear"}:{frag:'#define LineTypeSolid 0.0\n#define LineTypeDash 1.0\n#define Animate 0.0\n#define LineTexture 1.0\n\nuniform float u_opacity;\nuniform float u_textureBlend;\nuniform float u_blur : 0.9;\nuniform float u_line_type: 0.0;\n// varying vec2 v_normal;\nvarying vec4 v_dash_array;\nvarying vec4 v_color;\n\nuniform float u_line_texture: 0.0;\nuniform sampler2D u_texture;\nuniform vec2 u_textSize;\nvarying float v_segmentIndex;\nuniform float segmentNumber;\n\nvarying vec2 v_iconMapUV;\n\nuniform float u_time;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\n\nvarying mat4 styleMappingMat;\n\n#pragma include "picking"\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float animateSpeed = 0.0; // 运动速度\n float d_distance_ratio = styleMappingMat[3].g; // 当前点位距离占线总长的比例\n gl_FragColor = v_color;\n\n gl_FragColor.a *= opacity;\n if(u_line_type == LineTypeDash) {\n float flag = 0.;\n float dashLength = mod(d_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w);\n if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) {\n flag = 1.;\n }\n gl_FragColor.a *=flag;\n }\n\n if(u_animate.x == Animate && u_line_texture != LineTexture) {\n animateSpeed = u_time / u_animate.y;\n float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y);\n\n alpha = (alpha + u_animate.w -1.0) / u_animate.w;\n // alpha = smoothstep(0., 1., alpha);\n alpha = clamp(alpha, 0.0, 1.0);\n gl_FragColor.a *= alpha;\n\n // u_animate \n // x enable\n // y duration\n // z interval\n // w trailLength\n }\n\n if(u_line_texture == LineTexture && u_line_type != LineTypeDash) { // while load texture\n // float arcRadio = smoothstep( 0.0, 1.0, (v_segmentIndex / segmentNumber));\n float arcRadio = v_segmentIndex / (segmentNumber - 1.0);\n float count = styleMappingMat[3].b; // // 贴图在弧线上重复的数量\n\n float time = 0.0;\n if(u_animate.x == Animate) {\n time = u_time / u_animate.y;\n }\n float redioCount = arcRadio * count;\n\n float u = fract(redioCount - time);\n\n float v = styleMappingMat[3].a; // 线图层贴图部分的 v 坐标值\n vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.;\n vec4 pattern = texture2D(u_texture, uv);\n\n if(u_animate.x == Animate) {\n float currentPlane = floor(redioCount - time);\n float textureStep = floor(count * u_animate.z);\n float a = mod(currentPlane, textureStep);\n if(a < textureStep - 1.0) {\n pattern = vec4(0.0);\n }\n }\n\n if(u_textureBlend == 0.0) { // normal\n pattern.a = 0.0;\n gl_FragColor = filterColor(gl_FragColor + pattern);\n } else { // replace\n pattern.a *= opacity;\n if(gl_FragColor.a <= 0.0) {\n pattern.a = 0.0;\n discard;\n } else {\n gl_FragColor = filterColor(pattern);\n }\n }\n\n } else {\n gl_FragColor = filterColor(gl_FragColor);\n }\n}\n',vert:'#define LineTypeSolid 0.0\n#define LineTypeDash 1.0\n#define Animate 0.0\n#define LineTexture 1.0\nattribute vec3 a_Position;\nattribute vec4 a_Instance;\nattribute vec4 a_Color;\nattribute float a_Size;\n\nuniform float u_globel;\nuniform float u_globel_radius;\nuniform float u_global_height: 10;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float segmentNumber;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\nvarying vec4 v_color;\n\nuniform float u_line_type: 0.0;\nuniform vec4 u_dash_array: [10.0, 5., 0, 0];\nvarying vec4 v_dash_array;\n\nuniform float u_icon_step: 100;\nuniform float u_line_texture: 0.0;\nvarying float v_segmentIndex;\n\nattribute vec2 a_iconMapUV;\nvarying vec2 v_iconMapUV;\n\nuniform float u_opacity: 1.0;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "project"\n#pragma include "picking"\n\nfloat maps (float value, float start1, float stop1, float start2, float stop2) {\n return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1));\n}\n\nfloat getSegmentRatio(float index) {\n return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0));\n}\n\nfloat paraboloid(vec2 source, vec2 target, float ratio) {\n vec2 x = mix(source, target, ratio);\n vec2 center = mix(source, target, 0.5);\n float dSourceCenter = distance(source, center);\n float dXCenter = distance(x, center);\n return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter);\n}\n\nvec3 getPos(vec2 source, vec2 target, float segmentRatio) {\n float vertex_height = paraboloid(source, target, segmentRatio);\n\n return vec3(\n mix(source, target, segmentRatio),\n sqrt(max(0.0, vertex_height))\n );\n}\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0;\n\n return offset;\n}\nvec2 getNormal(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction);\n}\n\nfloat torad(float deg) {\n return (deg / 180.0) * acos(-1.0);\n}\n\nvec3 lglt2xyz(vec2 lnglat) {\n float pi = 3.1415926;\n // + Math.PI/2 是为了对齐坐标\n float lng = torad(lnglat.x) + pi / 2.0;\n float lat = torad(lnglat.y);\n\n // 手动增加一些偏移,减轻面的冲突\n float radius = u_globel_radius;\n\n float z = radius * cos(lat) * cos(lng);\n float x = radius * cos(lat) * sin(lng);\n float y = radius * sin(lat);\n return vec3(x, y, z);\n}\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // dataset 数据集\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n v_color = a_Color;\n vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy;\n vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy;\n float segmentIndex = a_Position.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n\n float d_distance_ratio;\n if(u_line_type == LineTypeDash) {\n d_distance_ratio = segmentIndex / segmentNumber;\n vec2 s = source;\n vec2 t = target;\n \n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n s = unProjCustomCoord(source);\n t = unProjCustomCoord(target);\n }\n float total_Distance = pixelDistance(s, t) / 2.0 * PI;\n v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex);\n }\n if(u_animate.x == Animate) {\n d_distance_ratio = segmentIndex / segmentNumber;\n }\n styleMappingMat[3].g = d_distance_ratio; // 当前点位距离占线总长的比例\n\n float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir);\n vec3 curr = getPos(source, target, segmentRatio);\n vec3 next = getPos(source, target, nextSegmentRatio);\n vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y);\n // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y);\n\n\n v_segmentIndex = a_Position.x;\n if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // 开启贴图模式 \n\n float arcDistrance = length(source - target);\n float pixelLen = project_pixel_texture(u_icon_step);\n styleMappingMat[3].b = floor(arcDistrance/pixelLen); // 贴图在弧线上重复的数量\n\n vec2 projectOffset = project_pixel(offset);\n float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // 线横向偏移的距离\n float linePixelSize = project_pixel(a_Size); // 定点位置偏移,按地图等级缩放后的距离\n styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // 线图层贴图部分的 v 坐标值\n\n v_iconMapUV = a_iconMapUV;\n }\n \n\n // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0));\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(curr.xy + project_pixel(offset), curr.z, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0));\n }\n\n // 地球模式\n if(u_globel > 0.0) {\n vec3 startLngLat = lglt2xyz(a_Instance.rg);\n vec3 endLngLat = lglt2xyz(a_Instance.ba);\n float globalRadius = length(startLngLat);\n\n vec3 lineDir = normalize(endLngLat - startLngLat);\n vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0);\n\n // 线的偏移\n vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y;\n // 计算起始点和终止点的距离\n float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0;\n // 计算飞线各个节点相应的高度\n float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength;\n // 地球点位\n vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size;\n \n gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0);\n }\n \n\n setPickingColor(a_PickingColor);\n}\n',type:""}}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.segmentNumber,r=void 0===n?30:n,o=t.mask,i=void 0!==o&&o,a=t.maskInside,c=void 0===a||a,s=this.getShaders(),f=s.frag,p=s.vert,d=s.type;this.layer.buildLayerModel({moduleName:"lineArc3d"+d,vertexShader:p,fragmentShader:f,triangulation:l.d,blend:this.getBlend(),segmentNumber:r,stencil:Object(u.bb)(i,c)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){var e=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:c.AttributeType.Attribute,descriptor:{name:"a_Instance",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:4,update:function(e,t,n){return[n[3],n[4],n[5],n[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:c.AttributeType.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:2,update:function(t){var n=e.iconService.getIconMap()[t.texture]||{x:0,y:0};return[n.x,n.y]}}})}}])&&S(t.prototype,n),r&&S(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.a);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function D(e,t){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=U(e);if(t){var o=U(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return B(e)}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H={solid:0,dash:1},G=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D(e,t)}(i,e);var t,n,r,o=F(i);function i(){var e;N(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return V(B(e=o.call.apply(o,[this].concat(n))),"updateTexture",(function(){var t=e.rendererService.createTexture2D;if(e.texture)return e.texture.update({data:e.iconService.getCanvas()}),void e.layer.render();e.texture=t({data:e.iconService.getCanvas(),mag:c.gl.NEAREST,min:c.gl.NEAREST,premultiplyAlpha:!1,width:1024,height:e.iconService.canvasHeight||128})})),e}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.sourceColor,o=e.targetColor,i=e.textureBlend,s=void 0===i?"normal":i,l=e.lineType,f=void 0===l?"solid":l,p=e.dashArray,d=void 0===p?[10,5]:p,h=e.lineTexture,v=void 0!==h&&h,y=e.iconStep,m=void 0===y?100:y,g=e.segmentNumber,b=void 0===g?30:g,O=e.globalArcHeight,w=void 0===O?10:O;2===d.length&&d.push(0,0);var x=0,E=[0,0,0,0],S=[0,0,0,0];if(r&&o&&(E=Object(u.Eb)(r),S=Object(u.Eb)(o),x=1),this.rendererService.getDirty()&&this.texture.bind(),this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n})){this.judgeStyleAttributes({opacity:n});var C=this.layer.getEncodedData(),j=this.calDataFrame(this.cellLength,C,this.cellProperties),k=j.data,P=j.width,T=j.height;this.rowCount=T,this.dataTexture=this.cellLength>0&&k.length>0?this.createTexture2D({flipY:!0,data:k,format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:P,height:T}):this.createTexture2D({flipY:!0,data:[1],format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:1,height:1})}return{u_globel:1,u_globel_radius:_.a,u_global_height:w,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:a()(n)?n:1,u_textureBlend:"normal"===s?0:1,segmentNumber:b,u_line_type:H[f]||0,u_dash_array:d,u_texture:this.texture,u_line_texture:v?1:0,u_icon_step:m,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:x,u_sourceColor:E,u_targetColor:S}}},{key:"getAnimateUniforms",value:function(){var e=this.layer.getLayerConfig().animateOption;return{u_animate:this.animateOption2Array(e),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(e){this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels(e)}},{key:"clearModels",value:function(){var e,t;null===(e=this.texture)||void 0===e||e.destroy(),null===(t=this.dataTexture)||void 0===t||t.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"getShaders",value:function(){var e=this.layer.getLayerConfig(),t=e.sourceColor,n=e.targetColor;return t&&n?{frag:'\n#define Animate 0.0\n\nuniform float u_opacity;\nuniform float u_blur : 0.9;\nvarying float v_segmentIndex;\nuniform float segmentNumber;\n\nuniform float u_time;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\n\nuniform float u_linearColor: 0;\nuniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\n\nvarying mat4 styleMappingMat;\n\n#pragma include "picking"\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float animateSpeed = 0.0; // 运动速度\n float d_distance_ratio = styleMappingMat[3].g; // 当前点位距离占线总长的比例\n\n gl_FragColor = mix(u_sourceColor, u_targetColor, v_segmentIndex/segmentNumber);\n\n gl_FragColor.a *= opacity;\n\n if(u_animate.x == Animate) {\n animateSpeed = u_time / u_animate.y;\n float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y);\n\n alpha = (alpha + u_animate.w -1.0) / u_animate.w;\n // alpha = smoothstep(0., 1., alpha);\n alpha = clamp(alpha, 0.0, 1.0);\n gl_FragColor.a *= alpha;\n\n // u_animate \n // x enable\n // y duration\n // z interval\n // w trailLength\n }\n\n gl_FragColor = filterColor(gl_FragColor);\n}\n',vert:'#define LineTypeSolid 0.0\n#define LineTypeDash 1.0\n#define Animate 0.0\n#define LineTexture 1.0\nattribute vec3 a_Position;\nattribute vec4 a_Instance;\nattribute vec4 a_Color;\nattribute float a_Size;\nattribute vec2 a_iconMapUV;\n\nuniform float u_globel;\nuniform float u_globel_radius;\nuniform float u_global_height: 10;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float segmentNumber;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\n\nuniform float u_line_type: 0.0;\nuniform vec4 u_dash_array: [10.0, 5., 0, 0];\nuniform float u_icon_step: 100;\nuniform float u_line_texture: 0.0;\nuniform float u_opacity: 1.0;\n\nvarying vec4 v_dash_array;\nvarying vec4 v_color;\nvarying float v_segmentIndex;\nvarying vec2 v_iconMapUV;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "project"\n#pragma include "picking"\n\nfloat maps (float value, float start1, float stop1, float start2, float stop2) {\n return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1));\n}\n\nfloat getSegmentRatio(float index) {\n return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0));\n}\n\nfloat paraboloid(vec2 source, vec2 target, float ratio) {\n vec2 x = mix(source, target, ratio);\n vec2 center = mix(source, target, 0.5);\n float dSourceCenter = distance(source, center);\n float dXCenter = distance(x, center);\n return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter);\n}\n\nvec3 getPos(vec2 source, vec2 target, float segmentRatio) {\n float vertex_height = paraboloid(source, target, segmentRatio);\n\n return vec3(\n mix(source, target, segmentRatio),\n sqrt(max(0.0, vertex_height))\n );\n}\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0;\n\n return offset;\n}\nvec2 getNormal(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction);\n}\n\nfloat torad(float deg) {\n return (deg / 180.0) * acos(-1.0);\n}\n\nvec3 lglt2xyz(vec2 lnglat) {\n float pi = 3.1415926;\n // + Math.PI/2 是为了对齐坐标\n float lng = torad(lnglat.x) + pi / 2.0;\n float lat = torad(lnglat.y);\n\n // 手动增加一些偏移,减轻面的冲突\n float radius = u_globel_radius;\n\n float z = radius * cos(lat) * cos(lng);\n float x = radius * cos(lat) * sin(lng);\n float y = radius * sin(lat);\n return vec3(x, y, z);\n}\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // dataset 数据集\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n v_color = a_Color;\n vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy;\n vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy;\n float segmentIndex = a_Position.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n\n float d_distance_ratio;\n if(u_line_type == LineTypeDash) {\n d_distance_ratio = segmentIndex / segmentNumber;\n // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba) / 2.0 * PI;\n vec2 s = source;\n vec2 t = target;\n \n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n s = unProjCustomCoord(source);\n t = unProjCustomCoord(target);\n }\n float total_Distance = pixelDistance(s, t) / 2.0 * PI;\n v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex);\n }\n if(u_animate.x == Animate) {\n d_distance_ratio = segmentIndex / segmentNumber;\n }\n styleMappingMat[3].g = d_distance_ratio; // 当前点位距离占线总长的比例\n\n float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir);\n vec3 curr = getPos(source, target, segmentRatio);\n vec3 next = getPos(source, target, nextSegmentRatio);\n vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y);\n // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y);\n\n\n v_segmentIndex = a_Position.x;\n if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // 开启贴图模式 \n\n float arcDistrance = length(source - target);\n float pixelLen = project_pixel_texture(u_icon_step);\n styleMappingMat[3].b = floor(arcDistrance/pixelLen); // 贴图在弧线上重复的数量\n\n vec2 projectOffset = project_pixel(offset);\n float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // 线横向偏移的距离\n float linePixelSize = project_pixel(a_Size); // 定点位置偏移,按地图等级缩放后的距离\n styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // 线图层贴图部分的 v 坐标值\n\n v_iconMapUV = a_iconMapUV;\n }\n \n\n // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0));\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(curr.xy + project_pixel(offset), curr.z, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0));\n }\n\n // 地球模式\n if(u_globel > 0.0) {\n vec3 startLngLat = lglt2xyz(a_Instance.rg);\n vec3 endLngLat = lglt2xyz(a_Instance.ba);\n float globalRadius = length(startLngLat);\n\n vec3 lineDir = normalize(endLngLat - startLngLat);\n vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0);\n\n // 线的偏移\n vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y;\n // 计算起始点和终止点的距离\n float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0;\n // 计算飞线各个节点相应的高度\n float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength;\n // 地球点位\n vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size;\n \n gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0);\n }\n \n\n setPickingColor(a_PickingColor);\n}\n',type:"Linear"}:{frag:'#define LineTypeSolid 0.0\n#define LineTypeDash 1.0\n#define Animate 0.0\n#define LineTexture 1.0\n\nuniform float u_opacity;\nuniform float u_textureBlend;\nuniform float u_blur : 0.9;\nuniform float u_line_type: 0.0;\n// varying vec2 v_normal;\nvarying vec4 v_dash_array;\nvarying vec4 v_color;\n\nuniform float u_line_texture: 0.0;\nuniform sampler2D u_texture;\nuniform vec2 u_textSize;\nvarying float v_segmentIndex;\nuniform float segmentNumber;\n\nvarying vec2 v_iconMapUV;\n\nuniform float u_time;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\n\nvarying mat4 styleMappingMat;\n\n#pragma include "picking"\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float animateSpeed = 0.0; // 运动速度\n float d_distance_ratio = styleMappingMat[3].g; // 当前点位距离占线总长的比例\n gl_FragColor = v_color;\n\n gl_FragColor.a *= opacity;\n if(u_line_type == LineTypeDash) {\n float flag = 0.;\n float dashLength = mod(d_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w);\n if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) {\n flag = 1.;\n }\n gl_FragColor.a *=flag;\n }\n\n if(u_animate.x == Animate && u_line_texture != LineTexture) {\n animateSpeed = u_time / u_animate.y;\n float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y);\n\n alpha = (alpha + u_animate.w -1.0) / u_animate.w;\n // alpha = smoothstep(0., 1., alpha);\n alpha = clamp(alpha, 0.0, 1.0);\n gl_FragColor.a *= alpha;\n\n // u_animate \n // x enable\n // y duration\n // z interval\n // w trailLength\n }\n\n if(u_line_texture == LineTexture && u_line_type != LineTypeDash) { // while load texture\n // float arcRadio = smoothstep( 0.0, 1.0, (v_segmentIndex / segmentNumber));\n float arcRadio = v_segmentIndex / (segmentNumber - 1.0);\n float count = styleMappingMat[3].b; // // 贴图在弧线上重复的数量\n\n float time = 0.0;\n if(u_animate.x == Animate) {\n time = u_time / u_animate.y;\n }\n float redioCount = arcRadio * count;\n\n float u = fract(redioCount - time);\n\n float v = styleMappingMat[3].a; // 线图层贴图部分的 v 坐标值\n vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.;\n vec4 pattern = texture2D(u_texture, uv);\n\n if(u_animate.x == Animate) {\n float currentPlane = floor(redioCount - time);\n float textureStep = floor(count * u_animate.z);\n float a = mod(currentPlane, textureStep);\n if(a < textureStep - 1.0) {\n pattern = vec4(0.0);\n }\n }\n\n if(u_textureBlend == 0.0) { // normal\n pattern.a = 0.0;\n gl_FragColor = filterColor(gl_FragColor + pattern);\n } else { // replace\n pattern.a *= opacity;\n if(gl_FragColor.a <= 0.0) {\n pattern.a = 0.0;\n discard;\n } else {\n gl_FragColor = filterColor(pattern);\n }\n }\n\n } else {\n gl_FragColor = filterColor(gl_FragColor);\n }\n}\n',vert:'#define LineTypeSolid 0.0\n#define LineTypeDash 1.0\n#define Animate 0.0\n#define LineTexture 1.0\nattribute vec3 a_Position;\nattribute vec4 a_Instance;\nattribute vec4 a_Color;\nattribute float a_Size;\n\nuniform float u_globel;\nuniform float u_globel_radius;\nuniform float u_global_height: 10;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float segmentNumber;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\nvarying vec4 v_color;\n\nuniform float u_line_type: 0.0;\nuniform vec4 u_dash_array: [10.0, 5., 0, 0];\nvarying vec4 v_dash_array;\n\nuniform float u_icon_step: 100;\nuniform float u_line_texture: 0.0;\nvarying float v_segmentIndex;\n\nattribute vec2 a_iconMapUV;\nvarying vec2 v_iconMapUV;\n\nuniform float u_opacity: 1.0;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "project"\n#pragma include "picking"\n\nfloat maps (float value, float start1, float stop1, float start2, float stop2) {\n return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1));\n}\n\nfloat getSegmentRatio(float index) {\n return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0));\n}\n\nfloat paraboloid(vec2 source, vec2 target, float ratio) {\n vec2 x = mix(source, target, ratio);\n vec2 center = mix(source, target, 0.5);\n float dSourceCenter = distance(source, center);\n float dXCenter = distance(x, center);\n return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter);\n}\n\nvec3 getPos(vec2 source, vec2 target, float segmentRatio) {\n float vertex_height = paraboloid(source, target, segmentRatio);\n\n return vec3(\n mix(source, target, segmentRatio),\n sqrt(max(0.0, vertex_height))\n );\n}\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0;\n\n return offset;\n}\nvec2 getNormal(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction);\n}\n\nfloat torad(float deg) {\n return (deg / 180.0) * acos(-1.0);\n}\n\nvec3 lglt2xyz(vec2 lnglat) {\n float pi = 3.1415926;\n // + Math.PI/2 是为了对齐坐标\n float lng = torad(lnglat.x) + pi / 2.0;\n float lat = torad(lnglat.y);\n\n // 手动增加一些偏移,减轻面的冲突\n float radius = u_globel_radius;\n\n float z = radius * cos(lat) * cos(lng);\n float x = radius * cos(lat) * sin(lng);\n float y = radius * sin(lat);\n return vec3(x, y, z);\n}\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // dataset 数据集\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n v_color = a_Color;\n vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy;\n vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy;\n float segmentIndex = a_Position.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n\n float d_distance_ratio;\n if(u_line_type == LineTypeDash) {\n d_distance_ratio = segmentIndex / segmentNumber;\n vec2 s = source;\n vec2 t = target;\n \n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n s = unProjCustomCoord(source);\n t = unProjCustomCoord(target);\n }\n float total_Distance = pixelDistance(s, t) / 2.0 * PI;\n v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex);\n }\n if(u_animate.x == Animate) {\n d_distance_ratio = segmentIndex / segmentNumber;\n }\n styleMappingMat[3].g = d_distance_ratio; // 当前点位距离占线总长的比例\n\n float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir);\n vec3 curr = getPos(source, target, segmentRatio);\n vec3 next = getPos(source, target, nextSegmentRatio);\n vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y);\n // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y);\n\n\n v_segmentIndex = a_Position.x;\n if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // 开启贴图模式 \n\n float arcDistrance = length(source - target);\n float pixelLen = project_pixel_texture(u_icon_step);\n styleMappingMat[3].b = floor(arcDistrance/pixelLen); // 贴图在弧线上重复的数量\n\n vec2 projectOffset = project_pixel(offset);\n float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // 线横向偏移的距离\n float linePixelSize = project_pixel(a_Size); // 定点位置偏移,按地图等级缩放后的距离\n styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // 线图层贴图部分的 v 坐标值\n\n v_iconMapUV = a_iconMapUV;\n }\n \n\n // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0));\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(curr.xy + project_pixel(offset), curr.z, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0));\n }\n\n // 地球模式\n if(u_globel > 0.0) {\n vec3 startLngLat = lglt2xyz(a_Instance.rg);\n vec3 endLngLat = lglt2xyz(a_Instance.ba);\n float globalRadius = length(startLngLat);\n\n vec3 lineDir = normalize(endLngLat - startLngLat);\n vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0);\n\n // 线的偏移\n vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y;\n // 计算起始点和终止点的距离\n float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0;\n // 计算飞线各个节点相应的高度\n float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength;\n // 地球点位\n vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size;\n \n gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0);\n }\n \n\n setPickingColor(a_PickingColor);\n}\n',type:""}}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.segmentNumber,r=void 0===n?30:n,o=t.mask,i=void 0!==o&&o,a=t.maskInside,c=void 0===a||a,s=this.getShaders(),f=s.frag,p=s.vert,d=s.type;this.layer.buildLayerModel({moduleName:"lineEarthArc3d"+d,vertexShader:p,fragmentShader:f,triangulation:l.d,depth:{enable:!0},blend:this.getBlend(),segmentNumber:r,stencil:Object(u.bb)(i,c)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){var e=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:c.AttributeType.Attribute,descriptor:{name:"a_Instance",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:4,update:function(e,t,n){return[n[3],n[4],n[5],n[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:c.AttributeType.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:2,update:function(t){var n=e.iconService.getIconMap()[t.texture]||{x:0,y:0};return[n.x,n.y]}}})}}])&&I(t.prototype,n),r&&I(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.a);function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(e,t){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q(e);if(t){var o=Q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(e,t){if(t&&("object"===W(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return J(e)}function J(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ee={solid:0,dash:1},te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X(e,t)}(i,e);var t,n,r,o=q(i);function i(){var e;Y(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $(J(e=o.call.apply(o,[this].concat(n))),"updateTexture",(function(){var t=e.rendererService.createTexture2D;if(e.texture)return e.texture.update({data:e.iconService.getCanvas()}),void e.layer.render();e.texture=t({data:e.iconService.getCanvas(),mag:c.gl.NEAREST,min:c.gl.NEAREST,premultiplyAlpha:!1,width:1024,height:e.iconService.canvasHeight||128})})),e}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.sourceColor,o=e.targetColor,i=e.textureBlend,s=void 0===i?"normal":i,l=e.lineType,f=void 0===l?"solid":l,p=e.dashArray,d=void 0===p?[10,5]:p,h=e.lineTexture,v=void 0!==h&&h,y=e.iconStep,m=void 0===y?100:y,g=e.segmentNumber,b=void 0===g?30:g;2===d.length&&d.push(0,0),this.rendererService.getDirty()&&this.texture.bind();var O=0,w=[0,0,0,0],_=[0,0,0,0];if(r&&o&&(w=Object(u.Eb)(r),_=Object(u.Eb)(o),O=1),this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n})){this.judgeStyleAttributes({opacity:n});var x=this.layer.getEncodedData(),E=this.calDataFrame(this.cellLength,x,this.cellProperties),S=E.data,C=E.width,j=E.height;this.rowCount=j,this.dataTexture=this.cellLength>0&&S.length>0?this.createTexture2D({flipY:!0,data:S,format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:C,height:j}):this.createTexture2D({flipY:!0,data:[1],format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:a()(n)?n:1,u_textureBlend:"normal"===s?0:1,segmentNumber:b,u_line_type:ee[f]||0,u_dash_array:d,u_texture:this.texture,u_line_texture:v?1:0,u_icon_step:m,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:O,u_sourceColor:w,u_targetColor:_}}},{key:"getAnimateUniforms",value:function(){var e=this.layer.getLayerConfig().animateOption;return{u_animate:this.animateOption2Array(e),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(e){this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels(e)}},{key:"clearModels",value:function(){var e,t;null===(e=this.texture)||void 0===e||e.destroy(),null===(t=this.dataTexture)||void 0===t||t.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o;this.layer.buildLayerModel({moduleName:"lineGreatCircle",vertexShader:'#define LineTypeSolid 0.0\n#define LineTypeDash 1.0\n#define Animate 0.0\n#define LineTexture 1.0\n\nattribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec4 a_Instance;\nattribute float a_Size;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float segmentNumber;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\nvarying vec4 v_color;\n\nvarying float v_distance_ratio;\nuniform float u_line_type: 0.0;\nuniform vec4 u_dash_array: [10.0, 5., 0, 0];\nvarying vec4 v_dash_array;\n\nuniform float u_icon_step: 100;\nuniform float u_line_texture: 0.0;\n\nattribute vec2 a_iconMapUV;\nvarying vec2 v_iconMapUV;\n\nuniform float u_opacity: 1.0;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "project"\n#pragma include "picking"\n\nfloat maps (float value, float start1, float stop1, float start2, float stop2) {\n return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1));\n}\n\nfloat getSegmentRatio(float index) {\n return index / (segmentNumber - 1.);\n}\n\nfloat paraboloid(vec2 source, vec2 target, float ratio) {\n vec2 x = mix(source, target, ratio);\n vec2 center = mix(source, target, 0.5);\n float dSourceCenter = distance(source, center);\n float dXCenter = distance(x, center);\n return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter);\n}\n\nvec3 getPos(vec2 source, vec2 target, float segmentRatio) {\n float vertex_height = paraboloid(source, target, segmentRatio);\n\n return vec3(\n mix(source, target, segmentRatio),\n sqrt(max(0.0, vertex_height))\n );\n}\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size)/ 2.0;\n return offset;\n}\nvec2 getNormal(vec2 line_clipspace, float offset_direction) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction);\n}\nfloat getAngularDist (vec2 source, vec2 target) {\n vec2 delta = source - target;\n vec2 sin_half_delta = sin(delta / 2.0);\n float a =\n sin_half_delta.y * sin_half_delta.y +\n cos(source.y) * cos(target.y) *\n sin_half_delta.x * sin_half_delta.x;\n return 2.0 * atan(sqrt(a), sqrt(1.0 - a));\n}\n\nvec2 midPoint(vec2 source, vec2 target) {\n vec2 center = target - source;\n float r = length(center);\n float theta = atan(center.y, center.x);\n float thetaOffset = 0.314;\n float r2 = r / 2.0 / cos(thetaOffset);\n float theta2 = theta + thetaOffset;\n vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y);\n return mid;\n}\nfloat bezier3(vec3 arr, float t) {\n float ut = 1. - t;\n return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t;\n}\n\nvec2 interpolate (vec2 source, vec2 target, float angularDist, float t) {\n // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n vec2 mid = midPoint(source, target);\n vec3 x = vec3(source.x, mid.x, target.x);\n vec3 y = vec3(source.y, mid.y, target.y);\n return vec2(bezier3(x ,t), bezier3(y,t));\n }else {\n if(abs(angularDist - PI) < 0.001) {\n return (1.0 - t) * source + t * target;\n }\n float a = sin((1.0 - t) * angularDist) / sin(angularDist);\n float b = sin(t * angularDist) / sin(angularDist);\n vec2 sin_source = sin(source);\n vec2 cos_source = cos(source);\n vec2 sin_target = sin(target);\n vec2 cos_target = cos(target);\n float x = a * cos_source.y * cos_source.x + b * cos_target.y * cos_target.x;\n float y = a * cos_source.y * sin_source.x + b * cos_target.y * sin_target.x;\n float z = a * sin_source.y + b * sin_target.y;\n return vec2(atan(y, x), atan(z, sqrt(x * x + y * y)));\n }\n}\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // dataset 数据集\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n v_color = a_Color;\n vec2 source = radians(a_Instance.rg);\n vec2 target = radians(a_Instance.ba);\n float angularDist = getAngularDist(source, target);\n float segmentIndex = a_Position.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n\n if(u_line_type == LineTypeDash) {\n v_distance_ratio = segmentIndex / segmentNumber;\n vec2 s = source;\n vec2 t = target;\n \n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n s = unProjCustomCoord(source);\n t = unProjCustomCoord(target);\n }\n float total_Distance = pixelDistance(s, t) / 2.0 * PI;\n total_Distance = total_Distance*16.0; // total_Distance*16.0 调整默认的效果\n v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / total_Distance;\n }\n\n if(u_animate.x == Animate) {\n v_distance_ratio = segmentIndex / segmentNumber;\n }\n\n float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir);\n v_distance_ratio = segmentIndex / segmentNumber;\n vec4 curr = project_position(vec4(degrees(interpolate(source, target, angularDist, segmentRatio)), 0.0, 1.0));\n vec4 next = project_position(vec4(degrees(interpolate(source, target, angularDist, nextSegmentRatio)), 0.0, 1.0));\n // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y);\n vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y));\n // vec4 project_pos = project_position(vec4(curr.xy, 0, 1.0));\n // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, curr.z, 1.0));\n\n styleMappingMat[3].g = a_Position.x; // 该顶点在弧线上的分段排序\n if(LineTexture == u_line_texture) { // 开启贴图模式 \n // float mapZoomScale = u_CoordinateSystem !== COORDINATE_SYSTEM_P20_2?10000000.0:1.0;\n float d_arcDistrance = length(source - target);\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap\n d_arcDistrance = d_arcDistrance * 1000000.0;\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox\n d_arcDistrance = project_pixel_allmap(d_arcDistrance);\n }\n float d_pixelLen = project_pixel(u_icon_step)/8.0;\n styleMappingMat[3].b = floor(d_arcDistrance/d_pixelLen); // 贴图在弧线上重复的数量\n\n float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // 线横向偏移的距离\n float linePixelSize = project_pixel(a_Size); // 定点位置偏移,按地图等级缩放后的距离\n styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // 线图层贴图部分的 v 坐标值\n\n v_iconMapUV = a_iconMapUV;\n }\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(curr.xy + offset, curr.z, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, curr.z, 1.0));\n }\n setPickingColor(a_PickingColor);\n}\n\n',fragmentShader:'#define LineTypeSolid 0.0\n#define LineTypeDash 1.0\n#define Animate 0.0\n#define LineTexture 1.0\n\nuniform float u_opacity;\nuniform float u_textureBlend;\nuniform float u_blur : 0.9;\nuniform float u_line_type: 0.0;\n// varying vec2 v_normal;\nvarying vec4 v_dash_array;\nvarying float v_distance_ratio;\nvarying vec4 v_color;\n\nuniform float u_time;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\n\nuniform float u_line_texture: 0.0;\nuniform sampler2D u_texture;\nuniform vec2 u_textSize;\nuniform float segmentNumber;\n\nvarying vec2 v_iconMapUV;\n\nuniform float u_linearColor: 0;\nuniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\n\nvarying mat4 styleMappingMat;\n\n#pragma include "picking"\n#pragma include "project"\n#pragma include "projection"\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float animateSpeed = 0.0;\n float d_segmentIndex = styleMappingMat[3].g;\n \n // 设置弧线的底色\n if(u_linearColor == 1.0) { // 使用渐变颜色\n gl_FragColor = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber);\n } else { // 使用 color 方法传入的颜色\n gl_FragColor = v_color;\n }\n\n // float blur = 1.- smoothstep(u_blur, 1., length(v_normal.xy));\n // float blur = smoothstep(1.0, u_blur, length(v_normal.xy));\n gl_FragColor.a *= opacity;\n if(u_line_type == LineTypeDash) {\n float dashLength = mod(v_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w);\n if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) {\n // 实线部分\n } else {\n // 虚线部分\n discard;\n };\n }\n\n // 设置弧线的动画模式\n if(u_animate.x == Animate) {\n animateSpeed = u_time / u_animate.y;\n float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y);\n alpha = (alpha + u_animate.w -1.0) / u_animate.w;\n alpha = smoothstep(0., 1., alpha);\n gl_FragColor.a *= alpha;\n }\n\n // 设置弧线的贴图\n if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { \n float arcRadio = smoothstep( 0.0, 1.0, (d_segmentIndex / (segmentNumber - 1.0)));\n // float arcRadio = d_segmentIndex / (segmentNumber - 1.0);\n float count = styleMappingMat[3].b; // 贴图在弧线上重复的数量\n float u = fract(arcRadio * count - animateSpeed * count);\n // float u = fract(arcRadio * count - animateSpeed);\n if(u_animate.x == Animate) {\n u = gl_FragColor.a/opacity;\n }\n\n float v = styleMappingMat[3].a; // 线图层贴图部分的 v 坐标值\n\n vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.;\n vec4 pattern = texture2D(u_texture, uv);\n \n // 设置贴图和底色的叠加模式\n if(u_textureBlend == 0.0) { // normal\n pattern.a = 0.0;\n gl_FragColor = filterColor(gl_FragColor + pattern);\n } else { // replace\n pattern.a *= opacity;\n if(gl_FragColor.a <= 0.0) {\n pattern.a = 0.0;\n }\n gl_FragColor = filterColor(pattern);\n }\n } else {\n gl_FragColor = filterColor(gl_FragColor);\n }\n\n // gl_FragColor = filterColor(gl_FragColor);\n}',triangulation:l.d,depth:{enable:!1},blend:this.getBlend(),stencil:Object(u.bb)(r,i)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){var e=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e,t,n,r){var o=e.size,i=void 0===o?1:o;return Array.isArray(i)?[i[0]]:[i]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:c.AttributeType.Attribute,descriptor:{name:"a_Instance",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:4,update:function(e,t,n,r){return[n[3],n[4],n[5],n[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:c.AttributeType.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:2,update:function(t,n,r,o){var i=e.iconService.getIconMap()[t.texture]||{x:0,y:0};return[i.x,i.y]}}})}}])&&K(t.prototype,n),r&&K(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.a);function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(){re=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==ne(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function oe(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ce(e,t){return(ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return se(this,n)}}function se(e,t){if(t&&("object"===ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ce(e,t)}(f,e);var t,n,r,o,i,s=ue(f);function f(){return ie(this,f),s.apply(this,arguments)}return t=f,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.sourceColor,o=e.targetColor,i=e.arrow,s=void 0===i?{enable:!1,arrowWidth:2,arrowHeight:3,tailWidth:1}:i,l=0,f=[0,0,0,0],p=[0,0,0,0];if(r&&o&&(f=Object(u.Eb)(r),p=Object(u.Eb)(o),l=1),this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n})){this.judgeStyleAttributes({opacity:n});var d=this.layer.getEncodedData(),h=this.calDataFrame(this.cellLength,d,this.cellProperties),v=h.data,y=h.width,m=h.height;this.rowCount=m,this.dataTexture=this.cellLength>0&&v.length>0?this.createTexture2D({flipY:!0,data:v,format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:y,height:m}):this.createTexture2D({flipY:!0,data:[1],format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:a()(n)?n:1,u_linearColor:l,u_sourceColor:f,u_targetColor:p,u_arrow:Number(s.enable),u_arrowHeight:s.arrowHeight||3,u_arrowWidth:s.arrowWidth||2,u_tailWidth:void 0===s.tailWidth?1:s.tailWidth}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"clearModels",value:function(){var e;null===(e=this.dataTexture)||void 0===e||e.destroy()}},{key:"buildModels",value:(o=re().mark((function e(t){var n,r,o,i,a,c,s,f,p,d;return re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this.layer.getLayerConfig(),r=n.mask,o=void 0!==r&&r,i=n.maskInside,a=void 0===i||i,c=n.depth,s=void 0!==c&&c,f=this.getShaders(),p=f.frag,d=f.vert,this.layer.triangulation=l.e,this.layer.buildLayerModel({moduleName:"lineHalf",vertexShader:d,fragmentShader:p,triangulation:l.e,depth:{enable:s},blend:this.getBlend(),stencil:Object(u.bb)(o,a)}).then((function(e){t([e])})).catch((function(e){console.warn(e),t([])}));case 4:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){oe(i,n,r,a,c,"next",e)}function c(e){oe(i,n,r,a,c,"throw",e)}a(void 0)}))},function(e){return i.apply(this,arguments)})},{key:"getShaders",value:function(){return{frag:'#define COORDINATE_SYSTEM_LNGLAT 1.0 // mapbox\n#define COORDINATE_SYSTEM_LNGLAT_OFFSET 2.0 // mapbox offset\n#define COORDINATE_SYSTEM_VECTOR_TILE 3.0\n#define COORDINATE_SYSTEM_IDENTITY 4.0\n#define COORDINATE_SYSTEM_P20 5.0 // amap\n#define COORDINATE_SYSTEM_P20_OFFSET 6.0 // amap offset\n#define COORDINATE_SYSTEM_METER_OFFSET 7.0\n\n#define COORDINATE_SYSTEM_P20_2 8.0 // amap2.0\nuniform float u_CoordinateSystem;\nvarying vec4 v_color;\nuniform float u_arrow: 0.0;\nuniform float u_linearColor: 0;\nuniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\n\n#pragma include "picking"\n\nvarying mat4 styleMappingMat;\nvoid main() {\n float distanceAndIndex = styleMappingMat[0][3];\n float miter = styleMappingMat[0][2];\n\n float opacity = styleMappingMat[0][0];\n float d_distance_ratio = styleMappingMat[3].r; // 当前点位距离占线总长的比例\n\n\n if(u_arrow > 0.0 && distanceAndIndex < 2.0) { // arrow\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { \n if(cross(vec3(styleMappingMat[1].rg, 0.0), vec3(styleMappingMat[1].ba, 0.0)).z < 0.0) { // amap\n discard;\n }\n } else { // amap2 mapbox map\n if(cross(vec3(styleMappingMat[1].rg, 0.0), vec3(styleMappingMat[1].ba, 0.0)).z > 0.0) { \n discard;\n }\n }\n } else { // line body\n if(miter < 0.0) {\n discard;\n }\n }\n\n\n if(u_linearColor == 1.0) { // 使用渐变颜色\n gl_FragColor = mix(u_sourceColor, u_targetColor, d_distance_ratio);\n } else { // 使用 color 方法传入的颜色\n gl_FragColor = v_color;\n }\n\n gl_FragColor.a *= opacity; // 全局透明度\n gl_FragColor = filterColor(gl_FragColor);\n}\n',vert:'attribute float a_Miter;\nattribute vec4 a_Color;\nattribute vec2 a_Size;\nattribute vec3 a_Normal;\nattribute vec3 a_Position;\n\n// dash line\nattribute vec4 a_dirPoints;\nattribute vec3 a_DistanceAndIndex;\n\nuniform vec4 u_lineDir;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\n#pragma include "projection"\n#pragma include "picking"\n\nvarying vec4 v_color;\n\nuniform float u_linearColor: 0;\nuniform float u_arrow: 0.0;\nuniform float u_arrowHeight: 3.0;\nuniform float u_arrowWidth: 2.0;\nuniform float u_tailWidth: 1.0;\n\nuniform float u_opacity: 1.0;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\nvec2 calculateArrow(vec2 offset) {\n /*\n * 在支持箭头的时候,第二、第三组顶点是额外插入用于构建顶点的\n */\n float arrowFlag = -1.0;\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // 高德 2.0 的旋转角度不同\n arrowFlag = 1.0;\n }\n float pi = arrowFlag * 3.1415926/2.;\n if(a_Miter < 0.) {\n // 根据线的两侧偏移不同、旋转的方向相反\n pi = -pi;\n }\n highp float angle_sin = sin(pi);\n highp float angle_cos = cos(pi);\n // 计算垂直与线方向的旋转矩阵\n mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos);\n float arrowWidth = u_arrowWidth;\n float arrowHeight = u_arrowHeight;\n\n vec2 arrowOffset = vec2(0.0);\n /*\n * a_DistanceAndIndex.y 用于标记当前顶点属于哪一组(两个顶点一组,构成线的其实是矩形,最简需要四个顶点、两组顶点构成)\n */\n if(a_DistanceAndIndex.y == 0.0) {\n // 箭头尖部\n offset = vec2(0.0);\n } else if(a_DistanceAndIndex.y == 1.0) {\n // 箭头两侧\n arrowOffset = rotation_matrix*(offset * arrowHeight);\n offset += arrowOffset; // 沿线偏移\n offset = offset * arrowWidth; // 垂直线向外偏移(是构建箭头两侧的顶点)\n } else if(a_DistanceAndIndex.y == 2.0 || a_DistanceAndIndex.y == 3.0 || a_DistanceAndIndex.y == 4.0) {\n // 偏移其余的点位(将长度让位给箭头)\n arrowOffset = rotation_matrix*(offset * arrowHeight) * arrowWidth;\n offset += arrowOffset;// 沿线偏移\n }\n\n return offset;\n}\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - a_Miter - a_DistanceAndIndex\n 0.0, 0.0, 0.0, 0.0, // originX - originY - vectorX - vectorY\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV\n );\n styleMappingMat[0][3] = a_DistanceAndIndex.y;\n styleMappingMat[0][2] = a_Miter;\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n\n v_color = a_Color;\n\n vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal);\n \n vec2 offset = project_pixel(size.xy);\n\n // styleMappingMat[1].rg = a_Position.xy + offset;\n\n vec2 copyOffset = vec2(offset.x, offset.y);\n\n float lineDistance = a_DistanceAndIndex.x;\n float total_Distance = a_DistanceAndIndex.z;\n float currentLinePointRatio = lineDistance / total_Distance;\n \n if(u_arrow > 0.0) {\n // 计算箭头\n offset = calculateArrow(offset);\n\n if(a_DistanceAndIndex.y > 4.0) {\n offset *= mix(1.0, u_tailWidth, currentLinePointRatio);\n }\n }\n\n float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // 线横向偏移的距离(向两侧偏移的和)\n float linePixelSize = project_pixel(a_Size.x) * 2.0; // 定点位置偏移,按地图等级缩放后的距离 单侧 * 2\n\n // 设置数据集的参数\n styleMappingMat[3][0] = currentLinePointRatio; // 当前点位距离占线总长的比例\n styleMappingMat[3][1] = lineDistance; // 当前顶点的距离\n\n vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0));\n\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, a_Size.y, 1.0));\n\n float h = float(a_Position.z); // 线顶点的高度 - 兼容不存在第三个数值的情况 vertex height\n float lineHeight = a_Size.y; // size 第二个参数代表的高度 [linewidth, lineheight]\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n lineHeight *= 0.2; // 保持和 amap/mapbox 一致的效果\n gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight, 1.0));\n }\n \n if(u_arrow > 0.0 && a_DistanceAndIndex.y < 2.0) {\n vec2 startPoint = a_dirPoints.rg;\n vec2 endPoint = a_dirPoints.ba;\n vec4 t1 = project_position(vec4(startPoint, 0, 1.0));\n vec4 t2 = project_position(vec4(endPoint, 0, 1.0));\n // TODO: 后续优化可以把位置计算放在 cpu 中完成\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n vec2 p1 = (u_Mvp * vec4(t1.xy, 0.0, 1.0)).xy;\n vec2 p2 = (u_Mvp * vec4(t2.xy, 0.0, 1.0)).xy;\n styleMappingMat[1].rg = normalize(p1 - p2);\n styleMappingMat[1].ba = normalize(gl_Position.xy - p2);\n } else {\n vec2 p1 = project_common_position_to_clipspace(vec4(t1.xy, 0.0, 1.0)).xy;\n vec2 p2 = project_common_position_to_clipspace(vec4(t2.xy, 0.0, 1.0)).xy;\n styleMappingMat[1].rg = normalize(p1 - p2);\n styleMappingMat[1].ba = normalize(gl_Position.xy - p2);\n }\n }\n\n setPickingColor(a_PickingColor);\n}\n',type:"normal"}}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"distanceAndIndex",type:c.AttributeType.Attribute,descriptor:{name:"a_DistanceAndIndex",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:3,update:function(e,t,n,r,o,i){return void 0===i?[n[3],10,n[5]]:[n[3],i,n[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"dirPoints",type:c.AttributeType.Attribute,descriptor:{name:"a_dirPoints",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:4,update:function(e){var t=e.coordinates[0]||[0,0],n=e.coordinates[3]||[0,0];return[t[0],t[1],n[0],n[1]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:2,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0],n[1]]:[n,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:c.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:c.AttributeType.Attribute,descriptor:{name:"a_Miter",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e,t,n){return[n[4]]}}})}}])&&ae(t.prototype,n),r&&ae(t,r),Object.defineProperty(t,"prototype",{writable:!1}),f}(s.a),pe=n("i6qf"),de=n("kam9");function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function me(e,t){return(me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=we(e);if(t){var o=we(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return be(this,n)}}function be(e,t){if(t&&("object"===he(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Oe(e)}function Oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function we(e){return(we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&me(e,t)}(i,e);var t,n,r,o=ge(i);function i(){var e;ve(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _e(Oe(e=o.call.apply(o,[this].concat(n))),"updateTexture",(function(){var t=e.rendererService.createTexture2D;e.colorTexture&&e.colorTexture.destroy();var n=e.layer.getLayerConfig().rampColors,r=Object(u.V)(n);e.colorTexture=t({data:new Uint8Array(r.data),width:r.width,height:r.height,wrapS:c.gl.CLAMP_TO_EDGE,wrapT:c.gl.CLAMP_TO_EDGE,min:c.gl.NEAREST,mag:c.gl.NEAREST,flipY:!1})})),e}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.vertexHeightScale,o=void 0===r?20:r,i=e.raisingHeight,u=void 0===i?0:i,s=e.heightfixed,l=void 0!==s&&s,f=e.linearDir,p=void 0===f?de.b.VERTICAL:f;if(this.rendererService.getDirty()&&this.colorTexture.bind(),this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n})){this.judgeStyleAttributes({opacity:n});var d=this.layer.getEncodedData(),h=this.calDataFrame(this.cellLength,d,this.cellProperties),v=h.data,y=h.width,m=h.height;this.rowCount=m,this.dataTexture=this.cellLength>0&&v.length>0?this.createTexture2D({flipY:!0,data:v,format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:y,height:m}):this.createTexture2D({flipY:!0,data:[1],format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_linearDir:p===de.b.VERTICAL?1:0,u_opacity:a()(n)?n:1,u_texture:this.colorTexture,u_heightfixed:Number(l),u_vertexScale:o,u_raisingHeight:Number(u)}}},{key:"initModels",value:function(e){this.updateTexture(),this.buildModels(e)}},{key:"clearModels",value:function(){var e,t;null===(e=this.colorTexture)||void 0===e||e.destroy(),null===(t=this.dataTexture)||void 0===t||t.destroy()}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o,a=t.depth,c=void 0!==a&&a;this.layer.triangulation=l.e,this.layer.buildLayerModel({moduleName:"lineRampColors",vertexShader:'\nattribute float a_Miter;\nattribute vec2 a_Size;\nattribute vec3 a_Normal;\nattribute vec3 a_Position;\n\n// dash line\nattribute float a_Total_Distance;\nattribute vec2 a_DistanceAndIndex;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\nuniform float u_heightfixed: 0.0;\nuniform float u_vertexScale: 1.0;\nuniform float u_raisingHeight: 0.0;\n\nuniform float u_opacity: 1.0;\n\n#pragma include "projection"\n#pragma include "picking"\n\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal);\n \n vec2 offset = project_pixel(size.xy);\n\n float lineDistance = a_DistanceAndIndex.x;\n float currentLinePointRatio = lineDistance / a_Total_Distance;\n \n\n float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // 线横向偏移的距离(向两侧偏移的和)\n float linePixelSize = project_pixel(a_Size.x) * 2.0; // 定点位置偏移,按地图等级缩放后的距离 单侧 * 2\n float texV = lineOffsetWidth/linePixelSize; // 线图层贴图部分的 v 坐标值\n\n // 设置数据集的参数\n styleMappingMat[3][0] = currentLinePointRatio; // 当前点位距离占线总长的比例\n styleMappingMat[3][3] = texV; // 线图层贴图部分的 v 坐标值\n\n vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0));\n\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, a_Size.y, 1.0));\n\n float h = float(a_Position.z) * u_vertexScale; // 线顶点的高度 - 兼容不存在第三个数值的情况 vertex height\n float lineHeight = a_Size.y; // size 第二个参数代表的高度 [linewidth, lineheight]\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n lineHeight *= 0.2; // 保持和 amap/mapbox 一致的效果\n h *= 0.2;\n if(u_heightfixed < 1.0) {\n lineHeight = project_pixel(a_Size.y);\n }\n gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight + h + u_raisingHeight, 1.0));\n } else {\n // mapbox - amap\n \n // 兼容 mapbox 在线高度上的效果表现基本一致\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // mapbox\n // 保持高度相对不变\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n h *= mapboxZoomScale;\n h += u_raisingHeight * mapboxZoomScale;\n if(u_heightfixed > 0.0) {\n lineHeight *= mapboxZoomScale;\n }\n \n } else {\n // amap\n h += u_raisingHeight;\n // lineHeight 顶点偏移高度\n if(u_heightfixed < 1.0) {\n lineHeight *= pow(2.0, 20.0 - u_Zoom);\n }\n }\n\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0));\n }\n\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'uniform float u_opacity : 1.0;\nuniform sampler2D u_texture;\nuniform float u_linearDir: 1.0;\n\n#pragma include "picking"\n\nvarying mat4 styleMappingMat;\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float linearRadio = styleMappingMat[3].r; // 当前点位距离占线总长的比例\n if(u_linearDir < 1.0) {\n linearRadio = styleMappingMat[3][3];\n }\n\n gl_FragColor = texture2D(u_texture, vec2(linearRadio, 0.5));\n\n gl_FragColor.a *= opacity; // 全局透明度\n gl_FragColor = filterColor(gl_FragColor);\n}\n',triangulation:l.e,depth:{enable:c},blend:this.getBlend(),stencil:Object(u.bb)(r,i)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"distanceAndIndex",type:c.AttributeType.Attribute,descriptor:{name:"a_DistanceAndIndex",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:2,update:function(e,t,n,r,o,i){return void 0===i?[n[3],10]:[n[3],i]}}}),this.styleAttributeService.registerStyleAttribute({name:"total_distance",type:c.AttributeType.Attribute,descriptor:{name:"a_Total_Distance",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e,t,n){return[n[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:2,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0],n[1]]:[n,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:c.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:c.AttributeType.Attribute,descriptor:{name:"a_Miter",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e,t,n){return[n[4]]}}})}}])&&ye(t.prototype,n),r&&ye(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.a);function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function je(e,t){return(je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Te(e);if(t){var o=Te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pe(this,n)}}function Pe(e,t){if(t&&("object"===Ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Me='attribute vec4 a_Color;\nattribute vec2 a_Size;\nattribute vec3 a_Position;\n\nattribute float a_Total_Distance;\nattribute float a_Distance;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\nuniform float u_opacity: 1.0;\nuniform float u_vertexScale: 1.0;\n\n#pragma include "projection"\n\nvarying vec4 v_color;\n\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n \n v_color = a_Color; \n styleMappingMat[3][0] = a_Distance / a_Total_Distance;\n\n vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0));\n\n float h = float(a_Position.z) * u_vertexScale; // 线顶点的高度 - 兼容不存在第三个数值的情况\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy, project_pixel(a_Size.y) + h * 0.2, 1.0));\n } else {\n float lineHeight = a_Size.y;\n // 兼容 mapbox 在线高度上的效果表现基本一致\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // 保持高度相对不变\n h *= 2.0/pow(2.0, 20.0 - u_Zoom);\n }\n\n // #define COORDINATE_SYSTEM_P20 5.0\n // #define COORDINATE_SYSTEM_P20_OFFSET 6.0\n // amap1.x\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // 保持高度相对不变\n lineHeight *= pow(2.0, 20.0 - u_Zoom);\n }\n\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, lineHeight + h, 1.0));\n gl_PointSize = 10.0;\n }\n}\n',Ae=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&je(e,t)}(i,e);var t,n,r,o=ke(i);function i(){return Se(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.sourceColor,o=e.targetColor,i=e.vertexHeightScale,s=void 0===i?20:i,l=0,f=[0,0,0,0],p=[0,0,0,0];if(r&&o&&(f=Object(u.Eb)(r),p=Object(u.Eb)(o),l=1),this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n})){this.judgeStyleAttributes({opacity:n});var d=this.layer.getEncodedData(),h=this.calDataFrame(this.cellLength,d,this.cellProperties),v=h.data,y=h.width,m=h.height;this.rowCount=m,this.dataTexture=this.cellLength>0&&v.length>0?this.createTexture2D({flipY:!0,data:v,format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:y,height:m}):this.createTexture2D({flipY:!0,data:[1],format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:a()(n)?n:1,u_linearColor:l,u_sourceColor:f,u_targetColor:p,u_vertexScale:s}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"clearModels",value:function(){var e;null===(e=this.dataTexture)||void 0===e||e.destroy()}},{key:"getShaders",value:function(){var e=this.layer.getLayerConfig(),t=e.sourceColor,n=e.targetColor;return t&&n?{frag:"uniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\n\nvarying mat4 styleMappingMat;\nvoid main() {\n float opacity = styleMappingMat[0][0];\n\n // styleMappingMat[3][0] 当前点位距离占线总长的比例\n gl_FragColor = mix(u_sourceColor, u_targetColor, styleMappingMat[3][0]);\n gl_FragColor.a *= opacity; // 全局透明度\n}\n",vert:Me,type:"lineSimpleLinear"}:{frag:"\nvarying vec4 v_color;\nvarying mat4 styleMappingMat;\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float d_distance_ratio = styleMappingMat[3].r; // 当前点位距离占线总长的比例\n\n gl_FragColor = v_color;\n gl_FragColor.a *= opacity; // 全局透明度\n}\n",vert:Me,type:"lineSimpleNormal"}}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o,a=this.getShaders(),s=a.frag,f=a.vert,p=a.type;this.layer.buildLayerModel({moduleName:p,vertexShader:f,fragmentShader:s,triangulation:l.k,primitive:c.gl.LINES,depth:{enable:!1},blend:this.getBlend(),stencil:Object(u.bb)(r,i),pick:!1}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"distance",type:c.AttributeType.Attribute,descriptor:{name:"a_Distance",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e,t,n){return[n[3]]}}}),this.styleAttributeService.registerStyleAttribute({name:"total_distance",type:c.AttributeType.Attribute,descriptor:{name:"a_Total_Distance",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e,t,n){return[n[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:2,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0],n[1]]:[n,0]}}})}}])&&Ce(t.prototype,n),r&&Ce(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.a),Le=n("lY1V");function Re(e){return(Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function De(e,t){return(De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ue(e);if(t){var o=Ue(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ze(this,n)}}function ze(e,t){if(t&&("object"===Re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Be(e)}function Be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He={arc:w,arc3d:L,greatcircle:te,wall:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&De(e,t)}(i,e);var t,n,r,o=Fe(i);function i(){var e;Ne(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ve(Be(e=o.call.apply(o,[this].concat(n))),"updateTexture",(function(){var t=e.rendererService.createTexture2D;if(e.texture)return e.texture.update({data:e.iconService.getCanvas()}),void e.layer.render();e.texture=t({data:e.iconService.getCanvas(),mag:c.gl.NEAREST,min:c.gl.NEAREST,premultiplyAlpha:!1,width:1024,height:e.iconService.canvasHeight||128})})),e}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.sourceColor,o=e.targetColor,i=e.textureBlend,c=void 0===i?"normal":i,s=e.heightfixed,l=void 0!==s&&s,f=e.lineTexture,p=void 0!==f&&f,d=e.iconStep,h=void 0===d?100:d,v=e.iconStepCount,y=void 0===v?1:v;this.rendererService.getDirty()&&this.texture.bind();var m=0,g=[0,0,0,0],b=[0,0,0,0];return r&&o&&(g=Object(u.Eb)(r),b=Object(u.Eb)(o),m=1),{u_heightfixed:Number(l),u_opacity:a()(n)?n:1,u_textureBlend:"normal"===c?0:1,u_texture:this.texture,u_line_texture:p?1:0,u_iconStepCount:y,u_icon_step:h,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:m,u_sourceColor:g,u_targetColor:b}}},{key:"getAnimateUniforms",value:function(){var e=this.layer.getLayerConfig().animateOption;return{u_animate:this.animateOption2Array(e),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(e){this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels(e)}},{key:"clearModels",value:function(){var e;null===(e=this.texture)||void 0===e||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"buildModels",value:function(e){this.layer.buildLayerModel({moduleName:"lineWall",vertexShader:'#define Animate 0.0\n\nattribute float a_Miter;\nattribute vec4 a_Color;\nattribute vec2 a_Size;\nattribute vec3 a_Normal;\nattribute vec3 a_Position;\nattribute vec2 a_iconMapUV;\nattribute float a_Total_Distance;\nattribute float a_Distance;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\nuniform float u_icon_step: 100;\nuniform float u_heightfixed;\nuniform float u_linearColor: 0;\n\n#pragma include "projection"\n#pragma include "light"\n#pragma include "picking"\n\n// texV 线图层 - 贴图部分的 v 坐标(线的宽度方向)\nvarying vec2 v_iconMapUV;\nvarying vec4 v_color;\nvarying float v_blur;\nvarying float v_radio;\nvarying vec4 v_dataset;\n\nvoid main() {\n\n\n float d_distance_ratio; // 当前点位距离占线总长的比例\n float d_texPixelLen; // 贴图的像素长度,根据地图层级缩放\n\n v_iconMapUV = a_iconMapUV;\n if(u_heightfixed < 1.0) { // 高度随 zoom 调整\n d_texPixelLen = project_pixel(u_icon_step);\n } else {\n d_texPixelLen = u_icon_step;\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n d_texPixelLen *= 10.0;\n }\n\n if(u_animate.x == Animate || u_linearColor == 1.0) {\n d_distance_ratio = a_Distance / a_Total_Distance;\n }\n\n float miter = (a_Miter + 1.0)/2.0;\n // 设置数据集的参数\n v_dataset[0] = d_distance_ratio; // 当前点位距离占线总长的比例\n v_dataset[1] = a_Distance; // 当前顶点的距离\n v_dataset[2] = d_texPixelLen; // 贴图的像素长度,根据地图层级缩放\n v_dataset[3] = miter; // 线图层贴图部分的 v 坐标值 0 - 1\n\n vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0));\n\n float originSize = a_Size.x; // 固定高度\n if(u_heightfixed < 1.0) { // 高度随 zoom 调整\n originSize = project_float_pixel(a_Size.x);\n }\n\n float wallHeight = originSize * miter;\n float lightWeight = calc_lighting(vec4(project_pos.xy, wallHeight, 1.0));\n\n v_blur = min(project_float_pixel(2.0) / originSize, 0.05);\n v_color = vec4(a_Color.rgb * lightWeight, a_Color.w);\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy, wallHeight, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, wallHeight, 1.0));\n }\n\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'#define Animate 0.0\n#define LineTexture 1.0\n\n// line texture\nuniform float u_line_texture;\nuniform sampler2D u_texture;\nuniform vec2 u_textSize;\nuniform float u_linearColor: 0;\nuniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\nuniform float u_opacity : 1.0;\nuniform float u_textureBlend;\nuniform float u_iconStepCount;\nuniform float u_time;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; // 控制运动\n\nvarying vec2 v_iconMapUV;\nvarying float v_blur;\nvarying float v_radio;\nvarying vec4 v_color;\nvarying vec4 v_dataset;\n\n#pragma include "picking"\n\nvoid main() {\n float opacity = u_opacity;\n float animateSpeed = 0.0; // 运动速度\n float d_distance_ratio = v_dataset.r; // 当前点位距离占线总长的比例\n float v = v_dataset.a;\n\n if(u_linearColor == 1.0) { // 使用渐变颜色\n gl_FragColor = mix(u_sourceColor, u_targetColor, v);\n } else { // 使用 color 方法传入的颜色\n gl_FragColor = v_color;\n }\n\n gl_FragColor.a *= opacity; // 全局透明度\n if(u_animate.x == Animate) {\n animateSpeed = u_time / u_animate.y;\n float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + animateSpeed);\n alpha = (alpha + u_animate.w -1.0) / u_animate.w;\n alpha = smoothstep(0., 1., alpha);\n gl_FragColor.a *= alpha;\n }\n\n if(u_line_texture == LineTexture) { // while load texture\n float aDistance = v_dataset.g; // 当前顶点的距离\n float d_texPixelLen = v_dataset.b; // 贴图的像素长度,根据地图层级缩放\n float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed);\n float v = v_dataset.a; // 线图层贴图部分的 v 坐标值\n\n // 计算纹理间隔 start\n float flag = 0.0;\n if(u > 1.0/u_iconStepCount) {\n flag = 1.0;\n }\n u = fract(u*u_iconStepCount);\n // 计算纹理间隔 end\n\n vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.;\n vec4 pattern = texture2D(u_texture, uv);\n\n // Tip: 判断纹理间隔\n if(flag > 0.0) {\n pattern = vec4(0.0);\n }\n\n if(u_textureBlend == 0.0) { // normal\n pattern.a = 0.0;\n gl_FragColor = filterColor(gl_FragColor + pattern);\n } else { // replace\n pattern.a *= opacity;\n if(gl_FragColor.a <= 0.0) {\n pattern.a = 0.0;\n }\n gl_FragColor = filterColor(pattern);\n }\n }\n \n\n // blur - AA\n if(v < v_blur) {\n gl_FragColor.a = mix(0.0, gl_FragColor.a, v/v_blur);\n } else if(v > 1.0 - v_blur) {\n gl_FragColor.a = mix(gl_FragColor.a, 0.0, (v - (1.0 - v_blur))/v_blur);\n }\n\n gl_FragColor = filterColor(gl_FragColor);\n}\n',triangulation:l.e,depth:{enable:!1},blend:this.getBlend()}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){var e=this;this.styleAttributeService.registerStyleAttribute({name:"distance",type:c.AttributeType.Attribute,descriptor:{name:"a_Distance",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e,t,n){return[n[3]]}}}),this.styleAttributeService.registerStyleAttribute({name:"total_distance",type:c.AttributeType.Attribute,descriptor:{name:"a_Total_Distance",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e,t,n){return[n[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:2,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0],n[1]]:[n,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:c.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:c.AttributeType.Attribute,descriptor:{name:"a_Miter",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e,t,n){return[n[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:c.AttributeType.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:2,update:function(t){var n=e.iconService.getIconMap()[t.texture]||{x:0,y:0};return[n.x,n.y]}}})}}])&&Ie(t.prototype,n),r&&Ie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.a),line:pe.a,halfLine:fe,simple:Ae,linearline:xe,vectorline:o.a,tileLine:Le.a,earthArc3d:G},Ge=n("Hv1p");function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xe(e,t){return(Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qe(e);if(t){var o=Qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ze(this,n)}}function Ze(e,t){if(t&&("object"===We(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Je(e)}function Je(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qe(e){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var et=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xe(e,t)}(i,e);var t,n,r,o=qe(i);function i(){var e;Ye(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $e(Je(e=o.call.apply(o,[this].concat(n))),"type","LineLayer"),$e(Je(e),"arrowInsertCount",0),$e(Je(e),"defaultSourceConfig",{data:[{lng1:100,lat1:30,lng2:130,lat2:30}],options:{parser:{type:"json",x:"lng1",y:"lat1",x1:"lng2",y1:"lat2"}}}),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new He[t](this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getDefaultConfig",value:function(){return{line:{},linearline:{},simple:{},wall:{},arc3d:{blend:"additive"},arc:{blend:"additive"},greatcircle:{blend:"additive"},vectorline:{},tileLine:{},halfLine:{},earthArc3d:{}}[this.getModelType()]}},{key:"getModelType",value:function(){var e;if(this.layerType)return this.layerType;var t=this.layerSource.getParserType();if(Object(Ge.c)(t))return"vectorline";var n=this.styleAttributeService.getLayerStyleAttribute("shape");return(null==n||null===(e=n.scale)||void 0===e?void 0:e.field)||"line"}}])&&Ke(t.prototype,n),r&&Ke(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a)},"30RF":function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return d}));var r=n("7kqo"),o=n("cSJ8"),i=n("Z7Uv"),a=new Map,c=[],u=function(e){var t=decodeURIComponent(e);return Object(o.a)(t,"").split("#")[0].split("?")[0]};function s(e){return e.startsWith("/")||e.startsWith("https://")||e.startsWith("http://")?e:new URL(e,window.location.href+(window.location.href.endsWith("/")?"":"/")).pathname}var l=function(e){c=e},f=function(e){var t=h(e),n=c.map((function(e){var t=e.path;return{path:e.matchPath,originalPath:t}})),o=Object(r.pick)(n,t);return o?Object(i.a)(o.route.originalPath):null},p=function(e){var t=h(e),n=c.map((function(e){var t=e.path;return{path:e.matchPath,originalPath:t}})),o=Object(r.pick)(n,t);return o?o.params:{}},d=function(e){var t=u(s(e));if(a.has(t))return a.get(t);var n=f(t);return n||(n=h(e)),a.set(t,n),n},h=function(e){var t=u(s(e));return"/index.html"===t&&(t="/"),t=Object(i.a)(t)}},"32/0":function(e,t,n){var r=n("cLeC"),o=n("POgt"),i=n("xgf2"),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},"3A0n":function(e,t,n){"use strict";t.a=function(e){return function(t){return null==t?void 0:t[e]}}},"3GoW":function(e,t,n){e.exports={search:"Search-module--search--1PVbh",icon:"Search-module--icon--3fz7n",input:"Search-module--input--lOvOF"}},"3I+P":function(e,t,n){"use strict";var r=n("zjfJ"),o=n("cxan"),i=(n("tQbP"),n("Czhu")),a=n("9fIP"),c=n("MMYH"),u=n("pWxA"),s=n("8K1b"),l=n("AqVP"),f=n("ERkP"),p=n.n(f),d=n("4wDe"),h=n("HbGN"),v={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},y=n("RNvQ"),m=n.n(y),g=n("O94r"),b=n.n(g);function O(e,t,n){return Math.max(t,Math.min(e,n))}var w=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},_=function(e){for(var t=[],n=x(e),r=E(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},x=function(e){return e.currentSlide-S(e)},E=function(e){return e.currentSlide+C(e)},S=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},C=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},j=function(e){return e&&e.offsetWidth||0},k=function(e){return e&&e.offsetHeight||0},P=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},T=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},M=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},A=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,a=e.index,c=e.slideCount,u=e.lazyLoad,s=e.currentSlide,l=e.centerMode,f=e.slidesToScroll,p=e.slidesToShow,d=e.useCSS,h=e.lazyLoadedList;if(t&&n)return{};var v,y,m,g=a,b={},w={},x=o?a:O(a,0,c-1);if(r){if(!o&&(a<0||a>=c))return{};a<0?g=a+c:a>=c&&(g=a-c),u&&h.indexOf(g)<0&&(h=h.concat(g)),b={animating:!0,currentSlide:g,lazyLoadedList:h,targetSlide:g},w={animating:!1,targetSlide:g}}else v=g,g<0?(v=g+c,o?c%f!=0&&(v=c-c%f):v=0):!T(e)&&g>s?g=v=s:l&&g>=c?(g=o?c:c-1,v=o?0:c-1):g>=c&&(v=g-c,o?c%f!=0&&(v=0):v=c-p),!o&&g+p>=c&&(v=c-p),y=z(Object(i.a)(Object(i.a)({},e),{},{slideIndex:g})),m=z(Object(i.a)(Object(i.a)({},e),{},{slideIndex:v})),o||(y===m&&(g=v),y=m),u&&(h=h.concat(_(Object(i.a)(Object(i.a)({},e),{},{currentSlide:g})))),d?(b={animating:!0,currentSlide:v,trackStyle:F(Object(i.a)(Object(i.a)({},e),{},{left:y})),lazyLoadedList:h,targetSlide:x},w={animating:!1,currentSlide:v,trackStyle:D(Object(i.a)(Object(i.a)({},e),{},{left:m})),swipeLeft:null,targetSlide:x}):b={currentSlide:v,trackStyle:D(Object(i.a)(Object(i.a)({},e),{},{left:m})),lazyLoadedList:h,targetSlide:x};return{state:b,nextState:w}},L=function(e,t){var n,r,o,a,c=e.slidesToScroll,u=e.slidesToShow,s=e.slideCount,l=e.currentSlide,f=e.targetSlide,p=e.lazyLoad,d=e.infinite;if(n=s%c!=0?0:(s-l)%c,"previous"===t.message)a=l-(o=0===n?c:u-n),p&&!d&&(a=-1===(r=l-o)?s-1:r),d||(a=f-c);else if("next"===t.message)a=l+(o=0===n?c:n),p&&!d&&(a=(l+c)%s+n),d||(a=f+c);else if("dots"===t.message)a=t.index*t.slidesToScroll;else if("children"===t.message){if(a=t.index,d){var h=H(Object(i.a)(Object(i.a)({},e),{},{targetSlide:a}));a>t.currentSlide&&"left"===h?a-=s:a<t.currentSlide&&"right"===h&&(a+=s)}}else"index"===t.message&&(a=Number(t.index));return a},R=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o}(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t},N=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,o=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(o).every((function(r){if(e.vertical){if(r.offsetTop+k(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+j(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},I=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},D=function(e){var t,n;I(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=V(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",c=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",u=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=Object(i.a)(Object(i.a)({},o),{},{WebkitTransform:a,transform:c,msTransform:u})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},F=function(e){I(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=D(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},z=function(e){if(e.unslick)return 0;I(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,a=e.centerMode,c=e.slideCount,u=e.slidesToShow,s=e.slidesToScroll,l=e.slideWidth,f=e.listWidth,p=e.variableWidth,d=e.slideHeight,h=e.fade,v=e.vertical;if(h||1===e.slideCount)return 0;var y=0;if(i?(y=-B(e),c%s!=0&&r+s>c&&(y=-(r>c?u-(r-c):c%s)),a&&(y+=parseInt(u/2))):(c%s!=0&&r+s>c&&(y=u-c%s),a&&(y=parseInt(u/2))),t=v?r*d*-1+y*d:r*l*-1+y*l,!0===p){var m,g=o&&o.node;if(m=r+B(e),t=(n=g&&g.childNodes[m])?-1*n.offsetLeft:0,!0===a){m=i?r+B(e):r,n=g&&g.children[m],t=0;for(var b=0;b<m;b++)t-=g&&g.children[b]&&g.children[b].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(f-n.offsetWidth)/2}}return t},B=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},U=function(e){return e.unslick||!e.infinite?0:e.slideCount},V=function(e){return 1===e.slideCount?1:B(e)+e.slideCount+U(e)},H=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+G(e)?"left":"right":e.targetSlide<e.currentSlide-W(e)?"right":"left"},G=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1},W=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0},Y=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},K=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},X=function(e,t){return e.key+"-"+t},q=function(e){var t,n=[],r=[],o=[],a=p.a.Children.count(e.children),c=x(e),u=E(e);return p.a.Children.forEach(e.children,(function(s,l){var f,d={message:"children",index:l,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(l)>=0?s:p.a.createElement("div",null);var h=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(Object(i.a)(Object(i.a)({},e),{},{index:l})),v=f.props.className||"",y=K(Object(i.a)(Object(i.a)({},e),{},{index:l}));if(n.push(p.a.cloneElement(f,{key:"original"+X(f,l),"data-index":l,className:b()(y,v),tabIndex:"-1","aria-hidden":!y["slick-active"],style:Object(i.a)(Object(i.a)({outline:"none"},f.props.style||{}),h),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}})),e.infinite&&!1===e.fade){var m=a-l;m<=B(e)&&a!==e.slidesToShow&&((t=-m)>=c&&(f=s),y=K(Object(i.a)(Object(i.a)({},e),{},{index:t})),r.push(p.a.cloneElement(f,{key:"precloned"+X(f,t),"data-index":t,tabIndex:"-1",className:b()(y,v),"aria-hidden":!y["slick-active"],style:Object(i.a)(Object(i.a)({},f.props.style||{}),h),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}}))),a!==e.slidesToShow&&((t=a+l)<u&&(f=s),y=K(Object(i.a)(Object(i.a)({},e),{},{index:t})),o.push(p.a.cloneElement(f,{key:"postcloned"+X(f,t),"data-index":t,tabIndex:"-1",className:b()(y,v),"aria-hidden":!y["slick-active"],style:Object(i.a)(Object(i.a)({},f.props.style||{}),h),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}})))}})),e.rtl?r.concat(n,o).reverse():r.concat(n,o)},Z=function(e){Object(s.a)(n,e);var t=Object(l.a)(n);function n(){var e;Object(a.a)(this,n);for(var o=arguments.length,i=new Array(o),c=0;c<o;c++)i[c]=arguments[c];return e=t.call.apply(t,[this].concat(i)),Object(r.a)(Object(u.a)(e),"node",null),Object(r.a)(Object(u.a)(e),"handleRef",(function(t){e.node=t})),e}return Object(c.a)(n,[{key:"render",value:function(){var e=q(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return p.a.createElement("div",Object(o.a)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}]),n}(p.a.PureComponent),J=function(e){Object(s.a)(n,e);var t=Object(l.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,r=t.onMouseOver,o=t.onMouseLeave,a=t.infinite,c=t.slidesToScroll,u=t.slidesToShow,s=t.slideCount,l=t.currentSlide,f=(e={slideCount:s,slidesToScroll:c,slidesToShow:u,infinite:a}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,d={onMouseEnter:n,onMouseOver:r,onMouseLeave:o},h=[],v=0;v<f;v++){var y=(v+1)*c-1,m=a?y:O(y,0,s-1),g=m-(c-1),w=a?g:O(g,0,s-1),_=b()({"slick-active":a?l>=w&&l<=m:l===w}),x={message:"dots",index:v,slidesToScroll:c,currentSlide:l},E=this.clickHandler.bind(this,x);h=h.concat(p.a.createElement("li",{key:v,className:_},p.a.cloneElement(this.props.customPaging(v),{onClick:E})))}return p.a.cloneElement(this.props.appendDots(h),Object(i.a)({className:this.props.dotsClass},d))}}]),n}(p.a.PureComponent),Q=function(e){Object(s.a)(n,e);var t=Object(l.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:b()(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?p.a.cloneElement(this.props.prevArrow,Object(i.a)(Object(i.a)({},n),r)):p.a.createElement("button",Object(o.a)({key:"0",type:"button"},n)," ","Previous")}}]),n}(p.a.PureComponent),$=function(e){Object(s.a)(n,e);var t=Object(l.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});T(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:b()(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?p.a.cloneElement(this.props.nextArrow,Object(i.a)(Object(i.a)({},n),r)):p.a.createElement("button",Object(o.a)({key:"1",type:"button"},n)," ","Next")}}]),n}(p.a.PureComponent),ee=n("LaGA"),te=["animating"],ne=function(e){Object(s.a)(n,e);var t=Object(l.a)(n);function n(e){var c;Object(a.a)(this,n),c=t.call(this,e),Object(r.a)(Object(u.a)(c),"listRefHandler",(function(e){return c.list=e})),Object(r.a)(Object(u.a)(c),"trackRefHandler",(function(e){return c.track=e})),Object(r.a)(Object(u.a)(c),"adaptHeight",(function(){if(c.props.adaptiveHeight&&c.list){var e=c.list.querySelector('[data-index="'.concat(c.state.currentSlide,'"]'));c.list.style.height=k(e)+"px"}})),Object(r.a)(Object(u.a)(c),"componentDidMount",(function(){if(c.props.onInit&&c.props.onInit(),c.props.lazyLoad){var e=_(Object(i.a)(Object(i.a)({},c.props),c.state));e.length>0&&(c.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),c.props.onLazyLoad&&c.props.onLazyLoad(e))}var t=Object(i.a)({listRef:c.list,trackRef:c.track},c.props);c.updateState(t,!0,(function(){c.adaptHeight(),c.props.autoplay&&c.autoPlay("playing")})),"progressive"===c.props.lazyLoad&&(c.lazyLoadTimer=setInterval(c.progressiveLazyLoad,1e3)),c.ro=new ee.default((function(){c.state.animating?(c.onWindowResized(!1),c.callbackTimers.push(setTimeout((function(){return c.onWindowResized()}),c.props.speed))):c.onWindowResized()})),c.ro.observe(c.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=c.props.pauseOnFocus?c.onSlideFocus:null,e.onblur=c.props.pauseOnFocus?c.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",c.onWindowResized):window.attachEvent("onresize",c.onWindowResized)})),Object(r.a)(Object(u.a)(c),"componentWillUnmount",(function(){c.animationEndCallback&&clearTimeout(c.animationEndCallback),c.lazyLoadTimer&&clearInterval(c.lazyLoadTimer),c.callbackTimers.length&&(c.callbackTimers.forEach((function(e){return clearTimeout(e)})),c.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",c.onWindowResized):window.detachEvent("onresize",c.onWindowResized),c.autoplayTimer&&clearInterval(c.autoplayTimer),c.ro.disconnect()})),Object(r.a)(Object(u.a)(c),"componentDidUpdate",(function(e){if(c.checkImagesLoad(),c.props.onReInit&&c.props.onReInit(),c.props.lazyLoad){var t=_(Object(i.a)(Object(i.a)({},c.props),c.state));t.length>0&&(c.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),c.props.onLazyLoad&&c.props.onLazyLoad(t))}c.adaptHeight();var n=Object(i.a)(Object(i.a)({listRef:c.list,trackRef:c.track},c.props),c.state),r=c.didPropsChange(e);r&&c.updateState(n,r,(function(){c.state.currentSlide>=p.a.Children.count(c.props.children)&&c.changeSlide({message:"index",index:p.a.Children.count(c.props.children)-c.props.slidesToShow,currentSlide:c.state.currentSlide}),e.autoplay===c.props.autoplay&&e.autoplaySpeed===c.props.autoplaySpeed||(!e.autoplay&&c.props.autoplay?c.autoPlay("playing"):c.props.autoplay?c.autoPlay("update"):c.pause("paused"))}))})),Object(r.a)(Object(u.a)(c),"onWindowResized",(function(e){c.debouncedResize&&c.debouncedResize.cancel(),c.debouncedResize=m()((function(){return c.resizeWindow(e)}),50),c.debouncedResize()})),Object(r.a)(Object(u.a)(c),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Boolean(c.track&&c.track.node);if(t){var n=Object(i.a)(Object(i.a)({listRef:c.list,trackRef:c.track},c.props),c.state);c.updateState(n,e,(function(){c.props.autoplay?c.autoPlay("update"):c.pause("paused")})),c.setState({animating:!1}),clearTimeout(c.animationEndCallback),delete c.animationEndCallback}})),Object(r.a)(Object(u.a)(c),"updateState",(function(e,t,n){var r=function(e){var t,n=p.a.Children.count(e.children),r=e.listRef,o=Math.ceil(j(r)),a=e.trackRef&&e.trackRef.node,c=Math.ceil(j(a));if(e.vertical)t=o;else{var u=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(u*=o/100),t=Math.ceil((o-u)/e.slidesToShow)}var s=r&&k(r.querySelector('[data-index="0"]')),l=s*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=n-1-e.initialSlide);var d=e.lazyLoadedList||[],h=_(Object(i.a)(Object(i.a)({},e),{},{currentSlide:f,lazyLoadedList:d})),v={slideCount:n,slideWidth:t,listWidth:o,trackWidth:c,currentSlide:f,slideHeight:s,listHeight:l,lazyLoadedList:d=d.concat(h)};return null===e.autoplaying&&e.autoplay&&(v.autoplaying="playing"),v}(e);e=Object(i.a)(Object(i.a)(Object(i.a)({},e),r),{},{slideIndex:r.currentSlide});var o=z(e);e=Object(i.a)(Object(i.a)({},e),{},{left:o});var a=D(e);(t||p.a.Children.count(c.props.children)!==p.a.Children.count(e.children))&&(r.trackStyle=a),c.setState(r,n)})),Object(r.a)(Object(u.a)(c),"ssrInit",(function(){if(c.props.variableWidth){var e=0,t=0,n=[],r=B(Object(i.a)(Object(i.a)(Object(i.a)({},c.props),c.state),{},{slideCount:c.props.children.length})),o=U(Object(i.a)(Object(i.a)(Object(i.a)({},c.props),c.state),{},{slideCount:c.props.children.length}));c.props.children.forEach((function(t){n.push(t.props.style.width),e+=t.props.style.width}));for(var a=0;a<r;a++)t+=n[n.length-1-a],e+=n[n.length-1-a];for(var u=0;u<o;u++)e+=n[u];for(var s=0;s<c.state.currentSlide;s++)t+=n[s];var l={width:e+"px",left:-t+"px"};if(c.props.centerMode){var f="".concat(n[c.state.currentSlide],"px");l.left="calc(".concat(l.left," + (100% - ").concat(f,") / 2 ) ")}return{trackStyle:l}}var d=p.a.Children.count(c.props.children),h=Object(i.a)(Object(i.a)(Object(i.a)({},c.props),c.state),{},{slideCount:d}),v=B(h)+U(h)+d,y=100/c.props.slidesToShow*v,m=100/v,g=-m*(B(h)+c.state.currentSlide)*y/100;return c.props.centerMode&&(g+=(100-m*y/100)/2),{slideWidth:m+"%",trackStyle:{width:y+"%",left:g+"%"}}})),Object(r.a)(Object(u.a)(c),"checkImagesLoad",(function(){var e=c.list&&c.list.querySelectorAll&&c.list.querySelectorAll(".slick-slide img")||[],t=e.length,n=0;Array.prototype.forEach.call(e,(function(e){var r=function(){return++n&&n>=t&&c.onWindowResized()};if(e.onclick){var o=e.onclick;e.onclick=function(){o(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(c.props.lazyLoad?e.onload=function(){c.adaptHeight(),c.callbackTimers.push(setTimeout(c.onWindowResized,c.props.speed))}:(e.onload=r,e.onerror=function(){r(),c.props.onLazyLoadError&&c.props.onLazyLoadError()}))}))})),Object(r.a)(Object(u.a)(c),"progressiveLazyLoad",(function(){for(var e=[],t=Object(i.a)(Object(i.a)({},c.props),c.state),n=c.state.currentSlide;n<c.state.slideCount+U(t);n++)if(c.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var r=c.state.currentSlide-1;r>=-B(t);r--)if(c.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(c.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),c.props.onLazyLoad&&c.props.onLazyLoad(e)):c.lazyLoadTimer&&(clearInterval(c.lazyLoadTimer),delete c.lazyLoadTimer)})),Object(r.a)(Object(u.a)(c),"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=c.props,r=n.asNavFor,o=n.beforeChange,a=n.onLazyLoad,u=n.speed,s=n.afterChange,l=c.state.currentSlide,f=A(Object(i.a)(Object(i.a)(Object(i.a)({index:e},c.props),c.state),{},{trackRef:c.track,useCSS:c.props.useCSS&&!t})),p=f.state,d=f.nextState;if(p){o&&o(l,p.currentSlide);var v=p.lazyLoadedList.filter((function(e){return c.state.lazyLoadedList.indexOf(e)<0}));a&&v.length>0&&a(v),!c.props.waitForAnimate&&c.animationEndCallback&&(clearTimeout(c.animationEndCallback),s&&s(l),delete c.animationEndCallback),c.setState(p,(function(){r&&c.asNavForIndex!==e&&(c.asNavForIndex=e,r.innerSlider.slideHandler(e)),d&&(c.animationEndCallback=setTimeout((function(){var e=d.animating,t=Object(h.a)(d,te);c.setState(t,(function(){c.callbackTimers.push(setTimeout((function(){return c.setState({animating:e})}),10)),s&&s(p.currentSlide),delete c.animationEndCallback}))}),u))}))}})),Object(r.a)(Object(u.a)(c),"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(i.a)(Object(i.a)({},c.props),c.state),r=L(n,e);if((0===r||r)&&(!0===t?c.slideHandler(r,t):c.slideHandler(r),c.props.autoplay&&c.autoPlay("update"),c.props.focusOnSelect)){var o=c.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}})),Object(r.a)(Object(u.a)(c),"clickHandler",(function(e){!1===c.clickable&&(e.stopPropagation(),e.preventDefault()),c.clickable=!0})),Object(r.a)(Object(u.a)(c),"keyHandler",(function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,c.props.accessibility,c.props.rtl);""!==t&&c.changeSlide({message:t})})),Object(r.a)(Object(u.a)(c),"selectHandler",(function(e){c.changeSlide(e)})),Object(r.a)(Object(u.a)(c),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),Object(r.a)(Object(u.a)(c),"enableBodyScroll",(function(){window.ontouchmove=null})),Object(r.a)(Object(u.a)(c),"swipeStart",(function(e){c.props.verticalSwiping&&c.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&w(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,c.props.swipe,c.props.draggable);""!==t&&c.setState(t)})),Object(r.a)(Object(u.a)(c),"swipeMove",(function(e){var t=function(e,t){var n=t.scrolling,r=t.animating,o=t.vertical,a=t.swipeToSlide,c=t.verticalSwiping,u=t.rtl,s=t.currentSlide,l=t.edgeFriction,f=t.edgeDragged,p=t.onEdge,d=t.swiped,h=t.swiping,v=t.slideCount,y=t.slidesToScroll,m=t.infinite,g=t.touchObject,b=t.swipeEvent,O=t.listHeight,_=t.listWidth;if(!n){if(r)return w(e);o&&a&&c&&w(e);var x,E={},S=z(t);g.curX=e.touches?e.touches[0].pageX:e.clientX,g.curY=e.touches?e.touches[0].pageY:e.clientY,g.swipeLength=Math.round(Math.sqrt(Math.pow(g.curX-g.startX,2)));var C=Math.round(Math.sqrt(Math.pow(g.curY-g.startY,2)));if(!c&&!h&&C>10)return{scrolling:!0};c&&(g.swipeLength=C);var j=(u?-1:1)*(g.curX>g.startX?1:-1);c&&(j=g.curY>g.startY?1:-1);var k=Math.ceil(v/y),M=P(t.touchObject,c),A=g.swipeLength;return m||(0===s&&("right"===M||"down"===M)||s+1>=k&&("left"===M||"up"===M)||!T(t)&&("left"===M||"up"===M))&&(A=g.swipeLength*l,!1===f&&p&&(p(M),E.edgeDragged=!0)),!d&&b&&(b(M),E.swiped=!0),x=o?S+A*(O/_)*j:u?S-A*j:S+A*j,c&&(x=S+A*j),E=Object(i.a)(Object(i.a)({},E),{},{touchObject:g,swipeLeft:x,trackStyle:D(Object(i.a)(Object(i.a)({},t),{},{left:x}))}),Math.abs(g.curX-g.startX)<.8*Math.abs(g.curY-g.startY)?E:(g.swipeLength>10&&(E.swiping=!0,w(e)),E)}}(e,Object(i.a)(Object(i.a)(Object(i.a)({},c.props),c.state),{},{trackRef:c.track,listRef:c.list,slideIndex:c.state.currentSlide}));t&&(t.swiping&&(c.clickable=!1),c.setState(t))})),Object(r.a)(Object(u.a)(c),"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,a=t.listWidth,c=t.touchThreshold,u=t.verticalSwiping,s=t.listHeight,l=t.swipeToSlide,f=t.scrolling,p=t.onSwipe,d=t.targetSlide,h=t.currentSlide,v=t.infinite;if(!n)return r&&w(e),{};var y=u?s/c:a/c,m=P(o,u),g={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f)return g;if(!o.swipeLength)return g;if(o.swipeLength>y){var b,O;w(e),p&&p(m);var _=v?h:d;switch(m){case"left":case"up":O=_+N(t),b=l?R(t,O):O,g.currentDirection=0;break;case"right":case"down":O=_-N(t),b=l?R(t,O):O,g.currentDirection=1;break;default:b=_}g.triggerSlideHandler=b}else{var x=z(t);g.trackStyle=F(Object(i.a)(Object(i.a)({},t),{},{left:x}))}return g}(e,Object(i.a)(Object(i.a)(Object(i.a)({},c.props),c.state),{},{trackRef:c.track,listRef:c.list,slideIndex:c.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,c.setState(t),void 0!==n&&(c.slideHandler(n),c.props.verticalSwiping&&c.enableBodyScroll())}})),Object(r.a)(Object(u.a)(c),"touchEnd",(function(e){c.swipeEnd(e),c.clickable=!0})),Object(r.a)(Object(u.a)(c),"slickPrev",(function(){c.callbackTimers.push(setTimeout((function(){return c.changeSlide({message:"previous"})}),0))})),Object(r.a)(Object(u.a)(c),"slickNext",(function(){c.callbackTimers.push(setTimeout((function(){return c.changeSlide({message:"next"})}),0))})),Object(r.a)(Object(u.a)(c),"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";c.callbackTimers.push(setTimeout((function(){return c.changeSlide({message:"index",index:e,currentSlide:c.state.currentSlide},t)}),0))})),Object(r.a)(Object(u.a)(c),"play",(function(){var e;if(c.props.rtl)e=c.state.currentSlide-c.props.slidesToScroll;else{if(!T(Object(i.a)(Object(i.a)({},c.props),c.state)))return!1;e=c.state.currentSlide+c.props.slidesToScroll}c.slideHandler(e)})),Object(r.a)(Object(u.a)(c),"autoPlay",(function(e){c.autoplayTimer&&clearInterval(c.autoplayTimer);var t=c.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;c.autoplayTimer=setInterval(c.play,c.props.autoplaySpeed+50),c.setState({autoplaying:"playing"})})),Object(r.a)(Object(u.a)(c),"pause",(function(e){c.autoplayTimer&&(clearInterval(c.autoplayTimer),c.autoplayTimer=null);var t=c.state.autoplaying;"paused"===e?c.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||c.setState({autoplaying:"focused"}):"playing"===t&&c.setState({autoplaying:"hovered"})})),Object(r.a)(Object(u.a)(c),"onDotsOver",(function(){return c.props.autoplay&&c.pause("hovered")})),Object(r.a)(Object(u.a)(c),"onDotsLeave",(function(){return c.props.autoplay&&"hovered"===c.state.autoplaying&&c.autoPlay("leave")})),Object(r.a)(Object(u.a)(c),"onTrackOver",(function(){return c.props.autoplay&&c.pause("hovered")})),Object(r.a)(Object(u.a)(c),"onTrackLeave",(function(){return c.props.autoplay&&"hovered"===c.state.autoplaying&&c.autoPlay("leave")})),Object(r.a)(Object(u.a)(c),"onSlideFocus",(function(){return c.props.autoplay&&c.pause("focused")})),Object(r.a)(Object(u.a)(c),"onSlideBlur",(function(){return c.props.autoplay&&"focused"===c.state.autoplaying&&c.autoPlay("blur")})),Object(r.a)(Object(u.a)(c),"render",(function(){var e,t,n,r=b()("slick-slider",c.props.className,{"slick-vertical":c.props.vertical,"slick-initialized":!0}),a=Object(i.a)(Object(i.a)({},c.props),c.state),u=M(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),s=c.props.pauseOnHover;if(u=Object(i.a)(Object(i.a)({},u),{},{onMouseEnter:s?c.onTrackOver:null,onMouseLeave:s?c.onTrackLeave:null,onMouseOver:s?c.onTrackOver:null,focusOnSelect:c.props.focusOnSelect&&c.clickable?c.selectHandler:null}),!0===c.props.dots&&c.state.slideCount>=c.props.slidesToShow){var l=M(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=c.props.pauseOnDotsHover;l=Object(i.a)(Object(i.a)({},l),{},{clickHandler:c.changeSlide,onMouseEnter:f?c.onDotsLeave:null,onMouseOver:f?c.onDotsOver:null,onMouseLeave:f?c.onDotsLeave:null}),e=p.a.createElement(J,l)}var d=M(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);d.clickHandler=c.changeSlide,c.props.arrows&&(t=p.a.createElement(Q,d),n=p.a.createElement($,d));var h=null;c.props.vertical&&(h={height:c.state.listHeight});var v=null;!1===c.props.vertical?!0===c.props.centerMode&&(v={padding:"0px "+c.props.centerPadding}):!0===c.props.centerMode&&(v={padding:c.props.centerPadding+" 0px"});var y=Object(i.a)(Object(i.a)({},h),v),m=c.props.touchMove,g={className:"slick-list",style:y,onClick:c.clickHandler,onMouseDown:m?c.swipeStart:null,onMouseMove:c.state.dragging&&m?c.swipeMove:null,onMouseUp:m?c.swipeEnd:null,onMouseLeave:c.state.dragging&&m?c.swipeEnd:null,onTouchStart:m?c.swipeStart:null,onTouchMove:c.state.dragging&&m?c.swipeMove:null,onTouchEnd:m?c.touchEnd:null,onTouchCancel:c.state.dragging&&m?c.swipeEnd:null,onKeyDown:c.props.accessibility?c.keyHandler:null},O={className:r,dir:"ltr",style:c.props.style};return c.props.unslick&&(g={className:"slick-list"},O={className:r}),p.a.createElement("div",O,c.props.unslick?"":t,p.a.createElement("div",Object(o.a)({ref:c.listRefHandler},g),p.a.createElement(Z,Object(o.a)({ref:c.trackRefHandler},u),c.props.children)),c.props.unslick?"":n,c.props.unslick?"":e)})),c.list=null,c.track=null,c.state=Object(i.a)(Object(i.a)({},v),{},{currentSlide:c.props.initialSlide,slideCount:p.a.Children.count(c.props.children)}),c.callbackTimers=[],c.clickable=!0,c.debouncedResize=null;var s=c.ssrInit();return c.state=Object(i.a)(Object(i.a)({},c.state),s),c}return Object(c.a)(n,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n<r.length;n++){var o=r[n];if(!e.hasOwnProperty(o)){t=!0;break}if("object"!==Object(d.a)(e[o])&&"function"!=typeof e[o]&&e[o]!==this.props[o]){t=!0;break}}return t||p.a.Children.count(this.props.children)!==p.a.Children.count(e.children)}}]),n}(p.a.Component),re=n("Rkrg"),oe=n.n(re),ie={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return p.a.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return p.a.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},ae=function(e){Object(s.a)(n,e);var t=Object(l.a)(n);function n(e){var o;return Object(a.a)(this,n),o=t.call(this,e),Object(r.a)(Object(u.a)(o),"innerSliderRefHandler",(function(e){return o.innerSlider=e})),Object(r.a)(Object(u.a)(o),"slickPrev",(function(){return o.innerSlider.slickPrev()})),Object(r.a)(Object(u.a)(o),"slickNext",(function(){return o.innerSlider.slickNext()})),Object(r.a)(Object(u.a)(o),"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o.innerSlider.slickGoTo(e,t)})),Object(r.a)(Object(u.a)(o),"slickPause",(function(){return o.innerSlider.pause("paused")})),Object(r.a)(Object(u.a)(o),"slickPlay",(function(){return o.innerSlider.autoPlay("play")})),o.state={breakpoint:null},o._responsiveMediaHandlers=[],o}return Object(c.a)(n,[{key:"media",value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?oe()({minWidth:0,maxWidth:n}):oe()({minWidth:t[r-1]+1,maxWidth:n}),Y()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=oe()({minWidth:t.slice(-1)[0]});Y()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":Object(i.a)(Object(i.a)(Object(i.a)({},ie),this.props),t[0].settings):Object(i.a)(Object(i.a)({},ie),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var r=p.a.Children.toArray(this.props.children);r=r.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var a=[],c=null,u=0;u<r.length;u+=e.rows*e.slidesPerRow){for(var s=[],l=u;l<u+e.rows*e.slidesPerRow;l+=e.slidesPerRow){for(var f=[],d=l;d<l+e.slidesPerRow&&(e.variableWidth&&r[d].props.style&&(c=r[d].props.style.width),!(d>=r.length));d+=1)f.push(p.a.cloneElement(r[d],{key:100*u+10*l+d,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));s.push(p.a.createElement("div",{key:10*u+l},f))}e.variableWidth?a.push(p.a.createElement("div",{key:u,style:{width:c}},s)):a.push(p.a.createElement("div",{key:u},s))}if("unslick"===e){var h="regular slider "+(this.props.className||"");return p.a.createElement("div",{className:h},r)}return a.length<=e.slidesToShow&&(e.unslick=!0),p.a.createElement(ne,Object(o.a)({style:this.props.style,ref:this.innerSliderRefHandler},e),a)}}]),n}(p.a.Component),ce=n("H84U"),ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},se=f.forwardRef((function(e,t){var n,i=e.dots,a=void 0===i||i,c=e.arrows,u=void 0!==c&&c,s=e.draggable,l=void 0!==s&&s,p=e.dotPosition,d=void 0===p?"bottom":p,h=e.vertical,v=void 0===h?"left"===d||"right"===d:h,y=ue(e,["dots","arrows","draggable","dotPosition","vertical"]),m=f.useContext(ce.b),g=m.getPrefixCls,O=m.direction,w=f.useRef(),_=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w.current.slickGoTo(e,t)};f.useImperativeHandle(t,(function(){return{goTo:_,autoPlay:w.current.innerSlider.autoPlay,innerSlider:w.current.innerSlider,prev:w.current.slickPrev,next:w.current.slickNext}}),[w.current]);var x=f.useRef(f.Children.count(y.children));f.useEffect((function(){x.current!==f.Children.count(y.children)&&(_(y.initialSlide||0,!1),x.current=f.Children.count(y.children))}),[y.children]);var E=Object(o.a)({vertical:v},y);"fade"===E.effect&&(E.fade=!0);var S=g("carousel",E.prefixCls),C=!!a,j=b()("slick-dots","".concat("slick-dots","-").concat(d),"boolean"!=typeof a&&(null==a?void 0:a.className)),k=b()(S,(n={},Object(r.a)(n,"".concat(S,"-rtl"),"rtl"===O),Object(r.a)(n,"".concat(S,"-vertical"),"left"===d||"right"===d),n));return f.createElement("div",{className:k},f.createElement(ae,Object(o.a)({ref:w},E,{dots:C,dotsClass:j,arrows:u,draggable:l})))}));t.a=se},"3KBa":function(e,t,n){var r=n("IBsm")["__core-js_shared__"];e.exports=r},"3LgI":function(e,t,n){"use strict";var r=n("cxan"),o=n("zjfJ"),i=n("zygG"),a=n("9Ic3"),c=n("O94r"),u=n.n(c),s=n("B5SY"),l=n("ty86"),f=n("MSM+"),p=n("WSTu"),d=n("ERkP"),h=n("H84U"),v=n("i6bk"),y=n("0n0R"),m=n("zAh6"),g=n("PEeC"),b=function(e){var t=Object(f.a)(!1,{value:e.visible}),n=Object(i.a)(t,2),c=n[0],b=n[1],O=d.createRef(),w=d.useRef(),_=function(){return O.current&&O.current.ownerDocument?O.current.ownerDocument:window},x=Object(g.a)((function(t){var n=e.visibilityHeight,r=Object(v.a)(t.target,!0);b(r>n)}));d.useEffect((function(){var t;return t=(e.target||_)(),w.current=Object(l.a)(t,"scroll",(function(e){x(e)})),x({target:t}),function(){w.current&&w.current.remove(),x.cancel()}}),[e.target]);var E=d.useContext(h.b),S=E.getPrefixCls,C=E.direction,j=e.prefixCls,k=e.className,P=void 0===k?"":k,T=S("back-top",j),M=S(),A=u()(T,Object(o.a)({},"".concat(T,"-rtl"),"rtl"===C),P),L=Object(p.a)(e,["prefixCls","className","children","visibilityHeight","target","visible"]);return d.createElement("div",Object(r.a)({},L,{className:A,onClick:function(t){var n=e.onClick,r=e.target,o=e.duration,i=void 0===o?450:o;Object(m.a)(0,{getContainer:r||_,duration:i}),"function"==typeof n&&n(t)},ref:O}),function(t){var n=t.prefixCls,r=t.rootPrefixCls,o=e.children,i=d.createElement("div",{className:"".concat(n,"-content")},d.createElement("div",{className:"".concat(n,"-icon")},d.createElement(a.a,null)));return d.createElement(s.b,{visible:c,motionName:"".concat(r,"-fade")},(function(e){var t=e.className;return Object(y.a)(o||i,(function(e){var n=e.className;return{className:u()(t,n)}}))}))}({prefixCls:T,rootPrefixCls:M}))};b.defaultProps={visibilityHeight:400},t.a=d.memo(b)},"3Nzz":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("ERkP"),o=r.createContext(void 0),i=function(e){var t=e.children,n=e.size;return r.createElement(o.Consumer,null,(function(e){return r.createElement(o.Provider,{value:n||e},t)}))};t.b=o},"3Qlq":function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},"3S7+":function(e,t,n){"use strict";var r=n("zjfJ"),o=n("zygG"),i=n("cxan"),a=n("O94r"),c=n.n(a),u=n("4wDe"),s=n("Czhu"),l=n("HbGN"),f=n("ERkP"),p=n("h/vM"),d=n("9u+f");function h(e){var t=e.showArrow,n=e.arrowContent,r=e.children,o=e.prefixCls,i=e.id,a=e.overlayInnerStyle,u=e.className,s=e.style;return f.createElement("div",{className:c()("".concat(o,"-content"),u),style:s},!1!==t&&f.createElement("div",{className:"".concat(o,"-arrow"),key:"arrow"},n),f.createElement("div",{className:"".concat(o,"-inner"),id:i,role:"tooltip",style:a},"function"==typeof r?r():r))}var v=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,a=e.mouseEnterDelay,c=void 0===a?0:a,v=e.mouseLeaveDelay,y=void 0===v?.1:v,m=e.overlayStyle,g=e.prefixCls,b=void 0===g?"rc-tooltip":g,O=e.children,w=e.onVisibleChange,_=e.afterVisibleChange,x=e.transitionName,E=e.animation,S=e.motion,C=e.placement,j=void 0===C?"right":C,k=e.align,P=void 0===k?{}:k,T=e.destroyTooltipOnHide,M=void 0!==T&&T,A=e.defaultVisible,L=e.getTooltipContainer,R=e.overlayInnerStyle,N=e.arrowContent,I=e.overlay,D=e.id,F=e.showArrow,z=Object(l.a)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),B=Object(f.useRef)(null);Object(f.useImperativeHandle)(t,(function(){return B.current}));var U=Object(s.a)({},z);"visible"in e&&(U.popupVisible=e.visible);var V=!1,H=!1;if("boolean"==typeof M)V=M;else if(M&&"object"===Object(u.a)(M)){var G=M.keepParent;V=!0===G,H=!1===G}return f.createElement(p.a,Object(i.a)({popupClassName:n,prefixCls:b,popup:function(){return f.createElement(h,{showArrow:F,arrowContent:N,key:"content",prefixCls:b,id:D,overlayInnerStyle:R},I)},action:o,builtinPlacements:d.a,popupPlacement:j,ref:B,popupAlign:P,getPopupContainer:L,onPopupVisibleChange:w,afterPopupVisibleChange:_,popupTransitionName:x,popupAnimation:E,popupMotion:S,defaultPopupVisible:A,destroyPopupOnHide:V,autoDestroy:H,mouseLeaveDelay:y,popupStyle:m,mouseEnterDelay:c},U),O)},y=Object(f.forwardRef)(v),m=n("MSM+"),g=n("H84U"),b=n("09Wf"),O=n("EXcs"),w=n("NWM5"),_=n("0n0R"),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},E=new RegExp("^(".concat(b.a.join("|"),")(-inverse)?$"));function S(e,t){var n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){var r=function(e,t){var n={},r=Object(i.a)({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),o=r.picked,a=r.omitted,u=Object(i.a)(Object(i.a)({display:"inline-block"},o),{cursor:"not-allowed",width:e.props.block?"100%":null}),s=Object(i.a)(Object(i.a)({},a),{pointerEvents:"none"}),l=Object(_.a)(e,{style:s,className:null});return f.createElement("span",{style:u,className:c()(e.props.className,"".concat(t,"-disabled-compatible-wrapper"))},l)}return e}var C=f.forwardRef((function(e,t){var n,a=f.useContext(g.b),u=a.getPopupContainer,s=a.getPrefixCls,l=a.direction,p=Object(m.a)(!1,{value:e.visible,defaultValue:e.defaultVisible}),d=Object(o.a)(p,2),h=d[0],v=d[1],b=function(){var t=e.title,n=e.overlay;return!t&&!n&&0!==t},C=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||Object(w.a)({arrowPointAtCenter:n,autoAdjustOverflow:r})},j=e.getPopupContainer,k=x(e,["getPopupContainer"]),P=e.prefixCls,T=e.openClassName,M=e.getTooltipContainer,A=e.overlayClassName,L=e.color,R=e.overlayInnerStyle,N=e.children,I=s("tooltip",P),D=s(),F=h;!("visible"in e)&&b()&&(F=!1);var z,B,U,V=S(Object(_.b)(N)?N:f.createElement("span",null,N),I),H=V.props,G=c()(H.className,Object(r.a)({},T||"".concat(I,"-open"),!0)),W=c()(A,(n={},Object(r.a)(n,"".concat(I,"-rtl"),"rtl"===l),Object(r.a)(n,"".concat(I,"-").concat(L),L&&E.test(L)),n)),Y=R;return L&&!E.test(L)&&(Y=Object(i.a)(Object(i.a)({},R),{background:L}),z={"--antd-arrow-background-color":L}),f.createElement(y,Object(i.a)({},k,{prefixCls:I,overlayClassName:W,getTooltipContainer:j||M||u,ref:t,builtinPlacements:C(),overlay:(B=e.title,U=e.overlay,0===B?B:U||B||""),visible:F,onVisibleChange:function(t){var n;v(!b()&&t),b()||null===(n=e.onVisibleChange)||void 0===n||n.call(e,t)},onPopupAlign:function(e,t){var n=C(),r=Object.keys(n).find((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}));if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayInnerStyle:Y,arrowContent:f.createElement("span",{className:"".concat(I,"-arrow-content"),style:z}),motion:{motionName:Object(O.c)(D,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),F?Object(_.a)(V,{className:G}):V)}));C.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};t.a=C},"3WEw":function(e,t,n){},"3YvA":function(e,t,n){"use strict";var r=n("VrFO"),o=n("Y9Ll"),i=n("n70c"),a=n("5Yy7"),c=n("N+ot"),u=n("AuHH");function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}n("FtFR"),Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;var p=n("c5bu"),d=n("dMso"),h=n("kyti"),v=n("KQpv")("socket.io-client:socket"),y=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),m=function(e){a(n,e);var t=f(n);function n(e,o,i){var a;return r(this,n),(a=t.call(this)).receiveBuffer=[],a.sendBuffer=[],a.ids=0,a.acks={},a.flags={},a.io=e,a.nsp=o,a.ids=0,a.acks={},a.receiveBuffer=[],a.sendBuffer=[],a.connected=!1,a.disconnected=!0,a.flags={},i&&i.auth&&(a.auth=i.auth),a.io._autoConnect&&a.open(),a}return o(n,[{key:"subEvents",value:function(){if(!this.subs){var e=this.io;this.subs=[h.on(e,"open",this.onopen.bind(this)),h.on(e,"packet",this.onpacket.bind(this)),h.on(e,"error",this.onerror.bind(this)),h.on(e,"close",this.onclose.bind(this))]}}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.unshift("message"),this.emit.apply(this,t),this}},{key:"emit",value:function(e){if(y.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.unshift(e);var o={type:p.PacketType.EVENT,data:n,options:{}};o.options.compress=!1!==this.flags.compress,"function"==typeof n[n.length-1]&&(v("emitting packet with ack id %d",this.ids),this.acks[this.ids]=n.pop(),o.id=this.ids++);var i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable,a=this.flags.volatile&&(!i||!this.connected);return a?v("discard packet as the transport is not currently writable"):this.connected?this.packet(o):this.sendBuffer.push(o),this.flags={},this}},{key:"packet",value:function(e){e.nsp=this.nsp,this.io._packet(e)}},{key:"onopen",value:function(){var e=this;v("transport is open - connecting"),"function"==typeof this.auth?this.auth((function(t){e.packet({type:p.PacketType.CONNECT,data:t})})):this.packet({type:p.PacketType.CONNECT,data:this.auth})}},{key:"onerror",value:function(e){this.connected||i(u(n.prototype),"emit",this).call(this,"connect_error",e)}},{key:"onclose",value:function(e){v("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,i(u(n.prototype),"emit",this).call(this,"disconnect",e)}},{key:"onpacket",value:function(e){if(e.nsp===this.nsp)switch(e.type){case p.PacketType.CONNECT:if(e.data&&e.data.sid){var t=e.data.sid;this.onconnect(t)}else i(u(n.prototype),"emit",this).call(this,"connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case p.PacketType.EVENT:case p.PacketType.BINARY_EVENT:this.onevent(e);break;case p.PacketType.ACK:case p.PacketType.BINARY_ACK:this.onack(e);break;case p.PacketType.DISCONNECT:this.ondisconnect();break;case p.PacketType.CONNECT_ERROR:var r=new Error(e.data.message);r.data=e.data.data,i(u(n.prototype),"emit",this).call(this,"connect_error",r)}}},{key:"onevent",value:function(e){var t=e.data||[];v("emitting event %j",t),null!=e.id&&(v("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}},{key:"emitEvent",value:function(e){if(this._anyListeners&&this._anyListeners.length){var t,r=s(this._anyListeners.slice());try{for(r.s();!(t=r.n()).done;){t.value.apply(this,e)}}catch(o){r.e(o)}finally{r.f()}}i(u(n.prototype),"emit",this).apply(this,e)}},{key:"ack",value:function(e){var t=this,n=!1;return function(){if(!n){n=!0;for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];v("sending ack %j",o),t.packet({type:p.PacketType.ACK,id:e,data:o})}}}},{key:"onack",value:function(e){var t=this.acks[e.id];"function"==typeof t?(v("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):v("bad ack %s",e.id)}},{key:"onconnect",value:function(e){v("socket connected with id %s",e),this.id=e,this.connected=!0,this.disconnected=!1,i(u(n.prototype),"emit",this).call(this,"connect"),this.emitBuffered()}},{key:"emitBuffered",value:function(){var e=this;this.receiveBuffer.forEach((function(t){return e.emitEvent(t)})),this.receiveBuffer=[],this.sendBuffer.forEach((function(t){return e.packet(t)})),this.sendBuffer=[]}},{key:"ondisconnect",value:function(){v("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}},{key:"destroy",value:function(){this.subs&&(this.subs.forEach((function(e){return e()})),this.subs=void 0),this.io._destroy(this)}},{key:"disconnect",value:function(){return this.connected&&(v("performing disconnect (%s)",this.nsp),this.packet({type:p.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}},{key:"close",value:function(){return this.disconnect()}},{key:"compress",value:function(e){return this.flags.compress=e,this}},{key:"volatile",get:function(){return this.flags.volatile=!0,this}},{key:"onAny",value:function(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}},{key:"prependAny",value:function(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}},{key:"offAny",value:function(e){if(!this._anyListeners)return this;if(e){for(var t=this._anyListeners,n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}},{key:"listenersAny",value:function(){return this._anyListeners||[]}}]),n}(d);t.Socket=m},"3ajY":function(e,t,n){(function(e){var r=n("IBsm"),o=n("DjCF"),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;e.exports=u}).call(this,n("aYSr")(e))},"3fuC":function(e,t){e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},"3mJI":function(e,t,n){"use strict";var r,o,i,a,c;e.exports=function(e){a=2,c=Math.pow(10,6),i=null,r=[],o=[];var t=e.readFields(s,{});return r=null,t};var u=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon","GeometryCollection"];function s(e,t,n){1===e?r.push(n.readString()):2===e?a=n.readVarint():3===e?c=Math.pow(10,n.readVarint()):4===e?function(e,t){t.type="FeatureCollection",t.features=[],e.readMessage(p,t)}(n,t):5===e?l(n,t):6===e&&f(n,t)}function l(e,t){t.type="Feature";var n=e.readMessage(d,t);return"geometry"in n||(n.geometry=null),n}function f(e,t){return t.type="Point",e.readMessage(h,t)}function p(e,t,n){1===e?t.features.push(l(n,{})):13===e?o.push(v(n)):15===e&&y(n,t)}function d(e,t,n){1===e?t.geometry=f(n,{}):11===e?t.id=n.readString():12===e?t.id=n.readSVarint():13===e?o.push(v(n)):14===e?t.properties=y(n,{}):15===e&&y(n,t)}function h(e,t,n){1===e?t.type=u[n.readVarint()]:2===e?i=n.readPackedVarint():3===e?function(e,t,n){"Point"===n?e.coordinates=function(e){var t=e.readVarint()+e.pos,n=[];for(;e.pos<t;)n.push(e.readSVarint()/c);return n}(t):"MultiPoint"===n||"LineString"===n?e.coordinates=g(t):"MultiLineString"===n?e.coordinates=b(t):"Polygon"===n?e.coordinates=b(t,!0):"MultiPolygon"===n&&(e.coordinates=function(e){var t=e.readVarint()+e.pos;if(!i)return[[m(e,t,null,!0)]];for(var n=[],r=1,o=0;o<i[0];o++){for(var a=[],c=0;c<i[r];c++)a.push(m(e,t,i[r+1+c],!0));r+=i[r]+1,n.push(a)}return i=null,n}(t))}(t,n,t.type):4===e?(t.geometries=t.geometries||[],t.geometries.push(f(n,{}))):13===e?o.push(v(n)):15===e&&y(n,t)}function v(e){for(var t=e.readVarint()+e.pos,n=null;e.pos<t;){var r=e.readVarint()>>3;1===r?n=e.readString():2===r?n=e.readDouble():3===r?n=e.readVarint():4===r?n=-e.readVarint():5===r?n=e.readBoolean():6===r&&(n=JSON.parse(e.readString()))}return n}function y(e,t){for(var n=e.readVarint()+e.pos;e.pos<n;)t[r[e.readVarint()]]=o[e.readVarint()];return o=[],t}function m(e,t,n,r){var o,i,u=0,s=[],l=[];for(i=0;i<a;i++)l[i]=0;for(;n?u<n:e.pos<t;){for(o=[],i=0;i<a;i++)l[i]+=e.readSVarint(),o[i]=l[i]/c;s.push(o),u++}return r&&s.push(s[0]),s}function g(e){return m(e,e.readVarint()+e.pos)}function b(e,t){var n=e.readVarint()+e.pos;if(!i)return[m(e,n,null,t)];for(var r=[],o=0;o<i.length;o++)r.push(m(e,n,i[o],t));return i=null,r}},"3x3+":function(e,t,n){"use strict";var r=n("61s2");t.a=r.a},"3yBb":function(e,t,n){"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,"a",(function(){return r}))},"4+Vk":function(e,t,n){var r=n("vxC8")(n("IBsm"),"WeakMap");e.exports=r},"4+xG":function(e,t){var n=[],r=[];function o(e,t){if(t=t||{},void 0===e)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var o,i=!0===t.prepend?"prepend":"append",a=void 0!==t.container?t.container:document.querySelector("head"),c=n.indexOf(a);return-1===c&&(c=n.push(a)-1,r[c]={}),void 0!==r[c]&&void 0!==r[c][i]?o=r[c][i]:(o=r[c][i]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===i?a.insertBefore(o,a.childNodes[0]):a.appendChild(o)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),o.styleSheet?o.styleSheet.cssText+=e:o.textContent+=e,o}e.exports=o,e.exports.insertCss=o},"4/ik":function(e,t,n){var r=n("+ooz"),o=n("qeCs"),i=n("hyzI");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},"4Br2":function(e,t,n){var r=n("lhaq"),o=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw o("The argument can't be less than 0");return t}},"4ScB":function(e,t,n){var r=n("LtXa"),o=n("zH+d");e.exports=function(e){return r(e,o(e))}},"4Sk5":function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},"4deW":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Plan=void 0;var r=function(e,t){this.parentContext=e,this.rootRequest=t};t.Plan=r},"4jfu":function(e,t,n){e.exports={topBannerAnnouncements:"TopBanner-module--topBannerAnnouncements--2GhF1"}},"4p/L":function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},"4uJK":function(e,t,n){var r=n("CbIe"),o=n("OtNC"),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},"4wDe":function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},"4ygQ":function(e,t,n){var r=n("cPMt"),o=n("wBNo"),i=n("7aed"),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},"50Kn":function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(e){var t=e.location,n=t.search,r=t.hash,o=t.href,i=t.origin,a=t.protocol,u=t.host,s=t.hostname,l=t.port,f=e.location.pathname;!f&&o&&c&&(f=new URL(o).pathname);return{pathname:encodeURI(decodeURI(f)),search:n,hash:r,href:o,origin:i,protocol:a,host:u,hostname:s,port:l,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},i=function(e,t){var n=[],i=o(e),a=!1,c=function(){};return{get location(){return i},get transitioning(){return a},_onTransitionComplete:function(){a=!1,c()},listen:function(t){n.push(t);var r=function(){i=o(e),t({location:i,action:"POP"})};return e.addEventListener("popstate",r),function(){e.removeEventListener("popstate",r),n=n.filter((function(e){return e!==t}))}},navigate:function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=u.state,l=u.replace,f=void 0!==l&&l;if("number"==typeof t)e.history.go(t);else{s=r({},s,{key:Date.now()+""});try{a||f?e.history.replaceState(s,null,t):e.history.pushState(s,null,t)}catch(d){e.location[f?"replace":"assign"](t)}}i=o(e),a=!0;var p=new Promise((function(e){return c=e}));return n.forEach((function(e){return e({location:i,action:"PUSH"})})),p}}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""},r=0,o=[n],i=[null];return{get location(){return o[r]},addEventListener:function(e,t){},removeEventListener:function(e,t){},history:{get entries(){return o},get index(){return r},get state(){return i[r]},pushState:function(e,t,n){var a=n.split("?"),c=a[0],u=a[1],s=void 0===u?"":u;r++,o.push({pathname:c,search:s.length?"?"+s:s}),i.push(e)},replaceState:function(e,t,n){var a=n.split("?"),c=a[0],u=a[1],s=void 0===u?"":u;o[r]={pathname:c,search:s},i[r]=e},go:function(e){var t=r+e;t<0||t>i.length-1||(r=t)}}}},c=!("undefined"==typeof window||!window.document||!window.document.createElement),u=i(c?window:a()),s=u.navigate},"56Cj":function(e,t,n){var r=n("T+0C"),o=n("ct80");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"5Dcv":function(e,t,n){var r=n("ZORK").match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},"5Dmo":function(e,t,n){"use strict";n("EFp3"),n("5YgA")},"5FNB":function(e,t,n){var r=n("BkAM"),o=n("Wkny");e.exports=r((function(e){return o(e.length,e)}))},"5OYt":function(e,t,n){"use strict";var r=n("ERkP"),o=n("hkKa"),i=n("ACnJ");t.a=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Object(r.useRef)({}),n=Object(o.a)();return Object(r.useEffect)((function(){var r=i.a.subscribe((function(r){t.current=r,e&&n()}));return function(){return i.a.unsubscribe(r)}}),[]),t.current}},"5VYK":function(e,t,n){var r=n("6QIk");e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},"5YOo":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingToSyntax=void 0;var r=n("KWcp"),o=n("BEDn"),i=n("VEhy"),a=n("Wbd9"),c=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=o.BindingTypeEnum.Instance,this._binding.implementationType=e,new i.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+r.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=o.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=o.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=o.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new i.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=o.BindingTypeEnum.Constructor,this._binding.implementationType=e,this._binding.scope=o.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=e,this._binding.scope=o.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!=typeof e)throw new Error(r.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=o.BindingTypeEnum.Function,this._binding.scope=o.BindingScopeEnum.Singleton,t},e.prototype.toAutoFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=function(t){return function(){return t.container.get(e)}},this._binding.scope=o.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=o.BindingTypeEnum.Provider,this._binding.provider=e,this._binding.scope=o.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue((function(t){return t.container.get(e)}))},e}();t.BindingToSyntax=c},"5YgA":function(e,t,n){},"5Yy7":function(e,t,n){var r=n("695J");e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},"5dAn":function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}},"5nKN":function(e,t,n){var r=n("2q8g"),o=n("9vbJ"),i=n("tQYX"),a=n("c18h"),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:c).test(a(e))}},"5ouU":function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="CheckCircleOutlined";t.a=o.forwardRef(c)},"5pfJ":function(e,t,n){var r=n("vxC8")(Object,"create");e.exports=r},"5qS4":function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c}));var r={};function o(e,t){0}function i(e,t){0}function a(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function c(e,t){a(i,e,t)}t.a=function(e,t){a(o,e,t)}},"5rEg":function(e,t,n){"use strict";var r=n("cxan"),o=n("zjfJ"),i=n("O94r"),a=n.n(i),c=n("ERkP"),u=n("H84U"),s=n("ihLV"),l=function(e){var t,n=Object(c.useContext)(u.b),i=n.getPrefixCls,l=n.direction,f=e.prefixCls,p=e.className,d=void 0===p?"":p,h=i("input-group",f),v=a()(h,(t={},Object(o.a)(t,"".concat(h,"-lg"),"large"===e.size),Object(o.a)(t,"".concat(h,"-sm"),"small"===e.size),Object(o.a)(t,"".concat(h,"-compact"),e.compact),Object(o.a)(t,"".concat(h,"-rtl"),"rtl"===l),t),d),y=Object(c.useContext)(s.b),m=Object(c.useMemo)((function(){return Object(r.a)(Object(r.a)({},y),{isFormItemInput:!1})}),[y]);return c.createElement("span",{className:v,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(s.b.Provider,{value:m},e.children))},f=n("mh/l"),p=n("zygG"),d=n("Czhu"),h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},v=n("vspj"),y=function(e,t){return c.createElement(v.a,Object(d.a)(Object(d.a)({},e),{},{ref:t,icon:h}))};y.displayName="EyeInvisibleOutlined";var m=c.forwardRef(y),g=n("Zrw9"),b=n("WSTu"),O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w={click:"onClick",hover:"onMouseOver"},_=c.forwardRef((function(e,t){var n=Object(c.useState)(!1),i=Object(p.a)(n,2),s=i[0],l=i[1],d=function(){e.disabled||l(!s)},h=function(n){var i=n.getPrefixCls,u=e.className,l=e.prefixCls,p=e.inputPrefixCls,h=e.size,v=e.visibilityToggle,y=O(e,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),m=i("input",p),g=i("input-password",l),_=v&&function(t){var n,r=e.action,i=e.iconRender,a=w[r]||"",u=(void 0===i?function(){return null}:i)(s),l=(n={},Object(o.a)(n,a,d),Object(o.a)(n,"className","".concat(t,"-icon")),Object(o.a)(n,"key","passwordIcon"),Object(o.a)(n,"onMouseDown",(function(e){e.preventDefault()})),Object(o.a)(n,"onMouseUp",(function(e){e.preventDefault()})),n);return c.cloneElement(c.isValidElement(u)?u:c.createElement("span",null,u),l)}(g),x=a()(g,u,Object(o.a)({},"".concat(g,"-").concat(h),!!h)),E=Object(r.a)(Object(r.a)({},Object(b.a)(y,["suffix","iconRender"])),{type:s?"text":"password",className:x,prefixCls:m,suffix:_});return h&&(E.size=h),c.createElement(f.a,Object(r.a)({ref:t},E))};return c.createElement(u.a,null,h)}));_.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(e){return e?c.createElement(g.a,null):c.createElement(m,null)}};var x=_,E=n("xynK"),S=n("uwWy"),C=n("2/Rp"),j=n("3Nzz"),k=n("0n0R"),P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var T=c.forwardRef((function(e,t){var n,i,s=e.prefixCls,l=e.inputPrefixCls,p=e.className,d=e.size,h=e.suffix,v=e.enterButton,y=void 0!==v&&v,m=e.addonAfter,g=e.loading,b=e.disabled,O=e.onSearch,w=e.onChange,_=e.onCompositionStart,x=e.onCompositionEnd,T=P(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),M=c.useContext(u.b),A=M.getPrefixCls,L=M.direction,R=c.useContext(j.b),N=c.useRef(!1),I=d||R,D=c.useRef(null),F=function(e){var t;document.activeElement===(null===(t=D.current)||void 0===t?void 0:t.input)&&e.preventDefault()},z=function(e){var t,n;O&&O(null===(n=null===(t=D.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},B=A("input-search",s),U=A("input",l),V="boolean"==typeof y?c.createElement(E.a,null):null,H="".concat(B,"-button"),G=y||{},W=G.type&&!0===G.type.__ANT_BUTTON;i=W||"button"===G.type?Object(k.a)(G,Object(r.a)({onMouseDown:F,onClick:function(e){var t,n;null===(n=null===(t=null==G?void 0:G.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),z(e)},key:"enterButton"},W?{className:H,size:I}:{})):c.createElement(C.a,{className:H,type:y?"primary":void 0,size:I,disabled:b,key:"enterButton",onMouseDown:F,onClick:z,loading:g,icon:V},y),m&&(i=[i,Object(k.a)(m,{key:"addonAfter"})]);var Y=a()(B,(n={},Object(o.a)(n,"".concat(B,"-rtl"),"rtl"===L),Object(o.a)(n,"".concat(B,"-").concat(I),!!I),Object(o.a)(n,"".concat(B,"-with-button"),!!y),n),p);return c.createElement(f.a,Object(r.a)({ref:Object(S.a)(D,t),onPressEnter:function(e){N.current||z(e)}},T,{size:I,onCompositionStart:function(e){N.current=!0,null==_||_(e)},onCompositionEnd:function(e){N.current=!1,null==x||x(e)},prefixCls:U,addonAfter:i,suffix:h,onChange:function(e){e&&e.target&&"click"===e.type&&O&&O(e.target.value,e),w&&w(e)},className:Y,disabled:b}))})),M=n("whJP"),A=f.a;A.Group=l,A.Search=T,A.TextArea=M.a,A.Password=x;t.a=A},"5rtB":function(e,t,n){},"5sXw":function(e,t,n){},"5w0e":function(e,t,n){var r=n("fH32"),o=n("hxc7"),i=String.fromCharCode(30);e.exports={protocol:4,encodePacket:r,encodePayload:function(e,t){var n=e.length,o=new Array(n),a=0;e.forEach((function(e,c){r(e,!1,(function(e){o[c]=e,++a===n&&t(o.join(i))}))}))},decodePacket:o,decodePayload:function(e,t){for(var n=e.split(i),r=[],a=0;a<n.length;a++){var c=o(n[a],t);if(r.push(c),"error"===c.type)break}return r}}},"5x5+":function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",(function(){return r}))},"5yr3":function(e,t,n){"use strict";var r=function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).slice().map((function(e){e(n)})),(e["*"]||[]).slice().map((function(e){e(t,n)}))}}}();t.a=r},"6/e7":function(e,t,n){var r=n("BkAM"),o=n("Z18Y"),i=n("hNjE"),a=n("I9M6"),c=n("A43l");e.exports=r((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():i(e)?[]:c(e)?"":a(e)?{}:o(e)?function(){return arguments}():void 0}))},"61s2":function(e,t,n){"use strict";var r=n("cxan"),o={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},i=n("RlXo"),a={lang:Object(r.a)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o),timePickerLocale:Object(r.a)({},i.a)};t.a=a},"66Bn":function(e,t,n){var r=n("tUYG"),o=n("POgt"),i=n("dSaG"),a=TypeError;e.exports=function(e,t){var n,c;if("string"===t&&o(n=e.toString)&&!i(c=r(n,e)))return c;if(o(n=e.valueOf)&&!i(c=r(n,e)))return c;if("string"!==t&&o(n=e.toString)&&!i(c=r(n,e)))return c;throw a("Can't convert object to primitive value")}},"66wQ":function(e,t,n){var r=n("ct80"),o=n("POgt"),i=/#|\.prototype\./,a=function(e,t){var n=u[c(e)];return n==l||n!=s&&(o(t)?r(t):!!t)},c=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},"695J":function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"6I2w":function(e,t,n){var r=n("kkM+"),o=n("tLQN");e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},"6JDI":function(e,t,n){"use strict";var r=n("9JhN"),o=n("tUYG"),i=n("qvLe"),a=n("BIH/"),c=n("LdeS"),u=n("N9G2"),s=n("ct80"),l=r.RangeError,f=r.Int8Array,p=f&&f.prototype,d=p&&p.set,h=i.aTypedArray,v=i.exportTypedArrayMethod,y=!s((function(){var e=new Uint8ClampedArray(2);return o(d,e,{length:1,0:3},1),3!==e[1]})),m=y&&i.NATIVE_ARRAY_BUFFER_VIEWS&&s((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));v("set",(function(e){h(this);var t=c(arguments.length>1?arguments[1]:void 0,1),n=u(e);if(y)return o(d,this,n,t);var r=this.length,i=a(n),s=0;if(i+t>r)throw l("Wrong length");for(;s<i;)this[t+s]=n[s++]}),!y||m)},"6Mra":function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionName=t.getBaseClassDependencyCount=t.getDependencies=void 0;var o=n("RFCa"),i=n("KWcp"),a=n("BEDn"),c=n("2u/a"),u=n("o7q5");Object.defineProperty(t,"getFunctionName",{enumerable:!0,get:function(){return u.getFunctionName}});var s=n("0H/D");function l(e,t,n,o){var c=e.getConstructorMetadata(n),u=c.compilerGeneratedMetadata;if(void 0===u){var l=i.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(l)}var d=c.userGeneratedMetadata,h=Object.keys(d),v=0===n.length&&h.length>0,y=h.length>n.length,m=function(e,t,n,r,o){for(var i=[],a=0;a<o;a++){var c=f(a,e,t,n,r);null!==c&&i.push(c)}return i}(o,t,u,d,v||y?h.length:n.length),g=function e(t,n){for(var o=t.getPropertiesMetadata(n),i=[],c=Object.keys(o),u=0,l=c;u<l.length;u++){var f=l[u],d=o[f],h=p(o[f]),v=h.targetName||f,y=h.inject||h.multiInject,m=new s.Target(a.TargetTypeEnum.ClassProperty,v,y);m.metadata=d,i.push(m)}var g=Object.getPrototypeOf(n.prototype).constructor;if(g!==Object){var b=e(t,g);i=r(r([],i),b)}return i}(e,n);return r(r([],m),g)}function f(e,t,n,r,c){var u=c[e.toString()]||[],l=p(u),f=!0!==l.unmanaged,d=r[e],h=l.inject||l.multiInject;if((d=h||d)instanceof o.LazyServiceIdentifer&&(d=d.unwrap()),f){if(!t&&(d===Object||d===Function||void 0===d)){var v=i.MISSING_INJECT_ANNOTATION+" argument "+e+" in class "+n+".";throw new Error(v)}var y=new s.Target(a.TargetTypeEnum.ConstructorArgument,l.targetName,d);return y.metadata=u,y}return null}function p(e){var t={};return e.forEach((function(e){t[e.key.toString()]=e.value})),{inject:t[c.INJECT_TAG],multiInject:t[c.MULTI_INJECT_TAG],targetName:t[c.NAME_TAG],unmanaged:t[c.UNMANAGED_TAG]}}t.getDependencies=function(e,t){return l(e,u.getFunctionName(t),t,!1)},t.getBaseClassDependencyCount=function e(t,n){var r=Object.getPrototypeOf(n.prototype).constructor;if(r!==Object){var o=l(t,u.getFunctionName(r),r,!0),i=o.map((function(e){return e.metadata.filter((function(e){return e.key===c.UNMANAGED_TAG}))})),a=[].concat.apply([],i).length,s=o.length-a;return s>0?s:e(t,r)}return 0}},"6NwO":function(e,t){e.exports=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},function(t){return new e(t)}}()},"6Oxz":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingInSyntax=void 0;var r=n("BEDn"),o=n("Wbd9"),i=function(){function e(e){this._binding=e}return e.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new o.BindingWhenOnSyntax(this._binding)},e.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new o.BindingWhenOnSyntax(this._binding)},e.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new o.BindingWhenOnSyntax(this._binding)},e}();t.BindingInSyntax=i},"6QIk":function(e,t,n){var r=n("pPzx");e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},"6Qj0":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("ERkP"),o=n.n(r),i=n("kvVz");function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.a.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(a(e)):Object(i.isFragment)(e)&&e.props?n=n.concat(a(e.props.children,t)):n.push(e))})),n}},"6RQ8":function(e,t,n){"use strict";var r=n("IGGJ");n("Wbzz"),r(n("FSMn"))},"6Rtw":function(e,t,n){var r=n("EAGB");e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},"6UKJ":function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},"6XIJ":function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},"7/jS":function(e,t,n){var r=n("Dhk8"),o=n("t0L4"),i=n("tLQN"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},"70Le":function(e,t,n){var r=n("W0vE"),o=n("X4R2"),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=c},"73V4":function(e,t,n){"use strict";var r,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),i={},a=0,c=0;function u(e){var t="";do{t=o[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function s(){var e=u(+new Date);return e!==r?(a=0,r=e):e+"."+u(a++)}for(;c<64;c++)i[o[c]]=c;s.encode=u,s.decode=function(e){var t=0;for(c=0;c<e.length;c++)t=64*t+i[e.charAt(c)];return t},e.exports=s},"77ug":function(e,t,n){var r=n("rxHK"),o=n("JUXS"),i=n("dKHC"),a=n("0IOZ");e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,i(o,arguments[0],a(arguments)))}},"7Avf":function(e,t,n){"use strict";n.r(t),n.d(t,"ThreeLayer",(function(){return L})),n.d(t,"ThreeRender",(function(){return N}));var r,o,i,a,c,u,s,l=n("Gf+y"),f=n("i8eK"),p=n("pufz"),d=n("s6Xb");n("qzOT");function h(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var b=Math.PI/180,O=Symbol.for("ThreeJSRenderService"),w=(r=Object(d.injectable)(),o=Object(d.inject)(p.TYPES.IRendererService),i=Object(d.inject)(p.TYPES.IMapService),r((u=g((c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),y(this,"rendererService",u,this),y(this,"mapService",s,this)}var t,n,r;return t=e,(n=[{key:"init",value:function(){var e=this.rendererService.getCanvas(),t=this.rendererService.getGLContext();if(e&&t){var n=this.mapService.getCenter();this.center=this.mapService.lngLatToMercator([n.lng,n.lat],0)}var r=this.center,o=r.x,i=r.y,a=r.z;this.cameraTransform=(new f.Matrix4).makeTranslation(o,i,a),this.renderer=new f.WebGLRenderer({canvas:e,context:t,antialias:!0}),this.renderer.autoClear=!1,this.renderer.gammaFactor=2.2,this.renderer.shadowMap.enabled=!0,this.scene=new f.Scene,this.aspect=t.drawingBufferWidth/t.drawingBufferHeight,this.camera=new f.PerspectiveCamera(45,this.aspect,1,2e7)}},{key:"getRenderCamera",value:function(){switch(this.mapService.version){case"GAODE1.x":return this.AMapCamera();case"GAODE2.x":return this.AMap2Camera();case"MAPBOX":return this.mapboxCamera();default:return this.AMapCamera()}}},{key:"mapboxCamera",value:function(){var e=(new f.Matrix4).fromArray(this.mapService.map.transform.customLayerMatrix());return this.camera.projectionMatrix=e.multiply(this.cameraTransform),this.camera}},{key:"AMapCamera",value:function(){var e=this.mapService.map.getCameraState(),t=this.camera,n=e.pitch,r=e.rotation,o=e.fov,i=e.near,a=e.far,c=e.height,u=e.aspect;return n*=b,r*=b,t.fov=180*o/Math.PI,t.aspect=u,t.near=i,t.far=a,t.updateProjectionMatrix(),t.position.z=c*Math.cos(n),t.position.x=c*Math.sin(n)*Math.sin(r),t.position.y=-c*Math.sin(n)*Math.cos(r),t.up.x=-Math.cos(n)*Math.sin(r),t.up.y=Math.cos(n)*Math.cos(r),t.up.z=Math.sin(n),t.lookAt(0,0,0),t.position.x+=e.position.x,t.position.y+=-e.position.y,t}},{key:"AMap2Camera",value:function(){var e,t,n=this.mapService.map.customCoords;n.getCenter();var r=this.camera,o=n.getCameraParams(),i=o.near,a=o.far,c=o.fov,u=o.up,s=o.lookAt,l=o.position;return r.near=i,r.far=a,r.fov=c,(e=r.position).set.apply(e,h(l)),(t=r.up).set.apply(t,h(u)),r.lookAt.apply(r,h(s)),r.updateProjectionMatrix(),r}}])&&m(t.prototype,n),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"rendererService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=g(c.prototype,"mapService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=c))||a);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function j(e,t){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M(e);if(t){var o=M(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(i,e);var t,n,r,o=k(i);function i(){var e;S(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return A(T(e=o.call.apply(o,[this].concat(n))),"type","custom"),A(T(e),"isUpdate",!1),A(T(e),"update",null),A(T(e),"scene",new f.Scene),A(T(e),"animateMixer",[]),A(T(e),"defaultSourceConfig",{data:{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Point",coordinates:[0,0]}}]},options:{parser:{type:"geojson"}}}),A(T(e),"forceRender",!0),e}return t=i,(n=[{key:"setUpdate",value:function(e){this.update=e,this.isUpdate=!0}},{key:"getModelMatrix",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0,0],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[1,1,1];return(new f.Matrix4).fromArray(this.mapService.getModelMatrix(e,t,n,r,this.threeRenderService.center))}},{key:"getTranslateMatrix",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.getModelMatrix(e,t,[0,0,0],[1,1,1])}},{key:"applyObjectLngLat",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getTranslateMatrix(t,n);e.applyMatrix4(r)}},{key:"setObjectLngLat",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.lnglatToCoord(t),o=x(r,2),i=o[0],a=o[1];e.position.set(i,a,n)}},{key:"lnglatToCoord",value:function(e){var t,n=x(null===(t=this.mapService)||void 0===t?void 0:t.lngLatToCoord(e,this.threeRenderService.center),2);return[n[0],n[1]]}},{key:"getObjectLngLat",value:function(e){return[0,0]}},{key:"adjustMeshToMap",value:function(e){e.up=new f.Vector3(0,0,1);var t=this.mapService.getCenter(),n=this.getModelMatrix([t.lng,t.lat],0,[Math.PI/2,-Math.PI,0],[1,1,1]);e.applyMatrix4(n)}},{key:"setMeshScale",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=new f.Matrix4;o.scale(new f.Vector3(t,n,r)),e.applyMatrix4(o)}},{key:"buildModels",value:function(){this.threeRenderService=this.getContainer().get(O);var e=this.getLayerConfig();e&&e.onAddMeshes&&e.onAddMeshes(this.scene,this)}},{key:"renderModels",value:function(){var e=this;if(!this.threeRenderService)return this;this.isUpdate&&this.update&&this.update();var t=this.rendererService.getGLContext();this.rendererService.setCustomLayerDefaults();var n="AMapService"===this.mapService.constructor.name?t.BACK:t.FRONT;t.cullFace(n);var r=this.threeRenderService.renderer;r.state.reset(),r.autoClear=!1;var o=this.threeRenderService.getRenderCamera();return r.render(this.scene,o),this.rendererService.setState(),this.animateMixer.forEach((function(t){t.update(e.getTime())})),this.rendererService.setState(),this.rendererService.setDirty(!0),this}},{key:"renderAMapModels",value:function(){var e=this;this.rendererService.getGLContext(),this.rendererService.setCustomLayerDefaults();var t=this.threeRenderService.renderer;return t.state.reset(),t.autoClear=!1,t.render(this.scene,this.threeRenderService.getRenderCamera()),this.animateMixer.forEach((function(t){t.update(e.getTime())})),this.rendererService.setBaseState(),this.rendererService.setDirty(!0),this}},{key:"getRenderCamera",value:function(){return this.threeRenderService.getRenderCamera()}},{key:"addAnimateMixer",value:function(e){this.animateMixer.push(e)}},{key:"setBottomColor",value:function(e){console.warn("empty function")}},{key:"getBottomColor",value:function(){return"rgba(0, 0, 0, 0)"}}])&&C(t.prototype,n),r&&C(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(l.a);function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var N=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=t.getServiceContainer();n.bind(O).to(w).inSingletonScope(),this.threeRenderService=n.get(O)}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.threeRenderService.init()}}])&&R(t.prototype,n),r&&R(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},"7Jnn":function(e,t,n){"use strict";var r=n("KEM+"),o=n("RhWx"),i=n("ddV6"),a=n("5Yy7"),c=n("695J");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(){s=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),c(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return a(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+i[t]})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},s.apply(this,arguments)}n("tQbP");var l=function(e,t){return t.some((function(t){return t instanceof RegExp?t.test(e):t===e}))};e.exports=function(e,t){if(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0},t),e=e.trim(),/^data:/i.test(e))return function(e,t){var n=t.stripHash,r=s(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/,{type:1,data:2,hash:3}).exec(e);if(!r)throw new Error("Invalid URL: ".concat(e));var a=r.groups,c=a.type,u=a.data,l=a.hash,f=c.split(";");l=n?"":l;var p=!1;"base64"===f[f.length-1]&&(f.pop(),p=!0);var d=(f.shift()||"").toLowerCase(),h=f.map((function(e){var t=e.split("=").map((function(e){return e.trim()})),n=i(t,2),r=n[0],o=n[1],a=void 0===o?"":o;return"charset"===r&&"us-ascii"===(a=a.toLowerCase())?"":"".concat(r).concat(a?"=".concat(a):"")})).filter(Boolean),v=o(h);return p&&v.push("base64"),(0!==v.length||d&&"text/plain"!==d)&&v.unshift(d),"data:".concat(v.join(";"),",").concat(p?u.trim():u).concat(l?"#".concat(l):"")}(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");var n=e.startsWith("//");!n&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));var a=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===a.protocol&&(a.protocol="http:"),t.forceHttps&&"http:"===a.protocol&&(a.protocol="https:"),t.stripAuthentication&&(a.username="",a.password=""),t.stripHash?a.hash="":t.stripTextFragment&&(a.hash=a.hash.replace(/#?:~:text.*?$/i,"")),a.pathname&&(a.pathname=a.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),a.pathname)try{a.pathname=decodeURI(a.pathname)}catch(y){}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){var c=a.pathname.split("/"),f=c[c.length-1];l(f,t.removeDirectoryIndex)&&(c=c.slice(0,c.length-1),a.pathname=c.slice(1).join("/")+"/")}if(a.hostname&&(a.hostname=a.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(a.hostname)&&(a.hostname=a.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(var p=0,d=o(a.searchParams.keys());p<d.length;p++){var h=d[p];l(h,t.removeQueryParameters)&&a.searchParams.delete(h)}!0===t.removeQueryParameters&&(a.search=""),t.sortQueryParameters&&a.searchParams.sort(),t.removeTrailingSlash&&(a.pathname=a.pathname.replace(/\/$/,""));var v=e;return e=a.toString(),t.removeSingleSlash||"/"!==a.pathname||v.endsWith("/")||""!==a.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===a.pathname)&&""===a.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}},"7No3":function(e,t,n){var r=n("EAGB"),o=n("lN3w"),i=n("Bstx"),a=n("bVbG"),c=n("6Rtw");e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(e,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Set]":return new u;case"[object Symbol]":return a(e)}}},"7P48":function(e,t,n){"use strict";e.exports={equals:"fantasy-land/equals",concat:"fantasy-land/concat",empty:"fantasy-land/empty",map:"fantasy-land/map",ap:"fantasy-land/ap",of:"fantasy-land/of",alt:"fantasy-land/alt",reduce:"fantasy-land/reduce",traverse:"fantasy-land/traverse",chain:"fantasy-land/chain",chainRec:"fantasy-land/chainRec",extend:"fantasy-land/extend",extract:"fantasy-land/extract",bimap:"fantasy-land/bimap",promap:"fantasy-land/promap"}},"7Pat":function(e,t,n){var r=n("+7q0"),o=n("kG2z")(r);e.exports=o},"7Svs":function(e,t,n){"use strict";n.r(t);var r=n("hOO4");n.d(t,"Map",(function(){return r.default}));var o=n("pufz");for(var i in o)["default","Map"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var a=n("+CBx");n.d(t,"Scene",(function(){return a.a}));var c=n("JeyM");n.d(t,"BaseLayer",(function(){return c.a})),n.d(t,"BaseModel",(function(){return c.b})),n.d(t,"PointLayer",(function(){return c.m})),n.d(t,"PolygonLayer",(function(){return c.n})),n.d(t,"LineLayer",(function(){return c.j})),n.d(t,"CityBuildingLayer",(function(){return c.e})),n.d(t,"GeometryLayer",(function(){return c.g})),n.d(t,"CanvasLayer",(function(){return c.c})),n.d(t,"ImageLayer",(function(){return c.i})),n.d(t,"RasterLayer",(function(){return c.o})),n.d(t,"HeatmapLayer",(function(){return c.h})),n.d(t,"EarthLayer",(function(){return c.f})),n.d(t,"WindLayer",(function(){return c.r})),n.d(t,"MaskLayer",(function(){return c.l})),n.d(t,"TileDebugLayer",(function(){return c.q})),n.d(t,"lineStyleType",(function(){return c.s})),n.d(t,"LinearDir",(function(){return c.k})),n.d(t,"TextureBlend",(function(){return c.p})),n.d(t,"CanvasUpdateType",(function(){return c.d}));var u=n("zEXi");n.d(t,"djb2hash",(function(){return u.P})),n.d(t,"BKDRHash",(function(){return u.e})),n.d(t,"DOM",(function(){return u.f})),n.d(t,"Satistics",(function(){return u.l})),n.d(t,"isMiniAli",(function(){return u.kb})),n.d(t,"isWeChatMiniProgram",(function(){return u.mb})),n.d(t,"isMini",(function(){return u.jb})),n.d(t,"miniWindow",(function(){return u.wb})),n.d(t,"$window",(function(){return u.c})),n.d(t,"$XMLHttpRequest",(function(){return u.a})),n.d(t,"$location",(function(){return u.b})),n.d(t,"dispatchTouchStart",(function(){return u.O})),n.d(t,"dispatchTouchMove",(function(){return u.N})),n.d(t,"dispatchTouchEnd",(function(){return u.M})),n.d(t,"dispatchMapCameraParams",(function(){return u.F})),n.d(t,"dispatchPointerDown",(function(){return u.J})),n.d(t,"dispatchPointerMove",(function(){return u.K})),n.d(t,"dispatchPointerUp",(function(){return u.L})),n.d(t,"dispatchMouseDown",(function(){return u.G})),n.d(t,"dispatchMouseMove",(function(){return u.H})),n.d(t,"dispatchMouseUp",(function(){return u.I})),n.d(t,"AJAXError",(function(){return u.d})),n.d(t,"makeXMLHttpRequestPromise",(function(){return u.ub})),n.d(t,"getJSON",(function(){return u.ab})),n.d(t,"getArrayBuffer",(function(){return u.X})),n.d(t,"postData",(function(){return u.Cb})),n.d(t,"getImage",(function(){return u.Z})),n.d(t,"arrayBufferToTiffImage",(function(){return u.w})),n.d(t,"getTiffImage",(function(){return u.db})),n.d(t,"extent",(function(){return u.T})),n.d(t,"tranfrormCoord",(function(){return u.Hb})),n.d(t,"lngLatToMeters",(function(){return u.rb})),n.d(t,"metersToLngLat",(function(){return u.vb})),n.d(t,"longitude",(function(){return u.tb})),n.d(t,"latitude",(function(){return u.ob})),n.d(t,"validateLngLat",(function(){return u.Jb})),n.d(t,"aProjectFlat",(function(){return u.q})),n.d(t,"unProjectFlat",(function(){return u.Ib})),n.d(t,"amap2Project",(function(){return u.r})),n.d(t,"amap2UnProject",(function(){return u.s})),n.d(t,"lnglatDistance",(function(){return u.sb})),n.d(t,"project",(function(){return u.Db})),n.d(t,"padBounds",(function(){return u.Ab})),n.d(t,"boundsContains",(function(){return u.z})),n.d(t,"bBoxToBounds",(function(){return u.x})),n.d(t,"normalize",(function(){return u.xb})),n.d(t,"calDistance",(function(){return u.B})),n.d(t,"calAngle",(function(){return u.A})),n.d(t,"getAngle",(function(){return u.W})),n.d(t,"flow",(function(){return u.U})),n.d(t,"calculateCentroid",(function(){return u.C})),n.d(t,"calculatePointsCenterAndRadius",(function(){return u.D})),n.d(t,"LRUCache",(function(){return u.h})),n.d(t,"bindAll",(function(){return u.y})),n.d(t,"FrequencyController",(function(){return u.g})),n.d(t,"isColor",(function(){return u.hb})),n.d(t,"rgb2arr",(function(){return u.Eb})),n.d(t,"decodePickingColor",(function(){return u.E})),n.d(t,"encodePickingColor",(function(){return u.Q})),n.d(t,"generateColorRamp",(function(){return u.V})),n.d(t,"anchorType",(function(){return u.u})),n.d(t,"anchorTranslate",(function(){return u.t})),n.d(t,"applyAnchorClass",(function(){return u.v})),n.d(t,"getMask",(function(){return u.bb})),n.d(t,"WorkerSourceMap",(function(){return u.p})),n.d(t,"setL7WorkerSource",(function(){return u.Fb})),n.d(t,"executeWorkerTask",(function(){return u.R})),n.d(t,"getCullFace",(function(){return u.Y})),n.d(t,"isImageBitmap",(function(){return u.ib})),n.d(t,"isWorker",(function(){return u.nb})),n.d(t,"getReferrer",(function(){return u.cb})),n.d(t,"isURLTemplate",(function(){return u.lb})),n.d(t,"expandUrl",(function(){return u.S})),n.d(t,"getURLFromTemplate",(function(){return u.gb})),n.d(t,"UpdateTileStrategy",(function(){return u.o})),n.d(t,"LoadTileDataStatus",(function(){return u.j})),n.d(t,"Tile",(function(){return u.m})),n.d(t,"TilesetManager",(function(){return u.n})),n.d(t,"osmLonLat2TileXY",(function(){return u.yb})),n.d(t,"osmTileXY2LonLat",(function(){return u.zb})),n.d(t,"tileToBounds",(function(){return u.Gb})),n.d(t,"getTileIndices",(function(){return u.eb})),n.d(t,"getTileWarpXY",(function(){return u.fb})),n.d(t,"LineTriangulation",(function(){return u.i})),n.d(t,"PointFillTriangulation",(function(){return u.k})),n.d(t,"polygonFillTriangulation",(function(){return u.Bb})),n.d(t,"lineAtOffset",(function(){return u.pb})),n.d(t,"lineAtOffsetAsyc",(function(){return u.qb}))},"7Th+":function(e,t,n){"use strict";n.r(t),n.d(t,"create",(function(){return o})),n.d(t,"clone",(function(){return i})),n.d(t,"length",(function(){return a})),n.d(t,"fromValues",(function(){return c})),n.d(t,"copy",(function(){return u})),n.d(t,"set",(function(){return s})),n.d(t,"add",(function(){return l})),n.d(t,"subtract",(function(){return f})),n.d(t,"multiply",(function(){return p})),n.d(t,"divide",(function(){return d})),n.d(t,"ceil",(function(){return h})),n.d(t,"floor",(function(){return v})),n.d(t,"min",(function(){return y})),n.d(t,"max",(function(){return m})),n.d(t,"round",(function(){return g})),n.d(t,"scale",(function(){return b})),n.d(t,"scaleAndAdd",(function(){return O})),n.d(t,"distance",(function(){return w})),n.d(t,"squaredDistance",(function(){return _})),n.d(t,"squaredLength",(function(){return x})),n.d(t,"negate",(function(){return E})),n.d(t,"inverse",(function(){return S})),n.d(t,"normalize",(function(){return C})),n.d(t,"dot",(function(){return j})),n.d(t,"cross",(function(){return k})),n.d(t,"lerp",(function(){return P})),n.d(t,"hermite",(function(){return T})),n.d(t,"bezier",(function(){return M})),n.d(t,"random",(function(){return A})),n.d(t,"transformMat4",(function(){return L})),n.d(t,"transformMat3",(function(){return R})),n.d(t,"transformQuat",(function(){return N})),n.d(t,"rotateX",(function(){return I})),n.d(t,"rotateY",(function(){return D})),n.d(t,"rotateZ",(function(){return F})),n.d(t,"angle",(function(){return z})),n.d(t,"zero",(function(){return B})),n.d(t,"str",(function(){return U})),n.d(t,"exactEquals",(function(){return V})),n.d(t,"equals",(function(){return H})),n.d(t,"sub",(function(){return W})),n.d(t,"mul",(function(){return Y})),n.d(t,"div",(function(){return K})),n.d(t,"dist",(function(){return X})),n.d(t,"sqrDist",(function(){return q})),n.d(t,"len",(function(){return Z})),n.d(t,"sqrLen",(function(){return J})),n.d(t,"forEach",(function(){return Q}));n("6JDI"),n("nndn"),n("ct5l");var r=n("lmpI");function o(){var e=new r.a(3);return r.a!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function i(e){var t=new r.a(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(e){var t=e[0],n=e[1],r=e[2];return Math.hypot(t,n,r)}function c(e,t,n){var o=new r.a(3);return o[0]=e,o[1]=t,o[2]=n,o}function u(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function s(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function f(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function p(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function d(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function h(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e}function v(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e}function y(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function m(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function g(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e}function b(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function O(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function w(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return Math.hypot(n,r,o)}function _(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return n*n+r*r+o*o}function x(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function E(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function S(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function C(e,t){var n=t[0],r=t[1],o=t[2],i=n*n+r*r+o*o;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function j(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function k(e,t,n){var r=t[0],o=t[1],i=t[2],a=n[0],c=n[1],u=n[2];return e[0]=o*u-i*c,e[1]=i*a-r*u,e[2]=r*c-o*a,e}function P(e,t,n,r){var o=t[0],i=t[1],a=t[2];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e[2]=a+r*(n[2]-a),e}function T(e,t,n,r,o,i){var a=i*i,c=a*(2*i-3)+1,u=a*(i-2)+i,s=a*(i-1),l=a*(3-2*i);return e[0]=t[0]*c+n[0]*u+r[0]*s+o[0]*l,e[1]=t[1]*c+n[1]*u+r[1]*s+o[1]*l,e[2]=t[2]*c+n[2]*u+r[2]*s+o[2]*l,e}function M(e,t,n,r,o,i){var a=1-i,c=a*a,u=i*i,s=c*a,l=3*i*c,f=3*u*a,p=u*i;return e[0]=t[0]*s+n[0]*l+r[0]*f+o[0]*p,e[1]=t[1]*s+n[1]*l+r[1]*f+o[1]*p,e[2]=t[2]*s+n[2]*l+r[2]*f+o[2]*p,e}function A(e,t){t=t||1;var n=2*r.c()*Math.PI,o=2*r.c()-1,i=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(n)*i,e[1]=Math.sin(n)*i,e[2]=o*t,e}function L(e,t,n){var r=t[0],o=t[1],i=t[2],a=n[3]*r+n[7]*o+n[11]*i+n[15];return a=a||1,e[0]=(n[0]*r+n[4]*o+n[8]*i+n[12])/a,e[1]=(n[1]*r+n[5]*o+n[9]*i+n[13])/a,e[2]=(n[2]*r+n[6]*o+n[10]*i+n[14])/a,e}function R(e,t,n){var r=t[0],o=t[1],i=t[2];return e[0]=r*n[0]+o*n[3]+i*n[6],e[1]=r*n[1]+o*n[4]+i*n[7],e[2]=r*n[2]+o*n[5]+i*n[8],e}function N(e,t,n){var r=n[0],o=n[1],i=n[2],a=n[3],c=t[0],u=t[1],s=t[2],l=o*s-i*u,f=i*c-r*s,p=r*u-o*c,d=o*p-i*f,h=i*l-r*p,v=r*f-o*l,y=2*a;return l*=y,f*=y,p*=y,d*=2,h*=2,v*=2,e[0]=c+l+d,e[1]=u+f+h,e[2]=s+p+v,e}function I(e,t,n,r){var o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e}function D(e,t,n,r){var o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e}function F(e,t,n,r){var o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e}function z(e,t){var n=e[0],r=e[1],o=e[2],i=t[0],a=t[1],c=t[2],u=Math.sqrt(n*n+r*r+o*o)*Math.sqrt(i*i+a*a+c*c),s=u&&j(e,t)/u;return Math.acos(Math.min(Math.max(s,-1),1))}function B(e){return e[0]=0,e[1]=0,e[2]=0,e}function U(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"}function V(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function H(e,t){var n=e[0],o=e[1],i=e[2],a=t[0],c=t[1],u=t[2];return Math.abs(n-a)<=r.b*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(o-c)<=r.b*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(i-u)<=r.b*Math.max(1,Math.abs(i),Math.abs(u))}var G,W=f,Y=p,K=d,X=w,q=_,Z=a,J=x,Q=(G=o(),function(e,t,n,r,o,i){var a,c;for(t||(t=3),n||(n=0),c=r?Math.min(r*t+n,e.length):e.length,a=n;a<c;a+=t)G[0]=e[a],G[1]=e[a+1],G[2]=e[a+2],o(G,G,i),e[a]=G[0],e[a+1]=G[1],e[a+2]=G[2];return e})},"7aed":function(e,t,n){var r=n("SVW/"),o=n("FBwQ"),i=n("dw5g"),a=n("8Suv");e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},"7fAn":function(e,t,n){"use strict";var r=n("cxan"),o=n("zygG"),i=n("ERkP"),a=n.n(i),c=n("L+KZ"),u=n("Czhu"),s=n("O94r"),l=n.n(s),f=n("tmJt");var p=0;function d(e){var t=i.useState("ssr-id"),n=Object(o.a)(t,2),r=n[0],a=n[1],c=Object(u.a)({},i).useId,s=null==c?void 0:c();return i.useEffect((function(){if(!c){var e=p;p+=1,a("rc_unique_".concat(e))}}),[]),e||(s||r)}var h=n("ioev"),v=n("8EaV"),y=n("B5SY");function m(e){var t=e.prefixCls,n=e.style,o=e.visible,a=e.maskProps,c=e.motionName;return i.createElement(y.b,{key:"mask",visible:o,motionName:c,leavedClassName:"".concat(t,"-mask-hidden")},(function(e){var o=e.className,c=e.style;return i.createElement("div",Object(r.a)({style:Object(u.a)(Object(u.a)({},c),n),className:l()("".concat(t,"-mask"),o)},a))}))}function g(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function b(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var O=i.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),w={width:0,height:0,overflow:"hidden",outline:"none"};var _=a.a.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,c=e.style,s=e.title,f=e.ariaId,p=e.footer,d=e.closable,h=e.closeIcon,v=e.onClose,y=e.children,m=e.bodyStyle,g=e.bodyProps,b=e.modalRender,_=e.onMouseDown,x=e.onMouseUp,E=e.holderRef,S=e.visible,C=e.forceRender,j=e.width,k=e.height,P=Object(i.useRef)(),T=Object(i.useRef)();a.a.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=P.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===T.current?P.current.focus():e||t!==P.current||T.current.focus()}}}));var M,A,L,R={};void 0!==j&&(R.width=j),void 0!==k&&(R.height=k),p&&(M=a.a.createElement("div",{className:"".concat(n,"-footer")},p)),s&&(A=a.a.createElement("div",{className:"".concat(n,"-header")},a.a.createElement("div",{className:"".concat(n,"-title"),id:f},s))),d&&(L=a.a.createElement("button",{type:"button",onClick:v,"aria-label":"Close",className:"".concat(n,"-close")},h||a.a.createElement("span",{className:"".concat(n,"-close-x")})));var N=a.a.createElement("div",{className:"".concat(n,"-content")},L,A,a.a.createElement("div",Object(r.a)({className:"".concat(n,"-body"),style:m},g),y),M);return a.a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?f:null,"aria-modal":"true",ref:E,style:Object(u.a)(Object(u.a)({},c),R),className:l()(n,o),onMouseDown:_,onMouseUp:x},a.a.createElement("div",{tabIndex:0,ref:P,style:w,"aria-hidden":"true"}),a.a.createElement(O,{shouldUpdate:S||C},b?b(N):N),a.a.createElement("div",{tabIndex:0,ref:T,style:w,"aria-hidden":"true"}))})),x=i.forwardRef((function(e,t){var n=e.prefixCls,a=e.title,c=e.style,s=e.className,f=e.visible,p=e.forceRender,d=e.destroyOnClose,h=e.motionName,v=e.ariaId,m=e.onVisibleChanged,g=e.mousePosition,O=Object(i.useRef)(),w=i.useState(),x=Object(o.a)(w,2),E=x[0],S=x[1],C={};function j(){var e,t,n,r,o,i=(e=O.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=b(o),n.top+=b(o,!0),n);S(g?"".concat(g.x-i.left,"px ").concat(g.y-i.top,"px"):"")}return E&&(C.transformOrigin=E),i.createElement(y.b,{visible:f,onVisibleChanged:m,onAppearPrepare:j,onEnterPrepare:j,forceRender:p,motionName:h,removeOnLeave:d,ref:O},(function(o,f){var p=o.className,d=o.style;return i.createElement(_,Object(r.a)({},e,{ref:t,title:a,ariaId:v,prefixCls:n,holderRef:f,style:Object(u.a)(Object(u.a)(Object(u.a)({},d),c),C),className:l()(s,p)}))}))}));x.displayName="Content";var E=x;function S(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,a=e.zIndex,c=e.visible,s=void 0!==c&&c,p=e.keyboard,y=void 0===p||p,b=e.focusTriggerAfterClose,O=void 0===b||b,w=e.scrollLocker,_=e.wrapStyle,x=e.wrapClassName,S=e.wrapProps,C=e.onClose,j=e.afterClose,k=e.transitionName,P=e.animation,T=e.closable,M=void 0===T||T,A=e.mask,L=void 0===A||A,R=e.maskTransitionName,N=e.maskAnimation,I=e.maskClosable,D=void 0===I||I,F=e.maskStyle,z=e.maskProps,B=e.rootClassName,U=Object(i.useRef)(),V=Object(i.useRef)(),H=Object(i.useRef)(),G=i.useState(s),W=Object(o.a)(G,2),Y=W[0],K=W[1],X=d();function q(e){null==C||C(e)}var Z=Object(i.useRef)(!1),J=Object(i.useRef)(),Q=null;return D&&(Q=function(e){Z.current?Z.current=!1:V.current===e.target&&q(e)}),Object(i.useEffect)((function(){return s&&K(!0),function(){}}),[s]),Object(i.useEffect)((function(){return function(){clearTimeout(J.current)}}),[]),Object(i.useEffect)((function(){return Y?(null==w||w.lock(),null==w?void 0:w.unLock):function(){}}),[Y,w]),i.createElement("div",Object(r.a)({className:l()("".concat(n,"-root"),B)},Object(v.a)(e,{data:!0})),i.createElement(m,{prefixCls:n,visible:L&&s,motionName:g(n,R,N),style:Object(u.a)({zIndex:a},F),maskProps:z}),i.createElement("div",Object(r.a)({tabIndex:-1,onKeyDown:function(e){if(y&&e.keyCode===f.a.ESC)return e.stopPropagation(),void q(e);s&&e.keyCode===f.a.TAB&&H.current.changeActive(!e.shiftKey)},className:l()("".concat(n,"-wrap"),x),ref:V,onClick:Q,style:Object(u.a)(Object(u.a)({zIndex:a},_),{},{display:Y?null:"none"})},S),i.createElement(E,Object(r.a)({},e,{onMouseDown:function(){clearTimeout(J.current),Z.current=!0},onMouseUp:function(){J.current=setTimeout((function(){Z.current=!1}))},ref:H,closable:M,ariaId:X,prefixCls:n,visible:s,onClose:q,onVisibleChanged:function(e){if(e){var t;if(!Object(h.a)(V.current,document.activeElement))U.current=document.activeElement,null===(t=H.current)||void 0===t||t.focus()}else{if(K(!1),L&&U.current&&O){try{U.current.focus({preventScroll:!0})}catch(n){}U.current=null}Y&&(null==j||j())}},motionName:g(n,k,P)}))))}var C=function(e){var t=e.visible,n=e.getContainer,a=e.forceRender,u=e.destroyOnClose,s=void 0!==u&&u,l=e.afterClose,f=i.useState(t),p=Object(o.a)(f,2),d=p[0],h=p[1];return i.useEffect((function(){t&&h(!0)}),[t]),!1===n?i.createElement(S,Object(r.a)({},e,{getOpenCount:function(){return 2}})):a||!s||d?i.createElement(c.a,{visible:t,forceRender:a,getContainer:n},(function(t){return i.createElement(S,Object(r.a)({},e,{destroyOnClose:s,afterClose:function(){null==l||l(),h(!1)}},t))})):null};C.displayName="Dialog";var j=C;t.a=j},"7kqo":function(e,t,n){"use strict";n.r(t),n.d(t,"startsWith",(function(){return i})),n.d(t,"pick",(function(){return a})),n.d(t,"match",(function(){return c})),n.d(t,"resolve",(function(){return u})),n.d(t,"insertParams",(function(){return s})),n.d(t,"validateRedirect",(function(){return l})),n.d(t,"shallowCompare",(function(){return b}));var r=n("I9iR"),o=n.n(r),i=function(e,t){return e.substr(0,t.length)===t},a=function(e,t){for(var n=void 0,r=void 0,i=t.split("?")[0],a=y(i),c=""===a[0],u=v(e),s=0,l=u.length;s<l;s++){var p=!1,h=u[s].route;if(h.default)r={route:h,params:{},uri:t};else{for(var m=y(h.path),b={},O=Math.max(a.length,m.length),w=0;w<O;w++){var _=m[w],x=a[w];if(d(_)){b[_.slice(1)||"*"]=a.slice(w).map(decodeURIComponent).join("/");break}if(void 0===x){p=!0;break}var E=f.exec(_);if(E&&!c){-1===g.indexOf(E[1])||o()(!1);var S=decodeURIComponent(x);b[E[1]]=S}else if(_!==x){p=!0;break}}if(!p){n={route:h,params:b,uri:"/"+a.slice(0,w).join("/")};break}}}return n||r||null},c=function(e,t){return a([{path:e}],t)},u=function(e,t){if(i(e,"/"))return e;var n=e.split("?"),r=n[0],o=n[1],a=t.split("?")[0],c=y(r),u=y(a);if(""===c[0])return m(a,o);if(!i(c[0],".")){var s=u.concat(c).join("/");return m(("/"===a?"":"/")+s,o)}for(var l=u.concat(c),f=[],p=0,d=l.length;p<d;p++){var h=l[p];".."===h?f.pop():"."!==h&&f.push(h)}return m("/"+f.join("/"),o)},s=function(e,t){var n=e.split("?"),r=n[0],o=n[1],i=void 0===o?"":o,a="/"+y(r).map((function(e){var n=f.exec(e);return n?t[n[1]]:e})).join("/"),c=t.location,u=(c=void 0===c?{}:c).search,s=(void 0===u?"":u).split("?")[1]||"";return a=m(a,i,s)},l=function(e,t){var n=function(e){return p(e)};return y(e).filter(n).sort().join("/")===y(t).filter(n).sort().join("/")},f=/^:(.+)/,p=function(e){return f.test(e)},d=function(e){return e&&"*"===e[0]},h=function(e,t){return{route:e,score:e.default?0:y(e.path).reduce((function(e,t){return e+=4,!function(e){return""===e}(t)?p(t)?e+=2:d(t)?e-=5:e+=3:e+=1,e}),0),index:t}},v=function(e){return e.map(h).sort((function(e,t){return e.score<t.score?1:e.score>t.score?-1:e.index-t.index}))},y=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},m=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e+((n=n.filter((function(e){return e&&e.length>0})))&&n.length>0?"?"+n.join("&"):"")},g=["uri","path"],b=function(e,t){var n=Object.keys(e);return n.length===Object.keys(t).length&&n.every((function(n){return t.hasOwnProperty(n)&&e[n]===t[n]}))}},"7teX":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncContainerModule=t.ContainerModule=void 0;var r=n("+OwM"),o=function(e){this.id=r.id(),this.registry=e};t.ContainerModule=o;var i=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=i},"7zCF":function(e,t,n){var r=n("POgt"),o=n("q9+l"),i=n("LOVC"),a=n("RJmV");e.exports=function(e,t,n,c){c||(c={});var u=c.enumerable,s=void 0!==c.name?c.name:t;if(r(n)&&i(n,s,c),c.global)u?e[t]=n:a(t,n);else{try{c.unsafe?e[t]&&(u=!0):delete e[t]}catch(l){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return e}},"8+RD":function(e,t,n){var r=n("POgt"),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},"8/ho":function(e,t,n){var r=n("ZORK");e.exports=/MSIE|Trident/.test(r)},"85Yc":function(e,t,n){"use strict";n.d(t,"a",(function(){return ee})),n.d(t,"d",(function(){return ne})),n.d(t,"g",(function(){return se})),n.d(t,"c",(function(){return fe})),n.d(t,"b",(function(){return g})),n.d(t,"e",(function(){return te})),n.d(t,"h",(function(){return ye}));var r=n("ERkP"),o=n("cxan"),i=n("HbGN"),a=n("zjfJ"),c=n("Czhu"),u=n("fGyu"),s=n("9fIP"),l=n("MMYH"),f=n("pWxA"),p=n("8K1b"),d=n("AqVP"),h=n("6Qj0"),v=n("5qS4"),y="RC_FORM_INTERNAL_HOOKS",m=function(){Object(v.a)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},g=r.createContext({getFieldValue:m,getFieldsValue:m,getFieldError:m,getFieldWarning:m,getFieldsError:m,isFieldsTouched:m,isFieldTouched:m,isFieldValidating:m,isFieldsValidating:m,resetFields:m,setFields:m,setFieldValue:m,setFieldsValue:m,validateFields:m,submit:m,getInternalHooks:function(){return m(),{dispatch:m,initEntityValue:m,registerField:m,useSubscribe:m,setInitialValues:m,destroyForm:m,setCallbacks:m,registerWatch:m,getFields:m,setValidateMessages:m,setPreserve:m,getInitialValue:m}}});function b(e){return null==e?[]:Array.isArray(e)?e:[e]}n("tQbP");var O=n("p05D"),w=n("QsI/"),_=n("KpVd"),x="'${name}' is not a valid ${type}",E={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:x,method:x,array:x,object:x,number:x,date:x,boolean:x,integer:x,float:x,regexp:x,email:x,url:x,hex:x},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},S=n("4wDe");function C(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}var j=n("0Jwk");function k(e,t,n,r){if(!t.length)return n;var o,i=Object(j.a)(t),a=i[0],s=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?Object(u.a)(e):Object(c.a)({},e):[],r&&void 0===n&&1===s.length?delete o[a][s[0]]:o[a]=k(o[a],s,n,r),o}function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!C(e,t.slice(0,-1))?e:k(e,t,n,r)}function T(e){return Array.isArray(e)?function(e){return e.map((function(e){return T(e)}))}(e):"object"===Object(S.a)(e)&&null!==e?function(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var n in e)t[n]=T(e[n]);return t}return e}(e):e}var M=T;function A(e){return b(e)}function L(e,t){return C(e,t)}function R(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=P(e,t,n,r);return o}function N(e,t){var n={};return t.forEach((function(t){var r=L(e,t);n=R(n,t,r)})),n}function I(e,t){return e&&e.some((function(e){return B(e,t)}))}function D(e){return"object"===Object(S.a)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function F(e,t){var n=Array.isArray(e)?Object(u.a)(e):Object(c.a)({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],o=t[e],i=D(r)&&D(o);n[e]=i?F(r,o||{}):M(o)})),n):n}function z(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return F(e,t)}),e)}function B(e,t){return!(!e||!t||e.length!==t.length)&&e.every((function(e,n){return t[n]===e}))}function U(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Object(S.a)(t.target)&&e in t.target?t.target[e]:t}function V(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Object(u.a)(e.slice(0,n)),[o],Object(u.a)(e.slice(n,t)),Object(u.a)(e.slice(t+1,r))):i<0?[].concat(Object(u.a)(e.slice(0,t)),Object(u.a)(e.slice(t+1,n+1)),[o],Object(u.a)(e.slice(n+1,r))):e}var H=_.a;function G(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}function W(e,t,n,r,o){return Y.apply(this,arguments)}function Y(){return(Y=Object(w.a)(Object(O.a)().mark((function e(t,n,o,i,s){var l,f,p,d,h,v,y,m,g;return Object(O.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=Object(c.a)({},o)).ruleIndex,l.validator&&(f=l.validator,l.validator=function(){try{return f.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject("CODE_LOGIC_ERROR")}}),p=null,l&&"array"===l.type&&l.defaultField&&(p=l.defaultField,delete l.defaultField),d=new H(Object(a.a)({},t,[l])),h=z({},E,i.validateMessages),d.messages(h),v=[],e.prev=9,e.next=12,Promise.resolve(d.validate(Object(a.a)({},t,n),Object(c.a)({},i)));case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(9),e.t0.errors&&(v=e.t0.errors.map((function(e,t){var n=e.message,o="CODE_LOGIC_ERROR"===n?h.default:n;return r.isValidElement(o)?r.cloneElement(o,{key:"error_".concat(t)}):o})));case 17:if(v.length||!p){e.next=22;break}return e.next=20,Promise.all(n.map((function(e,n){return W("".concat(t,".").concat(n),e,p,i,s)})));case 20:return y=e.sent,e.abrupt("return",y.reduce((function(e,t){return[].concat(Object(u.a)(e),Object(u.a)(t))}),[]));case 22:return m=Object(c.a)(Object(c.a)({},o),{},{name:t,enum:(o.enum||[]).join(", ")},s),g=v.map((function(e){return"string"==typeof e?G(e,m):e})),e.abrupt("return",g);case 25:case"end":return e.stop()}}),e,null,[[9,14]])})))).apply(this,arguments)}function K(e,t,n,r,o,i){var a,u=e.join("."),s=n.map((function(e,t){var n=e.validator,r=Object(c.a)(Object(c.a)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){Object(v.a)(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i.catch,Object(v.a)(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=Object(w.a)(Object(O.a)().mark((function e(n,o){var a,c,l;return Object(O.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<s.length)){e.next=12;break}return c=s[a],e.next=5,W(u,t,c,r,i);case 5:if(!(l=e.sent).length){e.next=9;break}return o([{errors:l,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var l=s.map((function(e){return W(u,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return q.apply(this,arguments)}(l):function(e){return X.apply(this,arguments)}(l)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function X(){return(X=Object(w.a)(Object(O.a)().mark((function e(t){return Object(O.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Object(u.a)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(){return(q=Object(w.a)(Object(O.a)().mark((function e(t){var n;return Object(O.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Z=["name"],J=[];function Q(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var $=function(e){Object(p.a)(n,e);var t=Object(d.a)(n);function n(e){var o;(Object(s.a)(this,n),(o=t.call(this,e)).state={resetCount:0},o.cancelRegisterFunc=null,o.mounted=!1,o.touched=!1,o.dirty=!1,o.validatePromise=null,o.prevValidating=void 0,o.errors=J,o.warnings=J,o.cancelRegister=function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,A(r)),o.cancelRegisterFunc=null},o.getNamePath=function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat(Object(u.a)(r),Object(u.a)(t)):[]},o.getRules=function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))},o.refresh=function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))},o.triggerMetaEvent=function(e){var t=o.props.onMetaChange;null==t||t(Object(c.a)(Object(c.a)({},o.getMeta()),{},{destroy:e}))},o.onStoreChange=function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,c=void 0===a?[]:a,u=r.onReset,s=n.store,l=o.getNamePath(),f=o.getValue(e),p=o.getValue(s),d=t&&I(t,l);switch("valueUpdate"===n.type&&"external"===n.source&&f!==p&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=J,o.warnings=J,o.triggerMetaEvent()),n.type){case"reset":if(!t||d)return o.touched=!1,o.dirty=!1,o.validatePromise=null,o.errors=J,o.warnings=J,o.triggerMetaEvent(),null==u||u(),void o.refresh();break;case"remove":if(i)return void o.reRender();break;case"setField":if(d){var h=n.data;return"touched"in h&&(o.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(o.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(o.errors=h.errors||J),"warnings"in h&&(o.warnings=h.warnings||J),o.dirty=!0,o.triggerMetaEvent(),void o.reRender()}if(i&&!l.length&&Q(i,e,s,f,p,n))return void o.reRender();break;case"dependenciesUpdate":if(c.map(A).some((function(e){return I(n.relatedFields,e)})))return void o.reRender();break;default:if(d||(!c.length||l.length||i)&&Q(i,e,s,f,p,n))return void o.reRender()}!0===i&&o.reRender()},o.validateRules=function(e){var t=o.getNamePath(),n=o.getValue(),r=Promise.resolve().then((function(){if(!o.mounted)return[];var i=o.props,a=i.validateFirst,c=void 0!==a&&a,s=i.messageVariables,l=(e||{}).triggerName,f=o.getRules();l&&(f=f.filter((function(e){var t=e.validateTrigger;return!t||b(t).includes(l)})));var p=K(t,n,f,e,c,s);return p.catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J;if(o.validatePromise===r){var t;o.validatePromise=null;var n=[],i=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,o=void 0===r?J:r;t?i.push.apply(i,Object(u.a)(o)):n.push.apply(n,Object(u.a)(o))})),o.errors=n,o.warnings=i,o.triggerMetaEvent(),o.reRender()}})),p}));return o.validatePromise=r,o.dirty=!0,o.errors=J,o.warnings=J,o.triggerMetaEvent(),o.reRender(),r},o.isFieldValidating=function(){return!!o.validatePromise},o.isFieldTouched=function(){return o.touched},o.isFieldDirty=function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(y).getInitialValue)(o.getNamePath())},o.getErrors=function(){return o.errors},o.getWarnings=function(){return o.warnings},o.isListField=function(){return o.props.isListField},o.isList=function(){return o.props.isList},o.isPreserve=function(){return o.props.preserve},o.getMeta=function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath()}},o.getOnlyChild=function(e){if("function"==typeof e){var t=o.getMeta();return Object(c.a)(Object(c.a)({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=Object(h.a)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},o.getValue=function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return L(e||t(!0),n)},o.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.trigger,r=t.validateTrigger,i=t.getValueFromEvent,u=t.normalize,s=t.valuePropName,l=t.getValueProps,f=t.fieldContext,p=void 0!==r?r:f.validateTrigger,d=o.getNamePath(),h=f.getInternalHooks,v=f.getFieldsValue,m=h(y),g=m.dispatch,O=o.getValue(),w=l||function(e){return Object(a.a)({},s,e)},_=e[n],x=Object(c.a)(Object(c.a)({},e),w(O));x[n]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=i?i.apply(void 0,n):U.apply(void 0,[s].concat(n)),u&&(e=u(e,O,v(!0))),g({type:"updateValue",namePath:d,value:e}),_&&_.apply(void 0,n)};var E=b(p||[]);return E.forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&g({type:"validateField",namePath:d,triggerName:e})}})),x},e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(y).initEntityValue)(Object(f.a)(o));return o}return Object(l.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(y).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),i=o.child;return o.isFunction?e=i:r.isValidElement(i)?e=r.cloneElement(i,this.getControlled(i.props)):(Object(v.a)(!i,"`children` of Field is not validate ReactElement."),e=i),r.createElement(r.Fragment,{key:t},e)}}]),n}(r.Component);$.contextType=g,$.defaultProps={trigger:"onChange",valuePropName:"value"};var ee=function(e){var t=e.name,n=Object(i.a)(e,Z),a=r.useContext(g),c=void 0!==t?A(t):void 0,u="keep";return n.isListField||(u="_".concat((c||[]).join("_"))),r.createElement($,Object(o.a)({key:u,name:c},n,{fieldContext:a}))},te=r.createContext(null),ne=function(e){var t=e.name,n=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,s=r.useContext(g),l=r.useRef({keys:[],id:0}).current,f=r.useMemo((function(){var e=A(s.prefixName)||[];return[].concat(Object(u.a)(e),Object(u.a)(A(t)))}),[s.prefixName,t]),p=r.useMemo((function(){return Object(c.a)(Object(c.a)({},s),{},{prefixName:f})}),[s,f]),d=r.useMemo((function(){return{getKey:function(e){var t=f.length,n=e[t];return[l.keys[n],e.slice(t+1)]}}}),[f]);if("function"!=typeof o)return Object(v.a)(!1,"Form.List only accepts function as children."),null;return r.createElement(te.Provider,{value:d},r.createElement(g.Provider,{value:p},r.createElement(ee,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=s.getFieldValue,c=function(){return a(f||[])||[]},p={add:function(e,t){var n=c();t>=0&&t<=n.length?(l.keys=[].concat(Object(u.a)(l.keys.slice(0,t)),[l.id],Object(u.a)(l.keys.slice(t))),i([].concat(Object(u.a)(n.slice(0,t)),[e],Object(u.a)(n.slice(t))))):(l.keys=[].concat(Object(u.a)(l.keys),[l.id]),i([].concat(Object(u.a)(n),[e]))),l.id+=1},remove:function(e){var t=c(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(l.keys=l.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=c();e<0||e>=n.length||t<0||t>=n.length||(l.keys=V(l.keys,e,t),i(V(n,e,t)))}}},d=r||[];return Array.isArray(d)||(d=[]),o(d.map((function(e,t){var n=l.keys[t];return void 0===n&&(l.keys[t]=l.id,n=l.keys[t],l.id+=1),{name:t,key:n,isListField:!0}})),p,t)}))))},re=n("zygG");var oe="__@field_split__";function ie(e){return e.map((function(e){return"".concat(Object(S.a)(e),":").concat(e)})).join(oe)}var ae=function(){function e(){Object(s.a)(this,e),this.kvs=new Map}return Object(l.a)(e,[{key:"set",value:function(e,t){this.kvs.set(ie(e),t)}},{key:"get",value:function(e){return this.kvs.get(ie(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(ie(e))}},{key:"map",value:function(e){return Object(u.a)(this.kvs.entries()).map((function(t){var n=Object(re.a)(t,2),r=n[0],o=n[1],i=r.split(oe);return e({key:i.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=Object(re.a)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),ce=["name","errors"],ue=Object(l.a)((function e(t){var n=this;Object(s.a)(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===y?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Object(v.a)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){if(n.initialValues=e||{},t){var r,o=z({},e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=R(o,n,L(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}},this.destroyForm=function(){var e=new ae;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=L(n.initialValues,e);return e.length?M(t):t},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.watchList=[],this.registerWatch=function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}},this.notifyWatch=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue();n.watchList.forEach((function(n){n(t,e)}))}},this.timeoutId=null,this.warningUnhooked=function(){0},this.updateStore=function(e){n.store=e},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new ae;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=A(e);return t.get(n)||{INVALIDATE_NAME_PATH:A(e)}}))},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[];return r.forEach((function(n){var r,i="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(e||!(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))if(t){var a="getMeta"in n?n.getMeta():null;t(a)&&o.push(i)}else o.push(i)})),N(n.store,o.map(A))},this.getFieldValue=function(e){n.warningUnhooked();var t=A(e);return L(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:A(e[n]),errors:[],warnings:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=A(e);return n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){n.warningUnhooked();var t=A(e);return n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],c=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(A),c=!1):(o=null,c=i):(o=i.map(A),c=a);var s=n.getFieldEntities(!0),l=function(e){return e.isFieldTouched()};if(!o)return c?s.every(l):s.some(l);var f=new ae;o.forEach((function(e){f.set(e,[])})),s.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&f.update(n,(function(t){return[].concat(Object(u.a)(t),[e])}))}))}));var p=function(e){return e.some(l)},d=f.map((function(e){return e.value}));return c?d.every(p):d.some(p)},this.isFieldTouched=function(e){return n.warningUnhooked(),n.isFieldsTouched([e])},this.isFieldsValidating=function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(A);return t.some((function(e){var t=e.getNamePath();return I(r,t)&&e.isFieldValidating()}))},this.isFieldValidating=function(e){return n.warningUnhooked(),n.isFieldsValidating([e])},this.resetWithFieldInitialValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new ae,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o,i=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))Object(v.a)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)Object(v.a)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.skipExist&&void 0!==a||n.updateStore(R(n.store,o,Object(u.a)(i)[0].value))}}}}))};e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Object(u.a)(Object(u.a)(r).map((function(e){return e.entity}))))}))):o=r,i(o)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(z({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(A);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(R(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,a=(e.errors,Object(i.a)(e,ce)),c=A(o);r.push(c),"value"in a&&n.updateStore(R(n.store,c,a.value)),n.notifyObservers(t,[c],{type:"setField",data:e})})),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),o=Object(c.a)(Object(c.a)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===L(n.store,r)&&n.updateStore(R(n.store,r,t))}},this.isMergedPreserve=function(e){var t=void 0!==e?e:n.preserve;return null==t||t},this.registerField=function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!B(e.getNamePath(),t)}))){var c=n.store;n.updateStore(R(c,t,a,!0)),n.notifyObservers(c,[t],{type:"remove"}),n.triggerDependenciesUpdate(c,t)}}n.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=Object(c.a)(Object(c.a)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Object(u.a)(r))}),r},this.updateValue=function(e,t){var r=A(e),o=n.store;n.updateStore(R(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(N(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Object(u.a)(i)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;if(e){var r=z(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(e,t){n.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new ae;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=A(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new ae;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}r(o.filter((function(t){var n=t.name;return I(e,n)})),o)}},this.validateFields=function(e,t){n.warningUnhooked();var r=!!e,o=r?e.map(A):[],i=[];n.getFieldEntities(!0).forEach((function(a){if(r||o.push(a.getNamePath()),(null==t?void 0:t.recursive)&&r){var s=a.getNamePath();s.every((function(t,n){return e[n]===t||void 0===e[n]}))&&o.push(s)}if(a.props.rules&&a.props.rules.length){var l=a.getNamePath();if(!r||I(o,l)){var f=a.validateRules(Object(c.a)({validateMessages:Object(c.a)(Object(c.a)({},E),n.validateMessages)},t));i.push(f.then((function(){return{name:l,errors:[],warnings:[]}})).catch((function(e){var t,n=[],r=[];return null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors;t?r.push.apply(r,Object(u.a)(o)):n.push.apply(n,Object(u.a)(o))})),n.length?Promise.reject({name:l,errors:n,warnings:r}):{name:l,errors:n,warnings:r}})))}}}));var a=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(i);n.lastValidatePromise=a,a.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var s=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(o)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(o),errorFields:t,outOfDate:n.lastValidatePromise!==a})}));return s.catch((function(e){return e})),s},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t}));var se=function(e){var t=r.useRef(),n=r.useState({}),o=Object(re.a)(n,2)[1];if(!t.current)if(e)t.current=e;else{var i=new ue((function(){o({})}));t.current=i.getForm()}return[t.current]},le=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),fe=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,i=e.children,u=r.useContext(le),s=r.useRef({});return r.createElement(le.Provider,{value:Object(c.a)(Object(c.a)({},u),{},{validateMessages:Object(c.a)(Object(c.a)({},u.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:s.current}),u.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:s.current}),u.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=Object(c.a)(Object(c.a)({},s.current),{},Object(a.a)({},e,t))),u.registerForm(e,t)},unregisterForm:function(e){var t=Object(c.a)({},s.current);delete t[e],s.current=t,u.unregisterForm(e)}})},i)},pe=le,de=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],he=function(e,t){var n=e.name,a=e.initialValues,s=e.fields,l=e.form,f=e.preserve,p=e.children,d=e.component,h=void 0===d?"form":d,v=e.validateMessages,m=e.validateTrigger,b=void 0===m?"onChange":m,O=e.onValuesChange,w=e.onFieldsChange,_=e.onFinish,x=e.onFinishFailed,E=Object(i.a)(e,de),C=r.useContext(pe),j=se(l),k=Object(re.a)(j,1)[0],P=k.getInternalHooks(y),T=P.useSubscribe,M=P.setInitialValues,A=P.setCallbacks,L=P.setValidateMessages,R=P.setPreserve,N=P.destroyForm;r.useImperativeHandle(t,(function(){return k})),r.useEffect((function(){return C.registerForm(n,k),function(){C.unregisterForm(n)}}),[C,k,n]),L(Object(c.a)(Object(c.a)({},C.validateMessages),v)),A({onValuesChange:O,onFieldsChange:function(e){if(C.triggerFormChange(n,e),w){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];w.apply(void 0,[e].concat(r))}},onFinish:function(e){C.triggerFormFinish(n,e),_&&_(e)},onFinishFailed:x}),R(f);var I,D=r.useRef(null);M(a,!D.current),D.current||(D.current=!0),r.useEffect((function(){return N}),[]);var F="function"==typeof p;F?I=p(k.getFieldsValue(!0),k):I=p;T(!F);var z=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Object(S.a)(e)||"object"!==Object(S.a)(t))return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Object(u.a)(o).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(z.current||[],s||[])||k.setFields(s||[]),z.current=s}),[s,k]);var B=r.useMemo((function(){return Object(c.a)(Object(c.a)({},k),{},{validateTrigger:b})}),[k,b]),U=r.createElement(g.Provider,{value:B},I);return!1===h?U:r.createElement(h,Object(o.a)({},E,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),k.submit()},onReset:function(e){var t;e.preventDefault(),k.resetFields(),null===(t=E.onReset)||void 0===t||t.call(E,e)}}),U)};function ve(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=Object(r.useState)(),o=Object(re.a)(n,2),i=o[0],a=o[1],c=Object(r.useMemo)((function(){return ve(i)}),[i]),u=Object(r.useRef)(c);u.current=c;var s=Object(r.useContext)(g),l=t||s,f=l&&l._init,p=A(e),d=Object(r.useRef)(p);return d.current=p,Object(r.useEffect)((function(){if(f){var e=l.getFieldsValue,t=(0,(0,l.getInternalHooks)(y).registerWatch)((function(e){var t=L(e,d.current),n=ve(t);u.current!==n&&(u.current=n,a(t))})),n=L(e(),d.current);return a(n),t}}),[]),i},me=r.forwardRef(he);me.FormProvider=fe,me.Field=ee,me.List=ne,me.useForm=se,me.useWatch=ye;t.f=me},"8DIc":function(e,t,n){"use strict";var r=n("WJeu"),o=r.Just,i=r.Nothing;e.exports=function(e){return e.matchWith({Error:function(e){e.value;return i()},Ok:function(e){var t=e.value;return o(t)}})}},"8EaV":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Czhu"),o="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function i(e,t){return 0===e.indexOf(t)}function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Object(r.a)({},n);var a={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||i(n,"aria-"))||t.data&&i(n,"data-")||t.attr&&o.includes(n))&&(a[n]=e[n])})),a}},"8HVG":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("fGyu"),o=n("cxan"),i=n("zygG"),a=n("ERkP"),c=n("EE3K");function u(e){var t=a.useRef({}),n=a.useState([]),u=Object(i.a)(n,2),s=u[0],l=u[1];return[function(n){var i=!0;e.add(n,(function(e,n){var u=n.key;if(e&&(!t.current[u]||i)){var s=a.createElement(c.a,Object(o.a)({},n,{holder:e}));t.current[u]=s,l((function(e){var t=e.findIndex((function(e){return e.key===n.key}));if(-1===t)return[].concat(Object(r.a)(e),[s]);var o=Object(r.a)(e);return o[t]=s,o}))}i=!1}))},a.createElement(a.Fragment,null,s)]}},"8Jfv":function(e,t,n){"use strict";function r(e,t){for(var n in t){var r=t[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n,r)}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n("03hK"),a=n("1ims"),c=n("vj+E"),u=Symbol.for("@@folktale:adt:type"),s=Symbol.for("@@folktale:adt:tag"),l=Symbol.for("@@folktale:adt:default"),f=Symbol.for("@@meta:magical"),p=Object.keys;function d(e,t,n){return d=function(t,u){var p,d,h,v,y;function m(){}function g(){var e=new m;return a(e,u.apply(void 0,arguments)||{}),e}return m.prototype=Object.create(n),a(m.prototype,(o(d={},s,t),(h={}).constructor=h.constructor||{},h.constructor.get=function(){return m},h[p="is"+t]=h[p]||{},h[p].get=function(){return i(".is"+t+" is deprecated. Use "+t+".hasInstance(value)\ninstead to check if a value belongs to the ADT variant."),!0},o(d,"matchWith",(function(n){if(c(e+"'s "+t+"#matchWith",n),t in n)return n[t](this);if(l in n)return n[l]();throw new Error('Variant "'+(r=t)+"\" not covered in pattern.\nThis could mean you did not include all variants in your Union's matchWith function.\n\nFor example, if you had this Union:\n\nconst Operation = union({\n Add: (a, b) => ({ a, b }),\n Subtract: (a, b) => ({ a, b }),\n})\n\nBut wrote this matchWith:\n\nop.matchWith({\n Add: ({ a, b }) => a + b\n // Subtract not implemented!\n})\n\nIt would throw this error because we need to check against 'Subtract'. Check your matchWith function's argument, \nit's possibly missing the '"+r+"' method in the object you've passed.");var r})),r(d,h),d)),a(g,(o(v={},f,u[f]),(y={}).tag=y.tag||{},y.tag.get=function(){return t},y.type=y.type||{},y.type.get=function(){return e},y.constructor=y.constructor||{},y.constructor.get=function(){return m},o(v,"prototype",m.prototype),o(v,"hasInstance",(function(e){return Boolean(e)&&n.hasInstance(e)&&e[s]===t})),r(v,y),v)),g},p(u=t).reduce((function(e,t){return e[t]=d(t,u[t]),e}),{});var u,d}var h=function(e,t){var n,r,i=Object.create(v),c=d(e,t,i);return a(i,c,(o(n={},u,e),o(n,"variants",p(r=c).map((function(e){return r[e]}))),o(n,"hasInstance",(function(e){return Boolean(e)&&e[u]===this[u]})),n)),i},v={derive:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.variants.forEach((function(n){return t(n,e)}))})),this}};h.Union=v,h.typeSymbol=u,h.tagSymbol=s,h.any=l,e.exports=h},"8K1b":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("XcBm");function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(r.a)(e,t)}},"8LZx":function(e,t,n){"use strict";var r=n("IGGJ"),o=n("Wbzz"),i=r(n("xnAt"));t.onClientEntry=function(e,t){void 0===t&&(t={}),(0,i.default)(window,t,(function(e){(0,o.navigate)(e)}))}},"8M93":function(e,t,n){var r=n("PUWO"),o=n("3fuC");e.exports=function(e){var t=e.xdomain,n=e.xscheme,i=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(a){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(a){}if(!t)try{return new(o[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(a){}}},"8SJ9":function(e,t,n){var r=n("hNjE");e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var o=arguments[n-1];return r(o)||"function"!=typeof o[e]?t.apply(this,arguments):o[e].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}},"8Suv":function(e,t){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",o="\\d+",i="[\\u2700-\\u27bf]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]",c="[^\\ud800-\\udfff"+n+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="[A-Z\\xc0-\\xd6\\xd8-\\xde]",f="(?:"+a+"|"+c+")",p="(?:"+l+"|"+c+")",d="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",h="[\\ufe0e\\ufe0f]?"+d+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",u,s].join("|")+")[\\ufe0e\\ufe0f]?"+d+")*"),v="(?:"+[i,u,s].join("|")+")"+h,y=RegExp([l+"?"+a+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[r,l,"$"].join("|")+")",p+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[r,l+f,"$"].join("|")+")",l+"?"+f+"+(?:['’](?:d|ll|m|re|s|t|ve))?",l+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,v].join("|"),"g");e.exports=function(e){return e.match(y)||[]}},"8Zrg":function(e,t){e.exports=function(){this.__data__=[],this.size=0}},"8j0R":function(e,t,n){"use strict";n.d(t,"g",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return b}));var r=n("Czhu"),o=n("4wDe"),i=n("fuOX"),a=n("ERkP"),c=n.n(a),u=n("5qS4"),s=n("gnsf"),l=n("uWVk");function f(e,t){Object(u.a)(e,"[@ant-design/icons] ".concat(t))}function p(e){return"object"===Object(o.a)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Object(o.a)(e.icon)||"function"==typeof e.icon)}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t}),{})}function h(e,t,n){return n?c.a.createElement(e.tag,Object(r.a)(Object(r.a)({key:t},d(e.attrs)),n),(e.children||[]).map((function(n,r){return h(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):c.a.createElement(e.tag,Object(r.a)({key:t},d(e.attrs)),(e.children||[]).map((function(n,r){return h(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function v(e){return Object(i.a)(e)[0]}function y(e){return e?Array.isArray(e)?e:[e]:[]}var m={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},g="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=Object(a.useContext)(l.a),n=t.csp;Object(a.useEffect)((function(){Object(s.a)(e,"@ant-design-icons",{prepend:!0,csp:n})}),[])}},"8r/q":function(e,t,n){var r=n("9JhN"),o=n("dSaG"),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},"8sde":function(e,t,n){"use strict";var r=n("cxan"),o=n("ERkP"),i=n("6Qj0"),a=(n("5qS4"),n("Czhu")),c=n("uwWy"),u=n("uO0T"),s=n("LaGA"),l=new Map;var f=new s.default((function(e){e.forEach((function(e){var t,n=e.target;null===(t=l.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var p=n("9fIP"),d=n("MMYH"),h=n("8K1b"),v=n("AqVP"),y=function(e){Object(h.a)(n,e);var t=Object(v.a)(n);function n(){return Object(p.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component),m=o.createContext(null);function g(e){var t=e.children,n=e.disabled,r=o.useRef(null),i=o.useRef(null),s=o.useContext(m),p="function"==typeof t,d=p?t(r):t,h=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!p&&o.isValidElement(d)&&Object(c.c)(d),g=v?d.ref:null,b=o.useMemo((function(){return Object(c.a)(g,r)}),[g,r]),O=o.useRef(e);O.current=e;var w=o.useCallback((function(e){var t=O.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,c=o.height,u=e.offsetWidth,l=e.offsetHeight,f=Math.floor(i),p=Math.floor(c);if(h.current.width!==f||h.current.height!==p||h.current.offsetWidth!==u||h.current.offsetHeight!==l){var d={width:f,height:p,offsetWidth:u,offsetHeight:l};h.current=d;var v=u===Math.round(i)?i:u,y=l===Math.round(c)?c:l,m=Object(a.a)(Object(a.a)({},d),{},{offsetWidth:v,offsetHeight:y});null==s||s(m,e,r),n&&Promise.resolve().then((function(){n(m,e)}))}}),[]);return o.useEffect((function(){var e,t,o=Object(u.a)(r.current)||Object(u.a)(i.current);return o&&!n&&(e=o,t=w,l.has(e)||(l.set(e,new Set),f.observe(e)),l.get(e).add(t)),function(){return function(e,t){l.has(e)&&(l.get(e).delete(t),l.get(e).size||(f.unobserve(e),l.delete(e)))}(o,w)}}),[r.current,n]),o.createElement(y,{ref:i},v?o.cloneElement(d,{ref:b}):d)}function b(e){var t=e.children;return("function"==typeof t?[t]:Object(i.a)(t)).map((function(t,n){var i=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return o.createElement(g,Object(r.a)({},e,{key:i}),t)}))}b.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(m),c=o.useCallback((function(e,t,o){r.current+=1;var c=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){c===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(m.Provider,{value:c},t)};t.a=b},"8tx+":function(e,t,n){"use strict";var r=n("HbGN"),o=n("cxan"),i=n("Czhu"),a=n("9fIP"),c=n("MMYH"),u=n("8K1b"),s=n("AqVP"),l=n("ERkP"),f=n("oV9B"),p=n("O94r"),d=n.n(p),h=n("B5SY"),v=n("EE3K"),y=n("8HVG"),m=["getContainer"],g=0,b=Date.now();function O(){var e=g;return g+=1,"rcNotification_".concat(b,"_").concat(e)}var w=function(e){Object(u.a)(n,e);var t=Object(s.a)(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];return(e=t.call.apply(t,[this].concat(o))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var r=t.key||O(),o=Object(i.a)(Object(i.a)({},t),{},{key:r}),a=e.props.maxCount;e.setState((function(e){var t=e.notices,i=t.map((function(e){return e.notice.key})).indexOf(r),c=t.concat();return-1!==i?c.splice(i,1,{notice:o,holderCallback:n}):(a&&t.length>=a&&(o.key=c[0].notice.key,o.updateMark=O(),o.userPassKey=r,c.shift()),c.push({notice:o,holderCallback:n})),{notices:c}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,r=n.key;return(n.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return Object(c.a)(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,a=n.className,c=n.closeIcon,u=n.style,s=[];return t.forEach((function(n,o){var a=n.notice,u=n.holderCallback,l=o===t.length-1?a.updateMark:void 0,f=a.key,p=a.userPassKey,d=Object(i.a)(Object(i.a)(Object(i.a)({prefixCls:r,closeIcon:c},a),a.props),{},{key:f,noticeKey:p||f,updateMark:l,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});s.push(f),e.noticePropsMap[f]={props:d,holderCallback:u}})),l.createElement("div",{className:d()(r,a),style:u},l.createElement(h.a,{keys:s,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var r=n.key;t||delete e.noticePropsMap[r]}},(function(t){var n=t.key,a=t.className,c=t.style,u=t.visible,s=e.noticePropsMap[n],f=s.props,p=s.holderCallback;return p?l.createElement("div",{key:n,className:d()(a,"".concat(r,"-hook-holder")),style:Object(i.a)({},c),ref:function(t){void 0!==n&&(t?(e.hookRefs.set(n,t),p(t,f)):e.hookRefs.delete(n))}}):l.createElement(v.a,Object(o.a)({},f,{className:d()(a,null==f?void 0:f.className),style:Object(i.a)(Object(i.a)({},c),null==f?void 0:f.style),visible:u}))})))}}]),n}(l.Component);w.newInstance=void 0,w.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},w.newInstance=function(e,t){var n=e||{},i=n.getContainer,a=Object(r.a)(n,m),c=document.createElement("div");i?i().appendChild(c):document.body.appendChild(c);var u=!1;Object(f.a)(l.createElement(w,Object(o.a)({},a,{ref:function(e){u||(u=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){Object(f.b)(c),c.parentNode&&c.parentNode.removeChild(c)},useNotification:function(){return Object(y.a)(e)}}))}})),c)};var _=w;t.a=_},"94VI":function(e,t){t.polyfill=function(e){return e}},"97Jx":function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"99DC":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("ERkP");function o(e){var t=r.useRef();return t.current=e,r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[])}},"99Mk":function(e,t,n){n("ax0f")({global:!0},{globalThis:n("9JhN")})},"9Ic3":function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="VerticalAlignTopOutlined";t.a=o.forwardRef(c)},"9JhN":function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("fRV1"))},"9Ljn":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u}));var r=n("ERkP");function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=function(){var e=o(Object(r.useState)(!1),2),t=e[0],n=e[1];return Object(r.useEffect)((function(){window.location.host.includes("gitee.io")&&window.location.host.includes("antv")&&n(!0)}),[]),[t]},c=function(){var e=o(Object(r.useState)([]),2),t=e[0],n=e[1];return Object(r.useEffect)((function(){var e=document.querySelectorAll("aside .ant-menu-item a"),t=document.querySelector("aside .ant-menu-item-selected a"),r=Array.from(e).findIndex((function(e){return e===t})),o=r-1>=0?e[r-1]:void 0,i=r+1<e.length?e[r+1]:void 0,a=o?{slug:o.getAttribute("href")||void 0,title:o.textContent||void 0}:void 0,c=i?{slug:i.getAttribute("href")||void 0,title:i.textContent||void 0}:void 0;n([a,c])}),[]),t},u=function(e){var t,n=e.link,i=void 0===n?"":n,a=e.siteUrl,c=void 0===a?"":a,u=e.lang,s=void 0===u?"":u;t=i||("https://antv.vision"===c?"/".concat(s):"https://antv.vision/".concat(s));var l=o(Object(r.useState)(""),2),f=l[0],p=l[1];return Object(r.useEffect)((function(){window.location.host.includes("gitee.io")&&window.location.host.includes("antv")&&p("https://antv.gitee.io/".concat(s))}),[]),[f||t]}},"9SCj":function(e,t,n){var r=n("LmOH"),o=n("Q4oW"),i=n("D49j"),a=n("wxYD");e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},"9SKQ":function(e,t,n){var r=n("JNqh");e.exports=function(e){return r(this,e).has(e)}},"9TP6":function(e,t,n){var r=n("OBn4"),o=n("nnm9"),i=n("XlL0"),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},"9cwg":function(e,t,n){var r=n("rxHK"),o=n("UOep");e.exports=function e(t,n,i){return function(){for(var a=[],c=0,u=t,s=0;s<n.length||c<arguments.length;){var l;s<n.length&&(!o(n[s])||c>=arguments.length)?l=n[s]:(l=arguments[c],c+=1),a[s]=l,o(l)||(u-=1),s+=1}return u<=0?i.apply(this,a):r(u,e(t,a,i))}}},"9fIP":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},"9u+f":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={adjustX:1,adjustY:1},o=[0,0],i={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:o}}},"9vbJ":function(e,t,n){var r,o=n("3KBa"),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},"9y2L":function(e,t,n){var r=n("2q8g"),o=n("t0L4");e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},"9yH6":function(e,t,n){"use strict";var r=n("SiX+"),o=n("oOh1"),i=n("KNH7"),a=o.a;a.Button=i.a,a.Group=r.a,a.__ANT_RADIO=!0,t.a=a},A43l:function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},ACnJ:function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n("zjfJ"),o=n("cxan"),i=["xxl","xl","lg","md","sm","xs"],a={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},c=new Map,u=-1,s={},l={matchHandlers:{},dispatch:function(e){return s=e,c.forEach((function(e){return e(s)})),c.size>=1},subscribe:function(e){return c.size||this.register(),u+=1,c.set(u,e),e(s),u},unsubscribe:function(e){c.delete(e),c.size||this.unregister()},unregister:function(){var e=this;Object.keys(a).forEach((function(t){var n=a[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),c.clear()},register:function(){var e=this;Object.keys(a).forEach((function(t){var n=a[t],i=function(n){var i=n.matches;e.dispatch(Object(o.a)(Object(o.a)({},s),Object(r.a)({},t,i)))},c=window.matchMedia(n);c.addListener(i),e.matchHandlers[n]={mql:c,listener:i},i(c)}))}};t.a=l},ATYA:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var r=n("zjfJ"),o=n("O94r"),i=n.n(o),a=n("CWQg");Object(a.a)("warning","error","");function c(e,t,n){var o;return i()((o={},Object(r.a)(o,"".concat(e,"-status-success"),"success"===t),Object(r.a)(o,"".concat(e,"-status-warning"),"warning"===t),Object(r.a)(o,"".concat(e,"-status-error"),"error"===t),Object(r.a)(o,"".concat(e,"-status-validating"),"validating"===t),Object(r.a)(o,"".concat(e,"-has-feedback"),n),o))}var u=function(e,t){return t||e}},AZnI:function(e,t,n){"use strict";function r(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return s}));var o={};function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&o[t[0]]||("string"==typeof t[0]&&(o[t[0]]=new Date),r.apply(void 0,t))}function a(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(r,e)||o&&!a(i,e))))}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return i("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):c(e,t,n)}function s(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},Af8m:function(e,t,n){"use strict";(function(e){var r=n("kq48"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.a.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();t.a=c}).call(this,n("cyaT")(e))},AiJW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Context=void 0;var r=n("+OwM"),o=function(){function e(e){this.id=r.id(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}();t.Context=o},AjPR:function(e,t,n){var r=n("LtXa"),o=n("70Le");e.exports=function(e,t){return r(e,o(e),t)}},AqVP:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("sRHE"),o=n("d8ec"),i=n("K/z8");function a(e){var t=Object(o.a)();return function(){var n,o=Object(r.a)(e);if(t){var a=Object(r.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(i.a)(this,n)}}},Ato4:function(e,t,n){e.exports={export:"ExternalLinkIcon-module--export--20O6q"}},AuHH:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},B5SY:function(e,t,n){"use strict";n.d(t,"a",(function(){return q}));var r=n("zjfJ"),o=n("Czhu"),i=n("zygG"),a=n("4wDe"),c=n("ERkP"),u=n("uO0T"),s=n("uwWy"),l=n("O94r"),f=n.n(l),p=n("3yBb");function d(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var h,v,y,m=(h=Object(p.a)(),v="undefined"!=typeof window?window:{},y={animationend:d("Animation","AnimationEnd"),transitionend:d("Transition","TransitionEnd")},h&&("AnimationEvent"in v||delete y.animationend.animation,"TransitionEvent"in v||delete y.transitionend.transition),y),g={};if(Object(p.a)()){var b=document.createElement("div");g=b.style}var O={};function w(e){if(O[e])return O[e];var t=m[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in g)return O[e]=t[i],O[e]}return""}var _=w("animationend"),x=w("transitionend"),E=!(!_||!x),S=_||"animationend",C=x||"transitionend";function j(e,t){return e?"object"===Object(a.a)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var k=n("mDRv"),P=n("jiyB"),T=Object(p.a)()?c.useLayoutEffect:c.useEffect,M=["prepare","start","active","end"];function A(e){return"active"===e||"end"===e}var L=function(e,t){var n=Object(k.a)("none"),r=Object(i.a)(n,2),o=r[0],a=r[1],u=function(){var e=c.useRef(null);function t(){P.a.cancel(e.current)}return c.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Object(P.a)((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),s=Object(i.a)(u,2),l=s[0],f=s[1];return T((function(){if("none"!==o&&"end"!==o){var e=M.indexOf(o),n=M[e+1],r=t(o);!1===r?a(n,!0):l((function(e){function t(){e.isCanceled()||a(n,!0)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,o]),c.useEffect((function(){return function(){f()}}),[]),[function(){a("prepare",!0)},o]};function R(e,t,n,a){var u=a.motionEnter,s=void 0===u||u,l=a.motionAppear,f=void 0===l||l,p=a.motionLeave,d=void 0===p||p,h=a.motionDeadline,v=a.motionLeaveImmediately,y=a.onAppearPrepare,m=a.onEnterPrepare,g=a.onLeavePrepare,b=a.onAppearStart,O=a.onEnterStart,w=a.onLeaveStart,_=a.onAppearActive,x=a.onEnterActive,E=a.onLeaveActive,j=a.onAppearEnd,P=a.onEnterEnd,M=a.onLeaveEnd,R=a.onVisibleChanged,N=Object(k.a)(),I=Object(i.a)(N,2),D=I[0],F=I[1],z=Object(k.a)("none"),B=Object(i.a)(z,2),U=B[0],V=B[1],H=Object(k.a)(null),G=Object(i.a)(H,2),W=G[0],Y=G[1],K=Object(c.useRef)(!1),X=Object(c.useRef)(null);function q(){return n()}var Z=Object(c.useRef)(!1);function J(e){var t=q();if(!e||e.deadline||e.target===t){var n,r=Z.current;"appear"===U&&r?n=null==j?void 0:j(t,e):"enter"===U&&r?n=null==P?void 0:P(t,e):"leave"===U&&r&&(n=null==M?void 0:M(t,e)),"none"!==U&&r&&!1!==n&&(V("none",!0),Y(null,!0))}}var Q=function(e){var t=Object(c.useRef)(),n=Object(c.useRef)(e);n.current=e;var r=c.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(C,r),e.removeEventListener(S,r))}return c.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(C,r),e.addEventListener(S,r),t.current=e)},o]}(J),$=Object(i.a)(Q,1)[0],ee=c.useMemo((function(){var e,t,n;switch(U){case"appear":return e={},Object(r.a)(e,"prepare",y),Object(r.a)(e,"start",b),Object(r.a)(e,"active",_),e;case"enter":return t={},Object(r.a)(t,"prepare",m),Object(r.a)(t,"start",O),Object(r.a)(t,"active",x),t;case"leave":return n={},Object(r.a)(n,"prepare",g),Object(r.a)(n,"start",w),Object(r.a)(n,"active",E),n;default:return{}}}),[U]),te=L(U,(function(e){if("prepare"===e){var t=ee.prepare;return!!t&&t(q())}var n;oe in ee&&Y((null===(n=ee[oe])||void 0===n?void 0:n.call(ee,q(),null))||null);return"active"===oe&&($(q()),h>0&&(clearTimeout(X.current),X.current=setTimeout((function(){J({deadline:!0})}),h))),!0})),ne=Object(i.a)(te,2),re=ne[0],oe=ne[1],ie=A(oe);Z.current=ie,T((function(){F(t);var n,r=K.current;(K.current=!0,e)&&(!r&&t&&f&&(n="appear"),r&&t&&s&&(n="enter"),(r&&!t&&d||!r&&v&&!t&&d)&&(n="leave"),n&&(V(n),re()))}),[t]),Object(c.useEffect)((function(){("appear"===U&&!f||"enter"===U&&!s||"leave"===U&&!d)&&V("none")}),[f,s,d]),Object(c.useEffect)((function(){return function(){K.current=!1,clearTimeout(X.current)}}),[]);var ae=c.useRef(!1);Object(c.useEffect)((function(){D&&(ae.current=!0),void 0!==D&&"none"===U&&((ae.current||D)&&(null==R||R(D)),ae.current=!0)}),[D,U]);var ce=W;return ee.prepare&&"start"===oe&&(ce=Object(o.a)({transition:"none"},ce)),[U,oe,ce,null!=D?D:t]}var N=n("9fIP"),I=n("MMYH"),D=n("8K1b"),F=n("AqVP"),z=function(e){Object(D.a)(n,e);var t=Object(F.a)(n);function n(){return Object(N.a)(this,n),t.apply(this,arguments)}return Object(I.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);var B=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===Object(a.a)(e)&&(t=e.transitionSupport);var l=c.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,p=e.removeOnLeave,d=void 0===p||p,h=e.forceRender,v=e.children,y=e.motionName,m=e.leavedClassName,g=e.eventProps,b=n(e),O=Object(c.useRef)(),w=Object(c.useRef)();var _=R(b,l,(function(){try{return O.current instanceof HTMLElement?O.current:Object(u.a)(w.current)}catch(e){return null}}),e),x=Object(i.a)(_,4),E=x[0],S=x[1],C=x[2],k=x[3],P=c.useRef(k);k&&(P.current=!0);var T,M=c.useCallback((function(e){O.current=e,Object(s.b)(t,e)}),[t]),L=Object(o.a)(Object(o.a)({},g),{},{visible:l});if(v)if("none"!==E&&n(e)){var N,I;"prepare"===S?I="prepare":A(S)?I="active":"start"===S&&(I="start"),T=v(Object(o.a)(Object(o.a)({},L),{},{className:f()(j(y,E),(N={},Object(r.a)(N,j(y,"".concat(E,"-").concat(I)),I),Object(r.a)(N,y,"string"==typeof y),N)),style:C}),M)}else T=k?v(Object(o.a)({},L),M):!d&&P.current?v(Object(o.a)(Object(o.a)({},L),{},{className:m}),M):h?v(Object(o.a)(Object(o.a)({},L),{},{style:{display:"none"}}),M):null;else T=null;c.isValidElement(T)&&Object(s.c)(T)&&(T.ref||(T=c.cloneElement(T,{ref:M})));return c.createElement(z,{ref:w},T)}));return l.displayName="CSSMotion",l}(E),U=n("cxan"),V=n("HbGN");function H(e){var t;return t=e&&"object"===Object(a.a)(e)&&"key"in e?e:{key:e},Object(o.a)(Object(o.a)({},t),{},{key:String(t.key)})}function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(H)}function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=G(e),c=G(t);a.forEach((function(e){for(var t=!1,a=r;a<i;a+=1){var u=c[a];if(u.key===e.key){r<a&&(n=n.concat(c.slice(r,a).map((function(e){return Object(o.a)(Object(o.a)({},e),{},{status:"add"})}))),r=a),n.push(Object(o.a)(Object(o.a)({},u),{},{status:"keep"})),r+=1,t=!0;break}}t||n.push(Object(o.a)(Object(o.a)({},e),{},{status:"remove"}))})),r<i&&(n=n.concat(c.slice(r).map((function(e){return Object(o.a)(Object(o.a)({},e),{},{status:"add"})}))));var u={};n.forEach((function(e){var t=e.key;u[t]=(u[t]||0)+1}));var s=Object.keys(u).filter((function(e){return u[e]>1}));return s.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||"remove"!==r}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var Y=["component","children","onVisibleChanged","onAllRemoved"],K=["status"],X=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B,n=function(e){Object(D.a)(r,e);var n=Object(F.a)(r);function r(){var e;Object(N.a)(this,r);for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return(e=n.call.apply(n,[this].concat(i))).state={keyEntities:[]},e.removeKey=function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Object(o.a)(Object(o.a)({},e),{},{status:"removed"})}));return e.setState({keyEntities:n}),n.filter((function(e){return"removed"!==e.status})).length},e}return Object(I.a)(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged,u=r.onAllRemoved,s=Object(V.a)(r,Y),l=o||c.Fragment,f={};return X.forEach((function(e){f[e]=s[e],delete s[e]})),delete s.keys,c.createElement(l,s,n.map((function(n){var r=n.status,o=Object(V.a)(n,K),s="add"===r||"keep"===r;return c.createElement(t,Object(U.a)({},f,{key:o.key,visible:s,eventProps:o,onVisibleChanged:function(t){(null==a||a(t,{key:o.key}),t)||0===e.removeKey(o.key)&&u&&u()}}),i)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=G(n);return{keyEntities:W(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),r}(c.Component);return n.defaultProps={component:"div"},n}(E);t.b=B},B8dz:function(e,t,n){"use strict";var r=n("yWCo"),o=n("IGGJ");t.__esModule=!0,t.ScrollHandler=t.ScrollContext=void 0;var i=o(n("1Pcy")),a=o(n("W/Kd")),c=r(n("ERkP")),u=o(n("aWzz")),s=n("z/7U"),l=c.createContext(new s.SessionStorage);t.ScrollContext=l,l.displayName="GatsbyScrollContext";var f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this)._stateStorage=new s.SessionStorage,t.scrollListener=function(){var e=t.props.location.key;e&&t._stateStorage.save(t.props.location,e,window.scrollY)},t.windowScroll=function(e,n){t.shouldUpdateScroll(n,t.props)&&window.scrollTo(0,e)},t.scrollToHash=function(e,n){var r=document.getElementById(e.substring(1));r&&t.shouldUpdateScroll(n,t.props)&&r.scrollIntoView()},t.shouldUpdateScroll=function(e,n){var r=t.props.shouldUpdateScroll;return!r||r.call((0,i.default)(t),e,n)},t}(0,a.default)(t,e);var n=t.prototype;return n.componentDidMount=function(){var e;window.addEventListener("scroll",this.scrollListener);var t=this.props.location,n=t.key,r=t.hash;n&&(e=this._stateStorage.read(this.props.location,n)),e?this.windowScroll(e,void 0):r&&this.scrollToHash(decodeURI(r),void 0)},n.componentWillUnmount=function(){window.removeEventListener("scroll",this.scrollListener)},n.componentDidUpdate=function(e){var t,n=this.props.location,r=n.hash,o=n.key;o&&(t=this._stateStorage.read(this.props.location,o)),r?this.scrollToHash(decodeURI(r),e):this.windowScroll(t,e)},n.render=function(){return c.createElement(l.Provider,{value:this._stateStorage},this.props.children)},t}(c.Component);t.ScrollHandler=f,f.propTypes={shouldUpdateScroll:u.default.func,children:u.default.element.isRequired,location:u.default.object.isRequired}},BDtw:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;var r="function"==typeof ArrayBuffer,o=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function c(e){return r&&(e instanceof ArrayBuffer||function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}(e))||i&&e instanceof Blob||a&&e instanceof File}t.isBinary=c,t.hasBinary=function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(var r=0,o=t.length;r<o;r++)if(e(t[r]))return!0;return!1}if(c(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return!0;return!1}},BEDn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TargetTypeEnum=t.BindingTypeEnum=t.BindingScopeEnum=void 0;t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},BEoi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Symbol.for("INJECTION");function o(e,t,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return o&&!Reflect.hasMetadata(r,this,t)&&Reflect.defineMetadata(r,n(),this,t),Reflect.hasMetadata(r,this,t)?Reflect.getMetadata(r,this,t):n()},set:function(e){Reflect.defineMetadata(r,e,this,t)}})}t.makePropertyInjectDecorator=function(e,t){return function(n){return function(r,i){o(r,i,(function(){return e.get(n)}),t)}}},t.makePropertyInjectNamedDecorator=function(e,t){return function(n,r){return function(i,a){o(i,a,(function(){return e.getNamed(n,r)}),t)}}},t.makePropertyInjectTaggedDecorator=function(e,t){return function(n,r,i){return function(a,c){o(a,c,(function(){return e.getTagged(n,r,i)}),t)}}},t.makePropertyMultiInjectDecorator=function(e,t){return function(n){return function(r,i){o(r,i,(function(){return e.getAll(n)}),t)}}}},"BIH/":function(e,t,n){var r=n("tJVe");e.exports=function(e){return r(e.length)}},BMrR:function(e,t,n){"use strict";var r=n("qrJ5");t.a=r.a},BOOC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeConstraint=t.namedConstraint=t.taggedConstraint=t.traverseAncerstors=void 0;var r=n("2u/a"),o=n("jFDj");t.traverseAncerstors=function e(t,n){var r=t.parentRequest;return null!==r&&(!!n(r)||e(r,n))};var i=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new o.Metadata(e,t),n}};t.taggedConstraint=i;var a=i(r.NAMED_TAG);t.namedConstraint=a;t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},BSqe:function(e,t){e.exports=function(e){return this.__data__.get(e)}},BTUq:function(e,t){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},Bcqe:function(e,t,n){var r=n("RNvQ"),o=n("tQYX");e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},BhhY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingCount=void 0;t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},BjSP:function(e,t,n){var r=n("LtXa"),o=n("Xidw");e.exports=function(e,t){return r(e,o(e),t)}},BjaG:function(e,t,n){"use strict";var r=n("VL4P"),o=n("l0By");e.exports=function(e){var t=r(e);t.token="";var n=t.user.split(":");return 2===n.length&&("x-oauth-basic"===n[1]?t.token=n[0]:"x-token-auth"===n[0]&&(t.token=n[1])),o(t.protocols)||o(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:t.protocol="file",t.href=t.href.replace(/\/$/,""),t}},BkAM:function(e,t,n){var r=n("UOep");e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},BkQE:function(e,t,n){"use strict";(function(e){var r;n.d(t,"a",(function(){return o}));var o;r=r||(r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}),o="undefined"==typeof window?{devicePixelRatio:1,navigator:{userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36",browserLanguage:"zh-CN",language:"zh-CN",platform:""},location:"",document:{documentElement:{style:{}},createEvent:function(){return!0},getElementById:function(e){return!0},createElement:function(){return{className:"",classList:{add:function(){return""}}}},createElementNS:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},querySelector:function(){return!1}},performance:{mark:function(e){return null},clearMeasures:function(e){return null},clearMarks:function(e){return null},measure:function(e,t,n){return{duration:0}},now:function(){return(new Date).getTime()}},Blob:"",dispatchEvent:function(e){return!0},Event:function(e,t){return!0},createElement:function(){return!0},createElementNS:function(){return!0},XMLHttpRequest:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},requestAnimationFrame:function(){return!0},cancelAnimationFrame:function(){return!0},clearTimeout:function(){return!0}}:window}).call(this,n("fRV1"))},Bkfe:function(e,t,n){"use strict";var r=n("VrFO"),o=n("Y9Ll"),i=n("n70c"),a=n("5Yy7"),c=n("N+ot"),u=n("AuHH");function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;var l=n("E10a"),f=n("3YvA"),p=n("dMso"),d=n("c5bu"),h=n("kyti"),v=n("JI/+"),y=n("KQpv")("socket.io-client:manager"),m=function(e){a(n,e);var t=s(n);function n(e,o){var i;r(this,n),(i=t.call(this)).nsps={},i.subs=[],e&&"object"==typeof e&&(o=e,e=void 0),(o=o||{}).path=o.path||"/socket.io",i.opts=o,i.reconnection(!1!==o.reconnection),i.reconnectionAttempts(o.reconnectionAttempts||1/0),i.reconnectionDelay(o.reconnectionDelay||1e3),i.reconnectionDelayMax(o.reconnectionDelayMax||5e3),i.randomizationFactor(o.randomizationFactor||.5),i.backoff=new v({min:i.reconnectionDelay(),max:i.reconnectionDelayMax(),jitter:i.randomizationFactor()}),i.timeout(null==o.timeout?2e4:o.timeout),i._readyState="closed",i.uri=e;var a=o.parser||d;return i.encoder=new a.Encoder,i.decoder=new a.Decoder,i._autoConnect=!1!==o.autoConnect,i._autoConnect&&i.open(),i}return o(n,[{key:"reconnection",value:function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}},{key:"reconnectionAttempts",value:function(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}},{key:"reconnectionDelay",value:function(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}},{key:"randomizationFactor",value:function(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}},{key:"reconnectionDelayMax",value:function(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}},{key:"timeout",value:function(e){return arguments.length?(this._timeout=e,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var t=this;if(y("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;y("opening %s",this.uri),this.engine=l(this.uri,this.opts);var r=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;var a=h.on(r,"open",(function(){o.onopen(),e&&e()})),c=h.on(r,"error",(function(r){y("error"),o.cleanup(),o._readyState="closed",i(u(n.prototype),"emit",t).call(t,"error",r),e?e(r):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var s=this._timeout;y("connect attempt will timeout after %d",s),0===s&&a();var f=setTimeout((function(){y("connect attempt timed out after %d",s),a(),r.close(),r.emit("error",new Error("timeout"))}),s);this.subs.push((function(){clearTimeout(f)}))}return this.subs.push(a),this.subs.push(c),this}},{key:"connect",value:function(e){return this.open(e)}},{key:"onopen",value:function(){y("open"),this.cleanup(),this._readyState="open",i(u(n.prototype),"emit",this).call(this,"open");var e=this.engine;this.subs.push(h.on(e,"ping",this.onping.bind(this)),h.on(e,"data",this.ondata.bind(this)),h.on(e,"error",this.onerror.bind(this)),h.on(e,"close",this.onclose.bind(this)),h.on(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){i(u(n.prototype),"emit",this).call(this,"ping")}},{key:"ondata",value:function(e){this.decoder.add(e)}},{key:"ondecoded",value:function(e){i(u(n.prototype),"emit",this).call(this,"packet",e)}},{key:"onerror",value:function(e){y("error",e),i(u(n.prototype),"emit",this).call(this,"error",e)}},{key:"socket",value:function(e,t){var n=this.nsps[e];return n||(n=new f.Socket(this,e,t),this.nsps[e]=n),n}},{key:"_destroy",value:function(e){for(var t=0,n=Object.keys(this.nsps);t<n.length;t++){var r=n[t];if(this.nsps[r].active)return void y("socket %s is still active, skipping close",r)}this._close()}},{key:"_packet",value:function(e){y("writing packet %j",e);for(var t=this.encoder.encode(e),n=0;n<t.length;n++)this.engine.write(t[n],e.options)}},{key:"cleanup",value:function(){y("cleanup"),this.subs.forEach((function(e){return e()})),this.subs.length=0,this.decoder.destroy()}},{key:"_close",value:function(){y("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,"opening"===this._readyState&&this.cleanup(),this.backoff.reset(),this._readyState="closed",this.engine&&this.engine.close()}},{key:"disconnect",value:function(){return this._close()}},{key:"onclose",value:function(e){y("onclose"),this.cleanup(),this.backoff.reset(),this._readyState="closed",i(u(n.prototype),"emit",this).call(this,"close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()}},{key:"reconnect",value:function(){var e=this;if(this._reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)y("reconnect failed"),this.backoff.reset(),i(u(n.prototype),"emit",this).call(this,"reconnect_failed"),this._reconnecting=!1;else{var r=this.backoff.duration();y("will wait %dms before reconnect attempt",r),this._reconnecting=!0;var o=setTimeout((function(){t.skipReconnect||(y("attempting reconnect"),i(u(n.prototype),"emit",e).call(e,"reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((function(r){r?(y("reconnect attempt error"),t._reconnecting=!1,t.reconnect(),i(u(n.prototype),"emit",e).call(e,"reconnect_error",r)):(y("reconnect success"),t.onreconnect())})))}),r);this.subs.push((function(){clearTimeout(o)}))}}},{key:"onreconnect",value:function(){var e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),i(u(n.prototype),"emit",this).call(this,"reconnect",e)}}]),n}(p);t.Manager=m},BlJA:function(e,t,n){var r=n("rmhs"),o=n("4uJK"),i=n("9y2L");e.exports=function(e){return i(e)?r(e):o(e)}},Bp1t:function(e,t,n){"use strict";var r=n("/GY5");function o(e,t,n){if(3===e){var o=new r(n,n.readVarint()+n.pos);o.length&&(t[o.name]=o)}}e.exports=function(e,t){this.layers=e.readFields(o,{},t)}},BqJQ:function(e,t,n){var r,o;void 0===(o="function"==typeof(r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,t,n){return e<t?t:e>n?n:e}function i(e){return 100*(-1+e)}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=o(e,r.minimum,1),n.status=1===e?null:e;var u=n.render(!t),s=u.querySelector(r.barSelector),l=r.speed,f=r.easing;return u.offsetWidth,a((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),c(s,function(e,t,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+t+"ms "+n,o}(e,l,f)),1===e?(c(u,{transition:"none",opacity:1}),u.offsetWidth,setTimeout((function(){c(u,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),l)}),l)):setTimeout(t,l)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){return n.status||n.set(0),r.trickle&&function e(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)}(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");s(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var o,a=t.querySelector(r.barSelector),u=e?"-100":i(n.status||0),l=document.querySelector(r.parent);return c(a,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),r.showSpinner||(o=t.querySelector(r.spinnerSelector))&&p(o),l!=document.body&&s(l,"nprogress-custom-parent"),l.appendChild(t),t},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),c=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()})),t[n]||(t[n]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}(n))}function r(e,t,r){t=n(t),e.style[t]=r}return function(e,t){var n,o,i=arguments;if(2==i.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,i[1],i[2])}}();function u(e,t){return("string"==typeof e?e:f(e)).indexOf(" "+t+" ")>=0}function s(e,t){var n=f(e),r=n+t;u(n,t)||(e.className=r.substring(1))}function l(e,t){var n,r=f(e);u(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function f(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?r.call(t,n,t,e):r)||(e.exports=o)},BqUW:function(e,t,n){var r=n("HsnV"),o=n("ZZ+W"),i=n("R3gn"),a=n("yZHP"),c=n("kkM+"),u=n("wxYD"),s=n("3ajY"),l=n("Qd2C"),f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,h,v){var y=u(e),m=u(t),g=y?"[object Array]":c(e),b=m?"[object Array]":c(t),O=(g="[object Arguments]"==g?f:g)==f,w=(b="[object Arguments]"==b?f:b)==f,_=g==b;if(_&&s(e)){if(!s(t))return!1;y=!0,O=!1}if(_&&!O)return v||(v=new r),y||l(e)?o(e,t,n,d,h,v):i(e,t,g,n,d,h,v);if(!(1&n)){var x=O&&p.call(e,"__wrapped__"),E=w&&p.call(t,"__wrapped__");if(x||E){var S=x?e.value():e,C=E?t.value():t;return v||(v=new r),h(S,C,n,d,v)}}return!!_&&(v||(v=new r),a(e,t,n,d,h,v))}},Bstx:function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},BvKs:function(e,t,n){"use strict";var r=n("9fIP"),o=n("MMYH"),i=n("8K1b"),a=n("AqVP"),c=n("cxan"),u=n("hShO"),s=n("O94r"),l=n.n(s),f=n("1j5w"),p=n("99DC"),d=n("WSTu"),h=n("ERkP"),v=n("H84U"),y=n("ZX9x"),m=n("EXcs"),g=n("0n0R"),b=n("4wDe"),O=n("zjfJ"),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},_=function(e){var t=e.prefixCls,n=e.className,r=e.dashed,o=w(e,["prefixCls","className","dashed"]),i=(0,h.useContext(v.b).getPrefixCls)("menu",t),a=l()(Object(O.a)({},"".concat(i,"-item-divider-dashed"),!!r),n);return h.createElement(f.a,Object(c.a)({className:a},o))},x=n("6Qj0"),E=n("3S7+"),S=Object(h.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},j=function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).renderItem=function(t){var n,r,o=t.siderCollapsed,i=e.context,a=i.prefixCls,u=i.firstLevel,s=i.inlineCollapsed,p=i.direction,d=i.disableMenuItemTitleTooltip,v=e.props,y=v.className,m=v.children,b=e.props,w=b.title,_=b.icon,S=b.danger,j=C(b,["title","icon","danger"]),k=w;void 0===w?k=u?m:"":!1===w&&(k="");var P={title:k};o||s||(P.title=null,P.visible=!1);var T=Object(x.a)(m).length,M=h.createElement(f.b,Object(c.a)({},j,{className:l()((n={},Object(O.a)(n,"".concat(a,"-item-danger"),S),Object(O.a)(n,"".concat(a,"-item-only-child"),1===(_?T+1:T)),n),y),title:"string"==typeof w?w:void 0}),Object(g.a)(_,{className:l()(Object(g.b)(_)?null===(r=_.props)||void 0===r?void 0:r.className:"","".concat(a,"-item-icon"))}),e.renderItemChildren(s));return d||(M=h.createElement(E.a,Object(c.a)({},P,{placement:"rtl"===p?"left":"right",overlayClassName:"".concat(a,"-inline-collapsed-tooltip")}),M)),M},e}return Object(o.a)(n,[{key:"renderItemChildren",value:function(e){var t=this.context,n=t.prefixCls,r=t.firstLevel,o=this.props,i=o.icon,a=o.children,c=h.createElement("span",{className:"".concat(n,"-title-content")},a);return(!i||Object(g.b)(a)&&"span"===a.type)&&a&&e&&r&&"string"==typeof a?h.createElement("div",{className:"".concat(n,"-inline-collapsed-noicon")},a.charAt(0)):c}},{key:"render",value:function(){return h.createElement(y.a.Consumer,null,this.renderItem)}}]),n}(h.Component);j.contextType=S;var k=function(e){var t,n,r=e.popupClassName,o=e.icon,i=e.title,a=e.theme,u=h.useContext(S),s=u.prefixCls,p=u.inlineCollapsed,v=u.antdMenuTheme,y=Object(f.h)();if(o){var m=Object(g.b)(i)&&"span"===i.type;n=h.createElement(h.Fragment,null,Object(g.a)(o,{className:l()(Object(g.b)(o)?null===(t=o.props)||void 0===t?void 0:t.className:"","".concat(s,"-item-icon"))}),m?i:h.createElement("span",{className:"".concat(s,"-title-content")},i))}else n=p&&!y.length&&i&&"string"==typeof i?h.createElement("div",{className:"".concat(s,"-inline-collapsed-noicon")},i.charAt(0)):h.createElement("span",{className:"".concat(s,"-title-content")},i);var b=h.useMemo((function(){return Object(c.a)(Object(c.a)({},u),{firstLevel:!1})}),[u]);return h.createElement(S.Provider,{value:b},h.createElement(f.f,Object(c.a)({},Object(d.a)(e,["icon"]),{title:n,popupClassName:l()(s,"".concat(s,"-").concat(a||v),r)})))},P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function T(e){return h.useMemo((function(){return e?function e(t){return(t||[]).map((function(t,n){if(t&&"object"===Object(b.a)(t)){var r=t,o=r.label,i=r.children,a=r.key,u=r.type,s=P(r,["label","children","key","type"]),l=null!=a?a:"tmp-".concat(n);return i||"group"===u?"group"===u?h.createElement(f.c,Object(c.a)({key:l},s,{title:o}),e(i)):h.createElement(k,Object(c.a)({key:l},s,{title:o}),e(i)):"divider"===u?h.createElement(_,Object(c.a)({key:l},s)):h.createElement(j,Object(c.a)({key:l},s),o)}return null})).filter((function(e){return e}))}(e):e}),[e])}var M=n("UuAG"),A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},L=Object(h.forwardRef)((function(e,t){var n,r=h.useContext(M.b)||{},o=h.useContext(v.b),i=o.getPrefixCls,a=o.getPopupContainer,s=o.direction,y=i(),b=e.prefixCls,O=e.className,w=e.theme,_=void 0===w?"light":w,x=e.expandIcon,E=e._internalDisableMenuItemTitleTooltip,C=e.inlineCollapsed,j=e.siderCollapsed,k=e.items,P=e.children,L=e.mode,R=e.selectable,N=e.onClick,I=A(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","mode","selectable","onClick"]),D=Object(d.a)(I,["collapsedWidth"]),F=T(k)||P;null===(n=r.validator)||void 0===n||n.call(r,{mode:L});var z,B=Object(p.a)((function(){var e;null==N||N.apply(void 0,arguments),null===(e=null==r?void 0:r.onClick)||void 0===e||e.call(r)})),U=r.mode||L,V=null!=R?R:r.selectable,H=h.useMemo((function(){return void 0!==j?j:C}),[C,j]),G={horizontal:{motionName:"".concat(y,"-slide-up")},inline:m.a,other:{motionName:"".concat(y,"-zoom-big")}},W=i("menu",b||r.prefixCls),Y=l()("".concat(W,"-").concat(_),O);z="function"==typeof x?x:Object(g.a)(x||r.expandIcon,{className:"".concat(W,"-submenu-expand-icon")});var K=h.useMemo((function(){return{prefixCls:W,inlineCollapsed:H||!1,antdMenuTheme:_,direction:s,firstLevel:!0,disableMenuItemTitleTooltip:E}}),[W,H,_,s,E]);return h.createElement(M.b.Provider,{value:null},h.createElement(S.Provider,{value:K},h.createElement(f.g,Object(c.a)({getPopupContainer:a,overflowedIndicator:h.createElement(u.a,null),overflowedIndicatorPopupClassName:"".concat(W,"-").concat(_),mode:U,selectable:V,onClick:B},D,{inlineCollapsed:H,className:Y,prefixCls:W,direction:s,defaultMotions:G,expandIcon:z,ref:t}),F)))})),R=function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).focus=function(t){var n;null===(n=e.menu)||void 0===n||n.focus(t)},e}return Object(o.a)(n,[{key:"render",value:function(){var e=this;return h.createElement(y.a.Consumer,null,(function(t){return h.createElement(L,Object(c.a)({ref:function(t){e.menu=t}},e.props,t))}))}}]),n}(h.Component);R.Divider=_,R.Item=j,R.SubMenu=k,R.ItemGroup=f.c;t.a=R},CB1q:function(e,t,n){"use strict";n.d(t,"a",(function(){return De}));var r=n("Gf+y"),o=n("hlMf"),i=n("mGvo"),a=n.n(i),c=n("pufz"),u=n("zEXi"),s=n("pfNN"),l=n("PGAt"),f=n("M4fI");function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(i,e);var t,n,r,o=y(i);function i(){var e;d(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return O(g(e=o.call.apply(o,[this].concat(n))),"raiseCount",0),O(g(e),"raiseRepeat",0),e}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.animateOption,n=void 0===t?{enable:!1,speed:.01,repeat:!1}:t,r=e.opacity,o=void 0===r?1:r,i=e.sourceColor,s=e.targetColor,l=e.pickLight,f=void 0!==l&&l,p=e.heightfixed,d=void 0!==p&&p,h=e.opacityLinear,v=void 0===h?{enable:!1,dir:"up"}:h,y=e.lightEnable,m=void 0===y||y;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:o})){this.judgeStyleAttributes({opacity:o});var g=this.layer.getEncodedData(),b=this.calDataFrame(this.cellLength,g,this.cellProperties),O=b.data,w=b.width,_=b.height;this.rowCount=_,this.dataTexture=this.cellLength>0&&O.length>0?this.createTexture2D({flipY:!0,data:O,format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:w,height:_}):this.createTexture2D({flipY:!0,data:[1],format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:1,height:1})}var x=0,E=[0,0,0,0],S=[0,0,0,0];if(i&&s&&(E=Object(u.Eb)(i),S=Object(u.Eb)(s),x=1),this.raiseCount<1&&this.raiseRepeat>0&&n.enable){var C=n.speed,j=void 0===C?.01:C;this.raiseCount+=j,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(f),u_heightfixed:Number(d),u_r:n.enable&&this.raiseRepeat>0?this.raiseCount:1,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:a()(o)?o:1,u_linearColor:x,u_sourceColor:E,u_targetColor:S,u_opacitylinear:Number(v.enable),u_opacitylinear_dir:"up"===v.dir?1:0,u_lightEnable:Number(m)}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig().animateOption.repeat,n=void 0===t?1:t;this.raiseRepeat=n,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:'precision highp float;\n\n#define pi 3.1415926535\n#define ambientRatio 0.5\n#define diffuseRatio 0.3\n#define specularRatio 0.2\n\nattribute vec3 a_Position;\nattribute vec3 a_Pos;\nattribute vec4 a_Color;\nattribute vec3 a_Size;\nattribute vec3 a_Normal;\n\nuniform float u_heightfixed: 0.0; // 默认不固定\nuniform float u_globel;\nuniform float u_r;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nvarying vec4 v_color;\n\nuniform float u_opacity : 1;\nuniform float u_lightEnable: 1;\n\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "light"\n#pragma include "picking"\n\nfloat getYRadian(float x, float z) {\n if(x > 0.0 && z > 0.0) {\n return atan(x/z);\n } else if(x > 0.0 && z <= 0.0){\n return atan(-z/x) + pi/2.0;\n } else if(x <= 0.0 && z <= 0.0) {\n return pi + atan(x/z); //atan(x/z) + \n } else {\n return atan(z/-x) + pi*3.0/2.0;\n }\n}\n\nfloat getXRadian(float y, float r) {\n return atan(y/r);\n}\n\nvoid main() {\n\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - lightWeight\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - linearZ(垂直方向 0 - 1 的值)\n 0.0, 0.0, 0.0, 0.0\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n vec3 size = a_Size * a_Position;\n\n // a_Position.z 是在构建网格的时候传入的标准值 0 - 1,在插值器插值可以获取 0~1 线性渐变的值\n styleMappingMat[2][3] = a_Position.z;\n\n vec3 offset = size; // 控制圆柱体的大小 - 从标准单位圆柱体进行偏移\n if(u_heightfixed < 1.0) { // 圆柱体不固定高度\n \n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // P20 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减1\n offset = offset * pow(2.0, (19.0 - u_Zoom));\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // P20_2 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减3\n offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom));\n }\n } else {// 圆柱体固定高度 ( 处理 mapbox )\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n offset *= 4.0/pow(2.0, 21.0 - u_Zoom);\n }\n }\n\n\n vec4 project_pos = project_position(vec4(a_Pos.xy, 0., 1.0));\n\n // u_r 控制圆柱的生长\n vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0);\n\n // 圆柱光照效果\n float lightWeight = 1.0;\n if(u_lightEnable > 0.0) { // 取消三元表达式,增强健壮性\n lightWeight = calc_lighting(pos);\n }\n styleMappingMat[1][3] = lightWeight;\n\n v_color =vec4(a_Color.rgb * lightWeight, a_Color.w);\n\n \n // 在地球模式下,将原本垂直于 xy 平面的圆柱调整姿态到适应圆的角度\n //旋转矩阵mx,创建绕x轴旋转矩阵\n float r = sqrt(a_Pos.z*a_Pos.z + a_Pos.x*a_Pos.x);\n float xRadian = getXRadian(a_Pos.y, r);\n float xcos = cos(xRadian);//求解旋转角度余弦值\n float xsin = sin(xRadian);//求解旋转角度正弦值\n mat4 mx = mat4(\n 1,0,0,0, \n 0,xcos,-xsin,0, \n 0,xsin,xcos,0, \n 0,0,0,1);\n\n //旋转矩阵my,创建绕y轴旋转矩阵\n float yRadian = getYRadian(a_Pos.x, a_Pos.z);\n float ycos = cos(yRadian);//求解旋转角度余弦值\n float ysin = sin(yRadian);//求解旋转角度正弦值\n mat4 my = mat4(\n ycos,0,-ysin,0, \n 0,1,0,0, \n ysin,0,ycos,0, \n 0,0,0,1);\n\n gl_Position = u_ViewProjectionMatrix * vec4(( my * mx * vec4(a_Position * a_Size, 1.0)).xyz + a_Pos, 1.0);\n \n\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'varying vec4 v_color;\nuniform float u_opacity: 1.0;\n\nuniform float u_pickLight: 0.0;\n\n#pragma include "picking"\n\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\nuniform float u_linearColor: 0;\nuniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\n\nuniform float u_opacitylinear: 0.0;\nuniform float u_opacitylinear_dir: 1.0;\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float lightWeight = styleMappingMat[1][3];\n float barLinearZ = styleMappingMat[2][3];\n\n // 设置圆柱的底色\n if(u_linearColor == 1.0) { // 使用渐变颜色\n gl_FragColor = mix(u_sourceColor, u_targetColor, barLinearZ);\n gl_FragColor.rgb *= lightWeight;\n } else { // 使用 color 方法传入的颜色\n gl_FragColor = v_color;\n }\n\n // 应用透明度\n gl_FragColor.a *= opacity;\n\n // 开启透明度渐变\n if(u_opacitylinear > 0.0) {\n gl_FragColor.a *= u_opacitylinear_dir > 0.0 ? (1.0 - barLinearZ): barLinearZ;\n }\n\n // picking\n if(u_pickLight > 0.0) {\n gl_FragColor = filterColorAlpha(gl_FragColor, lightWeight);\n } else {\n gl_FragColor = filterColor(gl_FragColor);\n }\n}\n',triangulation:l.f,depth:{enable:!0},cull:{enable:!0,face:Object(u.Y)(this.mapService.version)},blend:this.getBlend()}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){var e;null===(e=this.dataTexture)||void 0===e||e.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:3,update:function(e){var t=e.size;if(t){var n=[];return Array.isArray(t)&&(n=2===t.length?[t[0],t[0],t[1]]:t),Array.isArray(t)||(n=[t,t,t]),n}return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:c.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:c.gl.STATIC_DRAW,data:[],type:c.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:c.AttributeType.Attribute,descriptor:{name:"a_Pos",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:3,update:function(e){var t=Object(u.C)(e.coordinates);return Object(f.d)([t[0],t[1]])}}})}}])&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.a),_=n("K/oH");function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){if(t&&("object"===x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(i,e);var t,n,r,o=M(i);function i(){return k(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.strokeOpacity,o=void 0===r?1:r,i=e.strokeWidth,u=void 0===i?0:i,s=e.stroke,l=void 0===s?"rgba(0,0,0,0)":s,f=e.offsets,p=void 0===f?[0,0]:f,d=e.blend,h=e.blur,v=void 0===h?0:h;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n,strokeOpacity:o,strokeWidth:u,stroke:l,offsets:p})){this.judgeStyleAttributes({opacity:n,strokeOpacity:o,strokeWidth:u,stroke:l,offsets:p});var y=this.layer.getEncodedData(),m=this.calDataFrame(this.cellLength,y,this.cellProperties),g=m.data,b=m.width,O=m.height;this.rowCount=O,this.dataTexture=this.cellLength>0&&g.length>0?this.createTexture2D({flipY:!0,data:g,format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:b,height:O}):this.createTexture2D({flipY:!0,data:[1],format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:1,height:1})}return{u_blur:v,u_additive:"additive"===d?1:0,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:a()(n)?n:1,u_stroke_opacity:a()(o)?o:1,u_stroke_width:a()(u)?u:1,u_stroke_color:this.getStrokeColor(l),u_offsets:this.isOffsetStatic(p)?p:[0,0]}}},{key:"getAnimateUniforms",value:function(){var e=this.layer.getLayerConfig().animateOption,t=void 0===e?{enable:!1}:e;return{u_animate:this.animateOption2Array(t),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:function(e){this.layer.triangulation=l.a,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:'attribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec3 a_Extrude;\nattribute float a_Size;\nattribute float a_Shape;\n\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\nvarying vec4 v_data;\nvarying vec4 v_color;\nvarying float v_radius;\n\nuniform float u_opacity : 1;\nuniform float u_stroke_opacity : 1;\nuniform float u_stroke_width : 2;\nuniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0];\nuniform vec2 u_offsets;\n\nuniform float u_blur : 0.0;\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n#pragma include "styleMappingCalStrokeOpacity"\n#pragma include "styleMappingCalStrokeWidth"\n\n#pragma include "projection"\n#pragma include "picking"\n\n\nvoid main() {\n vec3 extrude = a_Extrude;\n float shape_type = a_Shape;\n /*\n * setPickingSize 设置拾取大小\n */\n float newSize = setPickingSize(a_Size);\n // float newSize = setPickingSize(a_Size) * 0.00001038445708445579;\n\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n\n vec2 strokeOpacityAndOffset = calStrokeOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][1] = strokeOpacityAndOffset.r;\n textureOffset = strokeOpacityAndOffset.g;\n\n vec2 strokeWidthAndOffset = calStrokeWidthAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][2] = strokeWidthAndOffset.r;\n textureOffset = strokeWidthAndOffset.g;\n\n vec4 textrueStroke = vec4(-1.0, -1.0, -1.0, -1.0);\n if(hasStroke()) {\n vec2 valueRPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n styleMappingMat[1][0] = pos2value(valueRPos, columnWidth, rowHeight); // R\n textureOffset += 1.0;\n\n vec2 valueGPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n styleMappingMat[1][1] = pos2value(valueGPos, columnWidth, rowHeight); // G\n textureOffset += 1.0;\n\n vec2 valueBPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n styleMappingMat[1][2] = pos2value(valueBPos, columnWidth, rowHeight); // B\n textureOffset += 1.0;\n\n vec2 valueAPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n styleMappingMat[1][3] = pos2value(valueAPos, columnWidth, rowHeight); // A\n textureOffset += 1.0;\n } else {\n if(u_stroke_color == vec4(0.0)) {\n styleMappingMat[1][0] = v_color.r;\n styleMappingMat[1][1] = v_color.g;\n styleMappingMat[1][2] = v_color.b;\n styleMappingMat[1][3] = v_color.a;\n } else {\n styleMappingMat[1][0] = u_stroke_color.r;\n styleMappingMat[1][1] = u_stroke_color.g;\n styleMappingMat[1][2] = u_stroke_color.b;\n styleMappingMat[1][3] = u_stroke_color.a;\n }\n }\n\n // cal style mapping\n\n // unpack color(vec2)\n v_color = a_Color;\n\n // radius(16-bit)\n v_radius = newSize;\n\n // anti-alias\n // float antialiased_blur = -max(u_blur, antialiasblur);\n float antialiasblur = -max(2.0 / u_DevicePixelRatio / newSize, u_blur);\n\n // TODP: /abs(extrude.x) 是为了兼容地球模式\n v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type);\n\n\n gl_Position = u_ViewProjectionMatrix * vec4(a_Position + extrude * newSize * 0.1, 1.0);\n\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:"uniform float u_additive;\n\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\nvarying vec4 v_data;\nvarying vec4 v_color;\nvarying float v_radius;\n\n#pragma include \"sdf_2d\"\n#pragma include \"picking\"\n\n\nvoid main() {\n int shape = int(floor(v_data.w + 0.5));\n\n vec4 textrueStroke = vec4(\n styleMappingMat[1][0],\n styleMappingMat[1][1],\n styleMappingMat[1][2],\n styleMappingMat[1][3]\n );\n\n float opacity = styleMappingMat[0][0];\n float stroke_opacity = styleMappingMat[0][1];\n float strokeWidth = styleMappingMat[0][2];\n vec4 strokeColor = textrueStroke == vec4(0) ? v_color : textrueStroke;\n\n lowp float antialiasblur = v_data.z;\n float r = v_radius / (v_radius + strokeWidth);\n\n float outer_df;\n float inner_df;\n // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica'\n if (shape == 0) {\n outer_df = sdCircle(v_data.xy, 1.0);\n inner_df = sdCircle(v_data.xy, r);\n } else if (shape == 1) {\n outer_df = sdEquilateralTriangle(1.1 * v_data.xy);\n inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy);\n } else if (shape == 2) {\n outer_df = sdBox(v_data.xy, vec2(1.));\n inner_df = sdBox(v_data.xy, vec2(r));\n } else if (shape == 3) {\n outer_df = sdPentagon(v_data.xy, 0.8);\n inner_df = sdPentagon(v_data.xy, r * 0.8);\n } else if (shape == 4) {\n outer_df = sdHexagon(v_data.xy, 0.8);\n inner_df = sdHexagon(v_data.xy, r * 0.8);\n } else if (shape == 5) {\n outer_df = sdOctogon(v_data.xy, 1.0);\n inner_df = sdOctogon(v_data.xy, r);\n } else if (shape == 6) {\n outer_df = sdHexagram(v_data.xy, 0.52);\n inner_df = sdHexagram(v_data.xy, r * 0.52);\n } else if (shape == 7) {\n outer_df = sdRhombus(v_data.xy, vec2(1.0));\n inner_df = sdRhombus(v_data.xy, vec2(r));\n } else if (shape == 8) {\n outer_df = sdVesica(v_data.xy, 1.1, 0.8);\n inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8);\n }\n\n if(outer_df > antialiasblur + 0.018) discard;\n\n float opacity_t = smoothstep(0.0, antialiasblur, outer_df);\n\n float color_t = strokeWidth < 0.01 ? 0.0 : smoothstep(\n antialiasblur,\n 0.0,\n inner_df\n );\n\n if(strokeWidth < 0.01) {\n gl_FragColor = vec4(v_color.rgb, v_color.a * opacity);\n } else {\n gl_FragColor = mix(vec4(v_color.rgb, v_color.a * opacity), strokeColor * stroke_opacity, color_t);\n }\n\n if(u_additive > 0.0) {\n gl_FragColor *= opacity_t;\n gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a);\n } else {\n gl_FragColor.a *= opacity_t;\n gl_FragColor = filterColor(gl_FragColor);\n }\n}\n",triangulation:l.a,depth:{enable:!0},blend:this.getBlend()}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){var e;null===(e=this.dataTexture)||void 0===e||e.destroy()}},{key:"animateOption2Array",value:function(e){return[e.enable?0:1,e.speed||1,e.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var e=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:c.AttributeType.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:3,update:function(e,t,n,r){var o=S(n,3),i=o[0],a=o[1],c=o[2],u=_.d.fromValues(0,0,1),s=_.d.fromValues(i,0,c),l=i>=0?_.d.angle(u,s):2*Math.PI-_.d.angle(u,s),f=2*Math.PI-Math.asin(a/100),p=_.b.create();_.b.rotateY(p,p,l),_.b.rotateX(p,p,f);var d=_.d.fromValues(1,1,0);_.d.transformMat4(d,d,p),_.d.normalize(d,d);var h=_.d.fromValues(-1,1,0);_.d.transformMat4(h,h,p),_.d.normalize(h,h);var v=_.d.fromValues(-1,-1,0);_.d.transformMat4(v,v,p),_.d.normalize(v,v);var y=_.d.fromValues(1,-1,0);_.d.transformMat4(y,y,p),_.d.normalize(y,y);var m=[].concat(E(d),E(h),E(v),E(y)),g=r%4*3;return[m[g],m[g+1],m[g+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e,t,n,r){var o=e.size,i=void 0===o?5:o;return Array.isArray(i)?[i[0]]:[i]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:c.AttributeType.Attribute,descriptor:{name:"a_Shape",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(t,n,r,o){var i=t.shape,a=void 0===i?2:i;return[e.layer.getLayerConfig().shape2d.indexOf(a)]}}})}}])&&P(t.prototype,n),r&&P(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.a),N=n("sVvE"),I=n("r0HX"),D=n("k0uE");function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H(e,t){return(H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return W(this,n)}}function W(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Y(e)}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}(i,e);var t,n,r,o=G(i);function i(){var e;U(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return X(Y(e=o.call.apply(o,[this].concat(n))),"meter2coord",1),X(Y(e),"isMeter",!1),X(Y(e),"radian",0),X(Y(e),"updateTexture",(function(){var t=e.rendererService.createTexture2D;if(e.texture)return e.texture.update({data:e.iconService.getCanvas(),mag:"linear",min:"linear mipmap nearest",mipmap:!0}),void e.layerService.throttleRenderLayers();e.texture=t({data:e.iconService.getCanvas(),mag:c.gl.LINEAR,min:c.gl.LINEAR_MIPMAP_LINEAR,premultiplyAlpha:!1,width:1024,height:e.iconService.canvasHeight||128,mipmap:!0})})),e}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.offsets,o=void 0===r?[0,0]:r,i=e.rotation,u=e.raisingHeight,s=void 0===u?0:u,l=e.heightfixed,f=void 0!==l&&l;this.rendererService.getDirty()&&this.texture.bind();var p=1;if("GAODE2.x"!==this.mapService.version&&"GAODE1.x"!==this.mapService.version||(p=-1),this.radian=void 0!==i?p*Math.PI*i/180:p*Math.PI*(this.mapService.getRotation()%360)/180,this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n,offsets:o})){this.judgeStyleAttributes({opacity:n,offsets:o});var d=this.layer.getEncodedData(),h=this.calDataFrame(this.cellLength,d,this.cellProperties),v=h.data,y=h.width,m=h.height;this.rowCount=m,this.dataTexture=this.cellLength>0&&v.length>0?this.createTexture2D({flipY:!0,data:v,format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:y,height:m}):this.createTexture2D({flipY:!0,data:[1],format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:1,height:1})}return{u_raisingHeight:Number(s),u_heightfixed:Number(f),u_isMeter:Number(this.isMeter),u_RotateMatrix:new Float32Array([Math.cos(this.radian),Math.sin(this.radian),-Math.sin(this.radian),Math.cos(this.radian)]),u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_texture:this.texture,u_textSize:[1024,this.iconService.canvasHeight||128],u_opacity:a()(n)?n:1,u_offsets:this.isOffsetStatic(o)?o:[0,0]}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),l.g)}},{key:"initModels",value:function(e){this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture);var t=this.layer.getLayerConfig().unit,n=void 0===t?"l7size":t,r=this.mapService.version;"meter"===n&&r!==D.a.L7MAP&&r!==D.a.GLOBEL&&(this.isMeter=!0,this.calMeter2Coord()),this.buildModels(e)}},{key:"calMeter2Coord",value:function(){var e=z(this.layer.getSource().extent,4),t=e[0],n=e[1],r=e[2],o=e[3],i=[(t+r)/2,(n+o)/2];if(this.mapService.version===D.a.MAPBOX&&window.mapboxgl.MercatorCoordinate){var a=window.mapboxgl.MercatorCoordinate.fromLngLat({lng:i[0],lat:i[1]},0),c=1*a.meterInMercatorCoordinateUnits(),u=new window.mapboxgl.MercatorCoordinate(a.x-c,a.y,a.z).toLngLat();this.meter2coord=i[0]-u.lng}else{var s=this.mapService.meterToCoord(i,[t,n]),l=this.mapService.meterToCoord(i,[r===t?r+.1:r,o===n?n+.1:o]);this.meter2coord=(s+l)/2,this.meter2coord||(this.meter2coord=7.70681090738883)}}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o;this.layer.buildLayerModel({moduleName:"pointFillImage",vertexShader:'attribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec3 a_Extrude;\nattribute float a_Size;\nattribute vec2 a_Uv;\nattribute float a_Rotate;\n\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform mat2 u_RotateMatrix;\nuniform float u_isMeter;\n\nvarying vec2 v_uv; // 本身的 uv 坐标\nvarying vec2 v_Iconuv; // icon 贴图的 uv 坐标\n\nuniform float u_raisingHeight: 0.0;\nuniform float u_heightfixed: 0.0;\nuniform float u_opacity : 1;\nuniform vec2 u_offsets;\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "picking"\n\nvoid main() {\n vec3 extrude = a_Extrude;\n\n v_uv = (a_Extrude.xy + 1.0)/2.0;\n v_uv.y = 1.0 - v_uv.y;\n v_Iconuv = a_Uv;\n\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - empty - empty - empty\n 0.0, 0.0, 0.0, 0.0, // empty - empty - empty - empty\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n\n vec2 textrueOffsets = vec2(0.0, 0.0);\n if(hasOffsets()) {\n vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x\n textureOffset += 1.0;\n\n vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x\n textureOffset += 1.0;\n } else {\n textrueOffsets = u_offsets;\n }\n\n // cal style mapping\n\n highp float angle_sin = sin(a_Rotate);\n highp float angle_cos = cos(a_Rotate);\n mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos);\n\n // vec2 offset = (u_RotateMatrix * extrude.xy * (a_Size) + textrueOffsets);\n vec2 offset = (rotation_matrix * u_RotateMatrix * extrude.xy * (a_Size) + textrueOffsets);\n vec3 aPosition = a_Position;\n if(u_isMeter < 1.0) {\n // 不以米为实际单位\n offset = project_pixel(offset);\n } else {\n // 以米为实际单位\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n aPosition.xy += offset;\n offset.x = 0.0;\n offset.y = 0.0;\n }\n }\n\n vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0));\n float raisingHeight = u_raisingHeight;\n if(u_heightfixed < 1.0) { // height fixed\n raisingHeight = project_pixel(u_raisingHeight);\n } else {\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n raisingHeight = u_raisingHeight * mapboxZoomScale;\n }\n }\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * vec4(project_pos.xy + offset, raisingHeight, 1.0);\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, raisingHeight, 1.0));\n }\n \n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0));\n\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'uniform sampler2D u_texture;\nuniform vec2 u_textSize;\n\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\n#pragma include "sdf_2d"\n#pragma include "picking"\nvarying vec2 v_uv; // 本身的 uv 坐标\nvarying vec2 v_Iconuv;\n\nvoid main() {\n\n float opacity = styleMappingMat[0][0];\n\n vec2 pos = v_Iconuv / u_textSize + v_uv / u_textSize * 64.;\n gl_FragColor = texture2D(u_texture, pos);\n gl_FragColor.a *= opacity;\n\n gl_FragColor = filterColor(gl_FragColor);\n}\n',triangulation:l.g,depth:{enable:!1},blend:this.getBlend(),stencil:Object(u.bb)(r,i),cull:{enable:!0,face:Object(u.Y)(this.mapService.version)}}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){var e,t;this.iconService.off("imageUpdate",this.updateTexture),null===(e=this.texture)||void 0===e||e.destroy(),null===(t=this.dataTexture)||void 0===t||t.destroy()}},{key:"registerBuiltinAttributes",value:function(){var e=this;this.styleAttributeService.registerStyleAttribute({name:"rotate",type:c.AttributeType.Attribute,descriptor:{name:"a_Rotate",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e){var t=e.rotate,n=void 0===t?0:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:c.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:2,update:function(t){var n=e.iconService.getIconMap()[t.shape]||{x:0,y:0};return[n.x,n.y]}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:c.AttributeType.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:3,update:function(e,t,n,r){var o=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],i=r%4*3;return[o[i],o[i+1],o[i+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(t){var n=t.size,r=void 0===n?5:n;return Array.isArray(r)?[r[0]*e.meter2coord]:[r*e.meter2coord]}}})}}])&&V(t.prototype,n),r&&V(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.a),Z=n("YM9j"),J=n("sHq1");function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ee(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function re(e,t){return(re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ce(e);if(t){var o=ce(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ie(this,n)}}function ie(e,t){if(t&&("object"===Q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ce(e){return(ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var se=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&re(e,t)}(i,e);var t,n,r,o=oe(i);function i(){var e;te(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ue(ae(e=o.call.apply(o,[this].concat(n))),"meter2coord",1),ue(ae(e),"isMeter",!1),e}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.blend,o=e.speed,i=void 0===o?1:o;return{u_isMeter:Number(this.isMeter),u_speed:i,u_additive:"additive"===r?1:0,u_opacity:a()(n)?n:1}}},{key:"getAnimateUniforms",value:function(){var e=this.layer.getLayerConfig().animateOption,t=void 0===e?{enable:!1}:e;return{u_animate:this.animateOption2Array(t),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),l.g)}},{key:"initModels",value:function(e){var t=this.layer.getLayerConfig().unit,n=void 0===t?"l7size":t,r=this.mapService.version;"meter"===n&&r!==D.a.L7MAP&&r!==D.a.GLOBEL&&(this.isMeter=!0,this.calMeter2Coord()),this.buildModels(e)}},{key:"calMeter2Coord",value:function(){var e=$(this.layer.getSource().extent,4),t=e[0],n=e[1],r=e[2],o=e[3],i=[(t+r)/2,(n+o)/2];if(this.mapService.version===D.a.MAPBOX&&window.mapboxgl.MercatorCoordinate){var a=window.mapboxgl.MercatorCoordinate.fromLngLat({lng:i[0],lat:i[1]},0),c=1*a.meterInMercatorCoordinateUnits(),u=new window.mapboxgl.MercatorCoordinate(a.x-c,a.y,a.z).toLngLat();this.meter2coord=i[0]-u.lng}else{var s=this.mapService.meterToCoord(i,[t,n]),l=this.mapService.meterToCoord(i,[r===t?r+.1:r,o===n?n+.1:o]);this.meter2coord=(s+l)/2,this.meter2coord||(this.meter2coord=7.70681090738883)}}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o;this.layer.buildLayerModel({moduleName:"pointRadar",vertexShader:'attribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec3 a_Extrude;\nattribute float a_Size;\nuniform float u_speed: 1.0;\nuniform float u_time;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float u_isMeter;\n\nvarying vec4 v_data;\nvarying vec4 v_color;\nvarying float v_radius;\nvarying vec2 v_exteude;\n\n#pragma include "projection"\n#pragma include "picking"\n\nvoid main() {\n vec3 extrude = a_Extrude;\n float newSize = setPickingSize(a_Size);\n\n float time = u_time * u_speed;\n mat2 rotateMatrix = mat2( \n cos(time), sin(time), \n -sin(time), cos(time)\n );\n v_exteude = rotateMatrix * a_Extrude.xy;\n\n // unpack color(vec2)\n v_color = a_Color;\n\n // radius(16-bit)\n v_radius = newSize;\n\n // anti-alias\n float blur = 0.0;\n float antialiasblur = -max(2.0 / u_DevicePixelRatio / a_Size, blur);\n\n vec2 offset = (extrude.xy * (newSize));\n vec3 aPosition = a_Position;\n if(u_isMeter < 1.0) {\n // 不以米为实际单位\n offset = project_pixel(offset);\n } else {\n // 以米为实际单位\n antialiasblur *= pow(19.0 - u_Zoom, 2.0);\n antialiasblur = max(antialiasblur, -0.01);\n // offset *= 0.5;\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n aPosition.xy += offset;\n offset.x = 0.0;\n offset.y = 0.0;\n }\n }\n\n v_data = vec4(extrude.x, extrude.y, antialiasblur, -1.0);\n\n vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * vec4(project_pos.xy + offset, 0.0, 1.0);\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0));\n }\n\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'\nuniform float u_additive;\nuniform float u_opacity: 1.0;\n\nvarying vec4 v_data;\nvarying vec4 v_color;\nvarying float v_radius;\nvarying vec2 v_exteude;\n#pragma include "sdf_2d"\n#pragma include "picking"\n\nvoid main() {\n\n lowp float antialiasblur = v_data.z;\n float r = v_radius / (v_radius);\n\n float outer_df = sdCircle(v_data.xy, 1.0);\n float inner_df = sdCircle(v_data.xy, r);\n\n float opacity_t = smoothstep(0.0, antialiasblur, outer_df);\n\n gl_FragColor = vec4(v_color.rgb, v_color.a * u_opacity);\n\n if(u_additive > 0.0) {\n gl_FragColor *= opacity_t;\n } else {\n gl_FragColor.a *= opacity_t;\n }\n\n if(gl_FragColor.a > 0.0) {\n gl_FragColor = filterColor(gl_FragColor);\n }\n\n vec2 extrude = v_exteude;\n vec2 dir = normalize(extrude);\n vec2 baseDir = vec2(1.0, 0.0);\n float pi = 3.14159265359;\n // full circle\n // float rades = dot(dir, baseDir);\n // float flag = sign(dir.y);\n // float radar_v = (flag - 1.0) * -0.5 + flag * acos(rades)/pi/2.0;\n \n // half circle\n float flag = sign(dir.y);\n float rades = dot(dir, baseDir);\n float radar_v = (flag - 1.0) * -0.5 * acos(rades)/pi;\n // simple AA\n if(radar_v > 0.99) {\n radar_v = 1.0 - (radar_v - 0.99)/0.01;\n }\n\n gl_FragColor.a *= radar_v;\n}\n',triangulation:l.g,depth:{enable:!1},blend:this.getBlend(),stencil:Object(u.bb)(r,i)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){var e;null===(e=this.dataTexture)||void 0===e||e.destroy()}},{key:"animateOption2Array",value:function(e){return[e.enable?0:1,e.speed||1,e.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var e=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:c.AttributeType.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:3,update:function(e,t,n,r){var o=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],i=r%4*3;return[o[i],o[i+1],o[i+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(t){var n=t.size,r=void 0===n?5:n;return Array.isArray(r)?[r[0]*e.meter2coord]:[r*e.meter2coord]}}})}}])&&ne(t.prototype,n),r&&ne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.a);function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,t){return(de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function he(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ye(e);if(t){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ve(this,n)}}function ve(e,t){if(t&&("object"===le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function me(e){return function(e){if(Array.isArray(e))return ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ge(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function be(e){var t=e.coordinates;return{vertices:me(t),indices:[0],size:t.length}}var Oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&de(e,t)}(i,e);var t,n,r,o=he(i);function i(){return fe(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getDefaultStyle",value:function(){return{blend:"additive"}}},{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.offsets,o=void 0===r?[0,0]:r,i=e.blend,u=e.strokeOpacity,s=void 0===u?1:u,l=e.strokeWidth,f=void 0===l?0:l,p=e.stroke,d=void 0===p?"#fff":p;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n,offsets:o})){this.judgeStyleAttributes({opacity:n,offsets:o});var h=this.layer.getEncodedData(),v=this.calDataFrame(this.cellLength,h,this.cellProperties),y=v.data,m=v.width,g=v.height;this.rowCount=g,this.dataTexture=this.cellLength>0&&y.length>0?this.createTexture2D({flipY:!0,data:y,format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:m,height:g}):this.createTexture2D({flipY:!0,data:[1],format:c.gl.LUMINANCE,type:c.gl.FLOAT,width:1,height:1})}return{u_additive:"additive"===i?1:0,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:a()(n)?n:1,u_offsets:this.isOffsetStatic(o)?o:[0,0],u_stroke_opacity:a()(s)?s:1,u_stroke_width:a()(f)?f:1,u_stroke_color:this.getStrokeColor(d)}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o;this.layer.triangulation=be,this.layer.buildLayerModel({moduleName:"pointSimple",vertexShader:'\nattribute vec3 a_Position;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nattribute float a_Size;\nattribute vec4 a_Color;\nvarying vec4 v_color;\n\nuniform float u_opacity : 1;\nuniform vec2 u_offsets;\nuniform float u_stroke_width;\n\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\nvarying float v_blur;\nvarying float v_innerRadius;\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "picking"\n#pragma include "project"\nvoid main() {\n v_color = a_Color;\n v_blur = 1.0 - max(2.0/a_Size, 0.05);\n v_innerRadius = max((a_Size - u_stroke_width) / a_Size, 0.0);\n\n // cal style mapping - 数据纹理映射部分的计算\nstyleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n\n vec2 textrueOffsets = vec2(0.0, 0.0);\n if(hasOffsets()) {\n vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x\n textureOffset += 1.0;\n\n vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x\n textureOffset += 1.0;\n } else {\n textrueOffsets = u_offsets;\n }\n\n // cal style mapping\n \n vec2 offset = project_pixel(textrueOffsets);\n \n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * vec4(a_Position.xy + offset, a_Position.z, 1.0);\n } else { // else\n vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.);\n gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy+offset),project_pos.z,project_pos.w));\n }\n\n gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio;\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'\nuniform float u_opacity : 1;\nuniform vec2 u_offsets;\nuniform float u_additive;\n\nuniform float u_stroke_opacity : 1;\n\nuniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0];\n\nvarying vec4 v_color;\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\nvarying float v_blur;\nvarying float v_innerRadius;\n\n#pragma include "picking"\nvoid main() {\n vec2 center = vec2(0.5);\n\n float opacity = styleMappingMat[0][0];\n // Tip: 片元到中心点的距离 0 - 1\n float fragmengTocenter = distance(center, gl_PointCoord) * 2.0;\n // Tip: 片元的剪切成圆形\n float circleClipOpacity = 1.0 - smoothstep(v_blur, 1.0, fragmengTocenter);\n\n\n if(v_innerRadius < 0.99) {\n // 当存在 stroke 且 stroke > 0.01\n float blurWidth = (1.0 - v_blur)/2.0;\n vec4 stroke = vec4(u_stroke_color.rgb, u_stroke_opacity);\n if(fragmengTocenter > v_innerRadius + blurWidth) {\n gl_FragColor = stroke;\n } else if(fragmengTocenter > v_innerRadius - blurWidth){\n float mixR = (fragmengTocenter - (v_innerRadius - blurWidth)) / (blurWidth * 2.0);\n gl_FragColor = mix(v_color, stroke, mixR);\n } else {\n gl_FragColor = v_color;\n }\n } else {\n // 当不存在 stroke 或 stroke <= 0.01\n gl_FragColor = v_color;\n }\n\n gl_FragColor.a *= opacity;\n\n gl_FragColor = filterColor(gl_FragColor);\n \n if(u_additive > 0.0) {\n gl_FragColor *= circleClipOpacity;\n } else {\n gl_FragColor.a *= circleClipOpacity;\n }\n\n}\n',triangulation:be,depth:{enable:!1},primitive:c.gl.POINTS,blend:this.getBlend(),stencil:Object(u.bb)(r,i)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){var e;null===(e=this.dataTexture)||void 0===e||e.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:c.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:c.gl.DYNAMIC_DRAW,data:[],type:c.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0]]:[n]}}})}}])&&pe(t.prototype,n),r&&pe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(s.a),we=n("H+8G"),_e=n("WWiX"),xe=n("z/oK"),Ee={fillImage:q,fill:I.a,radar:se,image:Z.a,normal:J.a,simplePoint:Oe,extrude:N.a,text:we.a,vectorPoint:o.a,tile:xe.a,tileText:_e.a,earthFill:R,earthExtrude:w},Se=n("Hv1p");function Ce(e){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ke(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Me(e,t){return(Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ne(e);if(t){var o=Ne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function Le(e,t){if(t&&("object"===Ce(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Re(e)}function Re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var De=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Me(e,t)}(i,e);var t,n,r,o=Ae(i);function i(){var e;Pe(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ie(Re(e=o.call.apply(o,[this].concat(n))),"type","PointLayer"),Ie(Re(e),"defaultSourceConfig",{data:[],options:{parser:{type:"json",x:"lng",y:"lat"}}}),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new Ee[t](this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"getModelTypeWillEmptyData",value:function(){if(this.shapeOption){var e=this.shapeOption,t=e.field,n=e.values,r=this.getLayerConfig().shape2d,o=this.iconService.getIconMap();if(t&&-1!==(null==r?void 0:r.indexOf(t)))return"fill";if(n&&n instanceof Array){var i,a=je(n);try{for(a.s();!(i=a.n()).done;){var c=i.value;if("string"==typeof c&&o.hasOwnProperty(c))return"image"}}catch(u){a.e(u)}finally{a.f()}}}return"normal"}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getDefaultConfig",value:function(){return{fillImage:{},normal:{blend:"additive"},radar:{},simplePoint:{},fill:{blend:"normal"},extrude:{},image:{},text:{blend:"normal"},vectorPoint:{},tile:{},tileText:{},earthFill:{},earthExtrude:{}}[this.getModelType()]}},{key:"getModelType",value:function(){var e=this.layerSource.getParserType();if(Object(Se.c)(e))return"vectorPoint";var t=this.getEncodedData(),n=this.getLayerConfig(),r=n.shape2d,o=n.shape3d,i=this.iconService.getIconMap(),a=t.find((function(e){return e.hasOwnProperty("shape")}));if(a){var c=a.shape;return"dot"===c?"normal":"simple"===c?"simplePoint":"radar"===c?"radar":"fillImage"===this.layerType?"fillImage":-1!==(null==r?void 0:r.indexOf(c))?"GLOBEL"===this.mapService.version?"earthFill":"fill":-1!==(null==o?void 0:o.indexOf(c))?"GLOBEL"===this.mapService.version?"earthExtrude":"extrude":i.hasOwnProperty(c)?"image":"text"}return this.getModelTypeWillEmptyData()}}])&&Te(t.prototype,n),r&&Te(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a)},CD8Q:function(e,t,n){var r=n("tUYG"),o=n("dSaG"),i=n("z9Ev"),a=n("YN6n"),c=n("66Bn"),u=n("fVMg"),s=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw s("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},CLJ7:function(e,t,n){},CT8p:function(e,t,n){e.exports=function(){var e=!1;-1!==navigator.appVersion.indexOf("MSIE 10")&&(e=!0);var t,n=[],r="object"==typeof document&&document,o=e?r.documentElement.doScroll("left"):r.documentElement.doScroll,i=r&&(o?/^loaded|^c/:/^loaded|^i|^c/).test(r.readyState);return!i&&r&&r.addEventListener("DOMContentLoaded",t=function(){for(r.removeEventListener("DOMContentLoaded",t),i=1;t=n.shift();)t()}),function(e){i?setTimeout(e,0):n.push(e)}}()},CWQg:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}},CYhr:function(e,t,n){"use strict";var r=n("y7Du"),o=Object(r.a)(Object,"create");var i=function(){this.__data__=o?o(null):{},this.size=0};var a=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},c=Object.prototype.hasOwnProperty;var u=function(e){var t=this.__data__;if(o){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return c.call(t,e)?t[e]:void 0},s=Object.prototype.hasOwnProperty;var l=function(e){var t=this.__data__;return o?void 0!==t[e]:s.call(t,e)};var f=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this};function p(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}p.prototype.clear=i,p.prototype.delete=a,p.prototype.get=u,p.prototype.has=l,p.prototype.set=f;var d=p,h=n("Go5w"),v=n("OJPH");var y=function(){this.size=0,this.__data__={hash:new d,map:new(v.a||h.a),string:new d}};var m=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var g=function(e,t){var n=e.__data__;return m(t)?n["string"==typeof t?"string":"hash"]:n.map};var b=function(e){var t=g(this,e).delete(e);return this.size-=t?1:0,t};var O=function(e){return g(this,e).get(e)};var w=function(e){return g(this,e).has(e)};var _=function(e,t){var n=g(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function x(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}x.prototype.clear=y,x.prototype.delete=b,x.prototype.get=O,x.prototype.has=w,x.prototype.set=_;t.a=x},CZO1:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="CheckCircleFilled";t.a=o.forwardRef(c)},CZlo:function(e,t){e.exports=function(e){return void 0===e}},CbIe:function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},CdeR:function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}e.exports=function(e,t){return function n(o){return function(){for(var i=arguments.length,a=Array(i),c=0;c<i;c++)a[c]=arguments[c];var u=o.concat(a),s=u.length;return s<e?n(u):t.apply(void 0,r(u))}}([])}},"Coc+":function(e,t,n){var r=n("6QIk");e.exports=function(e){return r(this.__data__,e)>-1}},Czhu:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("zjfJ");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},"D/HN":function(e,t,n){"use strict";t.encode=n("eP0R"),t.decode=n("3mJI")},D49j:function(e,t,n){var r=n("zWgn");e.exports=function(e){return"function"==typeof e?e:r}},D57K:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"g",(function(){return f}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function c(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}Object.create;function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function l(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function f(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},D7Mn:function(e,t,n){var r=n("GlBG");e.exports=function(e,t){return r(t,e,0)>=0}},"DE/k":function(e,t,n){"use strict";var r=n("GAvS"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r.a?r.a.toStringTag:void 0;var u=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(u){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o},s=Object.prototype.toString;var l=function(e){return s.call(e)},f=r.a?r.a.toStringTag:void 0;t.a=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":f&&f in Object(e)?u(e):l(e)}},DKDb:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;var a=n("Y2Wc"),c=n("KWcp"),u=n("BEDn"),s=n("2u/a"),l=n("1DJ1"),f=n("UvhB"),p=n("+AHF"),d=n("5YOo"),h=n("+OwM"),v=n("o7q5"),y=n("VYXi"),m=n("PkGC"),g=function(){function e(e){this._appliedMiddleware=[];var t=e||{};if("object"!=typeof t)throw new Error(""+c.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(void 0===t.defaultScope)t.defaultScope=u.BindingScopeEnum.Transient;else if(t.defaultScope!==u.BindingScopeEnum.Singleton&&t.defaultScope!==u.BindingScopeEnum.Transient&&t.defaultScope!==u.BindingScopeEnum.Request)throw new Error(""+c.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(void 0===t.autoBindInjectable)t.autoBindInjectable=!1;else if("boolean"!=typeof t.autoBindInjectable)throw new Error(""+c.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(void 0===t.skipBaseClassChecks)t.skipBaseClassChecks=!1;else if("boolean"!=typeof t.skipBaseClassChecks)throw new Error(""+c.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:t.autoBindInjectable,defaultScope:t.defaultScope,skipBaseClassChecks:t.skipBaseClassChecks},this.id=h.id(),this._bindingDictionary=new m.Lookup,this._snapshots=[],this._middleware=null,this.parent=null,this._metadataReader=new l.MetadataReader}return e.merge=function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var a=new e,c=i([t,n],r).map((function(e){return f.getBindingDictionary(e)})),u=f.getBindingDictionary(a);function s(e,t){e.traverse((function(e,n){n.forEach((function(e){t.add(e.serviceIdentifier,e.clone())}))}))}return c.forEach((function(e){s(e,u)})),a},e.prototype.load=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=this._getContainerModuleHelpersFactory(),r=0,o=e;r<o.length;r++){var i=o[r],a=n(i.id);i.registry(a.bindFunction,a.unbindFunction,a.isboundFunction,a.rebindFunction)}},e.prototype.loadAsync=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(this,void 0,void 0,(function(){var t,n,r,i,a;return o(this,(function(o){switch(o.label){case 0:t=this._getContainerModuleHelpersFactory(),n=0,r=e,o.label=1;case 1:return n<r.length?(i=r[n],a=t(i.id),[4,i.registry(a.bindFunction,a.unbindFunction,a.isboundFunction,a.rebindFunction)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},e.prototype.unload=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=function(e){return function(t){return t.moduleId===e}};t.forEach((function(t){var n=r(t.id);e._bindingDictionary.removeByCondition(n)}))},e.prototype.bind=function(e){var t=this.options.defaultScope||u.BindingScopeEnum.Transient,n=new a.Binding(e,t);return this._bindingDictionary.add(e,n),new d.BindingToSyntax(n)},e.prototype.rebind=function(e){return this.unbind(e),this.bind(e)},e.prototype.unbind=function(e){try{this._bindingDictionary.remove(e)}catch(t){throw new Error(c.CANNOT_UNBIND+" "+v.getServiceIdentifierAsString(e))}},e.prototype.unbindAll=function(){this._bindingDictionary=new m.Lookup},e.prototype.isBound=function(e){var t=this._bindingDictionary.hasKey(e);return!t&&this.parent&&(t=this.parent.isBound(e)),t},e.prototype.isBoundNamed=function(e,t){return this.isBoundTagged(e,s.NAMED_TAG,t)},e.prototype.isBoundTagged=function(e,t,n){var r=!1;if(this._bindingDictionary.hasKey(e)){var o=this._bindingDictionary.get(e),i=f.createMockRequest(this,e,t,n);r=o.some((function(e){return e.constraint(i)}))}return!r&&this.parent&&(r=this.parent.isBoundTagged(e,t,n)),r},e.prototype.snapshot=function(){this._snapshots.push(y.ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware))},e.prototype.restore=function(){var e=this._snapshots.pop();if(void 0===e)throw new Error(c.NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=e.bindings,this._middleware=e.middleware},e.prototype.createChild=function(t){var n=new e(t||this.options);return n.parent=this,n},e.prototype.applyMiddleware=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._appliedMiddleware=this._appliedMiddleware.concat(e);var n=this._middleware?this._middleware:this._planAndResolve();this._middleware=e.reduce((function(e,t){return t(e)}),n)},e.prototype.applyCustomMetadataReader=function(e){this._metadataReader=e},e.prototype.get=function(e){return this._get(!1,!1,u.TargetTypeEnum.Variable,e)},e.prototype.getTagged=function(e,t,n){return this._get(!1,!1,u.TargetTypeEnum.Variable,e,t,n)},e.prototype.getNamed=function(e,t){return this.getTagged(e,s.NAMED_TAG,t)},e.prototype.getAll=function(e){return this._get(!0,!0,u.TargetTypeEnum.Variable,e)},e.prototype.getAllTagged=function(e,t,n){return this._get(!1,!0,u.TargetTypeEnum.Variable,e,t,n)},e.prototype.getAllNamed=function(e,t){return this.getAllTagged(e,s.NAMED_TAG,t)},e.prototype.resolve=function(e){var t=this.createChild();return t.bind(e).toSelf(),this._appliedMiddleware.forEach((function(e){t.applyMiddleware(e)})),t.get(e)},e.prototype._getContainerModuleHelpersFactory=function(){var e=this,t=function(e,t){e._binding.moduleId=t},n=function(n){return function(r){var o=e.rebind.bind(e)(r);return t(o,n),o}};return function(r){return{bindFunction:(o=r,function(n){var r=e.bind.bind(e)(n);return t(r,o),r}),isboundFunction:function(t){return e.isBound.bind(e)(t)},rebindFunction:n(r),unbindFunction:function(t){e.unbind.bind(e)(t)}};var o}},e.prototype._get=function(e,t,n,r,o,i){var a=null,u={avoidConstraints:e,contextInterceptor:function(e){return e},isMultiInject:t,key:o,serviceIdentifier:r,targetType:n,value:i};if(this._middleware){if(null==(a=this._middleware(u)))throw new Error(c.INVALID_MIDDLEWARE_RETURN)}else a=this._planAndResolve()(u);return a},e.prototype._planAndResolve=function(){var e=this;return function(t){var n=f.plan(e._metadataReader,e,t.isMultiInject,t.targetType,t.serviceIdentifier,t.key,t.value,t.avoidConstraints);return n=t.contextInterceptor(n),p.resolve(n)}},e}();t.Container=g},Dhk8:function(e,t,n){var r=n("Syyo"),o=n("KCLV"),i=n("kHoZ"),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},DjCF:function(e,t){e.exports=function(){return!1}},DjlN:function(e,t,n){var r=n("eiXn"),o=n("POgt"),i=n("N9G2"),a=n("MyxS"),c=n("gC6d"),u=a("IE_PROTO"),s=Object,l=s.prototype;e.exports=c?s.getPrototypeOf:function(e){var t=i(e);if(r(t,u))return t[u];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof s?l:null}},Dl9d:function(e,t,n){var r=n("D7Mn"),o=n("WhsZ");e.exports=o(r)},Dot1:function(e,t,n){"use strict";var r=n("SEb4"),o=n("G12H"),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.a=function(e,t){if(Object(r.a)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Object(o.a)(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},DpO5:function(e,t){e.exports=!1},DuXo:function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},DxcO:function(e,t,n){"use strict";var r,o,i;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),function(e){e.LINEAR="linear",e.SEQUENTIAL="sequential",e.POWER="power",e.LOG="log",e.IDENTITY="identity",e.TIME="time",e.QUANTILE="quantile",e.QUANTIZE="quantize",e.THRESHOLD="threshold",e.CAT="cat",e.DIVERGING="diverging"}(r||(r={})),function(e){e.CONSTANT="constant",e.VARIABLE="variable"}(o||(o={})),function(e){e[e.Attribute=0]="Attribute",e[e.InstancedAttribute=1]="InstancedAttribute",e[e.Uniform=2]="Uniform"}(i||(i={}))},Dxeu:function(e,t,n){"use strict";(function(e,r){function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}n.d(t,"a",(function(){return G})),n.d(t,"b",(function(){return H})),n.d(t,"c",(function(){return I})),n.d(t,"d",(function(){return V}));var s={exports:{}},l={exports:{}},f={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0},e.exports=t.default}(f,f.exports);var p={},d={exports:{}},h={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t.pop();return e.call(this,t,r)}},e.exports=t.default}(h,h.exports);var v={};Object.defineProperty(v,"__esModule",{value:!0}),v.fallback=O,v.wrap=w;var y,m=v.hasQueueMicrotask="function"==typeof queueMicrotask&&queueMicrotask,g=v.hasSetImmediate="function"==typeof e&&e,b=v.hasNextTick="object"==typeof r&&"function"==typeof r.nextTick;function O(e){setTimeout(e,0)}function w(e){return function(t){for(var n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return e((function(){return t.apply(void 0,n)}))}}y=m?queueMicrotask:g?e:b?r.nextTick:O,v.default=w(y),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.isAsync)(e))return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t.pop(),o=e.apply(this,t);return a(o,r)};return(0,n.default)((function(t,n){var r;try{r=e.apply(this,t)}catch(o){return n(o)}if(r&&"function"==typeof r.then)return a(r,n);n(null,r)}))};var n=i(h.exports),r=i(v),o=p;function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return e.then((function(e){c(t,null,e)}),(function(e){c(t,e&&e.message?e:new Error(e))}))}function c(e,t,n){try{e(t,n)}catch(o){(0,r.default)((function(e){throw e}),o)}}e.exports=t.default}(d,d.exports),Object.defineProperty(p,"__esModule",{value:!0}),p.isAsyncIterable=p.isAsyncGenerator=p.isAsync=void 0;var _,x=(_=d.exports)&&_.__esModule?_:{default:_};function E(e){return"AsyncFunction"===e[Symbol.toStringTag]}p.default=function(e){if("function"!=typeof e)throw new Error("expected a function");return E(e)?(0,x.default)(e):e},p.isAsync=E,p.isAsyncGenerator=function(e){return"AsyncGenerator"===e[Symbol.toStringTag]},p.isAsyncIterable=function(e){return"function"==typeof e[Symbol.asyncIterator]};var S={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===t&&(t=e.length);if(!t)throw new Error("arity is undefined");return function(){for(var n=this,r=[],o=arguments.length;o--;)r[o]=arguments[o];return"function"==typeof r[t-1]?e.apply(this,r):new Promise((function(o,i){r[t-1]=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(e)return i(e);o(t.length>1?t:t[0])},e.apply(n,r)}))}},e.exports=t.default}(S,S.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=i(f.exports),r=i(p),o=i(S.exports);function i(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,o){var i=(0,n.default)(t)?[]:{};e(t,(function(e,t,n){(0,r.default)(e)((function(e){for(var r=[],o=arguments.length-1;o-- >0;)r[o]=arguments[o+1];r.length<2&&(r=r[0]),i[t]=r,n(e)}))}),(function(e){return o(e,i)}))}),3),e.exports=t.default}(l,l.exports);var C={exports:{}},j={exports:{}},k={exports:{}},P={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(null!==e){var r=e;e=null,r.apply(this,t)}}return Object.assign(t,e),t},e.exports=t.default}(P,P.exports);var T={exports:{}},M={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()},e.exports=t.default}(M,M.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t=(0,r.default)(e);return t?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(t):function(e){var t=e?Object.keys(e):[],n=-1,r=t.length;return function o(){var i=t[++n];return"__proto__"===i?o():n<r?{value:e[i],key:i}:null}}(e)};var n=o(f.exports),r=o(M.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default}(T,T.exports);var A={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(null===e)throw new Error("Callback was already called.");var r=e;e=null,r.apply(this,t)}},e.exports=t.default}(A,A.exports);var L={exports:{}},R={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={},e.exports=t.default}(R,R.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,o){var i=!1,a=!1,c=!1,u=0,s=0;function l(){u>=t||c||i||(c=!0,e.next().then((function(e){var t=e.value,n=e.done;if(!a&&!i){if(c=!1,n)return i=!0,void(u<=0&&o(null));u++,r(t,s,f),s++,l()}})).catch(p))}function f(e,t){if(u-=1,!a)return e?p(e):!1===e?(i=!0,void(a=!0)):t===n.default||i&&u<=0?(i=!0,o(null)):void l()}function p(e){a||(c=!1,i=!0,o(e))}l()};var n=function(e){return e&&e.__esModule?e:{default:e}}(R.exports);e.exports=t.default}(L,L.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=u(P.exports),r=u(T.exports),o=u(A.exports),i=p,a=u(L.exports),c=u(R.exports);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return function(t,u,s){if(s=(0,n.default)(s),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return s(null);if((0,i.isAsyncGenerator)(t))return(0,a.default)(t,e,u,s);if((0,i.isAsyncIterable)(t))return(0,a.default)(t[Symbol.asyncIterator](),e,u,s);var l=(0,r.default)(t),f=!1,p=!1,d=0,h=!1;function v(e,t){if(!p)if(d-=1,e)f=!0,s(e);else if(!1===e)f=!0,p=!0;else{if(t===c.default||f&&d<=0)return f=!0,s(null);h||y()}}function y(){for(h=!0;d<e&&!f;){var t=l();if(null===t)return f=!0,void(d<=0&&s(null));d+=1,u(t.value,t.key,(0,o.default)(v))}h=!1}y()}},e.exports=t.default}(k,k.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=i(k.exports),r=i(p),o=i(S.exports);function i(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,o,i){return(0,n.default)(t)(e,(0,r.default)(o),i)}),4),e.exports=t.default}(j,j.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=o(j.exports),r=o(S.exports);function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.default)((function(e,t,r){return(0,n.default)(e,1,t,r)}),3),e.exports=t.default}(C,C.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(r.default,e,t)};var n=o(l.exports),r=o(C.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default}(s,s.exports);var N=u(s.exports),I=function(){function e(){this.args=[],this.tasks=[]}return e.prototype.call=function(){for(var e=arguments,t=[],n=0;n<arguments.length;n++)t[n]=e[n];return this.args=t,N(this.tasks)},e.prototype.tap=function(e,t){var n=this;this.tasks.push((function(r){t.apply(void 0,c([],a(n.args),!1)),r(null,e)}))},e}(),D={exports:{}},F={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=s(f.exports),r=s(R.exports),o=s(j.exports),i=s(P.exports),a=s(A.exports),c=s(p),u=s(S.exports);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){n=(0,i.default)(n);var o=0,c=0,u=e.length,s=!1;function l(e,t){!1===e&&(s=!0),!0!==s&&(e?n(e):++c!==u&&t!==r.default||n(null))}for(0===u&&n(null);o<u;o++)t(e[o],o,(0,a.default)(l))}function d(e,t,n){return(0,o.default)(e,1/0,t,n)}t.default=(0,u.default)((function(e,t,r){return((0,n.default)(e)?l:d)(e,(0,c.default)(t),r)}),3),e.exports=t.default}(F,F.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(n.default,e,t)};var n=o(F.exports),r=o(l.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default}(D,D.exports);var z=u(D.exports),B=(function(){function e(){this.tasks=[]}e.prototype.promise=function(){return z(this.tasks)},e.prototype.tapPromise=function(e,t){var n=this;this.tasks.push((function(r){return o(n,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,t()];case 1:return n.sent(),r(null,e),[2]}}))}))}))}}(),{exports:{}});!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(P.exports),r=a(A.exports),o=a(p),i=a(S.exports);function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t){if(t=(0,n.default)(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var i=0;function a(t){(0,o.default)(e[i++]).apply(void 0,t.concat([(0,r.default)(c)]))}function c(n){for(var r=[],o=arguments.length-1;o-- >0;)r[o]=arguments[o+1];if(!1!==n)return n||i===e.length?t.apply(void 0,[n].concat(r)):void a(r)}a([])})),e.exports=t.default}(B,B.exports);var U=u(B.exports),V=function(){function e(){this.tasks=[]}return e.prototype.call=function(){return U(this.tasks)},e.prototype.tap=function(e,t){0===this.tasks.length?this.tasks.push((function(e){var n=t();e(!!n&&null,n)})):this.tasks.push((function(n,r){r(!!t()&&null,e)}))},e}(),H=function(){function e(){this.tasks=[]}return e.prototype.call=function(){return N(this.tasks)},e.prototype.tap=function(e,t){this.tasks.push((function(n){n(t(),e)}))},e}(),G=function(){function e(){this.args=[],this.tasks=[]}return e.prototype.promise=function(){for(var e=arguments,t=[],n=0;n<arguments.length;n++)t[n]=e[n];return this.args=t,N(this.tasks)},e.prototype.tapPromise=function(e,t){var n=this;this.tasks.push((function(r){return o(n,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,t.apply(void 0,c([],a(this.args),!1))];case 1:return n.sent(),r(null,e),[2]}}))}))}))},e}()}).call(this,n("/Qos").setImmediate,n("F63i"))},E10a:function(e,t,n){var r=n("JRy8");e.exports=function(e,t){return new r(e,t)},e.exports.Socket=r,e.exports.protocol=r.protocol,e.exports.Transport=n("Y3rH"),e.exports.transports=n("cbhl"),e.exports.parser=n("5w0e")},E2Zb:function(e,t,n){"use strict";var r=/^(?:0|[1-9]\d*)$/;t.a=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},E4ao:function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},EAGB:function(e,t,n){var r=n("mGzy");e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},ECub:function(e,t,n){"use strict";var r=n("zjfJ"),o=n("cxan"),i=n("O94r"),a=n.n(i),c=n("ERkP"),u=n("H84U"),s=n("YMnH"),l=function(){var e=(0,c.useContext(u.b).getPrefixCls)("empty-img-default");return c.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),c.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),c.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),c.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),c.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),c.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},f=function(){var e=(0,c.useContext(u.b).getPrefixCls)("empty-img-simple");return c.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},c.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),c.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))},p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d=c.createElement(l,null),h=c.createElement(f,null),v=function(e){var t=e.className,n=e.prefixCls,i=e.image,l=void 0===i?d:i,f=e.description,v=e.children,y=e.imageStyle,m=p(e,["className","prefixCls","image","description","children","imageStyle"]),g=c.useContext(u.b),b=g.getPrefixCls,O=g.direction;return c.createElement(s.a,{componentName:"Empty"},(function(e){var i,u=b("empty",n),s=void 0!==f?f:e.description,p="string"==typeof s?s:"empty",d=null;return d="string"==typeof l?c.createElement("img",{alt:p,src:l}):l,c.createElement("div",Object(o.a)({className:a()(u,(i={},Object(r.a)(i,"".concat(u,"-normal"),l===h),Object(r.a)(i,"".concat(u,"-rtl"),"rtl"===O),i),t)},m),c.createElement("div",{className:"".concat(u,"-image"),style:y},d),s&&c.createElement("div",{className:"".concat(u,"-description")},s),v&&c.createElement("div",{className:"".concat(u,"-footer")},v))}))};v.PRESENTED_IMAGE_DEFAULT=d,v.PRESENTED_IMAGE_SIMPLE=h;t.a=v},EE3K:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("cxan"),o=n("zjfJ"),i=n("9fIP"),a=n("MMYH"),c=n("8K1b"),u=n("AqVP"),s=n("ERkP"),l=n("7nmT"),f=n.n(l),p=n("O94r"),d=n.n(p),h=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,r=n.onClose,o=n.noticeKey;r&&r(o)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,a=t.closable,c=t.closeIcon,u=t.style,l=t.onClick,p=t.children,h=t.holder,v="".concat(n,"-notice"),y=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),m=s.createElement("div",Object(r.a)({className:d()(v,i,Object(o.a)({},"".concat(v,"-closable"),a)),style:u,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:l},y),s.createElement("div",{className:"".concat(v,"-content")},p),a?s.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(v,"-close")},c||s.createElement("span",{className:"".concat(v,"-close-x")})):null);return h?f.a.createPortal(m,h):m}}]),n}(s.Component);h.defaultProps={onClose:function(){},duration:1.5}},EFp3:function(e,t,n){},EI7Z:function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},ENE1:function(e,t,n){var r=n("IBsm");e.exports=function(){return r.Date.now()}},EXcs:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return u}));var r=n("CWQg"),o=function(){return{height:0,opacity:0}},i=function(e){return{height:e.scrollHeight,opacity:1}},a=function(e,t){return!0===(null==t?void 0:t.deadline)||"height"===t.propertyName},c={motionName:"ant-motion-collapse",onAppearStart:o,onEnterStart:o,onAppearActive:i,onEnterActive:i,onLeaveStart:function(e){return{height:e?e.offsetHeight:0}},onLeaveActive:o,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500},u=(Object(r.a)("bottomLeft","bottomRight","topLeft","topRight"),function(e){return void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down"}),s=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)};t.a=c},EaUz:function(e,t,n){var r=n("BkAM"),o=n("hNjE"),i=n("A43l");e.exports=r((function(e){return!!o(e)||!!e&&("object"==typeof e&&(!i(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}))},EaxY:function(e,t,n){"use strict";var r=n("y7Du"),o=n("fw2E"),i=Object(r.a)(o.a,"DataView"),a=n("OJPH"),c=Object(r.a)(o.a,"Promise"),u=Object(r.a)(o.a,"Set"),s=Object(r.a)(o.a,"WeakMap"),l=n("DE/k"),f=n("XKHd"),p=Object(f.a)(i),d=Object(f.a)(a.a),h=Object(f.a)(c),v=Object(f.a)(u),y=Object(f.a)(s),m=l.a;(i&&"[object DataView]"!=m(new i(new ArrayBuffer(1)))||a.a&&"[object Map]"!=m(new a.a)||c&&"[object Promise]"!=m(c.resolve())||u&&"[object Set]"!=m(new u)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=Object(l.a)(e),n="[object Object]"==t?e.constructor:void 0,r=n?Object(f.a)(n):"";if(r)switch(r){case p:return"[object DataView]";case d:return"[object Map]";case h:return"[object Promise]";case v:return"[object Set]";case y:return"[object WeakMap]"}return t});t.a=m},Ebtn:function(e,t,n){"use strict";t.__esModule=!0,t.useScrollRestoration=function(e){var t=(0,i.useLocation)(),n=(0,o.useContext)(r.ScrollContext),a=(0,o.useRef)();return(0,o.useLayoutEffect)((function(){if(a.current){var r=n.read(t,e);a.current.scrollTo(0,r||0)}}),[]),{ref:a,onScroll:function(){a.current&&n.save(t,e,a.current.scrollTop)}}};var r=n("B8dz"),o=n("ERkP"),i=n("tYqs")},"F/1k":function(e,t,n){"use strict";n.r(t),n.d(t,"create",(function(){return o})),n.d(t,"clone",(function(){return i})),n.d(t,"fromValues",(function(){return a})),n.d(t,"copy",(function(){return c})),n.d(t,"set",(function(){return u})),n.d(t,"add",(function(){return s})),n.d(t,"subtract",(function(){return l})),n.d(t,"multiply",(function(){return f})),n.d(t,"divide",(function(){return p})),n.d(t,"ceil",(function(){return d})),n.d(t,"floor",(function(){return h})),n.d(t,"min",(function(){return v})),n.d(t,"max",(function(){return y})),n.d(t,"round",(function(){return m})),n.d(t,"scale",(function(){return g})),n.d(t,"scaleAndAdd",(function(){return b})),n.d(t,"distance",(function(){return O})),n.d(t,"squaredDistance",(function(){return w})),n.d(t,"length",(function(){return _})),n.d(t,"squaredLength",(function(){return x})),n.d(t,"negate",(function(){return E})),n.d(t,"inverse",(function(){return S})),n.d(t,"normalize",(function(){return C})),n.d(t,"dot",(function(){return j})),n.d(t,"cross",(function(){return k})),n.d(t,"lerp",(function(){return P})),n.d(t,"random",(function(){return T})),n.d(t,"transformMat2",(function(){return M})),n.d(t,"transformMat2d",(function(){return A})),n.d(t,"transformMat3",(function(){return L})),n.d(t,"transformMat4",(function(){return R})),n.d(t,"rotate",(function(){return N})),n.d(t,"angle",(function(){return I})),n.d(t,"zero",(function(){return D})),n.d(t,"str",(function(){return F})),n.d(t,"exactEquals",(function(){return z})),n.d(t,"equals",(function(){return B})),n.d(t,"len",(function(){return V})),n.d(t,"sub",(function(){return H})),n.d(t,"mul",(function(){return G})),n.d(t,"div",(function(){return W})),n.d(t,"dist",(function(){return Y})),n.d(t,"sqrDist",(function(){return K})),n.d(t,"sqrLen",(function(){return X})),n.d(t,"forEach",(function(){return q}));n("6JDI"),n("nndn"),n("ct5l");var r=n("lmpI");function o(){var e=new r.a(2);return r.a!=Float32Array&&(e[0]=0,e[1]=0),e}function i(e){var t=new r.a(2);return t[0]=e[0],t[1]=e[1],t}function a(e,t){var n=new r.a(2);return n[0]=e,n[1]=t,n}function c(e,t){return e[0]=t[0],e[1]=t[1],e}function u(e,t,n){return e[0]=t,e[1]=n,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function l(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function f(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function p(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function d(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e}function h(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e}function v(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function y(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}function m(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e}function g(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function b(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function O(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.hypot(n,r)}function w(e,t){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function _(e){var t=e[0],n=e[1];return Math.hypot(t,n)}function x(e){var t=e[0],n=e[1];return t*t+n*n}function E(e,t){return e[0]=-t[0],e[1]=-t[1],e}function S(e,t){return e[0]=1/t[0],e[1]=1/t[1],e}function C(e,t){var n=t[0],r=t[1],o=n*n+r*r;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e}function j(e,t){return e[0]*t[0]+e[1]*t[1]}function k(e,t,n){var r=t[0]*n[1]-t[1]*n[0];return e[0]=e[1]=0,e[2]=r,e}function P(e,t,n,r){var o=t[0],i=t[1];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e}function T(e,t){t=t||1;var n=2*r.c()*Math.PI;return e[0]=Math.cos(n)*t,e[1]=Math.sin(n)*t,e}function M(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[2]*o,e[1]=n[1]*r+n[3]*o,e}function A(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[2]*o+n[4],e[1]=n[1]*r+n[3]*o+n[5],e}function L(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[3]*o+n[6],e[1]=n[1]*r+n[4]*o+n[7],e}function R(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[4]*o+n[12],e[1]=n[1]*r+n[5]*o+n[13],e}function N(e,t,n,r){var o=t[0]-n[0],i=t[1]-n[1],a=Math.sin(r),c=Math.cos(r);return e[0]=o*c-i*a+n[0],e[1]=o*a+i*c+n[1],e}function I(e,t){var n=e[0],r=e[1],o=t[0],i=t[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(o*o+i*i),c=a&&(n*o+r*i)/a;return Math.acos(Math.min(Math.max(c,-1),1))}function D(e){return e[0]=0,e[1]=0,e}function F(e){return"vec2("+e[0]+", "+e[1]+")"}function z(e,t){return e[0]===t[0]&&e[1]===t[1]}function B(e,t){var n=e[0],o=e[1],i=t[0],a=t[1];return Math.abs(n-i)<=r.b*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-a)<=r.b*Math.max(1,Math.abs(o),Math.abs(a))}var U,V=_,H=l,G=f,W=p,Y=O,K=w,X=x,q=(U=o(),function(e,t,n,r,o,i){var a,c;for(t||(t=2),n||(n=0),c=r?Math.min(r*t+n,e.length):e.length,a=n;a<c;a+=t)U[0]=e[a],U[1]=e[a+1],o(U,U,i),e[a]=U[0],e[a+1]=U[1];return e})},F0GY:function(e,t,n){n("FtFR");var r="undefined"!=typeof Element,o="function"==typeof Map,i="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var c,u,s,l;if(Array.isArray(t)){if((c=t.length)!=n.length)return!1;for(u=c;0!=u--;)if(!e(t[u],n[u]))return!1;return!0}if(o&&t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(l=t.entries();!(u=l.next()).done;)if(!n.has(u.value[0]))return!1;for(l=t.entries();!(u=l.next()).done;)if(!e(u.value[1],n.get(u.value[0])))return!1;return!0}if(i&&t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(l=t.entries();!(u=l.next()).done;)if(!n.has(u.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((c=t.length)!=n.length)return!1;for(u=c;0!=u--;)if(t[u]!==n[u])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((c=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(u=c;0!=u--;)if(!Object.prototype.hasOwnProperty.call(n,s[u]))return!1;if(r&&t instanceof Element)return!1;for(u=c;0!=u--;)if(("_owner"!==s[u]&&"__v"!==s[u]&&"__o"!==s[u]||!t.$$typeof)&&!e(t[s[u]],n[s[u]]))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},"F3O+":function(e,t,n){"use strict";var r,o,i=n("ERkP");try{o=n("+cKO"),r=o&&o.default||o}catch(a){throw-1!==a.toString().indexOf("Error: Cannot find module")?new Error("Couldn't find layout component at \"/Users/yiqianyao/workspace/L7-dumi/packages/site/node_modules/@antv/gatsby-theme-antv/site/layouts/layout.tsx.\n\nPlease create layout component in that location or specify path to layout component in gatsby-config.js"):(console.error(a),a)}e.exports=function(e){var t=e.element,n=e.props;return i.createElement(r,n,t)}},F63i:function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&d())}function d(){if(!l){var e=c(p);l=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||l||c(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},FBwQ:function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},FPB1:function(e,t,n){e.exports={header:"Header-module--header--hrdnh",transparent:"Header-module--transparent--3ajJP",fixed:"Header-module--fixed--2iqgL",container:"Header-module--container--LEMFk",isHomePage:"Header-module--isHomePage--BStzS",lightTheme:"Header-module--lightTheme--2gwGL",versions:"Header-module--versions--2-yUm",translation:"Header-module--translation--Px2mu",left:"Header-module--left--1dVXS",divider:"Header-module--divider--2qNp3",subProduceName:"Header-module--subProduceName--NMLtC",nav:"Header-module--nav--2_Knj",menu:"Header-module--menu--3hWNx",activeItem:"Header-module--activeItem--2xNW-",ecoSystems:"Header-module--ecoSystems--481ps",githubCorner:"Header-module--githubCorner--14Csh",githubStar:"Header-module--githubStar--S8nIs",translationIcon:"Header-module--translationIcon--3rbB0",arrow:"Header-module--arrow--3ykfv",open:"Header-module--open--1zZps",popup:"Header-module--popup--JndQy",productsMenu:"Header-module--productsMenu--2N42R",popupHidden:"Header-module--popupHidden--31dMl",menuIcon:"Header-module--menuIcon--yrthU",remindHref:"Header-module--remindHref--3kLGX",modalContent:"Header-module--modalContent--2NdxM"}},FSMn:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e,t){if(!Array.isArray(t))return"manifest.webmanifest";var n=t.find((function(t){return e.startsWith(t.start_url)}));return n?"manifest_"+n.lang+".webmanifest":"manifest.webmanifest"}},FT6E:function(e,t,n){"use strict";t.a=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},FXyv:function(e,t,n){var r=n("dSaG"),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},FoV5:function(e,t,n){"use strict";var r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},o=n("PYp2"),i=n("SEb4"),a=n("TPB+"),c=n("E2Zb"),u=n("HuQ3"),s=Object.prototype.hasOwnProperty;var l=function(e,t){var n=Object(i.a)(e),l=!n&&Object(o.a)(e),f=!n&&!l&&Object(a.a)(e),p=!n&&!l&&!f&&Object(u.a)(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var y in e)!t&&!s.call(e,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||Object(c.a)(y,v))||h.push(y);return h},f=n("tyTC"),p=n("GIvL");t.a=function(e){return Object(p.a)(e)?l(e):Object(f.a)(e)}},FtFR:function(e,t,n){var r=n("9JhN"),o=n("1Mu/"),i=n("z4cw"),a=n("q/0V"),c=n("ct80"),u=r.RegExp,s=u.prototype;o&&c((function(){var e=!0;try{u(".","d")}catch(c){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(s,"flags").get.call(t)!==r||n!==r}))&&i(s,"flags",{configurable:!0,get:a})},"G+fR":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.targetName=void 0;var r=n("2u/a"),o=n("jFDj"),i=n("tTA5");t.targetName=function(e){return function(t,n,a){var c=new o.Metadata(r.NAME_TAG,e);i.tagParameter(t,n,a,c)}}},G12H:function(e,t,n){"use strict";var r=n("DE/k"),o=n("gfy7");t.a=function(e){return"symbol"==typeof e||Object(o.a)(e)&&"[object Symbol]"==Object(r.a)(e)}},GAvS:function(e,t,n){"use strict";var r=n("fw2E").a.Symbol;t.a=r},GFpt:function(e,t,n){var r=n("1Mu/"),o=n("tUYG"),i=n("4Sk5"),a=n("lhjL"),c=n("N4z3"),u=n("/soe"),s=n("eiXn"),l=n("fD9S"),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=c(e),t=u(t),l)try{return f(e,t)}catch(n){}if(s(e,t))return a(!o(i.f,e,t),e[t])}},GIvL:function(e,t,n){"use strict";var r=n("LB+V"),o=n("FT6E");t.a=function(e){return null!=e&&Object(o.a)(e.length)&&!Object(r.a)(e)}},GRoC:function(e,t,n){"use strict";var r=n("ERkP"),o=n("KoFO"),i="object"==typeof window;n.n(o).a,t.a=function(e,t){void 0===t&&(t=!1);var n=Object(r.useState)(i?function(){return window.matchMedia(e).matches}:t),o=n[0],a=n[1];return Object(r.useEffect)((function(){var t=!0,n=window.matchMedia(e),r=function(){t&&a(!!n.matches)};return n.addListener(r),a(n.matches),function(){t=!1,n.removeListener(r)}}),[e]),o}},GSdA:function(e,t,n){var r=n("WhsZ"),o=n("A43l");e.exports=r((function(e,t){var n=e<0?t.length+e:e;return o(t)?t.charAt(n):t[n]}))},GVul:function(e,t,n){var r=n("2wsP"),o=n("GZgP"),i=n("QZ90");e.exports=function(e){return o(e)?i(e):r(e)}},GZgP:function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},GddB:function(e,t,n){n("TJfB"),n("O82g"),n("k/c8"),window.geotiff=n("UwWH"),window.lerc=n("rmr3"),window.g2=n("NEOq"),window.l7=n("T1QL"),window.l7Mini=n("7Svs"),window.l7MiniMap=n("hOO4"),window.l7Maps=n("gTrE"),window.l7plot=n("XLVD"),window.l7React=n("xk3d"),window.l7Draw=n("uMGO"),window.l7District=n("x5qa"),window.l7Three=n("7Avf"),window.three=n("i8eK"),window.GLTFLoader=n("L1uU"),window.FBXLoader=n("2lrR"),window.react=n("ERkP"),window.popmotion=n("GnAw"),window.reactDom=n("7nmT"),window.antd=n("gdfu")},"Gf+y":function(e,t,n){"use strict";n.d(t,"a",(function(){return oe}));var r=n("CZlo"),o=n.n(r),i=n("tQYX"),a=n.n(i),c=n("2q8g"),u=n.n(c),s=n("Dxeu"),l=n("pufz"),f=n("gbJM"),p=n("zEXi"),d=n("Gpi5"),h=n("PmAl"),v=n("nDih"),y=n.n(v),m=n("mGvo"),g=n.n(m);function b(e,t,n,r,o){t.updateStyleAttribute(e,n,r,o)}function O(e,t){t.tileLayer||t.isTileLayer||(e.opacity&&w("opacity",t,e.opacity),e.strokeWidth&&w("strokeWidth",t,e.strokeWidth),e.strokeOpacity&&w("strokeOpacity",t,e.strokeOpacity),e.stroke&&function(e,t,n){y()(n)?b(e,t,n,void 0):Array.isArray(n)&&2===n.length&&(y()(n[0])&&u()(n[1])||y()(n[0])&&Array.isArray(n[1])&&n[1].length>0)?b(e,t,n[0],n[1]):b(e,t,"#fff",void 0)}("stroke",t,e.stroke),e.offsets&&_("offsets",t,e.offsets),e.textOffset&&_("textOffset",t,e.textOffset),e.thetaOffset&&w("thetaOffset",t,e.thetaOffset))}function w(e,t,n){y()(n)?b(e,t,n,(function(e){return e})):g()(n)?b(e,t,[n],void 0):Array.isArray(n)&&2===n.length&&(y()(n[0])&&u()(n[1])||y()(n[0])&&Array.isArray(n[1])&&g()(n[1][0])&&g()(n[1][1]))?b(e,t,n[0],n[1]):b(e,t,[1],void 0)}function _(e,t,n){y()(n)?b(e,t,n,(function(e){return e})):Array.isArray(n)&&2===n.length&&y()(n[0])&&u()(n[1])?b(e,t,n[0],n[1]):Array.isArray(n)&&2===n.length&&g()(n[0])&&g()(n[1])?b(e,t,n,void 0):b(e,t,[0,0],void 0)}var x=n("k0uE");function E(e,t){e.length>0&&t.version===x.a.SIMPLE&&e.map((function(e){e.simpleCoordinate||(e.coordinates=function(e,t){if("number"==typeof e[0])return t.simpleMapCoord.unproject(e);if(e[0]&&e[0][0]instanceof Array){var n=[];return e.map((function(e){var r=[];e.map((function(e){r.push(t.simpleMapCoord.unproject(e))})),n.push(r)})),n}var r=[];return e.map((function(e){r.push(t.simpleMapCoord.unproject(e))})),r}(e.coordinates,t),e.simpleCoordinate=!0)}))}function S(e,t,n,r,o,i){var a=(null==i?void 0:i.getLayerConfig()).arrow,c=void 0===a?{enable:!1}:a,u=t.map((function(t){var r,i,a,u,s={id:t._id,coordinates:t.coordinates};if(e.filter((function(e){return void 0!==e.scale})).forEach((function(e){var r=function(e,t,n){var r;if(!e.scale)return[];var o=(null==e||null===(r=e.scale)||void 0===r?void 0:r.scalers)||[],i=[];o.forEach((function(n){var r,o=n.field;(t.hasOwnProperty(o)||"variable"===(null===(r=e.scale)||void 0===r?void 0:r.type))&&i.push(t[o])}));var a=e.mapping?e.mapping(i):[];return"color"!==e.name||Object(p.hb)(a[0])?a:[n]}(e,t,o);e.needRemapping=!1,"color"===e.name&&(r=r.map((function(e){return Object(p.Eb)(e)}))),s[e.name]=Array.isArray(r)&&1===r.length?r[0]:r,"shape"===e.name&&(s.shape=n.getIconFontKey(s[e.name]))})),"line"===s.shape&&c.enable){var l=s.coordinates,f=(r=l[0],i=l[1],a=[i[0]-r[0],i[1]-r[1]],u=Object(p.xb)(a),[r[0]+1e-4*u[0],r[1]+1e-4*u[1]]);s.coordinates.splice(1,0,f,f)}return s}));return function(e,t){var n=this;e.length>0&&t.version===x.a["GAODE2.x"]&&("number"==typeof e[0].coordinates[0]?e.filter((function(e){return!e.originCoordinates})).map((function(e){e.version=x.a["GAODE2.x"],e.originCoordinates=cloneDeep(e.coordinates),e.coordinates=n.mapService.lngLatToCoord(e.coordinates)})):e.filter((function(e){return!e.originCoordinates})).map((function(e){e.version=x.a["GAODE2.x"],e.originCoordinates=cloneDeep(e.coordinates),e.coordinates=n.mapService.lngLatToCoords(e.coordinates)})))}(u,r),E(u,r),u}var C=n("PkF7"),j=[["circle","cylinder"],["square","cylinder"],["triangle","cylinder"],["pentagon","cylinder"],["hexagon","cylinder"],["octogon","cylinder"],["hexagram","cylinder"],["rhombus","cylinder"],["vesica","cylinder"]];function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var P,T,M,A=["passes"],L=["moduleName","vertexShader","fragmentShader","triangulation","segmentNumber","workerEnabled","workerOptions"];function R(){R=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==k(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function N(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function I(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){N(i,r,o,a,c,"next",e)}function c(e){N(i,r,o,a,c,"throw",e)}a(void 0)}))}}function D(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function F(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function H(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t){return(W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q(e);if(t){var o=q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return K(this,n)}}function K(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return X(e)}function X(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J,Q,$,ee,te,ne,re=0,oe=(P=Object(l.lazyInject)(l.TYPES.IGlobalConfigService),T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}(v,e);var t,n,r,i,c,d=Y(v);function v(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return H(this,v),Z(X(e=d.call(this)),"id","".concat(re++)),Z(X(e),"name","".concat(re)),Z(X(e),"visible",!0),Z(X(e),"zIndex",0),Z(X(e),"inited",!1),Z(X(e),"layerModelNeedUpdate",!1),Z(X(e),"pickedFeatureID",null),Z(X(e),"selectedFeatureID",null),Z(X(e),"styleNeedUpdate",!1),Z(X(e),"forceRender",!1),Z(X(e),"clusterZoom",0),Z(X(e),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),Z(X(e),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),Z(X(e),"hooks",{init:new s.b,afterInit:new s.b,beforeRender:new s.b,beforeRenderData:new s.d,afterRender:new s.c,beforePickingEncode:new s.c,afterPickingEncode:new s.c,beforeHighlight:new s.c(["pickedColor"]),afterHighlight:new s.c,beforeSelect:new s.c(["pickedColor"]),afterSelect:new s.c,beforeDestroy:new s.c,afterDestroy:new s.c}),Z(X(e),"models",[]),Z(X(e),"modelLoaded",!1),Z(X(e),"layerChildren",[]),Z(X(e),"masks",[]),Z(X(e),"isVector",!1),V(X(e),"configService",M,X(e)),Z(X(e),"animateOptions",{enable:!1}),Z(X(e),"currentPickId",null),Z(X(e),"pendingStyleAttributes",[]),Z(X(e),"scaleOptions",{}),Z(X(e),"animateStatus",!1),Z(X(e),"bottomColor","rgba(0, 0, 0, 0)"),Z(X(e),"isDestroyed",!1),Z(X(e),"encodeDataLength",0),Z(X(e),"sourceEvent",(function(){e.dataState.dataSourceNeedUpdate=!0;var t=e.getLayerConfig();t&&t.autoFit&&e.fitBounds(t.fitBoundsOptions),e.reRender()})),e.name=t.name||e.id,e.zIndex=t.zIndex||0,e.rawConfig=t,e}return t=v,(n=[{key:"addMaskLayer",value:function(e){this.masks.push(e)}},{key:"removeMaskLayer",value:function(e){var t=this.masks.indexOf(e);t>-1&&this.masks.splice(t,1),e.destroy()}},{key:"getAttribute",value:function(e){return this.styleAttributeService.getLayerStyleAttribute(e)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(e){var t=this;if(Object.keys(e).map((function(n){n in t.rawConfig&&(t.rawConfig[n]=e[n])})),this.inited){var n=this.container.get(l.TYPES.SceneID);O(e,this),this.configService.setLayerConfig(n,this.id,U(U(U({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),e)),this.needUpdateConfig={}}else this.needUpdateConfig=U(U({},this.needUpdateConfig),e)}},{key:"setContainer",value:function(e,t){this.container=e,this.sceneContainer=t}},{key:"getContainer",value:function(){return this.container}},{key:"setBottomColor",value:function(e){this.bottomColor=e}},{key:"getBottomColor",value:function(){return this.bottomColor}},{key:"addPlugin",value:function(e){return this.plugins.push(e),this}},{key:"init",value:function(){var e=this,t=this.container.get(l.TYPES.SceneID);this.configService.setLayerConfig(t,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(l.TYPES.IIconService),this.fontService=this.container.get(l.TYPES.IFontService),this.rendererService=this.container.get(l.TYPES.IRendererService),this.layerService=this.container.get(l.TYPES.ILayerService),this.interactionService=this.container.get(l.TYPES.IInteractionService),this.pickingService=this.container.get(l.TYPES.IPickingService),this.mapService=this.container.get(l.TYPES.IMapService);var n=this.getLayerConfig(),r=n.enableMultiPassRenderer,o=n.passes;r&&null!=o&&o.length&&o.length>0&&this.mapService.on("mapAfterFrameChange",(function(){e.renderLayers()})),this.cameraService=this.container.get(l.TYPES.ICameraService),this.coordinateService=this.container.get(l.TYPES.ICoordinateSystemService),this.shaderModuleService=this.container.get(l.TYPES.IShaderModuleService),this.postProcessingPassFactory=this.container.get(l.TYPES.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(l.TYPES.IFactoryNormalPass),this.styleAttributeService=this.container.get(l.TYPES.IStyleAttributeService),this.multiPassRenderer=this.container.get(l.TYPES.IMultiPassRenderer),this.multiPassRenderer.setLayer(this),this.pendingStyleAttributes.forEach((function(t){var n=t.attributeName,r=t.attributeField,o=t.attributeValues,i=t.updateOptions;e.styleAttributeService.updateStyleAttribute(n,{scale:U({field:r},e.splitValuesAndCallbackInAttribute(o,e.getLayerConfig()[n]))},i)})),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(l.TYPES.ILayerPlugin);var i,a=F(this.plugins);try{for(a.s();!(i=a.n()).done;)i.value.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(c){a.e(c)}finally{a.f()}return this.hooks.init.call(),this.hooks.afterInit.call(),this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this}},{key:"updateModelData",value:function(e){e.attributes&&e.elements?this.models.map((function(t){t.updateAttributesAndElements(e.attributes,e.elements)})):console.warn("data error")}},{key:"createModelData",value:function(e,t){var n;if(null!==(n=this.layerModel)&&void 0!==n&&n.createModelData)return this.layerModel.createModelData(t);var r=this.calculateEncodeData(e,t),o=this.triangulation;return r&&o?this.styleAttributeService.createAttributesAndIndices(r,o):{attributes:void 0,elements:void 0}}},{key:"calculateEncodeData",value:function(e,t){return this.inited?function(e,t,n,r,o,i){var a=new f.a(o,i),c=e.getBottomColor(),u=S(r.getLayerStyleAttributes()||[],a.data.dataArray,t,n,c,e);return a.destroy(),u}(this,this.fontService,this.mapService,this.styleAttributeService,e,t):(console.warn("layer not inited!"),null)}},{key:"prepareBuildModel",value:function(){this.inited=!0,this.updateLayerConfig(U(U({},this.getDefaultConfig()),this.rawConfig));var e=this.getLayerConfig().animateOption;null!=e&&e.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(e,t,n){return this.updateStyleAttribute("color",e,t,n),this}},{key:"texture",value:function(e,t,n){return this.updateStyleAttribute("texture",e,t,n),this}},{key:"rotate",value:function(e,t,n){return this.updateStyleAttribute("rotate",e,t,n),this}},{key:"size",value:function(e,t,n){return this.updateStyleAttribute("size",e,t,n),this}},{key:"filter",value:function(e,t,n){return this.updateStyleAttribute("filter",e,t,n),this}},{key:"shape",value:function(e,t,n){var r,o,i,a=null===(r=this.styleAttributeService)||void 0===r||null===(o=r.getLayerStyleAttribute("shape"))||void 0===o||null===(i=o.scale)||void 0===i?void 0:i.field,c=e;return this.shapeOption={field:e,values:t},this.updateStyleAttribute("shape",e,t,n),this.tileLayer||function(e,t,n){if("string"==typeof t&&"string"==typeof n&&t!==n){if("PointLayer"===e.type)return void(e.dataState.dataSourceNeedUpdate=!0);j.map((function(r){r.includes(t)&&r.includes(n)&&(e.dataState.dataSourceNeedUpdate=!0)}))}}(this,a,c),this}},{key:"label",value:function(e,t,n){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:e,attributeValues:t,updateOptions:n}),this}},{key:"animate",value:function(e){var t={};return a()(e)?(t.enable=!0,t=U(U({},t),e)):t.enable=e,this.updateLayerConfig({animateOption:t}),this}},{key:"source",value:function(e,t){return null!=e&&e.data?(this.setSource(e),this):(this.sourceOption={data:e,options:t},this.clusterZoom=0,this)}},{key:"setData",value:function(e,t){var n=this;return this.inited?this.layerSource.setData(e,t):this.on("inited",(function(){n.getSource()?n.layerSource.setData(e,t):(n.source(new f.a(e,t)),n.sourceEvent())})),this}},{key:"style",value:function(e){var t=this,n=this.getLayerConfig(),r=e.passes,o=D(e,A);return r&&Object(C.b)(r).forEach((function(e){var n=t.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(e[0]);n&&n.updateOptions(e[1])})),this.rawConfig=U(U({},this.rawConfig),o),this.container&&(this.updateLayerConfig(this.rawConfig),this.styleNeedUpdate=!0),n&&!0===n.mask&&!1===e.mask&&(this.clearModels(),this.layerModel.buildModels((function(e){t.models=e}))),this}},{key:"scale",value:function(e,t){return a()(e)?this.scaleOptions=U(U({},this.scaleOptions),e):this.scaleOptions[e]=t,this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.renderLayers(),this.rendering=!1}},{key:"render",value:function(){return this.tileLayer?(this.tileLayer.render(),this):(this.encodeDataLength<=0&&!this.forceRender||this.renderModels(),this)}},{key:"renderMultiPass",value:(c=I(R().mark((function e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.encodeDataLength<=0)||this.forceRender){e.next=2;break}return e.abrupt("return");case 2:if(!this.multiPassRenderer||!this.multiPassRenderer.getRenderFlag()){e.next=7;break}return e.next=5,this.multiPassRenderer.render();case 5:e.next=8;break;case 7:this.multiPassRenderer,this.renderModels();case 8:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"active",value:function(e){var t={};return t.enableHighlight=!!a()(e)||e,a()(e)?(t.enableHighlight=!0,e.color&&(t.highlightColor=e.color),e.mix&&(t.activeMix=e.mix)):t.enableHighlight=!!e,this.updateLayerConfig(t),this}},{key:"setActive",value:function(e,t){var n=this;if(a()(e)){var r=e.x,o=void 0===r?0:r,i=e.y,c=void 0===i?0:i;this.updateLayerConfig({highlightColor:a()(t)?t.color:this.getLayerConfig().highlightColor,activeMix:a()(t)?t.mix:this.getLayerConfig().activeMix}),this.pick({x:o,y:c})}else this.updateLayerConfig({pickedFeatureID:e,highlightColor:a()(t)?t.color:this.getLayerConfig().highlightColor,activeMix:a()(t)?t.mix:this.getLayerConfig().activeMix}),this.hooks.beforeSelect.call(Object(p.Q)(e)).then((function(){setTimeout((function(){n.reRender()}),1)}))}},{key:"select",value:function(e){var t={};return t.enableSelect=!!a()(e)||e,a()(e)?(t.enableSelect=!0,e.color&&(t.selectColor=e.color),e.mix&&(t.selectMix=e.mix)):t.enableSelect=!!e,this.updateLayerConfig(t),this}},{key:"setSelect",value:function(e,t){var n=this;if(a()(e)){var r=e.x,o=void 0===r?0:r,i=e.y,c=void 0===i?0:i;this.updateLayerConfig({selectColor:a()(t)?t.color:this.getLayerConfig().selectColor,selectMix:a()(t)?t.mix:this.getLayerConfig().selectMix}),this.pick({x:o,y:c})}else this.updateLayerConfig({pickedFeatureID:e,selectColor:a()(t)?t.color:this.getLayerConfig().selectColor,selectMix:a()(t)?t.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(Object(p.Q)(e)).then((function(){setTimeout((function(){n.reRender()}),1)}))}},{key:"setBlend",value:function(e){return this.updateLayerConfig({blend:e}),this.layerModelNeedUpdate=!0,this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this}},{key:"hide",value:function(){return this.updateLayerConfig({visible:!1}),this.reRender(),this}},{key:"setIndex",value:function(e){return this.zIndex=e,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(e){this.currentPickId=e}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(e){this.selectedFeatureID=e}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var e=this.mapService.getZoom(),t=this.getLayerConfig(),n=t.visible,r=t.minZoom,o=void 0===r?-1/0:r,i=t.maxZoom;return!!n&&e>=o&&e<=(void 0===i?1/0:i)}},{key:"setMultiPass",value:function(e,t){if(this.updateLayerConfig({enableMultiPassRenderer:e}),t&&this.updateLayerConfig({passes:t}),e){var n=this.getLayerConfig().passes,r=void 0===n?[]:n;this.multiPassRenderer=Object(C.a)(this,r,this.postProcessingPassFactory,this.normalPassFactory),this.multiPassRenderer.setRenderFlag(!0);var o=this.rendererService.getViewportSize(),i=o.width,a=o.height;this.multiPassRenderer.resize(i,a)}return this}},{key:"setMinZoom",value:function(e){return this.updateLayerConfig({minZoom:e}),this}},{key:"getMinZoom",value:function(){return this.getLayerConfig().minZoom}},{key:"getMaxZoom",value:function(){return this.getLayerConfig().maxZoom}},{key:"get",value:function(e){return this.getLayerConfig()[e]}},{key:"setMaxZoom",value:function(e){return this.updateLayerConfig({maxZoom:e}),this}},{key:"setAutoFit",value:function(e){return this.updateLayerConfig({autoFit:e}),this}},{key:"fitBounds",value:function(e){if(!this.inited)return this.updateLayerConfig({autoFit:!0}),this;var t=this.getSource().extent;return t.some((function(e){return Math.abs(e)===1/0}))||this.mapService.fitBounds([[t[0],t[1]],[t[2],t[3]]],e),this}},{key:"destroy",value:function(){var e,t,n,r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isDestroyed||(this.layerChildren.map((function(e){return e.destroy(!1)})),this.layerChildren=[],this.masks.map((function(e){return e.destroy(!1)})),this.masks=[],this.hooks.beforeDestroy.call(),this.layerSource.off("sourceUpdate",this.sourceEvent),null===(e=this.multiPassRenderer)||void 0===e||e.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),null===(t=this.layerModel)||void 0===t||t.clearModels(r),null===(n=this.tileLayer)||void 0===n||n.destroy(),this.models=[],this.layerService.cleanRemove(this,r),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroyed=!0)}},{key:"clear",value:function(){this.styleAttributeService.clearAllAttributes()}},{key:"clearModels",value:function(){var e;this.models.forEach((function(e){return e.destroy()})),null===(e=this.layerModel)||void 0===e||e.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter((function(e){return e.needRescale||e.needRemapping||e.needRegenerateVertices})).length}},{key:"setSource",value:function(e){var t=this;if(this.layerSource&&this.layerSource.off("sourceUpdate",this.sourceEvent),this.layerSource=e,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var n=this.mapService.getZoom();this.layerSource.updateClusterData(n)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("sourceUpdate",(function(){t.sourceEvent()}))}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(e){this.encodedData=e,this.encodeDataLength=e.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(e){return this.styleAttributeService.getLayerAttributeScale(e)}},{key:"getLegendItems",value:function(e){var t=this.styleAttributeService.getLayerAttributeScale(e);return t?t.invertExtent?t.range().map((function(n){return Z({value:t.invertExtent(n)},e,n)})):t.ticks?t.ticks().map((function(n){return Z({value:n},e,t(n))})):null!=t&&t.domain?t.domain().filter((function(e){return!o()(e)})).map((function(n){return Z({value:n},e,t(n))})):[]:[]}},{key:"pick",value:function(e){var t=e.x,n=e.y;this.interactionService.triggerHover({x:t,y:n})}},{key:"boxSelect",value:function(e,t){this.pickingService.boxPickLayer(this,e,t)}},{key:"buildLayerModel",value:function(e){var t=this,n=e.moduleName,r=e.vertexShader,o=e.fragmentShader,i=e.triangulation,a=e.segmentNumber,c=e.workerEnabled,u=void 0!==c&&c,s=e.workerOptions,f=D(e,L);this.shaderModuleService.registerModule(n,{vs:r,fs:o});var d=this.shaderModuleService.getModule(n),v=d.vs,y=d.fs,m=d.uniforms,g=this.rendererService.createModel;return new Promise((function(e,n){setTimeout((function(){if(s&&s.modelType in p.p&&u)t.styleAttributeService.createAttributesAndIndicesAscy(t.encodedData,a,s).then((function(t){var n=t.attributes,r=t.elements,o=g(U({attributes:n,uniforms:m,fs:y,vs:v,elements:r,blend:h.a[l.BlendType.normal]},f));e(o)})).catch((function(e){return n(e)}));else{var r=t.styleAttributeService.createAttributesAndIndices(t.encodedData,i,a),o=r.attributes,c=r.elements,d=r.count,b=U({attributes:o,uniforms:m,fs:y,vs:v,elements:c,blend:h.a[l.BlendType.normal]},f);d&&(b.count=d);var O=g(b);e(O)}}))}))}},{key:"createAttributes",value:function(e){var t=e.triangulation;return this.styleAttributeService.createAttributes(this.encodedData,t).attributes}},{key:"getTime",value:function(){return this.layerService.clock.getDelta()}},{key:"setAnimateStartTime",value:function(){this.animateStartTime=this.layerService.clock.getElapsedTime()}},{key:"stopAnimate",value:function(){this.animateStatus&&(this.layerService.stopAnimate(),this.animateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}},{key:"getLayerAnimateTime",value:function(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}},{key:"needPick",value:function(e){if("basemap"===this.rawConfig.usage)return!1;var t=this.getLayerConfig(),n=t.enableHighlight,r=void 0===n||n,o=t.enableSelect,i=void 0===o||o,a=-1!==this.eventNames().indexOf(e)||-1!==this.eventNames().indexOf("un"+e);return"click"!==e&&"dblclick"!==e||!i||(a=!0),"mousemove"!==e||!r&&-1===this.eventNames().indexOf("mouseenter")&&-1===this.eventNames().indexOf("unmousemove")&&-1===this.eventNames().indexOf("mouseout")||(a=!0),this.isVisible()&&a}},{key:"buildModels",value:function(){throw new Error("Method not implemented.")}},{key:"rebuildModels",value:function(){throw new Error("Method not implemented.")}},{key:"renderMulPass",value:(i=I(R().mark((function e(t){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.render();case 2:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"renderModels",value:function(e){var t=this;return this.encodeDataLength<=0&&!this.forceRender||(this.layerModelNeedUpdate&&this.layerModel&&this.layerModel.buildModels((function(e){t.models=e,t.hooks.beforeRender.call(),t.layerModelNeedUpdate=!1})),this.models.forEach((function(n){n.draw({uniforms:t.layerModel.getUninforms()},e)}))),this}},{key:"updateStyleAttribute",value:function(e,t,n,r){this.inited?this.styleAttributeService.updateStyleAttribute(e,{scale:U({field:t},this.splitValuesAndCallbackInAttribute(n,this.getLayerConfig()[t]))},r):this.pendingStyleAttributes.push({attributeName:e,attributeField:t,attributeValues:n,updateOptions:r})}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(e){console.warn("empty fn")}},{key:"getConfigSchema",value:function(){throw new Error("Method not implemented.")}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"dispatchModelLoad",value:function(e){this.models.forEach((function(e){return e.destroy()})),this.models=[],this.models=e,this.emit("modelLoaded",null),this.modelLoaded=!0,this.layerService.throttleRenderLayers()}},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(e,t){return{values:u()(e)?void 0:e||t,callback:u()(e)?e:void 0}}}])&&G(t.prototype,n),r&&G(t,r),Object.defineProperty(t,"prototype",{writable:!1}),v}(d.EventEmitter),J=T.prototype,Q="configService",$=[P],ee={configurable:!0,enumerable:!0,writable:!0,initializer:null},ne={},Object.keys(ee).forEach((function(e){ne[e]=ee[e]})),ne.enumerable=!!ne.enumerable,ne.configurable=!!ne.configurable,("value"in ne||ne.initializer)&&(ne.writable=!0),ne=$.slice().reverse().reduce((function(e,t){return t(J,Q,e)||e}),ne),te&&void 0!==ne.initializer&&(ne.value=ne.initializer?ne.initializer.call(te):void 0,ne.initializer=void 0),void 0===ne.initializer&&(Object.defineProperty(J,Q,ne),ne=null),M=ne,T)},GlBG:function(e,t,n){var r=n("qU5+");e.exports=function(e,t,n){var o,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(o=1/t;n<e.length;){if(0===(i=e[n])&&1/i===o)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(i=e[n])&&i!=i)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(r(e[n],t))return n;n+=1}return-1}},GnAw:function(e,t,n){"use strict";n.r(t),n.d(t,"animate",(function(){return Ve})),n.d(t,"inertia",(function(){return Ge})),n.d(t,"decay",(function(){return xe})),n.d(t,"spring",(function(){return l})),n.d(t,"keyframes",(function(){return _e})),n.d(t,"angle",(function(){return Ye})),n.d(t,"applyOffset",(function(){return Ke})),n.d(t,"attract",(function(){return Ze})),n.d(t,"attractExpo",(function(){return Je})),n.d(t,"createAttractor",(function(){return qe})),n.d(t,"clamp",(function(){return o})),n.d(t,"degreesToRadians",(function(){return Qe})),n.d(t,"distance",(function(){return nt})),n.d(t,"interpolate",(function(){return te})),n.d(t,"isPoint3D",(function(){return et})),n.d(t,"isPoint",(function(){return $e})),n.d(t,"mixColor",(function(){return N})),n.d(t,"mixComplex",(function(){return Q})),n.d(t,"mix",(function(){return d})),n.d(t,"pipe",(function(){return K})),n.d(t,"pointFromVector",(function(){return rt})),n.d(t,"progress",(function(){return p})),n.d(t,"radiansToDegrees",(function(){return We})),n.d(t,"smoothFrame",(function(){return it})),n.d(t,"smooth",(function(){return at})),n.d(t,"snap",(function(){return ct})),n.d(t,"toDecimal",(function(){return ot})),n.d(t,"velocityPerFrame",(function(){return ut})),n.d(t,"velocityPerSecond",(function(){return He})),n.d(t,"wrap",(function(){return st})),n.d(t,"anticipate",(function(){return me})),n.d(t,"backIn",(function(){return he})),n.d(t,"backInOut",(function(){return ye})),n.d(t,"backOut",(function(){return ve})),n.d(t,"bounceIn",(function(){return be})),n.d(t,"bounceInOut",(function(){return Oe})),n.d(t,"bounceOut",(function(){return ge})),n.d(t,"circIn",(function(){return fe})),n.d(t,"circInOut",(function(){return de})),n.d(t,"circOut",(function(){return pe})),n.d(t,"easeIn",(function(){return ue})),n.d(t,"easeInOut",(function(){return le})),n.d(t,"easeOut",(function(){return se})),n.d(t,"linear",(function(){return ce})),n.d(t,"cubicBezier",(function(){return vt})),n.d(t,"steps",(function(){return yt})),n.d(t,"createAnticipate",(function(){return ae})),n.d(t,"createBackIn",(function(){return ie})),n.d(t,"createExpoIn",(function(){return oe})),n.d(t,"mirrorEasing",(function(){return re})),n.d(t,"reverseEasing",(function(){return ne}));var r=n("D57K");var o=function(e,t,n){return Math.min(Math.max(n,e),t)};function i(e){var t,n,r=e.duration,i=void 0===r?800:r,c=e.bounce,u=void 0===c?.25:c,s=e.velocity,l=void 0===s?0:s,f=e.mass,p=void 0===f?1:f,d=1-u;d=o(.05,1,d),i=o(.01,10,i/1e3),d<1?(t=function(e){var t=e*d,n=t*i;return.001-(t-l)/a(e,d)*Math.exp(-n)},n=function(e){var n=e*d*i,r=n*l+l,o=Math.pow(d,2)*Math.pow(e,2)*i,c=Math.exp(-n),u=a(Math.pow(e,2),d);return(.001-t(e)>0?-1:1)*((r-o)*c)/u}):(t=function(e){return Math.exp(-e*i)*((e-l)*i+1)-.001},n=function(e){return Math.exp(-e*i)*(i*i*(l-e))});var h=function(e,t,n){for(var r=n,o=1;o<12;o++)r-=e(r)/t(r);return r}(t,n,5/i);if(i*=1e3,isNaN(h))return{stiffness:100,damping:10,duration:i};var v=Math.pow(h,2)*p;return{stiffness:v,damping:2*d*Math.sqrt(p*v),duration:i}}function a(e,t){return e*Math.sqrt(1-t*t)}var c=["duration","bounce"],u=["stiffness","damping","mass"];function s(e,t){return t.some((function(t){return void 0!==e[t]}))}function l(e){var t=e.from,n=void 0===t?0:t,o=e.to,l=void 0===o?1:o,p=e.restSpeed,d=void 0===p?2:p,h=e.restDelta,v=Object(r.f)(e,["from","to","restSpeed","restDelta"]),y={done:!1,value:n},m=function(e){var t=Object(r.a)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!s(e,u)&&s(e,c)){var n=i(e);(t=Object(r.a)(Object(r.a)(Object(r.a)({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(v),g=m.stiffness,b=m.damping,O=m.mass,w=m.velocity,_=m.duration,x=m.isResolvedFromDuration,E=f,S=f;function C(){var e=w?-w/1e3:0,t=l-n,r=b/(2*Math.sqrt(g*O)),o=Math.sqrt(g/O)/1e3;if(null!=h||(h=Math.abs(l-n)<=1?.01:.4),r<1){var i=a(o,r);E=function(n){var a=Math.exp(-r*o*n);return l-a*((e+r*o*t)/i*Math.sin(i*n)+t*Math.cos(i*n))},S=function(n){var a=Math.exp(-r*o*n);return r*o*a*(Math.sin(i*n)*(e+r*o*t)/i+t*Math.cos(i*n))-a*(Math.cos(i*n)*(e+r*o*t)-i*t*Math.sin(i*n))}}else if(1===r)E=function(n){return l-Math.exp(-o*n)*(t+(e+o*t)*n)};else{var c=o*Math.sqrt(r*r-1);E=function(n){var i=Math.exp(-r*o*n),a=Math.min(c*n,300);return l-i*((e+r*o*t)*Math.sinh(a)+c*t*Math.cosh(a))/c}}}return C(),{next:function(e){var t=E(e);if(x)y.done=e>=_;else{var n=1e3*S(e),r=Math.abs(n)<=d,o=Math.abs(l-t)<=h;y.done=r&&o}return y.value=y.done?l:t,y},flipTarget:function(){var e;w=-w,n=(e=[l,n])[0],l=e[1],C()}}}l.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var f=function(e){return 0},p=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},d=function(e,t,n){return-n*e+n*t+e},h=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},v=function(e){return e%1?Number(e.toFixed(5)):e},y=/(-)?([\d]*\.?[\d])+/g,m=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,g=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function b(e){return"string"==typeof e}var O={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},w=Object(r.a)(Object(r.a)({},O),{transform:h(0,1)}),_=(Object(r.a)(Object(r.a)({},O),{default:1}),function(e,t){return function(n){return Boolean(b(n)&&g.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}}),x=function(e,t,n){return function(r){var o;if(!b(r))return r;var i=r.match(y),a=i[0],c=i[1],u=i[2],s=i[3];return(o={})[e]=parseFloat(a),o[t]=parseFloat(c),o[n]=parseFloat(u),o.alpha=void 0!==s?parseFloat(s):1,o}},E=h(0,255),S=Object(r.a)(Object(r.a)({},O),{transform:function(e){return Math.round(E(e))}}),C={test:_("rgb","red"),parse:x("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,i=void 0===o?1:o;return"rgba("+S.transform(t)+", "+S.transform(n)+", "+S.transform(r)+", "+v(w.transform(i))+")"}};var j={test:_("#"),parse:function(e){var t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:C.transform},k=function(e){return{test:function(t){return b(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},P=(k("deg"),k("%")),T=(k("px"),k("vh"),k("vw"),Object(r.a)(Object(r.a)({},P),{parse:function(e){return P.parse(e)/100},transform:function(e){return P.transform(100*e)}}),{test:_("hsl","hue"),parse:x("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,i=void 0===o?1:o;return"hsla("+Math.round(t)+", "+P.transform(v(n))+", "+P.transform(v(r))+", "+v(w.transform(i))+")"}}),M=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},A=[j,C,T],L=function(e){return A.find((function(t){return t.test(e)}))},R=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},N=function(e,t){var n=L(e),o=L(t);if(R(e),R(t),n.transform,o.transform,!n||!o||n.transform!==o.transform)return function(n){return""+(n>0?t:e)};var i=n.parse(e),a=o.parse(t),c=Object(r.a)({},i),u=n===T?d:M;return function(e){for(var t in c)"alpha"!==t&&(c[t]=u(i[t],a[t],e));return c.alpha=d(i.alpha,a.alpha,e),n.transform(c)}},I=function(e){return C.test(e)||j.test(e)||T.test(e)},D=function(e){return C.test(e)?C.parse(e):T.test(e)?T.parse(e):j.parse(e)},F=function(e){return b(e)?e:e.hasOwnProperty("red")?C.transform(e):T.transform(e)};function z(e){"number"==typeof e&&(e=""+e);var t=[],n=0,r=e.match(m);r&&(n=r.length,e=e.replace(m,"${c}"),t.push.apply(t,r.map(D)));var o=e.match(y);return o&&(e=e.replace(y,"${n}"),t.push.apply(t,o.map(O.parse))),{values:t,numColors:n,tokenised:e}}function B(e){return z(e).values}function U(e){var t=z(e),n=t.values,r=t.numColors,o=t.tokenised,i=n.length;return function(e){for(var t=o,n=0;n<i;n++)t=t.replace(n<r?"${c}":"${n}",n<r?F(e[n]):v(e[n]));return t}}var V=function(e){return"number"==typeof e?0:e};var H={test:function(e){var t,n,r,o;return isNaN(e)&&b(e)&&(null!==(n=null===(t=e.match(y))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(m))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:B,createTransformer:U,getAnimatableNone:function(e){var t=B(e);return U(e)(t.map(V))}},G={x:0,y:0,z:0},W=function(e){return"number"==typeof e},Y=function(e,t){return function(n){return t(e(n))}},K=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(Y)};function X(e,t){return W(e)?function(n){return d(e,t,n)}:I(e)?N(e,t):Q(e,t)}var q=function(e,t){var n=Object(r.g)([],e),o=n.length,i=e.map((function(e,n){return X(e,t[n])}));return function(e){for(var t=0;t<o;t++)n[t]=i[t](e);return n}},Z=function(e,t){var n=Object(r.a)(Object(r.a)({},e),t),o={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(o[i]=X(e[i],t[i]));return function(e){for(var t in o)n[t]=o[t](e);return n}};function J(e){for(var t=H.parse(e),n=t.length,r=0,o=0,i=0,a=0;a<n;a++)r||"number"==typeof t[a]?r++:void 0!==t[a].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}var Q=function(e,t){var n=H.createTransformer(t),r=J(e),o=J(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?K(q(r.parsed,o.parsed),n):function(n){return""+(n>0?t:e)}},$=function(e,t){return function(n){return d(e,t,n)}};function ee(e,t,n){for(var r,o=[],i=n||("number"==typeof(r=e[0])?$:"string"==typeof r?I(r)?N:Q:Array.isArray(r)?q:"object"==typeof r?Z:void 0),a=e.length-1,c=0;c<a;c++){var u=i(e[c],e[c+1]);if(t){var s=Array.isArray(t)?t[c]:t;u=K(s,u)}o.push(u)}return o}function te(e,t,n){var r=void 0===n?{}:n,i=r.clamp,a=void 0===i||i,c=r.ease,u=r.mixer,s=e.length;t.length,!c||!Array.isArray(c)||c.length,e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=ee(t,c,u),f=2===s?function(e,t){var n=e[0],r=e[1],o=t[0];return function(e){return o(p(n,r,e))}}(e,l):function(e,t){var n=e.length,r=n-1;return function(o){var i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){for(var c=1;c<n&&!(e[c]>o||c===r);c++);i=c-1}var u=p(e[i],e[i+1],o);return t[i](u)}}(e,l);return a?function(t){return f(o(e[0],e[s-1],t))}:f}var ne=function(e){return function(t){return 1-e(1-t)}},re=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},oe=function(e){return function(t){return Math.pow(t,e)}},ie=function(e){return function(t){return t*t*((e+1)*t-e)}},ae=function(e){var t=ie(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}},ce=function(e){return e},ue=oe(2),se=ne(ue),le=re(ue),fe=function(e){return 1-Math.sin(Math.acos(e))},pe=ne(fe),de=re(pe),he=ie(1.525),ve=ne(he),ye=re(he),me=ae(1.525),ge=function(e){if(1===e||0===e)return e;var t=e*e;return e<4/11?7.5625*t:e<8/11?9.075*t-9.9*e+3.4:e<.9?4356/361*t-35442/1805*e+16061/1805:10.8*e*e-20.52*e+10.72},be=ne(ge),Oe=function(e){return e<.5?.5*(1-ge(1-2*e)):.5*ge(2*e-1)+.5};function we(e,t){return e.map((function(){return t||le})).splice(0,e.length-1)}function _e(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,i=e.ease,a=e.offset,c=e.duration,u=void 0===c?300:c,s={done:!1,value:n},l=Array.isArray(o)?o:[n,o],f=function(e,t){return e.map((function(e){return e*t}))}(a&&a.length===l.length?a:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(l),u);function p(){return te(f,l,{ease:Array.isArray(i)?i:we(l,i)})}var d=p();return{next:function(e){return s.value=d(e),s.done=e>=u,s},flipTarget:function(){l.reverse(),d=p()}}}function xe(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,o=void 0===r?0:r,i=e.power,a=void 0===i?.8:i,c=e.timeConstant,u=void 0===c?350:c,s=e.restDelta,l=void 0===s?.5:s,f=e.modifyTarget,p={done:!1,value:o},d=a*n,h=o+d,v=void 0===f?h:f(h);return v!==h&&(d=v-o),{next:function(e){var t=-d*Math.exp(-e/u);return p.done=!(t>l||t<-l),p.value=p.done?v:v+t,p},flipTarget:function(){}}}var Ee={keyframes:_e,spring:l,decay:xe};var Se="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},Ce="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(Se())}),1/60*1e3)};var je=!0,ke=!1,Pe=!1,Te={delta:0,timestamp:0},Me=["read","update","preRender","render","postRender"],Ae=Me.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,i=new WeakSet,a={schedule:function(e,a,c){void 0===a&&(a=!1),void 0===c&&(c=!1);var u=c&&o,s=u?t:n;return a&&i.add(e),-1===s.indexOf(e)&&(s.push(e),u&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:function(c){var u;if(o=!0,t=(u=[n,t])[0],(n=u[1]).length=0,r=t.length)for(var s=0;s<r;s++){var l=t[s];l(c),i.has(l)&&(a.schedule(l),e())}o=!1}};return a}((function(){return ke=!0})),e}),{}),Le=Me.reduce((function(e,t){var n=Ae[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),ke||De(),n.schedule(e,t,r)},e}),{}),Re=Me.reduce((function(e,t){return e[t]=Ae[t].cancel,e}),{}),Ne=function(e){return Ae[e].process(Te)},Ie=function e(t){ke=!1,Te.delta=je?1/60*1e3:Math.max(Math.min(t-Te.timestamp,40),1),Te.timestamp=t,Pe=!0,Me.forEach(Ne),Pe=!1,ke&&(je=!1,Ce(e))},De=function(){ke=!0,je=!0,Pe||Ce(Ie)},Fe=function(){return Te},ze=Le;function Be(e,t,n){return void 0===n&&(n=0),e-t-n}var Ue=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return ze.update(t,!0)},stop:function(){return Re.update(t)}}};function Ve(e){var t,n,o,i,a,c=e.from,u=e.autoplay,s=void 0===u||u,f=e.driver,p=void 0===f?Ue:f,d=e.elapsed,h=void 0===d?0:d,v=e.repeat,y=void 0===v?0:v,m=e.repeatType,g=void 0===m?"loop":m,b=e.repeatDelay,O=void 0===b?0:b,w=e.onPlay,_=e.onStop,x=e.onComplete,E=e.onRepeat,S=e.onUpdate,C=Object(r.f)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),j=C.to,k=0,P=C.duration,T=!1,M=!0,A=function(e){if(Array.isArray(e.to))return _e;if(Ee[e.type])return Ee[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?_e:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?l:_e}(C);(null===(n=(t=A).needsInterpolation)||void 0===n?void 0:n.call(t,c,j))&&(a=te([0,100],[c,j],{clamp:!1}),c=0,j=100);var L=A(Object(r.a)(Object(r.a)({},C),{from:c,to:j}));function R(){k++,"reverse"===g?h=function(e,t,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?Be(t+-e,t,n):t-(e-t)+n}(h,P,O,M=k%2==0):(h=Be(h,P,O),"mirror"===g&&L.flipTarget()),T=!1,E&&E()}function N(e){if(M||(e=-e),h+=e,!T){var t=L.next(Math.max(0,h));i=t.value,a&&(i=a(i)),T=M?t.done:h<=0}null==S||S(i),T&&(0===k&&(null!=P||(P=h)),k<y?function(e,t,n,r){return r?e>=t+n:e<=-n}(h,P,O,M)&&R():(o.stop(),x&&x()))}return s&&(null==w||w(),(o=p(N)).start()),{stop:function(){null==_||_(),o.stop()}}}function He(e,t){return t?e*(1e3/t):0}function Ge(e){var t,n=e.from,o=void 0===n?0:n,i=e.velocity,a=void 0===i?0:i,c=e.min,u=e.max,s=e.power,l=void 0===s?.8:s,f=e.timeConstant,p=void 0===f?750:f,d=e.bounceStiffness,h=void 0===d?500:d,v=e.bounceDamping,y=void 0===v?10:v,m=e.restDelta,g=void 0===m?1:m,b=e.modifyTarget,O=e.driver,w=e.onUpdate,_=e.onComplete,x=e.onStop;function E(e){return void 0!==c&&e<c||void 0!==u&&e>u}function S(e){return void 0===c?u:void 0===u||Math.abs(c-e)<Math.abs(u-e)?c:u}function C(e){null==t||t.stop(),t=Ve(Object(r.a)(Object(r.a)({},e),{driver:O,onUpdate:function(t){var n;null==w||w(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:_,onStop:x}))}function j(e){C(Object(r.a)({type:"spring",stiffness:h,damping:y,restDelta:g},e))}if(E(o))j({from:o,velocity:a,to:S(o)});else{var k=l*a+o;void 0!==b&&(k=b(k));var P,T,M=S(k),A=M===c?-1:1;C({type:"decay",from:o,velocity:a,timeConstant:p,power:l,restDelta:g,modifyTarget:b,onUpdate:E(k)?function(e){P=T,T=e,a=He(e-P,Fe().delta),(1===A&&e>M||-1===A&&e<M)&&j({from:e,to:M,velocity:a})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}var We=function(e){return 180*e/Math.PI},Ye=function(e,t){return void 0===t&&(t=G),We(Math.atan2(t.y-e.y,t.x-e.x))},Ke=function(e,t){var n=!0;return void 0===t&&(t=e,n=!1),function(r){return n?r-e+t:(e=r,n=!0,t)}},Xe=function(e){return e},qe=function(e){return void 0===e&&(e=Xe),function(t,n,r){var o=n-r,i=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?n+i:n-i}},Ze=qe(),Je=qe(Math.sqrt),Qe=function(e){return e*Math.PI/180},$e=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},et=function(e){return $e(e)&&e.hasOwnProperty("z")},tt=function(e,t){return Math.abs(e-t)};function nt(e,t){if(W(e)&&W(t))return tt(e,t);if($e(e)&&$e(t)){var n=tt(e.x,t.x),r=tt(e.y,t.y),o=et(e)&&et(t)?tt(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var rt=function(e,t,n){return t=Qe(t),{x:n*Math.cos(t)+e.x,y:n*Math.sin(t)+e.y}},ot=function(e,t){return void 0===t&&(t=2),t=Math.pow(10,t),Math.round(e*t)/t},it=function(e,t,n,r){return void 0===r&&(r=0),ot(e+n*(t-e)/Math.max(r,n))},at=function(e){void 0===e&&(e=50);var t=0,n=0;return function(r){var o=Fe().timestamp,i=o!==n?o-n:0,a=i?it(t,r,i,e):t;return n=o,t=a,a}},ct=function(e){if("number"==typeof e)return function(t){return Math.round(t/e)*e};var t=0,n=e.length;return function(r){var o=Math.abs(e[0]-r);for(t=1;t<n;t++){var i=e[t],a=Math.abs(i-r);if(0===a)return i;if(a>o)return e[t-1];if(t===n-1)return i;o=a}}};function ut(e,t){return e/(1e3/t)}var st=function(e,t,n){var r=t-e;return((n-e)%r+r)%r+e},lt=(n("6JDI"),n("nndn"),function(e,t){return 1-3*t+3*e}),ft=function(e,t){return 3*t-6*e},pt=function(e){return 3*e},dt=function(e,t,n){return((lt(t,n)*e+ft(t,n))*e+pt(t))*e},ht=function(e,t,n){return 3*lt(t,n)*e*e+2*ft(t,n)*e+pt(t)};function vt(e,t,n,r){if(e===t&&n===r)return ce;for(var o=new Float32Array(11),i=0;i<11;++i)o[i]=dt(.1*i,e,n);function a(t){for(var r=0,i=1;10!==i&&o[i]<=t;++i)r+=.1;--i;var a=r+.1*((t-o[i])/(o[i+1]-o[i])),c=ht(a,e,n);return c>=.001?function(e,t,n,r){for(var o=0;o<8;++o){var i=ht(t,n,r);if(0===i)return t;t-=(dt(t,n,r)-e)/i}return t}(t,a,e,n):0===c?a:function(e,t,n,r,o){var i,a,c=0;do{(i=dt(a=t+(n-t)/2,r,o)-e)>0?n=a:t=a}while(Math.abs(i)>1e-7&&++c<10);return a}(t,r,r+.1,e,n)}return function(e){return 0===e||1===e?e:dt(a(e),t,r)}}var yt=function(e,t){return void 0===t&&(t="end"),function(n){var r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,i="end"===t?Math.floor(r):Math.ceil(r);return o(0,1,i/e)}}},Go5w:function(e,t,n){"use strict";var r=function(){this.__data__=[],this.size=0},o=n("HVAe");var i=function(e,t){for(var n=e.length;n--;)if(Object(o.a)(e[n][0],t))return n;return-1},a=Array.prototype.splice;var c=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)};var u=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]};var s=function(e){return i(this.__data__,e)>-1};var l=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}f.prototype.clear=r,f.prototype.delete=c,f.prototype.get=u,f.prototype.has=s,f.prototype.set=l;t.a=f},Gpi5:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function i(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function c(e,t,n,r,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new a(n,r||e,i),u=o?o+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],c]:e._events[u].push(c):(e._events[u]=c,e._eventsCount++),e}function u(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),s.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e){var t=o?o+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,a=new Array(i);r<i;r++)a[r]=n[r].fn;return a},s.prototype.listenerCount=function(e){var t=o?o+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,r,i,a){var c=o?o+e:e;if(!this._events[c])return!1;var u,s,l=this._events[c],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,r),!0;case 5:return l.fn.call(l.context,t,n,r,i),!0;case 6:return l.fn.call(l.context,t,n,r,i,a),!0}for(s=1,u=new Array(f-1);s<f;s++)u[s-1]=arguments[s];l.fn.apply(l.context,u)}else{var p,d=l.length;for(s=0;s<d;s++)switch(l[s].once&&this.removeListener(e,l[s].fn,void 0,!0),f){case 1:l[s].fn.call(l[s].context);break;case 2:l[s].fn.call(l[s].context,t);break;case 3:l[s].fn.call(l[s].context,t,n);break;case 4:l[s].fn.call(l[s].context,t,n,r);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];l[s].fn.apply(l[s].context,u)}}return!0},s.prototype.on=function(e,t,n){return c(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return c(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,n,r){var i=o?o+e:e;if(!this._events[i])return this;if(!t)return u(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||u(this,i);else{for(var c=0,s=[],l=a.length;c<l;c++)(a[c].fn!==t||r&&!a[c].once||n&&a[c].context!==n)&&s.push(a[c]);s.length?this._events[i]=1===s.length?s[0]:s:u(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&u(this,t)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=o,s.EventEmitter=s,e.exports=s},Grae:function(e,t,n){(function(e){var r=n("IBsm"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n("aYSr")(e))},GzGk:function(e,t,n){"use strict";var r=0,o=function(e){var t=window.decodeURI(e.replace("#",""));if(""!==t){var n=document.getElementById(t);if(n){var o=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,i=document.documentElement.clientTop||document.body.clientTop||0,a=window.getComputedStyle(n),c=a.getPropertyValue("scroll-margin-top")||a.getPropertyValue("scroll-snap-margin-top")||"0px";return n.getBoundingClientRect().top+o-parseInt(c,10)-i-r}}return null};t.onInitialClientRender=function(e,t){t.offsetY&&(r=t.offsetY),requestAnimationFrame((function(){var e=o(window.location.hash);null!==e&&window.scrollTo(0,e)}))},t.shouldUpdateScroll=function(e){var t=e.routerProps.location,n=o(t.hash);return null===n||[0,n]}},"H+8G":function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var r=n("mGvo"),o=n.n(r),i=n("pufz"),a=n("zEXi"),c=n("pfNN"),u=n("wIdy"),s=n("phgI");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){f=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(k){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=u;var p={};function d(){}function h(){}function v(){}var y={};c(y,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,o)&&(y=g);var b=v.prototype=d.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var f=u.arg,p=f.value;return p&&"object"==l(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(p).then((function(e){f.value=e,a(f)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=v,c(b,"constructor",v),c(v,"constructor",h),h.displayName=c(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},O(w.prototype),c(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(b),c(b,a,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function p(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,c,"next",e)}function c(e){p(i,r,o,a,c,"throw",e)}a(void 0)}))}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var S='#define SDF_PX 8.0\n#define EDGE_GAMMA 0.105\n#define FONT_SIZE 48.0\nuniform sampler2D u_sdf_map;\nuniform float u_gamma_scale : 0.5;\n// uniform float u_font_size : 24.0;\nuniform float u_opacity : 1.0;\nuniform vec4 u_stroke_color : [0, 0, 0, 1];\nuniform float u_stroke_width : 2.0;\nuniform float u_halo_blur : 0.5;\nuniform float u_DevicePixelRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_uv;\nvarying float v_gamma_scale;\nvarying float v_fontScale;\n\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\n#pragma include "picking"\nvoid main() {\n // get style data mapping\n float opacity = styleMappingMat[0][0];\n float strokeWidth = styleMappingMat[0][2];\n vec4 textrueStroke = vec4(\n styleMappingMat[1][0],\n styleMappingMat[1][1],\n styleMappingMat[1][2],\n styleMappingMat[1][3]\n );\n\n // get sdf from atlas\n float dist = texture2D(u_sdf_map, v_uv).a;\n\n // float fontScale = u_font_size / FONT_SIZE;\n\n // lowp float buff = (6.0 - u_stroke_width / v_fontScale) / SDF_PX;\n lowp float buff = (6.0 - strokeWidth / v_fontScale) / SDF_PX;\n highp float gamma = (u_halo_blur * 1.19 / SDF_PX + EDGE_GAMMA) / (v_fontScale * u_gamma_scale) / 1.0;\n\n highp float gamma_scaled = gamma * v_gamma_scale;\n\n highp float alpha = smoothstep(buff - gamma_scaled, buff + gamma_scaled, dist);\n // gl_FragColor = mix(vec4(v_color.rgb, v_color.a * u_opacity), vec4(u_stroke_color.rgb, u_stroke_color.a * u_opacity), smoothstep(0., 0.5, 1. - dist));\n gl_FragColor = mix(vec4(v_color.rgb, v_color.a * opacity), vec4(textrueStroke.rgb, textrueStroke.a * opacity), smoothstep(0., 0.5, 1. - dist));\n gl_FragColor.a= gl_FragColor.a * alpha;\n gl_FragColor = filterColor(gl_FragColor);\n}\n',C='#define SDF_PX 8.0\n#define EDGE_GAMMA 0.105\n#define FONT_SIZE 24.0\nattribute vec3 a_Position;\nattribute vec2 a_tex;\nattribute vec2 a_textOffsets;\nattribute vec4 a_Color;\nattribute float a_Size;\nattribute float a_Rotate;\n\nuniform vec2 u_sdf_map_size;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float u_raisingHeight: 0.0;\n\nvarying vec2 v_uv;\nvarying float v_gamma_scale;\nvarying vec4 v_color;\nvarying float v_fontScale;\n\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\nuniform float u_opacity : 1;\nuniform float u_stroke_width : 2;\nuniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0];\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n#pragma include "styleMappingCalStrokeWidth"\n\n#pragma include "projection"\n#pragma include "picking"\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n\n vec2 strokeWidthAndOffset = calStrokeWidthAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][2] = strokeWidthAndOffset.r;\n textureOffset = strokeWidthAndOffset.g;\n\n vec4 textrueStroke = vec4(-1.0, -1.0, -1.0, -1.0);\n if(hasStroke()) {\n vec2 valueRPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n styleMappingMat[1][0] = pos2value(valueRPos, columnWidth, rowHeight); // R\n textureOffset += 1.0;\n\n vec2 valueGPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n styleMappingMat[1][1] = pos2value(valueGPos, columnWidth, rowHeight); // G\n textureOffset += 1.0;\n\n vec2 valueBPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n styleMappingMat[1][2] = pos2value(valueBPos, columnWidth, rowHeight); // B\n textureOffset += 1.0;\n\n vec2 valueAPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n styleMappingMat[1][3] = pos2value(valueAPos, columnWidth, rowHeight); // A\n textureOffset += 1.0;\n } else {\n if(u_stroke_color == vec4(0.0)) {\n styleMappingMat[1][0] = v_color.r;\n styleMappingMat[1][1] = v_color.g;\n styleMappingMat[1][2] = v_color.b;\n styleMappingMat[1][3] = v_color.a;\n } else {\n styleMappingMat[1][0] = u_stroke_color.r;\n styleMappingMat[1][1] = u_stroke_color.g;\n styleMappingMat[1][2] = u_stroke_color.b;\n styleMappingMat[1][3] = u_stroke_color.a;\n }\n }\n \n // cal style mapping - 数据纹理映射部分的计算\n\n v_color = a_Color;\n v_uv = a_tex / u_sdf_map_size;\n\n // 文本缩放比例\n float fontScale = a_Size / FONT_SIZE;\n v_fontScale = fontScale;\n\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n // vec4 projected_position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n\n highp float angle_sin = sin(a_Rotate);\n highp float angle_cos = cos(a_Rotate);\n mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos);\n \n // gl_Position = vec4(projected_position.xy / projected_position.w + rotation_matrix * a_textOffsets * fontScale / u_ViewportSize * 2.0 * u_DevicePixelRatio, 0.0, 1.0);\n\n float raiseHeight = u_raisingHeight;\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n raiseHeight = u_raisingHeight * mapboxZoomScale;\n }\n\n vec4 projected_position;\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n projected_position = u_Mvp * (vec4(a_Position.xyz + vec3(0.0, 0.0, raiseHeight), 1.0));\n } else { // else\n projected_position = project_common_position_to_clipspace(vec4(project_pos.xyz + vec3(0.0, 0.0, raiseHeight), 1.0));\n }\n\n gl_Position = vec4(\n projected_position.xy / projected_position.w + rotation_matrix * a_textOffsets * fontScale / u_ViewportSize * 2.0 * u_DevicePixelRatio, 0.0, 1.0);\n v_gamma_scale = gl_Position.w;\n setPickingColor(a_PickingColor);\n\n}\n';function j(e){var t=e.id,n=[],r=[];if(!this.glyphInfoMap||!this.glyphInfoMap[t])return{vertices:[],indices:[],size:7};var o=this.glyphInfoMap[t].centroid,i=2===o.length?[o[0],o[1],0]:o;return this.glyphInfoMap[t].glyphQuads.forEach((function(e,t){n.push.apply(n,_(i).concat([e.tex.x,e.tex.y+e.tex.height,e.tl.x,e.tl.y],_(i),[e.tex.x+e.tex.width,e.tex.y+e.tex.height,e.tr.x,e.tr.y],_(i),[e.tex.x+e.tex.width,e.tex.y,e.br.x,e.br.y],_(i),[e.tex.x,e.tex.y,e.bl.x,e.bl.y])),r.push(0+4*t,1+4*t,2+4*t,2+4*t,3+4*t,0+4*t)})),{vertices:n,indices:r,size:7}}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(l,e);var t,n,r,c=m(l);function l(){var e;h(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(b(e=c.call.apply(c,[this].concat(n))),"glyphInfoMap",{}),w(b(e),"currentZoom",-1),w(b(e),"textureHeight",0),w(b(e),"textCount",0),w(b(e),"preTextStyle",{}),w(b(e),"buildModels",function(){var t=d(f().mark((function t(n){var r,o,i,c,u;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.layer.getLayerConfig(),o=r.mask,i=void 0!==o&&o,c=r.maskInside,u=void 0===c||c,e.mapping(),e.layer.buildLayerModel({moduleName:"pointText",vertexShader:C,fragmentShader:S,triangulation:j.bind(b(e)),depth:{enable:!1},blend:e.getBlend(),stencil:Object(a.bb)(i,u)}).then((function(e){n([e])})).catch((function(e){console.warn(e),n([])}));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),w(b(e),"mapping",(function(){e.initGlyph(),e.updateTexture(),e.filterGlyphs(),e.reBuildModel()})),e}return t=l,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.stroke,a=void 0===r?"#fff":r,c=e.strokeWidth,u=void 0===c?0:c,s=e.textAnchor,l=void 0===s?"center":s,f=e.textAllowOverlap,p=void 0!==f&&f,d=e.halo,h=void 0===d?.5:d,v=e.gamma,y=void 0===v?2:v,m=e.raisingHeight,g=void 0===m?0:m,b=this.fontService,O=b.canvas,w=b.mapping;if(Object.keys(w).length!==this.textCount&&(this.updateTexture(),this.textCount=Object.keys(w).length),this.preTextStyle={textAnchor:l,textAllowOverlap:p},this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n,strokeWidth:u,stroke:a})){this.judgeStyleAttributes({opacity:n,strokeWidth:u,stroke:a});var _=this.layer.getEncodedData(),x=this.calDataFrame(this.cellLength,_,this.cellProperties),E=x.data,S=x.width,C=x.height;this.rowCount=C,this.dataTexture=this.cellLength>0&&E.length>0?this.createTexture2D({flipY:!0,data:E,format:i.gl.LUMINANCE,type:i.gl.FLOAT,width:S,height:C}):this.createTexture2D({flipY:!0,data:[1],format:i.gl.LUMINANCE,type:i.gl.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_raisingHeight:Number(g),u_opacity:o()(n)?n:1,u_stroke_width:o()(u)?u:1,u_stroke_color:this.getStrokeColor(a),u_sdf_map:this.texture,u_halo_blur:h,u_gamma_scale:y,u_sdf_map_size:[O.width,O.height]}}},{key:"initModels",value:function(e){this.layer.on("remapping",this.mapping),this.extent=this.textExtent();var t=this.layer.getLayerConfig(),n=t.textAnchor,r=void 0===n?"center":n,o=t.textAllowOverlap,i=void 0===o||o;this.preTextStyle={textAnchor:r,textAllowOverlap:i},this.buildModels(e)}},{key:"needUpdate",value:function(){var e=this.layer.getLayerConfig().textAllowOverlap,t=void 0!==e&&e,n=this.mapService.getZoom(),r=this.mapService.getBounds(),o=Object(a.z)(this.extent,r);return(!t&&(Math.abs(this.currentZoom-n)>1||!o)||t!==this.preTextStyle.textAllowOverlap)&&(this.reBuildModel(),!0)}},{key:"clearModels",value:function(){var e,t;null===(e=this.texture)||void 0===e||e.destroy(),null===(t=this.dataTexture)||void 0===t||t.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"rotate",type:i.AttributeType.Attribute,descriptor:{name:"a_Rotate",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:1,update:function(e){var t=e.rotate,n=void 0===t?0:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:i.AttributeType.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:i.gl.STATIC_DRAW,data:[],type:i.gl.FLOAT},size:2,update:function(e,t,n){return[n[5],n[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:i.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?12:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:i.AttributeType.Attribute,descriptor:{name:"a_tex",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}},{key:"textExtent",value:function(){var e=this.mapService.getBounds();return Object(a.Ab)(e,.5)}},{key:"initTextFont",value:function(){var e=this.layer.getLayerConfig(),t=e.fontWeight,n=void 0===t?"400":t,r=e.fontFamily,o=void 0===r?"sans-serif":r,i=this.layer.getEncodedData(),a=[];i.forEach((function(e){var t,n=e.shape,r=void 0===n?"":n,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=x(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(r=r.toString());try{for(o.s();!(t=o.n()).done;){var i=t.value;-1===a.indexOf(i)&&a.push(i)}}catch(c){o.e(c)}finally{o.f()}})),this.fontService.setFontOptions({characterSet:a,fontWeight:n,fontFamily:o,iconfont:!1})}},{key:"initIconFontTex",value:function(){var e=this.layer.getLayerConfig(),t=e.fontWeight,n=void 0===t?"400":t,r=e.fontFamily,o=void 0===r?"sans-serif":r,i=this.layer.getEncodedData(),a=[];i.forEach((function(e){var t=e.shape,n=void 0===t?"":t;n="".concat(n),-1===a.indexOf(n)&&a.push(n)})),this.fontService.setFontOptions({characterSet:a,fontWeight:n,fontFamily:o,iconfont:!0})}},{key:"generateGlyphLayout",value:function(e){var t=this,n=this.fontService.mapping,r=this.layer.getLayerConfig(),o=r.spacing,i=void 0===o?2:o,c=r.textAnchor,u=void 0===c?"center":c,l=this.layer.getEncodedData();this.glyphInfo=l.map((function(r){var o=r.shape,c=void 0===o?"":o,l=r.id,f=r.size,p=void 0===f?1:f,d=r.textOffset,h=void 0===d?[0,0]:d,v=Object(s.b)(c.toString(),n,p,u,"left",i,h,e),y=Object(s.a)(v,h,!1);return r.shaping=v,r.glyphQuads=y,r.centroid=Object(a.C)(r.coordinates),r.originCentroid="GAODE2.x"===r.version?Object(a.C)(r.originCoordinates):r.originCentroid=r.centroid,t.glyphInfoMap[l]={shaping:v,glyphQuads:y,centroid:Object(a.C)(r.coordinates)},r}))}},{key:"filterGlyphs",value:function(){var e=this,t=this.layer.getLayerConfig(),n=t.padding,r=void 0===n?[4,4]:n,o=t.textAllowOverlap;if(void 0===o||!o){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var i=this.rendererService.getViewportSize(),a=i.width,c=i.height,s=new u.a(a,c);this.glyphInfo.filter((function(t){var n=t.shaping,o=t.id,i=void 0===o?0:o,a="GAODE2.x"===t.version?t.originCentroid:t.centroid,c=t.size/24,u=e.mapService.lngLatToContainer(a),l=s.placeCollisionBox({x1:n.left*c-r[0],x2:n.right*c+r[0],y1:n.top*c-r[1],y2:n.bottom*c+r[1],anchorPointX:u.x,anchorPointY:u.y}).box;return!(!l||!l.length||(s.insertCollisionBox(l,i),0))})).forEach((function(t){e.glyphInfoMap[t.id]=t}))}}},{key:"initGlyph",value:function(){var e=this.layer.getLayerConfig().iconfont,t=void 0!==e&&e;t?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(t)}},{key:"updateTexture",value:function(){var e=this.rendererService.createTexture2D,t=this.fontService.canvas;this.textureHeight=t.height,this.texture&&this.texture.destroy(),this.texture=e({data:t,mag:i.gl.LINEAR,min:i.gl.LINEAR,width:t.width,height:t.height})}},{key:"reBuildModel",value:function(){var e=this,t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o;this.filterGlyphs(),this.layer.buildLayerModel({moduleName:"pointText",vertexShader:C,fragmentShader:S,triangulation:j.bind(this),depth:{enable:!1},blend:this.getBlend(),stencil:Object(a.bb)(r,i)}).then((function(t){e.layer.models=[t],e.layerService.throttleRenderLayers()})).catch((function(t){console.warn(t),e.layer.models=[]}))}}])&&v(t.prototype,n),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(c.a)},H17f:function(e,t,n){var r=n("N4z3"),o=n("mg+6"),i=n("BIH/"),a=function(e){return function(t,n,a){var c,u=r(t),s=i(u),l=o(a,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},H4op:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("BEoi");t.default=function(e,t){return void 0===t&&(t=!0),{lazyInject:r.makePropertyInjectDecorator(e,t),lazyInjectNamed:r.makePropertyInjectNamedDecorator(e,t),lazyInjectTagged:r.makePropertyInjectTaggedDecorator(e,t),lazyMultiInject:r.makePropertyMultiInjectDecorator(e,t)}}},H84U:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c}));var r=n("cxan"),o=n("ERkP"),i=o.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")}}),a=i.Consumer;function c(e){return function(t){var n=t.constructor;n&&n.displayName||t.name;return function(n){return o.createElement(a,null,(function(i){var a=e.prefixCls,c=(0,i.getPrefixCls)(a,n.prefixCls);return o.createElement(t,Object(r.a)({},i,n,{prefixCls:c}))}))}}}},H87J:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},H8sf:function(e,t,n){var r=n("MzY2"),o=n("wpQC")((function(e,t,n){r(e,t,n)}));e.exports=o},HCAP:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("xBT8"),o=n.n(r),i=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"];function a(e){return i.indexOf(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){return 256*(e=o()(Math.floor(e),0,255))+(t=o()(Math.floor(t),0,255))}function l(e){var t=e.color,n=e.radius,r=e.tileX,o=e.tileY,i=e.shape,u=e.opacity,l=e.stroke,f=e.strokeWidth,p=e.strokeOpacity,d=[],h=[],v=[],y=[s(t[0],t[1]),s(t[2],t[3])],m=[s(l[0],l[1]),s(l[2],l[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach((function(e){var t=c(e,2),s=t[0],l=t[1];d.push([].concat(y,[8388608*(s+1)+2097152*(l+1)+131072*a(i)+n,524288*(r+512)+64*(o+512)])),h.push([].concat(m,[f,p])),v.push([u,0,0,0])})),{packedBuffer:d,packedBuffer2:h,packedBuffer3:v}}},HFVJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n("MGFZ")),o=a(n("hy0K")),i=a(n("+WmY"));function a(e){return e&&e.__esModule?e:{default:e}}var c=(0,a(n("5FNB")).default)((function(e,t,n){return(0,i.default)(n)?t:(0,o.default)((function(e){return(0,r.default)(e,n)}),e)[0]||t}));t.default=c},HKQc:function(e,t,n){"use strict";var r=n("eT/W"),o=r.Error,i=r.Ok,a=n("03hK");e.exports=function(e,t){var n=arguments.length<2;n&&a("nullableToResult(value) is being deprecated in favour of providing an explicit fallback value.\nnullableToResult(value, fallback) is the new preferred form of this function.\n");var r=n?e:t;return null!=e?i(e):o(r)}},HO86:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("lEbO");function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},HOjJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=["mapload","mapchange","mapAfterFrameChange"]},HVAe:function(e,t,n){"use strict";t.a=function(e,t){return e===t||e!=e&&t!=t}},HVFg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITEM_TPL=t.CONTAINER_TPL=t.VALUE_CLASS=t.NAME_CLASS=t.LIST_ITEM_CLASS=t.LIST_CLASS=t.TITLE_CLASS=t.CONTAINER_CLASS=void 0,t.CONTAINER_CLASS="l7plot-tooltip",t.TITLE_CLASS="l7plot-tooltip__title",t.LIST_CLASS="l7plot-tooltip__list",t.LIST_ITEM_CLASS="l7plot-tooltip__list-item",t.NAME_CLASS="l7plot-tooltip__name",t.VALUE_CLASS="l7plot-tooltip__value",t.CONTAINER_TPL='<div class="'.concat(t.CONTAINER_CLASS,'">\n <div class="').concat(t.TITLE_CLASS,'"></div>\n <ul class="').concat(t.LIST_CLASS,'"></ul>\n</div>'),t.ITEM_TPL='<li class="'.concat(t.LIST_ITEM_CLASS,'" data-index={index}>\n <span class="').concat(t.NAME_CLASS,'">{name}</span>\n <span class="').concat(t.VALUE_CLASS,'">{value}</span>\n</li>')},HYrn:function(e,t,n){var r=n("cLeC"),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},HbGN:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("+wNj");function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},HsnV:function(e,t,n){var r=n("+ooz"),o=n("RNlM"),i=n("E4ao"),a=n("BSqe"),c=n("L6um"),u=n("4/ik");function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,e.exports=s},HuGu:function(e,t,n){"use strict";n.r(t),n.d(t,"onServiceWorkerUpdateFound",(function(){return s}));n("+L6B");var r=n("2/Rp"),o=(n("EFp3"),n("rSSe"),n("TeRw")),i=(n("16WD"),n("ohNV"),n("MRmd"),n("5sXw"),n("SE3H"),n("e0s7"),n("ERkP")),a=n.n(i),c=n("4+xG"),u=n.n(c);window.insertCss=u.a,window.location.host.includes("antv")&&(!function(e,t,n,r,o){e.TracertCmdCache=e.TracertCmdCache||[],e[o]=window[o]||{_isRenderInit:!0,call:function(){e.TracertCmdCache.push(arguments)},start:function(e){this.call("start",e)}},e[o].l=new Date;var i=t.createElement(n),a=t.getElementsByTagName(n)[0];i.async=!0,i.src="https://ur.alipay.com/tracert_a369.js",a.parentNode.insertBefore(i,a),i.onerror=function(){console.warn(decodeURI("Tracert%20%E8%84%9A%E6%9C%AC%E6%9C%AA%E6%88%90%E5%8A%9F%E5%8A%A0%E8%BD%BD,%20%E8%AF%B7%E6%A3%80%E6%9F%A5%E7%BD%91%E7%BB%9C%E4%BB%A5%E5%8F%8A%20A%20%E4%BD%8D%E6%98%AF%E5%90%A6%E5%9C%A8%E4%B9%9D%E8%89%B2%E9%B9%BF%E5%BB%BA%E7%AB%8B%E6%B4%9E%E5%AF%9F"));for(var t=function(){console.warn(decodeURI("Tracert%20%E5%91%BD%E4%BB%A4%E6%89%A7%E8%A1%8C%E5%A4%B1%E8%B4%A5%EF%BC%8C%E8%AF%B7%E6%A3%80%E6%9F%A5%20JS%20%E6%98%AF%E5%90%A6%E6%AD%A3%E7%A1%AE%E5%BC%95%E5%85%A5"))},n=["call","start","config","logPv","info","err","click","expo","pageName","pageState","time","timeEnd","parse","checkExpo","stringify","report","set","before"],r=0;r<n.length;r++)e[o][n[r]]=t}}(window,document,"script",0,"Tracert"),Tracert.start(),console.log("%cAntV 让数据栩栩如生","color:#5B7102; font-size: 20px;"),console.log("%c新一代数据可视化解决方案","color:#5B7102;"),console.log("--------------------------"),console.log("%c关注我们的微信公众号 %c“数据可视化 AntV”%c,获取我们团队最新的进展、动态、分享,也欢迎加入我们!","color: red","color: pink","color: red"));var s=function(){var e=window.location.pathname.startsWith("/zh")?"zh":"en";o.a.info({message:"zh"===e?"站点更新":"Site Updated",description:"zh"===e?"发现新的网站版本数据,是否需要重载页面以更新。":"This site has been updated with new data. Do you wish to reload the site to get the new data?",btn:a.a.createElement(r.a,{type:"primary",size:"small",onClick:function(){return window.location.reload(!0)}},"zh"===e?"重载页面":"Refresh"),key:"onServiceWorkerUpdateFound",placement:"bottomRight"})}},HuQ3:function(e,t,n){"use strict";var r=n("DE/k"),o=n("FT6E"),i=n("gfy7"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var c=function(e){return Object(i.a)(e)&&Object(o.a)(e.length)&&!!a[Object(r.a)(e)]},u=n("clBK"),s=n("Af8m"),l=s.a&&s.a.isTypedArray,f=l?Object(u.a)(l):c;t.a=f},Hv1p:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return v}));var r=n("pufz");n("zEXi");function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=["mvt","geojsonvt","testTile"];function c(e){return a.indexOf(e)>=0}function u(e,t){t.map((function(t){var n=Object(r.createLayerContainer)(e.sceneContainer);t.setContainer(n,e.sceneContainer),t.init()}))}function s(e,t){var n,r,o=t.getAttribute("shape");if(o&&null!==(n=o.scale)&&void 0!==n&&n.field)return"text"===(null===(r=o.scale)||void 0===r?void 0:r.values)?[o.scale.field,o.scale.values]:o.scale.field;switch(e){case"PolygonLayer":return"fill";case"LineLayer":return"tileline";case"PointLayer":return"circle";case"RasterLayer":return"image";default:return""}}function l(e,t){switch(e){case"PolygonLayer":case"LineLayer":return!0;case"PointLayer":return!1;case"RasterLayer":default:return t}}function f(e,t,n,r){var i,a,c,u,s=o((null==e||null===(i=e.bboxPolygon)||void 0===i?void 0:i.bbox)||[0,0,10,-10],4),l=s[0],f=void 0===l?0:l,p=s[1],d=void 0===p?0:p,h=s[2],v=void 0===h?10:h,y=s[3],m=void 0===y?-10:y,g=t.lngLatToContainer([f,d]),b=t.lngLatToContainer([v,m]),O=b.x-g.x,w=g.y-b.y,_=[(n-g.x)/O,(r-b.y)/w],x=(null==e||null===(a=e.data)||void 0===a?void 0:a.width)||1,E=(null==e||null===(c=e.data)||void 0===c?void 0:c.height)||1,S=Math.floor(_[0]*x),C=Math.floor(_[1]*E),j=Math.max(0,C-1)*x+S;return null==e||null===(u=e.data)||void 0===u?void 0:u.data[j]}function p(e){return e.layerIDList.length===e.loadedLayers}function d(e,t){var n=window.setInterval((function(){var r=p(e),o=function(e){var t=e.children;return t.filter((function(e){return p(e)})).length===t.length}(e),i=function(e){var t=e.parent;return!t||p(t)}(e);r&&o&&i&&(t(),window.clearInterval(n))}),36)}function h(e,t,n){e.map((function(e){"mask"===t?e.style({mask:n}):e.updateLayerConfig(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n))}))}function v(e,t,n){if(0!==t.length)return function(e){var t=!0;return e.map((function(e){"PointLayer"!==e.type&&(t=!1)})),t}(t)?(h(t,"visible",e.isVisible),void n.reRender()):void function(e,t){e.isVisible?t():d(e,(function(){t()}))}(e,(function(){h(t,"visible",e.isVisible),n.reRender()}))}},I1fX:function(e,t,n){var r=n("6XIJ"),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},I9M6:function(e,t){e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},I9iR:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,c],l=0;(u=new Error(t.replace(/%s/g,(function(){return s[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},IBdH:function(e,t,n){var r=n("ZORK").match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},IBsm:function(e,t,n){var r=n("e93E"),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},IGGJ:function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},IOVJ:function(e,t,n){"use strict";var r=n("ERkP"),o=n.n(r),i=n("aWzz"),a=n.n(i),c=n("emEt"),u=n("xtsi"),s=n("30RF");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(a,e);var t,n,o,i=b(a);function a(){return y(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=h(h({},this.props),{},{params:h(h({},Object(s.c)(this.props.location.pathname)),this.props.pageResources.json.pageContext.__params),pathContext:this.props.pageContext}),t=f(Object(u.apiRunner)("replaceComponentRenderer",{props:this.props,loader:c.publicLoader}),1)[0]||Object(r.createElement)(this.props.pageResources.component,h(h({},e),{},{key:this.props.path||this.props.pageResources.page.path}));return Object(u.apiRunner)("wrapPageElement",{element:t,props:e},t,(function(t){return{element:t.result,props:e}})).pop()}}])&&m(t.prototype,n),o&&m(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.a.Component);_.propTypes={location:a.a.object.isRequired,pageResources:a.a.object.isRequired,data:a.a.object,pageContext:a.a.object.isRequired},t.a=_},IS0S:function(e,t,n){var r=n("vxC8")(n("IBsm"),"Promise");e.exports=r},Ias3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isStackOverflowExeption=void 0;var r=n("KWcp");t.isStackOverflowExeption=function(e){return e instanceof RangeError||e.message===r.STACK_OVERFLOW}},IjRU:function(e,t,n){"use strict";var r=n("zjfJ"),o=n("Czhu"),i=n("zygG"),a=n("HbGN"),c=n("ERkP"),u=n("h/vM"),s=n("O94r"),l=n.n(s),f={adjustX:1,adjustY:1},p=[0,0],d={topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:p},topCenter:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:p},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:p},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:p},bottomCenter:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:p},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:p}},h=n("tmJt"),v=n("jiyB"),y=n("wHo0"),m=h.a.ESC,g=h.a.TAB;var b=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function O(e,t){var n=e.arrow,s=void 0!==n&&n,f=e.prefixCls,p=void 0===f?"rc-dropdown":f,h=e.transitionName,O=e.animation,w=e.align,_=e.placement,x=void 0===_?"bottomLeft":_,E=e.placements,S=void 0===E?d:E,C=e.getPopupContainer,j=e.showAction,k=e.hideAction,P=e.overlayClassName,T=e.overlayStyle,M=e.visible,A=e.trigger,L=void 0===A?["hover"]:A,R=e.autoFocus,N=Object(a.a)(e,b),I=c.useState(),D=Object(i.a)(I,2),F=D[0],z=D[1],B="visible"in e?M:F,U=c.useRef(null);c.useImperativeHandle(t,(function(){return U.current})),function(e){var t=e.visible,n=e.setTriggerVisible,r=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=c.useRef(!1),u=function(){var e,i,a,c;t&&r.current&&(null===(e=r.current)||void 0===e||null===(i=e.triggerRef)||void 0===i||null===(a=i.current)||void 0===a||null===(c=a.focus)||void 0===c||c.call(a),n(!1),"function"==typeof o&&o(!1))},s=function(){var e,t,n,o,i=Object(y.a)(null===(e=r.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(o=n.getElement)||void 0===o?void 0:o.call(n))[0];return!!(null==i?void 0:i.focus)&&(i.focus(),a.current=!0,!0)},l=function(e){switch(e.keyCode){case m:u();break;case g:var t=!1;a.current||(t=s()),t?e.preventDefault():u()}};c.useEffect((function(){return t?(window.addEventListener("keydown",l),i&&Object(v.a)(s,3),function(){window.removeEventListener("keydown",l),a.current=!1}):function(){a.current=!1}}),[t])}({visible:B,setTriggerVisible:z,triggerRef:U,onVisibleChange:e.onVisibleChange,autoFocus:R});var V,H,G,W,Y,K,X=function(){var t,n="function"==typeof(t=e.overlay)?t():t;return c.createElement(c.Fragment,null,s&&c.createElement("div",{className:"".concat(p,"-arrow")}),n)},q=k;return q||-1===L.indexOf("contextMenu")||(q=["click"]),c.createElement(u.a,Object(o.a)(Object(o.a)({builtinPlacements:S},N),{},{prefixCls:p,ref:U,popupClassName:l()(P,Object(r.a)({},"".concat(p,"-show-arrow"),s)),popupStyle:T,action:L,showAction:j,hideAction:q||[],popupPlacement:x,popupAlign:w,popupTransitionName:h,popupAnimation:O,popupVisible:B,stretch:(Y=e.minOverlayWidthMatchTrigger,K=e.alignPoint,("minOverlayWidthMatchTrigger"in e?Y:!K)?"minWidth":""),popup:"function"==typeof e.overlay?X:X(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;z(t),"function"==typeof n&&n(t)},onPopupClick:function(t){var n=e.onOverlayClick;z(!1),n&&n(t)},getPopupContainer:C}),(H=e.children,G=H.props?H.props:{},W=l()(G.className,void 0!==(V=e.openClassName)?V:"".concat(p,"-open")),B&&H?c.cloneElement(H,{className:W}):H))}var w=c.forwardRef(O);t.a=w},JAL5:function(e,t){t.f=Object.getOwnPropertySymbols},"JBn+":function(e,t,n){var r=n("hyzI"),o=n("qjF7"),i=n("cEmw");function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},JBtm:function(e,t,n){"use strict";var r=n("ddV6"),o=n("RhWx");function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n("tQbP");var c=n("uotq"),u=n("1Fob"),s=n("p/97"),l=n("c+mU");function f(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function p(e,t){return t.encode?t.strict?c(e):encodeURIComponent(e):e}function d(e,t){return t.decode?u(e):e}function h(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function v(e){var t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function y(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){f((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&d(n,e).includes(e.arrayFormatSeparator);n=i?d(n,e):n;var a=o||i?n.split(e.arrayFormatSeparator).map((function(t){return d(t,e)})):null===n?n:d(n,e);r[t]=a};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var a,c=i(e.split("&"));try{for(c.s();!(a=c.n()).done;){var u=a.value;if(""!==u){var l=s(t.decode?u.replace(/\+/g," "):u,"="),p=r(l,2),h=p[0],v=p[1];v=void 0===v?null:["comma","separator"].includes(t.arrayFormat)?v:d(v,t),n(d(h,t),v,o)}}}catch(E){c.e(E)}finally{c.f()}for(var m=0,g=Object.keys(o);m<g.length;m++){var b=g[m],O=o[b];if("object"==typeof O&&null!==O)for(var w=0,_=Object.keys(O);w<_.length;w++){var x=_[w];O[x]=y(O[x],t)}else o[b]=y(O,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce((function(e,t){var n=o[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))}t.extract=v,t.parse=m,t.stringify=function(e,t){if(!e)return"";f((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var n=function(n){return t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n]},r=function(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[p(t,e),"[",i,"]"].join("")]:[[p(t,e),"[",p(i,e),"]=",p(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[p(t,e),"[]"].join("")]:[[p(t,e),"[]=",p(r,e)].join("")])}};case"comma":case"separator":return function(t){return function(n,r){return null==r||0===r.length?n:0===n.length?[[p(t,e),"=",p(r,e)].join("")]:[[n,p(r,e)].join(e.arrayFormatSeparator)]}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[p(t,e)]:[[p(t,e),"=",p(r,e)].join("")])}}}}(t),i={},a=0,c=Object.keys(e);a<c.length;a++){var u=c[a];n(u)||(i[u]=e[u])}var s=Object.keys(i);return!1!==t.sort&&s.sort(t.sort),s.map((function(n){var o=e[n];return void 0===o?"":null===o?p(n,t):Array.isArray(o)?o.reduce(r(n),[]).join("&"):p(n,t)+"="+p(o,t)})).filter((function(e){return e.length>0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=s(e,"#"),o=r(n,2),i=o[0],a=o[1];return Object.assign({url:i.split("?")[0]||"",query:m(v(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:d(a,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=h(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query),c=t.stringify(a,n);c&&(c="?".concat(c));var u=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(p(e.fragmentIdentifier,n))),"".concat(r).concat(c).concat(u)},t.pick=function(e,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var o=t.parseUrl(e,r),i=o.url,a=o.query,c=o.fragmentIdentifier;return t.stringifyUrl({url:i,query:l(a,n),fragmentIdentifier:c},r)},t.exclude=function(e,n,r){var o=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,o,r)}},"JI/+":function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},JNqh:function(e,t,n){var r=n("6UKJ");e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},JO7S:function(e,t){e.exports=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}},JRy8:function(e,t,n){var r=n("VrFO"),o=n("Y9Ll"),i=n("5Yy7"),a=n("N+ot"),c=n("AuHH");function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}var s=n("cbhl"),l=n("dMso"),f=n("KQpv")("engine.io-client:socket"),p=n("5w0e"),d=n("VdbV"),h=n("5dAn"),v=function(e){"use strict";i(n,e);var t=u(n);function n(e){var o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,n),o=t.call(this),e&&"object"==typeof e&&(i=e,e=null),e?(e=d(e),i.hostname=e.host,i.secure="https"===e.protocol||"wss"===e.protocol,i.port=e.port,e.query&&(i.query=e.query)):i.host&&(i.hostname=d(i.host).host),o.secure=null!=i.secure?i.secure:"undefined"!=typeof location&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=o.secure?"443":"80"),o.hostname=i.hostname||("undefined"!=typeof location?location.hostname:"localhost"),o.port=i.port||("undefined"!=typeof location&&location.port?location.port:o.secure?443:80),o.transports=i.transports||["polling","websocket"],o.readyState="",o.writeBuffer=[],o.prevBufferLen=0,o.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,jsonp:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{}},i),o.opts.path=o.opts.path.replace(/\/$/,"")+"/","string"==typeof o.opts.query&&(o.opts.query=h.decode(o.opts.query)),o.id=null,o.upgrades=null,o.pingInterval=null,o.pingTimeout=null,o.pingTimeoutTimer=null,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){o.transport&&(o.transport.removeAllListeners(),o.transport.close())}),!1),o.open(),o}return o(n,[{key:"createTransport",value:function(e){f('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.opts.query);t.EIO=p.protocol,t.transport=e,this.id&&(t.sid=this.id);var n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return f("options: %j",n),new s[e](n)}},{key:"open",value:function(){var e;if(this.opts.rememberUpgrade&&n.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout((function(){t.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(r){return f("error while creating transport: %s",r),this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){f("setting transport %s",e.name);var t=this;this.transport&&(f("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))}},{key:"probe",value:function(e){f('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),r=!1,o=this;function i(){if(o.onlyBinaryUpgrades){var i=!this.supportsBinary&&o.transport.supportsBinary;r=r||i}r||(f('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(i){if(!r)if("pong"===i.type&&"probe"===i.data){if(f('probe transport "%s" pong',e),o.upgrading=!0,o.emit("upgrading",t),!t)return;n.priorWebsocketSuccess="websocket"===t.name,f('pausing current transport "%s"',o.transport.name),o.transport.pause((function(){r||"closed"!==o.readyState&&(f("changing transport and sending upgrade packet"),p(),o.setTransport(t),t.send([{type:"upgrade"}]),o.emit("upgrade",t),t=null,o.upgrading=!1,o.flush())}))}else{f('probe transport "%s" failed',e);var a=new Error("probe error");a.transport=t.name,o.emit("upgradeError",a)}})))}function a(){r||(r=!0,p(),t.close(),t=null)}function c(n){var r=new Error("probe error: "+n);r.transport=t.name,a(),f('probe transport "%s" failed because of error: %s',e,n),o.emit("upgradeError",r)}function u(){c("transport closed")}function s(){c("socket closed")}function l(e){t&&e.name!==t.name&&(f('"%s" works - aborting "%s"',e.name,t.name),a())}function p(){t.removeListener("open",i),t.removeListener("error",c),t.removeListener("close",u),o.removeListener("close",s),o.removeListener("upgrading",l)}n.priorWebsocketSuccess=!1,t.once("open",i),t.once("error",c),t.once("close",u),this.once("close",s),this.once("upgrading",l),t.open()}},{key:"onOpen",value:function(){if(f("socket open"),this.readyState="open",n.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){f("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}}},{key:"onPacket",value:function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(f('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else f('packet received with socket readyState "%s"',this.readyState)}},{key:"onHandshake",value:function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}},{key:"resetPingTimeout",value:function(){var e=this;clearTimeout(this.pingTimeoutTimer),this.pingTimeoutTimer=setTimeout((function(){e.onClose("ping timeout")}),this.pingInterval+this.pingTimeout)}},{key:"onDrain",value:function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()}},{key:"flush",value:function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(f("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))}},{key:"write",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"send",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"sendPacket",value:function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var o={type:e,data:t,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}}},{key:"close",value:function(){var e=this;function t(){e.onClose("forced close"),f("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():t()})):this.upgrading?r():t()),this}},{key:"onError",value:function(e){f("socket error %j",e),n.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)}},{key:"onClose",value:function(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){f('socket close with reason: "%s"',e);clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0}}},{key:"filterUpgrades",value:function(e){for(var t=[],n=0,r=e.length;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}]),n}(l);v.priorWebsocketSuccess=!1,v.protocol=p.protocol,e.exports=v},JUXS:function(e,t){e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},JcJ6:function(e,t,n){var r=n("Syyo"),o=n("H87J"),i=n("wxYD"),a=n("a88S"),c=r?r.prototype:void 0,u=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},JeVI:function(e){e.exports=JSON.parse("[]")},JeyM:function(e,t,n){"use strict";n.d(t,"a",(function(){return o.a})),n.d(t,"b",(function(){return i.a})),n.d(t,"m",(function(){return Qe.a})),n.d(t,"n",(function(){return $e.a})),n.d(t,"j",(function(){return Je.a})),n.d(t,"e",(function(){return Z})),n.d(t,"g",(function(){return Xe})),n.d(t,"c",(function(){return k})),n.d(t,"i",(function(){return Ze.a})),n.d(t,"o",(function(){return wt})),n.d(t,"h",(function(){return qe.a})),n.d(t,"f",(function(){return cn})),n.d(t,"r",(function(){return Bn})),n.d(t,"l",(function(){return un.a})),n.d(t,"q",(function(){return rr})),n.d(t,"s",(function(){return a.d})),n.d(t,"k",(function(){return a.b})),n.d(t,"p",(function(){return a.c})),n.d(t,"d",(function(){return a.a}));var r=n("pufz"),o=n("Gf+y"),i=n("pfNN"),a=n("kam9");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g={canvas:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(i,e);var t,n,r,o=d(i);function i(){var e;l(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(v(e=o.call.apply(o,[this].concat(n))),"updateMode",a.a.ALWAYS),m(v(e),"renderUpdate",(function(){var t=e.layer.getLayerConfig(),n=t.zIndex,r=void 0===n?10:n,o=t.update,i=void 0===o?a.a.ALWAYS:o,c=t.animateOption,u=void 0===c?{enable:!1,duration:20}:c;+e.canvas.style.zIndex===r&&(e.canvas.style.zIndex=r+""),e.updateMode!==i&&(e.updateMode=i,e.unBindListener(),e.bindListener()),e.updateMode===a.a.ALWAYS&&u.enable&&e.renderCanvas()})),m(v(e),"unBindListener",(function(){e.mapService.off("mapchange",e.renderCanvas),e.mapService.off("zoomstart",e.clearCanvas),e.mapService.off("zoomend",e.renderCanvas),e.mapService.off("movestart",e.clearCanvas),e.mapService.off("moveend",e.renderCanvas)})),m(v(e),"bindListener",(function(){e.updateMode===a.a.ALWAYS?e.mapService.on("mapchange",e.renderCanvas):(e.mapService.on("zoomstart",e.clearCanvas),e.mapService.on("zoomend",e.renderCanvas),e.mapService.on("movestart",e.clearCanvas),e.mapService.on("moveend",e.renderCanvas))})),m(v(e),"clearCanvas",(function(){if(e.ctx){var t=e.rendererService.getViewportSize(),n=t.width,r=t.height;e.ctx.clearRect(0,0,n,r)}})),m(v(e),"renderCanvas",(function(){var t=e.rendererService.getViewportSize(),n=t.width,r=t.height;if(e.prevSize[0]!==n||e.prevSize[1]!==r){e.prevSize=[n,r];var o=u(e.mapService.getSize(),2),i=o[0],a=o[1];e.canvas.width=n,e.canvas.height=r,e.canvas.style.width=i+"px",e.canvas.style.height=a+"px"}var c=e.layer.getLayerConfig().drawingOnCanvas;e.ctx&&c({canvas:e.canvas,ctx:e.ctx,mapService:e.mapService,size:[n,r]})})),e}return t=i,(n=[{key:"clearModels",value:function(){var e;this.canvas&&(null===(e=this.mapService.getContainer())||void 0===e||e.removeChild(this.canvas),this.canvas=null),this.unBindListener()}},{key:"initModels",value:function(){var e=this.layer.getLayerConfig().update,t=void 0===e?a.a.ALWAYS:e;return this.updateMode=t,this.initCanvas(),this.renderCanvas(),this.bindListener(),this.mapService.getContainer(),[]}},{key:"initCanvas",value:function(){var e,t=this.layer.getLayerConfig().zIndex,n=u(this.mapService.getSize(),2),r=n[0],o=n[1],i=this.rendererService.getViewportSize(),a=i.width,c=i.height;this.prevSize=[a,c];var s=document.createElement("canvas");this.canvas=s,s.width=a,s.height=c,s.style.pointerEvents="none",s.style.width=r+"px",s.style.height=o+"px",s.style.position="absolute",s.style.top="0",s.style.left="0",s.style.zIndex=t+"",null===(e=this.mapService.getContainer())||void 0===e||e.appendChild(s);var l=s.getContext("2d");this.ctx=l}},{key:"buildModels",value:function(){return this.initModels()}},{key:"registerBuiltinAttributes",value:function(){}}])&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(i.a)};function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(i,e);var t,n,r,o=x(i);function i(){var e;O(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return j(S(e=o.call.apply(o,[this].concat(n))),"type","CanvasLayer"),j(S(e),"forceRender",!0),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new g[t](this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"hide",value:function(){var e;return this.layerModel.clearCanvas&&(null===(e=this.layerModel)||void 0===e||e.clearCanvas()),this.updateLayerConfig({visible:!1}),this.reRender(),this}},{key:"renderModels",value:function(){var e,t=this;return null!=this&&null!==(e=this.layerModel)&&void 0!==e&&e.renderUpdate&&this.layerModel.renderUpdate(),this.models.forEach((function(e){e.draw({uniforms:t.layerModel.getUninforms()},!1)})),this}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getDefaultConfig",value:function(){return{canvas:{}}[this.getModelType()]}},{key:"getModelType",value:function(){return"canvas"}}])&&w(t.prototype,n),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a),P=n("zEXi"),T=n("PGAt");function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var o=z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return F(this,n)}}function F(e,t){if(t&&("object"===M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}(a,e);var t,n,o,i=D(a);function a(){return R(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.baseColor,o=void 0===r?"rgb(16,16,16)":r,i=e.brightColor,a=void 0===i?"rgb(255,176,38)":i,c=e.windowColor,u=void 0===c?"rgb(30,60,89)":c,s=e.time,l=void 0===s?0:s,f=e.sweep,p=void 0===f?{enable:!1,sweepRadius:1,sweepColor:"rgb(255, 255, 255)",sweepSpeed:.4,sweepCenter:this.cityCenter}:f;return{u_cityCenter:p.sweepCenter||this.cityCenter,u_cityMinSize:this.cityMinSize*p.sweepRadius,u_circleSweep:p.enable?1:0,u_circleSweepColor:Object(P.Eb)(p.sweepColor).slice(0,3),u_circleSweepSpeed:p.sweepSpeed,u_opacity:n,u_baseColor:Object(P.Eb)(o),u_brightColor:Object(P.Eb)(a),u_windowColor:Object(P.Eb)(u),u_time:this.layer.getLayerAnimateTime()||l}}},{key:"calCityGeo",value:function(){var e=A(this.layer.getSource().extent,4),t=e[0],n=e[1],r=e[2],o=e[3];if("GAODE2.x"===this.mapService.version){this.cityCenter=this.mapService.lngLatToCoord([(r+t)/2,(o+n)/2]);var i=this.mapService.lngLatToCoord([r,o]),a=this.mapService.lngLatToCoord([t,n]);this.cityMinSize=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2))/4}else{var c=r-t,u=o-n;this.cityCenter=[(r+t)/2,(o+n)/2],this.cityMinSize=Math.sqrt(Math.pow(c,2)+Math.pow(u,2))/4}}},{key:"initModels",value:function(e){this.calCityGeo(),this.startModelAnimate(),this.buildModels(e)}},{key:"buildModels",value:function(e){this.layer.buildLayerModel({moduleName:"cityBuilding",vertexShader:'precision highp float;\n\n#define ambientRatio 0.5\n#define diffuseRatio 0.3\n#define specularRatio 0.2\n\nattribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec3 a_Normal;\nattribute float a_Size;\nuniform mat4 u_ModelMatrix;\n\nattribute vec2 a_Uv;\nvarying vec2 v_texCoord;\n\nvarying vec4 v_Color;\nuniform mat4 u_Mvp;\n\nuniform float u_circleSweep;\nuniform vec2 u_cityCenter;\n\nvarying float v_worldDis;\n\n#pragma include "projection"\n#pragma include "light"\n#pragma include "picking"\n\n\nvoid main() {\n vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0);\n vec4 project_pos = project_position(pos);\n\n v_texCoord = a_Uv;\n\n if(u_circleSweep > 0.0) {\n vec2 lnglatscale = vec2(0.0);\n if(u_CoordinateSystem != COORDINATE_SYSTEM_P20_2) {\n lnglatscale = (a_Position.xy - u_cityCenter) * vec2(0.0, 0.135);\n }\n v_worldDis = length(a_Position.xy + lnglatscale - u_cityCenter);\n }\n \n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n\n float lightWeight = calc_lighting(pos);\n // v_Color = a_Color;\n v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w);\n\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'uniform float u_opacity: 1.0;\nuniform vec4 u_baseColor : [ 1.0, 0, 0, 1.0 ];\nuniform vec4 u_brightColor : [ 1.0, 0, 0, 1.0 ];\nuniform vec4 u_windowColor : [ 1.0, 0, 0, 1.0 ];\nuniform float u_near : 0;\nuniform float u_far : 1;\nvarying vec4 v_Color;\nvarying vec2 v_texCoord;\nuniform float u_Zoom : 1;\nuniform float u_time;\n\nuniform float u_circleSweep;\nuniform float u_cityMinSize;\nuniform vec3 u_circleSweepColor;\nuniform float u_circleSweepSpeed;\n\nvarying float v_worldDis;\n\n#pragma include "picking"\n\nvec3 getWindowColor(float n, float hot, vec3 brightColor, vec3 darkColor) {\n float s = step(hot, n);\n vec3 color = mix(brightColor,vec3(0.9,0.9,1.0),n);\n\n return mix(darkColor, color, s);\n}\nfloat random (vec2 st) {\n return fract(sin(dot(st.xy, vec2(12.9898,78.233)))* 43758.5453123);\n}\n\nfloat LinearizeDepth()\n{\n float z = gl_FragCoord.z * 2.0 - 1.0;\n return (2.0 * u_near * u_far) / (u_far + u_near - z * (u_far - u_near));\n}\n\nvec3 fog(vec3 color, vec3 fogColor, float depth){\n float fogFactor=clamp(depth,0.0,1.0);\n vec3 output_color=mix(fogColor,color,fogFactor);\n return output_color;\n}\n\nfloat sdRect(vec2 p, vec2 sz) {\n vec2 d = abs(p) - sz;\n float outside = length(max(d, 0.));\n float inside = min(max(d.x, d.y), 0.);\n return outside + inside;\n}\n\nvoid main() {\n gl_FragColor = v_Color;\n vec3 baseColor = u_baseColor.xyz;\n vec3 brightColor = u_brightColor.xyz;\n vec3 windowColor = u_windowColor.xyz;\n float targetColId = 5.;\n float depth = 1.0 - LinearizeDepth() / u_far * u_Zoom;\n vec3 fogColor = vec3(23.0/255.0,31.0/255.0,51.0/255.0);\n if(v_texCoord.x < 0.) { //顶部颜色\n vec3 foggedColor = fog(baseColor.xyz + vec3(0.12*0.9,0.2*0.9,0.3*0.9),fogColor,depth);\n gl_FragColor = vec4( foggedColor, v_Color.w);\n }else { // 侧面颜色\n vec2 st = v_texCoord;\n vec2 UvScale = v_texCoord;\n float tStep = min(0.08,max(0.05* (18.0-u_Zoom),0.02));\n float tStart = 0.25 * tStep;\n float tEnd = 0.75 * tStep;\n float u = mod(UvScale.x, tStep);\n float v = mod(UvScale.y, tStep);\n float ux = floor(UvScale.x/tStep);\n float uy = floor(UvScale.y/tStep);\n float n = random(vec2(ux,uy));\n float lightP = u_time;\n float head = 1.0- step(0.005,st.y);\n /*step3*/\n // 将窗户颜色和墙面颜色区别开来\n float sU = step(tStart, u) - step(tEnd, u);\n float sV = step(tStart, v) - step(tEnd, v);\n vec2 windowSize = vec2(abs(tEnd-tStart),abs(tEnd-tStart));\n float dist = sdRect(vec2(u,v), windowSize);\n float s = sU * sV;\n\n float curColId = floor(UvScale.x / tStep);\n float sCol = step(targetColId - 0.2, curColId) - step(targetColId + 0.2, curColId);\n\n float mLightP = mod(lightP, 2.);\n float sRow = step(mLightP - 0.2, st.y) - step(mLightP, st.y);\n if(ux == targetColId){\n n =0.;\n }\n float timeP = min(0.75, abs ( sin(u_time/3.0) ) );\n float hot = smoothstep(1.0,0.0,timeP);\n vec3 color = mix(baseColor, getWindowColor(n,hot,brightColor,windowColor), s);\n //vec3 color = mix(baseColor, getWindowColor(n,hot,brightColor,windowColor), 1.0);\n float sFinal = s * sCol * sRow;\n color += mix(baseColor, brightColor, sFinal*n);\n if (st.y<0.01){\n color = baseColor;\n }\n if(head ==1.0) { // 顶部亮线\n color = brightColor;\n }\n color = color * v_Color.rgb;\n\n vec3 foggedColor = fog(color,fogColor,depth);\n\n gl_FragColor = vec4(foggedColor,1.0);\n }\n\n\n if(u_circleSweep > 0.0 && v_worldDis < u_cityMinSize) {\n float r = fract(((v_worldDis/u_cityMinSize) - u_time * u_circleSweepSpeed) * 2.0);\n gl_FragColor.rgb += r * r * u_circleSweepColor;\n }\n \n gl_FragColor.a *= u_opacity;\n gl_FragColor = filterColor(gl_FragColor);\n}\n',triangulation:T.i,depth:{enable:!0},cull:{enable:!0,face:r.gl.BACK}}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"normal",type:r.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:r.gl.STATIC_DRAW,data:[],type:r.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:r.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?10:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:r.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}}])&&N(t.prototype,n),o&&N(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.a);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(e,t){return(G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=X(e);if(t){var o=X(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Y(this,n)}}function Y(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return K(e)}function K(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}(i,e);var t,n,r,o=W(i);function i(){var e;V(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return q(K(e=o.call.apply(o,[this].concat(n))),"type","CityBuildingLayer"),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this;this.layerModel=new B(this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"setLight",value:function(e){this.updateLayerConfig({time:e})}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getModelType",value:function(){return"citybuilding"}}])&&H(t.prototype,n),r&&H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a);function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t){return(ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ae(e);if(t){var o=ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oe(this,n)}}function oe(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ie(e)}function ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(a,e);var t,n,o,i=re(a);function a(){var e;ee(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ce(ie(e=i.call.apply(i,[this].concat(n))),"radian",0),ce(ie(e),"planeGeometryTriangulation",(function(){var t=e.layer.getLayerConfig().center,n=void 0===t?[120,30]:t;return{size:4,indices:[0,1,2,2,3,0],vertices:[].concat(Q(n),[1,1],Q(n),[0,1],Q(n),[0,0],Q(n),[1,0])}})),e}return t=a,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=e.width,r=void 0===n?1:n,o=e.height,i=void 0===o?1:o,a=e.raisingHeight,c=void 0===a?0:a,u=1;return"GAODE2.x"!==this.mapService.version&&"GAODE1.x"!==this.mapService.version||(u=-1),this.radian=u*Math.PI*(this.mapService.getRotation()%360)/180,{u_raisingHeight:Number(c),u_RotateMatrix:new Float32Array([Math.cos(this.radian),Math.sin(this.radian),-Math.sin(this.radian),Math.cos(this.radian)]),u_opacity:t||1,u_texture:this.texture,u_size:[r,i]}}},{key:"clearModels",value:function(){var e;null===(e=this.texture)||void 0===e||e.destroy()}},{key:"initModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,o=void 0!==n&&n,i=t.maskInside,a=void 0===i||i,c=t.drawCanvas,u=this.rendererService.createTexture2D;this.texture=u({height:0,width:0}),c&&this.updateTexture(c),this.layer.buildLayerModel({moduleName:"geometryBillboard",vertexShader:'precision highp float;\nuniform mat4 u_ModelMatrix;\nuniform float u_raisingHeight: 0.0;\nuniform mat4 u_Mvp;\nuniform float u_opacity;\nuniform vec2 u_size: [1.0, 1.0];\nuniform mat2 u_RotateMatrix;\n\nattribute vec3 a_Extrude;\nattribute vec3 a_Position;\nattribute vec2 a_Uv;\nattribute vec3 a_Color;\n\nvarying vec3 v_Color;\nvarying vec2 v_uv;\n\n#pragma include "projection"\n#pragma include "picking"\nvoid main() {\n vec3 extrude = a_Extrude;\n v_Color = a_Color;\n v_uv = a_Uv;\n\n float raiseHeight = u_raisingHeight;\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n raiseHeight = u_raisingHeight * mapboxZoomScale;\n }\n\n // 计算经纬度点位坐标\n vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0));\n\n // 计算绕 z 轴旋转后的偏移\n vec2 offsetXY = project_pixel(u_RotateMatrix * vec2(extrude.x * u_size.x, 0.0));\n // 绕 z 轴旋转\n float x = project_pos.x + offsetXY.x;\n float y = project_pos.y + offsetXY.y;\n // z 轴不参与旋转\n float z = project_pixel(extrude.y * u_size.y + raiseHeight);\n\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n // gl_Position = u_Mvp * (vec4(project_pos.xy, a_Position.z, 1.0));\n gl_Position = u_Mvp * (vec4(x, y, z, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(x , y, z , 1.0));\n }\n\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'\nuniform sampler2D u_texture;\nuniform float u_opacity;\n\nvarying vec3 v_Color;\nvarying vec2 v_uv;\n\n#pragma include "picking"\nvoid main() {\n gl_FragColor = texture2D(u_texture, vec2(v_uv.x, 1.0 - v_uv.y));\n gl_FragColor.a *= u_opacity;\n gl_FragColor = filterColor(gl_FragColor);\n}\n',triangulation:this.planeGeometryTriangulation,primitive:r.gl.TRIANGLES,depth:{enable:!0},blend:this.getBlend(),stencil:Object(P.bb)(o,a)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"buildModels",value:function(e){this.initModels(e)}},{key:"updateTexture",value:function(e){var t=this.rendererService.createTexture2D,n=this.layer.getLayerConfig(),o=n.canvasWidth,i=void 0===o?1:o,a=n.canvasHeight,c=void 0===a?1:a,u=document.createElement("canvas");u.width=i,u.height=c,u.getContext("2d")&&(e(u),this.texture=t({data:u,width:u.width,height:u.height,wrapS:r.gl.CLAMP_TO_EDGE,wrapT:r.gl.CLAMP_TO_EDGE}),this.layerService.reRender())}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"extrude",type:r.AttributeType.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:3,update:function(e,t,n,r){var o=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],i=r%4*3;return[o[i],o[i+1],o[i+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:r.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:2,update:function(e,t,n){return[n[2],n[3]]}}})}}])&&te(t.prototype,n),o&&te(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.a),se=n("k0uE");function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||de(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||de(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e,t){if(e){if("string"==typeof e)return he(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function me(e,t){return(me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=we(e);if(t){var o=we(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return be(this,n)}}function be(e,t){if(t&&("object"===le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Oe(e)}function Oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function we(e){return(we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&me(e,t)}(a,e);var t,n,o,i=ge(a);function a(){var e;ve(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _e(Oe(e=i.call.apply(i,[this].concat(n))),"terrainImageLoaded",!1),_e(Oe(e),"planeGeometryTriangulation",(function(){var t,n=e.layer.getLayerConfig(),r=n.width,o=void 0===r?1:r,i=n.height,a=void 0===i?1:i,c=n.widthSegments,u=void 0===c?1:c,s=n.heightSegments,l=void 0===s?1:s,f=n.center,p=void 0===f?[120,30]:f,d=n.terrainTexture,h=(t=e).initPlane.apply(t,[o,a,u,l].concat(pe(p))),v=h.indices,y=h.positions;return d&&e.loadTerrainTexture(y,v),{vertices:y,indices:v,size:5}})),e}return t=a,(n=[{key:"initPlane",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:120,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:30,a=e/2,c=t/2,u=Math.floor(n),s=Math.floor(r),l=u+1,f=s+1,p=e/u,d=t/s,h=[],v=[],y=0;y<f;y++)for(var m=y*d-c,g=0;g<l;g++){var b=g*p-a;if(this.mapService.version===se.a["GAODE2.x"]){var O=this.mapService.lngLatToCoord([b+o,-m+i]),w=fe(O,2),_=w[0],x=w[1];v.push(_,x,0)}else v.push(b+o,-m+i,0);v.push(g/u),v.push(1-y/s)}for(var E=0;E<s;E++)for(var S=0;S<u;S++){var C=S+l*E,j=S+l*(E+1),k=S+1+l*(E+1),P=S+1+l*E;h.push(C,j,P),h.push(j,k,P)}return{indices:h,positions:v}}},{key:"getUninforms",value:function(){var e,t=this.layer.getLayerConfig(),n=t.opacity,r=t.mapTexture,o=t.terrainClipHeight,i=void 0===o?0:o,a=t.terrainTexture;return this.mapTexture!==r&&(this.mapTexture=r,null===(e=this.texture)||void 0===e||e.destroy(),this.updateTexture(r)),{u_opacity:n||1,u_mapFlag:r?1:0,u_terrainClipHeight:a?i:-1,u_texture:this.texture}}},{key:"clearModels",value:function(){var e;this.terrainImage=null,null===(e=this.texture)||void 0===e||e.destroy()}},{key:"initModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,o=void 0!==n&&n,i=t.maskInside,a=void 0===i||i,c=t.mapTexture;this.mapTexture=c;var u=this.rendererService.createTexture2D;this.texture=u({height:0,width:0}),this.updateTexture(c),this.layer.buildLayerModel({moduleName:"geometryPlane",vertexShader:'precision highp float;\nuniform mat4 u_ModelMatrix;\n\nuniform mat4 u_Mvp;\nuniform float u_opacity;\nuniform float u_terrainClipHeight;\n\nattribute vec3 a_Position;\nattribute vec2 a_Uv;\nattribute vec3 a_Color;\n\nvarying vec3 v_Color;\nvarying vec2 v_uv;\nvarying float v_clip;\n\n#pragma include "projection"\n#pragma include "picking"\nvoid main() {\n v_Color = a_Color;\n v_uv = a_Uv;\n \n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n v_clip = 1.0;\n if(a_Position.z < u_terrainClipHeight) {\n v_clip = 0.0;\n }\n \n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0));\n\n // float x = 1.0;\n // float y = 0.0;\n // float z = 0.0;\n // mat3 translateMatrix = mat3(\n // 1.0, 0.0, 0.0 \n // 0.0, 1.0, 0.0\n // -project_pos.x, -project_pos.y, 1.0\n // );\n // mat4 translateMatrix = mat4(\n // 1.0, 0.0, 0.0, 0.0 ,\n // 0.0, 1.0, 0.0, 0.0,\n // 0.0, 0.0, 1.0, 0.0,\n // 1.0, 0.0, 0.0, 1.0\n // );\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy, a_Position.z, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, a_Position.z, 1.0));\n }\n\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'\nuniform sampler2D u_texture;\nuniform float u_mapFlag;\nuniform float u_opacity;\n\nvarying vec3 v_Color;\nvarying vec2 v_uv;\nvarying float v_clip;\n\n#pragma include "picking"\nvoid main() {\n // gl_FragColor = vec4(v_Color, u_opacity);\n if(u_mapFlag > 0.0) {\n gl_FragColor = texture2D(u_texture, vec2(v_uv.x, 1.0 - v_uv.y));\n gl_FragColor.a *= u_opacity;\n } else {\n // gl_FragColor = vec4(v_uv, 0.0, u_opacity);\n gl_FragColor = vec4(v_Color, u_opacity);\n }\n gl_FragColor.a *= v_clip;\n gl_FragColor = filterColor(gl_FragColor);\n}\n',triangulation:this.planeGeometryTriangulation,primitive:r.gl.TRIANGLES,depth:{enable:!0},stencil:Object(P.bb)(o,a),blend:this.getBlend(),cull:{enable:!0,face:r.gl.BACK}}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"buildModels",value:function(e){this.initModels(e)}},{key:"createModelData",value:function(e){if(e){var t=this.layer.getLayerConfig(),n=t.widthSegments,r=t.heightSegments,o=t.width,i=t.height,a=e,c=a.widthSegments,u=a.heightSegments,s=a.width,l=a.height;this.layer.style({widthSegments:void 0!==c?c:n,heightSegments:void 0!==u?u:r,width:void 0!==s?s:o,height:void 0!==l?l:i})}var f=this.layer.getEncodedData();return this.styleAttributeService.createAttributesAndIndices(f,this.planeGeometryTriangulation)}},{key:"updateTexture",value:function(e){var t=this,n=this.rendererService.createTexture2D;if(e){var o=new Image;o.crossOrigin="anonymous",o.onload=function(){t.texture=n({data:o,width:o.width,height:o.height,wrapS:r.gl.CLAMP_TO_EDGE,wrapT:r.gl.CLAMP_TO_EDGE}),t.layerService.reRender()},o.src=e}else this.texture=n({width:0,height:0})}},{key:"getImageData",value:function(e){var t=document.createElement("canvas"),n=t.getContext("2d"),r=e.width,o=e.height;return t.width=r,t.height=o,n.drawImage(e,0,0,r,o),n.getImageData(0,0,r,o)}},{key:"translateVertex",value:function(e,t,n,r,o,i){for(var a=n.width,c=n.height,u=this.getImageData(n).data,s=Math.floor(r),l=Math.floor(o),f=s+1,p=l+1,d=a/s,h=c/l,v=0;v<p;v++)for(var y=Math.floor(v*h)*a,m=0;m<f;m++){var g=4*(y+Math.floor(m*d)),b=u[g],O=u[g+1],w=u[g+2];e[5*(v*f+m)+2]=i(b,O,w)}var _=this.layer.getEncodedData(),x=this.styleAttributeService.createAttributesAndIndices(_,(function(){return{vertices:e,indices:t,size:5}}));this.layer.updateModelData(x),this.layerService.throttleRenderLayers()}},{key:"loadTerrainTexture",value:function(e,t){var n=this,r=this.layer.getLayerConfig(),o=r.widthSegments,i=void 0===o?1:o,a=r.heightSegments,c=void 0===a?1:a,u=r.terrainTexture,s=r.rgb2height,l=void 0===s?function(e,t,n){return e+t+n}:s;if(this.terrainImage)this.terrainImageLoaded?this.translateVertex(e,t,this.terrainImage,i,c,l):this.terrainImage.onload=function(){n.translateVertex(e,t,n.terrainImage,i,c,l)};else{var f=new Image;this.terrainImage=f,f.crossOrigin="anonymous",f.onload=function(){n.terrainImageLoaded=!0,setTimeout((function(){return n.layer.emit("terrainImageLoaded",null)})),n.translateVertex(e,t,f,i,c,l)},f.src=u}}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:r.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}}])&&ye(t.prototype,n),o&&ye(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.a);function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||je(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(e){return function(e){if(Array.isArray(e))return ke(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||je(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function je(e,t){if(e){if("string"==typeof e)return ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ke(e,t):void 0}}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Me(e,t){return(Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ne(e);if(t){var o=Ne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function Le(e,t){if(t&&("object"===Ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Re(e)}function Re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var De;!function(e){e.UP="up",e.DOWN="down"}(De||(De={}));var Fe={plane:xe,sprite:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Me(e,t)}(a,e);var t,n,o,i=Ae(a);function a(){var e;Pe(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ie(Re(e=i.call.apply(i,[this].concat(n))),"planeGeometryUpdateTriangulation",(function(){for(var t=e.layer.getLayerConfig().spriteBottom,n=void 0===t?-1e5:t,r=e.spriteUpdate,o=n,i=e.spriteTop,a=0;a<e.positions.length;a+=5)e.spriteAnimate===De.UP?(e.positions[a+2]+=r,e.positions[a+2]>i&&(e.positions[a+2]=o)):(e.positions[a+2]-=r,e.positions[a+2]<o&&(e.positions[a+2]=i));return{vertices:e.positions,indices:e.indices,size:5}})),Ie(Re(e),"updateModel",(function(){var t=e.layer.createAttributes({triangulation:e.planeGeometryUpdateTriangulation});e.layer.models.map((function(e){e.updateAttributes(t)})),e.layerService.throttleRenderLayers(),e.timer=requestAnimationFrame(e.updateModel)})),Ie(Re(e),"planeGeometryTriangulation",(function(){var t,n=e.layer.getLayerConfig(),r=n.center,o=void 0===r?[120,30]:r,i=n.spriteCount,a=void 0===i?100:i,c=n.spriteRadius,u=void 0===c?10:c,s=(t=e).initSprite.apply(t,[u,a].concat(Ce(o))),l=s.indices,f=s.positions;return e.positions=f,e.indices=l,{vertices:f,indices:l,size:5}})),e}return t=a,(n=[{key:"initSprite",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:120,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,o=[],i=[],a=this.mapService,c=this.spriteAnimate===De.UP?-this.spriteTop:this.spriteTop,u=0;u<t;u++){var s=Math.random()*c;i.push.apply(i,Ce(f(s)))}for(var l=0;l<t;l++)o.push(l);function f(t){var o=e*Math.random(),i=e*Math.random(),c=-e/2+o,u=-e/2+i;if(a.version===se.a["GAODE2.x"]){var s=Se(a.lngLatToCoord([c+n,-u+r]),2);return[s[0],s[1],t,0,0]}return[c+n,-u+r,t,0,0]}return{indices:o,positions:i}}},{key:"getUninforms",value:function(){var e,t=this.layer.getLayerConfig(),n=t.opacity,r=t.mapTexture,o=t.spriteScale,i=void 0===o?1:o;return this.mapTexture!==r&&(this.mapTexture=r,null===(e=this.texture)||void 0===e||e.destroy(),this.updateTexture(r)),{u_opacity:n||1,u_mapFlag:r?1:0,u_texture:this.texture,u_Scale:i}}},{key:"clearModels",value:function(){var e;cancelAnimationFrame(this.timer),null===(e=this.texture)||void 0===e||e.destroy()}},{key:"initModels",value:function(e){var t=this,n=this.layer.getLayerConfig(),o=n.mapTexture,i=n.spriteTop,a=void 0===i?5e6:i,c=n.spriteUpdate,u=void 0===c?1e4:c,s=n.spriteAnimate,l=void 0===s?De.DOWN:s;this.mapTexture=o,this.spriteTop=a,this.spriteUpdate=u,this.spriteAnimate="up"===l?De.UP:De.DOWN;var f=this.rendererService.createTexture2D;this.texture=f({height:0,width:0}),this.updateTexture(o),setTimeout((function(){t.updateModel()}),100),this.layer.buildLayerModel({moduleName:"geometrySprite",vertexShader:'precision highp float;\n\nattribute vec3 a_Position;\nattribute vec3 a_Color;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float u_opacity;\nuniform float u_Scale;\nvarying vec3 v_Color;\nvarying float v_d;\n\n#pragma include "projection"\nvoid main() {\n v_Color = a_Color;\n \n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n v_d = a_Position.z;\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy, a_Position.z, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, a_Position.z, 1.0));\n }\n\n gl_PointSize = pow((u_Zoom - 1.0), 2.0) * u_Scale;\n}\n',fragmentShader:"\nuniform sampler2D u_texture;\nuniform float u_mapFlag;\nuniform float u_opacity;\n\nvarying vec3 v_Color;\nvarying float v_d;\n\nvoid main() {\n\n if(v_d < 0.0) {\n discard;\n }\n\n if(u_mapFlag > 0.0) {\n gl_FragColor = texture2D(u_texture, gl_PointCoord);\n gl_FragColor.a *= u_opacity;\n } else {\n gl_FragColor = vec4(v_Color, u_opacity);\n }\n}\n",triangulation:this.planeGeometryTriangulation,primitive:r.gl.POINTS,depth:{enable:!1},blend:this.getBlend()}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"buildModels",value:function(e){this.initModels(e)}},{key:"updateTexture",value:function(e){var t=this,n=this.rendererService.createTexture2D;if(e){var o=new Image;o.crossOrigin="anonymous",o.onload=function(){t.texture=n({data:o,width:o.width,height:o.height,wrapS:r.gl.CLAMP_TO_EDGE,wrapT:r.gl.CLAMP_TO_EDGE}),t.layerService.reRender()},o.src=e}else this.texture=n({width:0,height:0})}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"registerBuiltinAttributes",value:function(){return""}}])&&Te(t.prototype,n),o&&Te(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.a),billboard:ue};function ze(e){return(ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Be(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ve(e,t){return(Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function He(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ye(e);if(t){var o=Ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ge(this,n)}}function Ge(e,t){if(t&&("object"===ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return We(e)}function We(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ve(e,t)}(i,e);var t,n,r,o=He(i);function i(){var e;Be(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ke(We(e=o.call.apply(o,[this].concat(n))),"type","GeometryLayer"),Ke(We(e),"defaultSourceConfig",{data:[{x:0,y:0}],options:{parser:{type:"json",x:"x",y:"y"}}}),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new Fe[t](this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getDefaultConfig",value:function(){return{plane:{},sprite:{},billboard:{}}[this.getModelType()]}},{key:"getModelType",value:function(){var e,t=this.styleAttributeService.getLayerStyleAttribute("shape"),n=null==t||null===(e=t.scale)||void 0===e?void 0:e.field;return"plane"===n?"plane":"sprite"===n?"sprite":"billboard"===n?"billboard":"plane"}}])&&Ue(t.prototype,n),r&&Ue(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a),qe=n("aDjr"),Ze=n("xOVz"),Je=n("3/cu"),Qe=n("CB1q"),$e=n("nfwc"),et=n("hlMf"),tt=n("nnRT"),nt=n.n(tt);function rt(e){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function it(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function at(e,t){return(at=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=st(e);if(t){var o=st(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ut(this,n)}}function ut(e,t){if(t&&("object"===rt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function st(e){return(st=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&at(e,t)}(a,e);var t,n,o,i=ct(a);function a(){return ot(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.clampLow,o=void 0===r||r,i=e.clampHigh,a=void 0===i||i,c=e.noDataValue,u=void 0===c?-9999999:c,s=e.domain,l=void 0===s?[0,1]:s,f=e.rampColors;return nt()(this.rampColors,f)||(this.updateColorTexture(),this.rampColors=f),{u_opacity:n||1,u_texture:this.texture,u_domain:l,u_clampLow:o,u_clampHigh:void 0!==a?a:o,u_noDataValue:u,u_colorTexture:this.colorTexture}}},{key:"initModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,o=void 0!==n&&n,i=t.maskInside,a=void 0===i||i,c=t.rampColorsData,u=t.rampColors,s=this.layer.getSource(),l=this.rendererService.createTexture2D,f=s.data.dataArray[0];this.texture=l({data:f.data,width:f.width,height:f.height,format:r.gl.LUMINANCE,type:r.gl.FLOAT});var p=c||Object(P.V)(u);this.colorTexture=l({data:p.data,width:p.width,height:p.height,flipY:!1}),this.layer.buildLayerModel({moduleName:"rasterImageData",vertexShader:'precision highp float;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nattribute vec3 a_Position;\nattribute vec2 a_Uv;\nvarying vec2 v_texCoord;\n#pragma include "projection"\nvoid main() {\n v_texCoord = a_Uv;\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy,0., 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0));\n }\n}\n',fragmentShader:"precision mediump float;\nuniform float u_opacity: 1.0;\nuniform sampler2D u_texture;\nuniform sampler2D u_colorTexture;\nuniform float u_min;\nuniform float u_max;\nuniform vec2 u_domain;\nuniform float u_noDataValue;\nuniform bool u_clampLow: true;\nuniform bool u_clampHigh: true;\nvarying vec2 v_texCoord;\n\n\n\n// float getBlurIndusty() {\n// vec2 u_ViewportSize = vec2(1024);\n\n// float vW = 2.0/u_ViewportSize.x;\n// float vH = 2.0/u_ViewportSize.y;\n// vec2 vUv = v_texCoord;\n// float i11 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y + 1.0 * vH) ).r;\n// float i12 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y + 1.0 * vH) ).r;\n// float i13 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y + 1.0 * vH) ).r;\n\n// float i21 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y) ).r;\n// float i22 = texture2D( u_texture, vec2( vUv.x , vUv.y) ).r;\n// float i23 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y) ).r;\n\n// float i31 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y-1.0*vH) ).r;\n// float i32 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y-1.0*vH) ).r;\n// float i33 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y-1.0*vH) ).r;\n\n// return(\n// i11 + \n// i12 + \n// i13 + \n// i21 + \n// i21 + \n// i22 + \n// i23 + \n// i31 + \n// i32 + \n// i33\n// )/9.0;\n// }\n\nvoid main() {\n\n float value = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)).r;\n\n // float value = getBlurIndusty();\n\n\n if (value == u_noDataValue)\n gl_FragColor = vec4(0.0, 0, 0, 0.0);\n else if ((!u_clampLow && value < u_domain[0]) || (!u_clampHigh && value > u_domain[1]))\n gl_FragColor = vec4(0, 0, 0, 0);\n else {\n float normalisedValue =(value - u_domain[0]) / (u_domain[1] -u_domain[0]);\n vec4 color = texture2D(u_colorTexture,vec2(normalisedValue, 0));\n gl_FragColor = color;\n gl_FragColor.a = gl_FragColor.a * u_opacity ;\n }\n}\n",triangulation:T.j,primitive:r.gl.TRIANGLES,depth:{enable:!1},stencil:Object(P.bb)(o,a),pick:!1}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"buildModels",value:function(e){this.initModels(e)}},{key:"clearModels",value:function(){var e,t;null===(e=this.texture)||void 0===e||e.destroy(),null===(t=this.colorTexture)||void 0===t||t.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:r.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}},{key:"updateColorTexture",value:function(){var e=this.rendererService.createTexture2D,t=this.layer.getLayerConfig().rampColors,n=Object(P.V)(t);this.colorTexture=e({data:n.data,width:n.width,height:n.height,flipY:!1})}}])&&it(t.prototype,n),o&&it(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.a),ft={raster:lt,raster3d:lt,rasterTile:et.a};function pt(e){return(pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t){return(vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bt(e);if(t){var o=bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mt(this,n)}}function mt(e,t){if(t&&("object"===pt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gt(e)}function gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bt(e){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vt(e,t)}(i,e);var t,n,r,o=yt(i);function i(){var e;dt(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ot(gt(e=o.call.apply(o,[this].concat(n))),"type","RasterLayer"),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new ft[t](this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getDefaultConfig",value:function(){return{raster:{},raster3d:{},rasterTile:{}}[this.getModelType()]}},{key:"getModelType",value:function(){switch(this.layerSource.getParserType()){case"raster":return"raster";case"rasterTile":return"rasterTile";default:return"raster"}}}])&&ht(t.prototype,n),r&&ht(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a),_t=n("mGvo"),xt=n.n(_t);function Et(e){return(Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function St(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jt(e,t){return(jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function kt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tt(e);if(t){var o=Tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pt(this,n)}}function Pt(e,t){if(t&&("object"===Et(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Tt(e){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jt(e,t)}(a,e);var t,n,o,i=kt(a);function a(){return St(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig().opacity,t=void 0===e?1:e;return{u_opacity:xt()(t)?t:1}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"clearModels",value:function(){return""}},{key:"buildModels",value:function(e){this.layer.zIndex=-997,this.layer.buildLayerModel({moduleName:"earthAtmoSphere",vertexShader:"\nattribute vec3 a_Position;\nattribute vec3 a_Normal;\nattribute vec2 a_Uv;\nattribute vec4 a_Color;\nuniform vec3 u_CameraPosition;\nvarying float v_CamreaDistance;\n\nuniform mat4 u_ViewProjectionMatrix;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_ViewMatrix;\n\nvarying vec3 vVertexNormal;\nvarying vec4 v_Color;\nvarying float v_offset;\n\nvoid main() {\n float EARTH_RADIUS = 100.0;\n \n v_Color = a_Color;\n\n v_offset = min(((length(u_CameraPosition) - EARTH_RADIUS)/600.0) * 0.5 + 0.4, 1.0);\n vVertexNormal = a_Normal;\n\n gl_Position = u_ViewProjectionMatrix * u_ModelMatrix * vec4(a_Position, 1.0);\n}\n",fragmentShader:"\nuniform float u_opacity;\nuniform vec3 u_CameraPosition;\n\nvarying vec3 vVertexNormal;\nvarying float v_offset;\nvarying vec4 v_Color;\nvoid main() {\n \n \n // float intensity = pow(0.5 + dot(normalize(vVertexNormal), normalize(u_CameraPosition)), 3.0);\n float intensity = pow(v_offset + dot(normalize(vVertexNormal), normalize(u_CameraPosition)), 3.0);\n // 去除背面\n if(intensity > 1.0) intensity = 0.0;\n\n gl_FragColor = vec4(v_Color.rgb, v_Color.a * intensity * u_opacity);\n}\n",triangulation:T.n,depth:{enable:!1},blend:this.getBlend()}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:r.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:r.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:r.gl.STATIC_DRAW,data:[],type:r.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:r.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}}])&&Ct(t.prototype,n),o&&Ct(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.a);function At(e){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nt(e,t){return(Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function It(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zt(e);if(t){var o=zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dt(this,n)}}function Dt(e,t){if(t&&("object"===At(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ft(e)}function Ft(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zt(e){return(zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ut=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nt(e,t)}(a,e);var t,n,o,i=It(a);function a(){var e;Lt(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Bt(Ft(e=i.call.apply(i,[this].concat(n))),"earthTime",3.4),Bt(Ft(e),"sunX",1e3),Bt(Ft(e),"sunY",1e3),Bt(Ft(e),"sunZ",1e3),Bt(Ft(e),"sunRadius",Math.sqrt(e.sunX*e.sunX+e.sunY*e.sunY+e.sunZ*e.sunZ)),e}return t=a,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.animateOption,n=e.globalOptions;return null!=t&&t.enable&&(this.mapService.rotateY({reg:.002}),this.earthTime+=.02,this.sunY=10,this.sunX=Math.cos(this.earthTime)*(this.sunRadius-this.sunY),this.sunZ=Math.sin(this.earthTime)*(this.sunRadius-this.sunY)),{u_ambientRatio:(null==n?void 0:n.ambientRatio)||.6,u_diffuseRatio:(null==n?void 0:n.diffuseRatio)||.4,u_specularRatio:(null==n?void 0:n.specularRatio)||.1,u_sunLight:[this.sunX,this.sunY,this.sunZ],u_texture:this.texture}}},{key:"setEarthTime",value:function(e){this.earthTime=e,this.sunY=10,this.sunX=Math.cos(this.earthTime)*(this.sunRadius-this.sunY),this.sunZ=Math.sin(this.earthTime)*(this.sunRadius-this.sunY),this.layerService.throttleRenderLayers()}},{key:"initModels",value:function(e){var t=this,n=this.layer.getLayerConfig().globalOptions;void 0!==(null==n?void 0:n.earthTime)&&this.setEarthTime(n.earthTime);var r=this.layer.getSource(),o=this.rendererService.createTexture2D;this.texture=o({height:0,width:0}),r.data.images.then((function(e){t.texture=o({data:e[0],width:e[0].width,height:e[0].height}),t.layerService.reRender()})),this.buildModels(e)}},{key:"clearModels",value:function(){return""}},{key:"buildModels",value:function(e){this.layer.zIndex=-998,this.layer.buildLayerModel({moduleName:"earthBase",vertexShader:"// attribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec3 a_Normal;\nattribute vec2 a_Uv;\nvarying vec2 v_texCoord;\n\n// attribute vec2 a_Extrude;\n// attribute float a_Size;\n// attribute float a_Shape;\n\nuniform vec3 u_CameraPosition;\nuniform mat4 u_ViewProjectionMatrix;\nuniform mat4 u_ModelMatrix;\nuniform float u_ambientRatio : 0.5;\nuniform float u_diffuseRatio : 0.3;\nuniform float u_specularRatio : 0.2;\nuniform vec3 u_sunLight: [1.0, -10.5, 12.0];\n\n\n\nfloat calc_lighting(vec4 pos) {\n\n vec3 worldPos = vec3(pos * u_ModelMatrix);\n\n vec3 worldNormal = a_Normal;\n\n // cal light weight\n vec3 viewDir = normalize(u_CameraPosition - worldPos);\n\n vec3 lightDir = normalize(u_sunLight);\n\n vec3 halfDir = normalize(viewDir+lightDir);\n // lambert\n float lambert = dot(worldNormal, lightDir);\n // specular\n float specular = pow(max(0.0, dot(worldNormal, halfDir)), 32.0);\n //sum to light weight\n float lightWeight = u_ambientRatio + u_diffuseRatio * lambert + u_specularRatio * specular;\n\n return lightWeight;\n}\n\nvarying float v_lightWeight;\nvoid main() {\n\n v_texCoord = a_Uv;\n\n float lightWeight = calc_lighting(vec4(a_Position, 1.0));\n v_lightWeight = lightWeight;\n\n gl_Position = u_ViewProjectionMatrix * u_ModelMatrix * vec4(a_Position, 1.0);\n}\n",fragmentShader:"\nuniform sampler2D u_texture;\n\nvarying vec2 v_texCoord;\nvarying float v_lightWeight;\n\n\nvoid main() {\n\n vec4 color = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y));\n color.xyz = color.xyz * v_lightWeight;\n gl_FragColor = color;\n}\n",triangulation:T.n,depth:{enable:!0},blend:this.getBlend()}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:r.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:r.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:r.gl.STATIC_DRAW,data:[],type:r.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:r.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}}])&&Rt(t.prototype,n),o&&Rt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.a);function Vt(e){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wt(e,t){return(Wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xt(e);if(t){var o=Xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kt(this,n)}}function Kt(e,t){if(t&&("object"===Vt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xt(e){return(Xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qt(e){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qt(e,t){return(Qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nn(e);if(t){var o=nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return en(this,n)}}function en(e,t){if(t&&("object"===qt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tn(e)}function tn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nn(e){return(nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on={base:Ut,atomSphere:Mt,bloomSphere:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wt(e,t)}(a,e);var t,n,o,i=Yt(a);function a(){return Ht(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig().opacity,t=void 0===e?1:e;return{u_opacity:xt()(t)?t:1}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"clearModels",value:function(){return""}},{key:"buildModels",value:function(e){this.layer.zIndex=-999,this.layer.buildLayerModel({moduleName:"earthBloom",vertexShader:"\nattribute vec3 a_Position;\nattribute vec3 a_Normal;\nattribute vec2 a_Uv;\nattribute vec4 a_Color;\nuniform vec3 u_CameraPosition;\nuniform mat4 u_ViewProjectionMatrix;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_ViewMatrix;\n\nvarying vec3 vVertexNormal;\nvarying vec4 v_Color;\n\nvoid main() {\n v_Color = a_Color;\n\n vVertexNormal = a_Normal;\n\n gl_Position = u_ViewProjectionMatrix * u_ModelMatrix * vec4(a_Position, 1.0);\n}\n",fragmentShader:"\nuniform float u_opacity;\nuniform vec3 u_CameraPosition;\nvarying vec3 vVertexNormal;\n\nvarying vec4 v_Color;\nvoid main() {\n\n\n float intensity = - dot(normalize(vVertexNormal), normalize(u_CameraPosition));\n // 去除背面\n if(intensity > 1.0) intensity = 0.0;\n\n gl_FragColor = vec4(v_Color.rgb, v_Color.a * intensity * u_opacity);\n}\n",triangulation:T.m,depth:{enable:!1},blend:this.getBlend()}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:r.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:r.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:r.gl.STATIC_DRAW,data:[],type:r.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:r.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}}])&&Gt(t.prototype,n),o&&Gt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.a)},an=["base","atomSphere","bloomSphere"],cn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qt(e,t)}(i,e);var t,n,r,o=$t(i);function i(){var e;Zt(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rn(tn(e=o.call.apply(o,[this].concat(n))),"type","EarthLayer"),rn(tn(e),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new on[t](this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"setEarthTime",value:function(e){this.layerModel&&this.layerModel.setEarthTime?this.layerModel.setEarthTime(e):console.warn("请在 scene loaded 之后执行该方法!")}},{key:"getModelType",value:function(){var e,t=this.styleAttributeService.getLayerStyleAttribute("shape"),n=(null==t||null===(e=t.scale)||void 0===e?void 0:e.field)||"base";return an.indexOf(n)<0&&(n="base"),n}}])&&Jt(t.prototype,n),r&&Jt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a),un=n("Pm61");function sn(e,t,n){var r=ln(e,e.VERTEX_SHADER,t),o=ln(e,e.FRAGMENT_SHADER,n);if(!r||!o)return null;var i=e.createProgram();if(!i)return null;if(e.attachShader(i,r),e.attachShader(i,o),e.linkProgram(i),!e.getProgramParameter(i,e.LINK_STATUS)){var a=e.getProgramInfoLog(i);return console.warn("Failed to link program: "+a),e.deleteProgram(i),e.deleteShader(o),e.deleteShader(r),null}for(var c=e.getProgramParameter(i,e.ACTIVE_ATTRIBUTES),u=0;u<c;u++){var s=e.getActiveAttrib(i,u);i[s.name]=e.getAttribLocation(i,s.name)}for(var l=e.getProgramParameter(i,e.ACTIVE_UNIFORMS),f=0;f<l;f++){var p=e.getActiveUniform(i,f);i[p.name]=e.getUniformLocation(i,p.name)}return i.vertexShader=r,i.fragmentShader=o,i}function ln(e,t,n){var r=e.createShader(t);if(null==r)return console.warn("unable to create shader"),null;if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){var o=e.getShaderInfoLog(r);return console.warn("Failed to compile shader: "+o),e.deleteShader(r),null}return r}function fn(e,t,n,r,o){var i=e.createTexture();return e.bindTexture(e.TEXTURE_2D,i),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,r,o,0,e.RGBA,e.UNSIGNED_BYTE,n),e.bindTexture(e.TEXTURE_2D,null),i}function pn(e,t,n){e.activeTexture(e.TEXTURE0+n),e.bindTexture(e.TEXTURE_2D,t)}function dn(e,t){var n=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,n),e.bufferData(e.ARRAY_BUFFER,t,e.STATIC_DRAW),n}function hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e){var t=document.createElement("canvas"),n=t.getContext("2d");t.width=256,t.height=1;for(var r=n.createLinearGradient(0,0,256,0),o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];r.addColorStop(+a,e[+a])}return n.fillStyle=r,n.fillRect(0,0,256,1),t=null,new Uint8Array(n.getImageData(0,0,256,1).data)}function mn(e,t,n,r){e.bindBuffer(e.ARRAY_BUFFER,t),e.enableVertexAttribArray(n),e.vertexAttribPointer(n,r,e.FLOAT,!1,0,0)}function gn(e,t,n){e.bindFramebuffer(e.FRAMEBUFFER,t),n&&e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0)}var bn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vn(this,"width",512),vn(this,"height",512),vn(this,"numParticles",65536),this.gl=t.glContext,this.width=t.imageWidth,this.height=t.imageHeight,this.fadeOpacity=t.fadeOpacity,this.speedFactor=t.speedFactor,this.dropRate=t.dropRate,this.dropRateBump=t.dropRateBump,this.rampColors=t.rampColors,this.init()}var t,n,r;return t=e,(n=[{key:"init",value:function(){var e=this.gl;this.fadeOpacity=.996,this.speedFactor=.25,this.dropRate=.003,this.dropRateBump=.01,this.drawProgram=sn(e,"\n precision mediump float;\n\n attribute float a_index;\n\n uniform sampler2D u_particles;\n uniform float u_particles_res;\n\n varying vec2 v_particle_pos;\n\n void main() {\n vec4 color = texture2D(u_particles, vec2(\n fract(a_index / u_particles_res),\n floor(a_index / u_particles_res) / u_particles_res)\n );\n\n // decode current particle position from the pixel's RGBA value\n v_particle_pos = vec2( color.r / 255.0 + color.b, color.g / 255.0 + color.a);\n\n gl_PointSize = 1.0;\n gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);\n }","\n precision mediump float;\n\n uniform sampler2D u_wind;\n uniform vec2 u_wind_min;\n uniform vec2 u_wind_max;\n uniform sampler2D u_color_ramp;\n\n varying vec2 v_particle_pos;\n\n void main() {\n vec2 velocity = mix(u_wind_min, u_wind_max, texture2D(u_wind, v_particle_pos).rg);\n float speed_t = length(velocity) / length(u_wind_max);\n\n // color ramp is encoded in a 16x16 texture\n vec2 ramp_pos = vec2( fract(16.0 * speed_t), floor(16.0 * speed_t) / 16.0);\n\n gl_FragColor = texture2D(u_color_ramp, ramp_pos);\n }"),this.fullScreenProgram=sn(e,"\n precision mediump float;\n\n attribute vec2 a_pos;\n\n varying vec2 v_tex_pos;\n\n void main() {\n v_tex_pos = a_pos;\n gl_Position = vec4(1.0 - 2.0 * a_pos, 0.0, 1.0);\n gl_PointSize = 100.0;\n }","\n precision mediump float;\n\n uniform sampler2D u_screen;\n uniform float u_opacity;\n varying vec2 v_tex_pos;\n\n void main() {\n vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);\n\n // a hack to guarantee opacity fade out even with a value close to 1.0\n gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);\n }"),this.updateProgram=sn(e,"\n precision mediump float;\n\n attribute vec2 a_pos;\n\n varying vec2 v_tex_pos;\n\n void main() {\n v_tex_pos = a_pos;\n gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);\n // framebuffer 始终用铺满屏幕的 texture\n }","\n precision highp float;\n\n uniform sampler2D u_particles;\n uniform sampler2D u_wind;\n uniform vec2 u_wind_res;\n uniform vec2 u_wind_min;\n uniform vec2 u_wind_max;\n uniform float u_rand_seed;\n uniform float u_speed_factor;\n uniform float u_drop_rate;\n uniform float u_drop_rate_bump;\n\n varying vec2 v_tex_pos;\n\n // pseudo-random generator\n const vec3 rand_constants = vec3(12.9898, 78.233, 4375.85453);\n float rand(const vec2 co) {\n float t = dot(rand_constants.xy, co);\n return fract(sin(t) * (rand_constants.z + t));\n }\n\n // wind speed lookup; use manual bilinear filtering based on 4 adjacent pixels for smooth interpolation\n vec2 lookup_wind(const vec2 uv) {\n // return texture2D(u_wind, uv).rg; // lower-res hardware filtering\n vec2 px = 1.0 / u_wind_res;\n vec2 vc = (floor(uv * u_wind_res)) * px;\n vec2 f = fract(uv * u_wind_res);\n vec2 tl = texture2D(u_wind, vc).rg;\n vec2 tr = texture2D(u_wind, vc + vec2(px.x, 0)).rg;\n vec2 bl = texture2D(u_wind, vc + vec2(0, px.y)).rg;\n vec2 br = texture2D(u_wind, vc + px).rg;\n return mix(mix(tl, tr, f.x), mix(bl, br, f.x), f.y);\n }\n\n void main() {\n vec4 color = texture2D(u_particles, v_tex_pos);\n vec2 pos = vec2(\n color.r / 255.0 + color.b,\n color.g / 255.0 + color.a); // decode particle position from pixel RGBA\n vec2 velocity = mix(u_wind_min, u_wind_max, lookup_wind(pos));\n float speed_t = length(velocity) / length(u_wind_max);\n\n // take EPSG:4236 distortion into account for calculating where the particle moved\n float distortion = cos(radians(pos.y * 180.0 - 90.0));\n vec2 offset = vec2(velocity.x / distortion, -velocity.y) * 0.0001 * u_speed_factor;\n\n // update particle position, wrapping around the date line\n pos = fract(1.0 + pos + offset);\n\n // a random seed to use for the particle drop\n vec2 seed = (pos + v_tex_pos) * u_rand_seed;\n\n // drop rate is a chance a particle will restart at random position, to avoid degeneration\n float drop_rate = u_drop_rate + speed_t * u_drop_rate_bump;\n float drop = step(1.0 - drop_rate, rand(seed));\n\n vec2 random_pos = vec2(\n rand(seed + 1.3),\n rand(seed + 2.1));\n pos = mix(pos, random_pos, drop);\n\n // encode the new particle position back into RGBA\n gl_FragColor = vec4(\n fract(pos * 255.0),\n floor(pos * 255.0) / 255.0);\n }"),this.quadBuffer=dn(e,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])),this.framebuffer=e.createFramebuffer(),this.colorRampTexture=fn(this.gl,this.gl.LINEAR,yn(this.rampColors),16,16);var t=new Uint8Array(this.width*this.height*4);this.backgroundTexture=fn(e,e.NEAREST,t,this.width,this.height),this.screenTexture=fn(e,e.NEAREST,t,this.width,this.height);var n=this.particleStateResolution=Math.ceil(Math.sqrt(this.numParticles));this.numParticlesSize=n*n;for(var r=new Uint8Array(4*this.numParticlesSize),o=0;o<r.length;o++)r[o]=Math.floor(256*Math.random());this.particleStateTexture0=fn(e,e.NEAREST,r,n,n),this.particleStateTexture1=fn(e,e.NEAREST,r,n,n);for(var i=new Float32Array(this.numParticlesSize),a=0;a<this.numParticlesSize;a++)i[a]=a;this.particleIndexBuffer=dn(e,i)}},{key:"setWind",value:function(e){var t,n,r,o;this.windData=e,this.windTexture=(t=this.gl,n=this.gl.LINEAR,r=e.image,o=t.createTexture(),t.bindTexture(t.TEXTURE_2D,o),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r),t.bindTexture(t.TEXTURE_2D,null),o)}},{key:"updateParticelNum",value:function(e){var t=this.gl;if(e!==this.numParticles){this.numParticles=e;var n=this.particleStateResolution=Math.ceil(Math.sqrt(this.numParticles));this.numParticlesSize=n*n;for(var r=new Uint8Array(4*this.numParticlesSize),o=0;o<r.length;o++)r[o]=Math.floor(256*Math.random());this.particleStateTexture0=fn(t,t.NEAREST,r,n,n),this.particleStateTexture1=fn(t,t.NEAREST,r,n,n);for(var i=new Float32Array(this.numParticlesSize),a=0;a<this.numParticlesSize;a++)i[a]=a;this.particleIndexBuffer=dn(t,i)}}},{key:"updateWindDir",value:function(e,t,n,r){this.windData.uMin=e,this.windData.uMax=t,this.windData.vMin=n,this.windData.vMax=r}},{key:"updateColorRampTexture",value:function(e){if(this.isColorChanged(e)){this.rampColors=e;var t=this.gl;t.deleteTexture(this.colorRampTexture),this.colorRampTexture=fn(t,t.LINEAR,yn(e),16,16)}}},{key:"isColorChanged",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t],o=Number(r);if(!this.rampColors[o])return!0;if(this.rampColors[o]&&this.rampColors[o]!==e[o])return!0}return!1}},{key:"reSize",value:function(e,t){if(e!==this.width||t!==this.height){var n=this.gl;n.deleteTexture(this.backgroundTexture),n.deleteTexture(this.screenTexture),this.width=e,this.height=t;var r=new Uint8Array(e*t*4);this.backgroundTexture=fn(n,n.NEAREST,r,e,t),this.screenTexture=fn(n,n.NEAREST,r,e,t)}}},{key:"draw",value:function(){var e;if(null!==(e=this.windData)&&void 0!==e&&e.image){var t=this.gl;return pn(t,this.windTexture,0),pn(t,this.particleStateTexture0,1),this.drawScreen(),this.updateParticles(),{d:this.pixels,w:this.width,h:this.height}}return{d:new Uint8Array([0,0,0,0]),w:1,h:1}}},{key:"drawScreen",value:function(){var e=this.gl;gn(e,this.framebuffer,this.screenTexture),e.viewport(0,0,this.width,this.height),e.disable(e.BLEND),this.drawFullTexture(this.backgroundTexture,this.fadeOpacity),this.drawParticles(),this.pixels=new Uint8Array(4*this.width*this.height),e.readPixels(0,0,this.width,this.height,e.RGBA,e.UNSIGNED_BYTE,this.pixels),gn(e,null,null),e.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height);var t=this.backgroundTexture;this.backgroundTexture=this.screenTexture,this.screenTexture=t}},{key:"drawFullTexture",value:function(e,t){var n=this.gl,r=this.fullScreenProgram;n.useProgram(r),n.bindBuffer(n.ARRAY_BUFFER,this.quadBuffer),n.vertexAttribPointer(r.a_pos,2,n.FLOAT,!1,0,0),n.enableVertexAttribArray(r.a_pos),n.bindBuffer(n.ARRAY_BUFFER,null),pn(n,e,2),n.uniform1i(r.u_screen,2),n.uniform1f(r.u_opacity,t),n.drawArrays(n.TRIANGLES,0,6)}},{key:"drawParticles",value:function(){var e=this.gl,t=this.drawProgram;e.useProgram(t),mn(e,this.particleIndexBuffer,t.a_index,1),pn(e,this.colorRampTexture,2),e.uniform1i(t.u_wind,0),e.uniform1i(t.u_particles,1),e.uniform1i(t.u_color_ramp,2),e.uniform1f(t.u_particles_res,this.particleStateResolution),e.uniform2f(t.u_wind_min,this.windData.uMin,this.windData.vMin),e.uniform2f(t.u_wind_max,this.windData.uMax,this.windData.vMax),e.drawArrays(e.POINTS,0,this.numParticlesSize)}},{key:"updateParticles",value:function(){var e=this.gl;gn(e,this.framebuffer,this.particleStateTexture1),e.viewport(0,0,this.particleStateResolution,this.particleStateResolution);var t=this.updateProgram;e.useProgram(t),mn(e,this.quadBuffer,t.a_pos,2),e.uniform1i(t.u_wind,0),e.uniform1i(t.u_particles,1),e.uniform1f(t.u_rand_seed,Math.random()),e.uniform2f(t.u_wind_res,2*this.windData.image.width,2*this.windData.image.height),e.uniform2f(t.u_wind_min,this.windData.uMin,this.windData.vMin),e.uniform2f(t.u_wind_max,this.windData.uMax,this.windData.vMax),e.uniform1f(t.u_speed_factor,this.speedFactor),e.uniform1f(t.u_drop_rate,this.dropRate),e.uniform1f(t.u_drop_rate_bump,this.dropRateBump),e.drawArrays(e.TRIANGLES,0,6);var n=this.particleStateTexture0;this.particleStateTexture0=this.particleStateTexture1,this.particleStateTexture1=n,gn(e,null,null)}},{key:"destroy",value:function(){this.gl.deleteBuffer(this.quadBuffer),this.gl.deleteBuffer(this.particleIndexBuffer),this.gl.deleteFramebuffer(this.framebuffer),this.gl.deleteShader(this.drawProgram.vertexShader),this.gl.deleteShader(this.drawProgram.fragmentShader),this.gl.deleteProgram(this.drawProgram),this.gl.deleteShader(this.fullScreenProgram.vertexShader),this.gl.deleteShader(this.fullScreenProgram.fragmentShader),this.gl.deleteProgram(this.fullScreenProgram),this.gl.deleteShader(this.updateProgram.vertexShader),this.gl.deleteShader(this.updateProgram.fragmentShader),this.gl.deleteProgram(this.updateProgram),this.gl.deleteTexture(this.colorRampTexture),this.gl.deleteTexture(this.backgroundTexture),this.gl.deleteTexture(this.screenTexture),this.gl.deleteTexture(this.particleStateTexture0),this.gl.deleteTexture(this.particleStateTexture1),this.gl.deleteTexture(this.windTexture)}}])&&hn(t.prototype,n),r&&hn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function On(e){return(On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xn(e,t){return(xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function En(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jn(e);if(t){var o=jn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sn(this,n)}}function Sn(e,t){if(t&&("object"===On(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Cn(e)}function Cn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jn(e){return(jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pn={0:"#3288bd",.1:"#66c2a5",.2:"#abdda4",.3:"#e6f598",.4:"#fee08b",.5:"#fdae61",.6:"#f46d43",1:"#d53e4f"},Tn={wind:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xn(e,t)}(a,e);var t,n,o,i=En(a);function a(){var e;wn(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kn(Cn(e=i.call.apply(i,[this].concat(n))),"sizeScale",.5),kn(Cn(e),"frequency",new P.g(7.2)),e}return t=a,(n=[{key:"render",value:function(){var e=this;this.frequency.run((function(){e.drawWind()})),this.drawColorMode()}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"initModels",value:function(e){var t,n,o,i=this,a=this.layer.getLayerConfig(),c=a.uMin,u=void 0===c?-21.32:c,s=a.uMax,l=void 0===s?26.8:s,f=a.vMin,p=void 0===f?-21.57:f,d=a.vMax,h=void 0===d?21.42:d,v=a.fadeOpacity,y=void 0===v?.996:v,m=a.speedFactor,g=void 0===m?.25:m,b=a.dropRate,O=void 0===b?.003:b,w=a.dropRateBump,_=void 0===w?.01:w,x=a.rampColors,E=void 0===x?Pn:x,S=a.sizeScale,C=void 0===S?.5:S,j=a.mask,k=void 0!==j&&j,M=a.maskInside,A=void 0===M||M,L=this.rendererService.createTexture2D,R=this.layer.getSource();this.texture=L({height:0,width:0}),this.cacheZoom=Math.floor(this.mapService.getZoom());var N=this.rendererService.getGLContext();this.imageCoords=null===(t=R.data)||void 0===t?void 0:t.dataArray[0].coordinates,null===(n=R.data)||void 0===n||null===(o=n.images)||void 0===o||o.then((function(e){var t;i.sizeScale=C*i.getZoomScale();var n=i.getWindSize(),r=n.imageWidth,o=n.imageHeight,a={glContext:N,imageWidth:r,imageHeight:o,fadeOpacity:y,speedFactor:g,dropRate:O,dropRateBump:_,rampColors:E};i.wind=new bn(a),i.wind.setWind({uMin:u,uMax:l,vMin:p,vMax:h,image:e[0]}),null===(t=i.texture)||void 0===t||t.destroy(),i.texture=L({width:r,height:o}),i.layerService.reRender()})),this.layer.buildLayerModel({moduleName:"wind",vertexShader:'precision highp float;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nattribute vec3 a_Position;\nattribute vec2 a_Uv;\nvarying vec2 v_texCoord;\n#pragma include "projection"\nvoid main() {\n v_texCoord = a_Uv;\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n \n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy,0., 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0));\n }\n}\n',fragmentShader:"precision mediump float;\nuniform float u_opacity: 1.0;\nuniform sampler2D u_texture;\nvarying vec2 v_texCoord;\nvoid main() {\n vec4 color = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y));\n gl_FragColor = color;\n gl_FragColor.a *= u_opacity;\n}\n",triangulation:T.j,primitive:r.gl.TRIANGLES,depth:{enable:!1},stencil:Object(P.bb)(k,A),blend:this.getBlend(),pick:!1}).then((function(t){i.colorModel=t,e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"getWindSize",value:function(){var e=this.mapService.lngLatToPixel(this.imageCoords[0]),t=this.mapService.lngLatToPixel(this.imageCoords[1]);return{imageWidth:Math.min(Math.floor((t.x-e.x)*this.sizeScale),2048),imageHeight:Math.min(Math.floor((e.y-t.y)*this.sizeScale),2048)}}},{key:"buildModels",value:function(e){this.initModels(e)}},{key:"clearModels",value:function(){var e,t;null===(e=this.texture)||void 0===e||e.destroy(),null===(t=this.wind)||void 0===t||t.destroy()}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:r.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}},{key:"getZoomScale",value:function(){return Math.min((this.cacheZoom+4)/30*2,2)}},{key:"drawWind",value:function(){if(this.wind){var e=this.layer.getLayerConfig(),t=e.uMin,n=void 0===t?-21.32:t,r=e.uMax,o=void 0===r?26.8:r,i=e.vMin,a=void 0===i?-21.57:i,c=e.vMax,u=void 0===c?21.42:c,s=e.numParticles,l=void 0===s?65535:s,f=e.fadeOpacity,p=void 0===f?.996:f,d=e.speedFactor,h=void 0===d?.25:d,v=e.dropRate,y=void 0===v?.003:v,m=e.dropRateBump,g=void 0===m?.01:m,b=e.rampColors,O=void 0===b?Pn:b,w=e.sizeScale,_=void 0===w?.5:w,x=l,E=Math.floor(this.mapService.getZoom());if("number"==typeof _&&_!==this.sizeScale||E!==this.cacheZoom){var S=this.getZoomScale();this.sizeScale=_,x*=S;var C=this.getWindSize(),j=C.imageWidth,k=C.imageHeight;this.wind.reSize(j,k),this.cacheZoom=E}this.wind.updateWindDir(n,o,a,u),this.wind.updateParticelNum(x),this.wind.updateColorRampTexture(O),this.wind.fadeOpacity=p,this.wind.speedFactor=h,this.wind.dropRate=y,this.wind.dropRateBump=g;var P=this.wind.draw(),T=P.d,M=P.w,A=P.h;this.rendererService.setBaseState(),this.texture.update({data:T,width:M,height:A})}}},{key:"drawColorMode",value:function(){var e,t=this.layer.getLayerConfig().opacity;this.layer.masks.map((function(e){e.hooks.beforeRenderData.call(),e.hooks.beforeRender.call(),e.render(),e.hooks.afterRender.call()})),null===(e=this.colorModel)||void 0===e||e.draw({uniforms:{u_opacity:t||1,u_texture:this.texture}})}}])&&_n(t.prototype,n),o&&_n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.a)};function Mn(e){return(Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function An(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rn(e,t){return(Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fn(e);if(t){var o=Fn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return In(this,n)}}function In(e,t){if(t&&("object"===Mn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Dn(e)}function Dn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fn(e){return(Fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rn(e,t)}(i,e);var t,n,r,o=Nn(i);function i(){var e;An(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return zn(Dn(e=o.call.apply(o,[this].concat(n))),"type","WindLayer"),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new Tn[t](this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"renderModels",value:function(){return this.layerModel&&this.layerModel.render(),this}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getDefaultConfig",value:function(){return{wind:{}}[this.getModelType()]}},{key:"getModelType",value:function(){return"wind"}}])&&Ln(t.prototype,n),r&&Ln(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a);function Un(e){return(Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gn(e,t){return(Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xn(e);if(t){var o=Xn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yn(this,n)}}function Yn(e,t){if(t&&("object"===Un(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Kn(e)}function Kn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xn(e){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zn,Jn,Qn,$n,er,tr,nr,rr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gn(e,t)}(i,e);var t,n,r,o=Wn(i);function i(){var e;Vn(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qn(Kn(e=o.call.apply(o,[this].concat(n))),"type","TileDebugLayer"),qn(Kn(e),"defaultSourceConfig",{data:[],options:{parser:{type:"testTile",cancelExtent:!0}}}),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this;this.layerModel=new et.a(this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}}])&&Hn(t.prototype,n),r&&Hn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a),or=n("c2re"),ir=n.n(or),ar=n("s6Xb");n("qzOT");function cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){fr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sr(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pr(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var dr,hr=(Zn=Object(ar.injectable)(),Jn=Object(ar.inject)(r.TYPES.IMapService),Qn=Object(ar.inject)(r.TYPES.IFontService),Zn((tr=pr((er=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),sr(this,"mapService",tr,this),sr(this,"fontService",nr,this)}var t,n,r;return t=e,(n=[{key:"apply",value:function(e,t){var n=this,r=t.styleAttributeService;e.hooks.init.tap("DataMappingPlugin",(function(){var t=e.getSource();t.inited?n.generateMaping(e,{styleAttributeService:r}):t.once("sourceUpdate",(function(){n.generateMaping(e,{styleAttributeService:r})}))})),e.hooks.beforeRenderData.tap("DataMappingPlugin",(function(){e.dataState.dataMappingNeedUpdate=!1;var t=e.getSource();return t.inited?n.generateMaping(e,{styleAttributeService:r}):t.once("sourceUpdate",(function(){n.generateMaping(e,{styleAttributeService:r})})),!0})),e.hooks.beforeRender.tap("DataMappingPlugin",(function(){if("basemap"!==e.getLayerConfig().usage){var t=e.getSource();if(!e.layerModelNeedUpdate&&t&&t.inited){var o=e.getBottomColor(),i=r.getLayerStyleAttributes()||[],a=r.getLayerStyleAttribute("filter"),c=t.data.dataArray,u=i.filter((function(e){return e.needRemapping})),s=c;if(null!=a&&a.needRemapping&&null!=a&&a.scale&&(s=c.filter((function(e){return n.applyAttributeMapping(a,e,o)[0]}))),u.length){if(null!=a&&a.needRemapping){var l=n.mapping(e,i,s,void 0,o);e.setEncodedData(l),a.needRemapping=!1}else{var f=n.mapping(e,u,s,e.getEncodedData(),o);e.setEncodedData(f)}e.emit("remapping",null)}}}}))}},{key:"generateMaping",value:function(e,t){var n=this,r=t.styleAttributeService,o=e.getBottomColor(),i=r.getLayerStyleAttributes()||[],a=r.getLayerStyleAttribute("filter"),c=e.getSource().data.dataArray,u=c;null!=a&&a.scale&&(u=c.filter((function(e){return n.applyAttributeMapping(a,e,o)[0]})));var s=this.mapping(e,i,u,void 0,o);e.setEncodedData(s),e.emit("dataUpdate",null)}},{key:"mapping",value:function(e,t,n,r,o){var i=this,a=e.getLayerConfig(),c=a.arrow,u=void 0===c?{enable:!1}:c;if("basemap"===a.usage)return this.mapLayerMapping(e,t,n,r);var s=t.filter((function(e){return void 0!==e.scale})),l=n.map((function(t,n){var a=r?r[n]:{},c=ur({id:t._id,coordinates:t.coordinates},a);if(s.forEach((function(e){var n=i.applyAttributeMapping(e,t,o);e.needRemapping=!1,"color"===e.name&&(n=n.map((function(e){return Object(P.Eb)(e)}))),c[e.name]=Array.isArray(n)&&1===n.length?n[0]:n,"shape"===e.name&&(c.shape=i.fontService.getIconFontKey(c[e.name]))})),u.enable&&("line"===c.shape||"halfLine"===c.shape)){var l=c.coordinates;if(e.arrowInsertCount<e.encodeDataLength){var f=i.getArrowPoints(l[0],l[1]);c.coordinates.splice(1,0,f,f),e.arrowInsertCount++}}return c}));return this.adjustData2Amap2Coordinates(l,e),this.adjustData2SimpleCoordinates(l),l}},{key:"mapLayerMapping",value:function(e,t,n,r){var o=this,i=t.filter((function(e){return void 0!==e.scale})),a=n.map((function(t,n){var a=r?r[n]:{},c=ur({id:t._id,coordinates:t.coordinates},a);return i.forEach((function(n){var r;if("shape"===n.name&&"simple"===(null===(r=e.shapeOption)||void 0===r?void 0:r.field))c[n.name]="simple",n.needRemapping=!1;else{var i=o.applyMapLayerAttributeMapping(n,t);n.needRemapping=!1,c[n.name]=Array.isArray(i)&&1===i.length?i[0]:i,"shape"===n.name&&(c.shape=o.fontService.getIconFontKey(c[n.name]))}})),void 0===c.size&&(c.size=1),c}));return this.adjustData2Amap2Coordinates(a,e),a}},{key:"adjustData2Amap2Coordinates",value:function(e,t){var n=this;if(e.length>0&&this.mapService.version===se.a["GAODE2.x"]){var r=this.getLayerCenter(t);"number"==typeof e[0].coordinates[0]?e.filter((function(e){return!e.originCoordinates})).map((function(e){e.version=se.a["GAODE2.x"],e.originCoordinates=ir()(e.coordinates),e.coordinates=n.mapService.lngLatToCoordByLayer(e.coordinates,r)})):e.filter((function(e){return!e.originCoordinates})).map((function(e){e.version=se.a["GAODE2.x"],e.originCoordinates=ir()(e.coordinates),e.coordinates=n.mapService.lngLatToCoordsByLayer(e.coordinates,r)}))}}},{key:"adjustData2SimpleCoordinates",value:function(e){var t=this;e.length>0&&this.mapService.version===se.a.SIMPLE&&e.map((function(e){e.simpleCoordinate||(e.coordinates=t.unProjectCoordinates(e.coordinates),e.simpleCoordinate=!0)}))}},{key:"getLayerCenter",value:function(e){return e.getSource().center}},{key:"unProjectCoordinates",value:function(e){var t=this;if("number"==typeof e[0])return this.mapService.simpleMapCoord.unproject(e);if(e[0]&&e[0][0]instanceof Array){var n=[];return e.map((function(e){var r=[];e.map((function(e){r.push(t.mapService.simpleMapCoord.unproject(e))})),n.push(r)})),n}var r=[];return e.map((function(e){r.push(t.mapService.simpleMapCoord.unproject(e))})),r}},{key:"applyAttributeMapping",value:function(e,t,n){var r;if(!e.scale)return[];var o=(null==e||null===(r=e.scale)||void 0===r?void 0:r.scalers)||[],i=[];o.forEach((function(n){var r,o=n.field;(t.hasOwnProperty(o)||"variable"===(null===(r=e.scale)||void 0===r?void 0:r.type))&&i.push(t[o])}));var a=e.mapping?e.mapping(i):[];return"color"!==e.name||Object(P.hb)(a[0])?a:[n]}},{key:"applyMapLayerAttributeMapping",value:function(e,t){var n;if(!e.scale)return[];var r=(null==e||null===(n=e.scale)||void 0===n?void 0:n.scalers)||[],o=[];return r.forEach((function(n){var r,i=n.field;(t.hasOwnProperty(i)||"variable"===(null===(r=e.scale)||void 0===r?void 0:r.type))&&o.push(t[i])})),e.mapping?e.mapping(o):[]}},{key:"getArrowPoints",value:function(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=Object(P.xb)(n);return[e[0]+1e-4*r[0],e[1]+1e-4*r[1]]}}])&&lr(t.prototype,n),r&&lr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"mapService",[Jn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nr=pr(er.prototype,"fontService",[Qn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$n=er))||$n),vr=n("gbJM");function yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var mr=Object(ar.injectable)()(dr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"apply",value:function(e){var t=this;this.mapService=e.getContainer().get(r.TYPES.IMapService),e.hooks.init.tap("DataSourcePlugin",(function(){var n=e.getSource();if(!n){var r=e.sourceOption||e.defaultSourceConfig,o=r.data,i=r.options;n=new vr.a(o,i),e.setSource(n)}n.inited?t.updateClusterData(e):n.once("sourceUpdate",(function(){t.updateClusterData(e)}))})),e.hooks.beforeRenderData.tap("DataSourcePlugin",(function(){var n=t.updateClusterData(e),r=e.dataState.dataSourceNeedUpdate;return e.dataState.dataSourceNeedUpdate=!1,n||r}))}},{key:"updateClusterData",value:function(e){if(e.isTileLayer||e.tileLayer)return!1;var t=e.getSource(),n=t.cluster,r=t.clusterOptions.zoom,o=void 0===r?0:r,i=this.mapService.getZoom()-1,a=e.dataState.dataSourceNeedUpdate;return n&&a&&t.updateClusterData(Math.floor(i)),!!(n&&Math.abs(e.clusterZoom-i)>=1)&&(o!==Math.floor(i)&&t.updateClusterData(Math.floor(i)),e.clusterZoom=i,!0)}}])&&yr(t.prototype,n),o&&yr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}())||dr,gr=n("jLkM"),br=n.n(gr),Or=n("nDih"),wr=n.n(Or),_r=n("2Lg3"),xr=n.n(_r),Er=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},Sr=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Er(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var Cr=Sr(Er),jr=Cr.right,kr=(Cr.left,jr);var Pr=function(e){return null===e?NaN:+e},Tr=function(e,t){var n,r,o,i=e.length,a=-1;if(null==t){for(;++a<i;)if(null!=(n=e[a])&&n>=n)for(r=o=n;++a<i;)null!=(n=e[a])&&(r>n&&(r=n),o<n&&(o=n))}else for(;++a<i;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=o=n;++a<i;)null!=(n=t(e[a],a,e))&&(r>n&&(r=n),o<n&&(o=n));return[r,o]},Mr=Array.prototype,Ar=(Mr.slice,Mr.map,Math.sqrt(50)),Lr=Math.sqrt(10),Rr=Math.sqrt(2),Nr=function(e,t,n){var r,o,i,a,c=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=Ir(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++c<o;)i[c]=(e+c)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),i=new Array(o=Math.ceil(e-t+1));++c<o;)i[c]=(e-c)/a;return r&&i.reverse(),i};function Ir(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=Ar?10:i>=Lr?5:i>=Rr?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Ar?10:i>=Lr?5:i>=Rr?2:1)}function Dr(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Ar?o*=10:i>=Lr?o*=5:i>=Rr&&(o*=2),t<e?-o:o}n("tQbP");var Fr=function(e,t,n){if(null==n&&(n=Pr),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}};var zr=n("PvqL");function Br(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}var Ur=function(e){return function(){return e}};function Vr(e,t){return function(n){return e+n*t}}function Hr(e){return 1==(e=+e)?Gr:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ur(isNaN(t)?n:t)}}function Gr(e,t){var n=t-e;return n?Vr(e,n):Ur(isNaN(e)?t:e)}var Wr=function e(t){var n=Hr(t);function r(e,t){var r=n((e=Object(zr.b)(e)).r,(t=Object(zr.b)(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Gr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Yr(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),c=new Array(o);for(n=0;n<o;++n)r=Object(zr.b)(t[n]),i[n]=r.r||0,a[n]=r.g||0,c[n]=r.b||0;return i=e(i),a=e(a),c=e(c),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=c(e),r+""}}}var Kr=Yr((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,c=r<t-1?e[r+2]:2*i-o;return Br((n-r/t)*t,a,o,i,c)}}));Yr((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],c=e[(r+2)%t];return Br((n-r/t)*t,o,i,a,c)}}));function Xr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function qr(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}function Zr(){}function Jr(e,t){var n=new Zr;if(e instanceof Zr)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}Zr.prototype=Jr.prototype={constructor:Zr,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var Qr=Jr;function $r(){}var eo=Qr.prototype;function to(e,t){var n=new $r;if(e instanceof $r)e.each((function(e){n.add(e)}));else if(e){var r=-1,o=e.length;if(null==t)for(;++r<o;)n.add(e[r]);else for(;++r<o;)n.add(t(e[r],r,e))}return n}$r.prototype=to.prototype={constructor:$r,has:eo.has,add:function(e){return this["$"+(e+="")]=e,this},remove:eo.remove,clear:eo.clear,values:eo.keys,size:eo.size,empty:eo.empty,each:eo.each};var no=Array.prototype,ro=no.map,oo=no.slice,io={name:"implicit"};function ao(){var e=Qr(),t=[],n=[],r=io;function o(o){var i=o+"",a=e.get(i);if(!a){if(r!==io)return r;e.set(i,a=t.push(o))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=Qr();for(var r,i,a=-1,c=n.length;++a<c;)e.has(i=(r=n[a])+"")||e.set(i,t.push(r));return o},o.range=function(e){return arguments.length?(n=oo.call(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return ao(t,n).unknown(r)},Xr.apply(o,arguments),o}var co=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}};function uo(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function so(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=mo(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}var lo=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}},fo=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},po=function(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=mo(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}},ho=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vo=new RegExp(ho.source,"g");var yo=function(e,t){var n,r,o,i=ho.lastIndex=vo.lastIndex=0,a=-1,c=[],u=[];for(e+="",t+="";(n=ho.exec(e))&&(r=vo.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,u.push({i:a,x:fo(n,r)})),i=vo.lastIndex;return i<t.length&&(o=t.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)c[(n=u[r]).i]=n.x(e);return c.join("")})},mo=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?Ur(t):("number"===r?fo:"string"===r?(n=Object(zr.a)(t))?(t=n,Wr):yo:t instanceof zr.a?Wr:t instanceof Date?lo:uo(t)?co:Array.isArray(t)?so:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?po:fo)(e,t)},go=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}},bo=function(e){return+e},Oo=[0,1];function wo(e){return e}function _o(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function xo(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Eo(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=_o(o,r),i=n(a,i)):(r=_o(r,o),i=n(i,a)),function(e){return i(r(e))}}function So(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=_o(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=kr(e,t,1,r)-1;return i[n](o[n](t))}}function Co(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function jo(){var e,t,n,r,o,i,a=Oo,c=Oo,u=mo,s=wo;function l(){return r=Math.min(a.length,c.length)>2?So:Eo,o=i=null,f}function f(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),c,u)))(e(s(t)))}return f.invert=function(n){return s(t((i||(i=r(c,a.map(e),fo)))(n)))},f.domain=function(e){return arguments.length?(a=ro.call(e,bo),s===wo||(s=xo(a)),l()):a.slice()},f.range=function(e){return arguments.length?(c=oo.call(e),l()):c.slice()},f.rangeRound=function(e){return c=oo.call(e),u=go,l()},f.clamp=function(e){return arguments.length?(s=e?xo(a):wo,f):s!==wo},f.interpolate=function(e){return arguments.length?(u=e,l()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function ko(e,t){return jo()(e,t)}var Po=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function To(e){if(!(t=Po.exec(e)))throw new Error("invalid format: "+e);var t;return new Mo({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Mo(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}To.prototype=Mo.prototype,Mo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};function Ao(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var Lo,Ro,No,Io,Do=function(e){return(e=Ao(Math.abs(e)))?e[1]:NaN},Fo=function(e,t){var n=Ao(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},zo={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Fo(100*e,t)},r:Fo,s:function(e,t){var n=Ao(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Lo=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Ao(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Bo=function(e){return e},Uo=Array.prototype.map,Vo=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Ro=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Bo:(t=Uo.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,c=t[0],u=0;o>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),i.push(e.substring(o-=c,o+c)),!((u+=c+1)>r));)c=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?Bo:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Uo.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",s=void 0===e.minus?"-":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=To(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,v=e.comma,y=e.precision,m=e.trim,g=e.type;"n"===g?(v=!0,g="g"):zo[g]||(void 0===y&&(y=12),m=!0,g="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",O="$"===p?i:/[%p]/.test(g)?u:"",w=zo[g],_=/[defgprs%]/.test(g);function x(e){var o,i,u,p=b,x=O;if("c"===g)x=w(e)+x,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:w(Math.abs(e),y),m&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==f&&(E=!1),p=(E?"("===f?f:s:"-"===f||"("===f?"":f)+p,x=("s"===g?Vo[8+Lo/3]:"")+x+(E&&"("===f?")":""),_)for(o=-1,i=e.length;++o<i;)if(48>(u=e.charCodeAt(o))||u>57){x=(46===u?a+e.slice(o+1):e.slice(o))+x,e=e.slice(0,o);break}}v&&!d&&(e=r(e,1/0));var S=p.length+e.length+x.length,C=S<h?new Array(h-S+1).join(t):"";switch(v&&d&&(e=r(C+e,C.length?h-x.length:1/0),C=""),n){case"<":e=p+e+x+C;break;case"=":e=p+C+e+x;break;case"^":e=C.slice(0,S=C.length>>1)+p+e+x+C.slice(S);break;default:e=C+p+e+x}return c(e)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),x.toString=function(){return e+""},x}return{format:f,formatPrefix:function(e,t){var n=f(((e=To(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Do(t)/3))),o=Math.pow(10,-r),i=Vo[8+r/3];return function(e){return n(o*e)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),No=Ro.format,Io=Ro.formatPrefix;var Ho=function(e,t,n,r){var o,i=Dr(e,t,n);switch((r=To(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Do(t)/3)))-Do(Math.abs(e)))}(i,a))||(r.precision=o),Io(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Do(t)-Do(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-Do(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return No(r)};function Go(e){var t=e.domain;return e.ticks=function(e){var n=t();return Nr(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Ho(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,c=o[i],u=o[a];return u<c&&(r=c,c=u,u=r,r=i,i=a,a=r),(r=Ir(c,u,n))>0?r=Ir(c=Math.floor(c/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=Ir(c=Math.ceil(c*r)/r,u=Math.floor(u*r)/r,n)),r>0?(o[i]=Math.floor(c/r)*r,o[a]=Math.ceil(u/r)*r,t(o)):r<0&&(o[i]=Math.ceil(c*r)/r,o[a]=Math.floor(u*r)/r,t(o)),e},e}var Wo=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e};function Yo(e){return Math.log(e)}function Ko(e){return Math.exp(e)}function Xo(e){return-Math.log(-e)}function qo(e){return-Math.exp(-e)}function Zo(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Jo(e){return function(t){return-e(-t)}}function Qo(e){var t,n,r=e(Yo,Ko),o=r.domain,i=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(i),n=function(e){return 10===e?Zo:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(i),o()[0]<0?(t=Jo(t),n=Jo(n),e(Xo,qo)):e(Yo,Ko),r}return r.base=function(e){return arguments.length?(i=+e,a()):i},r.domain=function(e){return arguments.length?(o(e),a()):o()},r.ticks=function(e){var r,a=o(),c=a[0],u=a[a.length-1];(r=u<c)&&(p=c,c=u,u=p);var s,l,f,p=t(c),d=t(u),h=null==e?10:+e,v=[];if(!(i%1)&&d-p<h){if(p=Math.round(p)-1,d=Math.round(d)+1,c>0){for(;p<d;++p)for(l=1,s=n(p);l<i;++l)if(!((f=s*l)<c)){if(f>u)break;v.push(f)}}else for(;p<d;++p)for(l=i-1,s=n(p);l>=1;--l)if(!((f=s*l)<c)){if(f>u)break;v.push(f)}}else v=Nr(p,d,Math.min(d-p,h)).map(n);return r?v.reverse():v},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=No(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i<i-.5&&(r*=i),r<=a?o(e):""}},r.nice=function(){return o(Wo(o(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function $o(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ei(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ti(e){return e<0?-e*e:e*e}function ni(e){var t=e(wo,wo),n=1;function r(){return 1===n?e(wo,wo):.5===n?e(ei,ti):e($o(n),$o(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Go(t)}function ri(){var e=ni(jo());return e.copy=function(){return Co(e,ri()).exponent(e.exponent())},Xr.apply(e,arguments),e}var oi=new Date,ii=new Date;function ai(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,c=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return c;do{c.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return c},o.filter=function(n){return ai((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return oi.setTime(+t),ii.setTime(+r),e(oi),e(ii),Math.floor(n(oi,ii))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var ci=ai((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));ci.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ai((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var ui=ci,si=(ci.range,ai((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),li=si;si.range;function fi(e){return ai((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var pi=fi(0),di=fi(1),hi=fi(2),vi=fi(3),yi=fi(4),mi=fi(5),gi=fi(6),bi=(pi.range,di.range,hi.range,vi.range,yi.range,mi.range,gi.range,ai((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1}))),Oi=bi,wi=(bi.range,ai((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),_i=wi,xi=(wi.range,ai((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),Ei=xi,Si=(xi.range,ai((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}))),Ci=Si,ji=(Si.range,ai((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e})));ji.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?ai((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):ji:null};var ki=ji;ji.range;function Pi(e){return ai((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var Ti=Pi(0),Mi=Pi(1),Ai=Pi(2),Li=Pi(3),Ri=Pi(4),Ni=Pi(5),Ii=Pi(6),Di=(Ti.range,Mi.range,Ai.range,Li.range,Ri.range,Ni.range,Ii.range,ai((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),Fi=Di,zi=(Di.range,ai((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));zi.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ai((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Bi=zi;zi.range;function Ui(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Vi(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Hi(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Gi,Wi,Yi={"-":"",_:" ",0:"0"},Ki=/^\s*\d+/,Xi=/^%/,qi=/[\\^$*+?|[\]().{}]/g;function Zi(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Ji(e){return e.replace(qi,"\\$&")}function Qi(e){return new RegExp("^(?:"+e.map(Ji).join("|")+")","i")}function $i(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function ea(e,t,n){var r=Ki.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ta(e,t,n){var r=Ki.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function na(e,t,n){var r=Ki.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ra(e,t,n){var r=Ki.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function oa(e,t,n){var r=Ki.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ia(e,t,n){var r=Ki.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function aa(e,t,n){var r=Ki.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ca(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ua(e,t,n){var r=Ki.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function sa(e,t,n){var r=Ki.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function la(e,t,n){var r=Ki.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function fa(e,t,n){var r=Ki.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function pa(e,t,n){var r=Ki.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function da(e,t,n){var r=Ki.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ha(e,t,n){var r=Ki.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function va(e,t,n){var r=Ki.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ya(e,t,n){var r=Ki.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ma(e,t,n){var r=Xi.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ga(e,t,n){var r=Ki.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ba(e,t,n){var r=Ki.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Oa(e,t){return Zi(e.getDate(),t,2)}function wa(e,t){return Zi(e.getHours(),t,2)}function _a(e,t){return Zi(e.getHours()%12||12,t,2)}function xa(e,t){return Zi(1+Oi.count(ui(e),e),t,3)}function Ea(e,t){return Zi(e.getMilliseconds(),t,3)}function Sa(e,t){return Ea(e,t)+"000"}function Ca(e,t){return Zi(e.getMonth()+1,t,2)}function ja(e,t){return Zi(e.getMinutes(),t,2)}function ka(e,t){return Zi(e.getSeconds(),t,2)}function Pa(e){var t=e.getDay();return 0===t?7:t}function Ta(e,t){return Zi(pi.count(ui(e)-1,e),t,2)}function Ma(e){var t=e.getDay();return t>=4||0===t?yi(e):yi.ceil(e)}function Aa(e,t){return e=Ma(e),Zi(yi.count(ui(e),e)+(4===ui(e).getDay()),t,2)}function La(e){return e.getDay()}function Ra(e,t){return Zi(di.count(ui(e)-1,e),t,2)}function Na(e,t){return Zi(e.getFullYear()%100,t,2)}function Ia(e,t){return Zi((e=Ma(e)).getFullYear()%100,t,2)}function Da(e,t){return Zi(e.getFullYear()%1e4,t,4)}function Fa(e,t){var n=e.getDay();return Zi((e=n>=4||0===n?yi(e):yi.ceil(e)).getFullYear()%1e4,t,4)}function za(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Zi(t/60|0,"0",2)+Zi(t%60,"0",2)}function Ba(e,t){return Zi(e.getUTCDate(),t,2)}function Ua(e,t){return Zi(e.getUTCHours(),t,2)}function Va(e,t){return Zi(e.getUTCHours()%12||12,t,2)}function Ha(e,t){return Zi(1+Fi.count(Bi(e),e),t,3)}function Ga(e,t){return Zi(e.getUTCMilliseconds(),t,3)}function Wa(e,t){return Ga(e,t)+"000"}function Ya(e,t){return Zi(e.getUTCMonth()+1,t,2)}function Ka(e,t){return Zi(e.getUTCMinutes(),t,2)}function Xa(e,t){return Zi(e.getUTCSeconds(),t,2)}function qa(e){var t=e.getUTCDay();return 0===t?7:t}function Za(e,t){return Zi(Ti.count(Bi(e)-1,e),t,2)}function Ja(e){var t=e.getUTCDay();return t>=4||0===t?Ri(e):Ri.ceil(e)}function Qa(e,t){return e=Ja(e),Zi(Ri.count(Bi(e),e)+(4===Bi(e).getUTCDay()),t,2)}function $a(e){return e.getUTCDay()}function ec(e,t){return Zi(Mi.count(Bi(e)-1,e),t,2)}function tc(e,t){return Zi(e.getUTCFullYear()%100,t,2)}function nc(e,t){return Zi((e=Ja(e)).getUTCFullYear()%100,t,2)}function rc(e,t){return Zi(e.getUTCFullYear()%1e4,t,4)}function oc(e,t){var n=e.getUTCDay();return Zi((e=n>=4||0===n?Ri(e):Ri.ceil(e)).getUTCFullYear()%1e4,t,4)}function ic(){return"+0000"}function ac(){return"%"}function cc(e){return+e}function uc(e){return Math.floor(+e/1e3)}!function(e){Gi=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,c=e.months,u=e.shortMonths,s=Qi(o),l=$i(o),f=Qi(i),p=$i(i),d=Qi(a),h=$i(a),v=Qi(c),y=$i(c),m=Qi(u),g=$i(u),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:Oa,e:Oa,f:Sa,g:Ia,G:Fa,H:wa,I:_a,j:xa,L:Ea,m:Ca,M:ja,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:cc,s:uc,S:ka,u:Pa,U:Ta,V:Aa,w:La,W:Ra,x:null,X:null,y:Na,Y:Da,Z:za,"%":ac},O={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:Ba,e:Ba,f:Wa,g:nc,G:oc,H:Ua,I:Va,j:Ha,L:Ga,m:Ya,M:Ka,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:cc,s:uc,S:Xa,u:qa,U:Za,V:Qa,w:$a,W:ec,x:null,X:null,y:tc,Y:rc,Z:ic,"%":ac},w={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:la,e:la,f:ya,g:aa,G:ia,H:pa,I:pa,j:fa,L:va,m:sa,M:da,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=l[r[0].toLowerCase()],n+r[0].length):-1},q:ua,Q:ga,s:ba,S:ha,u:ta,U:na,V:ra,w:ea,W:oa,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:aa,Y:ia,Z:ca,"%":ma};function _(e,t){return function(n){var r,o,i,a=[],c=-1,u=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++c<s;)37===e.charCodeAt(c)&&(a.push(e.slice(u,c)),null!=(o=Yi[r=e.charAt(++c)])?r=e.charAt(++c):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),u=c+1);return a.push(e.slice(u,c)),a.join("")}}function x(e,t){return function(n){var r,o,i=Hi(1900,void 0,1);if(E(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Vi(Hi(i.y,0,1))).getUTCDay(),r=o>4||0===o?Mi.ceil(r):Mi(r),r=Fi.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Ui(Hi(i.y,0,1))).getDay(),r=o>4||0===o?di.ceil(r):di(r),r=Oi.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Vi(Hi(i.y,0,1)).getUTCDay():Ui(Hi(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Vi(i)):Ui(i)}}function E(e,t,n,r){for(var o,i,a=0,c=t.length,u=n.length;a<c;){if(r>=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in Yi?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),O.x=_(n,O),O.X=_(r,O),O.c=_(t,O),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",O);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+="",!0);return t.toString=function(){return e},t}}}(e),Wi=Gi.format,Gi.parse,Gi.utcFormat,Gi.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function sc(e){return new Date(e)}function lc(e){return e instanceof Date?+e:+new Date(+e)}function fc(e,t,n,r,o,i,a,c,u){var s=ko(wo,wo),l=s.invert,f=s.domain,p=u(".%L"),d=u(":%S"),h=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),m=u("%b %d"),g=u("%B"),b=u("%Y"),O=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function w(c){return(a(c)<c?p:i(c)<c?d:o(c)<c?h:r(c)<c?v:t(c)<c?n(c)<c?y:m:e(c)<c?g:b)(c)}function _(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var i=Math.abs(r-n)/t,a=Sr((function(e){return e[2]})).right(O,i);a===O.length?(o=Dr(n/31536e6,r/31536e6,t),t=e):a?(o=(a=O[i/O[a-1][2]<O[a][2]/i?a-1:a])[1],t=a[0]):(o=Math.max(Dr(n,r,t),1),t=c)}return null==o?t:t.every(o)}return s.invert=function(e){return new Date(l(e))},s.domain=function(e){return arguments.length?f(ro.call(e,lc)):f().map(sc)},s.ticks=function(e,t){var n,r=f(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=(n=_(e,o,i,t))?n.range(o,i+1):[],a?n.reverse():n},s.tickFormat=function(e,t){return null==t?w:u(t)},s.nice=function(e,t){var n=f();return(e=_(e,n[0],n[n.length-1],t))?f(Wo(n,e)):s},s.copy=function(){return Co(s,fc(e,t,n,r,o,i,a,c,u))},s}var pc,dc,hc=ai((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),vc=(hc.range,ai((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}))),yc=(vc.range,ai((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()})));yc.range;function mc(){var e,t,n,r,o,i=0,a=1,c=wo,u=!1;function s(t){return isNaN(t=+t)?o:c(0===n?.5:(t=(r(t)-e)*n,u?Math.max(0,Math.min(1,t)):t))}return s.domain=function(o){return arguments.length?(e=r(i=+o[0]),t=r(a=+o[1]),n=e===t?0:1/(t-e),s):[i,a]},s.clamp=function(e){return arguments.length?(u=!!e,s):u},s.interpolator=function(e){return arguments.length?(c=e,s):c},s.unknown=function(e){return arguments.length?(o=e,s):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),s}}function gc(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function bc(){var e,t,n,r,o,i,a,c=0,u=.5,s=1,l=wo,f=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(e<t?r:o),l(f?Math.max(0,Math.min(1,e)):e))}return p.domain=function(a){return arguments.length?(e=i(c=+a[0]),t=i(u=+a[1]),n=i(s=+a[2]),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),p):[c,u,s]},p.clamp=function(e){return arguments.length?(f=!!e,p):f},p.interpolator=function(e){return arguments.length?(l=e,p):l},p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(c),t=a(u),n=a(s),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),p}}function Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ec,Sc=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]?)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,Cc=(xc(pc={},r.ScaleTypes.LINEAR,(function e(){var t=ko(wo,wo);return t.copy=function(){return Co(t,e())},Xr.apply(t,arguments),Go(t)})),xc(pc,r.ScaleTypes.POWER,ri),xc(pc,r.ScaleTypes.LOG,(function e(){var t=Qo(jo()).domain([1,10]);return t.copy=function(){return Co(t,e()).base(t.base())},Xr.apply(t,arguments),t})),xc(pc,r.ScaleTypes.IDENTITY,(function e(t){var n;function r(e){return isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=ro.call(e,bo),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?ro.call(t,bo):[0,1],Go(r)})),xc(pc,r.ScaleTypes.SEQUENTIAL,(function e(){var t=Go(mc()(wo));return t.copy=function(){return gc(t,e())},qr.apply(t,arguments)})),xc(pc,r.ScaleTypes.TIME,(function(){return Xr.apply(fc(ui,li,pi,Oi,_i,Ei,Ci,ki,Wi).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)})),xc(pc,r.ScaleTypes.QUANTILE,(function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=Fr(n,e/t);return a}function a(e){return isNaN(e=+e)?t:r[kr(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(var t,r=0,o=e.length;r<o;++r)null==(t=e[r])||isNaN(t=+t)||n.push(t);return n.sort(Er),i()},a.range=function(e){return arguments.length?(r=oo.call(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},Xr.apply(a,arguments)})),xc(pc,r.ScaleTypes.QUANTIZE,(function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function c(e){return e<=e?a[kr(i,e,0,o)]:t}function u(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return c}return c.domain=function(e){return arguments.length?(n=+e[0],r=+e[1],u()):[n,r]},c.range=function(e){return arguments.length?(o=(a=oo.call(e)).length-1,u()):a.slice()},c.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},c.unknown=function(e){return arguments.length?(t=e,c):c},c.thresholds=function(){return i.slice()},c.copy=function(){return e().domain([n,r]).range(a).unknown(t)},Xr.apply(Go(c),arguments)})),xc(pc,r.ScaleTypes.THRESHOLD,(function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return e<=e?r[kr(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=oo.call(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=oo.call(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},Xr.apply(i,arguments)})),xc(pc,r.ScaleTypes.CAT,ao),xc(pc,r.ScaleTypes.DIVERGING,(function e(){var t=Go(bc()(wo));return t.copy=function(){return gc(t,e())},qr.apply(t,arguments)})),pc),jc=Object(ar.injectable)()(dc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),xc(this,"scaleOptions",{})}var t,n,o;return t=e,(n=[{key:"getSourceData",value:function(e,t){var n=e.getSource();n.inited?t(n.data):n.once("sourceUpdate",(function(){t(n.data)}))}},{key:"apply",value:function(e,t){var n=this,r=t.styleAttributeService;e.hooks.init.tap("FeatureScalePlugin",(function(){n.scaleOptions=e.getScaleOptions();var t=r.getLayerStyleAttributes();n.getSourceData(e,(function(e){var r=e.dataArray;Array.isArray(r)&&0===r.length||n.caculateScalesForAttributes(t||[],r)}))})),e.hooks.beforeRenderData.tap("FeatureScalePlugin",(function(){n.scaleOptions=e.getScaleOptions();var t=r.getLayerStyleAttributes();return n.getSourceData(e,(function(r){var o=r.dataArray;Array.isArray(o)&&0===o.length||(n.caculateScalesForAttributes(t||[],o),e.layerModelNeedUpdate=!0)})),!0})),e.hooks.beforeRender.tap("FeatureScalePlugin",(function(){var t=e.getLayerConfig().usage;if(!e.layerModelNeedUpdate&&"basemap"!==t){n.scaleOptions=e.getScaleOptions();var o=r.getLayerStyleAttributes();o&&n.getSourceData(e,(function(e){var t=e.dataArray;if(0!==t.length){var r=o.filter((function(e){return e.needRescale}));r.length&&n.caculateScalesForAttributes(r,t)}}))}}))}},{key:"isNumber",value:function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},{key:"caculateScalesForAttributes",value:function(e,t){var n=this;e.forEach((function(e){if(e.scale){var o=e.scale;o.names=n.parseFields(e.scale.field||[]);var i=[];o.names.forEach((function(r){var o;i.push(n.createScale(r,e.name,null===(o=e.scale)||void 0===o?void 0:o.values,t))})),i.some((function(e){return e.type===r.StyleScaleType.VARIABLE}))?(o.type=r.StyleScaleType.VARIABLE,i.forEach((function(e){var t,n;if(!o.callback&&"text"!==o.values)switch(null===(t=e.option)||void 0===t?void 0:t.type){case r.ScaleTypes.LOG:case r.ScaleTypes.LINEAR:case r.ScaleTypes.POWER:if(o.values&&o.values.length>2){var i=e.scale.ticks(o.values.length);e.scale.domain(i)}o.values?e.scale.range(o.values):e.scale.range(e.option.domain);break;case r.ScaleTypes.QUANTILE:case r.ScaleTypes.QUANTIZE:case r.ScaleTypes.THRESHOLD:e.scale.range(o.values);break;case r.ScaleTypes.CAT:o.values?e.scale.range(o.values):e.scale.range(e.option.domain);break;case r.ScaleTypes.DIVERGING:case r.ScaleTypes.SEQUENTIAL:e.scale.interpolator(Kr(o.values))}"text"===o.values&&e.scale.range(null===(n=e.option)||void 0===n?void 0:n.domain)}))):(o.type=r.StyleScaleType.CONSTANT,o.defaultValues=i.map((function(e,t){return e.scale(o.names[t])}))),o.scalers=i.map((function(e){return{field:e.field,func:e.scale,option:e.option}})),e.needRescale=!1}}))}},{key:"parseFields",value:function(e){return Array.isArray(e)?e:wr()(e)?e.split("*"):[e]}},{key:"createScale",value:function(e,t,n,o){var i,a,c=this.scaleOptions[t]&&(null===(i=this.scaleOptions[t])||void 0===i?void 0:i.field)===e?this.scaleOptions[t]:this.scaleOptions[e],u={field:e,scale:void 0,type:r.StyleScaleType.VARIABLE,option:c};if(!o||!o.length)return c&&c.type?u.scale=this.createDefaultScale(c):(u.scale=ao([e]),u.type=r.StyleScaleType.CONSTANT),u;var s=null===(a=o.find((function(t){return!xr()(t[e])})))||void 0===a?void 0:a[e];if(this.isNumber(e)||xr()(s)&&!c)u.scale=ao([e]),u.type=r.StyleScaleType.CONSTANT;else{var l=c&&c.type||this.getDefaultType(s);"text"===n&&(l=r.ScaleTypes.CAT);var f=this.createScaleConfig(l,e,c,o);u.scale=this.createDefaultScale(f),u.option=f}return u}},{key:"getDefaultType",value:function(e){var t=r.ScaleTypes.LINEAR;return"string"==typeof e&&(t=Sc.test(e)?r.ScaleTypes.TIME:r.ScaleTypes.CAT),t}},{key:"createScaleConfig",value:function(e,t,n,o){var i={type:e},a=(null==o?void 0:o.map((function(e){return e[t]})))||[];if(null!=n&&n.domain)i.domain=null==n?void 0:n.domain;else if(e!==r.ScaleTypes.CAT&&e!==r.ScaleTypes.QUANTILE&&e!==r.ScaleTypes.DIVERGING)i.domain=Tr(a);else if(e===r.ScaleTypes.CAT)i.domain=br()(a);else if(e===r.ScaleTypes.QUANTILE)i.domain=a;else if(e===r.ScaleTypes.DIVERGING){var c=Tr(a),u=void 0!==(null==n?void 0:n.neutral)?null==n?void 0:n.neutral:(c[0]+c[1])/2;i.domain=[c[0],u,c[1]]}return wc(wc({},i),n)}},{key:"createDefaultScale",value:function(e){var t=e.type,n=e.domain,r=e.unknown,o=e.clamp,i=e.nice,a=Cc[t]();return n&&a.domain&&a.domain(n),r&&a.unknown(r),void 0!==o&&a.clamp&&a.clamp(o),void 0!==i&&a.nice&&a.nice(i),a}}])&&_c(t.prototype,n),o&&_c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}())||dc;function kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Mc,Ac=Object(ar.injectable)()(Ec=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"apply",value:function(e){e.hooks.beforeRender.tap("LayerAnimateStylePlugin",(function(){e.animateStatus&&e.models.forEach((function(t){t.addUniforms(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(n),!0).forEach((function(t){Pc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.layerModel.getAnimateUniforms()))}))}))}}])&&Tc(t.prototype,n),r&&Tc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||Ec;function Lc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Rc,Nc=Object(ar.injectable)()(Mc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"initLayerModel",value:function(e){e.prepareBuildModel(),e.buildModels(),e.styleNeedUpdate=!1}},{key:"prepareLayerModel",value:function(e){var t;e.prepareBuildModel(),null===(t=e.layerModel)||void 0===t||t.clearModels(),e.buildModels(),e.layerModelNeedUpdate=!1}},{key:"apply",value:function(e){var t=this;e.hooks.init.tap("LayerModelPlugin",(function(){e.inited=!0,e.modelLoaded=!1,e.getSource().inited&&t.initLayerModel(e)})),e.hooks.beforeRenderData.tap("DataSourcePlugin",(function(){var n=e.getSource();return e.modelLoaded=!1,n.inited?t.prepareLayerModel(e):n.once("sourceUpdate",(function(){t.prepareLayerModel(e)})),!1}))}}])&&Lc(t.prototype,n),r&&Lc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||Mc;function Ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Dc,Fc=Object(ar.injectable)()(Rc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"apply",value:function(e){e.hooks.afterInit.tap("LayerStylePlugin",(function(){e.updateLayerConfig({});var t=e.getLayerConfig(),n=t.autoFit,r=t.fitBoundsOptions;n&&setTimeout((function(){e.fitBounds(r)}),100)}))}}])&&Ic(t.prototype,n),r&&Ic(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||Rc,zc=["type"];function Bc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(n),!0).forEach((function(t){Gc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wc={directional:{lights:"u_DirectionalLights",num:"u_NumOfDirectionalLights"},spot:{lights:"u_SpotLights",num:"u_NumOfSpotLights"}},Yc={type:"directional",direction:[1,10.5,12],ambient:[.2,.2,.2],diffuse:[.6,.6,.6],specular:[.1,.1,.1]},Kc={direction:[0,0,0],ambient:[0,0,0],diffuse:[0,0,0],specular:[0,0,0]},Xc={position:[0,0,0],direction:[0,0,0],ambient:[0,0,0],diffuse:[0,0,0],specular:[0,0,0],constant:1,linear:0,quadratic:0,angle:14,exponent:40,blur:5};var qc,Zc=Object(ar.injectable)()(Dc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"apply",value:function(e){e.hooks.beforeRender.tap("LightingPlugin",(function(){e.getLayerConfig().enableLighting&&e.models.forEach((function(e){return e.addUniforms(Hc({},(n={u_DirectionalLights:new Array(3).fill(Hc({},Kc)),u_NumOfDirectionalLights:0,u_SpotLights:new Array(3).fill(Hc({},Xc)),u_NumOfSpotLights:0},t&&t.length||(t=[Yc]),t.forEach((function(e,t){var r=e.type,o=void 0===r?"directional":r,i=Uc(e,zc),a=Wc[o].lights,c=Wc[o].num,u=n[c];n[a][u]=Hc(Hc({},n[a][u]),i),n[c]++})),n)));var t,n}))}))}}])&&Bc(t.prototype,n),r&&Bc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||Dc,Jc=n("PkF7");function Qc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $c,eu=Object(ar.injectable)()(qc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"apply",value:function(e,t){var n=this,r=t.rendererService,o=t.postProcessingPassFactory,i=t.normalPassFactory;e.hooks.init.tap("MultiPassRendererPlugin",(function(){var t=e.getLayerConfig(),r=t.enableMultiPassRenderer,a=t.passes,c=void 0===a?[]:a;n.enabled=!!r&&!1!==e.getLayerConfig().enableMultiPassRenderer,n.enabled&&(e.multiPassRenderer=Object(Jc.a)(e,c,o,i),e.multiPassRenderer.setRenderFlag(!0))})),e.hooks.beforeRender.tap("MultiPassRendererPlugin",(function(){if(n.enabled){var t=r.getViewportSize(),o=t.width,i=t.height;e.multiPassRenderer.resize(o,i)}}))}}])&&Qc(t.prototype,n),r&&Qc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||qc;function tu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var nu,ru=1,ou=2,iu=Object(ar.injectable)()($c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"apply",value:function(e,t){var n=t.styleAttributeService;e.hooks.init.tap("PixelPickingPlugin",(function(){var t=e.getLayerConfig().enablePicking;n.registerStyleAttribute({name:"pickingColor",type:r.AttributeType.Attribute,descriptor:{name:"a_PickingColor",buffer:{data:[],type:r.gl.FLOAT},size:3,update:function(e){var n=e.id;return t?Object(P.Q)(n):[0,0,0]}}})})),e.hooks.beforePickingEncode.tap("PixelPickingPlugin",(function(){e.getLayerConfig().enablePicking&&e.isVisible()&&e.models.forEach((function(e){return e.addUniforms({u_PickingStage:ru})}))})),e.hooks.afterPickingEncode.tap("PixelPickingPlugin",(function(){e.getLayerConfig().enablePicking&&e.isVisible()&&e.models.forEach((function(e){return e.addUniforms({u_PickingStage:ou})}))})),e.hooks.beforeHighlight.tap("PixelPickingPlugin",(function(t){var n=e.getLayerConfig(),r=n.highlightColor,o=n.activeMix,i=void 0===o?0:o,a="string"==typeof r?Object(P.Eb)(r):r||[1,0,0,1];e.updateLayerConfig({pickedFeatureID:Object(P.E)(new Uint8Array(t))}),e.models.forEach((function(e){return e.addUniforms({u_PickingStage:ou,u_PickingColor:t,u_HighlightColor:a.map((function(e){return 255*e})),u_activeMix:i})}))})),e.hooks.beforeSelect.tap("PixelPickingPlugin",(function(t){var n=e.getLayerConfig(),r=n.selectColor,o=n.selectMix,i=void 0===o?0:o,a="string"==typeof r?Object(P.Eb)(r):r||[1,0,0,1];e.updateLayerConfig({pickedFeatureID:Object(P.E)(new Uint8Array(t))}),e.models.forEach((function(e){return e.addUniforms({u_PickingStage:ou,u_PickingColor:t,u_HighlightColor:a.map((function(e){return 255*e})),u_activeMix:i,u_CurrentSelectedId:t,u_SelectColor:a.map((function(e){return 255*e})),u_EnableSelect:1})}))}))}}])&&tu(t.prototype,n),o&&tu(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}())||$c;function au(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var cu,uu,su,lu,fu,pu,du,hu,vu,yu,mu,gu=Object(ar.injectable)()(nu=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"apply",value:function(e,t){var n=this,r=t.styleAttributeService;e.hooks.init.tap("RegisterStyleAttributePlugin",(function(){n.registerBuiltinAttributes(r,e)}))}},{key:"registerBuiltinAttributes",value:function(e,t){switch(t.getSource().parser.type){case"mvt":case"testTile":case"rasterTile":return}if("MaskLayer"!==t.type)if("basemap "!==t.getLayerConfig().usage){if(t.isTileLayer)return this.registerPositionAttribute(e),void this.registerColorAttribute(e);this.registerPositionAttribute(e),this.registerFilterAttribute(e),this.registerColorAttribute(e),this.registerVertexIdAttribute(e)}else this.registerPositionAttribute(e);else this.registerPositionAttribute(e)}},{key:"registerPositionAttribute",value:function(e){e.registerStyleAttribute({name:"position",type:r.AttributeType.Attribute,descriptor:{name:"a_Position",buffer:{data:[],type:r.gl.FLOAT},size:3,update:function(e,t,n){return 2===n.length?[n[0],n[1],0]:[n[0],n[1],n[2]]}}})}},{key:"registerFilterAttribute",value:function(e){e.registerStyleAttribute({name:"filter",type:r.AttributeType.Attribute,descriptor:{name:"filter",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:1,update:function(e){return e.filter?[1]:[0]}}})}},{key:"registerColorAttribute",value:function(e){e.registerStyleAttribute({name:"color",type:r.AttributeType.Attribute,descriptor:{name:"a_Color",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:4,update:function(e){var t=e.color;return t&&t.length?t:[1,1,1,1]}}})}},{key:"registerVertexIdAttribute",value:function(e){e.registerStyleAttribute({name:"vertexId",type:r.AttributeType.Attribute,descriptor:{name:"a_vertexId",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:1,update:function(e,t){return[t]}}})}}])&&au(t.prototype,n),o&&au(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}())||nu;function bu(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Ou(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _u(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var xu,Eu=(cu=Object(ar.injectable)(),uu=Object(ar.inject)(r.TYPES.ICameraService),su=Object(ar.inject)(r.TYPES.ICoordinateSystemService),lu=Object(ar.inject)(r.TYPES.IRendererService),fu=Object(ar.inject)(r.TYPES.IMapService),cu((hu=_u((du=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),bu(this,"cameraService",hu,this),bu(this,"coordinateSystemService",vu,this),bu(this,"rendererService",yu,this),bu(this,"mapService",mu,this)}var t,n,o;return t=e,(n=[{key:"apply",value:function(e){var t=this,n=this.mapService.version,o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],i=[0,0];e.hooks.beforeRender.tap("ShaderUniformPlugin",(function(){var a=e.getLayerConfig().tileOrigin;if(t.coordinateSystemService.refresh(a),"GAODE2.x"===n){var c=t.getLayerCenter(e);t.mapService.map.customCoords.setCenter(c),t.mapService.setCustomCoordCenter(c),o=t.mapService.map.customCoords.getMVPMatrix(),i=t.mapService.getCustomCoordCenter()}var u=t.rendererService.getViewportSize(),s=u.width,l=u.height;e.models.forEach((function(n){var a;n.addUniforms((wu(a={},r.CameraUniform.ProjectionMatrix,t.cameraService.getProjectionMatrix()),wu(a,r.CameraUniform.ViewMatrix,t.cameraService.getViewMatrix()),wu(a,r.CameraUniform.ViewProjectionMatrix,t.cameraService.getViewProjectionMatrix()),wu(a,r.CameraUniform.Zoom,t.cameraService.getZoom()),wu(a,r.CameraUniform.ZoomScale,t.cameraService.getZoomScale()),wu(a,r.CameraUniform.FocalDistance,t.cameraService.getFocalDistance()),wu(a,r.CameraUniform.CameraPosition,t.cameraService.getCameraPosition()),wu(a,r.CoordinateUniform.CoordinateSystem,t.coordinateSystemService.getCoordinateSystem()),wu(a,r.CoordinateUniform.ViewportCenter,t.coordinateSystemService.getViewportCenter()),wu(a,r.CoordinateUniform.ViewportCenterProjection,t.coordinateSystemService.getViewportCenterProjection()),wu(a,r.CoordinateUniform.PixelsPerDegree,t.coordinateSystemService.getPixelsPerDegree()),wu(a,r.CoordinateUniform.PixelsPerDegree2,t.coordinateSystemService.getPixelsPerDegree2()),wu(a,r.CoordinateUniform.PixelsPerMeter,t.coordinateSystemService.getPixelsPerMeter()),wu(a,r.CoordinateUniform.Mvp,o),wu(a,"u_SceneCenterMKT",i),wu(a,"u_ViewportSize",[s,l]),wu(a,"u_ModelMatrix",t.cameraService.getModelMatrix()),wu(a,"u_DevicePixelRatio",P.c.devicePixelRatio),wu(a,"u_PickingBuffer",e.getLayerConfig().pickingBuffer||0),wu(a,"u_shaderPick",Number(e.getShaderPickStat())),a))}))}))}},{key:"getLayerCenter",value:function(e){return e.getSource().center}}])&&Ou(t.prototype,n),o&&Ou(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"cameraService",[uu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vu=_u(du.prototype,"coordinateSystemService",[su],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yu=_u(du.prototype,"rendererService",[lu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mu=_u(du.prototype,"mapService",[fu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pu=du))||pu);function Su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Cu,ju=Object(ar.injectable)()(xu=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"apply",value:function(e){e.hooks.beforeRender.tap("UpdateModelPlugin",(function(){e.layerModel&&e.layerModel.needUpdate()}))}}])&&Su(t.prototype,n),r&&Su(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||xu;function ku(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Pu=Object(ar.injectable)()(Cu=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"apply",value:function(e,t){var n=this,r=t.styleAttributeService;e.hooks.init.tap("UpdateStyleAttributePlugin",(function(){n.initStyleAttribute(e,{styleAttributeService:r})})),e.hooks.beforeRender.tap("UpdateStyleAttributePlugin",(function(){var t=e.getLayerConfig().usage;e.layerModelNeedUpdate||e.tileLayer||"basemap"===t||e.modelLoaded&&n.updateStyleAttribute(e,{styleAttributeService:r})}))}},{key:"updateStyleAttribute",value:function(e,t){var n=t.styleAttributeService,r=n.getLayerStyleAttributes()||[],o=n.getLayerStyleAttribute("filter");if(o&&o.needRegenerateVertices)return e.layerModelNeedUpdate=!0,void r.forEach((function(e){return e.needRegenerateVertices=!1}));r.filter((function(e){return e.needRegenerateVertices})).forEach((function(t){n.updateAttributeByFeatureRange(t.name,e.getEncodedData(),t.featureRange.startIndex,t.featureRange.endIndex),t.needRegenerateVertices=!1}))}},{key:"initStyleAttribute",value:function(e,t){var n=t.styleAttributeService;(n.getLayerStyleAttributes()||[]).filter((function(e){return e.needRegenerateVertices})).forEach((function(t){n.updateAttributeByFeatureRange(t.name,e.getEncodedData(),t.featureRange.startIndex,t.featureRange.endIndex),t.needRegenerateVertices=!1}))}}])&&ku(t.prototype,n),r&&ku(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||Cu;r.container.bind(r.TYPES.ILayerPlugin).to(mr).inRequestScope(),r.container.bind(r.TYPES.ILayerPlugin).to(gu).inRequestScope(),r.container.bind(r.TYPES.ILayerPlugin).to(jc).inRequestScope(),r.container.bind(r.TYPES.ILayerPlugin).to(hr).inRequestScope(),r.container.bind(r.TYPES.ILayerPlugin).to(Fc).inRequestScope(),r.container.bind(r.TYPES.ILayerPlugin).to(Pu).inRequestScope(),r.container.bind(r.TYPES.ILayerPlugin).to(ju).inRequestScope(),r.container.bind(r.TYPES.ILayerPlugin).to(eu).inRequestScope(),r.container.bind(r.TYPES.ILayerPlugin).to(Eu).inRequestScope(),r.container.bind(r.TYPES.ILayerPlugin).to(Ac).inRequestScope(),r.container.bind(r.TYPES.ILayerPlugin).to(Zc).inRequestScope(),r.container.bind(r.TYPES.ILayerPlugin).to(iu).inRequestScope(),r.container.bind(r.TYPES.ILayerPlugin).to(Nc).inRequestScope()},"Jg/A":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=function(e){var t=new Image,n=!1,r=function(r){n||(n=!0,t.src="",e(r))};return t.onload=function(){return r("responded")},t.onerror=function(){return r("error")},t.src="https://private-alipayobjects.alipay.com/alipay-rmsdeploy-image/rmsportal/RKuAiriJqrUhyqW.png",setTimeout((function(){return r("timeout")}),1500)},o=function(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)},i=function(e){var t=void 0===e?window.location.host:e;if("antv.vision"===t)return"antv.gitee.io";var n=t.match(/(.*)\.antv\.vision/);return n&&n[1]?"antv-".concat(n[1],".gitee.io"):t}},JsLm:function(e,t,n){"use strict";var r=n("cxan"),o=n("zjfJ"),i=n("9fIP"),a=n("MMYH"),c=n("pWxA"),u=n("8K1b"),s=n("AqVP"),l=n("O94r"),f=n.n(l),p=n("lSUb"),d=n("ty86"),h=n("ERkP"),v=n("VNzZ"),y=n("H84U"),m=n("i6bk"),g=n("zAh6"),b=h.createContext(null);function O(){return window}function w(e,t){if(!e.getClientRects().length)return 0;var n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}var _=/#([\S ]+)$/,x=function(e){Object(u.a)(n,e);var t=Object(s.a)(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).state={activeLink:null},e.wrapperRef=h.createRef(),e.links=[],e.registerLink=function(t){e.links.includes(t)||e.links.push(t)},e.unregisterLink=function(t){var n=e.links.indexOf(t);-1!==n&&e.links.splice(n,1)},e.getContainer=function(){var t=e.context.getTargetContainer;return(e.props.getContainer||t||O)()},e.handleScrollTo=function(t){var n=e.props,r=n.offsetTop,o=n.targetOffset;e.setCurrentActiveLink(t);var i=e.getContainer(),a=Object(m.a)(i,!0),c=_.exec(t);if(c){var u=document.getElementById(c[1]);if(u){var s=a+w(u,i);s-=void 0!==o?o:r||0,e.animating=!0,Object(g.a)(s,{callback:function(){e.animating=!1},getContainer:e.getContainer})}}},e.saveInkNode=function(t){e.inkNode=t},e.setCurrentActiveLink=function(t){var n=e.state.activeLink,r=e.props,o=r.onChange,i=r.getCurrentAnchor;n!==t&&(e.setState({activeLink:"function"==typeof i?i(t):t}),null==o||o(t))},e.handleScroll=function(){if(!e.animating){var t=e.props,n=t.offsetTop,r=t.bounds,o=t.targetOffset,i=e.getCurrentAnchor(void 0!==o?o:n||0,r);e.setCurrentActiveLink(i)}},e.updateInk=function(){var t=Object(c.a)(e),n=t.prefixCls,r=t.wrapperRef.current,o=null==r?void 0:r.getElementsByClassName("".concat(n,"-link-title-active"))[0];o&&(e.inkNode.style.top="".concat(o.offsetTop+o.clientHeight/2-4.5,"px"))},e.getMemoizedContextValue=Object(p.a)((function(t,n){return{registerLink:e.registerLink,unregisterLink:e.unregisterLink,scrollTo:e.handleScrollTo,activeLink:t,onClick:n}})),e}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(d.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var e=this.getContainer();this.scrollContainer!==e&&(this.scrollContainer=e,this.scrollEvent.remove(),this.scrollEvent=Object(d.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=[],r=this.getContainer();if(this.links.forEach((function(o){var i=_.exec(o.toString());if(i){var a=document.getElementById(i[1]);if(a){var c=w(a,r);c<e+t&&n.push({link:o,top:c})}}})),n.length){var o=n.reduce((function(e,t){return t.top>e.top?t:e}));return o.link}return""}},{key:"render",value:function(){var e=this.context.direction,t=this.props,n=t.anchorPrefixCls,i=t.className,a=void 0===i?"":i,c=t.style,u=t.offsetTop,s=t.affix,l=t.showInkInFixed,p=t.children,d=t.onClick,y=this.state.activeLink;this.prefixCls=n;var m=f()("".concat(n,"-ink-ball"),{visible:y}),g=f()("".concat(n,"-wrapper"),Object(o.a)({},"".concat(n,"-rtl"),"rtl"===e),a),O=f()(n,Object(o.a)({},"".concat(n,"-fixed"),!s&&!l)),w=Object(r.a)({maxHeight:u?"calc(100vh - ".concat(u,"px)"):"100vh"},c),_=h.createElement("div",{ref:this.wrapperRef,className:g,style:w},h.createElement("div",{className:O},h.createElement("div",{className:"".concat(n,"-ink")},h.createElement("span",{className:m,ref:this.saveInkNode})),p)),x=this.getMemoizedContextValue(y,d);return h.createElement(b.Provider,{value:x},s?h.createElement(v.a,{offsetTop:u,target:this.getContainer},_):_)}}]),n}(h.Component);x.defaultProps={affix:!0,showInkInFixed:!1},x.contextType=y.b;var E=h.forwardRef((function(e,t){var n=e.prefixCls,o=(0,h.useContext(y.b).getPrefixCls)("anchor",n),i=Object(r.a)(Object(r.a)({},e),{anchorPrefixCls:o});return h.createElement(x,Object(r.a)({},i,{ref:t}))})),S=function(e){Object(u.a)(n,e);var t=Object(s.a)(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).handleClick=function(t){var n=e.context,r=n.scrollTo,o=n.onClick,i=e.props,a=i.href,c=i.title;null==o||o(t,{title:c,href:a}),r(a)},e.renderAnchorLink=function(t){var n=t.getPrefixCls,r=e.props,i=r.prefixCls,a=r.href,c=r.title,u=r.children,s=r.className,l=r.target,p=n("anchor",i),d=e.context.activeLink===a,v=f()("".concat(p,"-link"),Object(o.a)({},"".concat(p,"-link-active"),d),s),y=f()("".concat(p,"-link-title"),Object(o.a)({},"".concat(p,"-link-title-active"),d));return h.createElement("div",{className:v},h.createElement("a",{className:y,href:a,title:"string"==typeof c?c:"",target:l,onClick:e.handleClick},c),u)},e}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(e){var t=e.href,n=this.props.href;t!==n&&(this.context.unregisterLink(t),this.context.registerLink(n))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return h.createElement(y.a,null,this.renderAnchorLink)}}]),n}(h.Component);S.defaultProps={href:"#"},S.contextType=b;var C=S,j=E;j.Link=C;t.a=j},JxUs:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Hover="hover",e.Click="click",e.Select="select",e.Active="active",e.Drag="drag"}(r||(r={}))},"JyD/":function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Normal="normal",e.PostProcessing="post-processing"}(r||(r={}))},"K/oH":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return L})),n.d(t,"e",(function(){return R}));var r={};n.r(r),n.d(r,"create",(function(){return i})),n.d(r,"clone",(function(){return a})),n.d(r,"copy",(function(){return c})),n.d(r,"identity",(function(){return u})),n.d(r,"fromValues",(function(){return s})),n.d(r,"set",(function(){return l})),n.d(r,"transpose",(function(){return f})),n.d(r,"invert",(function(){return p})),n.d(r,"adjoint",(function(){return d})),n.d(r,"determinant",(function(){return h})),n.d(r,"multiply",(function(){return v})),n.d(r,"rotate",(function(){return y})),n.d(r,"scale",(function(){return m})),n.d(r,"fromRotation",(function(){return g})),n.d(r,"fromScaling",(function(){return b})),n.d(r,"str",(function(){return O})),n.d(r,"frob",(function(){return w})),n.d(r,"LDU",(function(){return _})),n.d(r,"add",(function(){return x})),n.d(r,"subtract",(function(){return E})),n.d(r,"exactEquals",(function(){return S})),n.d(r,"equals",(function(){return C})),n.d(r,"multiplyScalar",(function(){return j})),n.d(r,"multiplyScalarAndAdd",(function(){return k})),n.d(r,"mul",(function(){return P})),n.d(r,"sub",(function(){return T}));n("6JDI"),n("nndn"),n("ct5l");var o=n("lmpI");function i(){var e=new o.a(4);return o.a!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}function a(e){var t=new o.a(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function u(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e}function s(e,t,n,r){var i=new o.a(4);return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i}function l(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e}function f(e,t){if(e===t){var n=t[1];e[1]=t[2],e[2]=n}else e[0]=t[0],e[1]=t[2],e[2]=t[1],e[3]=t[3];return e}function p(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n*i-o*r;return a?(a=1/a,e[0]=i*a,e[1]=-r*a,e[2]=-o*a,e[3]=n*a,e):null}function d(e,t){var n=t[0];return e[0]=t[3],e[1]=-t[1],e[2]=-t[2],e[3]=n,e}function h(e){return e[0]*e[3]-e[2]*e[1]}function v(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],c=n[0],u=n[1],s=n[2],l=n[3];return e[0]=r*c+i*u,e[1]=o*c+a*u,e[2]=r*s+i*l,e[3]=o*s+a*l,e}function y(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],c=Math.sin(n),u=Math.cos(n);return e[0]=r*u+i*c,e[1]=o*u+a*c,e[2]=r*-c+i*u,e[3]=o*-c+a*u,e}function m(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],c=n[0],u=n[1];return e[0]=r*c,e[1]=o*c,e[2]=i*u,e[3]=a*u,e}function g(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=-n,e[3]=r,e}function b(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=t[1],e}function O(e){return"mat2("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}function w(e){return Math.hypot(e[0],e[1],e[2],e[3])}function _(e,t,n,r){return e[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-e[2]*n[1],[e,t,n]}function x(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function E(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function S(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function C(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],c=t[0],u=t[1],s=t[2],l=t[3];return Math.abs(n-c)<=o.b*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(r-u)<=o.b*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-s)<=o.b*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-l)<=o.b*Math.max(1,Math.abs(a),Math.abs(l))}function j(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function k(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e}var P=v,T=E,M=n("NJkw"),A=n("F/1k"),L=n("7Th+"),R=n("hj/m")},"K/z8":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("4wDe"),o=n("pWxA");function i(e,t){if(t&&("object"===Object(r.a)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(o.a)(e)}},K1cu:function(e,t,n){"use strict";var r=n("ERkP"),o=n.n(r),i=function(){return o.a.createElement("div",{style:{position:"relative",height:"100%"}},o.a.createElement("div",{className:"code-loading"},o.a.createElement("div",null,o.a.createElement("div",{className:"loader"},o.a.createElement("svg",{viewBox:"0 0 80 80"},o.a.createElement("defs",null,o.a.createElement("linearGradient",{id:"gradient",x1:".004%",x2:"100.131%",y1:"49.993%",y2:"49.993%"},o.a.createElement("stop",{offset:"0%",stopColor:"#6500FF"}),o.a.createElement("stop",{offset:"16%",stopColor:"#6A09FF"}),o.a.createElement("stop",{offset:"43%",stopColor:"#7623FF"}),o.a.createElement("stop",{offset:"77%",stopColor:"#8A4CFF"}),o.a.createElement("stop",{offset:"99%",stopColor:"#996BFF"}))),o.a.createElement("circle",{id:"test",cx:"40",cy:"40",r:"32",stroke:"url(#gradient)"}))),o.a.createElement("div",{className:"loader triangle"},o.a.createElement("svg",{viewBox:"0 0 86 80"},o.a.createElement("polygon",{points:"43 8 79 72 7 72",stroke:"url(#gradient)"}))),o.a.createElement("div",{className:"loader"},o.a.createElement("svg",{viewBox:"0 0 80 80"},o.a.createElement("rect",{x:"8",y:"8",width:"64",height:"64",stroke:"url(#gradient)"}))),o.a.createElement("div",{className:"loading-text"},o.a.createElement("p",null,"Loading...")))))};t.a=function(){return o.a.createElement("div",{style:{height:"100vh"}},o.a.createElement(i,null))}},KAsB:function(e,t,n){},KCLV:function(e,t,n){var r=n("Syyo"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(u){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},"KEM+":function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},KNH7:function(e,t,n){"use strict";var r=n("cxan"),o=n("ERkP"),i=n("H84U"),a=n("xCex"),c=n("oOh1"),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},s=function(e,t){var n=o.useContext(i.b).getPrefixCls,s=e.prefixCls,l=u(e,["prefixCls"]),f=n("radio",s);return o.createElement(a.c,{value:"button"},o.createElement(c.a,Object(r.a)({prefixCls:f},l,{type:"radio",ref:t})))};t.a=o.forwardRef(s)},KQpv:function(e,t,n){(function(r){var o;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&void 0!==r&&"env"in r&&(e={}.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(o=!1,function(){o||(o=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n("SC2c")(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n("F63i"))},KRNn:function(e,t,n){n("6JDI"),n("nndn"),function(e){"use strict";t.encode=function(t){var n,r=new Uint8Array(t),o=r.length,i="";for(n=0;n<o;n+=3)i+=e[r[n]>>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(t){var n,r,o,i,a,c=.75*t.length,u=t.length,s=0;"="===t[t.length-1]&&(c--,"="===t[t.length-2]&&c--);var l=new ArrayBuffer(c),f=new Uint8Array(l);for(n=0;n<u;n+=4)r=e.indexOf(t[n]),o=e.indexOf(t[n+1]),i=e.indexOf(t[n+2]),a=e.indexOf(t[n+3]),f[s++]=r<<2|o>>4,f[s++]=(15&o)<<4|i>>2,f[s++]=(3&i)<<6|63&a;return l}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},KWcp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STACK_OVERFLOW=t.CIRCULAR_DEPENDENCY_IN_FACTORY=t.POST_CONSTRUCT_ERROR=t.MULTIPLE_POST_CONSTRUCT_METHODS=t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK=t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE=t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE=t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT=t.ARGUMENTS_LENGTH_MISMATCH=t.INVALID_DECORATOR_OPERATION=t.INVALID_TO_SELF_VALUE=t.INVALID_FUNCTION_BINDING=t.INVALID_MIDDLEWARE_RETURN=t.NO_MORE_SNAPSHOTS_AVAILABLE=t.INVALID_BINDING_TYPE=t.NOT_IMPLEMENTED=t.CIRCULAR_DEPENDENCY=t.UNDEFINED_INJECT_ANNOTATION=t.MISSING_INJECT_ANNOTATION=t.MISSING_INJECTABLE_ANNOTATION=t.NOT_REGISTERED=t.CANNOT_UNBIND=t.AMBIGUOUS_MATCH=t.KEY_NOT_FOUND=t.NULL_ARGUMENT=t.DUPLICATED_METADATA=t.DUPLICATED_INJECTABLE_DECORATOR=void 0,t.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",t.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",t.NULL_ARGUMENT="NULL argument",t.KEY_NOT_FOUND="Key Not Found",t.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",t.CANNOT_UNBIND="Could not unbind serviceIdentifier:",t.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",t.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",t.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:";t.UNDEFINED_INJECT_ANNOTATION=function(e){return"@inject called with undefined this could mean that the class "+e+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."},t.CIRCULAR_DEPENDENCY="Circular dependency found:",t.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",t.INVALID_BINDING_TYPE="Invalid binding type:",t.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",t.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",t.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",t.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",t.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.";t.ARGUMENTS_LENGTH_MISMATCH=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"The number of constructor arguments in the derived class "+e[0]+" must be >= than the number of constructor arguments of its base class."},t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";t.POST_CONSTRUCT_ERROR=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"@postConstruct error in class "+e[0]+": "+e[1]};t.CIRCULAR_DEPENDENCY_IN_FACTORY=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"It looks like there is a circular dependency in one of the '"+e[0]+"' bindings. Please investigate bindings withservice identifier '"+e[1]+"'."},t.STACK_OVERFLOW="Maximum call stack size exceeded"},KXuV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITEM_TPL=t.CONTAINER_TPL=t.VALUE_CLASS=t.MARKER_CLASS=t.LIST_ITEM_CLASS=t.LIST_CLASS=t.TITLE_CLASS=t.CONTAINER_CLASS=void 0,t.CONTAINER_CLASS="l7plot-legend l7plot-legend__category",t.TITLE_CLASS="l7plot-legend__title",t.LIST_CLASS="l7plot-legend__category-list",t.LIST_ITEM_CLASS="l7plot-legend__list-item",t.MARKER_CLASS="l7plot-legend__category-marker",t.VALUE_CLASS="l7plot-legend__category-value",t.CONTAINER_TPL='<div class="'.concat(t.CONTAINER_CLASS,'">\n <div class="').concat(t.TITLE_CLASS,'"></div>\n <ul class="').concat(t.LIST_CLASS,'"></ul>\n</div>'),t.ITEM_TPL='<li class="'.concat(t.LIST_ITEM_CLASS,'" data-index={index}>\n <span class="').concat(t.MARKER_CLASS,'" style="background:{color}"></span>\n <span class="').concat(t.VALUE_CLASS,'">{value}</span>\n</li>')},KaVu:function(e,t,n){var r=n("T0aG").default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(P){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=p(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}t.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};l(m,c,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(j([])));b&&b!==n&&i.call(b,c)&&(m=b);var O=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var n;this._invoke=function(o,a){function c(){return new t((function(n,c){!function n(o,a,c,u){var s=p(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==r(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,c,u)}),(function(e){n("throw",e,c,u)})):t.resolve(f).then((function(e){l.value=e,c(l)}),(function(e){return n("throw",e,c,u)}))}u(s.arg)}(o,a,n,c)}))}return n=n?n.then(c,c):c()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return v.prototype=y,l(O,"constructor",y),l(y,"constructor",v),v.displayName=l(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},w(_.prototype),l(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new _(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(O),l(O,s,"Generator"),l(O,c,(function(){return this})),l(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=j,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},Ki3S:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectable=void 0;var r=n("KWcp"),o=n("2u/a");t.injectable=function(){return function(e){if(Reflect.hasOwnMetadata(o.PARAM_TYPES,e))throw new Error(r.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(o.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(o.PARAM_TYPES,t,e),e}}},Kj6D:function(e,t,n){var r=n("2gZs"),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},Kkar:function(e,t,n){var r=n("Dhk8"),o=n("/wCD"),i=n("tLQN"),a=Function.prototype,c=Object.prototype,u=a.toString,s=c.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},Kklp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RIBBON_TPL=t.CONTAINER_TPL=t.VALUE_RANGE_CLASS=t.GRADIENT_BAR_CLASS=t.RIBBON_CLASS=t.RIBBON_CONTAINER_CLASS=t.TITLE_CLASS=t.CONTAINER_CLASS=void 0,t.CONTAINER_CLASS="l7plot-legend l7plot-legend__continue",t.TITLE_CLASS="l7plot-legend__title",t.RIBBON_CONTAINER_CLASS="l7plot-legend__ribbon-container",t.RIBBON_CLASS="l7plot-legend__ribbon",t.GRADIENT_BAR_CLASS="l7plot-legend__gradient-bar",t.VALUE_RANGE_CLASS="l7plot-legend__value-range",t.CONTAINER_TPL='<div class="'.concat(t.CONTAINER_CLASS,'">\n <div class="').concat(t.TITLE_CLASS,'"></div>\n <div class="').concat(t.RIBBON_CONTAINER_CLASS,'"></div>\n</div>'),t.RIBBON_TPL='<div class="'.concat(t.RIBBON_CLASS,'">\n <span class="').concat(t.VALUE_RANGE_CLASS,'">{min}</span>\n <div class="').concat(t.GRADIENT_BAR_CLASS,'" style="background-image: {backgroundImage}"></div>\n <span class="').concat(t.VALUE_RANGE_CLASS,'">{max}</span>\n</div>')},KngG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n("5FNB")),o=i(n("HFVJ"));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)((function(e,t,n){var r=n.split("/")[1];return(0,o.default)(e,t,r)}));t.default=a},KoFO:function(e,t,n){"use strict";n("FtFR"),e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(("_owner"!==a||!t.$$typeof)&&!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},Komq:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},KpVd:function(e,t,n){"use strict";(function(e){function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=a()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,o(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i(r,e)})(e)}n.d(t,"a",(function(){return P}));var s=/%[sdj%]/g,l=function(){};function f(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if("function"==typeof e)return e.apply(null,n);if("string"==typeof e){var a=e.replace(s,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}}));return a}return e}function d(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function h(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var c=r;r+=1,c<o?t(e[c],i):n([])}}([])}var v=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),r}(u(Error));function y(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){h(function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e),n,(function(e){return r(e),e.length?i(new v(e,f(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],c=Object.keys(e),u=c.length,s=0,l=[],p=new Promise((function(t,i){var p=function(e){if(l.push.apply(l,e),++s===u)return r(l),l.length?i(new v(l,f(l))):t(o)};c.length||(r(l),t(o)),c.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?h(r,n,p):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e||[]),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,p)}))}));return p.catch((function(e){return e})),p}function m(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function g(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"==typeof o&&"object"==typeof e[n]?e[n]=r({},e[n],o):e[n]=o}return e}var b,O=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!d(t,i||e.type)||r.push(p(o.messages.required,e.fullField))},w=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,_=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,x={integer:function(e){return x.number(e)&&parseInt(e,10)===e},float:function(e){return x.number(e)&&!x.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!x.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(w)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(b)return b;var e=function(e){return e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=[a-fA-F\\d:])|(?<=[a-fA-F\\d:])(?=\\s|$))":""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+n+":){7}(?:"+n+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+n+":){6}(?:"+t+"|:"+n+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+n+":){5}(?::"+t+"|(?::"+n+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+n+":){4}(?:(?::"+n+"){0,1}:"+t+"|(?::"+n+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+n+":){3}(?:(?::"+n+"){0,2}:"+t+"|(?::"+n+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+n+":){2}(?:(?::"+n+"){0,3}:"+t+"|(?::"+n+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+n+":){1}(?:(?::"+n+"){0,4}:"+t+"|(?::"+n+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+n+"){0,5}:"+t+"|(?::"+n+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+t+"$)|(?:^"+r+"$)"),i=new RegExp("^"+t+"$"),a=new RegExp("^"+r+"$"),c=function(n){return n&&n.exact?o:new RegExp("(?:"+e(n)+t+e(n)+")|(?:"+e(n)+r+e(n)+")","g")};c.v4=function(n){return n&&n.exact?i:new RegExp(""+e(n)+t+e(n),"g")},c.v6=function(t){return t&&t.exact?a:new RegExp(""+e(t)+r+e(t),"g")};var u=c.v4().source,s=c.v6().source;return b=new RegExp("(?:^"+("(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+u+"|"+s+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?')+"$)","i")}())},hex:function(e){return"string"==typeof e&&!!e.match(_)}},E={required:O,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(p(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)O(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?x[i](t)||r.push(p(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(p(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,c="number"==typeof e.max,u=t,s=null,l="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(l?s="number":f?s="string":d&&(s="array"),!s)return!1;d&&(u=t.length),f&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?u!==e.len&&r.push(p(o.messages[s].len,e.fullField,e.len)):a&&!c&&u<e.min?r.push(p(o.messages[s].min,e.fullField,e.min)):c&&!a&&u>e.max?r.push(p(o.messages[s].max,e.fullField,e.max)):a&&c&&(u<e.min||u>e.max)&&r.push(p(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&r.push(p(o.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(p(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(p(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},S=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t,i)&&!e.required)return n();E.required(e,t,r,a,o,i),d(t,i)||E.type(e,t,r,a,o)}n(a)},C={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t,"string")&&!e.required)return n();E.required(e,t,r,i,o,"string"),d(t,"string")||(E.type(e,t,r,i,o),E.range(e,t,r,i,o),E.pattern(e,t,r,i,o),!0===e.whitespace&&E.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();E.required(e,t,r,i,o),void 0!==t&&E.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),d(t)&&!e.required)return n();E.required(e,t,r,i,o),void 0!==t&&(E.type(e,t,r,i,o),E.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();E.required(e,t,r,i,o),void 0!==t&&E.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();E.required(e,t,r,i,o),d(t)||E.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();E.required(e,t,r,i,o),void 0!==t&&(E.type(e,t,r,i,o),E.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();E.required(e,t,r,i,o),void 0!==t&&(E.type(e,t,r,i,o),E.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();E.required(e,t,r,i,o,"array"),null!=t&&(E.type(e,t,r,i,o),E.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();E.required(e,t,r,i,o),void 0!==t&&E.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();E.required(e,t,r,i,o),void 0!==t&&E.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t,"string")&&!e.required)return n();E.required(e,t,r,i,o),d(t,"string")||E.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t,"date")&&!e.required)return n();var a;if(E.required(e,t,r,i,o),!d(t,"date"))a=t instanceof Date?t:new Date(t),E.type(e,a,r,i,o),a&&E.range(e,a.getTime(),r,i,o)}n(i)},url:S,hex:S,email:S,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;E.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(d(t)&&!e.required)return n();E.required(e,t,r,i,o)}n(i)}};function j(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var k=j(),P=function(){function e(e){this.rules=null,this._messages=k,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=g(j(),e)),this._messages},t.validate=function(t,n,o){var i=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var a=t,c=n,u=o;if("function"==typeof c&&(u=c,c={}),!this.rules||0===Object.keys(this.rules).length)return u&&u(null,a),Promise.resolve(a);if(c.messages){var s=this.messages();s===k&&(s=j()),g(s,c.messages),c.messages=s}else c.messages=this.messages();var l={};(c.keys||Object.keys(this.rules)).forEach((function(e){var n=i.rules[e],o=a[e];n.forEach((function(n){var c=n;"function"==typeof c.transform&&(a===t&&(a=r({},a)),o=a[e]=c.transform(o)),(c="function"==typeof c?{validator:c}:r({},c)).validator=i.getValidationMethod(c),c.validator&&(c.field=e,c.fullField=c.fullField||e,c.type=i.getType(c),l[e]=l[e]||[],l[e].push({rule:c,value:o,source:a,field:e}))}))}));var d={};return y(l,c,(function(t,n){var o,i=t.rule,u=!("object"!==i.type&&"array"!==i.type||"object"!=typeof i.fields&&"object"!=typeof i.defaultField);function s(e,t){return r({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function l(o){void 0===o&&(o=[]);var l=Array.isArray(o)?o:[o];!c.suppressWarning&&l.length&&e.warning("async-validator:",l),l.length&&void 0!==i.message&&(l=[].concat(i.message));var f=l.map(m(i,a));if(c.first&&f.length)return d[i.field]=1,n(f);if(u){if(i.required&&!t.value)return void 0!==i.message?f=[].concat(i.message).map(m(i,a)):c.error&&(f=[c.error(i,p(c.messages.required,i.field))]),n(f);var h={};i.defaultField&&Object.keys(t.value).map((function(e){h[e]=i.defaultField})),h=r({},h,t.rule.fields);var v={};Object.keys(h).forEach((function(e){var t=h[e],n=Array.isArray(t)?t:[t];v[e]=n.map(s.bind(null,e))}));var y=new e(v);y.messages(c.messages),t.rule.options&&(t.rule.options.messages=c.messages,t.rule.options.error=c.error),y.validate(t.value,t.rule.options||c,(function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(f)}if(u=u&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)o=i.asyncValidator(i,t.value,l,t.source,c);else if(i.validator){try{o=i.validator(i,t.value,l,t.source,c)}catch(f){null==console.error||console.error(f),c.suppressValidatorError||setTimeout((function(){throw f}),0),l(f.message)}!0===o?l():!1===o?l("function"==typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):o instanceof Array?l(o):o instanceof Error&&l(o.message)}o&&o.then&&o.then((function(){return l()}),(function(e){return l(e)}))}),(function(e){!function(e){for(var t,n,r=[],o={},i=0;i<e.length;i++)t=e[i],n=void 0,Array.isArray(t)?r=(n=r).concat.apply(n,t):r.push(t);r.length?(o=f(r),u(r,o)):u(null,a)}(e)}),a)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!C.hasOwnProperty(e.type))throw new Error(p("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?C.required:C[this.getType(e)]||void 0},e}();P.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");C[e]=t},P.warning=l,P.messages=k,P.validators=C}).call(this,n("F63i"))},KpjL:function(e,t,n){"use strict";t.a=function(e){return e}},KrTs:function(e,t,n){"use strict";var r=n("zjfJ"),o=n("4wDe"),i=n("cxan"),a=n("O94r"),c=n.n(a),u=n("B5SY"),s=n("ERkP"),l=n("H84U"),f=n("0n0R"),p=n("09Wf");function d(e){return-1!==p.a.indexOf(e)}var h=function(e){var t,n=e.className,o=e.prefixCls,a=e.style,u=e.color,f=e.children,p=e.text,h=e.placement,v=void 0===h?"end":h,y=s.useContext(l.b),m=y.getPrefixCls,g=y.direction,b=m("ribbon",o),O=d(u),w=c()(b,"".concat(b,"-placement-").concat(v),(t={},Object(r.a)(t,"".concat(b,"-rtl"),"rtl"===g),Object(r.a)(t,"".concat(b,"-color-").concat(u),O),t),n),_={},x={};return u&&!O&&(_.background=u,x.color=u),s.createElement("div",{className:"".concat(b,"-wrapper")},f,s.createElement("div",{className:w,style:Object(i.a)(Object(i.a)({},_),a)},s.createElement("span",{className:"".concat(b,"-text")},p),s.createElement("div",{className:"".concat(b,"-corner"),style:x})))},v=n("zygG");function y(e){var t,n=e.prefixCls,r=e.value,o=e.current,i=e.offset,a=void 0===i?0:i;return a&&(t={position:"absolute",top:"".concat(a,"00%"),left:0}),s.createElement("span",{style:t,className:c()("".concat(n,"-only-unit"),{current:o})},r)}function m(e,t,n){for(var r=e,o=0;(r+10)%10!==t;)r+=n,o+=n;return o}function g(e){var t,n,r=e.prefixCls,o=e.count,a=e.value,c=Number(a),u=Math.abs(o),l=s.useState(c),f=Object(v.a)(l,2),p=f[0],d=f[1],h=s.useState(u),g=Object(v.a)(h,2),b=g[0],O=g[1],w=function(){d(c),O(u)};if(s.useEffect((function(){var e=setTimeout((function(){w()}),1e3);return function(){clearTimeout(e)}}),[c]),p===c||Number.isNaN(c)||Number.isNaN(p))t=[s.createElement(y,Object(i.a)({},e,{key:c,current:!0}))],n={transition:"none"};else{t=[];for(var _=c+10,x=[],E=c;E<=_;E+=1)x.push(E);var S=x.findIndex((function(e){return e%10===p}));t=x.map((function(t,n){var r=t%10;return s.createElement(y,Object(i.a)({},e,{key:t,value:r,offset:n-S,current:n===S}))})),n={transform:"translateY(".concat(-m(p,c,b<u?1:-1),"00%)")}}return s.createElement("span",{className:"".concat(r,"-only"),style:n,onTransitionEnd:w},t)}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},O=function(e){var t=e.prefixCls,n=e.count,r=e.className,o=e.motionClassName,a=e.style,u=e.title,p=e.show,d=e.component,h=void 0===d?"sup":d,v=e.children,y=b(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),m=(0,s.useContext(l.b).getPrefixCls)("scroll-number",t),O=Object(i.a)(Object(i.a)({},y),{"data-show":p,style:a,className:c()(m,r,o),title:u}),w=n;if(n&&Number(n)%1==0){var _=String(n).split("");w=_.map((function(e,t){return s.createElement(g,{prefixCls:m,count:Number(n),value:e,key:_.length-t})}))}return a&&a.borderColor&&(O.style=Object(i.a)(Object(i.a)({},a),{boxShadow:"0 0 0 1px ".concat(a.borderColor," inset")})),v?Object(f.a)(v,(function(e){return{className:c()("".concat(m,"-custom-component"),null==e?void 0:e.className,o)}})):s.createElement(h,O,w)},w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},_=function(e){var t,n,a=e.prefixCls,p=e.scrollNumberPrefixCls,h=e.children,v=e.status,y=e.text,m=e.color,g=e.count,b=void 0===g?null:g,_=e.overflowCount,x=void 0===_?99:_,E=e.dot,S=void 0!==E&&E,C=e.size,j=void 0===C?"default":C,k=e.title,P=e.offset,T=e.style,M=e.className,A=e.showZero,L=void 0!==A&&A,R=w(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),N=s.useContext(l.b),I=N.getPrefixCls,D=N.direction,F=I("badge",a),z=b>x?"".concat(x,"+"):b,B=null!=v||null!=m,U="0"===z||0===z,V=S&&!U,H=V?"":z,G=Object(s.useMemo)((function(){return(null==H||""===H||U&&!L)&&!V}),[H,U,L,V]),W=Object(s.useRef)(b);G||(W.current=b);var Y=W.current,K=Object(s.useRef)(H);G||(K.current=H);var X=K.current,q=Object(s.useRef)(V);G||(q.current=V);var Z=Object(s.useMemo)((function(){if(!P)return Object(i.a)({},T);var e={marginTop:P[1]};return"rtl"===D?e.left=parseInt(P[0],10):e.right=-parseInt(P[0],10),Object(i.a)(Object(i.a)({},e),T)}),[D,P,T]),J=null!=k?k:"string"==typeof Y||"number"==typeof Y?Y:void 0,Q=G||!y?null:s.createElement("span",{className:"".concat(F,"-status-text")},y),$=Y&&"object"===Object(o.a)(Y)?Object(f.a)(Y,(function(e){return{style:Object(i.a)(Object(i.a)({},Z),e.style)}})):void 0,ee=c()((t={},Object(r.a)(t,"".concat(F,"-status-dot"),B),Object(r.a)(t,"".concat(F,"-status-").concat(v),!!v),Object(r.a)(t,"".concat(F,"-status-").concat(m),d(m)),t)),te={};m&&!d(m)&&(te.background=m);var ne=c()(F,(n={},Object(r.a)(n,"".concat(F,"-status"),B),Object(r.a)(n,"".concat(F,"-not-a-wrapper"),!h),Object(r.a)(n,"".concat(F,"-rtl"),"rtl"===D),n),M);if(!h&&B){var re=Z.color;return s.createElement("span",Object(i.a)({},R,{className:ne,style:Z}),s.createElement("span",{className:ee,style:te}),s.createElement("span",{style:{color:re},className:"".concat(F,"-status-text")},y))}return s.createElement("span",Object(i.a)({},R,{className:ne}),h,s.createElement(u.b,{visible:!G,motionName:"".concat(F,"-zoom"),motionAppear:!1,motionDeadline:1e3},(function(e){var t,n=e.className,o=I("scroll-number",p),a=q.current,u=c()((t={},Object(r.a)(t,"".concat(F,"-dot"),a),Object(r.a)(t,"".concat(F,"-count"),!a),Object(r.a)(t,"".concat(F,"-count-sm"),"small"===j),Object(r.a)(t,"".concat(F,"-multiple-words"),!a&&X&&X.toString().length>1),Object(r.a)(t,"".concat(F,"-status-").concat(v),!!v),Object(r.a)(t,"".concat(F,"-status-").concat(m),d(m)),t)),l=Object(i.a)({},Z);return m&&!d(m)&&((l=l||{}).background=m),s.createElement(O,{prefixCls:o,show:!G,motionClassName:n,className:u,count:X,title:J,style:l,key:"scrollNumber"},$)})),Q)};_.Ribbon=h;t.a=_},"L+KZ":function(e,t,n){"use strict";var r=n("9fIP"),o=n("MMYH"),i=n("8K1b"),a=n("AqVP"),c=n("4wDe"),u=n("ERkP"),s=n("jiyB"),l=n("Yu/1"),f=n("3yBb"),p=n("vONN");var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return{};var n=t.element,r=void 0===n?document.body:n,o={},i=Object.keys(e);return i.forEach((function(e){o[e]=r.style[e]})),i.forEach((function(t){r.style[t]=e[t]})),o};var h={},v=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t=new RegExp("".concat("ant-scrolling-effect"),"g"),n=document.body.className;if(e){if(!t.test(n))return;return d(h),h={},void(document.body.className=n.replace(t,"").trim())}var r=Object(p.a)();if(r&&(h=d({position:"relative",width:"calc(100% - ".concat(r,"px)")}),!t.test(n))){var o="".concat(n," ").concat("ant-scrolling-effect");document.body.className=o.trim()}}},y=n("fGyu"),m=[],g=new RegExp("".concat("ant-scrolling-effect"),"g"),b=0,O=new Map,w=Object(o.a)((function e(t){var n=this;Object(r.a)(this,e),this.lockTarget=void 0,this.options=void 0,this.getContainer=function(){var e;return null===(e=n.options)||void 0===e?void 0:e.container},this.reLock=function(e){var t=m.find((function(e){return e.target===n.lockTarget}));t&&n.unLock(),n.options=e,t&&(t.options=e,n.lock())},this.lock=function(){var e;if(!m.some((function(e){return e.target===n.lockTarget})))if(m.some((function(e){var t,r=e.options;return(null==r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})))m=[].concat(Object(y.a)(m),[{target:n.lockTarget,options:n.options}]);else{var t=0,r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body;(r===document.body&&window.innerWidth-document.documentElement.clientWidth>0||r.scrollHeight>r.clientHeight)&&(t=Object(p.a)());var o=r.className;if(0===m.filter((function(e){var t,r=e.options;return(null==r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})).length&&O.set(r,d({width:0!==t?"calc(100% - ".concat(t,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:r})),!g.test(o)){var i="".concat(o," ").concat("ant-scrolling-effect");r.className=i.trim()}m=[].concat(Object(y.a)(m),[{target:n.lockTarget,options:n.options}])}},this.unLock=function(){var e,t=m.find((function(e){return e.target===n.lockTarget}));if(m=m.filter((function(e){return e.target!==n.lockTarget})),t&&!m.some((function(e){var n,r=e.options;return(null==r?void 0:r.container)===(null===(n=t.options)||void 0===n?void 0:n.container)}))){var r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body,o=r.className;g.test(o)&&(d(O.get(r),{element:r}),O.delete(r),r.className=r.className.replace(g,"").trim())}},this.lockTarget=b++,this.options=t})),_=0,x=Object(f.a)();var E={},S=function(e){if(!x)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"===Object(c.a)(e)&&e instanceof window.HTMLElement)return e}return document.body},C=function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(e){var o;return Object(r.a)(this,n),(o=t.call(this,e)).container=void 0,o.componentRef=u.createRef(),o.rafId=void 0,o.scrollLocker=void 0,o.renderComponent=void 0,o.updateScrollLocker=function(e){var t=(e||{}).visible,n=o.props,r=n.getContainer,i=n.visible;i&&i!==t&&x&&S(r)!==o.scrollLocker.getContainer()&&o.scrollLocker.reLock({container:S(r)})},o.updateOpenCount=function(e){var t=e||{},n=t.visible,r=t.getContainer,i=o.props,a=i.visible,c=i.getContainer;a!==n&&x&&S(c)===document.body&&(a&&!n?_+=1:e&&(_-=1)),("function"==typeof c&&"function"==typeof r?c.toString()!==r.toString():c!==r)&&o.removeCurrentContainer()},o.attachToParent=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||o.container&&!o.container.parentNode){var t=S(o.props.getContainer);return!!t&&(t.appendChild(o.container),!0)}return!0},o.getContainer=function(){return x?(o.container||(o.container=document.createElement("div"),o.attachToParent(!0)),o.setWrapperClassName(),o.container):null},o.setWrapperClassName=function(){var e=o.props.wrapperClassName;o.container&&e&&e!==o.container.className&&(o.container.className=e)},o.removeCurrentContainer=function(){var e,t;null===(e=o.container)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(o.container)},o.switchScrollingEffect=function(){1!==_||Object.keys(E).length?_||(d(E),E={},v(!0)):(v(),E=d({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))},o.scrollLocker=new w({container:S(e.getContainer)}),o}return Object(o.a)(n,[{key:"componentDidMount",value:function(){var e=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=Object(s.a)((function(){e.forceUpdate()})))}},{key:"componentDidUpdate",value:function(e){this.updateOpenCount(e),this.updateScrollLocker(e),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visible,n=e.getContainer;x&&S(n)===document.body&&(_=t&&_?_-1:_),this.removeCurrentContainer(),s.a.cancel(this.rafId)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.forceRender,r=e.visible,o=null,i={getOpenCount:function(){return _},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(n||r||this.componentRef.current)&&(o=u.createElement(l.a,{getContainer:this.getContainer,ref:this.componentRef},t(i))),o}}]),n}(u.Component);t.a=C},L1uU:function(e,t,n){"use strict";n.r(t),n.d(t,"GLTFLoader",(function(){return o}));n("6JDI"),n("nndn"),n("tQbP");var r=n("i8eK"),o=function(){function e(e){r.Loader.call(this,e),this.dracoLoader=null,this.ddsLoader=null}function t(){var e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}e.prototype=Object.assign(Object.create(r.Loader.prototype),{constructor:e,load:function(e,t,n,o){var i,a=this;i=""!==this.resourcePath?this.resourcePath:""!==this.path?this.path:r.LoaderUtils.extractUrlBase(e),a.manager.itemStart(e);var c=function(t){o?o(t):console.error(t),a.manager.itemError(e),a.manager.itemEnd(e)},u=new r.FileLoader(a.manager);u.setPath(this.path),u.setResponseType("arraybuffer"),"use-credentials"===a.crossOrigin&&u.setWithCredentials(!0),u.load(e,(function(n){try{a.parse(n,i,(function(n){t(n),a.manager.itemEnd(e)}),c)}catch(r){c(r)}}),n,c)},setDRACOLoader:function(e){return this.dracoLoader=e,this},setDDSLoader:function(e){return this.ddsLoader=e,this},parse:function(e,t,s,l){var h,m={};if("string"==typeof e)h=e;else if(r.LoaderUtils.decodeText(new Uint8Array(e,0,4))===u){try{m[n.KHR_BINARY_GLTF]=new f(e)}catch(_){return void(l&&l(_))}h=m[n.KHR_BINARY_GLTF].content}else h=r.LoaderUtils.decodeText(new Uint8Array(e));var g=JSON.parse(h);if(void 0===g.asset||g.asset.version[0]<2)l&&l(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));else{if(g.extensionsUsed)for(var b=0;b<g.extensionsUsed.length;++b){var O=g.extensionsUsed[b],w=g.extensionsRequired||[];switch(O){case n.KHR_LIGHTS_PUNCTUAL:m[O]=new i(g);break;case n.KHR_MATERIALS_CLEARCOAT:m[O]=new c;break;case n.KHR_MATERIALS_UNLIT:m[O]=new a;break;case n.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:m[O]=new v;break;case n.KHR_DRACO_MESH_COMPRESSION:m[O]=new p(g,this.dracoLoader);break;case n.MSFT_TEXTURE_DDS:m[O]=new o(this.ddsLoader);break;case n.KHR_TEXTURE_TRANSFORM:m[O]=new d;break;case n.KHR_MESH_QUANTIZATION:m[O]=new y;break;default:w.indexOf(O)>=0&&console.warn('THREE.GLTFLoader: Unknown extension "'+O+'".')}}new U(g,m,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,manager:this.manager}).parse(s,l)}}});var n={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:"KHR_materials_pbrSpecularGlossiness",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",MSFT_TEXTURE_DDS:"MSFT_texture_dds"};function o(e){if(!e)throw new Error("THREE.GLTFLoader: Attempting to load .dds texture without importing DDSLoader");this.name=n.MSFT_TEXTURE_DDS,this.ddsLoader=e}function i(e){this.name=n.KHR_LIGHTS_PUNCTUAL;var t=e.extensions&&e.extensions[n.KHR_LIGHTS_PUNCTUAL]||{};this.lightDefs=t.lights||[]}function a(){this.name=n.KHR_MATERIALS_UNLIT}function c(){this.name=n.KHR_MATERIALS_CLEARCOAT}i.prototype.loadLight=function(e){var t,n=this.lightDefs[e],o=new r.Color(16777215);void 0!==n.color&&o.fromArray(n.color);var i=void 0!==n.range?n.range:0;switch(n.type){case"directional":(t=new r.DirectionalLight(o)).target.position.set(0,0,-1),t.add(t.target);break;case"point":(t=new r.PointLight(o)).distance=i;break;case"spot":(t=new r.SpotLight(o)).distance=i,n.spot=n.spot||{},n.spot.innerConeAngle=void 0!==n.spot.innerConeAngle?n.spot.innerConeAngle:0,n.spot.outerConeAngle=void 0!==n.spot.outerConeAngle?n.spot.outerConeAngle:Math.PI/4,t.angle=n.spot.outerConeAngle,t.penumbra=1-n.spot.innerConeAngle/n.spot.outerConeAngle,t.target.position.set(0,0,-1),t.add(t.target);break;default:throw new Error('THREE.GLTFLoader: Unexpected light type, "'+n.type+'".')}return t.position.set(0,0,0),t.decay=2,void 0!==n.intensity&&(t.intensity=n.intensity),t.name=n.name||"light_"+e,Promise.resolve(t)},a.prototype.getMaterialType=function(){return r.MeshBasicMaterial},a.prototype.extendParams=function(e,t,n){var o=[];e.color=new r.Color(1,1,1),e.opacity=1;var i=t.pbrMetallicRoughness;if(i){if(Array.isArray(i.baseColorFactor)){var a=i.baseColorFactor;e.color.fromArray(a),e.opacity=a[3]}void 0!==i.baseColorTexture&&o.push(n.assignTexture(e,"map",i.baseColorTexture))}return Promise.all(o)},c.prototype.getMaterialType=function(){return r.MeshPhysicalMaterial},c.prototype.extendParams=function(e,t,n){var o=[],i=t.extensions[this.name];if(void 0!==i.clearcoatFactor&&(e.clearcoat=i.clearcoatFactor),void 0!==i.clearcoatTexture&&o.push(n.assignTexture(e,"clearcoatMap",i.clearcoatTexture)),void 0!==i.clearcoatRoughnessFactor&&(e.clearcoatRoughness=i.clearcoatRoughnessFactor),void 0!==i.clearcoatRoughnessTexture&&o.push(n.assignTexture(e,"clearcoatRoughnessMap",i.clearcoatRoughnessTexture)),void 0!==i.clearcoatNormalTexture&&(o.push(n.assignTexture(e,"clearcoatNormalMap",i.clearcoatNormalTexture)),void 0!==i.clearcoatNormalTexture.scale)){var a=i.clearcoatNormalTexture.scale;e.clearcoatNormalScale=new r.Vector2(a,a)}return Promise.all(o)};var u="glTF",s=1313821514,l=5130562;function f(e){this.name=n.KHR_BINARY_GLTF,this.content=null,this.body=null;var t=new DataView(e,0,12);if(this.header={magic:r.LoaderUtils.decodeText(new Uint8Array(e.slice(0,4))),version:t.getUint32(4,!0),length:t.getUint32(8,!0)},this.header.magic!==u)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");for(var o=new DataView(e,12),i=0;i<o.byteLength;){var a=o.getUint32(i,!0);i+=4;var c=o.getUint32(i,!0);if(i+=4,c===s){var f=new Uint8Array(e,12+i,a);this.content=r.LoaderUtils.decodeText(f)}else if(c===l){var p=12+i;this.body=e.slice(p,p+a)}i+=a}if(null===this.content)throw new Error("THREE.GLTFLoader: JSON content not found.")}function p(e,t){if(!t)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=n.KHR_DRACO_MESH_COMPRESSION,this.json=e,this.dracoLoader=t,this.dracoLoader.preload()}function d(){this.name=n.KHR_TEXTURE_TRANSFORM}function h(e){r.MeshStandardMaterial.call(this),this.isGLTFSpecularGlossinessMaterial=!0;var t=["#ifdef USE_SPECULARMAP","\tuniform sampler2D specularMap;","#endif"].join("\n"),n=["#ifdef USE_GLOSSINESSMAP","\tuniform sampler2D glossinessMap;","#endif"].join("\n"),o=["vec3 specularFactor = specular;","#ifdef USE_SPECULARMAP","\tvec4 texelSpecular = texture2D( specularMap, vUv );","\ttexelSpecular = sRGBToLinear( texelSpecular );","\t// reads channel RGB, compatible with a glTF Specular-Glossiness (RGBA) texture","\tspecularFactor *= texelSpecular.rgb;","#endif"].join("\n"),i=["float glossinessFactor = glossiness;","#ifdef USE_GLOSSINESSMAP","\tvec4 texelGlossiness = texture2D( glossinessMap, vUv );","\t// reads channel A, compatible with a glTF Specular-Glossiness (RGBA) texture","\tglossinessFactor *= texelGlossiness.a;","#endif"].join("\n"),a=["PhysicalMaterial material;","material.diffuseColor = diffuseColor.rgb;","vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );","float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );","material.specularRoughness = max( 1.0 - glossinessFactor, 0.0525 );// 0.0525 corresponds to the base mip of a 256 cubemap.","material.specularRoughness += geometryRoughness;","material.specularRoughness = min( material.specularRoughness, 1.0 );","material.specularColor = specularFactor.rgb;"].join("\n"),c={specular:{value:(new r.Color).setHex(16777215)},glossiness:{value:1},specularMap:{value:null},glossinessMap:{value:null}};this._extraUniforms=c,this.onBeforeCompile=function(e){for(var r in c)e.uniforms[r]=c[r];e.fragmentShader=e.fragmentShader.replace("uniform float roughness;","uniform vec3 specular;"),e.fragmentShader=e.fragmentShader.replace("uniform float metalness;","uniform float glossiness;"),e.fragmentShader=e.fragmentShader.replace("#include <roughnessmap_pars_fragment>",t),e.fragmentShader=e.fragmentShader.replace("#include <metalnessmap_pars_fragment>",n),e.fragmentShader=e.fragmentShader.replace("#include <roughnessmap_fragment>",o),e.fragmentShader=e.fragmentShader.replace("#include <metalnessmap_fragment>",i),e.fragmentShader=e.fragmentShader.replace("#include <lights_physical_fragment>",a)},Object.defineProperties(this,{specular:{get:function(){return c.specular.value},set:function(e){c.specular.value=e}},specularMap:{get:function(){return c.specularMap.value},set:function(e){c.specularMap.value=e}},glossiness:{get:function(){return c.glossiness.value},set:function(e){c.glossiness.value=e}},glossinessMap:{get:function(){return c.glossinessMap.value},set:function(e){c.glossinessMap.value=e,e?(this.defines.USE_GLOSSINESSMAP="",this.defines.USE_ROUGHNESSMAP=""):(delete this.defines.USE_ROUGHNESSMAP,delete this.defines.USE_GLOSSINESSMAP)}}}),delete this.metalness,delete this.roughness,delete this.metalnessMap,delete this.roughnessMap,this.setValues(e)}function v(){return{name:n.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS,specularGlossinessParams:["color","map","lightMap","lightMapIntensity","aoMap","aoMapIntensity","emissive","emissiveIntensity","emissiveMap","bumpMap","bumpScale","normalMap","normalMapType","displacementMap","displacementScale","displacementBias","specularMap","specular","glossinessMap","glossiness","alphaMap","envMap","envMapIntensity","refractionRatio"],getMaterialType:function(){return h},extendParams:function(e,t,n){var o=t.extensions[this.name];e.color=new r.Color(1,1,1),e.opacity=1;var i=[];if(Array.isArray(o.diffuseFactor)){var a=o.diffuseFactor;e.color.fromArray(a),e.opacity=a[3]}if(void 0!==o.diffuseTexture&&i.push(n.assignTexture(e,"map",o.diffuseTexture)),e.emissive=new r.Color(0,0,0),e.glossiness=void 0!==o.glossinessFactor?o.glossinessFactor:1,e.specular=new r.Color(1,1,1),Array.isArray(o.specularFactor)&&e.specular.fromArray(o.specularFactor),void 0!==o.specularGlossinessTexture){var c=o.specularGlossinessTexture;i.push(n.assignTexture(e,"glossinessMap",c)),i.push(n.assignTexture(e,"specularMap",c))}return Promise.all(i)},createMaterial:function(e){var t=new h(e);return t.fog=!0,t.color=e.color,t.map=void 0===e.map?null:e.map,t.lightMap=null,t.lightMapIntensity=1,t.aoMap=void 0===e.aoMap?null:e.aoMap,t.aoMapIntensity=1,t.emissive=e.emissive,t.emissiveIntensity=1,t.emissiveMap=void 0===e.emissiveMap?null:e.emissiveMap,t.bumpMap=void 0===e.bumpMap?null:e.bumpMap,t.bumpScale=1,t.normalMap=void 0===e.normalMap?null:e.normalMap,t.normalMapType=r.TangentSpaceNormalMap,e.normalScale&&(t.normalScale=e.normalScale),t.displacementMap=null,t.displacementScale=1,t.displacementBias=0,t.specularMap=void 0===e.specularMap?null:e.specularMap,t.specular=e.specular,t.glossinessMap=void 0===e.glossinessMap?null:e.glossinessMap,t.glossiness=e.glossiness,t.alphaMap=null,t.envMap=void 0===e.envMap?null:e.envMap,t.envMapIntensity=1,t.refractionRatio=.98,t}}}function y(){this.name=n.KHR_MESH_QUANTIZATION}function m(e,t,n,o){r.Interpolant.call(this,e,t,n,o)}p.prototype.decodePrimitive=function(e,t){var n=this.json,r=this.dracoLoader,o=e.extensions[this.name].bufferView,i=e.extensions[this.name].attributes,a={},c={},u={};for(var s in i){var l=P[s]||s.toLowerCase();a[l]=i[s]}for(s in e.attributes){l=P[s]||s.toLowerCase();if(void 0!==i[s]){var f=n.accessors[e.attributes[s]],p=S[f.componentType];u[l]=p,c[l]=!0===f.normalized}}return t.getDependency("bufferView",o).then((function(e){return new Promise((function(t){r.decodeDracoFile(e,(function(e){for(var n in e.attributes){var r=e.attributes[n],o=c[n];void 0!==o&&(r.normalized=o)}t(e)}),a,u)}))}))},d.prototype.extendTexture=function(e,t){return e=e.clone(),void 0!==t.offset&&e.offset.fromArray(t.offset),void 0!==t.rotation&&(e.rotation=t.rotation),void 0!==t.scale&&e.repeat.fromArray(t.scale),void 0!==t.texCoord&&console.warn('THREE.GLTFLoader: Custom UV sets in "'+this.name+'" extension not yet supported.'),e.needsUpdate=!0,e},h.prototype=Object.create(r.MeshStandardMaterial.prototype),h.prototype.constructor=h,h.prototype.copy=function(e){return r.MeshStandardMaterial.prototype.copy.call(this,e),this.specularMap=e.specularMap,this.specular.copy(e.specular),this.glossinessMap=e.glossinessMap,this.glossiness=e.glossiness,delete this.metalness,delete this.roughness,delete this.metalnessMap,delete this.roughnessMap,this},m.prototype=Object.create(r.Interpolant.prototype),m.prototype.constructor=m,m.prototype.copySampleValue_=function(e){for(var t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,o=e*r*3+r,i=0;i!==r;i++)t[i]=n[o+i];return t},m.prototype.beforeStart_=m.prototype.copySampleValue_,m.prototype.afterEnd_=m.prototype.copySampleValue_,m.prototype.interpolate_=function(e,t,n,r){for(var o=this.resultBuffer,i=this.sampleValues,a=this.valueSize,c=2*a,u=3*a,s=r-t,l=(n-t)/s,f=l*l,p=f*l,d=e*u,h=d-u,v=-2*p+3*f,y=p-f,m=1-v,g=y-f+l,b=0;b!==a;b++){var O=i[h+b+a],w=i[h+b+c]*s,_=i[d+b+a],x=i[d+b]*s;o[b]=m*O+g*w+v*_+y*x}return o};var g=0,b=1,O=2,w=3,_=4,x=5,E=6,S={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},C={9728:r.NearestFilter,9729:r.LinearFilter,9984:r.NearestMipmapNearestFilter,9985:r.LinearMipmapNearestFilter,9986:r.NearestMipmapLinearFilter,9987:r.LinearMipmapLinearFilter},j={33071:r.ClampToEdgeWrapping,33648:r.MirroredRepeatWrapping,10497:r.RepeatWrapping},k={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},P={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv2",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},T={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},M={CUBICSPLINE:void 0,LINEAR:r.InterpolateLinear,STEP:r.InterpolateDiscrete},A="OPAQUE",L="MASK",R="BLEND",N={"image/png":r.RGBAFormat,"image/jpeg":r.RGBFormat};function I(e,t){return"string"!=typeof e||""===e?"":(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}function D(e,t,n){for(var r in n.extensions)void 0===e[r]&&(t.userData.gltfExtensions=t.userData.gltfExtensions||{},t.userData.gltfExtensions[r]=n.extensions[r])}function F(e,t){void 0!==t.extras&&("object"==typeof t.extras?Object.assign(e.userData,t.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+t.extras))}function z(e,t){if(e.updateMorphTargets(),void 0!==t.weights)for(var n=0,r=t.weights.length;n<r;n++)e.morphTargetInfluences[n]=t.weights[n];if(t.extras&&Array.isArray(t.extras.targetNames)){var o=t.extras.targetNames;if(e.morphTargetInfluences.length===o.length){e.morphTargetDictionary={};for(n=0,r=o.length;n<r;n++)e.morphTargetDictionary[o[n]]=n}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function B(e){for(var t="",n=Object.keys(e).sort(),r=0,o=n.length;r<o;r++)t+=n[r]+":"+e[n[r]]+";";return t}function U(e,n,o){this.json=e||{},this.extensions=n||{},this.options=o||{},this.cache=new t,this.primitiveCache={},this.textureLoader=new r.TextureLoader(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.fileLoader=new r.FileLoader(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}function V(e,t,n){var o=t.attributes,i=[];function a(t,r){return n.getDependency("accessor",t).then((function(t){e.setAttribute(r,t)}))}for(var c in o){var u=P[c]||c.toLowerCase();u in e.attributes||i.push(a(o[c],u))}if(void 0!==t.indices&&!e.index){var s=n.getDependency("accessor",t.indices).then((function(t){e.setIndex(t)}));i.push(s)}return F(e,t),function(e,t,n){var o=t.attributes,i=new r.Box3;if(void 0!==o.POSITION){var a=(h=n.json.accessors[o.POSITION]).min,c=h.max;if(void 0!==a&&void 0!==c){i.set(new r.Vector3(a[0],a[1],a[2]),new r.Vector3(c[0],c[1],c[2]));var u=t.targets;if(void 0!==u){for(var s=new r.Vector3,l=new r.Vector3,f=0,p=u.length;f<p;f++){var d=u[f];if(void 0!==d.POSITION){var h;a=(h=n.json.accessors[d.POSITION]).min,c=h.max;void 0!==a&&void 0!==c?(l.setX(Math.max(Math.abs(a[0]),Math.abs(c[0]))),l.setY(Math.max(Math.abs(a[1]),Math.abs(c[1]))),l.setZ(Math.max(Math.abs(a[2]),Math.abs(c[2]))),s.max(l)):console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}i.expandByVector(s)}e.boundingBox=i;var v=new r.Sphere;i.getCenter(v.center),v.radius=i.min.distanceTo(i.max)/2,e.boundingSphere=v}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}(e,t,n),Promise.all(i).then((function(){return void 0!==t.targets?function(e,t,n){for(var r=!1,o=!1,i=0,a=t.length;i<a;i++){if(void 0!==(s=t[i]).POSITION&&(r=!0),void 0!==s.NORMAL&&(o=!0),r&&o)break}if(!r&&!o)return Promise.resolve(e);var c=[],u=[];for(i=0,a=t.length;i<a;i++){var s=t[i];if(r){var l=void 0!==s.POSITION?n.getDependency("accessor",s.POSITION):e.attributes.position;c.push(l)}if(o){l=void 0!==s.NORMAL?n.getDependency("accessor",s.NORMAL):e.attributes.normal;u.push(l)}}return Promise.all([Promise.all(c),Promise.all(u)]).then((function(t){var n=t[0],i=t[1];return r&&(e.morphAttributes.position=n),o&&(e.morphAttributes.normal=i),e.morphTargetsRelative=!0,e}))}(e,t.targets,n):e}))}function H(e,t){var n=e.getIndex();if(null===n){var o=[],i=e.getAttribute("position");if(void 0===i)return console.error("THREE.GLTFLoader.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),e;for(var a=0;a<i.count;a++)o.push(a);e.setIndex(o),n=e.getIndex()}var c=n.count-2,u=[];if(t===r.TriangleFanDrawMode)for(a=1;a<=c;a++)u.push(n.getX(0)),u.push(n.getX(a)),u.push(n.getX(a+1));else for(a=0;a<c;a++)a%2==0?(u.push(n.getX(a)),u.push(n.getX(a+1)),u.push(n.getX(a+2))):(u.push(n.getX(a+2)),u.push(n.getX(a+1)),u.push(n.getX(a)));u.length/3!==c&&console.error("THREE.GLTFLoader.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");var s=e.clone();return s.setIndex(u),s}return U.prototype.parse=function(e,t){var n=this,r=this.json,o=this.extensions;this.cache.removeAll(),this.markDefs(),Promise.all([this.getDependencies("scene"),this.getDependencies("animation"),this.getDependencies("camera")]).then((function(t){var i={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};D(o,i,r),F(i,r),e(i)})).catch(t)},U.prototype.markDefs=function(){for(var e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[],r={},o={},i=0,a=t.length;i<a;i++)for(var c=t[i].joints,u=0,s=c.length;u<s;u++)e[c[u]].isBone=!0;for(var l=0,f=e.length;l<f;l++){var p=e[l];void 0!==p.mesh&&(void 0===r[p.mesh]&&(r[p.mesh]=o[p.mesh]=0),r[p.mesh]++,void 0!==p.skin&&(n[p.mesh].isSkinnedMesh=!0))}this.json.meshReferences=r,this.json.meshUses=o},U.prototype.getDependency=function(e,t){var r=e+":"+t,o=this.cache.get(r);if(!o){switch(e){case"scene":o=this.loadScene(t);break;case"node":o=this.loadNode(t);break;case"mesh":o=this.loadMesh(t);break;case"accessor":o=this.loadAccessor(t);break;case"bufferView":o=this.loadBufferView(t);break;case"buffer":o=this.loadBuffer(t);break;case"material":o=this.loadMaterial(t);break;case"texture":o=this.loadTexture(t);break;case"skin":o=this.loadSkin(t);break;case"animation":o=this.loadAnimation(t);break;case"camera":o=this.loadCamera(t);break;case"light":o=this.extensions[n.KHR_LIGHTS_PUNCTUAL].loadLight(t);break;default:throw new Error("Unknown type: "+e)}this.cache.add(r,o)}return o},U.prototype.getDependencies=function(e){var t=this.cache.get(e);if(!t){var n=this,r=this.json[e+("mesh"===e?"es":"s")]||[];t=Promise.all(r.map((function(t,r){return n.getDependency(e,r)}))),this.cache.add(e,t)}return t},U.prototype.loadBuffer=function(e){var t=this.json.buffers[e],r=this.fileLoader;if(t.type&&"arraybuffer"!==t.type)throw new Error("THREE.GLTFLoader: "+t.type+" buffer type is not supported.");if(void 0===t.uri&&0===e)return Promise.resolve(this.extensions[n.KHR_BINARY_GLTF].body);var o=this.options;return new Promise((function(e,n){r.load(I(t.uri,o.path),e,void 0,(function(){n(new Error('THREE.GLTFLoader: Failed to load buffer "'+t.uri+'".'))}))}))},U.prototype.loadBufferView=function(e){var t=this.json.bufferViews[e];return this.getDependency("buffer",t.buffer).then((function(e){var n=t.byteLength||0,r=t.byteOffset||0;return e.slice(r,r+n)}))},U.prototype.loadAccessor=function(e){var t=this,n=this.json,o=this.json.accessors[e];if(void 0===o.bufferView&&void 0===o.sparse)return Promise.resolve(null);var i=[];return void 0!==o.bufferView?i.push(this.getDependency("bufferView",o.bufferView)):i.push(null),void 0!==o.sparse&&(i.push(this.getDependency("bufferView",o.sparse.indices.bufferView)),i.push(this.getDependency("bufferView",o.sparse.values.bufferView))),Promise.all(i).then((function(e){var i,a,c=e[0],u=k[o.type],s=S[o.componentType],l=s.BYTES_PER_ELEMENT,f=l*u,p=o.byteOffset||0,d=void 0!==o.bufferView?n.bufferViews[o.bufferView].byteStride:void 0,h=!0===o.normalized;if(d&&d!==f){var v=Math.floor(p/d),y="InterleavedBuffer:"+o.bufferView+":"+o.componentType+":"+v+":"+o.count,m=t.cache.get(y);m||(i=new s(c,v*d,o.count*d/l),m=new r.InterleavedBuffer(i,d/l),t.cache.add(y,m)),a=new r.InterleavedBufferAttribute(m,u,p%d/l,h)}else i=null===c?new s(o.count*u):new s(c,p,o.count*u),a=new r.BufferAttribute(i,u,h);if(void 0!==o.sparse){var g=k.SCALAR,b=S[o.sparse.indices.componentType],O=o.sparse.indices.byteOffset||0,w=o.sparse.values.byteOffset||0,_=new b(e[1],O,o.sparse.count*g),x=new s(e[2],w,o.sparse.count*u);null!==c&&(a=new r.BufferAttribute(a.array.slice(),a.itemSize,a.normalized));for(var E=0,C=_.length;E<C;E++){var j=_[E];if(a.setX(j,x[E*u]),u>=2&&a.setY(j,x[E*u+1]),u>=3&&a.setZ(j,x[E*u+2]),u>=4&&a.setW(j,x[E*u+3]),u>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return a}))},U.prototype.loadTexture=function(e){var t,o=this,i=this.json,a=this.options,c=this.textureLoader,u=self.URL||self.webkitURL,s=i.textures[e],l=s.extensions||{},f=(t=l[n.MSFT_TEXTURE_DDS]?i.images[l[n.MSFT_TEXTURE_DDS].source]:i.images[s.source]).uri,p=!1;return void 0!==t.bufferView&&(f=o.getDependency("bufferView",t.bufferView).then((function(e){p=!0;var n=new Blob([e],{type:t.mimeType});return f=u.createObjectURL(n)}))),Promise.resolve(f).then((function(e){var t=a.manager.getHandler(e);return t||(t=l[n.MSFT_TEXTURE_DDS]?o.extensions[n.MSFT_TEXTURE_DDS].ddsLoader:c),new Promise((function(n,r){t.load(I(e,a.path),n,void 0,r)}))})).then((function(e){!0===p&&u.revokeObjectURL(f),e.flipY=!1,s.name&&(e.name=s.name),t.mimeType in N&&(e.format=N[t.mimeType]);var n=(i.samplers||{})[s.sampler]||{};return e.magFilter=C[n.magFilter]||r.LinearFilter,e.minFilter=C[n.minFilter]||r.LinearMipmapLinearFilter,e.wrapS=j[n.wrapS]||r.RepeatWrapping,e.wrapT=j[n.wrapT]||r.RepeatWrapping,e}))},U.prototype.assignTexture=function(e,t,o){var i=this;return this.getDependency("texture",o.index).then((function(a){if(!a.isCompressedTexture)switch(t){case"aoMap":case"emissiveMap":case"metalnessMap":case"normalMap":case"roughnessMap":a.format=r.RGBFormat}if(void 0===o.texCoord||0==o.texCoord||"aoMap"===t&&1==o.texCoord||console.warn("THREE.GLTFLoader: Custom UV set "+o.texCoord+" for texture "+t+" not yet supported."),i.extensions[n.KHR_TEXTURE_TRANSFORM]){var c=void 0!==o.extensions?o.extensions[n.KHR_TEXTURE_TRANSFORM]:void 0;c&&(a=i.extensions[n.KHR_TEXTURE_TRANSFORM].extendTexture(a,c))}e[t]=a}))},U.prototype.assignFinalMaterial=function(e){var t=e.geometry,n=e.material,o=void 0!==t.attributes.tangent,i=void 0!==t.attributes.color,a=void 0===t.attributes.normal,c=!0===e.isSkinnedMesh,u=Object.keys(t.morphAttributes).length>0,s=u&&void 0!==t.morphAttributes.normal;if(e.isPoints){var l="PointsMaterial:"+n.uuid,f=this.cache.get(l);f||(f=new r.PointsMaterial,r.Material.prototype.copy.call(f,n),f.color.copy(n.color),f.map=n.map,f.sizeAttenuation=!1,this.cache.add(l,f)),n=f}else if(e.isLine){l="LineBasicMaterial:"+n.uuid;var p=this.cache.get(l);p||(p=new r.LineBasicMaterial,r.Material.prototype.copy.call(p,n),p.color.copy(n.color),this.cache.add(l,p)),n=p}if(o||i||a||c||u){l="ClonedMaterial:"+n.uuid+":";n.isGLTFSpecularGlossinessMaterial&&(l+="specular-glossiness:"),c&&(l+="skinning:"),o&&(l+="vertex-tangents:"),i&&(l+="vertex-colors:"),a&&(l+="flat-shading:"),u&&(l+="morph-targets:"),s&&(l+="morph-normals:");var d=this.cache.get(l);d||(d=n.clone(),c&&(d.skinning=!0),o&&(d.vertexTangents=!0),i&&(d.vertexColors=!0),a&&(d.flatShading=!0),u&&(d.morphTargets=!0),s&&(d.morphNormals=!0),this.cache.add(l,d)),n=d}n.aoMap&&void 0===t.attributes.uv2&&void 0!==t.attributes.uv&&t.setAttribute("uv2",new r.BufferAttribute(t.attributes.uv.array,2)),n.normalScale&&!o&&(n.normalScale.y=-n.normalScale.y),n.clearcoatNormalScale&&!o&&(n.clearcoatNormalScale.y=-n.clearcoatNormalScale.y),e.material=n},U.prototype.loadMaterial=function(e){var t,o=this.json,i=this.extensions,a=o.materials[e],c={},u=a.extensions||{},s=[];if(u[n.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]){var l=i[n.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS];t=l.getMaterialType(),s.push(l.extendParams(c,a,this))}else if(u[n.KHR_MATERIALS_UNLIT]){var f=i[n.KHR_MATERIALS_UNLIT];t=f.getMaterialType(),s.push(f.extendParams(c,a,this))}else{t=r.MeshStandardMaterial;var p=a.pbrMetallicRoughness||{};if(c.color=new r.Color(1,1,1),c.opacity=1,Array.isArray(p.baseColorFactor)){var d=p.baseColorFactor;c.color.fromArray(d),c.opacity=d[3]}void 0!==p.baseColorTexture&&s.push(this.assignTexture(c,"map",p.baseColorTexture)),c.metalness=void 0!==p.metallicFactor?p.metallicFactor:1,c.roughness=void 0!==p.roughnessFactor?p.roughnessFactor:1,void 0!==p.metallicRoughnessTexture&&(s.push(this.assignTexture(c,"metalnessMap",p.metallicRoughnessTexture)),s.push(this.assignTexture(c,"roughnessMap",p.metallicRoughnessTexture)))}!0===a.doubleSided&&(c.side=r.DoubleSide);var v=a.alphaMode||A;if(v===R?(c.transparent=!0,c.depthWrite=!1):(c.transparent=!1,v===L&&(c.alphaTest=void 0!==a.alphaCutoff?a.alphaCutoff:.5)),void 0!==a.normalTexture&&t!==r.MeshBasicMaterial&&(s.push(this.assignTexture(c,"normalMap",a.normalTexture)),c.normalScale=new r.Vector2(1,1),void 0!==a.normalTexture.scale&&c.normalScale.set(a.normalTexture.scale,a.normalTexture.scale)),void 0!==a.occlusionTexture&&t!==r.MeshBasicMaterial&&(s.push(this.assignTexture(c,"aoMap",a.occlusionTexture)),void 0!==a.occlusionTexture.strength&&(c.aoMapIntensity=a.occlusionTexture.strength)),void 0!==a.emissiveFactor&&t!==r.MeshBasicMaterial&&(c.emissive=(new r.Color).fromArray(a.emissiveFactor)),void 0!==a.emissiveTexture&&t!==r.MeshBasicMaterial&&s.push(this.assignTexture(c,"emissiveMap",a.emissiveTexture)),u[n.KHR_MATERIALS_CLEARCOAT]){var y=i[n.KHR_MATERIALS_CLEARCOAT];t=y.getMaterialType(),s.push(y.extendParams(c,{extensions:u},this))}return Promise.all(s).then((function(){var e;return e=t===h?i[n.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(c):new t(c),a.name&&(e.name=a.name),e.map&&(e.map.encoding=r.sRGBEncoding),e.emissiveMap&&(e.emissiveMap.encoding=r.sRGBEncoding),F(e,a),a.extensions&&D(i,e,a),e}))},U.prototype.loadGeometries=function(e){var t=this,o=this.extensions,i=this.primitiveCache;function a(e){return o[n.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then((function(n){return V(n,e,t)}))}for(var c,u,s=[],l=0,f=e.length;l<f;l++){var p,d=e[l],h=(u=void 0,(u=(c=d).extensions&&c.extensions[n.KHR_DRACO_MESH_COMPRESSION])?"draco:"+u.bufferView+":"+u.indices+":"+B(u.attributes):c.indices+":"+B(c.attributes)+":"+c.mode),v=i[h];if(v)s.push(v.promise);else p=d.extensions&&d.extensions[n.KHR_DRACO_MESH_COMPRESSION]?a(d):V(new r.BufferGeometry,d,t),i[h]={primitive:d,promise:p},s.push(p)}return Promise.all(s)},U.prototype.loadMesh=function(e){for(var t,n=this,o=this.json.meshes[e],i=o.primitives,a=[],c=0,u=i.length;c<u;c++){var s=void 0===i[c].material?(void 0===(t=this.cache).DefaultMaterial&&(t.DefaultMaterial=new r.MeshStandardMaterial({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:r.FrontSide})),t.DefaultMaterial):this.getDependency("material",i[c].material);a.push(s)}return a.push(n.loadGeometries(i)),Promise.all(a).then((function(t){for(var a=t.slice(0,t.length-1),c=t[t.length-1],u=[],s=0,l=c.length;s<l;s++){var f,p=c[s],d=i[s],h=a[s];if(d.mode===_||d.mode===x||d.mode===E||void 0===d.mode)!0!==(f=!0===o.isSkinnedMesh?new r.SkinnedMesh(p,h):new r.Mesh(p,h)).isSkinnedMesh||f.geometry.attributes.skinWeight.normalized||f.normalizeSkinWeights(),d.mode===x?f.geometry=H(f.geometry,r.TriangleStripDrawMode):d.mode===E&&(f.geometry=H(f.geometry,r.TriangleFanDrawMode));else if(d.mode===b)f=new r.LineSegments(p,h);else if(d.mode===w)f=new r.Line(p,h);else if(d.mode===O)f=new r.LineLoop(p,h);else{if(d.mode!==g)throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+d.mode);f=new r.Points(p,h)}Object.keys(f.geometry.morphAttributes).length>0&&z(f,o),f.name=o.name||"mesh_"+e,c.length>1&&(f.name+="_"+s),F(f,o),n.assignFinalMaterial(f),u.push(f)}if(1===u.length)return u[0];var v=new r.Group;for(s=0,l=u.length;s<l;s++)v.add(u[s]);return v}))},U.prototype.loadCamera=function(e){var t,n=this.json.cameras[e],o=n[n.type];if(o)return"perspective"===n.type?t=new r.PerspectiveCamera(r.MathUtils.radToDeg(o.yfov),o.aspectRatio||1,o.znear||1,o.zfar||2e6):"orthographic"===n.type&&(t=new r.OrthographicCamera(o.xmag/-2,o.xmag/2,o.ymag/2,o.ymag/-2,o.znear,o.zfar)),n.name&&(t.name=n.name),F(t,n),Promise.resolve(t);console.warn("THREE.GLTFLoader: Missing camera parameters.")},U.prototype.loadSkin=function(e){var t=this.json.skins[e],n={joints:t.joints};return void 0===t.inverseBindMatrices?Promise.resolve(n):this.getDependency("accessor",t.inverseBindMatrices).then((function(e){return n.inverseBindMatrices=e,n}))},U.prototype.loadAnimation=function(e){for(var t=this.json.animations[e],n=[],o=[],i=[],a=[],c=[],u=0,s=t.channels.length;u<s;u++){var l=t.channels[u],f=t.samplers[l.sampler],p=l.target,d=void 0!==p.node?p.node:p.id,h=void 0!==t.parameters?t.parameters[f.input]:f.input,v=void 0!==t.parameters?t.parameters[f.output]:f.output;n.push(this.getDependency("node",d)),o.push(this.getDependency("accessor",h)),i.push(this.getDependency("accessor",v)),a.push(f),c.push(p)}return Promise.all([Promise.all(n),Promise.all(o),Promise.all(i),Promise.all(a),Promise.all(c)]).then((function(n){for(var o=n[0],i=n[1],a=n[2],c=n[3],u=n[4],s=[],l=0,f=o.length;l<f;l++){var p=o[l],d=i[l],h=a[l],v=c[l],y=u[l];if(void 0!==p){var g;switch(p.updateMatrix(),p.matrixAutoUpdate=!0,T[y.path]){case T.weights:g=r.NumberKeyframeTrack;break;case T.rotation:g=r.QuaternionKeyframeTrack;break;case T.position:case T.scale:default:g=r.VectorKeyframeTrack}var b=p.name?p.name:p.uuid,O=void 0!==v.interpolation?M[v.interpolation]:r.InterpolateLinear,w=[];T[y.path]===T.weights?p.traverse((function(e){!0===e.isMesh&&e.morphTargetInfluences&&w.push(e.name?e.name:e.uuid)})):w.push(b);var _=h.array;if(h.normalized){var x;if(_.constructor===Int8Array)x=1/127;else if(_.constructor===Uint8Array)x=1/255;else if(_.constructor==Int16Array)x=1/32767;else{if(_.constructor!==Uint16Array)throw new Error("THREE.GLTFLoader: Unsupported output accessor component type.");x=1/65535}for(var E=new Float32Array(_.length),S=0,C=_.length;S<C;S++)E[S]=_[S]*x;_=E}for(S=0,C=w.length;S<C;S++){var j=new g(w[S]+"."+T[y.path],d.array,_,O);"CUBICSPLINE"===v.interpolation&&(j.createInterpolant=function(e){return new m(this.times,this.values,this.getValueSize()/3,e)},j.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0),s.push(j)}}}var k=t.name?t.name:"animation_"+e;return new r.AnimationClip(k,void 0,s)}))},U.prototype.loadNode=function(e){var t,o=this.json,i=this.extensions,a=this,c=o.meshReferences,u=o.meshUses,s=o.nodes[e];return(t=[],void 0!==s.mesh&&t.push(a.getDependency("mesh",s.mesh).then((function(e){var t;if(c[s.mesh]>1){var n=u[s.mesh]++;(t=e.clone()).name+="_instance_"+n}else t=e;return void 0!==s.weights&&t.traverse((function(e){if(e.isMesh)for(var t=0,n=s.weights.length;t<n;t++)e.morphTargetInfluences[t]=s.weights[t]})),t}))),void 0!==s.camera&&t.push(a.getDependency("camera",s.camera)),s.extensions&&s.extensions[n.KHR_LIGHTS_PUNCTUAL]&&void 0!==s.extensions[n.KHR_LIGHTS_PUNCTUAL].light&&t.push(a.getDependency("light",s.extensions[n.KHR_LIGHTS_PUNCTUAL].light)),Promise.all(t)).then((function(e){var t;if((t=!0===s.isBone?new r.Bone:e.length>1?new r.Group:1===e.length?e[0]:new r.Object3D)!==e[0])for(var n=0,o=e.length;n<o;n++)t.add(e[n]);if(s.name&&(t.userData.name=s.name,t.name=r.PropertyBinding.sanitizeNodeName(s.name)),F(t,s),s.extensions&&D(i,t,s),void 0!==s.matrix){var a=new r.Matrix4;a.fromArray(s.matrix),t.applyMatrix4(a)}else void 0!==s.translation&&t.position.fromArray(s.translation),void 0!==s.rotation&&t.quaternion.fromArray(s.rotation),void 0!==s.scale&&t.scale.fromArray(s.scale);return t}))},U.prototype.loadScene=function(){function e(t,n,o,i){var a=o.nodes[t];return i.getDependency("node",t).then((function(e){return void 0===a.skin?e:i.getDependency("skin",a.skin).then((function(e){for(var n=[],r=0,o=(t=e).joints.length;r<o;r++)n.push(i.getDependency("node",t.joints[r]));return Promise.all(n)})).then((function(n){return e.traverse((function(e){if(e.isMesh){for(var o=[],i=[],a=0,c=n.length;a<c;a++){var u=n[a];if(u){o.push(u);var s=new r.Matrix4;void 0!==t.inverseBindMatrices&&s.fromArray(t.inverseBindMatrices.array,16*a),i.push(s)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',t.joints[a])}e.bind(new r.Skeleton(o,i),e.matrixWorld)}})),e}));var t})).then((function(t){n.add(t);var r=[];if(a.children)for(var c=a.children,u=0,s=c.length;u<s;u++){var l=c[u];r.push(e(l,t,o,i))}return Promise.all(r)}))}return function(t){var n=this.json,o=this.extensions,i=this.json.scenes[t],a=new r.Group;i.name&&(a.name=i.name),F(a,i),i.extensions&&D(o,a,i);for(var c=i.nodes||[],u=[],s=0,l=c.length;s<l;s++)u.push(e(c[s],a,n,this));return Promise.all(u).then((function(){return a}))}}(),e}()},L6QZ:function(e,t){function n(e){var t=e.target||e.srcElement;t.__resizeRAF__&&cancelAnimationFrame(t.__resizeRAF__),t.__resizeRAF__=requestAnimationFrame((function(){var n=t.__resizeTrigger__,r=n&&n.__resizeListeners__;r&&r.forEach((function(t){t.call(n,e)}))}))}var r=function(e,t){var r,o=this.document,i=o.attachEvent;if("undefined"!=typeof navigator&&(r=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/)),!e.__resizeListeners__)if(e.__resizeListeners__=[],i)e.__resizeTrigger__=e,e.attachEvent("onresize",n);else{"static"===getComputedStyle(e).position&&(e.style.position="relative");var a=e.__resizeTrigger__=o.createElement("object");a.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),a.setAttribute("class","resize-sensor"),a.setAttribute("tabindex","-1"),a.setAttribute("title",""),a.__resizeElement__=e,a.onload=function(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",n)},a.type="text/html",r&&e.appendChild(a),a.data="about:blank",r||e.appendChild(a)}e.__resizeListeners__.push(t)};e.exports="undefined"==typeof window?r:r.bind(window),e.exports.unbind=function(e,t){var r=document.attachEvent,o=e.__resizeListeners__||[];if(t){var i=o.indexOf(t);-1!==i&&o.splice(i,1)}else o=e.__resizeListeners__=[];if(!o.length){if(r)e.detachEvent("onresize",n);else if(e.__resizeTrigger__){var a=e.__resizeTrigger__.contentDocument,c=a&&a.defaultView;c&&(c.removeEventListener("resize",n),delete c.__resizeTrigger__),e.__resizeTrigger__=!e.removeChild(e.__resizeTrigger__)}delete e.__resizeListeners__}}},L6um:function(e,t){e.exports=function(e){return this.__data__.has(e)}},"LB+V":function(e,t,n){"use strict";var r=n("DE/k"),o=n("gDU4");t.a=function(e){if(!Object(o.a)(e))return!1;var t=Object(r.a)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},LD01:function(e,t,n){var r=n("0bJh"),o=Math.floor,i=function(e,t){var n=e.length,u=o(n/2);return n<8?a(e,t):c(e,i(r(e,0,u),t),i(r(e,u),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},c=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,c=0;a<o||c<i;)e[a+c]=a<o&&c<i?r(t[a],n[c])<=0?t[a++]:n[c++]:a<o?t[a++]:n[c++];return e};e.exports=i},LL3N:function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},LNVR:function(e,t,n){"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function c(e){return 1===e.length?"0"+e:String(e)}n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return c}))},LNdp:function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r,o,i,a,c,u,s,l,f,p,d,h=n("pufz"),v=n("zEXi"),y=n("s6Xb"),m=(n("qzOT"),n("yObT")),g=n("k0uE"),b={light:"mapbox://styles/zcxduo/ck2ypyb1r3q9o1co1766dex29",dark:"mapbox://styles/zcxduo/ck241p6413s0b1cpayzldv7x7",normal:"mapbox://styles/mapbox/streets-v11",blank:{version:8,sources:{},layers:[{id:"background",type:"background",layout:{visibility:"none"}}]}};function O(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var E={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},S=(r=Object(y.injectable)(),o=Object(y.inject)(h.TYPES.MapConfig),i=Object(y.inject)(h.TYPES.IGlobalConfigService),a=Object(y.inject)(h.TYPES.ICoordinateSystemService),c=Object(y.inject)(h.TYPES.IEventEmitter),r((l=x((s=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),_(this,"version",g.a.L7MAP),_(this,"simpleMapCoord",new m.a),_(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),O(this,"config",l,this),O(this,"configService",f,this),O(this,"coordinateSystemService",p,this),O(this,"eventEmitter",d,this),_(this,"handleCameraChanged",(function(e){var n=t.map.getCenter(),r=n.lat,o=n.lng;t.emit("mapchange"),t.viewport.syncWithMapCamera({bearing:t.map.getBearing(),center:[o,r],viewportHeight:t.map.transform.height,pitch:t.map.getPitch(),viewportWidth:t.map.transform.width,zoom:t.map.getZoom(),cameraHeight:0}),t.updateCoordinateSystemService(),t.cameraChangedCallback(t.viewport)}))}var t,n,r;return t=e,(n=[{key:"setBgColor",value:function(e){this.bgColor=e}},{key:"addMarkerContainer",value:function(){var e=this.map.getCanvasContainer();this.markerContainer=v.f.create("div","l7-marker-container",e),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"getOverlayContainer",value:function(){}},{key:"on",value:function(e,t){-1!==h.MapServiceEvent.indexOf(e)?this.eventEmitter.on(e,t):this.map.on(E[e]||e,t)}},{key:"off",value:function(e,t){this.map.off(E[e]||e,t),this.eventEmitter.off(e,t)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){if(this.version===g.a.SIMPLE)return this.simpleMapCoord.getSize();var e=this.map.transform;return[e.width,e.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(e){return this.map.setZoom(e)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(e){this.map.setCenter(e)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return this.map.getBearing()}},{key:"getBounds",value:function(){return this.map.getBounds().toArray()}},{key:"getMinZoom",value:function(){return this.map.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.map.getMaxZoom()}},{key:"setRotation",value:function(e){this.map.setBearing(e)}},{key:"zoomIn",value:function(e,t){this.map.zoomIn(e,t)}},{key:"zoomOut",value:function(e,t){this.map.zoomOut(e,t)}},{key:"setPitch",value:function(e){return this.map.setPitch(e)}},{key:"panTo",value:function(e){this.map.panTo(e)}},{key:"panBy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.panTo([e,t])}},{key:"fitBounds",value:function(e,t){this.map.fitBounds(e,t)}},{key:"setMaxZoom",value:function(e){this.map.setMaxZoom(e)}},{key:"setMinZoom",value:function(e){this.map.setMinZoom(e)}},{key:"setMapStatus",value:function(e){!0===e.doubleClickZoom&&this.map.doubleClickZoom.enable(),!1===e.doubleClickZoom&&this.map.doubleClickZoom.disable(),!1===e.dragEnable&&this.map.dragPan.disable(),!0===e.dragEnable&&this.map.dragPan.enable(),!1===e.rotateEnable&&this.map.dragRotate.disable(),!0===e.dragEnable&&this.map.dragRotate.enable(),!1===e.keyboardEnable&&this.map.keyboard.disable(),!0===e.keyboardEnable&&this.map.keyboard.enable(),!1===e.zoomEnable&&this.map.scrollZoom.disable(),!0===e.zoomEnable&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(e,t){this.map.flyTo({zoom:e,center:t})}},{key:"setMapStyle",value:function(e){this.map.setStyle(this.getMapStyle(e))}},{key:"meterToCoord",value:function(e,t){return 1}},{key:"pixelToLngLat",value:function(e){return this.map.unproject(e)}},{key:"lngLatToPixel",value:function(e){return this.map.project(e)}},{key:"containerToLngLat",value:function(e){return this.map.unproject(e)}},{key:"lngLatToContainer",value:function(e){return this.map.project(e)}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.eventEmitter).emit.apply(t,[e].concat(r))}},{key:"once",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.eventEmitter).once.apply(t,[e].concat(r))}},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"exportMap",value:function(e){var t=this.map.getCanvas();return"jpg"===e?null==t?void 0:t.toDataURL("image/jpeg"):null==t?void 0:t.toDataURL("image/png")}},{key:"onCameraChanged",value:function(e){this.cameraChangedCallback=e}},{key:"creatMapContainer",value:function(e){var t=e;return"string"==typeof e&&(t=document.getElementById(e)),t}},{key:"updateView",value:function(e){this.emit("mapchange"),this.viewport.syncWithMapCamera({bearing:e.bearing,center:e.center,viewportHeight:e.viewportHeight,pitch:e.pitch,viewportWidth:e.viewportWidth,zoom:e.zoom,cameraHeight:0}),this.updateCoordinateSystemService(),this.cameraChangedCallback(this.viewport)}},{key:"updateCoordinateSystemService",value:function(){var e=this.config.offsetCoordinate,t=void 0===e||e;this.viewport.getZoom()>12&&t?this.coordinateSystemService.setCoordinateSystem(h.CoordinateSystem.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(h.CoordinateSystem.LNGLAT)}},{key:"getMapStyle",value:function(e){return"string"!=typeof e?e:b[e]?b[e]:e}}])&&w(t.prototype,n),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"config",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=x(s.prototype,"configService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=x(s.prototype,"coordinateSystemService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=x(s.prototype,"eventEmitter",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=s))||u)},LOVC:function(e,t,n){var r=n("ct80"),o=n("POgt"),i=n("eiXn"),a=n("1Mu/"),c=n("0zFS").CONFIGURABLE,u=n("32/0"),s=n("zc29"),l=s.enforce,f=s.get,p=Object.defineProperty,d=a&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),h=String(String).split("String"),v=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||c&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),d&&n&&i(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=l(e);return i(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=v((function(){return o(this)&&f(this).source||u(this)}),"toString")},LWRl:function(e,t,n){var r=n("ERkP");function o(e){return r.createElement("svg",e,r.createElement("path",{d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"}))}o.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24"},e.exports=o,o.default=o},LaGA:function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&u()}function c(){i(a)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(c,t);o=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),s=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},l=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},f=m(0,0,0,0);function p(e){return parseFloat(e)||0}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=l(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=p(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=p(r.width),u=p(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=d(r,"left","right")+i),Math.round(u+a)!==n&&(u-=d(r,"top","bottom")+a)),!function(e){return e===l(e).document.documentElement}(e)){var s=Math.round(c+i)-t,h=Math.round(u+a)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(h)&&(u-=h)}return m(o.left,o.top,c,u)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof l(e).SVGGraphicsElement}:function(e){return e instanceof l(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return r?v(e)?function(e){var t=e.getBBox();return m(0,0,t.width,t.height)}(e):h(e):f}function m(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,r,o,i,a,c,u,l=(r=(n=t).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(c.prototype),s(u,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),u);s(this,{target:e,contentRect:l})},O=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new n,_=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new O(t,n,this);w.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){_.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));var x=void 0!==o.ResizeObserver?o.ResizeObserver:_;t.default=x}.call(this,n("fRV1"))},LdEA:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},LdeS:function(e,t,n){var r=n("4Br2"),o=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw o("Wrong offset");return n}},LeKB:function(e,t,n){e.exports=[{plugin:n("GzGk"),options:{plugins:[],offsetY:0,className:"anchor"}},{plugin:n("6RQ8"),options:{plugins:[],name:"@antv/l7-site",short_name:"@antv/l7-site",start_url:"/",background_color:"#873bf4",theme_color:"#873bf4",display:"minimal-ui",icon:"/Users/yiqianyao/workspace/L7-dumi/packages/site/node_modules/@antv/gatsby-theme-antv/site/images/favicon.png",legacy:!0,theme_color_in_head:!0,cache_busting_mode:"query",crossOrigin:"anonymous",include_favicon:!0,cacheDigest:"9772447a8d07a8fe19894b5176c6cb0d"}},{plugin:n("8LZx"),options:{plugins:[]}},{plugin:n("rMMm"),options:{plugins:[]}},{plugin:n("YzpX"),options:{plugins:[],component:"/Users/yiqianyao/workspace/L7-dumi/packages/site/node_modules/@antv/gatsby-theme-antv/site/layouts/layout.tsx"}},{plugin:n("rMMm"),options:{plugins:[],color:"#873bf4"}},{plugin:n("ZIJ7"),options:{plugins:[],trackingIds:["UA-148148901-7"]}},{plugin:n("HuGu"),options:{plugins:[],GATrackingId:"UA-148148901-7"}},{plugin:n("GddB"),options:{plugins:[]}}]},Lk4S:function(e,t,n){e.exports={products:"Product-module--products--wZmFW",container:"Product-module--container--Z4zSo",show:"Product-module--show--MAF57",mask:"Product-module--mask--21wy-",product:"Product-module--product--1pyvr",productContent:"Product-module--productContent--3xt59",productSlogan:"Product-module--productSlogan--1aiWR",productDescription:"Product-module--productDescription--3dOob",productLinks:"Product-module--productLinks--2gCa8"}},LmOH:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},LoNN:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingWhenSyntax=void 0;var r=n("dqzZ"),o=n("BOOC"),i=function(){function e(e){this._binding=e}return e.prototype.when=function(e){return this._binding.constraint=e,new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetNamed=function(e){return this._binding.constraint=o.namedConstraint(e),new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){return null!==e.target&&!e.target.isNamed()&&!e.target.isTagged()},new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=o.taggedConstraint(e)(t),new r.BindingOnSyntax(this._binding)},e.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return o.typeConstraint(e)(t.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return o.namedConstraint(e)(t.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(n){return o.taggedConstraint(e)(t)(n.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,o.typeConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,o.typeConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,o.namedConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,o.namedConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(n){return o.traverseAncerstors(n,o.taggedConstraint(e)(t))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(n){return!o.traverseAncerstors(n,o.taggedConstraint(e)(t))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,e)},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,e)},new r.BindingOnSyntax(this._binding)},e}();t.BindingWhenSyntax=i},LtXa:function(e,t,n){var r=n("c72w"),o=n("wC3K");e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var c=-1,u=t.length;++c<u;){var s=t[c],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?o(n,s,l):r(n,s,l)}return n}},LxhF:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="QuestionCircleOutlined";t.a=o.forwardRef(c)},LzM7:function(e,t,n){var r=n("6QIk");e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},M1iK:function(e,t,n){"use strict";var r=n("bOZ7"),o=n("Nogd"),i=n("jvEv"),a=i.union,c=i.derivations,u=n("USM+"),s=n("0C76"),l=n("1ims"),f=n("03hK"),p=c.equality,d=c.debugRepresentation,h=c.serialization,v=a("folktale:Validation",{Failure:function(e){return{value:e}},Success:function(e){return{value:e}}}).derive(p,d,h),y=v.Success,m=v.Failure,g=r(v);l(m.prototype,{get value(){throw new TypeError("`value` can’t be accessed in an abstract instance of Validation.Failure")}}),l(y.prototype,{get value(){throw new TypeError("`value` can’t be accessed in an abstract instance of Validation.Success")}}),s(v,{map:{Failure:function(e){return o("Validation.Failure#map",e),this},Success:function(e){return o("Validation.Success#map",e),y(e(this.value))}},apply:{Failure:function(e){return g("Failure#apply",e),m.hasInstance(e)?m(this.value.concat(e.value)):this},Success:function(e){return g("Success#apply",e),m.hasInstance(e)?e:e.map(this.value)}},unsafeGet:{Failure:function(){throw new TypeError("Can't extract the value of a Failure.\n\n Failure does not contain a normal value - it contains an error.\n You might consider switching from Validation#get to Validation#getOrElse, or some other method\n that is not partial.\n ")},Success:function(){return this.value}},getOrElse:{Failure:function(e){return e},Success:function(e){return this.value}},orElse:{Failure:function(e){return o("Validation.Failure#orElse",e),e(this.value)},Success:function(e){return o("Validation.Success#orElse",e),this}},concat:{Failure:function(e){return g("Validation.Failure#concat",e),m.hasInstance(e)?m(this.value.concat(e.value)):this},Success:function(e){return g("Validation.Success#concat",e),e}},fold:{Failure:function(e,t){return o("Validation.Failure#fold",e),o("Validation.Failure#fold",t),e(this.value)},Success:function(e,t){return o("Validation.Success#fold",e),o("Validation.Success#fold",t),t(this.value)}},swap:{Failure:function(){return y(this.value)},Success:function(){return m(this.value)}},bimap:{Failure:function(e,t){return o("Validation.Failure#fold",e),o("Validation.Failure#fold",t),m(e(this.value))},Success:function(e,t){return o("Validation.Success#fold",e),o("Validation.Success#fold",t),y(t(this.value))}},mapFailure:{Failure:function(e){return o("Validation.Failure#mapFailure",e),m(e(this.value))},Success:function(e){return o("Validation.Failure#mapFailure",e),this}}}),Object.assign(v,{of:function(e){return y(e)},get:function(){return f("`.get()` is deprecated, and has been renamed to `.unsafeGet()`."),this.unsafeGet()},merge:function(){return this.value},toResult:function(){return n("OHlR")(this)},toMaybe:function(){return n("cx1T")(this)}}),u(y.prototype),u(m.prototype),u(v),e.exports=v},M4fI:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return f}));var r=n("K/oH");function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=100,c=36,u=40;function s(e){return e/180*Math.acos(-1)}function l(e){var t=s(e[0])+Math.PI/2,n=s(e[1]),r=a+.4*Math.random(),o=r*Math.cos(n)*Math.cos(t);return[r*Math.cos(n)*Math.sin(t),r*Math.sin(n),o]}function f(e,t){var n=r.b.create(),i=r.b.create(),a=r.d.fromValues(0,1,0),c=r.d.fromValues(0,0,0);e=void 0!==e?e:1;for(var u=2+(void 0!==(t=t||{}).segments?t.segments:32),s=2*u,l=[],f=[],p=[],d=[],h=[],v=[],y=0;y<=u;y++){for(var m=y/u,g=m*Math.PI,b=0;b<=s;b++){var O=b/s,w=O*Math.PI*2;r.b.identity(i),r.b.rotateZ(i,i,-g),r.b.identity(n),r.b.rotateY(n,n,w),r.d.transformMat4(c,a,i),r.d.transformMat4(c,c,n),r.d.scale(c,c,-e),p.push(c.slice()),d.push.apply(d,o(c.slice())),r.d.normalize(c,c),h.push.apply(h,o(c.slice())),v.push([O,1-m]),d.push(O,1-m)}if(y>0)for(var _=p.length,x=_-2*(s+1);x+s+2<_;x++)l.push([x,x+1,x+s+1]),f.push(x,x+1,x+s+1),l.push([x+s+1,x+1,x+s+2]),f.push(x+s+1,x+1,x+s+2)}return{cells:l,positions:p,uvs:v,positionsArr:d,indicesArr:f,normalArr:h}}},MF4t:function(e,t,n){var r=n("ERkP");function o(e){return r.createElement("svg",e,[r.createElement("title",{key:0},"logo"),r.createElement("desc",{key:1},"Created with Sketch."),r.createElement("defs",{key:2},[r.createElement("linearGradient",{id:"linearGradient-1",x1:".004%",x2:"100.131%",y1:"49.993%",y2:"49.993%",key:0},[r.createElement("stop",{offset:"0%",stopColor:"#6500FF",key:0}),r.createElement("stop",{offset:"16%",stopColor:"#6A09FF",key:1}),r.createElement("stop",{offset:"43%",stopColor:"#7623FF",key:2}),r.createElement("stop",{offset:"77%",stopColor:"#8A4CFF",key:3}),r.createElement("stop",{offset:"99%",stopColor:"#996BFF",key:4})]),r.createElement("linearGradient",{id:"linearGradient-2",x1:"50.004%",x2:"50.004%",y1:"100.012%",y2:"0%",key:1},[r.createElement("stop",{offset:"0%",stopColor:"#6500FF",key:0}),r.createElement("stop",{offset:"16%",stopColor:"#6909FF",key:1}),r.createElement("stop",{offset:"43%",stopColor:"#7523FF",key:2}),r.createElement("stop",{offset:"77%",stopColor:"#894CFF",key:3}),r.createElement("stop",{offset:"99%",stopColor:"#976BFF",key:4})]),r.createElement("linearGradient",{id:"linearGradient-3",x1:"49.854%",x2:"49.854%",y1:"100.255%",y2:"0%",key:2},[r.createElement("stop",{offset:"0%",stopColor:"#FF6E06",key:0}),r.createElement("stop",{offset:"28%",stopColor:"#FF770C",key:1}),r.createElement("stop",{offset:"75%",stopColor:"#FF911C",key:2}),r.createElement("stop",{offset:"100%",stopColor:"#FFA126",key:3})]),r.createElement("linearGradient",{id:"linearGradient-4",x1:"57351%",x2:"57351%",y1:"59860%",y2:"35023%",key:3},[r.createElement("stop",{offset:"0%",stopColor:"#FF6E06",key:0}),r.createElement("stop",{offset:"28%",stopColor:"#FF770C",key:1}),r.createElement("stop",{offset:"75%",stopColor:"#FF911C",key:2}),r.createElement("stop",{offset:"100%",stopColor:"#FFA126",key:3})])]),r.createElement("g",{id:"首页",fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",transform:"translate(-40.000000, -21.000000)",key:3},r.createElement("g",{id:"logo",fillRule:"nonzero",transform:"translate(40.000000, 21.000000)"},[r.createElement("g",{id:"text",fill:"#000",transform:"translate(40.000000, 4.000000)",key:0},[r.createElement("path",{id:"Shape",d:"M8.7405,1.2915 C8.51971803,0.727507979 7.97591631,0.356402076 7.37025,0.356402076 C6.76458369,0.356402076 6.22078197,0.727507979 6,1.2915 L0.0915,16.224 C0.303214856,16.7668034 0.833635444,17.1176139 1.416,17.1 C1.99787286,17.1149847 2.52631953,16.7624868 2.736,16.2195 L4.236,12.1845 L10.464,12.1845 L11.964,16.2195 C12.1824954,16.7696588 12.7145414,17.1308265 13.3065,17.1308265 C13.8984586,17.1308265 14.4305046,16.7696588 14.649,16.2195 L8.7405,1.2915 Z M4.875,10.3245 L7.3125,3.7755 L7.38,3.7755 L9.8175,10.3245 L4.875,10.3245 Z",key:0}),r.createElement("path",{id:"Shape",d:"M23.616,4.8675 C21.711,4.8675 20.3625,5.5605 19.6155,6.885 L19.5705,6.885 L19.5705,4.992 C19.3939707,4.49572722 18.9242345,4.16424813 18.3975,4.16424813 C17.8707655,4.16424813 17.4010293,4.49572722 17.2245,4.992 L17.2245,16.23 C17.3727212,16.7871906 17.8771818,17.1750009 18.45375,17.1750009 C19.0303182,17.1750009 19.5347788,16.7871906 19.683,16.23 L19.683,9.741 C19.683,7.971 20.907,6.792 22.7655,6.792 C24.5655,6.792 25.542,7.7445 25.542,9.4515 L25.542,16.23 C25.6902212,16.7871906 26.1946818,17.1750009 26.77125,17.1750009 C27.3478182,17.1750009 27.8522788,16.7871906 28.0005,16.23 L28.0005,9.03 C28.002,6.4395 26.3355,4.8675 23.616,4.8675 Z",key:1}),r.createElement("path",{id:"Shape",d:"M37.164,15.2175 C37.005,15.2385 36.5865,15.27 36.3255,15.27 C35.2935,15.27 34.818,14.82 34.818,13.842 L34.818,7.5555 L37.176,7.5555 C37.4674337,7.35650372 37.6417542,7.0263925 37.6417542,6.6735 C37.6417542,6.3206075 37.4674337,5.99049628 37.176,5.7915 L37.176,5.7795 L34.818,5.7795 L34.818,3.2625 L34.809,3.2625 C34.5697886,2.81087163 34.1005678,2.5284255 33.5895,2.5284255 C33.0784322,2.5284255 32.6092114,2.81087163 32.37,3.2625 L32.37,5.787 L30.669,5.787 L30.669,5.8035 C30.3813594,6.00305662 30.2097838,6.33091436 30.2097838,6.681 C30.2097838,7.03108564 30.3813594,7.35894338 30.669,7.5585 L32.37,7.5585 L32.37,14.0655 C32.37,16.239 33.3225,17.097 35.7825,17.097 C36.246017,17.1013951 36.708959,17.063235 37.1655,16.983 C37.4531479,16.7817619 37.6244786,16.4528028 37.6244786,16.10175 C37.6244786,15.7506972 37.4531479,15.4217381 37.1655,15.2205 L37.164,15.2175 Z",key:2}),r.createElement("path",{id:"Shape",d:"M53.9085,1.041 C53.6915775,0.484686746 53.1556096,0.118403837 52.5585,0.118403837 C51.9613904,0.118403837 51.4254225,0.484686746 51.2085,1.041 L46.7325,13.365 L46.665,13.365 L42.21,1.041 L42.219,1.041 C41.991677,0.479831031 41.4467137,0.112610372 40.84125,0.112610372 C40.2357863,0.112610372 39.690823,0.479831031 39.4635,1.041 L45.3,15.9735 C45.402,16.5915 45.9855,17.067 46.692,17.067 C47.3985,17.067 47.9805,16.593 48.084,15.9735 L53.9085,1.041 Z",key:3})]),r.createElement("g",{id:"Shape",key:1},[r.createElement("path",{fill:"url(#linearGradient-1)",d:"M1.96144278,0.00379393843 C1.93278766,0.00379393843 1.90413254,0.00379393843 1.87375812,0.00597764254 C1.82628614,0.00725146994 1.80317101,0.00888924802 1.78005588,0.0108909768 C1.73258391,0.015258385 1.70450189,0.0186249288 1.67661091,0.0226283864 C1.63448789,0.0291794987 1.61271,0.0329099932 1.59093211,0.0370954261 C1.53906635,0.0471950576 1.51213054,0.0529272809 1.48548128,0.0594783932 C1.453101,0.0676672836 1.4290307,0.0742183959 1.40524695,0.0810424713 C1.36006738,0.0949635849 1.34096397,0.101150747 1.32186056,0.107519884 C1.2750572,0.123715689 1.25079587,0.132814456 1.22672557,0.142459149 C1.184316,0.16001977 1.16769603,0.167116808 1.15107606,0.174395822 L1.12242094,0.187225084 C1.10331753,0.196323851 1.08421412,0.205422618 1.06511071,0.214521385 L1.03387663,0.230899166 C1.01811632,0.239361019 1.002356,0.247822873 0.986882238,0.256557689 L0.955934712,0.274573248 L0.917250303,0.29832103 L0.888595186,0.316882515 C0.869491775,0.329438814 0.850388363,0.342268075 0.831284952,0.3553703 L0.797758465,0.38075586 L0.76738404,0.40341179 L0.734717207,0.42879735 L0.706062089,0.452545133 C0.686958678,0.468013037 0.66871492,0.483844892 0.651330815,0.500040697 L0.627833619,0.521331812 C0.616562606,0.531704407 0.605482628,0.542258976 0.594593683,0.552995522 L0.57424855,0.573194785 C0.550942388,0.596669604 0.528304845,0.620690349 0.506335922,0.64525702 C0.4888563,0.66518332 0.477967356,0.677739619 0.467364963,0.69056888 L0.451891199,0.709403328 C0.441288806,0.722505553 0.430686412,0.73669963 0.420657121,0.748710002 C0.392766141,0.78592396 0.373089627,0.813220261 0.354177249,0.840698538 L0.343288305,0.856803356 C0.333736599,0.871179408 0.324184893,0.885737435 0.314633188,0.900477438 L0.304317345,0.917401145 L0.296293912,0.931049295 L4.0804887,3.1453528 L4.88168578,4 C4.79792689,3.87330151 4.79075687,3.71385419 4.86283506,3.58079687 C4.93491326,3.44773955 5.07548957,3.36091705 5.23242441,3.35253173 L18.126081,3.35253173 C18.1716426,3.35580729 18.2172042,3.35799099 18.2636255,3.35799099 C19.2247383,3.34437937 19.997179,2.59972948 19.9999923,1.68409514 C20.0028056,0.768460793 19.234954,0.0195165058 18.2739414,0.000545926027 L1.96144278,0.00379393843 Z",key:0}),r.createElement("path",{fill:"url(#linearGradient-2)",d:"M22.7438388,11.3151867 L16.3508566,22.3257033 C16.274965,22.4547197 16.1378066,22.5359862 15.9875806,22.5409448 C15.8373546,22.5459034 15.6950786,22.4738603 15.6107503,22.3501325 L11.5484958,15.3552589 C11.5151833,15.2756059 11.4759174,15.1985462 11.4310276,15.1247266 L4.67293385,3.45883542 C4.28425,2.75990644 4.28254958,1.91173703 4.66842791,1.21127254 C5.05430624,0.510808047 5.77401391,0.0556169131 6.57558023,0.00506221373 L1.98726011,0.000850295183 C1.70028191,-0.00773775303 1.4151096,0.0488237358 1.15340515,0.166238297 C1.11086057,0.18570672 1.07725788,0.202180002 1.04412582,0.219589265 C0.955459897,0.268541118 0.934752357,0.281176874 0.914233068,0.29428062 L0.814836879,0.361671317 C0.763726906,0.399952977 0.748102127,0.412307938 0.732665597,0.424850095 C0.693227147,0.457796658 0.67910837,0.470151619 0.665177844,0.482693776 C0.629598526,0.514985152 0.611526491,0.532394415 0.594019208,0.550084473 C0.559381142,0.585183794 0.543756362,0.601844272 0.528508083,0.618879143 C0.501964783,0.648362572 0.484739875,0.668860576 0.467797343,0.689639374 C0.436736033,0.727546641 0.420923003,0.748325439 0.405392349,0.769385032 C0.385908437,0.795779721 0.370095407,0.819085671 0.354564752,0.842672415 C0.3274567,0.884230011 0.312490797,0.908378344 0.298089644,0.933369061 C-0.0900333359,1.52939569 -0.081932791,2.25296668 0.269004964,2.83322512 L0.435324156,3.12188194 L14.3089991,27.0174998 C14.4452697,27.2688135 14.6373487,27.4859373 14.870644,27.6523763 C14.9087647,27.679239 14.9399202,27.6999242 14.9717345,27.719767 C15.0597415,27.7702164 15.0811079,27.781729 15.1027567,27.7927736 L15.2100594,27.8435974 C15.2692642,27.8684945 15.2880892,27.8757952 15.3069142,27.8829087 C15.3553887,27.9000371 15.3731784,27.9060274 15.3910621,27.9118305 C15.4370894,27.926151 15.4610913,27.9328901 15.4853756,27.9393484 C15.5335677,27.9512353 15.5558753,27.9563832 15.5782771,27.9612503 C15.6169626,27.9693934 15.6435059,27.9738861 15.6700492,27.978098 C15.7186178,27.9851179 15.7445963,27.9887682 15.7708572,27.9912954 C15.8041776,27.9941033 15.8324151,27.9960689 15.8606527,27.9977536 C15.9100684,27.9977536 15.9383059,28 15.9665435,28 C16.0055113,28 16.0292309,28 16.052668,27.9983152 C16.1029309,27.9969113 16.1286271,27.9949457 16.1551704,27.9921378 C16.1882083,27.9893298 16.2164458,27.9856795 16.2424244,27.9817484 C16.2892987,27.9744477 16.3133007,27.9702358 16.3370202,27.9654623 C16.3740114,27.9581616 16.3997076,27.9519841 16.4254037,27.9458066 C16.4708662,27.9339197 16.4916679,27.928023 16.5123754,27.9216583 C16.5536022,27.9090226 16.5773218,27.9008795 16.6010413,27.8924557 C16.6464097,27.8759824 16.6634463,27.8692433 16.6803889,27.8621299 C16.7264161,27.842755 16.7478766,27.833208 16.7690548,27.8239418 L16.8402134,27.7882809 C16.8972533,27.7573935 16.9127839,27.7486889 16.9277498,27.7397034 C17.014345,27.6850421 17.0367468,27.6697856 17.0587721,27.6540611 C17.0796679,27.6390854 17.1047052,27.6202721 17.133884,27.5976214 C17.1766168,27.563926 17.2177495,27.5284523 17.2572821,27.4912002 C17.3084862,27.4427164 17.3481129,27.401346 17.3857629,27.3581036 C17.4284017,27.3092454 17.4652987,27.2624463 17.500125,27.2137752 C17.5353279,27.1645426 17.5680834,27.1136251 17.5983917,27.061023 L17.9739512,26.4216537 L18.0558401,26.2812564 L25.73589,13.0558322 C26.070421,12.5242035 26.0883782,11.8538976 25.7827856,11.3053117 C25.4771931,10.7567258 24.8962203,10.4163314 24.2655606,10.4163633 C23.6317102,10.4178657 23.048049,10.7619023 22.7438388,11.3151867 Z",key:1}),r.createElement("path",{fill:"url(#linearGradient-3)",d:"M30.1437101,0 L23.6847716,0 C22.749424,0.0183223345 22,0.84716472 22,1.86331122 C22,2.87945772 22.749424,3.7083001 23.6847716,3.72662244 C23.7299585,3.72662244 23.7743086,3.72419862 23.8186587,3.72056289 L26.7432558,3.72056289 C26.957527,3.75250166 27.1172208,3.95131508 27.117303,4.1862392 C27.1173323,4.23951108 27.1089352,4.29239242 27.0924781,4.34257556 L25.5505446,7.24358449 C25.0967914,8.1471655 25.403314,9.27921269 26.235182,9.77208267 C27.0670501,10.2649526 28.1092519,9.93200556 28.5630051,9.02842455 L31.7528661,3.02795647 C31.782061,2.97321855 31.8089314,2.91686475 31.8334773,2.85889507 L31.8365456,2.85132063 C31.8516079,2.81516532 31.8657404,2.77850505 31.8789432,2.74133982 L31.8811746,2.73558325 C31.8870322,2.71861651 31.8928898,2.7013468 31.8984684,2.68407709 L31.9068363,2.65741507 C31.9142745,2.63337886 31.9212478,2.60903968 31.9277562,2.58439751 C31.9316612,2.57046055 31.9352873,2.55622061 31.9389135,2.54228365 C31.9425396,2.52834669 31.9453289,2.51531866 31.9483971,2.50198765 C31.9514654,2.48865664 31.9559283,2.46714524 31.9595544,2.44957255 C31.9620648,2.43715048 31.9645752,2.4247284 31.9668066,2.41230633 C31.9710836,2.38867409 31.9749886,2.36483986 31.9785217,2.34080365 C31.9800094,2.33090639 31.981404,2.32080714 31.9827057,2.31050591 C31.9860529,2.28505581 31.9891211,2.25930272 31.9916315,2.23354964 C31.9916315,2.22991391 31.9916315,2.22658116 31.9916315,2.22294543 C31.9944208,2.19264769 31.9963734,2.16234995 31.997768,2.13387007 C31.997768,2.12619464 31.997768,2.11841822 31.997768,2.1105408 C31.997768,2.08024306 31.9999995,2.04994532 31.9999995,2.01964757 C32.00077,0.905181759 31.1697259,0.00100355849 30.1437101,0 Z",key:2}),r.createElement("path",{fill:"url(#linearGradient-4)",d:"M19.8878401,7.40978464 C19.7383064,7.15620152 19.4618641,6.99998235 19.1626937,7.00000003 L12.8373895,7.00000003 C12.5382281,6.9999242 12.261761,7.15608029 12.1121725,7.40962229 C11.962584,7.66316428 11.9626109,7.97555472 12.112243,8.22907204 L15.2751831,13.5903738 C15.4247323,13.8438523 15.7011,14 16.0001856,14 C16.2992712,14 16.5756388,13.8438523 16.725188,13.5903738 L19.8878401,8.22935388 C20.0373866,7.97586547 20.0373866,7.66355488 19.8878401,7.41006648 L19.8878401,7.40978464 Z",key:3})])]))])}o.defaultProps={width:"94",height:"28",version:"1.1",viewBox:"0 0 94 28"},e.exports=o,o.default=o},MGFZ:function(e,t,n){var r=n("WhsZ"),o=n("qU5+"),i=n("MLqD");e.exports=r((function(e,t){return o(i(e.length,t),e)}))},MJCZ:function(e,t,n){"use strict";var r=n("03hK");e.exports=function(e){return function(t){return r("Type."+e+"() is being deprecated in favour of Type['fantasy-land/"+e+"'](). \n Your data structure is using the old-style fantasy-land methods,\n and these won't be supported in Folktale 3"),t}}},MLqD:function(e,t,n){var r=n("WhsZ"),o=n("svN1"),i=n("2hpT"),a=n("c7QU");e.exports=r(o(["take"],i,(function(e,t){return a(0,e<0?1/0:e,t)})))},MMYH:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,"a",(function(){return o}))},MRmd:function(e,t,n){},"MSM+":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r,o=n("zygG"),i=n("ERkP"),a=n("99DC"),c=n("s1jM"),u=n("mDRv");function s(e){return void 0!==e}function l(e,t){var n=t||{},l=n.defaultValue,f=n.value,p=n.onChange,d=n.postState,h=Object(u.a)((function(){var t,n=void 0;return s(f)?(n=f,t=r.PROP):s(l)?(n="function"==typeof l?l():l,t=r.PROP):(n="function"==typeof e?e():e,t=r.INNER),[n,t,n]})),v=Object(o.a)(h,2),y=v[0],m=v[1],g=s(f)?f:y[0],b=d?d(g):g;Object(c.b)((function(){m((function(e){var t=Object(o.a)(e,1)[0];return[f,r.PROP,t]}))}),[f]);var O=i.useRef(),w=Object(a.a)((function(e,t){m((function(t){var n=Object(o.a)(t,3),i=n[0],a=n[1],c=n[2],u="function"==typeof e?e(i):e;if(u===i)return t;var s=a===r.INNER&&O.current!==c?c:i;return[u,r.INNER,s]}),t)})),_=Object(a.a)(p);return Object(c.a)((function(){var e=Object(o.a)(y,3),t=e[0],n=e[1],i=e[2];t!==i&&n===r.INNER&&(_(t,i),O.current=i)}),[y]),[b,w]}!function(e){e[e.INNER=0]="INNER",e[e.PROP=1]="PROP"}(r||(r={}))},MoRW:function(e,t,n){"use strict";var r=n("zjfJ"),o=n("CZO1"),i=n("+RZ0"),a=n("+Gah"),c=n("Czhu"),u=n("ERkP"),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},l=n("vspj"),f=function(e,t){return u.createElement(l.a,Object(c.a)(Object(c.a)({},e),{},{ref:t,icon:s}))};f.displayName="WarningFilled";var p=u.forwardRef(f),d=n("O94r"),h=n.n(d),v=n("H84U"),y=function(){return u.createElement("svg",{width:"252",height:"294"},u.createElement("defs",null,u.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(0 .012)"},u.createElement("mask",{fill:"#fff"}),u.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),u.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),u.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),u.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),u.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),u.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),u.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),u.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"}),u.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),u.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),u.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),u.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),u.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),u.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),u.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),u.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),u.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),u.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),u.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),u.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),u.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),u.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),u.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),u.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),u.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),u.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),u.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),u.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),u.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),u.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),u.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),u.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),u.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),u.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),u.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),u.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),u.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),u.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),u.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"})))},m=function(){return u.createElement("svg",{width:"254",height:"294"},u.createElement("defs",null,u.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),u.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(0 .067)"},u.createElement("mask",{fill:"#fff"}),u.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),u.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),u.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),u.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),u.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),u.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),u.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),u.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),u.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),u.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),u.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),u.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),u.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),u.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),u.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),u.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),u.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),u.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),u.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),u.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),u.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),u.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),u.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),u.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),u.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),u.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),u.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),u.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),u.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),u.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),u.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),u.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),u.createElement("mask",{fill:"#fff"}),u.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),u.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),u.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),u.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),u.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),u.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),u.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),u.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),u.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),u.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),u.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"})))},g=function(){return u.createElement("svg",{width:"251",height:"294"},u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),u.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),u.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),u.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),u.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),u.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),u.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),u.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),u.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),u.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),u.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),u.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),u.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),u.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),u.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),u.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),u.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),u.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),u.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),u.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),u.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),u.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),u.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),u.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),u.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),u.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),u.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),u.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),u.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),u.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),u.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),u.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),u.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),u.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),u.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),u.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})))},b={success:o.a,error:i.a,info:a.a,warning:p},O={404:y,500:m,403:g},w=Object.keys(O),_=function(e){var t=e.prefixCls,n=e.icon,r=e.status,o=h()("".concat(t,"-icon"));if(w.includes("".concat(r))){var i=O[r];return u.createElement("div",{className:"".concat(o," ").concat(t,"-image")},u.createElement(i,null))}var a=u.createElement(b[r]);return u.createElement("div",{className:o},n||a)},x=function(e){var t=e.prefixCls,n=e.extra;return n?u.createElement("div",{className:"".concat(t,"-extra")},n):null},E=function(e){var t=e.prefixCls,n=e.className,o=e.subTitle,i=e.title,a=e.style,c=e.children,s=e.status,l=void 0===s?"info":s,f=e.icon,p=e.extra,d=u.useContext(v.b),y=d.getPrefixCls,m=d.direction,g=y("result",t),b=h()(g,"".concat(g,"-").concat(l),n,Object(r.a)({},"".concat(g,"-rtl"),"rtl"===m));return u.createElement("div",{className:b,style:a},u.createElement(_,{prefixCls:g,status:l,icon:f}),u.createElement("div",{className:"".concat(g,"-title")},i),o&&u.createElement("div",{className:"".concat(g,"-subtitle")},o),u.createElement(x,{prefixCls:g,extra:p}),c&&u.createElement("div",{className:"".concat(g,"-content")},c))};E.PRESENTED_IMAGE_403=O[403],E.PRESENTED_IMAGE_404=O[404],E.PRESENTED_IMAGE_500=O[500];t.a=E},Mpot:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tagged=void 0;var r=n("jFDj"),o=n("tTA5");t.tagged=function(e,t){return function(n,i,a){var c=new r.Metadata(e,t);"number"==typeof a?o.tagParameter(n,i,a,c):o.tagProperty(n,i,c)}}},Mryw:function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="Mryw"},Mwn6:function(e,t,n){e.exports={bannerAnnouncement:"Announcement-module--bannerAnnouncement--UVs3t"}},MyxS:function(e,t,n){var r=n("TN3B"),o=n("HYrn"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},MzY2:function(e,t,n){var r=n("HsnV"),o=n("amiU"),i=n("UdtX"),a=n("cb1R"),c=n("tQYX"),u=n("zH+d"),s=n("LL3N");e.exports=function e(t,n,l,f,p){t!==n&&i(n,(function(i,u){if(p||(p=new r),c(i))a(t,n,u,l,e,f,p);else{var d=f?f(s(t,u),i,u+"",t,n,p):void 0;void 0===d&&(d=i),o(t,u,d)}}),u)}},"N+ot":function(e,t,n){var r=n("T0aG").default,o=n("1Pcy");e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},N4z3:function(e,t,n){var r=n("g6a+"),o=n("cww3");e.exports=function(e){return r(o(e))}},N5uj:function(e,t,n){var r=n("WhsZ"),o=n("P1cI");e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},r((function(t,n){return new e(t,n)}))}()},N9G2:function(e,t,n){var r=n("cww3"),o=Object;e.exports=function(e){return o(r(e))}},NJkw:function(e,t,n){"use strict";n.r(t),n.d(t,"create",(function(){return o})),n.d(t,"clone",(function(){return i})),n.d(t,"copy",(function(){return a})),n.d(t,"fromValues",(function(){return c})),n.d(t,"set",(function(){return u})),n.d(t,"identity",(function(){return s})),n.d(t,"transpose",(function(){return l})),n.d(t,"invert",(function(){return f})),n.d(t,"adjoint",(function(){return p})),n.d(t,"determinant",(function(){return d})),n.d(t,"multiply",(function(){return h})),n.d(t,"translate",(function(){return v})),n.d(t,"scale",(function(){return y})),n.d(t,"rotate",(function(){return m})),n.d(t,"rotateX",(function(){return g})),n.d(t,"rotateY",(function(){return b})),n.d(t,"rotateZ",(function(){return O})),n.d(t,"fromTranslation",(function(){return w})),n.d(t,"fromScaling",(function(){return _})),n.d(t,"fromRotation",(function(){return x})),n.d(t,"fromXRotation",(function(){return E})),n.d(t,"fromYRotation",(function(){return S})),n.d(t,"fromZRotation",(function(){return C})),n.d(t,"fromRotationTranslation",(function(){return j})),n.d(t,"fromQuat2",(function(){return k})),n.d(t,"getTranslation",(function(){return P})),n.d(t,"getScaling",(function(){return T})),n.d(t,"getRotation",(function(){return M})),n.d(t,"fromRotationTranslationScale",(function(){return A})),n.d(t,"fromRotationTranslationScaleOrigin",(function(){return L})),n.d(t,"fromQuat",(function(){return R})),n.d(t,"frustum",(function(){return N})),n.d(t,"perspectiveNO",(function(){return I})),n.d(t,"perspective",(function(){return D})),n.d(t,"perspectiveZO",(function(){return F})),n.d(t,"perspectiveFromFieldOfView",(function(){return z})),n.d(t,"orthoNO",(function(){return B})),n.d(t,"ortho",(function(){return U})),n.d(t,"orthoZO",(function(){return V})),n.d(t,"lookAt",(function(){return H})),n.d(t,"targetTo",(function(){return G})),n.d(t,"str",(function(){return W})),n.d(t,"frob",(function(){return Y})),n.d(t,"add",(function(){return K})),n.d(t,"subtract",(function(){return X})),n.d(t,"multiplyScalar",(function(){return q})),n.d(t,"multiplyScalarAndAdd",(function(){return Z})),n.d(t,"exactEquals",(function(){return J})),n.d(t,"equals",(function(){return Q})),n.d(t,"mul",(function(){return $})),n.d(t,"sub",(function(){return ee}));n("6JDI"),n("nndn"),n("ct5l");var r=n("lmpI");function o(){var e=new r.a(16);return r.a!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function i(e){var t=new r.a(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function c(e,t,n,o,i,a,c,u,s,l,f,p,d,h,v,y){var m=new r.a(16);return m[0]=e,m[1]=t,m[2]=n,m[3]=o,m[4]=i,m[5]=a,m[6]=c,m[7]=u,m[8]=s,m[9]=l,m[10]=f,m[11]=p,m[12]=d,m[13]=h,m[14]=v,m[15]=y,m}function u(e,t,n,r,o,i,a,c,u,s,l,f,p,d,h,v,y){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i,e[5]=a,e[6]=c,e[7]=u,e[8]=s,e[9]=l,e[10]=f,e[11]=p,e[12]=d,e[13]=h,e[14]=v,e[15]=y,e}function s(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){var n=t[1],r=t[2],o=t[3],i=t[6],a=t[7],c=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=i,e[11]=t[14],e[12]=o,e[13]=a,e[14]=c}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function f(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],c=t[5],u=t[6],s=t[7],l=t[8],f=t[9],p=t[10],d=t[11],h=t[12],v=t[13],y=t[14],m=t[15],g=n*c-r*a,b=n*u-o*a,O=n*s-i*a,w=r*u-o*c,_=r*s-i*c,x=o*s-i*u,E=l*v-f*h,S=l*y-p*h,C=l*m-d*h,j=f*y-p*v,k=f*m-d*v,P=p*m-d*y,T=g*P-b*k+O*j+w*C-_*S+x*E;return T?(T=1/T,e[0]=(c*P-u*k+s*j)*T,e[1]=(o*k-r*P-i*j)*T,e[2]=(v*x-y*_+m*w)*T,e[3]=(p*_-f*x-d*w)*T,e[4]=(u*C-a*P-s*S)*T,e[5]=(n*P-o*C+i*S)*T,e[6]=(y*O-h*x-m*b)*T,e[7]=(l*x-p*O+d*b)*T,e[8]=(a*k-c*C+s*E)*T,e[9]=(r*C-n*k-i*E)*T,e[10]=(h*_-v*O+m*g)*T,e[11]=(f*O-l*_-d*g)*T,e[12]=(c*S-a*j-u*E)*T,e[13]=(n*j-r*S+o*E)*T,e[14]=(v*b-h*w-y*g)*T,e[15]=(l*w-f*b+p*g)*T,e):null}function p(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],c=t[5],u=t[6],s=t[7],l=t[8],f=t[9],p=t[10],d=t[11],h=t[12],v=t[13],y=t[14],m=t[15];return e[0]=c*(p*m-d*y)-f*(u*m-s*y)+v*(u*d-s*p),e[1]=-(r*(p*m-d*y)-f*(o*m-i*y)+v*(o*d-i*p)),e[2]=r*(u*m-s*y)-c*(o*m-i*y)+v*(o*s-i*u),e[3]=-(r*(u*d-s*p)-c*(o*d-i*p)+f*(o*s-i*u)),e[4]=-(a*(p*m-d*y)-l*(u*m-s*y)+h*(u*d-s*p)),e[5]=n*(p*m-d*y)-l*(o*m-i*y)+h*(o*d-i*p),e[6]=-(n*(u*m-s*y)-a*(o*m-i*y)+h*(o*s-i*u)),e[7]=n*(u*d-s*p)-a*(o*d-i*p)+l*(o*s-i*u),e[8]=a*(f*m-d*v)-l*(c*m-s*v)+h*(c*d-s*f),e[9]=-(n*(f*m-d*v)-l*(r*m-i*v)+h*(r*d-i*f)),e[10]=n*(c*m-s*v)-a*(r*m-i*v)+h*(r*s-i*c),e[11]=-(n*(c*d-s*f)-a*(r*d-i*f)+l*(r*s-i*c)),e[12]=-(a*(f*y-p*v)-l*(c*y-u*v)+h*(c*p-u*f)),e[13]=n*(f*y-p*v)-l*(r*y-o*v)+h*(r*p-o*f),e[14]=-(n*(c*y-u*v)-a*(r*y-o*v)+h*(r*u-o*c)),e[15]=n*(c*p-u*f)-a*(r*p-o*f)+l*(r*u-o*c),e}function d(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],c=e[6],u=e[7],s=e[8],l=e[9],f=e[10],p=e[11],d=e[12],h=e[13],v=e[14],y=e[15];return(t*a-n*i)*(f*y-p*v)-(t*c-r*i)*(l*y-p*h)+(t*u-o*i)*(l*v-f*h)+(n*c-r*a)*(s*y-p*d)-(n*u-o*a)*(s*v-f*d)+(r*u-o*c)*(s*h-l*d)}function h(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],c=t[4],u=t[5],s=t[6],l=t[7],f=t[8],p=t[9],d=t[10],h=t[11],v=t[12],y=t[13],m=t[14],g=t[15],b=n[0],O=n[1],w=n[2],_=n[3];return e[0]=b*r+O*c+w*f+_*v,e[1]=b*o+O*u+w*p+_*y,e[2]=b*i+O*s+w*d+_*m,e[3]=b*a+O*l+w*h+_*g,b=n[4],O=n[5],w=n[6],_=n[7],e[4]=b*r+O*c+w*f+_*v,e[5]=b*o+O*u+w*p+_*y,e[6]=b*i+O*s+w*d+_*m,e[7]=b*a+O*l+w*h+_*g,b=n[8],O=n[9],w=n[10],_=n[11],e[8]=b*r+O*c+w*f+_*v,e[9]=b*o+O*u+w*p+_*y,e[10]=b*i+O*s+w*d+_*m,e[11]=b*a+O*l+w*h+_*g,b=n[12],O=n[13],w=n[14],_=n[15],e[12]=b*r+O*c+w*f+_*v,e[13]=b*o+O*u+w*p+_*y,e[14]=b*i+O*s+w*d+_*m,e[15]=b*a+O*l+w*h+_*g,e}function v(e,t,n){var r,o,i,a,c,u,s,l,f,p,d,h,v=n[0],y=n[1],m=n[2];return t===e?(e[12]=t[0]*v+t[4]*y+t[8]*m+t[12],e[13]=t[1]*v+t[5]*y+t[9]*m+t[13],e[14]=t[2]*v+t[6]*y+t[10]*m+t[14],e[15]=t[3]*v+t[7]*y+t[11]*m+t[15]):(r=t[0],o=t[1],i=t[2],a=t[3],c=t[4],u=t[5],s=t[6],l=t[7],f=t[8],p=t[9],d=t[10],h=t[11],e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=c,e[5]=u,e[6]=s,e[7]=l,e[8]=f,e[9]=p,e[10]=d,e[11]=h,e[12]=r*v+c*y+f*m+t[12],e[13]=o*v+u*y+p*m+t[13],e[14]=i*v+s*y+d*m+t[14],e[15]=a*v+l*y+h*m+t[15]),e}function y(e,t,n){var r=n[0],o=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*o,e[5]=t[5]*o,e[6]=t[6]*o,e[7]=t[7]*o,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function m(e,t,n,o){var i,a,c,u,s,l,f,p,d,h,v,y,m,g,b,O,w,_,x,E,S,C,j,k,P=o[0],T=o[1],M=o[2],A=Math.hypot(P,T,M);return A<r.b?null:(P*=A=1/A,T*=A,M*=A,i=Math.sin(n),c=1-(a=Math.cos(n)),u=t[0],s=t[1],l=t[2],f=t[3],p=t[4],d=t[5],h=t[6],v=t[7],y=t[8],m=t[9],g=t[10],b=t[11],O=P*P*c+a,w=T*P*c+M*i,_=M*P*c-T*i,x=P*T*c-M*i,E=T*T*c+a,S=M*T*c+P*i,C=P*M*c+T*i,j=T*M*c-P*i,k=M*M*c+a,e[0]=u*O+p*w+y*_,e[1]=s*O+d*w+m*_,e[2]=l*O+h*w+g*_,e[3]=f*O+v*w+b*_,e[4]=u*x+p*E+y*S,e[5]=s*x+d*E+m*S,e[6]=l*x+h*E+g*S,e[7]=f*x+v*E+b*S,e[8]=u*C+p*j+y*k,e[9]=s*C+d*j+m*k,e[10]=l*C+h*j+g*k,e[11]=f*C+v*j+b*k,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function g(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[4],a=t[5],c=t[6],u=t[7],s=t[8],l=t[9],f=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*o+s*r,e[5]=a*o+l*r,e[6]=c*o+f*r,e[7]=u*o+p*r,e[8]=s*o-i*r,e[9]=l*o-a*r,e[10]=f*o-c*r,e[11]=p*o-u*r,e}function b(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[0],a=t[1],c=t[2],u=t[3],s=t[8],l=t[9],f=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*o-s*r,e[1]=a*o-l*r,e[2]=c*o-f*r,e[3]=u*o-p*r,e[8]=i*r+s*o,e[9]=a*r+l*o,e[10]=c*r+f*o,e[11]=u*r+p*o,e}function O(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[0],a=t[1],c=t[2],u=t[3],s=t[4],l=t[5],f=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*o+s*r,e[1]=a*o+l*r,e[2]=c*o+f*r,e[3]=u*o+p*r,e[4]=s*o-i*r,e[5]=l*o-a*r,e[6]=f*o-c*r,e[7]=p*o-u*r,e}function w(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function _(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function x(e,t,n){var o,i,a,c=n[0],u=n[1],s=n[2],l=Math.hypot(c,u,s);return l<r.b?null:(c*=l=1/l,u*=l,s*=l,o=Math.sin(t),a=1-(i=Math.cos(t)),e[0]=c*c*a+i,e[1]=u*c*a+s*o,e[2]=s*c*a-u*o,e[3]=0,e[4]=c*u*a-s*o,e[5]=u*u*a+i,e[6]=s*u*a+c*o,e[7]=0,e[8]=c*s*a+u*o,e[9]=u*s*a-c*o,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function E(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function S(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function C(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function j(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],c=r+r,u=o+o,s=i+i,l=r*c,f=r*u,p=r*s,d=o*u,h=o*s,v=i*s,y=a*c,m=a*u,g=a*s;return e[0]=1-(d+v),e[1]=f+g,e[2]=p-m,e[3]=0,e[4]=f-g,e[5]=1-(l+v),e[6]=h+y,e[7]=0,e[8]=p+m,e[9]=h-y,e[10]=1-(l+d),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function k(e,t){var n=new r.a(3),o=-t[0],i=-t[1],a=-t[2],c=t[3],u=t[4],s=t[5],l=t[6],f=t[7],p=o*o+i*i+a*a+c*c;return p>0?(n[0]=2*(u*c+f*o+s*a-l*i)/p,n[1]=2*(s*c+f*i+l*o-u*a)/p,n[2]=2*(l*c+f*a+u*i-s*o)/p):(n[0]=2*(u*c+f*o+s*a-l*i),n[1]=2*(s*c+f*i+l*o-u*a),n[2]=2*(l*c+f*a+u*i-s*o)),j(e,t,n),e}function P(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function T(e,t){var n=t[0],r=t[1],o=t[2],i=t[4],a=t[5],c=t[6],u=t[8],s=t[9],l=t[10];return e[0]=Math.hypot(n,r,o),e[1]=Math.hypot(i,a,c),e[2]=Math.hypot(u,s,l),e}function M(e,t){var n=new r.a(3);T(n,t);var o=1/n[0],i=1/n[1],a=1/n[2],c=t[0]*o,u=t[1]*i,s=t[2]*a,l=t[4]*o,f=t[5]*i,p=t[6]*a,d=t[8]*o,h=t[9]*i,v=t[10]*a,y=c+f+v,m=0;return y>0?(m=2*Math.sqrt(y+1),e[3]=.25*m,e[0]=(p-h)/m,e[1]=(d-s)/m,e[2]=(u-l)/m):c>f&&c>v?(m=2*Math.sqrt(1+c-f-v),e[3]=(p-h)/m,e[0]=.25*m,e[1]=(u+l)/m,e[2]=(d+s)/m):f>v?(m=2*Math.sqrt(1+f-c-v),e[3]=(d-s)/m,e[0]=(u+l)/m,e[1]=.25*m,e[2]=(p+h)/m):(m=2*Math.sqrt(1+v-c-f),e[3]=(u-l)/m,e[0]=(d+s)/m,e[1]=(p+h)/m,e[2]=.25*m),e}function A(e,t,n,r){var o=t[0],i=t[1],a=t[2],c=t[3],u=o+o,s=i+i,l=a+a,f=o*u,p=o*s,d=o*l,h=i*s,v=i*l,y=a*l,m=c*u,g=c*s,b=c*l,O=r[0],w=r[1],_=r[2];return e[0]=(1-(h+y))*O,e[1]=(p+b)*O,e[2]=(d-g)*O,e[3]=0,e[4]=(p-b)*w,e[5]=(1-(f+y))*w,e[6]=(v+m)*w,e[7]=0,e[8]=(d+g)*_,e[9]=(v-m)*_,e[10]=(1-(f+h))*_,e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function L(e,t,n,r,o){var i=t[0],a=t[1],c=t[2],u=t[3],s=i+i,l=a+a,f=c+c,p=i*s,d=i*l,h=i*f,v=a*l,y=a*f,m=c*f,g=u*s,b=u*l,O=u*f,w=r[0],_=r[1],x=r[2],E=o[0],S=o[1],C=o[2],j=(1-(v+m))*w,k=(d+O)*w,P=(h-b)*w,T=(d-O)*_,M=(1-(p+m))*_,A=(y+g)*_,L=(h+b)*x,R=(y-g)*x,N=(1-(p+v))*x;return e[0]=j,e[1]=k,e[2]=P,e[3]=0,e[4]=T,e[5]=M,e[6]=A,e[7]=0,e[8]=L,e[9]=R,e[10]=N,e[11]=0,e[12]=n[0]+E-(j*E+T*S+L*C),e[13]=n[1]+S-(k*E+M*S+R*C),e[14]=n[2]+C-(P*E+A*S+N*C),e[15]=1,e}function R(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n+n,c=r+r,u=o+o,s=n*a,l=r*a,f=r*c,p=o*a,d=o*c,h=o*u,v=i*a,y=i*c,m=i*u;return e[0]=1-f-h,e[1]=l+m,e[2]=p-y,e[3]=0,e[4]=l-m,e[5]=1-s-h,e[6]=d+v,e[7]=0,e[8]=p+y,e[9]=d-v,e[10]=1-s-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function N(e,t,n,r,o,i,a){var c=1/(n-t),u=1/(o-r),s=1/(i-a);return e[0]=2*i*c,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*u,e[6]=0,e[7]=0,e[8]=(n+t)*c,e[9]=(o+r)*u,e[10]=(a+i)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=a*i*2*s,e[15]=0,e}function I(e,t,n,r,o){var i,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=o&&o!==1/0?(i=1/(r-o),e[10]=(o+r)*i,e[14]=2*o*r*i):(e[10]=-1,e[14]=-2*r),e}var D=I;function F(e,t,n,r,o){var i,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=o&&o!==1/0?(i=1/(r-o),e[10]=o*i,e[14]=o*r*i):(e[10]=-1,e[14]=-r),e}function z(e,t,n,r){var o=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),a=Math.tan(t.leftDegrees*Math.PI/180),c=Math.tan(t.rightDegrees*Math.PI/180),u=2/(a+c),s=2/(o+i);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-(a-c)*u*.5,e[9]=(o-i)*s*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e}function B(e,t,n,r,o,i,a){var c=1/(t-n),u=1/(r-o),s=1/(i-a);return e[0]=-2*c,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(t+n)*c,e[13]=(o+r)*u,e[14]=(a+i)*s,e[15]=1,e}var U=B;function V(e,t,n,r,o,i,a){var c=1/(t-n),u=1/(r-o),s=1/(i-a);return e[0]=-2*c,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=s,e[11]=0,e[12]=(t+n)*c,e[13]=(o+r)*u,e[14]=i*s,e[15]=1,e}function H(e,t,n,o){var i,a,c,u,l,f,p,d,h,v,y=t[0],m=t[1],g=t[2],b=o[0],O=o[1],w=o[2],_=n[0],x=n[1],E=n[2];return Math.abs(y-_)<r.b&&Math.abs(m-x)<r.b&&Math.abs(g-E)<r.b?s(e):(p=y-_,d=m-x,h=g-E,i=O*(h*=v=1/Math.hypot(p,d,h))-w*(d*=v),a=w*(p*=v)-b*h,c=b*d-O*p,(v=Math.hypot(i,a,c))?(i*=v=1/v,a*=v,c*=v):(i=0,a=0,c=0),u=d*c-h*a,l=h*i-p*c,f=p*a-d*i,(v=Math.hypot(u,l,f))?(u*=v=1/v,l*=v,f*=v):(u=0,l=0,f=0),e[0]=i,e[1]=u,e[2]=p,e[3]=0,e[4]=a,e[5]=l,e[6]=d,e[7]=0,e[8]=c,e[9]=f,e[10]=h,e[11]=0,e[12]=-(i*y+a*m+c*g),e[13]=-(u*y+l*m+f*g),e[14]=-(p*y+d*m+h*g),e[15]=1,e)}function G(e,t,n,r){var o=t[0],i=t[1],a=t[2],c=r[0],u=r[1],s=r[2],l=o-n[0],f=i-n[1],p=a-n[2],d=l*l+f*f+p*p;d>0&&(l*=d=1/Math.sqrt(d),f*=d,p*=d);var h=u*p-s*f,v=s*l-c*p,y=c*f-u*l;return(d=h*h+v*v+y*y)>0&&(h*=d=1/Math.sqrt(d),v*=d,y*=d),e[0]=h,e[1]=v,e[2]=y,e[3]=0,e[4]=f*y-p*v,e[5]=p*h-l*y,e[6]=l*v-f*h,e[7]=0,e[8]=l,e[9]=f,e[10]=p,e[11]=0,e[12]=o,e[13]=i,e[14]=a,e[15]=1,e}function W(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function Y(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function K(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e}function X(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}function q(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n,e}function Z(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e[9]=t[9]+n[9]*r,e[10]=t[10]+n[10]*r,e[11]=t[11]+n[11]*r,e[12]=t[12]+n[12]*r,e[13]=t[13]+n[13]*r,e[14]=t[14]+n[14]*r,e[15]=t[15]+n[15]*r,e}function J(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function Q(e,t){var n=e[0],o=e[1],i=e[2],a=e[3],c=e[4],u=e[5],s=e[6],l=e[7],f=e[8],p=e[9],d=e[10],h=e[11],v=e[12],y=e[13],m=e[14],g=e[15],b=t[0],O=t[1],w=t[2],_=t[3],x=t[4],E=t[5],S=t[6],C=t[7],j=t[8],k=t[9],P=t[10],T=t[11],M=t[12],A=t[13],L=t[14],R=t[15];return Math.abs(n-b)<=r.b*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(o-O)<=r.b*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(i-w)<=r.b*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(a-_)<=r.b*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(c-x)<=r.b*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(u-E)<=r.b*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(s-S)<=r.b*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(l-C)<=r.b*Math.max(1,Math.abs(l),Math.abs(C))&&Math.abs(f-j)<=r.b*Math.max(1,Math.abs(f),Math.abs(j))&&Math.abs(p-k)<=r.b*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(d-P)<=r.b*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(h-T)<=r.b*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(v-M)<=r.b*Math.max(1,Math.abs(v),Math.abs(M))&&Math.abs(y-A)<=r.b*Math.max(1,Math.abs(y),Math.abs(A))&&Math.abs(m-L)<=r.b*Math.max(1,Math.abs(m),Math.abs(L))&&Math.abs(g-R)<=r.b*Math.max(1,Math.abs(g),Math.abs(R))}var $=h,ee=X},NRJf:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n("8Jfv"),i=o.tagSymbol,a=o.typeSymbol,c=function(){return"{ "+(e=this,Object.keys(e).map((function(t){return t+": "+f(e[t])})).join(", ")+" }");var e},u=function(){return"["+this.map(f).join(", ")+"]"},s=function(){return"null"},l=function(e){return null===e?s:Array.isArray(e)?u:function(e){return!e.toString||e.toString===Object.prototype.toString}(e)?c:e.toString},f=function(e){return void 0===e?"undefined":"function"==typeof e?"[Function"+function(e){return""!==e.name?": "+e.name:""}(e)+"]":Object.is(e,-0)?"-0":"number"==typeof e?e:"symbol"===(void 0===e?"undefined":r(e))?e.toString():"object"===(void 0===e?"undefined":r(e))?l(e).call(e):JSON.stringify(e)};e.exports=function(e,t){var n=t[a],r=t[a]+"."+e.prototype[i];return t[Symbol.toStringTag]=n,e.prototype[Symbol.toStringTag]=r,t.toString=function(){return n},e.toString=function(){return r},e.prototype.toString=function(){return r+"("+c.call(this)+")"},t.inspect=t.toString,e.inspect=e.toString,e.prototype.inspect=e.prototype.toString,e}},NSX3:function(e,t,n){"use strict";n.r(t);var r=n("xtsi");"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"in navigator&&navigator.serviceWorker.register("".concat("","/sw.js")).then((function(e){e.addEventListener("updatefound",(function(){Object(r.apiRunner)("onServiceWorkerUpdateFound",{serviceWorker:e});var t=e.installing;console.log("installingWorker",t),t.addEventListener("statechange",(function(){switch(t.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,Object(r.apiRunner)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),Object(r.apiRunner)("onServiceWorkerInstalled",{serviceWorker:e}));break;case"redundant":console.error("The installing service worker became redundant."),Object(r.apiRunner)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":Object(r.apiRunner)("onServiceWorkerActive",{serviceWorker:e})}}))}))})).catch((function(e){console.error("Error during service worker registration:",e)}))},NTKS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.postConstruct=void 0;var r=n("KWcp"),o=n("2u/a"),i=n("jFDj");t.postConstruct=function(){return function(e,t,n){var a=new i.Metadata(o.POST_CONSTRUCT,t);if(Reflect.hasOwnMetadata(o.POST_CONSTRUCT,e.constructor))throw new Error(r.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(o.POST_CONSTRUCT,a,e.constructor)}}},NWM5:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("cxan"),o=n("9u+f"),i={adjustX:1,adjustY:1},a={adjustX:0,adjustY:0},c=[0,0];function u(e){return"boolean"==typeof e?e?i:a:Object(r.a)(Object(r.a)({},a),e)}function s(e){var t=e.arrowWidth,n=void 0===t?4:t,i=e.horizontalArrowShift,a=void 0===i?16:i,s=e.verticalArrowShift,l=void 0===s?8:s,f=e.autoAdjustOverflow,p=e.arrowPointAtCenter,d={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(l+n)]},topRight:{points:["br","tc"],offset:[a+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(l+n)]},bottomRight:{points:["tr","bc"],offset:[a+n,4]},rightBottom:{points:["bl","cr"],offset:[4,l+n]},bottomLeft:{points:["tl","bc"],offset:[-(a+n),4]},leftBottom:{points:["br","cl"],offset:[-4,l+n]}};return Object.keys(d).forEach((function(e){d[e]=p?Object(r.a)(Object(r.a)({},d[e]),{overflow:u(f),targetOffset:c}):Object(r.a)(Object(r.a)({},o.a[e]),{overflow:u(f)}),d[e].ignoreShake=!0})),d}},NYSw:function(e,t,n){var r=n("BqUW"),o=n("tLQN");e.exports=function e(t,n,i,a,c){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,c))}},NbvU:function(e,t,n){var r=n("gEWz"),o=n("SU8Q"),i=n("T6vp"),a=i&&i.isMap,c=a?o(a):r;e.exports=c},Ndl3:function(e,t,n){var r=n("9y2L"),o=n("tLQN");e.exports=function(e){return o(e)&&r(e)}},Nogd:function(e,t,n){"use strict";e.exports=function(e,t){if("function"!=typeof t)throw new TypeError(e+" expects a function, but was given "+t+".")}},NsGk:function(e,t,n){t.components={"component---node-modules-antv-gatsby-theme-antv-site-pages-404-tsx":function(){return n.e(0).then(n.bind(null,"6xU9"))},"component---node-modules-antv-gatsby-theme-antv-site-pages-index-tsx":function(){return n.e(0).then(n.bind(null,"ekkc"))},"component---node-modules-antv-gatsby-theme-antv-site-templates-document-tsx":function(){return n.e(0).then(n.bind(null,"2zWp"))},"component---node-modules-antv-gatsby-theme-antv-site-templates-example-tsx":function(){return n.e(0).then(n.bind(null,"YSjd"))},"component---site-pages-index-en-tsx":function(){return n.e(0).then(n.bind(null,"ug36"))},"component---site-pages-index-zh-tsx":function(){return n.e(0).then(n.bind(null,"jAeI"))}}},"O+tk":function(e,t,n){"use strict";var r=n("IGGJ");t.__esModule=!0,t.withPrefix=h,t.withAssetPrefix=function(e){return h(e,v())},t.navigateTo=t.replace=t.push=t.navigate=t.default=void 0;var o=r(n("LdEA")),i=r(n("1Pcy")),a=r(n("W/Kd")),c=r(n("97Jx")),u=r(n("aWzz")),s=r(n("ERkP")),l=n("tYqs"),f=n("7kqo"),p=n("RYsc");t.parsePath=p.parsePath;var d=function(e){return null==e?void 0:e.startsWith("/")};function h(e,t){var n,r;if(void 0===t&&(t=y()),!m(e))return e;if(e.startsWith("./")||e.startsWith("../"))return e;var o=null!==(n=null!==(r=t)&&void 0!==r?r:v())&&void 0!==n?n:"/";return""+((null==o?void 0:o.endsWith("/"))?o.slice(0,-1):o)+(e.startsWith("/")?e:"/"+e)}var v=function(){return""},y=function(){return""},m=function(e){return e&&!e.startsWith("http://")&&!e.startsWith("https://")&&!e.startsWith("//")};var g=function(e,t){return"number"==typeof e?e:m(e)?d(e)?h(e):function(e,t){return d(e)?e:(0,f.resolve)(e,t)}(e,t):e},b={activeClassName:u.default.string,activeStyle:u.default.object,partiallyActive:u.default.bool};function O(e){return s.default.createElement(l.Location,null,(function(t){var n=t.location;return s.default.createElement(w,(0,c.default)({},e,{_location:n}))}))}var w=function(e){function t(t){var n;(n=e.call(this,t)||this).defaultGetProps=function(e){var t=e.isPartiallyCurrent,r=e.isCurrent;return(n.props.partiallyActive?t:r)?{className:[n.props.className,n.props.activeClassName].filter(Boolean).join(" "),style:(0,c.default)({},n.props.style,n.props.activeStyle)}:null};var r=!1;return"undefined"!=typeof window&&window.IntersectionObserver&&(r=!0),n.state={IOSupported:r},n.handleRef=n.handleRef.bind((0,i.default)(n)),n}(0,a.default)(t,e);var n=t.prototype;return n._prefetch=function(){var e=window.location.pathname;this.props._location&&this.props._location.pathname&&(e=this.props._location.pathname);var t=g(this.props.to,e),n=(0,p.parsePath)(t).pathname;e!==n&&___loader.enqueue(n)},n.componentDidUpdate=function(e,t){this.props.to===e.to||this.state.IOSupported||this._prefetch()},n.componentDidMount=function(){this.state.IOSupported||this._prefetch()},n.componentWillUnmount=function(){if(this.io){var e=this.io,t=e.instance,n=e.el;t.unobserve(n),t.disconnect()}},n.handleRef=function(e){var t,n,r,o=this;this.props.innerRef&&this.props.innerRef.hasOwnProperty("current")?this.props.innerRef.current=e:this.props.innerRef&&this.props.innerRef(e),this.state.IOSupported&&e&&(this.io=(t=e,n=function(){o._prefetch()},(r=new window.IntersectionObserver((function(e){e.forEach((function(e){t===e.target&&(e.isIntersecting||e.intersectionRatio>0)&&(r.unobserve(t),r.disconnect(),n())}))}))).observe(t),{instance:r,el:t}))},n.render=function(){var e=this,t=this.props,n=t.to,r=t.getProps,i=void 0===r?this.defaultGetProps:r,a=t.onClick,u=t.onMouseEnter,f=(t.activeClassName,t.activeStyle,t.innerRef,t.partiallyActive,t.state),d=t.replace,h=t._location,v=(0,o.default)(t,["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"]);var y=g(n,h.pathname);return m(y)?s.default.createElement(l.Link,(0,c.default)({to:y,state:f,getProps:i,innerRef:this.handleRef,onMouseEnter:function(e){u&&u(e),___loader.hovering((0,p.parsePath)(y).pathname)},onClick:function(t){if(a&&a(t),!(0!==t.button||e.props.target||t.defaultPrevented||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)){t.preventDefault();var n=d,r=encodeURI(y)===h.pathname;"boolean"!=typeof d&&r&&(n=!0),window.___navigate(y,{state:f,replace:n})}return!0}},v)):s.default.createElement("a",(0,c.default)({href:y},v))},t}(s.default.Component);w.propTypes=(0,c.default)({},b,{onClick:u.default.func,to:u.default.string.isRequired,replace:u.default.bool,state:u.default.object});var _=function(e,t,n){return console.warn('The "'+e+'" method is now deprecated and will be removed in Gatsby v'+n+'. Please use "'+t+'" instead.')},x=s.default.forwardRef((function(e,t){return s.default.createElement(O,(0,c.default)({innerRef:t},e))}));t.default=x;t.navigate=function(e,t){window.___navigate(g(e,window.location.pathname),t)};var E=function(e){_("push","navigate",3),window.___push(g(e,window.location.pathname))};t.push=E;t.replace=function(e){_("replace","navigate",3),window.___replace(g(e,window.location.pathname))};t.navigateTo=function(e){return _("navigateTo","navigate",3),E(e)}},O82g:function(e,t,n){},O94r:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},OApa:function(e,t,n){(function(t){n("fmYM"),n("tQbP"),e.exports=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}var o=function(e,t){this.next=null,this.key=e,this.data=t,this.left=null,this.right=null};function i(e,t){return e>t?1:e<t?-1:0}function a(e,t,n){for(var r=new o(null,null),i=r,a=r;;){var c=n(e,t.key);if(c<0){if(null===t.left)break;if(n(e,t.left.key)<0){var u=t.left;if(t.left=u.right,u.right=t,null===(t=u).left)break}a.left=t,a=t,t=t.left}else{if(!(c>0))break;if(null===t.right)break;if(n(e,t.right.key)>0&&(u=t.right,t.right=u.left,u.left=t,null===(t=u).right))break;i.right=t,i=t,t=t.right}}return i.right=t.left,a.left=t.right,t.left=r.right,t.right=r.left,t}function c(e,t,n,r){var i=new o(e,t);if(null===n)return i.left=i.right=null,i;var c=r(e,(n=a(e,n,r)).key);return c<0?(i.left=n.left,i.right=n,n.left=null):c>=0&&(i.right=n.right,i.left=n,n.right=null),i}function u(e,t,n){var r=null,o=null;if(t){var i=n((t=a(e,t,n)).key,e);0===i?(r=t.left,o=t.right):i<0?(o=t.right,t.right=null,r=t):(r=t.left,t.left=null,o=t)}return{left:r,right:o}}var s=function(){function e(e){void 0===e&&(e=i),this._root=null,this._size=0,this._comparator=e}return e.prototype.insert=function(e,t){return this._size++,this._root=c(e,t,this._root,this._comparator)},e.prototype.add=function(e,t){var n=new o(e,t);null===this._root&&(n.left=n.right=null,this._size++,this._root=n);var r=this._comparator,i=a(e,this._root,r),c=r(e,i.key);return 0===c?this._root=i:(c<0?(n.left=i.left,n.right=i,i.left=null):c>0&&(n.right=i.right,n.left=i,i.right=null),this._size++,this._root=n),this._root},e.prototype.remove=function(e){this._root=this._remove(e,this._root,this._comparator)},e.prototype._remove=function(e,t,n){var r;return null===t?null:0===n(e,(t=a(e,t,n)).key)?(null===t.left?r=t.right:(r=a(e,t.left,n)).right=t.right,this._size--,r):t},e.prototype.pop=function(){var e=this._root;if(e){for(;e.left;)e=e.left;return this._root=a(e.key,this._root,this._comparator),this._root=this._remove(e.key,this._root,this._comparator),{key:e.key,data:e.data}}return null},e.prototype.findStatic=function(e){for(var t=this._root,n=this._comparator;t;){var r=n(e,t.key);if(0===r)return t;t=r<0?t.left:t.right}return null},e.prototype.find=function(e){return this._root&&(this._root=a(e,this._root,this._comparator),0!==this._comparator(e,this._root.key))?null:this._root},e.prototype.contains=function(e){for(var t=this._root,n=this._comparator;t;){var r=n(e,t.key);if(0===r)return!0;t=r<0?t.left:t.right}return!1},e.prototype.forEach=function(e,t){for(var n=this._root,r=[],o=!1;!o;)null!==n?(r.push(n),n=n.left):0!==r.length?(n=r.pop(),e.call(t,n),n=n.right):o=!0;return this},e.prototype.range=function(e,t,n,r){for(var o=[],i=this._comparator,a=this._root;0!==o.length||a;)if(a)o.push(a),a=a.left;else{if(i((a=o.pop()).key,t)>0)break;if(i(a.key,e)>=0&&n.call(r,a))return this;a=a.right}return this},e.prototype.keys=function(){var e=[];return this.forEach((function(t){var n=t.key;return e.push(n)})),e},e.prototype.values=function(){var e=[];return this.forEach((function(t){var n=t.data;return e.push(n)})),e},e.prototype.min=function(){return this._root?this.minNode(this._root).key:null},e.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},e.prototype.minNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.left;)e=e.left;return e},e.prototype.maxNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.right;)e=e.right;return e},e.prototype.at=function(e){for(var t=this._root,n=!1,r=0,o=[];!n;)if(t)o.push(t),t=t.left;else if(o.length>0){if(t=o.pop(),r===e)return t;r++,t=t.right}else n=!0;return null},e.prototype.next=function(e){var t=this._root,n=null;if(e.right){for(n=e.right;n.left;)n=n.left;return n}for(var r=this._comparator;t;){var o=r(e.key,t.key);if(0===o)break;o<0?(n=t,t=t.left):t=t.right}return n},e.prototype.prev=function(e){var t=this._root,n=null;if(null!==e.left){for(n=e.left;n.right;)n=n.right;return n}for(var r=this._comparator;t;){var o=r(e.key,t.key);if(0===o)break;o<0?t=t.left:(n=t,t=t.right)}return n},e.prototype.clear=function(){return this._root=null,this._size=0,this},e.prototype.toList=function(){return function(e){for(var t=e,n=[],r=!1,i=new o(null,null),a=i;!r;)t?(n.push(t),t=t.left):n.length>0?t=(t=a=a.next=n.pop()).right:r=!0;return a.next=null,i.next}(this._root)},e.prototype.load=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1);var r=e.length,i=this._comparator;if(n&&function e(t,n,r,o,i){if(!(r>=o)){for(var a=t[r+o>>1],c=r-1,u=o+1;;){do{c++}while(i(t[c],a)<0);do{u--}while(i(t[u],a)>0);if(c>=u)break;var s=t[c];t[c]=t[u],t[u]=s,s=n[c],n[c]=n[u],n[u]=s}e(t,n,r,u,i),e(t,n,u+1,o,i)}}(e,t,0,r-1,i),null===this._root)this._root=function e(t,n,r,i){var a=i-r;if(a>0){var c=r+Math.floor(a/2),u=t[c],s=n[c],l=new o(u,s);return l.left=e(t,n,r,c),l.right=e(t,n,c+1,i),l}return null}(e,t,0,r),this._size=r;else{var a=function(e,t,n){for(var r=new o(null,null),i=r,a=e,c=t;null!==a&&null!==c;)n(a.key,c.key)<0?(i.next=a,a=a.next):(i.next=c,c=c.next),i=i.next;return null!==a?i.next=a:null!==c&&(i.next=c),r.next}(this.toList(),function(e,t){for(var n=new o(null,null),r=n,i=0;i<e.length;i++)r=r.next=new o(e[i],t[i]);return r.next=null,n.next}(e,t),i);r=this._size+r,this._root=function e(t,n,r){var o=r-n;if(o>0){var i=n+Math.floor(o/2),a=e(t,n,i),c=t.head;return c.left=a,t.head=t.head.next,c.right=e(t,i+1,r),c}return null}({head:a},0,r)}return this},e.prototype.isEmpty=function(){return null===this._root},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),e.prototype.toString=function(e){void 0===e&&(e=function(e){return String(e.key)});var t=[];return function e(t,n,r,o,i){if(t){o(n+(r?"└── ":"├── ")+i(t)+"\n");var a=n+(r?" ":"│ ");t.left&&e(t.left,a,!1,o,i),t.right&&e(t.right,a,!0,o,i)}}(this._root,"",!0,(function(e){return t.push(e)}),e),t.join("")},e.prototype.update=function(e,t,n){var r=this._comparator,o=u(e,this._root,r),i=o.left,s=o.right;r(e,t)<0?s=c(t,n,s,r):i=c(t,n,i,r),this._root=function(e,t,n){return null===t?e:(null===e||((t=a(e.key,t,n)).left=e),t)}(i,s,r)},e.prototype.split=function(e){return u(e,this._root,this._comparator)},e}(),l=function(e,t){return e.ll.x<=t.x&&t.x<=e.ur.x&&e.ll.y<=t.y&&t.y<=e.ur.y},f=function(e,t){if(t.ur.x<e.ll.x||e.ur.x<t.ll.x||t.ur.y<e.ll.y||e.ur.y<t.ll.y)return null;var n=e.ll.x<t.ll.x?t.ll.x:e.ll.x,r=e.ur.x<t.ur.x?e.ur.x:t.ur.x;return{ll:{x:n,y:e.ll.y<t.ll.y?t.ll.y:e.ll.y},ur:{x:r,y:e.ur.y<t.ur.y?e.ur.y:t.ur.y}}},p=Number.EPSILON;void 0===p&&(p=Math.pow(2,-52));var d=p*p,h=function(e,t){if(-p<e&&e<p&&-p<t&&t<p)return 0;var n=e-t;return n*n<d*e*t?0:e<t?-1:1},v=function(){function t(){e(this,t),this.reset()}return r(t,[{key:"reset",value:function(){this.xRounder=new y,this.yRounder=new y}},{key:"round",value:function(e,t){return{x:this.xRounder.round(e),y:this.yRounder.round(t)}}}]),t}(),y=function(){function t(){e(this,t),this.tree=new s,this.round(0)}return r(t,[{key:"round",value:function(e){var t=this.tree.add(e),n=this.tree.prev(t);if(null!==n&&0===h(t.key,n.key))return this.tree.remove(e),n.key;var r=this.tree.next(t);return null!==r&&0===h(t.key,r.key)?(this.tree.remove(e),r.key):e}}]),t}(),m=new v,g=function(e,t){return e.x*t.y-e.y*t.x},b=function(e,t){return e.x*t.x+e.y*t.y},O=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},o={x:n.x-e.x,y:n.y-e.y},i=g(r,o);return h(i,0)},w=function(e){return Math.sqrt(b(e,e))},_=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},o={x:n.x-e.x,y:n.y-e.y};return b(o,r)/w(o)/w(r)},x=function(e,t,n){return 0===t.y?null:{x:e.x+t.x/t.y*(n-e.y),y:n}},E=function(e,t,n){return 0===t.x?null:{x:n,y:e.y+t.y/t.x*(n-e.x)}},S=function(){function t(n,r){e(this,t),void 0===n.events?n.events=[this]:n.events.push(this),this.point=n,this.isLeft=r}return r(t,null,[{key:"compare",value:function(e,n){var r=t.comparePoints(e.point,n.point);return 0!==r?r:(e.point!==n.point&&e.link(n),e.isLeft!==n.isLeft?e.isLeft?1:-1:j.compare(e.segment,n.segment))}},{key:"comparePoints",value:function(e,t){return e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0}}]),r(t,[{key:"link",value:function(e){if(e.point===this.point)throw new Error("Tried to link already linked events");for(var t=e.point.events,n=0,r=t.length;n<r;n++){var o=t[n];this.point.events.push(o),o.point=this.point}this.checkForConsuming()}},{key:"checkForConsuming",value:function(){for(var e=this.point.events.length,t=0;t<e;t++){var n=this.point.events[t];if(void 0===n.segment.consumedBy)for(var r=t+1;r<e;r++){var o=this.point.events[r];void 0===o.consumedBy&&n.otherSE.point.events===o.otherSE.point.events&&n.segment.consume(o.segment)}}}},{key:"getAvailableLinkedEvents",value:function(){for(var e=[],t=0,n=this.point.events.length;t<n;t++){var r=this.point.events[t];r!==this&&!r.segment.ringOut&&r.segment.isInResult()&&e.push(r)}return e}},{key:"getLeftmostComparator",value:function(e){var t=this,n=new Map,r=function(r){var o,i,a,c,u,s=r.otherSE;n.set(r,{sine:(o=t.point,i=e.point,a=s.point,c={x:i.x-o.x,y:i.y-o.y},u={x:a.x-o.x,y:a.y-o.y},g(u,c)/w(u)/w(c)),cosine:_(t.point,e.point,s.point)})};return function(e,t){n.has(e)||r(e),n.has(t)||r(t);var o=n.get(e),i=o.sine,a=o.cosine,c=n.get(t),u=c.sine,s=c.cosine;return i>=0&&u>=0?a<s?1:a>s?-1:0:i<0&&u<0?a<s?-1:a>s?1:0:u<i?-1:u>i?1:0}}}]),t}(),C=0,j=function(){function t(n,r,o,i){e(this,t),this.id=++C,this.leftSE=n,n.segment=this,n.otherSE=r,this.rightSE=r,r.segment=this,r.otherSE=n,this.rings=o,this.windings=i}return r(t,null,[{key:"compare",value:function(e,t){var n=e.leftSE.point.x,r=t.leftSE.point.x,o=e.rightSE.point.x,i=t.rightSE.point.x;if(i<n)return 1;if(o<r)return-1;var a=e.leftSE.point.y,c=t.leftSE.point.y,u=e.rightSE.point.y,s=t.rightSE.point.y;if(n<r){if(c<a&&c<u)return 1;if(c>a&&c>u)return-1;var l=e.comparePoint(t.leftSE.point);if(l<0)return 1;if(l>0)return-1;var f=t.comparePoint(e.rightSE.point);return 0!==f?f:-1}if(n>r){if(a<c&&a<s)return-1;if(a>c&&a>s)return 1;var p=t.comparePoint(e.leftSE.point);if(0!==p)return p;var d=e.comparePoint(t.rightSE.point);return d<0?1:d>0?-1:1}if(a<c)return-1;if(a>c)return 1;if(o<i){var h=t.comparePoint(e.rightSE.point);if(0!==h)return h}if(o>i){var v=e.comparePoint(t.rightSE.point);if(v<0)return 1;if(v>0)return-1}if(o!==i){var y=u-a,m=o-n,g=s-c,b=i-r;if(y>m&&g<b)return 1;if(y<m&&g>b)return-1}return o>i?1:o<i||u<s?-1:u>s?1:e.id<t.id?-1:e.id>t.id?1:0}}]),r(t,[{key:"replaceRightSE",value:function(e){this.rightSE=e,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var e=this.leftSE.point.y,t=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:e<t?e:t},ur:{x:this.rightSE.point.x,y:e>t?e:t}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(e){return e.x===this.leftSE.point.x&&e.y===this.leftSE.point.y||e.x===this.rightSE.point.x&&e.y===this.rightSE.point.y}},{key:"comparePoint",value:function(e){if(this.isAnEndpoint(e))return 0;var t=this.leftSE.point,n=this.rightSE.point,r=this.vector();if(t.x===n.x)return e.x===t.x?0:e.x<t.x?1:-1;var o=(e.y-t.y)/r.y,i=t.x+o*r.x;if(e.x===i)return 0;var a=(e.x-t.x)/r.x,c=t.y+a*r.y;return e.y===c?0:e.y<c?-1:1}},{key:"getIntersection",value:function(e){var t=this.bbox(),n=e.bbox(),r=f(t,n);if(null===r)return null;var o=this.leftSE.point,i=this.rightSE.point,a=e.leftSE.point,c=e.rightSE.point,u=l(t,a)&&0===this.comparePoint(a),s=l(n,o)&&0===e.comparePoint(o),p=l(t,c)&&0===this.comparePoint(c),d=l(n,i)&&0===e.comparePoint(i);if(s&&u)return d&&!p?i:!d&&p?c:null;if(s)return p&&o.x===c.x&&o.y===c.y?null:o;if(u)return d&&i.x===a.x&&i.y===a.y?null:a;if(d&&p)return null;if(d)return i;if(p)return c;var h=function(e,t,n,r){if(0===t.x)return E(n,r,e.x);if(0===r.x)return E(e,t,n.x);if(0===t.y)return x(n,r,e.y);if(0===r.y)return x(e,t,n.y);var o=g(t,r);if(0==o)return null;var i={x:n.x-e.x,y:n.y-e.y},a=g(i,t)/o,c=g(i,r)/o;return{x:(e.x+c*t.x+(n.x+a*r.x))/2,y:(e.y+c*t.y+(n.y+a*r.y))/2}}(o,this.vector(),a,e.vector());return null===h?null:l(r,h)?m.round(h.x,h.y):null}},{key:"split",value:function(e){var n=[],r=void 0!==e.events,o=new S(e,!0),i=new S(e,!1),a=this.rightSE;this.replaceRightSE(i),n.push(i),n.push(o);var c=new t(o,a,this.rings.slice(),this.windings.slice());return S.comparePoints(c.leftSE.point,c.rightSE.point)>0&&c.swapEvents(),S.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),r&&(o.checkForConsuming(),i.checkForConsuming()),n}},{key:"swapEvents",value:function(){var e=this.rightSE;this.rightSE=this.leftSE,this.leftSE=e,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var t=0,n=this.windings.length;t<n;t++)this.windings[t]*=-1}},{key:"consume",value:function(e){for(var n=this,r=e;n.consumedBy;)n=n.consumedBy;for(;r.consumedBy;)r=r.consumedBy;var o=t.compare(n,r);if(0!==o){if(o>0){var i=n;n=r,r=i}if(n.prev===r){var a=n;n=r,r=a}for(var c=0,u=r.rings.length;c<u;c++){var s=r.rings[c],l=r.windings[c],f=n.rings.indexOf(s);-1===f?(n.rings.push(s),n.windings.push(l)):n.windings[f]+=l}r.rings=null,r.windings=null,r.consumedBy=n,r.leftSE.consumedBy=n.leftSE,r.rightSE.consumedBy=n.rightSE}}},{key:"prevInResult",value:function(){return void 0!==this._prevInResult||(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null),this._prevInResult}},{key:"beforeState",value:function(){if(void 0!==this._beforeState)return this._beforeState;if(this.prev){var e=this.prev.consumedBy||this.prev;this._beforeState=e.afterState()}else this._beforeState={rings:[],windings:[],multiPolys:[]};return this._beforeState}},{key:"afterState",value:function(){if(void 0!==this._afterState)return this._afterState;var e=this.beforeState();this._afterState={rings:e.rings.slice(0),windings:e.windings.slice(0),multiPolys:[]};for(var t=this._afterState.rings,n=this._afterState.windings,r=this._afterState.multiPolys,o=0,i=this.rings.length;o<i;o++){var a=this.rings[o],c=this.windings[o],u=t.indexOf(a);-1===u?(t.push(a),n.push(c)):n[u]+=c}for(var s=[],l=[],f=0,p=t.length;f<p;f++)if(0!==n[f]){var d=t[f],h=d.poly;if(-1===l.indexOf(h))if(d.isExterior)s.push(h);else{-1===l.indexOf(h)&&l.push(h);var v=s.indexOf(d.poly);-1!==v&&s.splice(v,1)}}for(var y=0,m=s.length;y<m;y++){var g=s[y].multiPoly;-1===r.indexOf(g)&&r.push(g)}return this._afterState}},{key:"isInResult",value:function(){if(this.consumedBy)return!1;if(void 0!==this._isInResult)return this._isInResult;var e=this.beforeState().multiPolys,t=this.afterState().multiPolys;switch(D.type){case"union":var n=0===e.length,r=0===t.length;this._isInResult=n!==r;break;case"intersection":var o,i;e.length<t.length?(o=e.length,i=t.length):(o=t.length,i=e.length),this._isInResult=i===D.numMultiPolys&&o<i;break;case"xor":var a=Math.abs(e.length-t.length);this._isInResult=a%2==1;break;case"difference":var c=function(e){return 1===e.length&&e[0].isSubject};this._isInResult=c(e)!==c(t);break;default:throw new Error("Unrecognized operation type found ".concat(D.type))}return this._isInResult}}],[{key:"fromRing",value:function(e,n,r){var o,i,a,c=S.comparePoints(e,n);if(c<0)o=e,i=n,a=1;else{if(!(c>0))throw new Error("Tried to create degenerate segment at [".concat(e.x,", ").concat(e.y,"]"));o=n,i=e,a=-1}return new t(new S(o,!0),new S(i,!1),[r],[a])}}]),t}(),k=function(){function t(n,r,o){if(e(this,t),!Array.isArray(n)||0===n.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=r,this.isExterior=o,this.segments=[],"number"!=typeof n[0][0]||"number"!=typeof n[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var i=m.round(n[0][0],n[0][1]);this.bbox={ll:{x:i.x,y:i.y},ur:{x:i.x,y:i.y}};for(var a=i,c=1,u=n.length;c<u;c++){if("number"!=typeof n[c][0]||"number"!=typeof n[c][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var s=m.round(n[c][0],n[c][1]);s.x===a.x&&s.y===a.y||(this.segments.push(j.fromRing(a,s,this)),s.x<this.bbox.ll.x&&(this.bbox.ll.x=s.x),s.y<this.bbox.ll.y&&(this.bbox.ll.y=s.y),s.x>this.bbox.ur.x&&(this.bbox.ur.x=s.x),s.y>this.bbox.ur.y&&(this.bbox.ur.y=s.y),a=s)}i.x===a.x&&i.y===a.y||this.segments.push(j.fromRing(a,i,this))}return r(t,[{key:"getSweepEvents",value:function(){for(var e=[],t=0,n=this.segments.length;t<n;t++){var r=this.segments[t];e.push(r.leftSE),e.push(r.rightSE)}return e}}]),t}(),P=function(){function t(n,r){if(e(this,t),!Array.isArray(n))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new k(n[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(var o=1,i=n.length;o<i;o++){var a=new k(n[o],this,!1);a.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=a.bbox.ll.x),a.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=a.bbox.ll.y),a.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=a.bbox.ur.x),a.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=a.bbox.ur.y),this.interiorRings.push(a)}this.multiPoly=r}return r(t,[{key:"getSweepEvents",value:function(){for(var e=this.exteriorRing.getSweepEvents(),t=0,n=this.interiorRings.length;t<n;t++)for(var r=this.interiorRings[t].getSweepEvents(),o=0,i=r.length;o<i;o++)e.push(r[o]);return e}}]),t}(),T=function(){function t(n,r){if(e(this,t),!Array.isArray(n))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{"number"==typeof n[0][0][0]&&(n=[n])}catch(c){}this.polys=[],this.bbox={ll:{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},ur:{x:Number.NEGATIVE_INFINITY,y:Number.NEGATIVE_INFINITY}};for(var o=0,i=n.length;o<i;o++){var a=new P(n[o],this);a.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=a.bbox.ll.x),a.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=a.bbox.ll.y),a.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=a.bbox.ur.x),a.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=a.bbox.ur.y),this.polys.push(a)}this.isSubject=r}return r(t,[{key:"getSweepEvents",value:function(){for(var e=[],t=0,n=this.polys.length;t<n;t++)for(var r=this.polys[t].getSweepEvents(),o=0,i=r.length;o<i;o++)e.push(r[o]);return e}}]),t}(),M=function(){function t(n){e(this,t),this.events=n;for(var r=0,o=n.length;r<o;r++)n[r].segment.ringOut=this;this.poly=null}return r(t,null,[{key:"factory",value:function(e){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];if(i.isInResult()&&!i.ringOut){for(var a=null,c=i.leftSE,u=i.rightSE,s=[c],l=c.point,f=[];a=c,c=u,s.push(c),c.point!==l;)for(;;){var p=c.getAvailableLinkedEvents();if(0===p.length){var d=s[0].point,h=s[s.length-1].point;throw new Error("Unable to complete output ring starting at [".concat(d.x,",")+" ".concat(d.y,"]. Last matching segment found ends at")+" [".concat(h.x,", ").concat(h.y,"]."))}if(1===p.length){u=p[0].otherSE;break}for(var v=null,y=0,m=f.length;y<m;y++)if(f[y].point===c.point){v=y;break}if(null===v){f.push({index:s.length,point:c.point});var g=c.getLeftmostComparator(a);u=p.sort(g)[0].otherSE;break}var b=f.splice(v)[0],O=s.splice(b.index);O.unshift(O[0].otherSE),n.push(new t(O.reverse()))}n.push(new t(s))}}return n}}]),r(t,[{key:"getGeom",value:function(){for(var e=this.events[0].point,t=[e],n=1,r=this.events.length-1;n<r;n++){var o=this.events[n].point,i=this.events[n+1].point;0!==O(o,e,i)&&(t.push(o),e=o)}if(1===t.length)return null;var a=t[0],c=t[1];0===O(a,e,c)&&t.shift(),t.push(t[0]);for(var u=this.isExteriorRing()?1:-1,s=this.isExteriorRing()?0:t.length-1,l=this.isExteriorRing()?t.length:-1,f=[],p=s;p!=l;p+=u)f.push([t[p].x,t[p].y]);return f}},{key:"isExteriorRing",value:function(){if(void 0===this._isExteriorRing){var e=this.enclosingRing();this._isExteriorRing=!e||!e.isExteriorRing()}return this._isExteriorRing}},{key:"enclosingRing",value:function(){return void 0===this._enclosingRing&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}},{key:"_calcEnclosingRing",value:function(){for(var e=this.events[0],t=1,n=this.events.length;t<n;t++){var r=this.events[t];S.compare(e,r)>0&&(e=r)}for(var o=e.segment.prevInResult(),i=o?o.prevInResult():null;;){if(!o)return null;if(!i)return o.ringOut;if(i.ringOut!==o.ringOut)return i.ringOut.enclosingRing()!==o.ringOut?o.ringOut:o.ringOut.enclosingRing();o=i.prevInResult(),i=o?o.prevInResult():null}}}]),t}(),A=function(){function t(n){e(this,t),this.exteriorRing=n,n.poly=this,this.interiorRings=[]}return r(t,[{key:"addInterior",value:function(e){this.interiorRings.push(e),e.poly=this}},{key:"getGeom",value:function(){var e=[this.exteriorRing.getGeom()];if(null===e[0])return null;for(var t=0,n=this.interiorRings.length;t<n;t++){var r=this.interiorRings[t].getGeom();null!==r&&e.push(r)}return e}}]),t}(),L=function(){function t(n){e(this,t),this.rings=n,this.polys=this._composePolys(n)}return r(t,[{key:"getGeom",value:function(){for(var e=[],t=0,n=this.polys.length;t<n;t++){var r=this.polys[t].getGeom();null!==r&&e.push(r)}return e}},{key:"_composePolys",value:function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];if(!o.poly)if(o.isExteriorRing())t.push(new A(o));else{var i=o.enclosingRing();i.poly||t.push(new A(i)),i.poly.addInterior(o)}}return t}}]),t}(),R=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.compare;e(this,t),this.queue=n,this.tree=new s(r),this.segments=[]}return r(t,[{key:"process",value:function(e){var t=e.segment,n=[];if(e.consumedBy)return e.isLeft?this.queue.remove(e.otherSE):this.tree.remove(t),n;var r=e.isLeft?this.tree.insert(t):this.tree.find(t);if(!r)throw new Error("Unable to find segment #".concat(t.id," ")+"[".concat(t.leftSE.point.x,", ").concat(t.leftSE.point.y,"] -> ")+"[".concat(t.rightSE.point.x,", ").concat(t.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var o=r,i=r,a=void 0,c=void 0;void 0===a;)null===(o=this.tree.prev(o))?a=null:void 0===o.key.consumedBy&&(a=o.key);for(;void 0===c;)null===(i=this.tree.next(i))?c=null:void 0===i.key.consumedBy&&(c=i.key);if(e.isLeft){var u=null;if(a){var s=a.getIntersection(t);if(null!==s&&(t.isAnEndpoint(s)||(u=s),!a.isAnEndpoint(s)))for(var l=this._splitSafely(a,s),f=0,p=l.length;f<p;f++)n.push(l[f])}var d=null;if(c){var h=c.getIntersection(t);if(null!==h&&(t.isAnEndpoint(h)||(d=h),!c.isAnEndpoint(h)))for(var v=this._splitSafely(c,h),y=0,m=v.length;y<m;y++)n.push(v[y])}if(null!==u||null!==d){var g=null;g=null===u?d:null===d||S.comparePoints(u,d)<=0?u:d,this.queue.remove(t.rightSE),n.push(t.rightSE);for(var b=t.split(g),O=0,w=b.length;O<w;O++)n.push(b[O])}n.length>0?(this.tree.remove(t),n.push(e)):(this.segments.push(t),t.prev=a)}else{if(a&&c){var _=a.getIntersection(c);if(null!==_){if(!a.isAnEndpoint(_))for(var x=this._splitSafely(a,_),E=0,C=x.length;E<C;E++)n.push(x[E]);if(!c.isAnEndpoint(_))for(var j=this._splitSafely(c,_),k=0,P=j.length;k<P;k++)n.push(j[k])}}this.tree.remove(t)}return n}},{key:"_splitSafely",value:function(e,t){this.tree.remove(e);var n=e.rightSE;this.queue.remove(n);var r=e.split(t);return r.push(n),void 0===e.consumedBy&&this.tree.insert(e),r}}]),t}(),N=void 0!==t&&{}.POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,I=void 0!==t&&{}.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6,D=new(function(){function t(){e(this,t)}return r(t,[{key:"run",value:function(e,t,n){D.type=e,m.reset();for(var r=[new T(t,!0)],o=0,i=n.length;o<i;o++)r.push(new T(n[o],!1));if(D.numMultiPolys=r.length,"difference"===D.type)for(var a=r[0],c=1;c<r.length;)null!==f(r[c].bbox,a.bbox)?c++:r.splice(c,1);if("intersection"===D.type)for(var u=0,l=r.length;u<l;u++)for(var p=r[u],d=u+1,h=r.length;d<h;d++)if(null===f(p.bbox,r[d].bbox))return[];for(var v=new s(S.compare),y=0,g=r.length;y<g;y++)for(var b=r[y].getSweepEvents(),O=0,w=b.length;O<w;O++)if(v.insert(b[O]),v.size>N)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var _=new R(v),x=v.size,E=v.pop();E;){var C=E.key;if(v.size===x){var j=C.segment;throw new Error("Unable to pop() ".concat(C.isLeft?"left":"right"," SweepEvent ")+"[".concat(C.point.x,", ").concat(C.point.y,"] from segment #").concat(j.id," ")+"[".concat(j.leftSE.point.x,", ").concat(j.leftSE.point.y,"] -> ")+"[".concat(j.rightSE.point.x,", ").concat(j.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(v.size>N)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(_.segments.length>I)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var k=_.process(C),P=0,A=k.length;P<A;P++){var F=k[P];void 0===F.consumedBy&&v.insert(F)}x=v.size,E=v.pop()}m.reset();var z=M.factory(_.segments);return new L(z).getGeom()}}]),t}());return{union:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return D.run("union",e,n)},intersection:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return D.run("intersection",e,n)},xor:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return D.run("xor",e,n)},difference:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return D.run("difference",e,n)}}}()}).call(this,n("F63i"))},OBn4:function(e,t,n){var r=n("vxC8")(n("IBsm"),"Set");e.exports=r},OHlR:function(e,t,n){"use strict";var r=n("eT/W"),o=r.Error,i=r.Ok;e.exports=function(e){return e.matchWith({Failure:function(e){var t=e.value;return o(t)},Success:function(e){var t=e.value;return i(t)}})}},OJPH:function(e,t,n){"use strict";var r=n("y7Du"),o=n("fw2E"),i=Object(r.a)(o.a,"Map");t.a=i},OZKJ:function(e,t,n){"use strict";e.exports=function(){function e(e){var r=[];return e.AMapUI&&r.push(t(e.AMapUI)),e.Loca&&r.push(n(e.Loca)),Promise.all(r)}function t(e){return new Promise((function(t,n){var o=[];if(e.plugins)for(var u=0;u<e.plugins.length;u+=1)-1==i.AMapUI.plugins.indexOf(e.plugins[u])&&o.push(e.plugins[u]);if(a.AMapUI===r.failed)n("前次请求 AMapUI 失败");else if(a.AMapUI===r.notload){a.AMapUI=r.loading,i.AMapUI.version=e.version||i.AMapUI.version,u=i.AMapUI.version;var s=document.body||document.head,l=document.createElement("script");l.type="text/javascript",l.src="https://webapi.amap.com/ui/"+u+"/main.js",l.onerror=function(e){a.AMapUI=r.failed,n("请求 AMapUI 失败")},l.onload=function(){if(a.AMapUI=r.loaded,o.length)window.AMapUI.loadUI(o,(function(){for(var e=0,n=o.length;e<n;e++){var r=o[e].split("/").slice(-1)[0];window.AMapUI[r]=arguments[e]}for(t();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()}));else for(t();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()},s.appendChild(l)}else a.AMapUI===r.loaded?e.version&&e.version!==i.AMapUI.version?n("不允许多个版本 AMapUI 混用"):o.length?window.AMapUI.loadUI(o,(function(){for(var e=0,n=o.length;e<n;e++){var r=o[e].split("/").slice(-1)[0];window.AMapUI[r]=arguments[e]}t()})):t():e.version&&e.version!==i.AMapUI.version?n("不允许多个版本 AMapUI 混用"):c.AMapUI.push((function(e){e?n(e):o.length?window.AMapUI.loadUI(o,(function(){for(var e=0,n=o.length;e<n;e++){var r=o[e].split("/").slice(-1)[0];window.AMapUI[r]=arguments[e]}t()})):t()}))}))}function n(e){return new Promise((function(t,n){if(i.AMap.version.startsWith("2.0"))n("Loca 暂不适配 JSAPI 2.0,请使用 1.4.15");else if(a.Loca===r.failed)n("前次请求 Loca 失败");else if(a.Loca===r.notload){a.Loca=r.loading,i.Loca.version=e.version||i.Loca.version;var o=i.Loca.version,u=i.key,s=document.body||document.head,l=document.createElement("script");l.type="text/javascript",l.src="https://webapi.amap.com/loca?v="+o+"&key="+u,l.onerror=function(e){a.Loca=r.failed,n("请求 AMapUI 失败")},l.onload=function(){for(a.Loca=r.loaded,t();c.Loca.length;)c.Loca.splice(0,1)[0]()},s.appendChild(l)}else a.Loca===r.loaded?e.version&&e.version!==i.Loca.version?n("不允许多个版本 Loca 混用"):t():e.version&&e.version!==i.Loca.version?n("不允许多个版本 Loca 混用"):c.Loca.push((function(e){e?n(e):n()}))}))}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var r,o;(o=r||(r={})).notload="notload",o.loading="loading",o.loaded="loaded",o.failed="failed";var i={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:r.notload,AMapUI:r.notload,Loca:r.notload},c={AMap:[],AMapUI:[],Loca:[]},u=[];return{load:function(t){return new Promise((function(n,o){if(a.AMap==r.failed)o("");else if(a.AMap==r.notload){var c=t.key,s=t.version,l=t.plugins;c?(window.AMap&&"lbs.amap.com"!==location.host&&o("禁止多种API加载方式混用"),i.key=c,i.AMap.version=s||i.AMap.version,i.AMap.plugins=l||i.AMap.plugins,a.AMap=r.loading,s=document.body||document.head,window.___onAPILoaded=function(i){if(delete window.___onAPILoaded,i)a.AMap=r.failed,o(i);else for(a.AMap=r.loaded,e(t).then((function(){n(window.AMap)})).catch(o);u.length;)u.splice(0,1)[0]()},(l=document.createElement("script")).type="text/javascript",l.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+i.AMap.version+"&key="+c+"&plugin="+i.AMap.plugins.join(","),l.onerror=function(e){a.AMap=r.failed,o(e)},s.appendChild(l)):o("请填写key")}else if(a.AMap==r.loaded)if(t.key&&t.key!==i.key)o("多个不一致的 key");else if(t.version&&t.version!==i.AMap.version)o("不允许多个版本 JSAPI 混用");else{if(c=[],t.plugins)for(s=0;s<t.plugins.length;s+=1)-1==i.AMap.plugins.indexOf(t.plugins[s])&&c.push(t.plugins[s]);c.length?window.AMap.plugin(c,(function(){e(t).then((function(){n(window.AMap)})).catch(o)})):e(t).then((function(){n(window.AMap)})).catch(o)}else if(t.key&&t.key!==i.key)o("多个不一致的 key");else if(t.version&&t.version!==i.AMap.version)o("不允许多个版本 JSAPI 混用");else{var f=[];if(t.plugins)for(s=0;s<t.plugins.length;s+=1)-1==i.AMap.plugins.indexOf(t.plugins[s])&&f.push(t.plugins[s]);!function(e){"function"==typeof e&&(a.AMap===r.loaded?e(window.AMap):u.push(e))}((function(){f.length?window.AMap.plugin(f,(function(){e(t).then((function(){n(window.AMap)})).catch(o)})):e(t).then((function(){n(window.AMap)})).catch(o)}))}}))},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,i={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:r.notload,AMapUI:r.notload,Loca:r.notload},c={AMap:[],AMapUI:[],Loca:[]}}}}()},OaEy:function(e,t,n){"use strict";n("EFp3"),n("bKJz"),n("R9oj")},OfKG:function(e,t,n){var r=n("c7Qd");e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},OjVO:function(e,t,n){"use strict";t.a={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},Ol7k:function(e,t,n){"use strict";var r=n("PKem"),o=n("ZX9x"),i=r.e;i.Header=r.c,i.Footer=r.b,i.Content=r.a,i.Sider=o.b,t.a=i},"Os+v":function(e,t,n){"use strict";n.d(t,"a",(function(){return Y}));var r=n("OZKJ"),o=n.n(r),i=n("pufz"),a=n("zEXi"),c=n("K/oH"),u=n("s6Xb"),s=(n("qzOT"),n("yObT"));function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={top:0,right:0,bottom:0,left:0};if("number"==typeof e)return{top:e,right:e,bottom:e,left:e};if(Array.isArray(e)){if(4===e.length)return{top:e[0],right:e[1],bottom:e[2],left:e[3]};if(2===e.length)return{top:e[0],right:e[1],bottom:e[0],left:e[1]}}return Object.assign({},t,e)}var f=n("k0uE"),p=n("uNS2"),d={dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",normal:"amap://styles/normal",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true"};function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v,y,m,g,b,O,w,_,x,E,S,C=["id","style","minZoom","maxZoom","token","mapInstance","plugin"];function j(e,t,n){return(j=k()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&P(o,n.prototype),o}).apply(null,arguments)}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function P(e,t){return(P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function T(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(){M=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(j){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(j){return{type:"throw",arg:j}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var v={};c(v,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(S([])));m&&m!==t&&n.call(m,o)&&(v=m);var g=d.prototype=f.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==h(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=d,c(g,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(O.prototype),c(O.prototype,i,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,a,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function N(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||D(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){if(e){if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var H=0;window.forceWebGL=!0;var G=!1,W=[],Y=(v=Object(u.injectable)(),y=Object(u.inject)(i.TYPES.IGlobalConfigService),m=Object(u.inject)(i.TYPES.MapConfig),g=Object(u.inject)(i.TYPES.ICoordinateSystemService),b=Object(u.inject)(i.TYPES.IEventEmitter),v((_=V((w=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),U(this,"version",f.a["GAODE1.x"]),U(this,"simpleMapCoord",new s.a),U(this,"bgColor","rgba(0, 0, 0, 0)"),z(this,"configService",_,this),z(this,"config",x,this),z(this,"coordinateSystemService",E,this),z(this,"eventEmitter",S,this),U(this,"handleCameraChanged",(function(e){var n=e.camera,r=n.fov,o=n.near,a=n.far,c=n.height,u=n.pitch,s=n.rotation,l=n.aspect,f=n.position,p=t.getCenter(),d=p.lng,h=p.lat;if(t.emit("mapchange"),t.cameraChangedCallback){t.viewport.syncWithMapCamera({aspect:l,bearing:360-s,far:a,fov:r,cameraHeight:c,near:o,pitch:u,zoom:t.map.getZoom()-1,center:[d,h],offsetOrigin:[f.x,f.y]});var v=t.config.offsetZoom,y=void 0===v?12:v;t.viewport.getZoom()>y?t.coordinateSystemService.setCoordinateSystem(i.CoordinateSystem.P20_OFFSET):t.coordinateSystemService.setCoordinateSystem(i.CoordinateSystem.P20),t.cameraChangedCallback(t.viewport)}}))}var t,n,r,u,h;return t=e,(n=[{key:"setBgColor",value:function(e){this.bgColor=e}},{key:"addMarkerContainer",value:function(){var e=this.map.getContainer();if(null!==e){var t=e.getElementsByClassName("amap-maps")[0];this.markerContainer=a.f.create("div","l7-marker-container",t)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(e,t){-1!==i.MapServiceEvent.indexOf(e)?this.eventEmitter.on(e,t):this.map.on(e,t)}},{key:"off",value:function(e,t){-1!==i.MapServiceEvent.indexOf(e)?this.eventEmitter.off(e,t):this.map.off(e,t)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var e;return null===(e=this.map.getContainer())||void 0===e?void 0:e.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var e=this.map.getSize();return[e.getWidth(),e.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(e){return this.map.setZoom(e+1)}},{key:"getCenter",value:function(e){if(null!=e&&e.padding){var t=this.getCenter(),n=I(this.getSize(),2),r=(n[0],n[1],l(e.padding)),o=this.lngLatToPixel([t.lng,t.lat]),i=[(r.right-r.left)/2,(r.bottom-r.top)/2];return this.pixelToLngLat([o.x-i[0],o.y-i[1]])}var a=this.map.getCenter();return{lng:a.getLng(),lat:a.getLat()}}},{key:"setCenter",value:function(e,t){if(null!=t&&t.padding){var n=l(t.padding),r=this.lngLatToPixel(e),o=[(n.right-n.left)/2,(n.bottom-n.top)/2],i=this.pixelToLngLat([r.x+o[0],r.y+o[1]]);this.map.setCenter([i.lng,i.lat])}else this.map.setCenter(e)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var e=this.map.getBounds().toBounds(),t=e.getNorthEast(),n=e.getSouthWest(),r=this.getCenter(),o=r.lng>t.getLng()||r.lng<n.getLng()?180-t.getLng():t.getLng();return[[r.lng<n.getLng()?n.getLng()-180:n.getLng(),n.getLat()],[o,t.getLat()]]}},{key:"getMinZoom",value:function(){return this.map.get("zooms")[0]-1}},{key:"getMaxZoom",value:function(){return this.map.get("zooms")[1]-1}},{key:"setRotation",value:function(e){return this.map.setRotation(e)}},{key:"setPitch",value:function(e){return this.map.setPitch(e)}},{key:"zoomIn",value:function(){this.map.zoomIn()}},{key:"zoomOut",value:function(){this.map.zoomOut()}},{key:"panTo",value:function(e){this.map.panTo(e)}},{key:"panBy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.map.panBy(e,t)}},{key:"fitBounds",value:function(e){this.map.setBounds(new AMap.Bounds([e[0][0],e[0][1],e[1][0],e[1][1]]))}},{key:"setZoomAndCenter",value:function(e,t){this.map.setZoomAndCenter(e+1,t)}},{key:"setMapStyle",value:function(e){this.map.setMapStyle(this.getMapStyle(e))}},{key:"setMapStatus",value:function(e){this.map.setStatus(e)}},{key:"pixelToLngLat",value:function(e){var t=this.map.pixelToLngLat(new AMap.Pixel(e[0],e[1]));return{lng:t.getLng(),lat:t.getLat()}}},{key:"lngLatToPixel",value:function(e){var t=this.map.lnglatToPixel(new AMap.LngLat(e[0],e[1]));return{x:t.getX(),y:t.getY()}}},{key:"containerToLngLat",value:function(e){var t=new AMap.Pixel(e[0],e[1]),n=this.map.containerToLngLat(t);return{lng:null==n?void 0:n.getLng(),lat:null==n?void 0:n.getLat()}}},{key:"lngLatToContainer",value:function(e){var t=new AMap.LngLat(e[0],e[1]),n=this.map.lngLatToContainer(t);return{x:n.getX(),y:n.getY()}}},{key:"lngLatToCoord",value:function(e){var t=this.map.lngLatToGeodeticCoord(e);return[t.x,-t.y]}},{key:"lngLatToMercator",value:function(e,t){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[1,1,1],o=this.viewport.projectFlat(e),i=c.b.create();return c.b.translate(i,i,c.d.fromValues(o[0],o[1],t)),c.b.scale(i,i,c.d.fromValues(r[0],r[1],r[2])),c.b.rotateX(i,i,n[0]),c.b.rotateY(i,i,n[1]),c.b.rotateZ(i,i,n[2]),i}},{key:"init",value:(u=M().mark((function e(){var t,n,r,i,a,c,u,s,l,f,d,h,v,y,m=this;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.config,n=t.id,r=t.style,i=void 0===r?"light":r,a=t.minZoom,c=void 0===a?0:a,u=t.maxZoom,s=void 0===u?18:u,l=t.token,f=void 0===l?"15cd8a57710d40c9b7c0e3cc120f1200":l,d=t.mapInstance,h=t.plugin,v=void 0===h?[]:h,y=R(t,C),e.next=3,new Promise((function(e){var t=function(){if(d)m.map=d,m.$mapContainer=m.map.getContainer(),setTimeout((function(){m.map.on("camerachange",m.handleCameraChanged),e()}),30);else{m.$mapContainer=m.creatMapContainer(n);var t=L({mapStyle:m.getMapStyle(i),zooms:[c,s],viewMode:"3D"},y);t.zoom&&(t.zoom+=1);var r=new AMap.Map(m.$mapContainer,t);r.on("camerachange",m.handleCameraChanged),r.on("camerachange",(function(){setTimeout((function(){return m.handleAfterMapChange()}))})),m.map=r,setTimeout((function(){e()}),10)}};G||d?G&&window.AMap||d?t():W.push(t):("15cd8a57710d40c9b7c0e3cc120f1200"===f&&console.warn(m.configService.getSceneWarninfo("MapToken")),G=!0,v.push("Map3D"),o.a.load({key:f,version:"1.4.15",plugins:v}).then((function(e){t(),W.length&&(W.forEach((function(e){return e()})),W=[])})).catch((function(e){throw new Error(e)})))}));case 3:this.viewport=new p.a;case 4:case"end":return e.stop()}}),e,this)})),h=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=u.apply(e,t);function i(e){N(o,n,r,i,a,"next",e)}function a(e){N(o,n,r,i,a,"throw",e)}i(void 0)}))},function(){return h.apply(this,arguments)})},{key:"meterToCoord",value:function(e,t){var n=AMap.GeometryUtil.distance(j(AMap.LngLat,T(e)),j(AMap.LngLat,T(t))),r=I(this.lngLatToCoord(e),2),o=r[0],i=r[1],a=I(this.lngLatToCoord(t),2),c=a[0],u=a[1];return Math.sqrt(Math.pow(o-c,2)+Math.pow(i-u,2))/n}},{key:"updateView",value:function(e){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(e){var t,n=null===(t=this.getContainer())||void 0===t?void 0:t.getElementsByClassName("amap-layer")[0];return"jpg"===e?null==n?void 0:n.toDataURL("image/jpeg"):null==n?void 0:n.toDataURL("image/png")}},{key:"emit",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.eventEmitter).emit.apply(t,[e].concat(r))}},{key:"once",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.eventEmitter).once.apply(t,[e].concat(r))}},{key:"destroy",value:function(){var e,t;this.map.destroy(),null===(e=this.$mapContainer)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(this.$mapContainer),delete window.initAMap;var n=document.getElementById("amap-script");n&&document.head.removeChild(n)}},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(e){this.cameraChangedCallback=e}},{key:"handleAfterMapChange",value:function(){this.emit("mapAfterFrameChange")}},{key:"getMapStyle",value:function(e){return d[e]?d[e]:e}},{key:"creatMapContainer",value:function(e){var t=e;"string"==typeof e&&(t=document.getElementById(e));var n=document.createElement("div");return n.style.cssText+="\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n ",n.id="l7_amap_div"+H++,t.appendChild(n),n}}])&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"configService",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=V(w.prototype,"config",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=V(w.prototype,"coordinateSystemService",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=V(w.prototype,"eventEmitter",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=w))||O)},OtNC:function(e,t,n){var r=n("TAtK")(Object.keys,Object);e.exports=r},P1cI:function(e,t){e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},P2D4:function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));var r=n("mpCQ"),o=n("K/oH"),i=n("s6Xb"),a=n("QGPn"),c=n.n(a),u=n("k0uE"),s=(n("e+hn"),n("qzOT"),n("VfWM"));function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"syncWithMapCamera",value:function(e){var t=e.center,n=e.zoom,r=e.pitch,o=e.bearing,i=e.viewportHeight,a=e.viewportWidth;this.viewport=new s.a({width:a,height:i,longitude:t&&t[0],latitude:t&&t[1],zoom:n,pitch:r,bearing:o})}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(e,t){return this.viewport.projectFlat(e,t)}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),p=n("LNdp");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var h,v=["id","attributionControl","style","token","rotation","mapInstance"];function y(){y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(k){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=u;var l={};function f(){}function p(){}function h(){}var v={};c(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,o)&&(v=g);var b=h.prototype=f.prototype=Object.create(v);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==d(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=h,c(b,"constructor",h),c(h,"constructor",p),p.displayName=c(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},O(w.prototype),c(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(b),c(b,a,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function O(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.mapboxgl=c.a;var P=0,T="pk.eyJ1IjoiMTg5Njk5NDg2MTkiLCJhIjoiY2s5OXVzdHlzMDVneDNscDVjdzVmeXl0dyJ9.81SQ5qaJS0xExYLbDZAGpQ",M=Object(i.injectable)()(h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(l,e);var t,n,r,i,a,s=E(l);function l(){var e;w(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return k(C(e=s.call.apply(s,[this].concat(n))),"version",u.a.MAPBOX),e}return t=l,(n=[{key:"getType",value:function(){return"mapbox"}},{key:"lngLatToCoord",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{x:0,y:0,z:0},n=this.lngLatToMercator(e,0),r=n.x,o=n.y;return[r-t.x,o-t.y]}},{key:"lngLatToMercator",value:function(e,t){var n=window.mapboxgl.MercatorCoordinate.fromLngLat(e,t),r=n.x,o=void 0===r?0:r,i=n.y,a=void 0===i?0:i,c=n.z;return{x:o,y:a,z:void 0===c?0:c}}},{key:"getModelMatrix",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[1,1,1],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{x:0,y:0,z:0},a=window.mapboxgl.MercatorCoordinate.fromLngLat(e,t),c=a.meterInMercatorCoordinateUnits(),u=o.b.create();return o.b.translate(u,u,o.d.fromValues(a.x-i.x,a.y-i.y,a.z||0-i.z)),o.b.scale(u,u,o.d.fromValues(c*r[0],-c*r[1],c*r[2])),o.b.rotateX(u,u,n[0]),o.b.rotateY(u,u,n[1]),o.b.rotateZ(u,u,n[2]),u}},{key:"init",value:(i=y().mark((function e(){var t,n,r,o,i,a,c,u,s,l,p,d,h;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.config,n=t.id,r=void 0===n?"map":n,o=t.attributionControl,i=void 0!==o&&o,a=t.style,c=void 0===a?"light":a,u=t.token,s=void 0===u?T:u,l=t.rotation,p=void 0===l?0:l,d=t.mapInstance,h=b(t,v),this.viewport=new f,d||window.mapboxgl||console.error(this.configService.getSceneWarninfo("SDK")),s!==T||"blank"===c||window.mapboxgl.accessToken||d||console.warn(this.configService.getSceneWarninfo("MapToken")),d||window.mapboxgl.accessToken||(window.mapboxgl.accessToken=s),d?(this.map=d,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(r),this.map=new window.mapboxgl.Map(g({container:this.$mapContainer,style:this.getMapStyle(c),attributionControl:i,bearing:p},h))),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return e.stop()}}),e,this)})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){O(o,n,r,a,c,"next",e)}function c(e){O(o,n,r,a,c,"throw",e)}a(void 0)}))},function(){return a.apply(this,arguments)})},{key:"destroy",value:function(){var e,t;null===(e=this.$mapContainer)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.eventEmitter).emit.apply(t,[e].concat(r))}},{key:"once",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.eventEmitter).once.apply(t,[e].concat(r))}},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"meterToCoord",value:function(e,t){var n=new c.a.LngLat(e[0],e[1]),r=new c.a.LngLat(t[0],t[1]),o=n.distanceTo(r),i=c.a.MercatorCoordinate.fromLngLat({lng:e[0],lat:e[1]}),a=c.a.MercatorCoordinate.fromLngLat({lng:t[0],lat:t[1]}),u=i.x,s=i.y,l=a.x,f=a.y;return 4194304*Math.sqrt(Math.pow(u-l,2)+Math.pow(s-f,2))*2/o}},{key:"exportMap",value:function(e){var t=this.map.getCanvas();return"jpg"===e?null==t?void 0:t.toDataURL("image/jpeg"):null==t?void 0:t.toDataURL("image/png")}},{key:"creatMapContainer",value:function(e){var t=e;"string"==typeof e&&(t=document.getElementById(e));var n=document.createElement("div");return n.style.cssText+="\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n ",n.id="l7_mapbox_div"+P++,t.appendChild(n),n}}])&&_(t.prototype,n),r&&_(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(p.a))||h;function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,t){return(N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}(i,e);var t,n,r,o=I(i);function i(){return L(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getServiceConstructor",value:function(){return M}}])&&R(t.prototype,n),r&&R(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a)},P80f:function(e,t,n){"use strict";var r=n("zygG"),o=n("ERkP"),i=n("R3zJ");t.a=function(){var e=o.useState(!1),t=Object(r.a)(e,2),n=t[0],a=t[1];return o.useEffect((function(){a(Object(i.b)())}),[]),n}},P8Qv:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="ArrowLeftOutlined";t.a=o.forwardRef(c)},PArb:function(e,t,n){"use strict";var r=n("cxan"),o=n("zjfJ"),i=n("O94r"),a=n.n(i),c=n("ERkP"),u=n("H84U"),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};t.a=function(e){var t,n=c.useContext(u.b),i=n.getPrefixCls,l=n.direction,f=e.prefixCls,p=e.type,d=void 0===p?"horizontal":p,h=e.orientation,v=void 0===h?"center":h,y=e.orientationMargin,m=e.className,g=e.children,b=e.dashed,O=e.plain,w=s(e,["prefixCls","type","orientation","orientationMargin","className","children","dashed","plain"]),_=i("divider",f),x=v.length>0?"-".concat(v):v,E=!!g,S="left"===v&&null!=y,C="right"===v&&null!=y,j=a()(_,"".concat(_,"-").concat(d),(t={},Object(o.a)(t,"".concat(_,"-with-text"),E),Object(o.a)(t,"".concat(_,"-with-text").concat(x),E),Object(o.a)(t,"".concat(_,"-dashed"),!!b),Object(o.a)(t,"".concat(_,"-plain"),!!O),Object(o.a)(t,"".concat(_,"-rtl"),"rtl"===l),Object(o.a)(t,"".concat(_,"-no-default-orientation-margin-left"),S),Object(o.a)(t,"".concat(_,"-no-default-orientation-margin-right"),C),t),m),k=Object(r.a)(Object(r.a)({},S&&{marginLeft:y}),C&&{marginRight:y});return c.createElement("div",Object(r.a)({className:j},w,{role:"separator"}),g&&c.createElement("span",{className:"".concat(_,"-inner-text"),style:k},g))}},"PBP+":function(e,t,n){var r=n("77ug"),o=n("jSso");e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.apply(this,o(arguments))}},PChC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.redirectToHome=t.nPaths=t.getUrlForLang=t.getSlugAndLang=t.getLangs=t.getI18nBase=t.getValidLangKey=t.getUserLangKey=t.getPagesPaths=t.getCurrentLangKey=t.getBrowserLanguage=t.isInPagesPaths=t.isHomePage=t.addLangKeyToSlug=void 0;var r=d(n("MGFZ")),o=d(n("5FNB")),i=d(n("KngG")),a=d(n("HFVJ")),c=d(n("Wdz6")),u=d(n("eEqd")),s=d(n("o83V")),l=d(n("Q7R8")),f=d(n("o3mt")),p=d(n("vLTl"));function d(e){return e&&e.__esModule?e:{default:e}}var h=function(e){return(e.match(/\//g)||[]).length-1},v=(0,o.default)((function(e,t,n){return t!==n.langKeyDefault||n.prefixDefault?"/"+t+e:""+e})),y=(0,o.default)((function(e,t,n){return"/"!==t&&(0,r.default)(e,t)?t.replace(e,"/"+n+"/"):"/"+n+"/"})),m=(0,o.default)((function(e,t,n){return e.map((function(e){return{langKey:e,selected:t===e,link:n(e)}}))})),g=(0,o.default)((function(e,t){return e[t]||Object.values(e)[0]}));t.addLangKeyToSlug=v,t.isHomePage=function(e){return h(e)<=1},t.isInPagesPaths=p.default,t.getBrowserLanguage=c.default,t.getCurrentLangKey=i.default,t.getPagesPaths=f.default,t.getUserLangKey=s.default,t.getValidLangKey=a.default,t.getI18nBase=g,t.getLangs=m,t.getSlugAndLang=l.default,t.getUrlForLang=y,t.nPaths=h,t.redirectToHome=u.default},PEeC:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("fGyu"),o=n("jiyB");function i(e){var t,n=function(n){return function(){t=null,e.apply(void 0,Object(r.a)(n))}},i=function(){if(null==t){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];t=Object(o.a)(n(r))}};return i.cancel=function(){o.a.cancel(t),t=null},i}function a(){return function(e,t,n){var r=n.value,o=!1;return{configurable:!0,get:function(){if(o||this===e.prototype||this.hasOwnProperty(t))return r;var n=i(r.bind(this));return o=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),o=!1,n}}}}},PGAt:function(e,t,n){"use strict";n.d(t,"g",(function(){return H})),n.d(t,"a",(function(){return G})),n.d(t,"f",(function(){return W})),n.d(t,"h",(function(){return Y})),n.d(t,"e",(function(){return K})),n.d(t,"k",(function(){return X})),n.d(t,"l",(function(){return q})),n.d(t,"o",(function(){return Q})),n.d(t,"p",(function(){return $})),n.d(t,"i",(function(){return te})),n.d(t,"b",(function(){return ne})),n.d(t,"j",(function(){return re})),n.d(t,"d",(function(){return oe})),n.d(t,"c",(function(){return ie})),n.d(t,"n",(function(){return ce})),n.d(t,"m",(function(){return ue}));var r=n("zEXi"),o=n("s7f+"),i=n.n(o),a=n("K/oH"),c=n("M4fI");function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=a.c.create(),y=(a.c.create(),a.c.create()),m=a.c.create(),g=a.c.create();function b(e,t,n,r,o){a.c.add(e,n,r),a.c.normalize(e,e),t=a.c.fromValues(-e[1],e[0]);var i=a.c.fromValues(-n[1],n[0]);return[o/a.c.dot(t,i),t]}function O(e,t){return a.c.set(e,-t[1],t[0])}function w(e,t,n){return a.c.sub(e,t,n),a.c.normalize(e,e),e}function _(e,t){return e[0]===t[0]&&e[1]===t[1]}var x,E,S,C=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this,e),h(this,"lastFlip",-1),h(this,"miter",a.c.fromValues(0,0)),h(this,"started",!1),h(this,"dash",!1),h(this,"totalDistance",0),h(this,"currentIndex",0),this.join=t.join||"miter",this.cap=t.cap||"butt",this.miterLimit=t.miterLimit||10,this.thickness=t.thickness||1,this.dash=t.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}var t,n,o;return t=e,(n=[{key:"simpleExtrude",value:function(e){var t=this.complex;if(e.length<=1)return t;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var n=e.length,r=t.startIndex,o=1;o<n;o++){var i=e[o-1],a=e[o],c=o<e.length-1?e[o+1]:null;r+=this.simpleSegment(t,r,i,a,c)}if(this.dash)for(var u=0;u<t.positions.length/6;u++)t.positions[6*u+5]=this.totalDistance;return t.startIndex=t.positions.length/6,t}},{key:"simpleExtrude_gaode2",value:function(e,t){var n=this.complex;if(e.length<=1)return n;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var r=e.length,o=n.startIndex,i=1;i<r;i++){var a,c,u,l=e[i-1];l.push(null!==(a=t[i-1][2])&&void 0!==a?a:0);var f=t[i-1],p=e[i];p.push(null!==(c=t[i][2])&&void 0!==c?c:0);var d=t[i],h=i<e.length-1?[].concat(s(e[i+1]),[null!==(u=t[i+1][2])&&void 0!==u?u:0]):null,v=i<t.length-1?t[i+1]:null;o+=this.simpleSegment(n,o,l,p,h,f,d,v)}if(this.dash)for(var y=0;y<n.positions.length/6;y++)n.positions[6*y+5]=this.totalDistance;return n.startIndex=n.positions.length/6,n}},{key:"extrude_gaode2",value:function(e,t){var n=this.complex;if(e.length<=1)return n;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var r=e.length,o=n.startIndex,i=1;i<r;i++){var a,c,u,l=e[i-1];l.push(null!==(a=t[i-1][2])&&void 0!==a?a:0);var f=t[i-1],p=e[i];p.push(null!==(c=t[i][2])&&void 0!==c?c:0);var d=t[i],h=i<e.length-1?[].concat(s(e[i+1]),[null!==(u=t[i+1][2])&&void 0!==u?u:0]):null,v=i<t.length-1?t[i+1]:null;o+=this.segment_gaode2(n,o,l,p,h,f,d,v)}if(this.dash)for(var y=0;y<n.positions.length/6;y++)n.positions[6*y+5]=this.totalDistance;return n.startIndex=n.positions.length/6,n}},{key:"extrude",value:function(e){var t=this.complex;if(e.length<=1)return t;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var n=e.length,r=t.startIndex,o=1;o<n;o++){var i=e[o-1],a=e[o],c=o<e.length-1?e[o+1]:null;r+=this.segment(t,r,i,a,c)}if(this.dash)for(var u=0;u<t.positions.length/6;u++)t.positions[6*u+5]=this.totalDistance;return t.startIndex=t.positions.length/6,t}},{key:"simpleSegment",value:function(e,t,n,o,i){var c=0,l=e.indices,f=e.positions,p=e.normals,d=Object(r.q)([o[0],o[1]]),h=Object(r.q)([n[0],n[1]]);w(y,d,h);var v=0;if(this.dash&&(v=this.lineSegmentDistance(d,h),this.totalDistance+=v),this.normal||(this.normal=a.c.create(),O(this.normal,y)),this.started||(this.started=!0,this.extrusions(f,p,n,this.normal,this.thickness,this.totalDistance-v)),l.push(t+0,t+1,t+2),i){var x=Object(r.q)([i[0],i[1]]);_(d,x)&&a.c.add(x,d,a.c.normalize(x,a.c.subtract(x,d,h))),w(m,x,d);var E=u(b(g,a.c.create(),y,m,this.thickness),2),S=E[0],C=E[1];a.c.dot(g,this.normal),this.extrusions(f,p,o,C,S,this.totalDistance),l.push.apply(l,s(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),a.c.copy(this.normal,C),c+=2,this.lastFlip=-1}else O(this.normal,y),this.extrusions(f,p,o,this.normal,this.thickness,this.totalDistance),l.push.apply(l,s(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),c+=2;return c}},{key:"segment_gaode2",value:function(e,t,n,o,i,c,l,f){var p=0,d=e.indices,h=e.positions,x=e.normals,E="square"===this.cap,S="bevel"===this.join,C=Object(r.q)([l[0],l[1]]),j=Object(r.q)([c[0],c[1]]);w(y,o,n);var k=0;if(this.dash&&(k=this.lineSegmentDistance(C,j),this.totalDistance+=k),this.normal||(this.normal=a.c.create(),O(this.normal,y)),!this.started)if(this.started=!0,E){var P=a.c.create(),T=a.c.create();a.c.add(P,this.normal,y),a.c.add(T,this.normal,y),x.push(T[0],T[1],0),x.push(P[0],P[1],0),h.push(n[0],n[1],0|n[2],this.totalDistance-k,-this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),h.push(n[0],n[1],0|n[2],this.totalDistance-k,this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(h,x,n,this.normal,this.thickness,this.totalDistance-k);if(d.push(t+0,t+1,t+2),i){_(o,i)&&a.c.add(i,o,a.c.normalize(i,a.c.subtract(i,o,n))),w(m,i,o);var M=u(b(g,a.c.create(),y,m,this.thickness),2),A=M[0],L=M[1],R=a.c.dot(g,this.normal)<0?-1:1,N=S;N||"miter"!==this.join||A>this.miterLimit&&(N=!0),N?(x.push(this.normal[0],this.normal[1],0),x.push(L[0],L[1],0),h.push(o[0],o[1],0|o[2],this.totalDistance,-this.thickness*R,0|o[2]),this.complex.indexes.push(this.currentIndex),h.push(o[0],o[1],0|o[2],this.totalDistance,this.thickness*R,0|o[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,d.push.apply(d,s(this.lastFlip!==-R?[t,t+2,t+3]:[t+2,t+1,t+3])),d.push(t+2,t+3,t+4),O(v,m),a.c.copy(this.normal,v),x.push(this.normal[0],this.normal[1],0),h.push(o[0],o[1],0|o[2],this.totalDistance,-this.thickness*R,0|o[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,p+=3):(this.extrusions(h,x,o,L,A,this.totalDistance),d.push.apply(d,s(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),R=-1,a.c.copy(this.normal,L),p+=2),this.lastFlip=R}else{if(O(this.normal,y),E){var I=a.c.create(),D=a.c.create();a.c.sub(D,y,this.normal),a.c.add(I,y,this.normal),x.push(D[0],D[1],0),x.push(I[0],I[1],0),h.push(o[0],o[1],0|o[2],this.totalDistance,this.thickness,0|o[2]),this.complex.indexes.push(this.currentIndex),h.push(o[0],o[1],0|o[2],this.totalDistance,this.thickness,0|o[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(h,x,o,this.normal,this.thickness,this.totalDistance);d.push.apply(d,s(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),p+=2}return p}},{key:"segment",value:function(e,t,n,o,i){var c=0,l=e.indices,f=e.positions,p=e.normals,d="square"===this.cap,h="bevel"===this.join,x=Object(r.q)([o[0],o[1]]),E=Object(r.q)([n[0],n[1]]);w(y,x,E);var S=0;if(this.dash&&(S=this.lineSegmentDistance(x,E),this.totalDistance+=S),this.normal||(this.normal=a.c.create(),O(this.normal,y)),!this.started)if(this.started=!0,d){var C=a.c.create(),j=a.c.create();a.c.add(C,this.normal,y),a.c.add(j,this.normal,y),p.push(j[0],j[1],0),p.push(C[0],C[1],0),f.push(n[0],n[1],0|n[2],this.totalDistance-S,-this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),f.push(n[0],n[1],0|n[2],this.totalDistance-S,this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(f,p,n,this.normal,this.thickness,this.totalDistance-S);if(l.push(t+0,t+1,t+2),i){var k=Object(r.q)([i[0],i[1]]);_(x,k)&&a.c.add(k,x,a.c.normalize(k,a.c.subtract(k,x,E))),w(m,k,x);var P=u(b(g,a.c.create(),y,m,this.thickness),2),T=P[0],M=P[1],A=a.c.dot(g,this.normal)<0?-1:1,L=h;L||"miter"!==this.join||T>this.miterLimit&&(L=!0),L?(p.push(this.normal[0],this.normal[1],0),p.push(M[0],M[1],0),f.push(o[0],o[1],0|o[2],this.totalDistance,-this.thickness*A,0|o[2]),this.complex.indexes.push(this.currentIndex),f.push(o[0],o[1],0|o[2],this.totalDistance,this.thickness*A,0|o[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,l.push.apply(l,s(this.lastFlip!==-A?[t,t+2,t+3]:[t+2,t+1,t+3])),l.push(t+2,t+3,t+4),O(v,m),a.c.copy(this.normal,v),p.push(this.normal[0],this.normal[1],0),f.push(o[0],o[1],0|o[2],this.totalDistance,-this.thickness*A,0|o[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,c+=3):(this.extrusions(f,p,o,M,T,this.totalDistance),l.push.apply(l,s(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),A=-1,a.c.copy(this.normal,M),c+=2),this.lastFlip=A}else{if(O(this.normal,y),d){var R=a.c.create(),N=a.c.create();a.c.sub(N,y,this.normal),a.c.add(R,y,this.normal),p.push(N[0],N[1],0),p.push(R[0],R[1],0),f.push(o[0],o[1],0|o[2],this.totalDistance,this.thickness,0|o[2]),this.complex.indexes.push(this.currentIndex),f.push(o[0],o[1],0|o[2],this.totalDistance,this.thickness,0|o[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(f,p,o,this.normal,this.thickness,this.totalDistance);l.push.apply(l,s(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),c+=2}return c}},{key:"extrusions",value:function(e,t,n,r,o,i){t.push(r[0],r[1],0),t.push(r[0],r[1],0),e.push(n[0],n[1],0|n[2],i,-o,0|n[2]),this.complex.indexes.push(this.currentIndex),e.push(n[0],n[1],0|n[2],i,o,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.sqrt(n*n+r*r)}}])&&d(t.prototype,n),o&&d(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function j(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e[0][0],r=e[0][e[0].length-1];n[0]===r[0]&&n[1]===r[1]&&(e[0]=e[0].slice(0,e[0].length-1));for(var o=e[0].length,a=i.a.flatten(e),c=a.vertices,u=a.dimensions,s=[],l=[],f=[],p=0;p<c.length/u;p++)2===u?s.push(c[2*p],c[2*p+1],1,-1,-1):s.push(c[3*p],c[3*p+1],1,-1,-1),f.push(0,0,1);var d=i()(a.vertices,a.holes,a.dimensions);l.push.apply(l,j(d));for(var h=function(e){var n=a.vertices.slice(e*u,(e+1)*u),r=a.vertices.slice((e+1)*u,(e+2)*u);0===r.length&&(r=a.vertices.slice(0,u));var o=s.length/5;s.push(n[0],n[1],1,0,0,r[0],r[1],1,.1,0,n[0],n[1],0,0,.8,r[0],r[1],0,.1,.8);var i=T([r[0],r[1],1],[n[0],n[1],0],[n[0],n[1],1],t);f.push.apply(f,j(i).concat(j(i),j(i),j(i))),l.push.apply(l,j([1,2,0,3,2,1].map((function(e){return e+o}))))},v=0;v<o;v++)h(v);return{positions:s,index:l,normals:f}}function T(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=a.d.create(),c=a.d.create(),u=a.d.create();o&&(e=Object(r.rb)(e),t=Object(r.rb)(t),n=Object(r.rb)(n));var s=a.d.fromValues.apply(a.d,j(e)),l=a.d.fromValues.apply(a.d,j(t)),f=a.d.fromValues.apply(a.d,j(n));a.d.sub(i,f,l),a.d.sub(c,s,l),a.d.cross(u,i,c);var p=a.d.create();return a.d.normalize(p,u),p}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=2*Math.PI/e,r=[],o=0;o<e;o++)r.push(n*o+t*Math.PI/12);var i=r.map((function(e){return[Math.sin(e+Math.PI/4),Math.cos(e+Math.PI/4),0]}));return i}function L(){return A(30)}function R(){return A(4)}function N(){return A(3)}function I(){return A(6,1)}function D(){return A(5)}!function(e){e.CYLINDER="cylinder",e.SQUARECOLUMN="squareColumn",e.TRIANGLECOLUMN="triangleColumn",e.HEXAGONCOLUMN="hexagonColumn",e.PENTAGONCOLUMN="pentagonColumn"}(E||(E={})),function(e){e.CIRCLE="circle",e.SQUARE="square",e.TRIANGLE="triangle",e.HEXAGON="hexagon",e.PENTAGON="pentagon"}(S||(S={}));var F=(M(x={},S.CIRCLE,L),M(x,S.HEXAGON,I),M(x,S.TRIANGLE,N),M(x,S.SQUARE,R),M(x,S.PENTAGON,D),M(x,E.CYLINDER,L),M(x,E.HEXAGONCOLUMN,I),M(x,E.TRIANGLECOLUMN,N),M(x,E.SQUARECOLUMN,R),M(x,E.PENTAGONCOLUMN,D),x);function z(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){if(e){if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var V={};function H(e){var t=Object(r.C)(e.coordinates);return{vertices:[].concat(z(t),z(t),z(t),z(t)),indices:[0,1,2,2,3,0],size:t.length}}function G(e){var t=Object(r.C)(e.coordinates),n=Object(c.d)(t);return{vertices:[].concat(z(n),z(n),z(n),z(n)),indices:[0,1,2,2,3,0],size:n.length}}function W(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(V&&V[e])return V[e];var n=F[e]?F[e]():F.cylinder(),r=P([n],t);return V[e]=r,r}(e.shape,!1);return{vertices:t.positions,indices:t.index,normals:t.normals,size:5}}function Y(e){var t=Object(r.C)(e.coordinates);return{vertices:z(t),indices:[0],size:t.length}}function K(e){var t=e.coordinates,n=e.originCoordinates,r=e.version,o=new C({dash:!0,join:"bevel"});if("GAODE2.x"===r){var i=t;Array.isArray(i[0][0])||(i=[t]);var a=n;Array.isArray(a[0][0])||(a=[n]);for(var c=0;c<i.length;c++){var u=i[c],s=a[c];o.extrude_gaode2(u,s)}}else{var l=t;l[0]&&!Array.isArray(l[0][0])&&(l=[t]),l.forEach((function(e){o.extrude(e)}))}var f=o.complex;return{vertices:f.positions,indices:f.indices,normals:f.normals,indexes:f.indexes,size:6}}function X(e){var t=e.coordinates,n=[];if(!Array.isArray(t[0]))return{vertices:[],indices:[],normals:[],size:6,count:0};var r=function(e){var t=0;if(e.length<2)return{results:e,totalDistance:0};var n=[],r=J(e[0],t);n.push(r);for(var o=1;o<e.length-1;o++){var i=Z(e[o-1],e[o]);t+=i;var a=J(e[o],t);n.push(a),n.push(a)}var c=Z(e[e.length-2],e[e.length-1]);return t+=c,n.push(J(e[e.length-1],t)),{results:n,totalDistance:t}}(t),o=r.results,i=r.totalDistance;return o.map((function(e){n.push(e[0],e[1],e[2],e[3],0,i)})),{vertices:n,indices:[],normals:[],size:6,count:o.length}}function q(e){var t=e.coordinates,n=[];if(!Array.isArray(t[0]))return{vertices:[],indices:[],size:4,count:0};var r=function(e){if(e.length<2)return{results:e};var t=[],n=J(e[0]);t.push(n);for(var r=1;r<e.length-1;r++){var o=J(e[r]);t.push(o),t.push(o)}return t.push(J(e[e.length-1])),{results:t}}(t).results;return r.map((function(e){n.push(e[0],e[1],e[2],e[3])})),{vertices:n,indices:[],size:4,count:r.length}}function Z(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.sqrt(n*n+r*r)}function J(e,t){return e.length<3&&e.push(0),void 0!==t&&e.push(t),e}function Q(e){var t=e.coordinates,n=i.a.flatten(t),r=n.vertices,o=n.dimensions,a=n.holes;return{indices:i()(r,a,o),vertices:r,size:o}}function $(e){var t=e.coordinates,n=i.a.flatten(t),r=n.vertices,o=n.dimensions,a=n.holes;return{indices:i()(r,a,o),vertices:ee(r),size:o+4}}function ee(e){for(var t=[],n=Object(r.D)(e),o=n.center,i=n.radius,a=0;a<e.length;a+=2){var c=e[a],u=e[a+1];t.push.apply(t,[c,u,0].concat(z(o),[i]))}return t}function te(e){var t=P(e.coordinates,!0);return{vertices:t.positions,indices:t.index,normals:t.normals,size:5}}function ne(e){var t=function(e){var t=F[e]?F[e]():F.circle();return-1===["cylinder","triangleColumn","hexagonColumn","squareColumn"].indexOf(e)?(n=[t],r=i.a.flatten(n),o=i()(r.vertices,r.holes,r.dimensions),{positions:r.vertices,index:o}):function(e){var t=e[0][0],n=e[0][e[0].length-1];t[0]===n[0]&&t[1]===n[1]&&(e[0]=e[0].slice(0,e[0].length-1));for(var r=e[0].length,o=i.a.flatten(e),a=o.vertices,c=o.dimensions,u=[],s=[],l=0;l<a.length/c;l++)2===c?u.push(a[2*l],a[2*l+1],1):u.push(a[3*l],a[3*l+1],1);var f=i()(o.vertices,o.holes,o.dimensions);s.push.apply(s,j(f));for(var p=function(e){var t=o.vertices.slice(e*c,(e+1)*c),n=o.vertices.slice((e+1)*c,(e+2)*c);0===n.length&&(n=o.vertices.slice(0,c));var r=u.length/3;u.push(t[0],t[1],1,n[0],n[1],1,t[0],t[1],0,n[0],n[1],0),s.push.apply(s,j([0,2,1,2,3,1].map((function(e){return e+r}))))},d=0;d<r;d++)p(d);return{positions:u,index:s}}([t]);var n,r,o}(e.shape);return{vertices:t.positions,indices:t.index,size:3}}function re(e){var t=e.coordinates;return{vertices:[].concat(z(t[0]),[0,0,1,t[1][0],t[0][1],0,1,1],z(t[1]),[0,1,0],z(t[0]),[0,0,1],z(t[1]),[0,1,0,t[0][0],t[1][1],0,0,0]),indices:[0,1,2,3,4,5],size:5}}function oe(e,t){for(var n=t||30,r=e.coordinates,o=[],i=[],a=function(e){o.push(e,1,e,r[0][0],r[0][1],r[1][0],r[1][1],e,-1,e,r[0][0],r[0][1],r[1][0],r[1][1]),e!==n-1&&i.push.apply(i,z([0,1,2,1,3,2].map((function(t){return 2*e+t}))))},c=0;c<n;c++)a(c);return{vertices:o,indices:i,size:7}}function ie(e){var t=e.coordinates;2===t.length&&t.push(0);e.size;var n=ae(-1,1),r=ae(1,1),o=ae(-1,-1),i=ae(1,-1);return{vertices:[].concat(z(t),z(n),z(t),z(o),z(t),z(i),z(t),z(r)),indices:[0,1,2,3,0,2],size:5}}function ae(e,t){return[(e+1)/2,(t+1)/2]}function ce(){var e=Object(c.e)(c.a,{segments:c.c});return{vertices:e.positionsArr,indices:e.indicesArr,size:5,normals:e.normalArr}}function ue(){var e=Object(c.e)(c.a+c.b,{segments:c.c});return{vertices:e.positionsArr,indices:e.indicesArr,size:5,normals:e.normalArr}}},PKem:function(e,t,n){"use strict";n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return b}));var r=n("fGyu"),o=n("zjfJ"),i=n("zygG"),a=n("cxan"),c=n("O94r"),u=n.n(c),s=n("ERkP"),l=n("H84U"),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},p=s.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function d(e){var t=e.suffixCls,n=e.tagName;e.displayName;return function(e){return s.forwardRef((function(r,o){var i=s.useContext(l.b).getPrefixCls,c=r.prefixCls,u=i(t,c);return s.createElement(e,Object(a.a)({ref:o,prefixCls:u,tagName:n},r))}))}}var h=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.children,i=e.tagName,c=f(e,["prefixCls","className","children","tagName"]),l=u()(n,r);return s.createElement(i,Object(a.a)(Object(a.a)({className:l},c),{ref:t}),o)})),v=s.forwardRef((function(e,t){var n,c=s.useContext(l.b).direction,d=s.useState([]),h=Object(i.a)(d,2),v=h[0],y=h[1],m=e.prefixCls,g=e.className,b=e.children,O=e.hasSider,w=e.tagName,_=f(e,["prefixCls","className","children","hasSider","tagName"]),x=u()(m,(n={},Object(o.a)(n,"".concat(m,"-has-sider"),"boolean"==typeof O?O:v.length>0),Object(o.a)(n,"".concat(m,"-rtl"),"rtl"===c),n),g),E=s.useMemo((function(){return{siderHook:{addSider:function(e){y((function(t){return[].concat(Object(r.a)(t),[e])}))},removeSider:function(e){y((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return s.createElement(p.Provider,{value:E},s.createElement(w,Object(a.a)({ref:t,className:x},_),b))})),y=d({suffixCls:"layout",tagName:"section",displayName:"Layout"})(v),m=d({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(h),g=d({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(h),b=d({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(h);t.e=y},POgt:function(e,t){e.exports=function(e){return"function"==typeof e}},POz8:function(e,t,n){var r={};r[n("fVMg")("toStringTag")]="z",e.exports="[object z]"===String(r)},PSzb:function(e,t,n){var r=n("EaUz"),o=n("6NwO"),i=n("q/hM");e.exports=function(){function e(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function t(e,t,n,r){return e["@@transducer/result"](n[r](i(e["@@transducer/step"],e),t))}var n="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(i,a,c){if("function"==typeof i&&(i=o(i)),r(c))return function(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(i,a,c);if("function"==typeof c["fantasy-land/reduce"])return t(i,a,c,"fantasy-land/reduce");if(null!=c[n])return e(i,a,c[n]());if("function"==typeof c.next)return e(i,a,c);if("function"==typeof c.reduce)return t(i,a,c,"reduce");throw new TypeError("reduce: list must be array or iterable")}}()},PUWO:function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(n){e.exports=!1}},PYp2:function(e,t,n){"use strict";var r=n("DE/k"),o=n("gfy7");var i=function(e){return Object(o.a)(e)&&"[object Arguments]"==Object(r.a)(e)},a=Object.prototype,c=a.hasOwnProperty,u=a.propertyIsEnumerable,s=i(function(){return arguments}())?i:function(e){return Object(o.a)(e)&&c.call(e,"callee")&&!u.call(e,"callee")};t.a=s},PkF7:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){return e.map((function(e){return"string"==typeof e&&(e=[e,{}]),e}))}function a(e,t,n,o){var a=e.multiPassRenderer,c=e.getLayerConfig();c.enablePicking;return c.enableTAA?a.add(o("taa")):a.add(o("render")),i(t).forEach((function(e){var t=r(e,2),o=t[0],i=t[1];a.add(n(o),i)})),a.add(n("copy")),a}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}))},PkGC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lookup=void 0;var r=n("KWcp"),o=function(){function e(){this._map=new Map}return e.prototype.getMap=function(){return this._map},e.prototype.add=function(e,t){if(null==e)throw new Error(r.NULL_ARGUMENT);if(null==t)throw new Error(r.NULL_ARGUMENT);var n=this._map.get(e);void 0!==n?(n.push(t),this._map.set(e,n)):this._map.set(e,[t])},e.prototype.get=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);var t=this._map.get(e);if(void 0!==t)return t;throw new Error(r.KEY_NOT_FOUND)},e.prototype.remove=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(r.KEY_NOT_FOUND)},e.prototype.removeByCondition=function(e){var t=this;this._map.forEach((function(n,r){var o=n.filter((function(t){return!e(t)}));o.length>0?t._map.set(r,o):t._map.delete(r)}))},e.prototype.hasKey=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach((function(e,n){e.forEach((function(e){return t.add(n,e.clone())}))})),t},e.prototype.traverse=function(e){this._map.forEach((function(t,n){e(n,t)}))},e}();t.Lookup=o},Pm61:function(e,t,n){"use strict";n.d(t,"a",(function(){return L}));var r=n("Gf+y"),o=n("mGvo"),i=n.n(o),a=n("pufz"),c=n("zEXi"),u=n("pfNN"),s=n("PGAt");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){f=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(k){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=u;var p={};function d(){}function h(){}function v(){}var y={};c(y,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,o)&&(y=g);var b=v.prototype=d.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var f=u.arg,p=f.value;return p&&"object"==l(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(p).then((function(e){f.value=e,a(f)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=v,c(b,"constructor",v),c(v,"constructor",h),h.displayName=c(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},O(w.prototype),c(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(b),c(b,a,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function p(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b={fill:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(m,e);var t,n,r,o,u,l=y(m);function m(){return d(this,m),l.apply(this,arguments)}return t=m,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?0:t,r=e.color,o=void 0===r?"#000":r;return{u_opacity:i()(n)?n:0,u_color:Object(c.Eb)(o)}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:(o=f().mark((function e(t){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.layer.buildLayerModel({moduleName:"mask",vertexShader:'attribute vec3 a_Position;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\n#pragma include "projection"\n\nvoid main() {\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n}\n\n',fragmentShader:"uniform float u_opacity : 1.0;\nuniform vec4 u_color;\n\nvoid main() {\n gl_FragColor = u_color;\n gl_FragColor.a *= u_opacity;\n}\n",triangulation:s.o,depth:{enable:!1},blend:this.getBlend(),stencil:{enable:!0,mask:255,func:{cmp:a.gl.ALWAYS,ref:1,mask:255},opFront:{fail:a.gl.REPLACE,zfail:a.gl.REPLACE,zpass:a.gl.REPLACE}},pick:!1}).then((function(e){t([e])})).catch((function(e){console.warn(e),t([])}));case 1:case"end":return e.stop()}}),e,this)})),u=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){p(i,n,r,a,c,"next",e)}function c(e){p(i,n,r,a,c,"throw",e)}a(void 0)}))},function(e){return u.apply(this,arguments)})},{key:"clearModels",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}])&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),m}(u.a)};function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function j(e,t){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M(e);if(t){var o=M(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(i,e);var t,n,r,o=k(i);function i(){var e;S(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return A(T(e=o.call.apply(o,[this].concat(n))),"type","MaskLayer"),e}return t=i,(n=[{key:"init",value:function(){var e=this,t=this.container.get(a.TYPES.SceneID);this.configService.setLayerConfig(t,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.rendererService=this.container.get(a.TYPES.IRendererService),this.layerService=this.container.get(a.TYPES.ILayerService),this.mapService=this.container.get(a.TYPES.IMapService),this.cameraService=this.container.get(a.TYPES.ICameraService),this.coordinateService=this.container.get(a.TYPES.ICoordinateSystemService),this.shaderModuleService=this.container.get(a.TYPES.IShaderModuleService),this.postProcessingPassFactory=this.container.get(a.TYPES.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(a.TYPES.IFactoryNormalPass),this.styleAttributeService=this.container.get(a.TYPES.IStyleAttributeService),this.pendingStyleAttributes.forEach((function(t){var n=t.attributeName,r=t.attributeField,o=t.attributeValues,i=t.updateOptions;e.styleAttributeService.updateStyleAttribute(n,{scale:E({field:r},e.splitValuesAndCallbackInAttribute(o,e.getLayerConfig()[n]))},i)})),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(a.TYPES.ILayerPlugin);var n,r=w(this.plugins);try{for(r.s();!(n=r.n()).done;)n.value.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(o){r.e(o)}finally{r.f()}return this.hooks.init.call(),this.hooks.afterInit.call(),this}},{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new b[t](this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getModelType",value:function(){return"fill"}}])&&C(t.prototype,n),r&&C(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a)},PmAl:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r,o=n("pufz");function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=(i(r={},o.BlendType.additive,{enable:!0,func:{srcRGB:o.gl.ONE,dstRGB:o.gl.ONE,srcAlpha:1,dstAlpha:1}}),i(r,o.BlendType.none,{enable:!1}),i(r,o.BlendType.normal,{enable:!0,func:{srcRGB:o.gl.SRC_ALPHA,dstRGB:o.gl.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),i(r,o.BlendType.subtractive,{enable:!0,func:{srcRGB:o.gl.ONE,dstRGB:o.gl.ONE,srcAlpha:o.gl.ZERO,dstAlpha:o.gl.ONE_MINUS_SRC_COLOR},equation:{rgb:o.gl.FUNC_SUBTRACT,alpha:o.gl.FUNC_SUBTRACT}}),i(r,o.BlendType.max,{enable:!0,func:{srcRGB:o.gl.ONE,dstRGB:o.gl.ONE},equation:{rgb:o.gl.MAX_EXT}}),i(r,o.BlendType.min,{enable:!0,func:{srcRGB:o.gl.ONE,dstRGB:o.gl.ONE},equation:{rgb:o.gl.MIN_EXT}}),r)},PtGW:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="RightOutlined";t.a=o.forwardRef(c)},Pu0A:function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var s=i[u];if(!c(s))return!1;var l=e[s],f=t[s];if(!1===(o=n?n.call(r,l,f,s):void 0)||void 0===o&&l!==f)return!1}return!0}},PuIx:function(e,t,n){var r=n("MzY2"),o=n("wpQC")((function(e,t,n,o){r(e,t,n,o)}));e.exports=o},PvqL:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return x}));var r=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function o(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function i(){}var a="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,l=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),f=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),p=new RegExp("^rgba\\("+[a,a,a,c]+"\\)$"),d=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),h=new RegExp("^hsl\\("+[c,u,u]+"\\)$"),v=new RegExp("^hsla\\("+[c,u,u,c]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function m(){return this.rgb().formatHex()}function g(){return this.rgb().formatRgb()}function b(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=s.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?O(t):3===n?new E(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?w(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?w(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=l.exec(e))?new E(t[1],t[2],t[3],1):(t=f.exec(e))?new E(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?w(t[1],t[2],t[3],t[4]):(t=d.exec(e))?w(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=h.exec(e))?k(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?k(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?O(y[e]):"transparent"===e?new E(NaN,NaN,NaN,0):null}function O(e){return new E(e>>16&255,e>>8&255,255&e,1)}function w(e,t,n,r){return r<=0&&(e=t=n=NaN),new E(e,t,n,r)}function _(e){return e instanceof i||(e=b(e)),e?new E((e=e.rgb()).r,e.g,e.b,e.opacity):new E}function x(e,t,n,r){return 1===arguments.length?_(e):new E(e,t,n,null==r?1:r)}function E(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function S(){return"#"+j(this.r)+j(this.g)+j(this.b)}function C(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function j(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function k(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new T(e,t,n,r)}function P(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new T;if(e instanceof T)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),c=NaN,u=a-o,s=(a+o)/2;return u?(c=t===a?(n-r)/u+6*(n<r):n===a?(r-t)/u+2:(t-n)/u+4,u/=s<.5?a+o:2-a-o,c*=60):u=s>0&&s<1?0:c,new T(c,u,s,e.opacity)}function T(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function M(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}r(i,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:m,formatHex:m,formatHsl:function(){return P(this).formatHsl()},formatRgb:g,toString:g}),r(E,x,o(i,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatRgb:C,toString:C})),r(T,(function(e,t,n,r){return 1===arguments.length?P(e):new T(e,t,n,null==r?1:r)}),o(i,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new T(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new E(M(e>=240?e-240:e+120,o,r),M(e,o,r),M(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},PxXD:function(e,t,n){var r=n("AuHH");e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},"Pz+s":function(e,t,n){var r=n("vxC8"),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},"Q/gL":function(e,t,n){var r=n("ct80");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},Q4oW:function(e,t,n){var r=n("zKkv"),o=n("bz5b")(r);e.exports=o},Q7R8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(n("eX5m")),o=f(n("U9tm")),i=f(n("+WmY")),a=f(n("5FNB")),c=f(n("PBP+")),u=f(n("lKko")),s=f(n("MGFZ")),l=n("PChC");function f(e){return e&&e.__esModule?e:{default:e}}var p=["/src/pages/"],d=(0,c.default)((function(e){return(0,s.default)("/",e)?e:"/"+e}),(function(e){return(0,u.default)("/",e)?e:e+"/"})),h=(0,a.default)((function(e,t){var n=function(e){return e&&e.pagesPaths||p}(e).map((function(n){var r=("safeStartToSplit-"+t).split(n)[1];if((0,i.default)(r))return null;var o=function(e){return e&&e.langKeyDefault||e}(e),a=r.split("."),c=3===a.length?a[1]:o,u=d(a[0].replace("index","")),s=3===a.length?(0,l.addLangKeyToSlug)(u,c,e):u;return{slug:s,langKey:c,redirectTo:"/"===s?d(o):null}}));return(0,o.default)(n.filter((0,c.default)(r.default,i.default)))}));t.default=h},Q8kS:function(e,t,n){},Q9mQ:function(e,t,n){"use strict";n("EFp3"),n("UADf")},QF3D:function(e,t,n){var r=n("vxC8")(n("IBsm"),"DataView");e.exports=r},QMz8:function(e,t,n){var r=n("5pfJ"),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},QRUY:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.TOPRIGHT="topright",e.TOPLEFT="topleft",e.BOTTOMRIGHT="bottomright",e.BOTTOMLEFT="bottomleft",e.TOPCENTER="topcenter",e.BOTTOMCENTER="bottomcenter",e.LEFTCENTER="leftcenter",e.RIGHTCENTER="rightcenter"}(r||(r={}))},QT01:function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},QXnW:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,i,a=n("8Jfv"),c=a.tagSymbol,u=a.typeSymbol,s=n("19lg"),l=n("+FXs"),f=n("1ims"),p=(i=u,o=function(e){return e[i]},function(e){return e.reduce((function(e,t){return e[o(t)]=t,e}),{})}),d=function(e,t){if(t!==e)throw new TypeError("\n The JSON structure was generated from "+t+".\n You are trying to parse it as "+e+". \n ")},h=function(e){return function(t){if(null!==t&&"string"==typeof t["@@type"]){var n=t["@@type"];return e[n]?e[n].fromJSON(t,e,!0):t}return t}},v=function(e){return void 0===e?null:null!==e&&"function"==typeof e.toJSON?e.toJSON():e};e.exports=function(e,t){var n=t[u],o=e.prototype[c];e.prototype.toJSON=function(){var e;return r(e={},"@@type",n),r(e,"@@tag",o),r(e,"@@value",s(this,v)),e},t.fromJSON=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r({},n,t),i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e["@@type"],c=e["@@tag"],u=e["@@value"];d(n,a);var v=i?o:p(l(o)),y=s(u,h(v));return f(Object.create(t[c].prototype),y)}}},QZ90:function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")"+"?",s="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[i,a,c].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),l="(?:"+[i+r+"?",r,a,c,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+l+s,"g");e.exports=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}},Qd2C:function(e,t,n){var r=n("7/jS"),o=n("SU8Q"),i=n("T6vp"),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},QmBg:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="LoadingOutlined";t.a=o.forwardRef(c)},QrYh:function(e,t,n){var r=n("LtXa"),o=n("zH+d");e.exports=function(e,t){return e&&r(t,o(t),e)}},"QsI/":function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,u,"next",e)}function u(e){r(a,o,i,c,u,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},QuNn:function(e,t,n){var r=n("ERkP");function o(e){return r.createElement("svg",e,r.createElement("path",{d:"M651.186899 0c30.027294 0 57.825882 20.510118 62.674823 50.115765a60.295529 60.295529 0 0 1-55.055058 70.204235L654.439605 120.470588H181.050428c-9.035294 0-14.968471 8.975059-12.107294 17.016471l1.024 2.16847 389.451294 674.544942c4.487529 7.770353 15.058824 8.463059 20.630588 2.108235l1.505883-2.108235 232.538353-402.733177c15.751529-27.256471 49.754353-40.809412 78.516706-27.858823a60.235294 60.235294 0 0 1 29.665882 81.106823l-2.108235 4.035765-290.725647 503.567059a68.306824 68.306824 0 0 1-58.910118 34.032941c-22.588235 0-43.670588-11.294118-56.229647-29.756235l-2.740706-4.397177L9.078664 102.038588a68.216471 68.216471 0 0 1 0-68.005647A68.246588 68.246588 0 0 1 62.898899 0.210824L68.018899 0H651.186899z m1542.806588 369.302588c97.942588 0 158.900706 57.584941 162.002824 152.877177l0.12047 7.408941v277.202823c-5.421176 21.504-24.094118 36.502588-45.447529 36.502589-19.907765 0-37.496471-13.040941-44.152471-32.286118l-1.264941-4.216471v-260.999529c0-65.716706-36.080941-102.339765-102.580706-102.339765s-111.013647 42.616471-113.754353 107.218824l-0.12047 6.324706v249.795764c-5.481412 21.473882-24.094118 36.382118-45.417412 36.382118-19.877647 0-37.436235-13.010824-44.122353-32.165647l-1.264941-4.216471V374.091294h86.497882v72.944941h1.656471c27.648-50.989176 77.462588-77.703529 147.847529-77.703529zM1593.929487 196.065882c20.781176 0 39.574588 12.348235 48.730353 31.472942l1.807059 4.21647 218.202353 574.945882c-8.071529 21.202824-27.708235 35.087059-49.603765 35.087059a53.187765 53.187765 0 0 1-47.826823-30.930823l-1.746824-4.156236-55.416471-155.346823h-229.918117l-55.416471 155.346823-1.927529 4.306824c-9.035294 18.070588-27.015529 29.605647-46.832941 29.605647a52.585412 52.585412 0 0 1-46.832942-29.605647L1325.21984 806.671059l218.172235-574.945883 1.807059-4.21647a54.241882 54.241882 0 0 1 48.730353-31.472941z m968.432941 83.365647c17.468235 0 33.551059 9.306353 42.857412 24.425412l2.198588 3.915294h0.301177v97.28h87.250823c10.782118 7.800471 17.257412 20.510118 17.257412 34.123294 0 12.047059-5.12 23.491765-13.854118 31.201883l-3.403294 2.740706h-86.949647v241.995294c0 37.647059 17.347765 54.994824 55.416471 54.994823 8.252235 0 20.841412-0.873412 27.979294-1.596235l3.041882-0.391529c10.631529 7.920941 16.956235 20.600471 16.956236 34.123294a42.164706 42.164706 0 0 1-13.552942 31.171764l-3.403294 2.740706-10.149647 1.686589c-13.552941 1.957647-27.226353 2.861176-40.96 2.710588-88.335059 0-124.024471-31.232-125.952-109.869177l-0.090353-6.836706v-250.608941h-62.765176a41.562353 41.562353 0 0 1-17.016471-33.792c0-11.986824 5.029647-23.311059 13.613177-31.021176l3.403294-2.770824v-0.602353h62.765176v-97.28l2.198588-3.915294a50.447059 50.447059 0 0 1 42.857412-24.395294zM2830.289016 180.705882c20.871529 0 39.815529 12.318118 49.091765 31.503059l1.807059 4.216471h-0.301176l164.562823 474.563764h2.499765l165.285647-474.563764 1.776941-4.186353a53.428706 53.428706 0 0 1 48.097882-31.232c20.570353 0 39.152941 12.227765 48.097883 31.232l1.776941 4.21647-215.401412 574.945883c-5.752471 24.696471-26.985412 42.104471-51.410823 42.10447-22.889412 0-42.977882-15.299765-50.176-37.586823l-1.234824-4.517647-215.401412-574.945883 1.837177-4.246588A54.784 54.784 0 0 1 2830.289016 180.705882zM1594.170428 327.499294h-2.499764l-90.051765 252.084706 182.603294 0.120471-90.051765-252.205177zM689.737487 274.642824c24.576 0 40.357647 25.419294 30.539294 47.134117l-1.596235 3.072-108.93553 188.717177a33.490824 33.490824 0 0 1-55.777882 3.343058l-2.198588-3.312941-108.93553-188.747294a33.490824 33.490824 0 0 1 25.539765-50.025412l3.433412-0.180705h217.931294zM1072.954428 0c24.274824 0 46.802824 13.040941 58.940236 34.032941 11.143529 19.335529 11.986824 43.068235 2.529882 63.096471l-2.590118 4.909176-119.205647 206.516706a60.144941 60.144941 0 0 1-89.569882 17.106824c-22.618353-17.769412-27.708235-49.904941-15.450353-75.685647l2.499765-4.758589 60.928-105.562353a12.8 12.8 0 0 0-8.673883-18.974117L959.953016 120.470588h-105.953882c-29.997176 0-57.825882-20.510118-62.644706-50.115764a60.325647 60.325647 0 0 1 55.115294-70.174118L850.776546 0h222.147765z",fill:"#ffffff"}))}o.defaultProps={t:"1605349851981",className:"icon",viewBox:"0 0 3313 1024",version:"1.1",width:"94",height:"28"},e.exports=o,o.default=o},R3TX:function(e,t,n){var r=n("zWgn"),o=n("UAs9"),i=n("7Pat");e.exports=function(e,t){return i(o(e,t,r),e+"")}},R3gn:function(e,t,n){var r=n("Syyo"),o=n("mGzy"),i=n("pPzx"),a=n("ZZ+W"),c=n("aURW"),u=n("XlL0"),s=r?r.prototype:void 0,l=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=c;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var v=p.get(e);if(v)return v==t;r|=2,p.set(e,t);var y=a(d(e),d(t),r,s,f,p);return p.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},R3zJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r,o=n("3yBb"),i=(n("VeAG"),function(){return Object(o.a)()&&window.document.documentElement}),a=function(){if(!i())return!1;if(void 0!==r)return r;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),r=1===e.scrollHeight,document.body.removeChild(e),r}},R5u7:function(e,t,n){var r=n("pPzx"),o=n("9y2L"),i=n("pnw1"),a=n("tQYX");e.exports=function(e,t,n){if(!a(n))return!1;var c=typeof t;return!!("number"==c?o(n)&&i(t,n.length):"string"==c&&t in n)&&r(n[t],e)}},R9oj:function(e,t,n){"use strict";n("EFp3"),n("pwpV")},RFCa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inject=t.LazyServiceIdentifer=void 0;var r=n("KWcp"),o=n("2u/a"),i=n("jFDj"),a=n("tTA5"),c=function(){function e(e){this._cb=e}return e.prototype.unwrap=function(){return this._cb()},e}();t.LazyServiceIdentifer=c,t.inject=function(e){return function(t,n,c){if(void 0===e)throw new Error(r.UNDEFINED_INJECT_ANNOTATION(t.name));var u=new i.Metadata(o.INJECT_TAG,e);"number"==typeof c?a.tagParameter(t,n,c,u):a.tagProperty(t,n,u)}}},RFxK:function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(!1===n(i[u],u,i))break}return t}}},RJmV:function(e,t,n){var r=n("9JhN"),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},RNlM:function(e,t,n){var r=n("+ooz");e.exports=function(){this.__data__=new r,this.size=0}},RNvQ:function(e,t,n){var r=n("tQYX"),o=n("ENE1"),i=n("nvU9"),a=Math.max,c=Math.min;e.exports=function(e,t,n){var u,s,l,f,p,d,h=0,v=!1,y=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=u,r=s;return u=s=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,p=setTimeout(w,t),v?g(e):f}function O(e){var n=e-d;return void 0===d||n>=t||n<0||y&&e-h>=l}function w(){var e=o();if(O(e))return _(e);p=setTimeout(w,function(e){var n=t-(e-d);return y?c(n,l-(e-h)):n}(e))}function _(e){return p=void 0,m&&u?g(e):(u=s=void 0,f)}function x(){var e=o(),n=O(e);if(u=arguments,s=this,d=e,n){if(void 0===p)return b(d);if(y)return clearTimeout(p),p=setTimeout(w,t),g(d)}return void 0===p&&(p=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(v=!!n.leading,l=(y="maxWait"in n)?a(i(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),x.cancel=function(){void 0!==p&&clearTimeout(p),h=0,u=d=s=p=void 0},x.flush=function(){return void 0===p?f:_(o())},x}},RYsc:function(e,t,n){"use strict";t.__esModule=!0,t.parsePath=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");-1!==i&&(n=t.substr(i),t=t.substr(0,i));return{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}},RZEj:function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(){o=function(){return e};var e={},n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p={};function d(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==n&&r.call(g,a)&&(y=g);var b=v.prototype=d.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,n){var o;this._invoke=function(i,a){function c(){return new n((function(o,c){!function o(i,a,c,u){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"==t(p)&&r.call(p,"__await")?n.resolve(p.__await).then((function(e){o("next",e,c,u)}),(function(e){o("throw",e,c,u)})):n.resolve(p).then((function(e){l.value=e,c(l)}),(function(e){return o("throw",e,c,u)}))}u(s.arg)}(i,a,o,c)}))}return o=o?o.then(c,c):c()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=v,s(b,"constructor",v),s(v,"constructor",h),h.displayName=s(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},O(w.prototype),s(w.prototype,c,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(b),s(b,u,"Generator"),s(b,a,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function i(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){i(a,r,o,c,u,"next",e)}function u(e){i(a,r,o,c,u,"throw",e)}c(void 0)}))}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&function(e,t){(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function w(e,t){return e(t={exports:{}},t.exports),t.exports}var _,x,E=function(e){return e&&e.Math==Math&&e},S=E("object"==("undefined"==typeof globalThis?"undefined":t(globalThis))&&globalThis)||E("object"==("undefined"==typeof window?"undefined":t(window))&&window)||E("object"==("undefined"==typeof self?"undefined":t(self))&&self)||E("object"==t(O)&&O)||function(){return this}()||Function("return this")(),C=Object.defineProperty,j=function(e,t){try{C(S,e,{value:t,configurable:!0,writable:!0})}catch(o){S[e]=t}return t},k=S["__core-js_shared__"]||j("__core-js_shared__",{}),P=w((function(e){(e.exports=function(e,t){return k[e]||(k[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),T=function(e){try{return!!e()}catch(e){return!0}},M=!T((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),A=Function.prototype,L=A.bind,R=A.call,N=M&&L.bind(R,R),I=M?function(e){return e&&N(e)}:function(e){return e&&function(){return R.apply(e,arguments)}},D=TypeError,F=function(e){if(null==e)throw D("Can't call method on "+e);return e},z=Object,B=function(e){return z(F(e))},U=I({}.hasOwnProperty),V=Object.hasOwn||function(e,t){return U(B(e),t)},H=0,G=Math.random(),W=I(1..toString),Y=function(e){return"Symbol("+(void 0===e?"":e)+")_"+W(++H+G,36)},K=function(e){return"function"==typeof e},X=function(e){return K(e)?e:void 0},q=function(e,t){return arguments.length<2?X(S[e]):S[e]&&S[e][t]},Z=q("navigator","userAgent")||"",J=S.process,Q=S.Deno,$=J&&J.versions||Q&&Q.version,ee=$&&$.v8;ee&&(x=(_=ee.split("."))[0]>0&&_[0]<4?1:+(_[0]+_[1])),!x&&Z&&(!(_=Z.match(/Edge\/(\d+)/))||_[1]>=74)&&(_=Z.match(/Chrome\/(\d+)/))&&(x=+_[1]);var te=x,ne=!!Object.getOwnPropertySymbols&&!T((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&te&&te<41})),re=ne&&!Symbol.sham&&"symbol"==t(Symbol.iterator),oe=P("wks"),ie=S.Symbol,ae=ie&&ie.for,ce=re?ie:ie&&ie.withoutSetter||Y,ue=function(e){if(!V(oe,e)||!ne&&"string"!=typeof oe[e]){var t="Symbol."+e;ne&&V(ie,e)?oe[e]=ie[e]:oe[e]=re&&ae?ae(t):ce(t)}return oe[e]},se={};se[ue("toStringTag")]="z";var le="[object z]"===String(se),fe=!T((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),pe=function(e){return"object"==t(e)?null!==e:K(e)},de=S.document,he=pe(de)&&pe(de.createElement),ve=function(e){return he?de.createElement(e):{}},ye=!fe&&!T((function(){return 7!=Object.defineProperty(ve("div"),"a",{get:function(){return 7}}).a})),me=fe&&T((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ge=String,be=TypeError,Oe=function(e){if(pe(e))return e;throw be(ge(e)+" is not an object")},we=Function.prototype.call,_e=M?we.bind(we):function(){return we.apply(we,arguments)},xe=I({}.isPrototypeOf),Ee=Object,Se=re?function(e){return"symbol"==t(e)}:function(e){var t=q("Symbol");return K(t)&&xe(t.prototype,Ee(e))},Ce=String,je=function(e){try{return Ce(e)}catch(e){return"Object"}},ke=TypeError,Pe=function(e){if(K(e))return e;throw ke(je(e)+" is not a function")},Te=function(e,t){var n=e[t];return null==n?void 0:Pe(n)},Me=TypeError,Ae=TypeError,Le=ue("toPrimitive"),Re=function(e,t){if(!pe(e)||Se(e))return e;var n,r=Te(e,Le);if(r){if(void 0===t&&(t="default"),n=_e(r,e,t),!pe(n)||Se(n))return n;throw Ae("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&K(n=e.toString)&&!pe(r=_e(n,e)))return r;if(K(n=e.valueOf)&&!pe(r=_e(n,e)))return r;if("string"!==t&&K(n=e.toString)&&!pe(r=_e(n,e)))return r;throw Me("Can't convert object to primitive value")}(e,t)},Ne=function(e){var t=Re(e,"string");return Se(t)?t:t+""},Ie=TypeError,De=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,ze={f:fe?me?function(e,t,n){if(Oe(e),t=Ne(t),Oe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Fe(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return De(e,t,n)}:De:function(e,t,n){if(Oe(e),t=Ne(t),Oe(n),ye)try{return De(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Be=Function.prototype,Ue=fe&&Object.getOwnPropertyDescriptor,Ve=V(Be,"name"),He={EXISTS:Ve,PROPER:Ve&&"something"===function(){}.name,CONFIGURABLE:Ve&&(!fe||fe&&Ue(Be,"name").configurable)},Ge=I(Function.toString);K(k.inspectSource)||(k.inspectSource=function(e){return Ge(e)});var We,Ye,Ke,Xe=k.inspectSource,qe=S.WeakMap,Ze=K(qe)&&/native code/.test(Xe(qe)),Je=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Qe=fe?function(e,t,n){return ze.f(e,t,Je(1,n))}:function(e,t,n){return e[t]=n,e},$e=P("keys"),et=function(e){return $e[e]||($e[e]=Y(e))},tt={},nt=S.TypeError,rt=S.WeakMap;if(Ze||k.state){var ot=k.state||(k.state=new rt),it=I(ot.get),at=I(ot.has),ct=I(ot.set);We=function(e,t){if(at(ot,e))throw new nt("Object already initialized");return t.facade=e,ct(ot,e,t),t},Ye=function(e){return it(ot,e)||{}},Ke=function(e){return at(ot,e)}}else{var ut=et("state");tt[ut]=!0,We=function(e,t){if(V(e,ut))throw new nt("Object already initialized");return t.facade=e,Qe(e,ut,t),t},Ye=function(e){return V(e,ut)?e[ut]:{}},Ke=function(e){return V(e,ut)}}var st={set:We,get:Ye,has:Ke,enforce:function(e){return Ke(e)?Ye(e):We(e,{})},getterFor:function(e){return function(t){var n;if(!pe(t)||(n=Ye(t)).type!==e)throw nt("Incompatible receiver, "+e+" required");return n}}},lt=w((function(e){var t=He.CONFIGURABLE,n=st.enforce,r=st.get,o=Object.defineProperty,i=fe&&!T((function(){return 8!==o((function(){}),"length",{value:8}).length})),a=String(String).split("String"),c=e.exports=function(e,r,c){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),c&&c.getter&&(r="get "+r),c&&c.setter&&(r="set "+r),(!V(e,"name")||t&&e.name!==r)&&(fe?o(e,"name",{value:r,configurable:!0}):e.name=r),i&&c&&V(c,"arity")&&e.length!==c.arity&&o(e,"length",{value:c.arity});try{c&&V(c,"constructor")&&c.constructor?fe&&o(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var u=n(e);return V(u,"source")||(u.source=a.join("string"==typeof r?r:"")),e};Function.prototype.toString=c((function(){return K(this)&&r(this).source||Xe(this)}),"toString")})),ft=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(K(n)&<(n,i,r),r.global)o?e[t]=n:j(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:ze.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},pt=I({}.toString),dt=I("".slice),ht=function(e){return dt(pt(e),8,-1)},vt=ue("toStringTag"),yt=Object,mt="Arguments"==ht(function(){return arguments}()),gt=le?ht:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=yt(e),vt))?n:mt?ht(t):"Object"==(r=ht(t))&&K(t.callee)?"Arguments":r},bt=le?{}.toString:function(){return"[object "+gt(this)+"]"};le||ft(Object.prototype,"toString",bt,{unsafe:!0});var Ot={}.propertyIsEnumerable,wt=Object.getOwnPropertyDescriptor,_t={f:wt&&!Ot.call({1:2},1)?function(e){var t=wt(this,e);return!!t&&t.enumerable}:Ot},xt=Object,Et=I("".split),St=T((function(){return!xt("z").propertyIsEnumerable(0)}))?function(e){return"String"==ht(e)?Et(e,""):xt(e)}:xt,Ct=function(e){return St(F(e))},jt=Object.getOwnPropertyDescriptor,kt={f:fe?jt:function(e,t){if(e=Ct(e),t=Ne(t),ye)try{return jt(e,t)}catch(e){}if(V(e,t))return Je(!_e(_t.f,e,t),e[t])}},Pt=Math.ceil,Tt=Math.floor,Mt=Math.trunc||function(e){var t=+e;return(t>0?Tt:Pt)(t)},At=function(e){var t=+e;return t!=t||0===t?0:Mt(t)},Lt=Math.max,Rt=Math.min,Nt=function(e,t){var n=At(e);return n<0?Lt(n+t,0):Rt(n,t)},It=Math.min,Dt=function(e){return e>0?It(At(e),9007199254740991):0},Ft=function(e){return Dt(e.length)},zt=function(e){return function(t,n,r){var o,i=Ct(t),a=Ft(i),c=Nt(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},Bt={includes:zt(!0),indexOf:zt(!1)},Ut=Bt.indexOf,Vt=I([].push),Ht=function(e,t){var n,r=Ct(e),o=0,i=[];for(n in r)!V(tt,n)&&V(r,n)&&Vt(i,n);for(;t.length>o;)V(r,n=t[o++])&&(~Ut(i,n)||Vt(i,n));return i},Gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wt=Gt.concat("length","prototype"),Yt={f:Object.getOwnPropertyNames||function(e){return Ht(e,Wt)}},Kt={f:Object.getOwnPropertySymbols},Xt=I([].concat),qt=q("Reflect","ownKeys")||function(e){var t=Yt.f(Oe(e)),n=Kt.f;return n?Xt(t,n(e)):t},Zt=function(e,t,n){for(var r=qt(t),o=ze.f,i=kt.f,a=0;a<r.length;a++){var c=r[a];V(e,c)||n&&V(n,c)||o(e,c,i(t,c))}},Jt=/#|\.prototype\./,Qt=function(e,t){var n=en[$t(e)];return n==nn||n!=tn&&(K(t)?T(t):!!t)},$t=Qt.normalize=function(e){return String(e).replace(Jt,".").toLowerCase()},en=Qt.data={},tn=Qt.NATIVE="N",nn=Qt.POLYFILL="P",rn=Qt,on=kt.f,an=function(e,n){var r,o,i,a,c,u=e.target,s=e.global,l=e.stat;if(r=s?S:l?S[u]||j(u,{}):(S[u]||{}).prototype)for(o in n){if(a=n[o],i=e.dontCallGetSet?(c=on(r,o))&&c.value:r[o],!rn(s?o:u+(l?".":"#")+o,e.forced)&&void 0!==i){if(t(a)==t(i))continue;Zt(a,i)}(e.sham||i&&i.sham)&&Qe(a,"sham",!0),ft(r,o,a,e)}},cn="process"==ht(S.process),un=String,sn=TypeError,ln=Object.setPrototypeOf||("__proto__"in{}?function(){var e,n=!1,r={};try{(e=I(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),n=r instanceof Array}catch(e){}return function(r,o){return Oe(r),function(e){if("object"==t(e)||K(e))return e;throw sn("Can't set "+un(e)+" as a prototype")}(o),n?e(r,o):r.__proto__=o,r}}():void 0),fn=ze.f,pn=ue("toStringTag"),dn=function(e,t,n){e&&!n&&(e=e.prototype),e&&!V(e,pn)&&fn(e,pn,{configurable:!0,value:t})},hn=ue("species"),vn=function(e){var t=q(e),n=ze.f;fe&&t&&!t[hn]&&n(t,hn,{configurable:!0,get:function(){return this}})},yn=TypeError,mn=function(e,t){if(xe(t,e))return e;throw yn("Incorrect invocation")},gn=function(){},bn=[],On=q("Reflect","construct"),wn=/^\s*(?:class|function)\b/,_n=I(wn.exec),xn=!wn.exec(gn),En=function(e){if(!K(e))return!1;try{return On(gn,bn,e),!0}catch(e){return!1}},Sn=function(e){if(!K(e))return!1;switch(gt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return xn||!!_n(wn,Xe(e))}catch(e){return!0}};Sn.sham=!0;var Cn,jn,kn,Pn,Tn=!On||T((function(){var e;return En(En.call)||!En(Object)||!En((function(){e=!0}))||e}))?Sn:En,Mn=TypeError,An=function(e){if(Tn(e))return e;throw Mn(je(e)+" is not a constructor")},Ln=ue("species"),Rn=function(e,t){var n,r=Oe(e).constructor;return void 0===r||null==(n=Oe(r)[Ln])?t:An(n)},Nn=Function.prototype,In=Nn.apply,Dn=Nn.call,Fn="object"==("undefined"==typeof Reflect?"undefined":t(Reflect))&&Reflect.apply||(M?Dn.bind(In):function(){return Dn.apply(In,arguments)}),zn=I(I.bind),Bn=function(e,t){return Pe(e),void 0===t?e:M?zn(e,t):function(){return e.apply(t,arguments)}},Un=q("document","documentElement"),Vn=I([].slice),Hn=TypeError,Gn=function(e,t){if(e<t)throw Hn("Not enough arguments");return e},Wn=/(?:ipad|iphone|ipod).*applewebkit/i.test(Z),Yn=S.setImmediate,Kn=S.clearImmediate,Xn=S.process,qn=S.Dispatch,Zn=S.Function,Jn=S.MessageChannel,Qn=S.String,$n=0,er={};try{Cn=S.location}catch(n){}var tr=function(e){if(V(er,e)){var t=er[e];delete er[e],t()}},nr=function(e){return function(){tr(e)}},rr=function(e){tr(e.data)},or=function(e){S.postMessage(Qn(e),Cn.protocol+"//"+Cn.host)};Yn&&Kn||(Yn=function(e){Gn(arguments.length,1);var t=K(e)?e:Zn(e),n=Vn(arguments,1);return er[++$n]=function(){Fn(t,void 0,n)},jn($n),$n},Kn=function(e){delete er[e]},cn?jn=function(e){Xn.nextTick(nr(e))}:qn&&qn.now?jn=function(e){qn.now(nr(e))}:Jn&&!Wn?(Pn=(kn=new Jn).port2,kn.port1.onmessage=rr,jn=Bn(Pn.postMessage,Pn)):S.addEventListener&&K(S.postMessage)&&!S.importScripts&&Cn&&"file:"!==Cn.protocol&&!T(or)?(jn=or,S.addEventListener("message",rr,!1)):jn="onreadystatechange"in ve("script")?function(e){Un.appendChild(ve("script")).onreadystatechange=function(){Un.removeChild(this),tr(e)}}:function(e){setTimeout(nr(e),0)});var ir,ar,cr,ur,sr,lr,fr,pr,dr={set:Yn,clear:Kn},hr=/ipad|iphone|ipod/i.test(Z)&&void 0!==S.Pebble,vr=/web0s(?!.*chrome)/i.test(Z),yr=kt.f,mr=dr.set,gr=S.MutationObserver||S.WebKitMutationObserver,br=S.document,Or=S.process,wr=S.Promise,_r=yr(S,"queueMicrotask"),xr=_r&&_r.value;xr||(ir=function(){var e,t;for(cn&&(e=Or.domain)&&e.exit();ar;){t=ar.fn,ar=ar.next;try{t()}catch(e){throw ar?ur():cr=void 0,e}}cr=void 0,e&&e.enter()},Wn||cn||vr||!gr||!br?!hr&&wr&&wr.resolve?((fr=wr.resolve(void 0)).constructor=wr,pr=Bn(fr.then,fr),ur=function(){pr(ir)}):cn?ur=function(){Or.nextTick(ir)}:(mr=Bn(mr,S),ur=function(){mr(ir)}):(sr=!0,lr=br.createTextNode(""),new gr(ir).observe(lr,{characterData:!0}),ur=function(){lr.data=sr=!sr}));var Er=xr||function(e){var t={fn:e,next:void 0};cr&&(cr.next=t),ar||(ar=t,ur()),cr=t},Sr=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Cr=function(){this.head=null,this.tail=null};Cr.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var jr,kr,Pr,Tr=Cr,Mr=S.Promise,Ar="object"==("undefined"==typeof Deno?"undefined":t(Deno))&&Deno&&"object"==t(Deno.version),Lr=!Ar&&!cn&&"object"==("undefined"==typeof window?"undefined":t(window))&&"object"==("undefined"==typeof document?"undefined":t(document)),Rr=(Mr&&Mr.prototype,ue("species")),Nr=!1,Ir=K(S.PromiseRejectionEvent),Dr={CONSTRUCTOR:rn("Promise",(function(){var e=Xe(Mr),t=e!==String(Mr);if(!t&&66===te)return!0;if(!te||te<51||!/native code/.test(e)){var n=new Mr((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Rr]=r,!(Nr=n.then((function(){}))instanceof r))return!0}return!t&&(Lr||Ar)&&!Ir})),REJECTION_EVENT:Ir,SUBCLASSING:Nr},Fr=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Pe(t),this.reject=Pe(n)},zr={f:function(e){return new Fr(e)}},Br=dr.set,Ur=Dr.CONSTRUCTOR,Vr=Dr.REJECTION_EVENT,Hr=Dr.SUBCLASSING,Gr=st.getterFor("Promise"),Wr=st.set,Yr=Mr&&Mr.prototype,Kr=Mr,Xr=Yr,qr=S.TypeError,Zr=S.document,Jr=S.process,Qr=zr.f,$r=Qr,eo=!!(Zr&&Zr.createEvent&&S.dispatchEvent),to=function(e){var t;return!(!pe(e)||!K(t=e.then))&&t},no=function(e,t){var n,r,o,i=t.value,a=1==t.state,c=a?e.ok:e.fail,u=e.resolve,s=e.reject,l=e.domain;try{c?(a||(2===t.rejection&&co(t),t.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===e.promise?s(qr("Promise-chain cycle")):(r=to(n))?_e(r,n,u,s):u(n)):s(i)}catch(e){l&&!o&&l.exit(),s(e)}},ro=function(e,t){e.notified||(e.notified=!0,Er((function(){for(var n,r=e.reactions;n=r.get();)no(n,e);e.notified=!1,t&&!e.rejection&&io(e)})))},oo=function(e,t,n){var r,o;eo?((r=Zr.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),S.dispatchEvent(r)):r={promise:t,reason:n},!Vr&&(o=S["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=S.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},io=function(e){_e(Br,S,(function(){var t,n=e.facade,r=e.value;if(ao(e)&&(t=Sr((function(){cn?Jr.emit("unhandledRejection",r,n):oo("unhandledrejection",n,r)})),e.rejection=cn||ao(e)?2:1,t.error))throw t.value}))},ao=function(e){return 1!==e.rejection&&!e.parent},co=function(e){_e(Br,S,(function(){var t=e.facade;cn?Jr.emit("rejectionHandled",t):oo("rejectionhandled",t,e.value)}))},uo=function(e,t,n){return function(r){e(t,r,n)}},so=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ro(e,!0))},lo=function e(t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===n)throw qr("Promise can't be resolved itself");var o=to(n);o?Er((function(){var r={done:!1};try{_e(o,n,uo(e,r,t),uo(so,r,t))}catch(n){so(r,n,t)}})):(t.value=n,t.state=1,ro(t,!1))}catch(n){so({done:!1},n,t)}}};if(Ur&&(Xr=(Kr=function(e){mn(this,Xr),Pe(e),_e(jr,this);var t=Gr(this);try{e(uo(lo,t),uo(so,t))}catch(e){so(t,e)}}).prototype,(jr=function(e){Wr(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Tr,rejection:!1,state:0,value:void 0})}).prototype=ft(Xr,"then",(function(e,t){var n=Gr(this),r=Qr(Rn(this,Kr));return n.parent=!0,r.ok=!K(e)||e,r.fail=K(t)&&t,r.domain=cn?Jr.domain:void 0,0==n.state?n.reactions.add(r):Er((function(){no(r,n)})),r.promise})),kr=function(){var e=new jr,t=Gr(e);this.promise=e,this.resolve=uo(lo,t),this.reject=uo(so,t)},zr.f=Qr=function(e){return e===Kr||void 0===e?new kr(e):$r(e)},K(Mr)&&Yr!==Object.prototype)){Pr=Yr.then,Hr||ft(Yr,"then",(function(e,t){var n=this;return new Kr((function(e,t){_e(Pr,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Yr.constructor}catch(n){}ln&&ln(Yr,Xr)}an({global:!0,constructor:!0,wrap:!0,forced:Ur},{Promise:Kr}),dn(Kr,"Promise",!1),vn("Promise");var fo={},po=ue("iterator"),ho=Array.prototype,vo=function(e){return void 0!==e&&(fo.Array===e||ho[po]===e)},yo=ue("iterator"),mo=function(e){if(null!=e)return Te(e,yo)||Te(e,"@@iterator")||fo[gt(e)]},go=TypeError,bo=function(e,t){var n=arguments.length<2?mo(e):t;if(Pe(n))return Oe(_e(n,e));throw go(je(e)+" is not iterable")},Oo=function(e,t,n){var r,o;Oe(e);try{if(!(r=Te(e,"return"))){if("throw"===t)throw n;return n}r=_e(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Oe(r),n},wo=TypeError,_o=function(e,t){this.stopped=e,this.result=t},xo=_o.prototype,Eo=function(e,n,r){var o,i,a,c,u,s,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=Bn(n,f),m=function(e){return o&&Oo(o,"normal",e),new _o(!0,e)},g=function(e){return p?(Oe(e),v?y(e[0],e[1],m):y(e[0],e[1])):v?y(e,m):y(e)};if(d)o=e.iterator;else if(h)o=e;else{if(!(i=mo(e)))throw wo(je(e)+" is not iterable");if(vo(i)){for(a=0,c=Ft(e);c>a;a++)if((u=g(e[a]))&&xe(xo,u))return u;return new _o(!1)}o=bo(e,i)}for(s=d?e.next:o.next;!(l=_e(s,o)).done;){try{u=g(l.value)}catch(e){Oo(o,"throw",e)}if("object"==t(u)&&u&&xe(xo,u))return u}return new _o(!1)},So=ue("iterator"),Co=!1;try{var jo=0,ko={next:function(){return{done:!!jo++}},return:function(){Co=!0}};ko[So]=function(){return this},Array.from(ko,(function(){throw 2}))}catch(n){}var Po=function(e,t){if(!t&&!Co)return!1;var n=!1;try{var r={};r[So]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},To=Dr.CONSTRUCTOR||!Po((function(e){Mr.all(e).then(void 0,(function(){}))}));an({target:"Promise",stat:!0,forced:To},{all:function(e){var t=this,n=zr.f(t),r=n.resolve,o=n.reject,i=Sr((function(){var n=Pe(t.resolve),i=[],a=0,c=1;Eo(e,(function(e){var u=a++,s=!1;c++,_e(n,t,e).then((function(e){s||(s=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Mo=Dr.CONSTRUCTOR,Ao=Mr&&Mr.prototype;if(an({target:"Promise",proto:!0,forced:Mo,real:!0},{catch:function(e){return this.then(void 0,e)}}),K(Mr)){var Lo=q("Promise").prototype.catch;Ao.catch!==Lo&&ft(Ao,"catch",Lo,{unsafe:!0})}an({target:"Promise",stat:!0,forced:To},{race:function(e){var t=this,n=zr.f(t),r=n.reject,o=Sr((function(){var o=Pe(t.resolve);Eo(e,(function(e){_e(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),an({target:"Promise",stat:!0,forced:Dr.CONSTRUCTOR},{reject:function(e){var t=zr.f(this);return _e(t.reject,void 0,e),t.promise}});var Ro=Dr.CONSTRUCTOR;function No(e,t){if(!e)throw new Error(t||"web worker helper assertion failed.")}q("Promise"),an({target:"Promise",stat:!0,forced:Ro},{resolve:function(e){return function(e,t){if(Oe(e),pe(t)&&t.constructor===e)return t;var n=zr.f(e);return(0,n.resolve)(t),n.promise}(this,e)}});var Io="undefined"!=typeof window&&void 0!==window.orientation,Do=function(){function e(e,t){var n=this;this.name=e,this.workerThread=t,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return e.prototype.postMessage=function(e,t){this.workerThread.postMessage({source:"Main thread",type:e,payload:t})},e.prototype.done=function(e){No(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(e)},e.prototype.error=function(e){No(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(e)},e}(),Fo=new Map;function zo(e){var t=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(t)}function Bo(e,n,r){void 0===n&&(n=!0);var o=r||new Set;if(e)if(Uo(e))o.add(e);else if(Uo(e.buffer))o.add(e.buffer);else if(ArrayBuffer.isView(e));else if(n&&"object"==t(e))for(var i in e)Bo(e[i],n,o);return void 0===r?Array.from(o):[]}function Uo(e){return!!e&&(e instanceof ArrayBuffer||"undefined"!=typeof MessagePort&&e instanceof MessagePort||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas)}var Vo=function(){},Ho=function(){function e(e){this.terminated=!1,this.loadableURL="";var t=e.name,n=e.source,r=e.url;No(n||r),this.name=t,this.source=n,this.url=r,this.onMessage=Vo,this.onError=function(e){return console.log(e)},this.worker=this.createBrowserWorker()}return e.isSupported=function(){return"undefined"!=typeof Worker},e.prototype.destroy=function(){this.onMessage=Vo,this.onError=Vo,this.worker.terminate(),this.terminated=!0},Object.defineProperty(e.prototype,"isRunning",{get:function(){return Boolean(this.onMessage)},enumerable:!1,configurable:!0}),e.prototype.postMessage=function(e,t){t=t||Bo(e),this.worker.postMessage(e,t)},e.prototype.getErrorFromErrorEvent=function(e){var t="Failed to load ";return t+="worker "+this.name+" from "+this.url+". ",e.message&&(t+=e.message+" in "),e.lineno&&(t+=":"+e.lineno+":"+e.colno),new Error(t)},e.prototype.createBrowserWorker=function(){var e=this;this.loadableURL=function(e){No(e.source&&!e.url||!e.source&&e.url);var t=Fo.get(e.source||e.url);return t||(e.url&&(t=function(e){return e.startsWith("http")?zo("try {\n importScripts('"+e+"');\n} catch (error) {\n console.error(error);\n throw error;\n}"):e}(e.url),Fo.set(e.url,t)),e.source&&(t=zo(e.source),Fo.set(e.source,t))),No(t),t}({source:this.source,url:this.url});var t=new Worker(this.loadableURL,{name:this.name});return t.onmessage=function(t){t.data?e.onMessage(t.data):e.onError(new Error("No data received"))},t.onerror=function(t){e.onError(e.getErrorFromErrorEvent(t)),e.terminated=!0},t.onmessageerror=function(t){return console.error("worker "+e.name+", message error: "+t)},t},e}(),Go=self&&self.__assign||function(){return(Go=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Wo=self&&self.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Yo=self&&self.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Ko=function(){function e(e){this.name="unnamed",this.maxConcurrency=1,this.maxMobileConcurrency=1,this.onDebug=function(){},this.reuseWorkers=!0,this.props={},this.jobQueue=[],this.idleQueue=[],this.count=0,this.isDestroyed=!1,this.source=e.source,this.url=e.url,this.setProps(e)}return e.prototype.destroy=function(){this.idleQueue.forEach((function(e){return e.destroy()})),this.isDestroyed=!0},e.prototype.setProps=function(e){this.props=Go(Go({},this.props),e),void 0!==e.name&&(this.name=e.name),void 0!==e.maxConcurrency&&(this.maxConcurrency=e.maxConcurrency),void 0!==e.maxMobileConcurrency&&(this.maxMobileConcurrency=e.maxMobileConcurrency),void 0!==e.reuseWorkers&&(this.reuseWorkers=e.reuseWorkers),void 0!==e.onDebug&&(this.onDebug=e.onDebug)},e.prototype.startJob=function(e,t,n){return void 0===t&&(t=function(e,t,n){return e.done(n)}),void 0===n&&(n=function(e,t){return e.error(t)}),Wo(this,void 0,void 0,(function(){var r,o=this;return Yo(this,(function(i){switch(i.label){case 0:return r=new Promise((function(r){return o.jobQueue.push({name:e,onMessage:t,onError:n,onStart:r}),o})),this.startQueuedJob(),[4,r];case 1:return[2,i.sent()]}}))}))},e.prototype.startQueuedJob=function(){return Wo(this,void 0,void 0,(function(){var e,t,n;return Yo(this,(function(r){switch(r.label){case 0:if(!this.jobQueue.length)return[2];if(!(e=this.getAvailableWorker()))return[2];if(!(t=this.jobQueue.shift()))return[3,4];this.onDebug({message:"Starting job",name:t.name,backlog:this.jobQueue.length,workerThread:e}),n=new Do(t.name,e),e.onMessage=function(e){return t.onMessage(n,e.type,e.payload)},e.onError=function(e){return t.onError(n,e)},t.onStart(n),r.label=1;case 1:return r.trys.push([1,,3,4]),[4,n.result];case 2:return r.sent(),[3,4];case 3:return this.returnWorkerToQueue(e),[7];case 4:return[2]}}))}))},e.prototype.returnWorkerToQueue=function(e){this.isDestroyed||!this.reuseWorkers||this.count>this.getMaxConcurrency()?(e.destroy(),this.count--):this.idleQueue.push(e),this.isDestroyed||this.startQueuedJob()},e.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count<this.getMaxConcurrency()){this.count++;var e=this.name.toLowerCase()+" (#"+this.count+" of "+this.maxConcurrency+")";return new Ho({name:e,source:this.source,url:this.url})}return null},e.prototype.getMaxConcurrency=function(){return Io?this.maxMobileConcurrency:this.maxConcurrency},e}(),Xo=self&&self.__assign||function(){return(Xo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},qo=self&&self.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Zo={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},Jo=(function(){function e(e){this.workerPools=new Map,this.props=Xo({},Zo),this.setProps(e),this.workerPools=new Map}e.isSupported=function(){return Ho.isSupported()},e.getWorkerFarm=function(t){return void 0===t&&(t={}),e.workerFarm=e.workerFarm||new e({}),e.workerFarm.setProps(t),e.workerFarm},e.prototype.destroy=function(){var e,t;try{for(var n=qo(this.workerPools.values()),r=n.next();!r.done;r=n.next())r.value.destroy()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e.prototype.setProps=function(e){var t,n;this.props=Xo(Xo({},this.props),e);try{for(var r=qo(this.workerPools.values()),o=r.next();!o.done;o=r.next())o.value.setProps(this.getWorkerPoolProps())}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.getWorkerPool=function(e){var t=e.name,n=e.source,r=e.url,o=this.workerPools.get(t);return o||((o=new Ko({name:t,source:n,url:r})).setProps(this.getWorkerPoolProps()),this.workerPools.set(t,o)),o},e.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}}}(),new Map),Qo=function(){function e(){}return Object.defineProperty(e,"onmessage",{set:function(e){self.onmessage=function(t){if($o(t)){var n=t.data,r=n.type,o=n.payload;e(r,o)}}},enumerable:!1,configurable:!0}),e.addEventListener=function(e){var t=Jo.get(e);t||(t=function(t){if($o(t)){var n=t.data,r=n.type,o=n.payload;e(r,o)}}),self.addEventListener("message",t)},e.removeEventListener=function(e){var t=Jo.get(e);Jo.delete(e),self.removeEventListener("message",t)},e.postMessage=function(e,t){if(self){var n={source:"Worker thread",type:e,payload:t},r=Bo(t);self.postMessage(n,r)}},e}();function $o(e){var t=e.type,n=e.data;return"message"===t&&n&&"string"==typeof n.source&&"Main thread"===n.source}self&&self.__awaiter,self&&self.__generator;var ei,ti,ni=function(){function e(){this._values=[],this._settlers=[],this._closed=!1}return e.prototype[Symbol.asyncIterator]=function(){return this},e.prototype.push=function(e){return this.enqueue(e)},e.prototype.enqueue=function(e){if(this._closed)throw new Error("Closed");if(this._settlers.length>0){if(this._values.length>0)throw new Error("Illegal internal state");var t=this._settlers.shift();e instanceof Error?t.reject(e):t.resolve({value:e})}else this._values.push(e)},e.prototype.close=function(){for(;this._settlers.length>0;)this._settlers.shift().resolve({done:!0});this._closed=!0},e.prototype.next=function(){var e=this;if(this._values.length>0){var t=this._values.shift();return t instanceof Error?Promise.reject(t):Promise.resolve({done:!1,value:t})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise((function(t,n){e._settlers.push({resolve:t,reject:n})}))},e}(),ri=self&&self.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},oi=self&&self.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},ii=self&&self.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},ai=0;function ci(e,t){var n=this;if("undefined"!=typeof self){var r={process:ui};Qo.onmessage=function(o,i){return ri(n,void 0,void 0,(function(){var n,a,c,u,s,l,f,p,d,h;return oi(this,(function(v){switch(v.label){case 0:switch(v.trys.push([0,19,,20]),o){case"process":return[3,1];case"process-in-batches":return[3,3];case"input-batch":return[3,16];case"input-done":return[3,17]}return[3,18];case 1:if(!e)throw new Error("Worker does not support atomic processing");return[4,e(i.input,i.options||{},r)];case 2:return n=v.sent(),Qo.postMessage("done",{result:n}),[3,18];case 3:if(!t)throw new Error("Worker does not support batched processing");ei=new ni,ti=i.options||{},a=t(ei,ti,r),v.label=4;case 4:v.trys.push([4,9,10,15]),c=ii(a),v.label=5;case 5:return[4,c.next()];case 6:if((u=v.sent()).done)return[3,8];s=u.value,Qo.postMessage("output-batch",{result:s}),v.label=7;case 7:return[3,5];case 8:return[3,15];case 9:return l=v.sent(),d={error:l},[3,15];case 10:return v.trys.push([10,,13,14]),u&&!u.done&&(h=c.return)?[4,h.call(c)]:[3,12];case 11:v.sent(),v.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return Qo.postMessage("done",{}),[3,18];case 16:return ei.push(i.input),[3,18];case 17:return ei.close(),[3,18];case 18:return[3,20];case 19:return f=v.sent(),p=f instanceof Error?f.message:"",Qo.postMessage("error",{error:p}),[3,20];case 20:return[2]}}))}))}}}function ui(e,t){return void 0===t&&(t={}),new Promise((function(n,r){var o=ai++;Qo.addEventListener((function e(t,i){if(i.id===o)switch(t){case"done":Qo.removeEventListener(e),n(i.result);break;case"error":Qo.removeEventListener(e),r(i.error)}}));var i={id:o,input:e,options:t};Qo.postMessage("process",i)}))}self&&self.__awaiter,self&&self.__generator;var si={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},li=ve("span").classList,fi=li&&li.constructor&&li.constructor.prototype,pi=fi===Object.prototype?void 0:fi,di=Array.isArray||function(e){return"Array"==ht(e)},hi=ue("species"),vi=Array,yi=function(e,t){return new(function(e){var t;return di(e)&&(t=e.constructor,(Tn(t)&&(t===vi||di(t.prototype))||pe(t)&&null===(t=t[hi]))&&(t=void 0)),void 0===t?vi:t}(e))(0===t?0:t)},mi=I([].push),gi=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,c=5==e||i;return function(u,s,l,f){for(var p,d,h=B(u),v=St(h),y=Bn(s,l),m=Ft(v),g=0,b=f||yi,O=t?b(u,m):n||a?b(u,0):void 0;m>g;g++)if((c||g in v)&&(d=y(p=v[g],g,h),e))if(t)O[g]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:mi(O,p)}else switch(e){case 4:return!1;case 7:mi(O,p)}return i?-1:r||o?o:O}},bi={forEach:gi(0),map:gi(1),filter:gi(2),some:gi(3),every:gi(4),find:gi(5),findIndex:gi(6),filterReject:gi(7)},Oi=function(e,t){var n=[][e];return!!n&&T((function(){n.call(null,t||function(){return 1},1)}))},wi=bi.forEach,_i=Oi("forEach")?[].forEach:function(e){return wi(this,e,arguments.length>1?arguments[1]:void 0)},xi=function(e){if(e&&e.forEach!==_i)try{Qe(e,"forEach",_i)}catch(r){e.forEach=_i}};for(var Ei in si)si[Ei]&&xi(S[Ei]&&S[Ei].prototype);xi(pi);var Si=function(e,t,n){var r=Ne(t);r in e?ze.f(e,r,Je(0,n)):e[r]=n},Ci=ue("species"),ji=function(e){return te>=51||!T((function(){var t=[];return(t.constructor={})[Ci]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ki=ji("slice"),Pi=ue("species"),Ti=Array,Mi=Math.max;an({target:"Array",proto:!0,forced:!ki},{slice:function(e,t){var n,r,o,i=Ct(this),a=Ft(i),c=Nt(e,a),u=Nt(void 0===t?a:t,a);if(di(i)&&(n=i.constructor,(Tn(n)&&(n===Ti||di(n.prototype))||pe(n)&&null===(n=n[Pi]))&&(n=void 0),n===Ti||void 0===n))return Vn(i,c,u);for(r=new(void 0===n?Ti:n)(Mi(u-c,0)),o=0;c<u;c++,o++)c in i&&Si(r,o,i[c]);return r.length=o,r}});var Ai=He.EXISTS,Li=ze.f,Ri=Function.prototype,Ni=I(Ri.toString),Ii=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Di=I(Ii.exec);fe&&!Ai&&Li(Ri,"name",{configurable:!0,get:function(){try{return Di(Ii,Ni(this))[1]}catch(n){return""}}});var Fi=bi.map,zi=ji("map");an({target:"Array",proto:!0,forced:!zi},{map:function(e){return Fi(this,e,arguments.length>1?arguments[1]:void 0)}});var Bi,Ui=Object.keys||function(e){return Ht(e,Gt)},Vi={f:fe&&!me?Object.defineProperties:function(e,t){Oe(e);for(var n,r=Ct(t),o=Ui(t),i=o.length,a=0;i>a;)ze.f(e,n=o[a++],r[n]);return e}},Hi=et("IE_PROTO"),Gi=function(){},Wi=function(e){return"<script>"+e+"<\/script>"},Yi=function(e){e.write(Wi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ki=function(){try{Bi=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ki="undefined"!=typeof document?document.domain&&Bi?Yi(Bi):((t=ve("iframe")).style.display="none",Un.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Wi("document.F=Object")),e.close(),e.F):Yi(Bi);for(var n=Gt.length;n--;)delete Ki.prototype[Gt[n]];return Ki()};tt[Hi]=!0;var Xi=Object.create||function(e,t){var n;return null!==e?(Gi.prototype=Oe(e),n=new Gi,Gi.prototype=null,n[Hi]=e):n=Ki(),void 0===t?n:Vi.f(n,t)},qi=ze.f,Zi=ue("unscopables"),Ji=Array.prototype;null==Ji[Zi]&&qi(Ji,Zi,{configurable:!0,value:Xi(null)});var Qi,$i,ea,ta=function(e){Ji[Zi][e]=!0},na=!T((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ra=et("IE_PROTO"),oa=Object,ia=oa.prototype,aa=na?oa.getPrototypeOf:function(e){var t=B(e);if(V(t,ra))return t[ra];var n=t.constructor;return K(n)&&t instanceof n?n.prototype:t instanceof oa?ia:null},ca=ue("iterator"),ua=!1;[].keys&&("next"in(ea=[].keys())?($i=aa(aa(ea)))!==Object.prototype&&(Qi=$i):ua=!0),(null==Qi||T((function(){var e={};return Qi[ca].call(e)!==e})))&&(Qi={}),K(Qi[ca])||ft(Qi,ca,(function(){return this}));var sa={IteratorPrototype:Qi,BUGGY_SAFARI_ITERATORS:ua},la=sa.IteratorPrototype,fa=function(){return this},pa=He.PROPER,da=He.CONFIGURABLE,ha=sa.IteratorPrototype,va=sa.BUGGY_SAFARI_ITERATORS,ya=ue("iterator"),ma=function(){return this},ga=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Xi(la,{next:Je(1,n)}),dn(e,o,!1),fo[o]=fa}(n,t,r);var c,u,s,l=function(e){if(e===o&&v)return v;if(!va&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",p=!1,d=e.prototype,h=d[ya]||d["@@iterator"]||o&&d[o],v=!va&&h||l(o),y="Array"==t&&d.entries||h;if(y&&(c=aa(y.call(new e)))!==Object.prototype&&c.next&&(aa(c)!==ha&&(ln?ln(c,ha):K(c[ya])||ft(c,ya,ma)),dn(c,f,!0)),pa&&"values"==o&&h&&"values"!==h.name&&(da?Qe(d,"name","values"):(p=!0,v=function(){return _e(h,this)})),o)if(u={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(s in u)(va||p||!(s in d))&&ft(d,s,u[s]);else an({target:t,proto:!0,forced:va||p},u);return d[ya]!==v&&ft(d,ya,v,{name:o}),fo[t]=v,u},ba=ze.f,Oa=st.set,wa=st.getterFor("Array Iterator"),_a=ga(Array,"Array",(function(e,t){Oa(this,{type:"Array Iterator",target:Ct(e),index:0,kind:t})}),(function(){var e=wa(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),xa=fo.Arguments=fo.Array;if(ta("keys"),ta("values"),ta("entries"),fe&&"values"!==xa.name)try{ba(xa,"name",{value:"values"})}catch(n){}var Ea,Sa,Ca,ja="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,ka=ze.f,Pa=st.enforce,Ta=st.get,Ma=S.Int8Array,Aa=Ma&&Ma.prototype,La=S.Uint8ClampedArray,Ra=La&&La.prototype,Na=Ma&&aa(Ma),Ia=Aa&&aa(Aa),Da=Object.prototype,Fa=S.TypeError,za=ue("toStringTag"),Ba=Y("TYPED_ARRAY_TAG"),Ua=ja&&!!ln&&"Opera"!==gt(S.opera),Va=!1,Ha={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ga={BigInt64Array:8,BigUint64Array:8},Wa=function(e){if(!pe(e))return!1;var t=gt(e);return V(Ha,t)||V(Ga,t)};for(Ea in Ha)(Ca=(Sa=S[Ea])&&Sa.prototype)?Pa(Ca).TypedArrayConstructor=Sa:Ua=!1;for(Ea in Ga)(Ca=(Sa=S[Ea])&&Sa.prototype)&&(Pa(Ca).TypedArrayConstructor=Sa);if((!Ua||!K(Na)||Na===Function.prototype)&&(Na=function(){throw Fa("Incorrect invocation")},Ua))for(Ea in Ha)S[Ea]&&ln(S[Ea],Na);if((!Ua||!Ia||Ia===Da)&&(Ia=Na.prototype,Ua))for(Ea in Ha)S[Ea]&&ln(S[Ea].prototype,Ia);if(Ua&&aa(Ra)!==Ia&&ln(Ra,Ia),fe&&!V(Ia,za))for(Ea in Va=!0,ka(Ia,za,{get:function(){return pe(this)?this[Ba]:void 0}}),Ha)S[Ea]&&Qe(S[Ea],Ba,Ea);var Ya={NATIVE_ARRAY_BUFFER_VIEWS:Ua,TYPED_ARRAY_TAG:Va&&Ba,aTypedArray:function(e){if(Wa(e))return e;throw Fa("Target is not a typed array")},aTypedArrayConstructor:function(e){if(K(e)&&(!ln||xe(Na,e)))return e;throw Fa(je(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(fe){if(n)for(var o in Ha){var i=S[o];if(i&&V(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}Ia[e]&&!n||ft(Ia,e,n?t:Ua&&Aa[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(fe){if(ln){if(n)for(r in Ha)if((o=S[r])&&V(o,e))try{delete o[e]}catch(e){}if(Na[e]&&!n)return;try{return ft(Na,e,n?t:Ua&&Na[e]||t)}catch(e){}}for(r in Ha)!(o=S[r])||o[e]&&!n||ft(o,e,t)}},getTypedArrayConstructor:function e(t){var n=aa(t);if(pe(n)){var r=Ta(n);return r&&V(r,"TypedArrayConstructor")?r.TypedArrayConstructor:e(n)}},isView:function(e){if(!pe(e))return!1;var t=gt(e);return"DataView"===t||V(Ha,t)||V(Ga,t)},isTypedArray:Wa,TypedArray:Na,TypedArrayPrototype:Ia},Ka=Ya.NATIVE_ARRAY_BUFFER_VIEWS,Xa=S.ArrayBuffer,qa=S.Int8Array,Za=!Ka||!T((function(){qa(1)}))||!T((function(){new qa(-1)}))||!Po((function(e){new qa,new qa(null),new qa(1.5),new qa(e)}),!0)||T((function(){return 1!==new qa(new Xa(2),1,void 0).length})),Ja=function(e,t,n){for(var r in t)ft(e,r,t[r],n);return e},Qa=RangeError,$a=function(e){if(void 0===e)return 0;var t=At(e),n=Dt(t);if(t!==n)throw Qa("Wrong length or index");return n},ec=Array,tc=Math.abs,nc=Math.pow,rc=Math.floor,oc=Math.log,ic=Math.LN2,ac=function(e){for(var t=B(this),n=Ft(t),r=arguments.length,o=Nt(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:Nt(i,n);a>o;)t[o++]=e;return t},cc=Array,uc=Math.max,sc=function(e,t,n){for(var r=Ft(e),o=Nt(t,r),i=Nt(void 0===n?r:n,r),a=cc(uc(i-o,0)),c=0;o<i;o++,c++)Si(a,c,e[o]);return a.length=c,a},lc=Yt.f,fc=ze.f,pc=He.PROPER,dc=He.CONFIGURABLE,hc=st.get,vc=st.set,yc=S.ArrayBuffer,mc=yc,gc=mc&&mc.prototype,bc=S.DataView,Oc=bc&&bc.prototype,wc=Object.prototype,_c=S.Array,xc=S.RangeError,Ec=I(ac),Sc=I([].reverse),Cc=function(e,t,n){var r,o,i,a=ec(n),c=8*n-t-1,u=(1<<c)-1,s=u>>1,l=23===t?nc(2,-24)-nc(2,-77):0,f=e<0||0===e&&1/e<0?1:0,p=0;for((e=tc(e))!=e||e===1/0?(o=e!=e?1:0,r=u):(r=rc(oc(e)/ic),e*(i=nc(2,-r))<1&&(r--,i*=2),(e+=r+s>=1?l/i:l*nc(2,1-s))*i>=2&&(r++,i/=2),r+s>=u?(o=0,r=u):r+s>=1?(o=(e*i-1)*nc(2,t),r+=s):(o=e*nc(2,s-1)*nc(2,t),r=0));t>=8;)a[p++]=255&o,o/=256,t-=8;for(r=r<<t|o,c+=t;c>0;)a[p++]=255&r,r/=256,c-=8;return a[--p]|=128*f,a},jc=function(e,t){var n,r=e.length,o=8*r-t-1,i=(1<<o)-1,a=i>>1,c=o-7,u=r-1,s=e[u--],l=127&s;for(s>>=7;c>0;)l=256*l+e[u--],c-=8;for(n=l&(1<<-c)-1,l>>=-c,c+=t;c>0;)n=256*n+e[u--],c-=8;if(0===l)l=1-a;else{if(l===i)return n?NaN:s?-1/0:1/0;n+=nc(2,t),l-=a}return(s?-1:1)*n*nc(2,l-t)},kc=function(e){return[255&e]},Pc=function(e){return[255&e,e>>8&255]},Tc=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Mc=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Ac=function(e){return Cc(e,23,4)},Lc=function(e){return Cc(e,52,8)},Rc=function(e,t){fc(e.prototype,t,{get:function(){return hc(this)[t]}})},Nc=function(e,t,n,r){var o=$a(n),i=hc(e);if(o+t>i.byteLength)throw xc("Wrong index");var a=hc(i.buffer).bytes,c=o+i.byteOffset,u=sc(a,c,c+t);return r?u:Sc(u)},Ic=function(e,t,n,r,o,i){var a=$a(n),c=hc(e);if(a+t>c.byteLength)throw xc("Wrong index");for(var u=hc(c.buffer).bytes,s=a+c.byteOffset,l=r(+o),f=0;f<t;f++)u[s+f]=l[i?f:t-f-1]};if(ja){var Dc=pc&&"ArrayBuffer"!==yc.name;if(T((function(){yc(1)}))&&T((function(){new yc(-1)}))&&!T((function(){return new yc,new yc(1.5),new yc(NaN),Dc&&!dc})))Dc&&dc&&Qe(yc,"name","ArrayBuffer");else{(mc=function(e){return mn(this,gc),new yc($a(e))}).prototype=gc;for(var Fc,zc=lc(yc),Bc=0;zc.length>Bc;)(Fc=zc[Bc++])in mc||Qe(mc,Fc,yc[Fc]);gc.constructor=mc}ln&&aa(Oc)!==wc&&ln(Oc,wc);var Uc=new bc(new mc(2)),Vc=I(Oc.setInt8);Uc.setInt8(0,2147483648),Uc.setInt8(1,2147483649),!Uc.getInt8(0)&&Uc.getInt8(1)||Ja(Oc,{setInt8:function(e,t){Vc(this,e,t<<24>>24)},setUint8:function(e,t){Vc(this,e,t<<24>>24)}},{unsafe:!0})}else gc=(mc=function(e){mn(this,gc);var t=$a(e);vc(this,{bytes:Ec(_c(t),0),byteLength:t}),fe||(this.byteLength=t)}).prototype,Oc=(bc=function(e,t,n){mn(this,Oc),mn(e,gc);var r=hc(e).byteLength,o=At(t);if(o<0||o>r)throw xc("Wrong offset");if(o+(n=void 0===n?r-o:Dt(n))>r)throw xc("Wrong length");vc(this,{buffer:e,byteLength:n,byteOffset:o}),fe||(this.buffer=e,this.byteLength=n,this.byteOffset=o)}).prototype,fe&&(Rc(mc,"byteLength"),Rc(bc,"buffer"),Rc(bc,"byteLength"),Rc(bc,"byteOffset")),Ja(Oc,{getInt8:function(e){return Nc(this,1,e)[0]<<24>>24},getUint8:function(e){return Nc(this,1,e)[0]},getInt16:function(e){var t=Nc(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Nc(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Mc(Nc(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Mc(Nc(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return jc(Nc(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return jc(Nc(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Ic(this,1,e,kc,t)},setUint8:function(e,t){Ic(this,1,e,kc,t)},setInt16:function(e,t){Ic(this,2,e,Pc,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Ic(this,2,e,Pc,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Ic(this,4,e,Tc,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Ic(this,4,e,Tc,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Ic(this,4,e,Ac,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Ic(this,8,e,Lc,t,arguments.length>2?arguments[2]:void 0)}});dn(mc,"ArrayBuffer"),dn(bc,"DataView");var Hc={ArrayBuffer:mc,DataView:bc},Gc=Math.floor,Wc=Number.isInteger||function(e){return!pe(e)&&isFinite(e)&&Gc(e)===e},Yc=RangeError,Kc=RangeError,Xc=function(e,t){var n=function(e){var t=At(e);if(t<0)throw Yc("The argument can't be less than 0");return t}(e);if(n%t)throw Kc("Wrong offset");return n},qc=Ya.aTypedArrayConstructor,Zc=function(e){var t,n,r,o,i,a,c=An(this),u=B(e),s=arguments.length,l=s>1?arguments[1]:void 0,f=void 0!==l,p=mo(u);if(p&&!vo(p))for(a=(i=bo(u,p)).next,u=[];!(o=_e(a,i)).done;)u.push(o.value);for(f&&s>2&&(l=Bn(l,arguments[2])),n=Ft(u),r=new(qc(c))(n),t=0;n>t;t++)r[t]=f?l(u[t],t):u[t];return r},Jc=function(e,t,n){var r,o;return ln&&K(r=t.constructor)&&r!==n&&pe(o=r.prototype)&&o!==n.prototype&&ln(e,o),e},Qc=w((function(e){var t=Yt.f,n=bi.forEach,r=st.get,o=st.set,i=st.enforce,a=ze.f,c=kt.f,u=Math.round,s=S.RangeError,l=Hc.ArrayBuffer,f=l.prototype,p=Hc.DataView,d=Ya.NATIVE_ARRAY_BUFFER_VIEWS,h=Ya.TYPED_ARRAY_TAG,v=Ya.TypedArray,y=Ya.TypedArrayPrototype,m=Ya.aTypedArrayConstructor,g=Ya.isTypedArray,b=function(e,t){m(e);for(var n=0,r=t.length,o=new e(r);r>n;)o[n]=t[n++];return o},O=function(e,t){a(e,t,{get:function(){return r(this)[t]}})},w=function(e){var t;return xe(f,e)||"ArrayBuffer"==(t=gt(e))||"SharedArrayBuffer"==t},_=function(e,t){return g(e)&&!Se(t)&&t in e&&Wc(+t)&&t>=0},x=function(e,t){return t=Ne(t),_(e,t)?Je(2,e[t]):c(e,t)},E=function(e,t,n){return t=Ne(t),!(_(e,t)&&pe(n)&&V(n,"value"))||V(n,"get")||V(n,"set")||n.configurable||V(n,"writable")&&!n.writable||V(n,"enumerable")&&!n.enumerable?a(e,t,n):(e[t]=n.value,e)};fe?(d||(kt.f=x,ze.f=E,O(y,"buffer"),O(y,"byteOffset"),O(y,"byteLength"),O(y,"length")),an({target:"Object",stat:!0,forced:!d},{getOwnPropertyDescriptor:x,defineProperty:E}),e.exports=function(e,c,f){var m=e.match(/\d+$/)[0]/8,O=e+(f?"Clamped":"")+"Array",_="get"+e,x="set"+e,E=S[O],C=E,j=C&&C.prototype,k={},P=function(e,t){a(e,t,{get:function(){return function(e,t){var n=r(e);return n.view[_](t*m+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var o=r(e);f&&(n=(n=u(n))<0?0:n>255?255:255&n),o.view[x](t*m+o.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};d?Za&&(C=c((function(e,t,n,r){return mn(e,j),Jc(pe(t)?w(t)?void 0!==r?new E(t,Xc(n,m),r):void 0!==n?new E(t,Xc(n,m)):new E(t):g(t)?b(C,t):_e(Zc,C,t):new E($a(t)),e,C)})),ln&&ln(C,v),n(t(E),(function(e){e in C||Qe(C,e,E[e])})),C.prototype=j):(C=c((function(e,t,n,r){mn(e,j);var i,a,c,u=0,f=0;if(pe(t)){if(!w(t))return g(t)?b(C,t):_e(Zc,C,t);i=t,f=Xc(n,m);var d=t.byteLength;if(void 0===r){if(d%m)throw s("Wrong length");if((a=d-f)<0)throw s("Wrong length")}else if((a=Dt(r)*m)+f>d)throw s("Wrong length");c=a/m}else c=$a(t),i=new l(a=c*m);for(o(e,{buffer:i,byteOffset:f,byteLength:a,length:c,view:new p(i)});u<c;)P(e,u++)})),ln&&ln(C,v),j=C.prototype=Xi(y)),j.constructor!==C&&Qe(j,"constructor",C),i(j).TypedArrayConstructor=C,h&&Qe(j,h,O);var T=C!=E;k[O]=C,an({global:!0,constructor:!0,forced:T,sham:!d},k),"BYTES_PER_ELEMENT"in C||Qe(C,"BYTES_PER_ELEMENT",m),"BYTES_PER_ELEMENT"in j||Qe(j,"BYTES_PER_ELEMENT",m),vn(O)}):e.exports=function(){}}));Qc("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0);var $c=TypeError,eu=function(e,t){if(!delete e[t])throw $c("Cannot delete property "+je(t)+" of "+je(e))},tu=Math.min,nu=I([].copyWithin||function(e,t){var n=B(this),r=Ft(n),o=Nt(e,r),i=Nt(t,r),a=arguments.length>2?arguments[2]:void 0,c=tu((void 0===a?r:Nt(a,r))-i,r-o),u=1;for(i<o&&o<i+c&&(u=-1,i+=c-1,o+=c-1);c-- >0;)i in n?n[o]=n[i]:eu(n,o),o+=u,i+=u;return n}),ru=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("copyWithin",(function(e,t){return nu(ru(this),e,t,arguments.length>2?arguments[2]:void 0)}));var ou=bi.every,iu=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("every",(function(e){return ou(iu(this),e,arguments.length>1?arguments[1]:void 0)}));var au=TypeError,cu=function(e){var t=Re(e,"number");if("number"==typeof t)throw au("Can't convert number to bigint");return BigInt(t)},uu=Ya.aTypedArray,su=Ya.exportTypedArrayMethod,lu=I("".slice);su("fill",(function(e){var t=arguments.length;uu(this);var n="Big"===lu(gt(this),0,3)?cu(e):+e;return _e(ac,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),T((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var fu=Ya.aTypedArrayConstructor,pu=Ya.getTypedArrayConstructor,du=function(e){return fu(Rn(e,pu(e)))},hu=function(e,t){return function(e,t){for(var n=0,r=Ft(t),o=new e(r);r>n;)o[n]=t[n++];return o}(du(e),t)},vu=bi.filter,yu=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("filter",(function(e){var t=vu(yu(this),e,arguments.length>1?arguments[1]:void 0);return hu(this,t)}));var mu=bi.find,gu=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("find",(function(e){return mu(gu(this),e,arguments.length>1?arguments[1]:void 0)}));var bu=bi.findIndex,Ou=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("findIndex",(function(e){return bu(Ou(this),e,arguments.length>1?arguments[1]:void 0)}));var wu=bi.forEach,_u=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("forEach",(function(e){wu(_u(this),e,arguments.length>1?arguments[1]:void 0)}));var xu=Bt.includes,Eu=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("includes",(function(e){return xu(Eu(this),e,arguments.length>1?arguments[1]:void 0)}));var Su=Bt.indexOf,Cu=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("indexOf",(function(e){return Su(Cu(this),e,arguments.length>1?arguments[1]:void 0)}));var ju=ue("iterator"),ku=S.Uint8Array,Pu=I(_a.values),Tu=I(_a.keys),Mu=I(_a.entries),Au=Ya.aTypedArray,Lu=Ya.exportTypedArrayMethod,Ru=ku&&ku.prototype,Nu=!T((function(){Ru[ju].call([1])})),Iu=!!Ru&&Ru.values&&Ru[ju]===Ru.values&&"values"===Ru.values.name,Du=function(){return Pu(Au(this))};Lu("entries",(function(){return Mu(Au(this))}),Nu),Lu("keys",(function(){return Tu(Au(this))}),Nu),Lu("values",Du,Nu||!Iu,{name:"values"}),Lu(ju,Du,Nu||!Iu,{name:"values"});var Fu=Ya.aTypedArray,zu=Ya.exportTypedArrayMethod,Bu=I([].join);zu("join",(function(e){return Bu(Fu(this),e)}));var Uu=Math.min,Vu=[].lastIndexOf,Hu=!!Vu&&1/[1].lastIndexOf(1,-0)<0,Gu=Oi("lastIndexOf"),Wu=Hu||!Gu?function(e){if(Hu)return Fn(Vu,this,arguments)||0;var t=Ct(this),n=Ft(t),r=n-1;for(arguments.length>1&&(r=Uu(r,At(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:Vu,Yu=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return Fn(Wu,Yu(this),t>1?[e,arguments[1]]:[e])}));var Ku=bi.map,Xu=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("map",(function(e){return Ku(Xu(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(du(e))(t)}))}));var qu=TypeError,Zu=function(e){return function(t,n,r,o){Pe(n);var i=B(t),a=St(i),c=Ft(i),u=e?c-1:0,s=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=s;break}if(u+=s,e?u<0:c<=u)throw qu("Reduce of empty array with no initial value")}for(;e?u>=0:c>u;u+=s)u in a&&(o=n(o,a[u],u,i));return o}},Ju={left:Zu(!1),right:Zu(!0)},Qu=Ju.left,$u=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return Qu($u(this),e,t,t>1?arguments[1]:void 0)}));var es=Ju.right,ts=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return es(ts(this),e,t,t>1?arguments[1]:void 0)}));var ns=Ya.aTypedArray,rs=Ya.exportTypedArrayMethod,os=Math.floor;rs("reverse",(function(){for(var e,t=ns(this).length,n=os(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}));var is=S.RangeError,as=S.Int8Array,cs=as&&as.prototype,us=cs&&cs.set,ss=Ya.aTypedArray,ls=Ya.exportTypedArrayMethod,fs=!T((function(){var e=new Uint8ClampedArray(2);return _e(us,e,{length:1,0:3},1),3!==e[1]})),ps=fs&&Ya.NATIVE_ARRAY_BUFFER_VIEWS&&T((function(){var e=new as(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));ls("set",(function(e){ss(this);var t=Xc(arguments.length>1?arguments[1]:void 0,1),n=B(e);if(fs)return _e(us,this,n,t);var r=this.length,o=Ft(n),i=0;if(o+t>r)throw is("Wrong length");for(;i<o;)this[t+i]=n[i++]}),!fs||ps);var ds=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("slice",(function(e,t){for(var n=Vn(ds(this),e,t),r=du(this),o=0,i=n.length,a=new r(i);i>o;)a[o]=n[o++];return a}),T((function(){new Int8Array(1).slice()})));var hs=bi.some,vs=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("some",(function(e){return hs(vs(this),e,arguments.length>1?arguments[1]:void 0)}));var ys=Math.floor,ms=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},gs=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,c=0;a<o||c<i;)e[a+c]=a<o&&c<i?r(t[a],n[c])<=0?t[a++]:n[c++]:a<o?t[a++]:n[c++];return e},bs=function e(t,n){var r=t.length,o=ys(r/2);return r<8?ms(t,n):gs(t,e(sc(t,0,o),n),e(sc(t,o),n),n)},Os=Z.match(/firefox\/(\d+)/i),ws=!!Os&&+Os[1],_s=/MSIE|Trident/.test(Z),xs=Z.match(/AppleWebKit\/(\d+)\./),Es=!!xs&&+xs[1],Ss=Ya.aTypedArray,Cs=Ya.exportTypedArrayMethod,js=S.Uint16Array,ks=js&&I(js.prototype.sort),Ps=!(!ks||T((function(){ks(new js(2),null)}))&&T((function(){ks(new js(2),{})}))),Ts=!!ks&&!T((function(){if(te)return te<74;if(ws)return ws<67;if(_s)return!0;if(Es)return Es<602;var e,t,n=new js(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(ks(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));Cs("sort",(function(e){return void 0!==e&&Pe(e),Ts?ks(this,e):bs(Ss(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!Ts||Ps);var Ms=Ya.aTypedArray;(0,Ya.exportTypedArrayMethod)("subarray",(function(e,t){var n=Ms(this),r=n.length,o=Nt(e,r);return new(du(n))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,Dt((void 0===t?r:Nt(t,r))-o))}));var As=S.Int8Array,Ls=Ya.aTypedArray,Rs=Ya.exportTypedArrayMethod,Ns=[].toLocaleString,Is=!!As&&T((function(){Ns.call(new As(1))}));Rs("toLocaleString",(function(){return Fn(Ns,Is?Vn(Ls(this)):Ls(this),Vn(arguments))}),T((function(){return[1,2].toLocaleString()!=new As([1,2]).toLocaleString()}))||!T((function(){As.prototype.toLocaleString.call([1,2])})));var Ds=Ya.exportTypedArrayMethod,Fs=S.Uint8Array,zs=Fs&&Fs.prototype||{},Bs=[].toString,Us=I([].join);T((function(){Bs.call({})}))&&(Bs=function(){return Us(this)});var Vs=zs.toString!=Bs;Ds("toString",Bs,Vs);var Hs,Gs,Ws=String,Ys=function(e){if("Symbol"===gt(e))throw TypeError("Cannot convert a Symbol value to a string");return Ws(e)},Ks=function(){var e=Oe(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Xs=S.RegExp,qs=T((function(){var e=Xs("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Zs=qs||T((function(){return!Xs("a","y").sticky})),Js={BROKEN_CARET:qs||T((function(){var e=Xs("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Zs,UNSUPPORTED_Y:qs},Qs=S.RegExp,$s=T((function(){var e=Qs(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),el=S.RegExp,tl=T((function(){var e=el("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),nl=st.get,rl=P("native-string-replace",String.prototype.replace),ol=RegExp.prototype.exec,il=ol,al=I("".charAt),cl=I("".indexOf),ul=I("".replace),sl=I("".slice),ll=(Gs=/b*/g,_e(ol,Hs=/a/,"a"),_e(ol,Gs,"a"),0!==Hs.lastIndex||0!==Gs.lastIndex),fl=Js.BROKEN_CARET,pl=void 0!==/()??/.exec("")[1];(ll||pl||fl||$s||tl)&&(il=function(e){var t,n,r,o,i,a,c,u=this,s=nl(u),l=Ys(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=_e(il,f,l),u.lastIndex=f.lastIndex,t;var p=s.groups,d=fl&&u.sticky,h=_e(Ks,u),v=u.source,y=0,m=l;if(d&&(h=ul(h,"y",""),-1===cl(h,"g")&&(h+="g"),m=sl(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==al(l,u.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,y++),n=new RegExp("^(?:"+v+")",h)),pl&&(n=new RegExp("^"+v+"$(?!\\s)",h)),ll&&(r=u.lastIndex),o=_e(ol,d?n:u,m),d?o?(o.input=sl(o.input,y),o[0]=sl(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:ll&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),pl&&o&&o.length>1&&_e(rl,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=Xi(null),i=0;i<p.length;i++)a[(c=p[i])[0]]=o[c[1]];return o});var dl=il;an({target:"RegExp",proto:!0,forced:/./.exec!==dl},{exec:dl});var hl,vl=ue("species"),yl=RegExp.prototype,ml=function(e,t,n,r){var o=ue(e),i=!T((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!T((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[vl]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var c=I(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=I(e),u=t.exec;return u===dl||u===yl.exec?i&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));ft(String.prototype,e,u[0]),ft(yl,o,u[1])}r&&Qe(yl[o],"sham",!0)},gl=I("".charAt),bl=I("".charCodeAt),Ol=I("".slice),wl=function(e){return function(t,n){var r,o,i=Ys(F(t)),a=At(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=bl(i,a))<55296||r>56319||a+1===c||(o=bl(i,a+1))<56320||o>57343?e?gl(i,a):r:e?Ol(i,a,a+2):o-56320+(r-55296<<10)+65536}},_l={codeAt:wl(!1),charAt:wl(!0)},xl=_l.charAt,El=function(e,t,n){return t+(n?xl(e,t).length:1)},Sl=Math.floor,Cl=I("".charAt),jl=I("".replace),kl=I("".slice),Pl=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Tl=/\$([$&'`]|\d{1,2})/g,Ml=function(e,t,n,r,o,i){var a=n+e.length,c=r.length,u=Tl;return void 0!==o&&(o=B(o),u=Pl),jl(i,u,(function(i,u){var s;switch(Cl(u,0)){case"$":return"$";case"&":return e;case"`":return kl(t,0,n);case"'":return kl(t,a);case"<":s=o[kl(u,1,-1)];break;default:var l=+u;if(0===l)return i;if(l>c){var f=Sl(l/10);return 0===f?i:f<=c?void 0===r[f-1]?Cl(u,1):r[f-1]+Cl(u,1):i}s=r[l-1]}return void 0===s?"":s}))},Al=TypeError,Ll=function(e,t){var n=e.exec;if(K(n)){var r=_e(n,e,t);return null!==r&&Oe(r),r}if("RegExp"===ht(e))return _e(dl,e,t);throw Al("RegExp#exec called on incompatible receiver")},Rl=ue("replace"),Nl=Math.max,Il=Math.min,Dl=I([].concat),Fl=I([].push),zl=I("".indexOf),Bl=I("".slice),Ul="$0"==="a".replace(/./,"$0"),Vl=!!/./[Rl]&&""===/./[Rl]("a","$0");function Hl(e){this.message=e}ml("replace",(function(e,t,n){var r=Vl?"$":"$0";return[function(e,n){var r=F(this),o=null==e?void 0:Te(e,Rl);return o?_e(o,e,r,n):_e(t,Ys(r),e,n)},function(e,o){var i=Oe(this),a=Ys(e);if("string"==typeof o&&-1===zl(o,r)&&-1===zl(o,"$<")){var c=n(t,i,a,o);if(c.done)return c.value}var u=K(o);u||(o=Ys(o));var s=i.global;if(s){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var p=Ll(i,a);if(null===p)break;if(Fl(f,p),!s)break;""===Ys(p[0])&&(i.lastIndex=El(a,Dt(i.lastIndex),l))}for(var d,h="",v=0,y=0;y<f.length;y++){for(var m=Ys((p=f[y])[0]),g=Nl(Il(At(p.index),a.length),0),b=[],O=1;O<p.length;O++)Fl(b,void 0===(d=p[O])?d:String(d));var w=p.groups;if(u){var _=Dl([m],b,g,a);void 0!==w&&Fl(_,w);var x=Ys(Fn(o,void 0,_))}else x=Ml(m,a,g,b,w,o);g>=v&&(h+=Bl(a,v,g)+x,v=g+m.length)}return h+Bl(a,v)}]}),!!T((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Ul||Vl),Hl.prototype=new Error,Hl.prototype.name="InvalidCharacterError",an({global:!0},{globalThis:S}),hl="undefined"==typeof window?{devicePixelRatio:1,navigator:{userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36",browserLanguage:"zh-CN",language:"zh-CN",platform:""},location:"",document:{documentElement:{style:{}},createEvent:function(){return!0},getElementById:function(e){return!0},createElement:function(){return{className:"",classList:{add:function(){return""}}}},createElementNS:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},querySelector:function(){return!1}},performance:{mark:function(e){return null},clearMeasures:function(e){return null},clearMarks:function(e){return null},measure:function(e,t,n){return{duration:0}},now:function(){return(new Date).getTime()}},Blob:"",dispatchEvent:function(e){return!0},Event:function(e,t){return!0},createElement:function(){return!0},createElementNS:function(){return!0},XMLHttpRequest:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},requestAnimationFrame:function(){return!0},cancelAnimationFrame:function(){return!0},clearTimeout:function(){return!0}}:window,"undefined"!=typeof my&&my&&"function"==typeof my.showToast&&!0!==my.isFRM?my.getSystemInfoSync().pixelRatio:hl.devicePixelRatio;var Gl=TypeError,Wl=function(e){if(e>9007199254740991)throw Gl("Maximum allowed index exceeded");return e},Yl=ji("splice"),Kl=Math.max,Xl=Math.min;an({target:"Array",proto:!0,forced:!Yl},{splice:function(e,t){var n,r,o,i,a,c,u=B(this),s=Ft(u),l=Nt(e,s),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=s-l):(n=f-2,r=Xl(Kl(At(t),0),s-l)),Wl(s+n-r),o=yi(u,r),i=0;i<r;i++)(a=l+i)in u&&Si(o,i,u[a]);if(o.length=r,n<r){for(i=l;i<s-r;i++)c=i+n,(a=i+r)in u?u[c]=u[a]:eu(u,c);for(i=s;i>s-r+n;i--)eu(u,i-1)}else if(n>r)for(i=s-r;i>l;i--)c=i+n-1,(a=i+r-1)in u?u[c]=u[a]:eu(u,c);for(i=0;i<n;i++)u[i+l]=arguments[i+2];return u.length=s-r+n,o}});var ql=s((function e(t,n){c(this,e),l(this,"cancelBubble",void 0),l(this,"cancelable",void 0),l(this,"target",void 0),l(this,"currentTarget",void 0),l(this,"preventDefault",void 0),l(this,"stopPropagation",void 0),l(this,"type",void 0),l(this,"timeStamp",void 0),this.cancelBubble=!1,this.cancelable=!1,this.target=null,this.currentTarget=null,this.preventDefault=function(){},this.stopPropagation=function(){},this.type=t,this.timeStamp=Date.now()})),Zl=Object.assign,Jl=Object.defineProperty,Ql=I([].concat),$l=!Zl||T((function(){if(fe&&1!==Zl({b:1},Zl(Jl({},"a",{enumerable:!0,get:function(){Jl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=Zl({},e)[n]||"abcdefghijklmnopqrst"!=Ui(Zl({},t)).join("")}))?function(e,t){for(var n=B(e),r=arguments.length,o=1,i=Kt.f,a=_t.f;r>o;)for(var c,u=St(arguments[o++]),s=i?Ql(Ui(u),i(u)):Ui(u),l=s.length,f=0;l>f;)c=s[f++],fe&&!_e(a,u,c)||(n[c]=u[c]);return n}:Zl;an({target:"Object",stat:!0,arity:2,forced:Object.assign!==$l},{assign:$l});var ef=bi.findIndex,tf=!0;"findIndex"in[]&&Array(1).findIndex((function(){tf=!1})),an({target:"Array",proto:!0,forced:tf},{findIndex:function(e){return ef(this,e,arguments.length>1?arguments[1]:void 0)}}),ta("findIndex");var nf=_l.charAt,rf=st.set,of=st.getterFor("String Iterator");ga(String,"String",(function(e){rf(this,{type:"String Iterator",string:Ys(e),index:0})}),(function(){var e,t=of(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=nf(n,r),t.index+=e.length,{value:e,done:!1})}));var af=Yt.f,cf="object"==("undefined"==typeof window?"undefined":t(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],uf={f:function(e){return cf&&"Window"==ht(e)?function(e){try{return af(e)}catch(e){return sc(cf)}}(e):af(Ct(e))}},sf=T((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),lf=Object.isExtensible,ff=T((function(){lf(1)}))||sf?function(e){return!!pe(e)&&(!sf||"ArrayBuffer"!=ht(e))&&(!lf||lf(e))}:lf,pf=!T((function(){return Object.isExtensible(Object.preventExtensions({}))})),df=w((function(e){var n=ze.f,r=!1,o=Y("meta"),i=0,a=function(e){n(e,o,{value:{objectID:"O"+i++,weakData:{}}})},c=e.exports={enable:function(){c.enable=function(){},r=!0;var e=Yt.f,t=I([].splice),n={};n[o]=1,e(n).length&&(Yt.f=function(n){for(var r=e(n),i=0,a=r.length;i<a;i++)if(r[i]===o){t(r,i,1);break}return r},an({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:uf.f}))},fastKey:function(e,n){if(!pe(e))return"symbol"==t(e)?e:("string"==typeof e?"S":"P")+e;if(!V(e,o)){if(!ff(e))return"F";if(!n)return"E";a(e)}return e[o].objectID},getWeakData:function(e,t){if(!V(e,o)){if(!ff(e))return!0;if(!t)return!1;a(e)}return e[o].weakData},onFreeze:function(e){return pf&&r&&ff(e)&&!V(e,o)&&a(e),e}};tt[o]=!0})),hf=(df.enable,df.fastKey,df.getWeakData,df.onFreeze,function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=S[e],c=a&&a.prototype,u=a,s={},l=function(e){var t=I(c[e]);ft(c,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!pe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!pe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!pe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(rn(e,!K(a)||!(o||c.forEach&&!T((function(){(new a).entries().next()})))))u=n.getConstructor(t,e,r,i),df.enable();else if(rn(e,!0)){var f=new u,p=f[i](o?{}:-0,1)!=f,d=T((function(){f.has(1)})),h=Po((function(e){new a(e)})),v=!o&&T((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((u=t((function(e,t){mn(e,c);var n=Jc(new a,e,u);return null!=t&&Eo(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=c,c.constructor=u),(d||v)&&(l("delete"),l("has"),r&&l("get")),(v||p)&&l(i),o&&c.clear&&delete c.clear}return s[e]=u,an({global:!0,constructor:!0,forced:u!=a},s),dn(u,e),o||n.setStrong(u,e,r),u}),vf=df.getWeakData,yf=st.set,mf=st.getterFor,gf=bi.find,bf=bi.findIndex,Of=I([].splice),wf=0,_f=function(e){return e.frozen||(e.frozen=new xf)},xf=function(){this.entries=[]},Ef=function(e,t){return gf(e.entries,(function(e){return e[0]===t}))};xf.prototype={get:function(e){var t=Ef(this,e);if(t)return t[1]},has:function(e){return!!Ef(this,e)},set:function(e,t){var n=Ef(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=bf(this.entries,(function(t){return t[0]===e}));return~t&&Of(this.entries,t,1),!!~t}};var Sf,Cf={getConstructor:function(e,t,n,r){var o=e((function(e,o){mn(e,i),yf(e,{type:t,id:wf++,frozen:void 0}),null!=o&&Eo(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=mf(t),c=function(e,t,n){var r=a(e),o=vf(Oe(t),!0);return!0===o?_f(r).set(t,n):o[r.id]=n,e};return Ja(i,{delete:function(e){var t=a(this);if(!pe(e))return!1;var n=vf(e);return!0===n?_f(t).delete(e):n&&V(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!pe(e))return!1;var n=vf(e);return!0===n?_f(t).has(e):n&&V(n,t.id)}}),Ja(i,n?{get:function(e){var t=a(this);if(pe(e)){var n=vf(e);return!0===n?_f(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return c(this,e,t)}}:{add:function(e){return c(this,e,!0)}}),o}},jf=st.enforce,kf=!S.ActiveXObject&&"ActiveXObject"in S,Pf=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Tf=hf("WeakMap",Pf,Cf);if(Ze&&kf){Sf=Cf.getConstructor(Pf,"WeakMap",!0),df.enable();var Mf=Tf.prototype,Af=I(Mf.delete),Lf=I(Mf.has),Rf=I(Mf.get),Nf=I(Mf.set);Ja(Mf,{delete:function(e){if(pe(e)&&!ff(e)){var t=jf(this);return t.frozen||(t.frozen=new Sf),Af(this,e)||t.frozen.delete(e)}return Af(this,e)},has:function(e){if(pe(e)&&!ff(e)){var t=jf(this);return t.frozen||(t.frozen=new Sf),Lf(this,e)||t.frozen.has(e)}return Lf(this,e)},get:function(e){if(pe(e)&&!ff(e)){var t=jf(this);return t.frozen||(t.frozen=new Sf),Lf(this,e)?Rf(this,e):t.frozen.get(e)}return Rf(this,e)},set:function(e,t){if(pe(e)&&!ff(e)){var n=jf(this);n.frozen||(n.frozen=new Sf),Lf(this,e)?Nf(this,e,t):n.frozen.set(e,t)}else Nf(this,e,t);return this}})}var If=ue("iterator"),Df=ue("toStringTag"),Ff=_a.values,zf=function(e,t){if(e){if(e[If]!==Ff)try{Qe(e,If,Ff)}catch(t){e[If]=Ff}if(e[Df]||Qe(e,Df,t),si[t])for(var n in _a)if(e[n]!==_a[n])try{Qe(e,n,_a[n])}catch(t){e[n]=_a[n]}}};for(var Bf in si)zf(S[Bf]&&S[Bf].prototype,Bf);zf(pi,"DOMTokenList");var Uf,Vf,Hf,Gf,Wf=new WeakMap,Yf=function(){function e(){c(this,e),Wf.set(this,{})}return s(e,[{key:"addEventListener",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Wf.get(this);r||(r={}),r[e]||(r[e]=[]),r[e].push(t),Wf.set(this,r),n.capture,n.once,n.passive}},{key:"removeEventListener",value:function(e,t){var n=Wf.get(this);if(n){var r=n[e];if(r&&r.length>0)for(var o=r.length;o--;o>0)if(r[o]===t){r.splice(o,1);break}}}},{key:"dispatchEvent",value:function(e){var t=Wf.get(this)[e.type];if(t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(t);try{for(r.s();!(n=r.n()).done;)(0,n.value)(e)}catch(e){r.e(e)}finally{r.f()}}}}]),e}(),Kf=function(e){f(n,e);var t=v(n);function n(){var e;return c(this,n),l(d(e=t.call(this)),"className",void 0),l(d(e),"children",void 0),e.className="",e.children=[],e}return s(n,[{key:"setAttribute",value:function(e,t){this[e]=t}},{key:"getAttribute",value:function(e){return this[e]}},{key:"setAttributeNS",value:function(e,t){this[e]=t}},{key:"getAttributeNS",value:function(e){return this[e]}}]),n}(function(e){f(n,e);var t=v(n);function n(){var e;return c(this,n),l(d(e=t.call(this)),"childNodes",void 0),e.childNodes=[],e}return s(n,[{key:"appendChild",value:function(e){this.childNodes.push(e)}},{key:"cloneNode",value:function(){var e=Object.create(this);return Object.assign(e,this),e}},{key:"removeChild",value:function(e){var t=this.childNodes.findIndex((function(t){return t===e}));return t>-1?this.childNodes.splice(t,1):null}}]),n}(Yf));if("undefined"!=typeof my&&my&&"function"==typeof my.showToast&&!0!==my.isFRM){var Xf=my.getSystemInfoSync();Uf=Xf.screenWidth,Vf=Xf.screenHeight,Hf=Xf.windowWidth,Gf=Xf.windowHeight}else{var qf=hl.innerWidth,Zf=hl.innerHeight;Uf=qf,Vf=Zf,Hf=qf,Gf=Zf}var Jf={width:Uf,height:Vf,availWidth:Hf,availHeight:Gf,availLeft:0,availTop:0},Qf=Jf.availWidth,$f=Jf.availHeight,ep={style:[]};function tp(e,t){var n,r;"parentNode"in e||(n=0===t?function(){return null}:1===t?function(){return ep}:function(){return null},Object.defineProperty(e,"parentNode",{enumerable:!0,get:n})),"parentElement"in e||(r=0===t?function(){return null}:1===t?function(){return ep}:function(){return null},Object.defineProperty(e,"parentElement",{enumerable:!0,get:r}))}function np(e){e.style=e.style||{},Object.assign(e.style,{top:"0px",left:"0px",width:Qf+"px",height:$f+"px",margin:"0px",padding:"0px"})}function rp(e){"clientLeft"in e||(e.clientLeft=0,e.clientTop=0),"clientWidth"in e||(e.clientWidth=Qf,e.clientHeight=$f),"getBoundingClientRect"in e||(e.getBoundingClientRect=function(){return{x:0,y:0,top:0,left:0,width:this.clientWidth,height:this.clientHeight,right:this.clientWidth,bottom:this.clientHeight}})}function op(e){"offsetLeft"in e||(e.offsetLeft=0,e.offsetTop=0),"offsetWidth"in e||(e.offsetWidth=Qf,e.offsetHeight=$f)}function ip(e){"scrollLeft"in e||(e.scrollLeft=0,e.scrollTop=0),"scrollWidth"in e||(e.scrollWidth=Qf,e.scrollHeight=$f)}function ap(e){var t=function(){return!0};e.classList=[],e.classList.add=t,e.classList.remove=t,e.classList.contains=t,e.classList.toggle=t}function cp(){}var up=function(e){f(n,e);var t=v(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1?arguments[1]:void 0;return c(this,n),l(d(e=t.call(this)),"className",void 0),l(d(e),"children",void 0),l(d(e),"focus",void 0),l(d(e),"blur",void 0),l(d(e),"insertBefore",void 0),l(d(e),"appendChild",void 0),l(d(e),"removeChild",void 0),l(d(e),"remove",void 0),l(d(e),"innerHTML",void 0),l(d(e),"tagName",void 0),e.className="",e.children=[],e.focus=cp,e.blur=cp,e.insertBefore=cp,e.appendChild=cp,e.removeChild=cp,e.remove=cp,e.innerHTML="",e.tagName=r.toUpperCase(),tp(d(e),o),np(d(e)),ap(d(e)),rp(d(e)),op(d(e)),ip(d(e)),e}return s(n)}(Kf),sp=function(e){f(n,e);var t=v(n);function n(){return c(this,n),t.call(this,"video")}return s(n)}(function(e){f(n,e);var t=v(n);function n(e){return c(this,n),t.call(this,e)}return s(n,[{key:"addTextTrack",value:function(){}},{key:"captureStream",value:function(){}},{key:"fastSeek",value:function(){}},{key:"load",value:function(){}},{key:"pause",value:function(){}},{key:"play",value:function(){}}]),n}(up)),lp={};var fp=s((function e(){c(this,e);var t=lp,n=t.createImage&&t.createImage()||{};return"tagName"in n||(n.tagName="IMG",n.__proto__=e.prototype),tp(n),ap(n),Object.assign(n,{addEventListener:function(e,t){n["on".concat(e)]=t.bind(n)},removeEventListener:function(e){n["on".concat(e)]=null}}),n})),pp=function(e){f(n,e);var t=v(n);function n(){return c(this,n),t.call(this,"body",0)}return s(n,[{key:"addEventListener",value:function(e,t){}},{key:"removeEventListener",value:function(e,t,n){}},{key:"dispatchEvent",value:function(e){}}]),n}(up),dp=function(e){f(n,e);var t=v(n);function n(){return c(this,n),t.call(this,"html",0)}return s(n,[{key:"addEventListener",value:function(e,t){}},{key:"removeEventListener",value:function(e,t){}},{key:"dispatchEvent",value:function(e){}}]),n}(up),hp={},vp={readyState:"complete",visibilityState:"visible",hidden:!1,fullscreen:!0,scripts:[],style:{},location:{href:"",protocol:"",host:""},ontouchstart:null,ontouchmove:null,ontouchend:null,onvisibilitychange:null,parentNode:null,parentElement:null,head:null,body:null,documentElement:{style:[]},createElement:function(e){return"canvas"===(e=e.toLowerCase())?my.createOffscreenCanvas(1024,128,"2d"):"img"===e?new fp:"video"===e?new sp:new up(e)},createElementNS:function(e,t){return this.createElement(t)},createTextNode:function(e){return e},getElementById:function(e){return null},getElementsByTagName:function(e){return e=e.toLowerCase(),[]},getElementsByTagNameNS:function(e,t){return this.getElementsByTagName(t)},getElementsByName:function(e){return[]},querySelector:function(e){return null},querySelectorAll:function(e){return[]},addEventListener:function(e,t,n){hp[e]||(hp[e]=[]),hp[e].push(t)},removeEventListener:function(e,t){var n=hp[e];if(n&&n.length>0)for(var r=n.length;r--;r>0)if(n[r]===t){n.splice(r,1);break}},dispatchEvent:function(e){var t=e.type,n=hp[t];if(n)for(var r=0;r<n.length;r++)n[r](e);e.target&&"function"==typeof e.target["on"+t]&&e.target["on"+t](e)},createEvent:function(e){return new ql(e)}};vp.documentElement=new dp,vp.head=new up("head"),vp.body=new pp,ml("match",(function(e,t,n){return[function(t){var n=F(this),r=null==t?void 0:Te(t,e);return r?_e(r,t,n):new RegExp(t)[e](Ys(n))},function(e){var r=Oe(this),o=Ys(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Ll(r,o);var a=r.unicode;r.lastIndex=0;for(var c,u=[],s=0;null!==(c=Ll(r,o));){var l=Ys(c[0]);u[s]=l,""===l&&(r.lastIndex=El(o,Dt(r.lastIndex),a)),s++}return 0===s?null:u}]}));var yp,mp,gp=ue("isConcatSpreadable"),bp=te>=51||!T((function(){var e=[];return e[gp]=!1,e.concat()[0]!==e})),Op=ji("concat"),wp=function(e){if(!pe(e))return!1;var t=e[gp];return void 0!==t?!!t:di(e)};if(an({target:"Array",proto:!0,arity:1,forced:!bp||!Op},{concat:function(e){var t,n,r,o,i,a=B(this),c=yi(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(wp(i=-1===t?a:arguments[t]))for(o=Ft(i),Wl(u+o),n=0;n<o;n++,u++)n in i&&Si(c,u,i[n]);else Wl(u+1),Si(c,u++,i);return c.length=u,c}}),"undefined"!=typeof my&&my&&"function"==typeof my.showToast&&!0!==my.isFRM){var _p=my.getSystemInfoSync();yp=_p.system,_p.platform,_p.language}else{var xp={versions:(mp=hl.navigator.userAgent,{trident:mp.indexOf("Trident")>-1,presto:mp.indexOf("Presto")>-1,webKit:mp.indexOf("AppleWebKit")>-1,gecko:mp.indexOf("Gecko")>-1&&-1===mp.indexOf("KHTML"),mobile:!!mp.match(/AppleWebKit.*Mobile.*/),ios:!!mp.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:mp.indexOf("Android")>-1||mp.indexOf("Linux")>-1,iPhone:mp.indexOf("iPhone")>-1,iPad:mp.indexOf("iPad")>-1,webApp:-1===mp.indexOf("Safari"),weixin:mp.indexOf("MicroMessenger")>-1,qq:" qq"===mp.match(/\sQQ/i)}),language:(hl.navigator.browserLanguage||hl.navigator.language).toLowerCase()};xp.versions.android||xp.versions.trident||xp.versions.presto||xp.versions.webKit||xp.versions.gecko||xp.versions.mobile||xp.versions.ios||xp.versions.iPhone||xp.versions.iPad||xp.versions.webApp||xp.versions.weixin||xp.versions.qq,yp=hl.navigator.userAgent}yp.toLowerCase().indexOf("android"),Qc("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var Ep=ze.f,Sp=df.fastKey,Cp=st.set,jp=st.getterFor;hf("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var o=e((function(e,o){mn(e,i),Cp(e,{type:t,index:Xi(null),first:void 0,last:void 0,size:0}),fe||(e.size=0),null!=o&&Eo(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=jp(t),c=function(e,t,n){var r,o,i=a(e),c=u(e,t);return c?c.value=n:(i.last=c={index:o=Sp(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=c),r&&(r.next=c),fe?i.size++:e.size++,"F"!==o&&(i.index[o]=c)),e},u=function(e,t){var n,r=a(e),o=Sp(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Ja(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,fe?e.size=0:this.size=0},delete:function(e){var t=a(this),n=u(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),fe?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=a(this),r=Bn(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),Ja(i,n?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return c(this,0===e?0:e,t)}}:{add:function(e){return c(this,e=0===e?0:e,e)}}),fe&&Ep(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=jp(t),i=jp(r);ga(e,t,(function(e,t){Cp(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),vn(t)}});var kp=I([].join),Pp=St!=Object,Tp=Oi("join",",");an({target:"Array",proto:!0,forced:Pp||!Tp},{join:function(e){return kp(Ct(this),void 0===e?",":e)}});var Mp=T((function(){Ui(1)}));an({target:"Object",stat:!0,forced:Mp},{keys:function(e){return Ui(B(e))}});var Ap=new Map,Lp=new Map,Rp=new Map,Np=function(e){f(n,e);var t=v(n);function n(){var e;return c(this,n),l(d(e=t.call(this)),"onabort",void 0),l(d(e),"onerror",void 0),l(d(e),"onload",void 0),l(d(e),"onloadstart",void 0),l(d(e),"onprogress",void 0),l(d(e),"ontimeout",void 0),l(d(e),"onloadend",void 0),l(d(e),"onreadystatechange",void 0),l(d(e),"readyState",void 0),l(d(e),"response",void 0),l(d(e),"responseText",void 0),l(d(e),"_responseType",void 0),l(d(e),"responseXML",void 0),l(d(e),"status",void 0),l(d(e),"statusText",void 0),l(d(e),"upload",void 0),l(d(e),"withCredentials",void 0),l(d(e),"timeout",void 0),l(d(e),"_url",void 0),l(d(e),"_method",void 0),e.onabort=null,e.onerror=null,e.onload=null,e.onloadstart=null,e.onprogress=null,e.ontimeout=null,e.onloadend=null,e.onreadystatechange=null,e.readyState=0,e.response=null,e.responseText=null,e._responseType="text",e.responseXML=null,e.status=0,e.statusText="",e.upload={},e.withCredentials=!1,Ap.set("requestHeader",{"content-type":"application/x-www-form-urlencoded"}),e}return s(n,[{key:"responseType",set:function(e){this._responseType=e}},{key:"abort",value:function(){var e=Rp.get("requestTask");e&&e.abort()}},{key:"getAllResponseHeaders",value:function(){var e=Lp.get("responseHeader");return Object.keys(e).map((function(t){return"".concat(t,": ").concat(e[t])})).join("\n")}},{key:"getResponseHeader",value:function(e){return Lp.get("responseHeader")[e]}},{key:"open",value:function(e,t,n){this._method=e,this._url=t}},{key:"overrideMimeType",value:function(){}},{key:"send",value:function(){}},{key:"setRequestHeader",value:function(e,t){var n=Ap.get("requestHeader");n[e]=t,Ap.set("requestHeader",n)}},{key:"addEventListener",value:function(e,t){var n=this;"function"==typeof t&&(this["on"+e]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.target=e.target||n,t.call(n,e)})}},{key:"removeEventListener",value:function(e,t){this["on"+e]===t&&(this["on"+e]=null)}}]),n}(Yf);l(Np,"UNSEND",void 0),l(Np,"OPENED",void 0),l(Np,"HEADERS_RECEIVED",void 0),l(Np,"LOADING",void 0),l(Np,"DONE",void 0),Np.UNSEND=0,Np.OPENED=1,Np.HEADERS_RECEIVED=2,Np.LOADING=3,Np.DONE=4;var Ip="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,Dp="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram),Fp=Ip||Dp;function zp(e){return[e+1&255,e+1>>8&255,e+1>>8>>8&255]}Fp||hl.XMLHttpRequest,Fp||hl.location;var Bp=bi.filter,Up=ji("filter");function Vp(e,t){var n=e.color;return n&&n.length?n:[1,1,1,1]}function Hp(e,t,n){return 2===n.length?[n[0],n[1],0]:[n[0],n[1],n[2]]}function Gp(e,t){return e.filter?[1]:[0]}function Wp(e,t,n,r){return[t]}an({target:"Array",proto:!0,forced:!Up},{filter:function(e){return Bp(this,e,arguments.length>1?arguments[1]:void 0)}});var Yp=Xp,Kp=Xp;function Xp(e,t,n){n=n||2;var r,o,i,a,c,u,s,l=t&&t.length,f=l?t[0]*n:e.length,p=qp(e,0,f,n,!0),d=[];if(!p||p.next===p.prev)return d;if(l&&(p=function(e,t,n,r){var o,i,a,c=[];for(o=0,i=t.length;o<i;o++)(a=qp(e,t[o]*r,o<i-1?t[o+1]*r:e.length,r,!1))===a.next&&(a.steiner=!0),c.push(ad(a));for(c.sort(nd),o=0;o<c.length;o++)n=rd(c[o],n);return n}(e,t,p,n)),e.length>80*n){r=i=e[0],o=a=e[1];for(var h=n;h<f;h+=n)(c=e[h])<r&&(r=c),(u=e[h+1])<o&&(o=u),c>i&&(i=c),u>a&&(a=u);s=0!==(s=Math.max(i-r,a-o))?32767/s:0}return Jp(p,d,n,r,o,s,0),d}function qp(e,t,n,r,o){var i,a;if(o===bd(e,t,n,r)>0)for(i=t;i<n;i+=r)a=yd(i,e[i],e[i+1],a);else for(i=n-r;i>=t;i-=r)a=yd(i,e[i],e[i+1],a);return a&&ld(a,a.next)&&(md(a),a=a.next),a}function Zp(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!ld(r,r.next)&&0!==sd(r.prev,r,r.next))r=r.next;else{if(md(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function Jp(e,t,n,r,o,i,a){if(e){!a&&i&&function(e,t,n,r){var o=e;do{0===o.z&&(o.z=id(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,a,c,u,s=1;do{for(n=e,e=null,i=null,a=0;n;){for(a++,r=n,c=0,t=0;t<s&&(c++,r=r.nextZ);t++);for(u=s;c>0||u>0&&r;)0!==c&&(0===u||!r||n.z<=r.z)?(o=n,n=n.nextZ,c--):(o=r,r=r.nextZ,u--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,s*=2}while(a>1)}(o)}(e,r,o,i);for(var c,u,s=e;e.prev!==e.next;)if(c=e.prev,u=e.next,i?$p(e,r,o,i):Qp(e))t.push(c.i/n|0),t.push(e.i/n|0),t.push(u.i/n|0),md(e),e=u.next,s=u.next;else if((e=u)===s){a?1===a?Jp(e=ed(Zp(e),t,n),t,n,r,o,i,2):2===a&&td(e,t,n,r,o,i):Jp(Zp(e),t,n,r,o,i,1);break}}}function Qp(e){var t=e.prev,n=e,r=e.next;if(sd(t,n,r)>=0)return!1;for(var o=t.x,i=n.x,a=r.x,c=t.y,u=n.y,s=r.y,l=o<i?o<a?o:a:i<a?i:a,f=c<u?c<s?c:s:u<s?u:s,p=o>i?o>a?o:a:i>a?i:a,d=c>u?c>s?c:s:u>s?u:s,h=r.next;h!==t;){if(h.x>=l&&h.x<=p&&h.y>=f&&h.y<=d&&cd(o,c,i,u,a,s,h.x,h.y)&&sd(h.prev,h,h.next)>=0)return!1;h=h.next}return!0}function $p(e,t,n,r){var o=e.prev,i=e,a=e.next;if(sd(o,i,a)>=0)return!1;for(var c=o.x,u=i.x,s=a.x,l=o.y,f=i.y,p=a.y,d=c<u?c<s?c:s:u<s?u:s,h=l<f?l<p?l:p:f<p?f:p,v=c>u?c>s?c:s:u>s?u:s,y=l>f?l>p?l:p:f>p?f:p,m=id(d,h,t,n,r),g=id(v,y,t,n,r),b=e.prevZ,O=e.nextZ;b&&b.z>=m&&O&&O.z<=g;){if(b.x>=d&&b.x<=v&&b.y>=h&&b.y<=y&&b!==o&&b!==a&&cd(c,l,u,f,s,p,b.x,b.y)&&sd(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,O.x>=d&&O.x<=v&&O.y>=h&&O.y<=y&&O!==o&&O!==a&&cd(c,l,u,f,s,p,O.x,O.y)&&sd(O.prev,O,O.next)>=0)return!1;O=O.nextZ}for(;b&&b.z>=m;){if(b.x>=d&&b.x<=v&&b.y>=h&&b.y<=y&&b!==o&&b!==a&&cd(c,l,u,f,s,p,b.x,b.y)&&sd(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;O&&O.z<=g;){if(O.x>=d&&O.x<=v&&O.y>=h&&O.y<=y&&O!==o&&O!==a&&cd(c,l,u,f,s,p,O.x,O.y)&&sd(O.prev,O,O.next)>=0)return!1;O=O.nextZ}return!0}function ed(e,t,n){var r=e;do{var o=r.prev,i=r.next.next;!ld(o,i)&&fd(o,r,r.next,i)&&hd(o,i)&&hd(i,o)&&(t.push(o.i/n|0),t.push(r.i/n|0),t.push(i.i/n|0),md(r),md(r.next),r=e=i),r=r.next}while(r!==e);return Zp(r)}function td(e,t,n,r,o,i){var a=e;do{for(var c=a.next.next;c!==a.prev;){if(a.i!==c.i&&ud(a,c)){var u=vd(a,c);return a=Zp(a,a.next),u=Zp(u,u.next),Jp(a,t,n,r,o,i,0),void Jp(u,t,n,r,o,i,0)}c=c.next}a=a.next}while(a!==e)}function nd(e,t){return e.x-t.x}function rd(e,t){var n=function(e,t){var n,r=t,o=e.x,i=e.y,a=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var c=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(c<=o&&c>a&&(a=c,n=r.x<r.next.x?r:r.next,c===o))return n}r=r.next}while(r!==t);if(!n)return null;var u,s=n,l=n.x,f=n.y,p=1/0;r=n;do{o>=r.x&&r.x>=l&&o!==r.x&&cd(i<f?o:a,i,l,f,i<f?a:o,i,r.x,r.y)&&(u=Math.abs(i-r.y)/(o-r.x),hd(r,e)&&(u<p||u===p&&(r.x>n.x||r.x===n.x&&od(n,r)))&&(n=r,p=u)),r=r.next}while(r!==s);return n}(e,t);if(!n)return t;var r=vd(n,e);return Zp(r,r.next),Zp(n,n.next)}function od(e,t){return sd(e.prev,e,t.prev)<0&&sd(t.next,e,e.next)<0}function id(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function ad(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function cd(e,t,n,r,o,i,a,c){return(o-a)*(t-c)>=(e-a)*(i-c)&&(e-a)*(r-c)>=(n-a)*(t-c)&&(n-a)*(i-c)>=(o-a)*(r-c)}function ud(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&fd(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(hd(e,t)&&hd(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(sd(e.prev,e,t.prev)||sd(e,t.prev,t))||ld(e,t)&&sd(e.prev,e,e.next)>0&&sd(t.prev,t,t.next)>0)}function sd(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function ld(e,t){return e.x===t.x&&e.y===t.y}function fd(e,t,n,r){var o=dd(sd(e,t,n)),i=dd(sd(e,t,r)),a=dd(sd(n,r,e)),c=dd(sd(n,r,t));return o!==i&&a!==c||!(0!==o||!pd(e,n,t))||!(0!==i||!pd(e,r,t))||!(0!==a||!pd(n,e,r))||!(0!==c||!pd(n,t,r))}function pd(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function dd(e){return e>0?1:e<0?-1:0}function hd(e,t){return sd(e.prev,e,e.next)<0?sd(e,t,e.next)>=0&&sd(e,e.prev,t)>=0:sd(e,t,e.prev)<0||sd(e,e.next,t)<0}function vd(e,t){var n=new gd(e.i,e.x,e.y),r=new gd(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function yd(e,t,n,r){var o=new gd(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function md(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function gd(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function bd(e,t,n,r){for(var o=0,i=t,a=n-r;i<n;i+=r)o+=(e[a]-e[i])*(e[i+1]+e[a+1]),a=i;return o}Xp.deviation=function(e,t,n,r){var o=t&&t.length,i=o?t[0]*n:e.length,a=Math.abs(bd(e,0,i,n));if(o)for(var c=0,u=t.length;c<u;c++){var s=t[c]*n,l=c<u-1?t[c+1]*n:e.length;a-=Math.abs(bd(e,s,l,n))}var f=0;for(c=0;c<r.length;c+=3){var p=r[c]*n,d=r[c+1]*n,h=r[c+2]*n;f+=Math.abs((e[p]-e[h])*(e[d+1]-e[p+1])-(e[p]-e[d])*(e[h+1]-e[p+1]))}return 0===a&&0===f?0:Math.abs((f-a)/a)},Xp.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var a=0;a<t;a++)n.vertices.push(e[o][i][a]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n},Yp.default=Kp;var Od=I(1..valueOf),wd=I("".replace),_d="[\t\n\v\f\r \u2028\u2029\ufeff]",xd=RegExp("^"+_d+_d+"*"),Ed=RegExp(_d+_d+"*$"),Sd=function(e){return function(t){var n=Ys(F(t));return 1&e&&(n=wd(n,xd,"")),2&e&&(n=wd(n,Ed,"")),n}},Cd={start:Sd(1),end:Sd(2),trim:Sd(3)},jd=Yt.f,kd=kt.f,Pd=ze.f,Td=Cd.trim,Md=S.Number,Ad=Md.prototype,Ld=S.TypeError,Rd=I("".slice),Nd=I("".charCodeAt),Id=function(e){var t=Re(e,"number");return"bigint"==typeof t?t:Dd(t)},Dd=function(e){var t,n,r,o,i,a,c,u,s=Re(e,"number");if(Se(s))throw Ld("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=Td(s),43===(t=Nd(s,0))||45===t){if(88===(n=Nd(s,2))||120===n)return NaN}else if(48===t){switch(Nd(s,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=Rd(s,2)).length,c=0;c<a;c++)if((u=Nd(i,c))<48||u>o)return NaN;return parseInt(i,r)}return+s};if(rn("Number",!Md(" 0o1")||!Md("0b1")||Md("+0x1"))){for(var Fd,zd=function e(t){var n=arguments.length<1?0:Md(Id(t)),r=this;return xe(Ad,r)&&T((function(){Od(r)}))?Jc(Object(n),r,e):n},Bd=fe?jd(Md):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ud=0;Bd.length>Ud;Ud++)V(Md,Fd=Bd[Ud])&&!V(zd,Fd)&&Pd(zd,Fd,kd(Md,Fd));zd.prototype=Ad,Ad.constructor=zd,ft(S,"Number",zd,{constructor:!0})}var Vd=RangeError,Hd=RangeError,Gd=String,Wd=Math.floor,Yd=I((function(e){var t=Ys(F(this)),n="",r=At(e);if(r<0||r==1/0)throw Vd("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Kd=I("".slice),Xd=I(1..toFixed),qd=function e(t,n,r){return 0===n?r:n%2==1?e(t,n-1,r*t):e(t*t,n/2,r)},Zd=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Wd(o/1e7)},Jd=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Wd(r/t),r=r%t*1e7},Qd=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Gd(e[t]);n=""===n?r:n+Yd("0",7-r.length)+r}return n},$d=T((function(){return"0.000"!==Xd(8e-5,3)||"1"!==Xd(.9,0)||"1.25"!==Xd(1.255,2)||"1000000000000000128"!==Xd(0xde0b6b3a7640080,0)}))||!T((function(){Xd({})}));function eh(e){return"number"==typeof e}function th(e){var t=Math.max(Math.min(85.0511287798,e[1]),-85.0511287798),n=Math.PI/180,r=e[0]*n,o=t*n;return o=Math.log(Math.tan(Math.PI/4+o/2)),r=(256<<20)*(.5/Math.PI*r+.5),o=(256<<20)*(-.5/Math.PI*o+(n=.5)),[Math.floor(r),Math.floor(o)]}an({target:"Number",proto:!0,forced:$d},{toFixed:function(e){var t,n,r,o,i=Od(this),a=At(e),c=[0,0,0,0,0,0],u="",s="0";if(a<0||a>20)throw Hd("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Gd(i);if(i<0&&(u="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*qd(2,69,1))-69)<0?i*qd(2,-t,1):i/qd(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Zd(c,0,n),r=a;r>=7;)Zd(c,1e7,0),r-=7;for(Zd(c,qd(10,r,1),0),r=t-1;r>=23;)Jd(c,1<<23),r-=23;Jd(c,1<<r),Zd(c,1,1),Jd(c,2),s=Qd(c)}else Zd(c,0,n),Zd(c,1<<-t,0),s=Qd(c)+Yd("0",a);return a>0?u+((o=s.length)<=a?"0."+Yd("0",a-o)+s:Kd(s,0,o-a)+"."+Kd(s,o-a)):u+s}});I("".replace);an({target:"String",proto:!0,forced:("sub",T((function(){var e="".sub('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{sub:function(){return"sub","","","<sub"+">"+Ys(F(this))+"</sub>"}});var nh=RegExp.prototype,rh=He.PROPER,oh=RegExp.prototype.toString,ih=T((function(){return"/a/b"!=oh.call({source:"a",flags:"b"})})),ah=rh&&"toString"!=oh.name;(ih||ah)&&ft(RegExp.prototype,"toString",(function(){var e=Oe(this);return"/"+Ys(e.source)+"/"+Ys(function(e){var t=e.flags;return void 0!==t||"flags"in nh||V(e,"flags")||!xe(nh,e)?t:_e(Ks,e)}(e))}),{unsafe:!0});var ch="undefined"!=typeof Float32Array?Float32Array:Array;function uh(){var e=new ch(2);return ch!=Float32Array&&(e[0]=0,e[1]=0),e}function sh(e,t){var n=new ch(2);return n[0]=e,n[1]=t,n}function lh(e,t){return e[0]=t[0],e[1]=t[1],e}function fh(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function ph(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function dh(e,t){var n=t[0],r=t[1],o=n*n+r*r;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e}function hh(e,t){return e[0]*t[0]+e[1]*t[1]}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var vh=ph,yh=(uh(),uh()),mh=(uh(),uh()),gh=uh(),bh=uh();function Oh(e,t,n,r,o){return fh(e,n,r),dh(e,e),[o/hh(t=sh(-e[1],e[0]),sh(-n[1],n[0])),t]}function wh(e,t){return function(e,t,n){return e[0]=t,e[1]=n,e}(e,-t[1],t[0])}function _h(e,t,n){return vh(e,t,n),dh(e,e),e}function xh(e,t){return e[0]===t[0]&&e[1]===t[1]}var Eh=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),l(this,"complex",void 0),l(this,"join",void 0),l(this,"cap",void 0),l(this,"miterLimit",void 0),l(this,"thickness",void 0),l(this,"normal",void 0),l(this,"lastFlip",-1),l(this,"miter",sh(0,0)),l(this,"started",!1),l(this,"dash",!1),l(this,"totalDistance",0),l(this,"currentIndex",0),this.join=t.join||"miter",this.cap=t.cap||"butt",this.miterLimit=t.miterLimit||10,this.thickness=t.thickness||1,this.dash=t.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return s(e,[{key:"extrude_gaode2",value:function(e,t){var n=this.complex;if(e.length<=1)return n;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var r=e.length,o=n.startIndex,i=1;i<r;i++){var a,c,u,s=e[i-1];s.push(null!==(a=t[i-1][2])&&void 0!==a?a:0);var l=t[i-1],f=e[i];f.push(null!==(c=t[i][2])&&void 0!==c?c:0);var p=t[i],d=i<e.length-1?[].concat(m(e[i+1]),[null!==(u=t[i+1][2])&&void 0!==u?u:0]):null,h=i<t.length-1?t[i+1]:null;o+=this.segment_gaode2(n,o,s,f,d,l,p,h)}if(this.dash)for(var v=0;v<n.positions.length/6;v++)n.positions[6*v+5]=this.totalDistance;return n.startIndex=n.positions.length/6,n}},{key:"simpleExtrude_gaode2",value:function(e,t){var n=this.complex;if(e.length<=1)return n;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var r=e.length,o=n.startIndex,i=1;i<r;i++){var a,c,u,s=e[i-1];s.push(null!==(a=t[i-1][2])&&void 0!==a?a:0);var l=t[i-1],f=e[i];f.push(null!==(c=t[i][2])&&void 0!==c?c:0);var p=t[i],d=i<e.length-1?[].concat(m(e[i+1]),[null!==(u=t[i+1][2])&&void 0!==u?u:0]):null,h=i<t.length-1?t[i+1]:null;o+=this.simpleSegment(n,o,s,f,d,l,p,h)}if(this.dash)for(var v=0;v<n.positions.length/6;v++)n.positions[6*v+5]=this.totalDistance;return n.startIndex=n.positions.length/6,n}},{key:"extrude",value:function(e){var t=this.complex;if(e.length<=1)return t;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var n=e.length,r=t.startIndex,o=1;o<n;o++){var i=e[o-1],a=e[o],c=o<e.length-1?e[o+1]:null;r+=this.segment(t,r,i,a,c)}if(this.dash)for(var u=0;u<t.positions.length/6;u++)t.positions[6*u+5]=this.totalDistance;return t.startIndex=t.positions.length/6,t}},{key:"simpleExtrude",value:function(e){var t=this.complex;if(e.length<=1)return t;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var n=e.length,r=t.startIndex,o=1;o<n;o++){var i=e[o-1],a=e[o],c=o<e.length-1?e[o+1]:null;r+=this.simpleSegment(t,r,i,a,c)}if(this.dash)for(var u=0;u<t.positions.length/6;u++)t.positions[6*u+5]=this.totalDistance;return t.startIndex=t.positions.length/6,t}},{key:"segment_gaode2",value:function(e,t,n,r,o,i,a,c){var u=0,s=e.indices,l=e.positions,f=e.normals,p="square"===this.cap,d="bevel"===this.join,h=th([a[0],a[1]]),v=th([i[0],i[1]]);_h(mh,r,n);var g=0;if(this.dash&&(g=this.lineSegmentDistance(h,v),this.totalDistance+=g),this.normal||(this.normal=uh(),wh(this.normal,mh)),!this.started)if(this.started=!0,p){var b=uh(),O=uh();fh(b,this.normal,mh),fh(O,this.normal,mh),f.push(O[0],O[1],0),f.push(b[0],b[1],0),l.push(n[0],n[1],0|n[2],this.totalDistance-g,-this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),l.push(n[0],n[1],0|n[2],this.totalDistance-g,this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(l,f,n,this.normal,this.thickness,this.totalDistance-g);if(s.push(t+0,t+1,t+2),o){xh(r,o)&&fh(o,r,dh(o,ph(o,r,n))),_h(gh,o,r);var w=y(Oh(bh,uh(),mh,gh,this.thickness),2),_=w[0],x=w[1],E=hh(bh,this.normal)<0?-1:1,S=d;S||"miter"!==this.join||_>this.miterLimit&&(S=!0),S?(f.push(this.normal[0],this.normal[1],0),f.push(x[0],x[1],0),l.push(r[0],r[1],0|r[2],this.totalDistance,-this.thickness*E,0|r[2]),this.complex.indexes.push(this.currentIndex),l.push(r[0],r[1],0|r[2],this.totalDistance,this.thickness*E,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,s.push.apply(s,m(this.lastFlip!==-E?[t,t+2,t+3]:[t+2,t+1,t+3])),s.push(t+2,t+3,t+4),wh(yh,gh),lh(this.normal,yh),f.push(this.normal[0],this.normal[1],0),l.push(r[0],r[1],0|r[2],this.totalDistance,-this.thickness*E,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,u+=3):(this.extrusions(l,f,r,x,_,this.totalDistance),s.push.apply(s,m(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),E=-1,lh(this.normal,x),u+=2),this.lastFlip=E}else{if(wh(this.normal,mh),p){var C=uh(),j=uh();vh(j,mh,this.normal),fh(C,mh,this.normal),f.push(j[0],j[1],0),f.push(C[0],C[1],0),l.push(r[0],r[1],0|r[2],this.totalDistance,this.thickness,0|r[2]),this.complex.indexes.push(this.currentIndex),l.push(r[0],r[1],0|r[2],this.totalDistance,this.thickness,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(l,f,r,this.normal,this.thickness,this.totalDistance);s.push.apply(s,m(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),u+=2}return u}},{key:"simpleSegment",value:function(e,t,n,r,o){var i=0,a=e.indices,c=e.positions,u=e.normals,s=th([r[0],r[1]]),l=th([n[0],n[1]]);_h(mh,s,l);var f=0;if(this.dash&&(f=this.lineSegmentDistance(s,l),this.totalDistance+=f),this.normal||(this.normal=uh(),wh(this.normal,mh)),this.started||(this.started=!0,this.extrusions(c,u,n,this.normal,this.thickness,this.totalDistance-f)),a.push(t+0,t+1,t+2),o){var p=th([o[0],o[1]]);xh(s,p)&&fh(p,s,dh(p,ph(p,s,l))),_h(gh,p,s);var d=y(Oh(bh,uh(),mh,gh,this.thickness),2),h=d[0],v=d[1];hh(bh,this.normal),this.extrusions(c,u,r,v,h,this.totalDistance),a.push.apply(a,m(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),lh(this.normal,v),i+=2,this.lastFlip=-1}else wh(this.normal,mh),this.extrusions(c,u,r,this.normal,this.thickness,this.totalDistance),a.push.apply(a,m(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),i+=2;return i}},{key:"segment",value:function(e,t,n,r,o){var i=0,a=e.indices,c=e.positions,u=e.normals,s="square"===this.cap,l="bevel"===this.join,f=th([r[0],r[1]]),p=th([n[0],n[1]]);_h(mh,f,p);var d=0;if(this.dash&&(d=this.lineSegmentDistance(f,p),this.totalDistance+=d),this.normal||(this.normal=uh(),wh(this.normal,mh)),!this.started)if(this.started=!0,s){var h=uh(),v=uh();fh(h,this.normal,mh),fh(v,this.normal,mh),u.push(v[0],v[1],0),u.push(h[0],h[1],0),c.push(n[0],n[1],0|n[2],this.totalDistance-d,-this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),c.push(n[0],n[1],0|n[2],this.totalDistance-d,this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(c,u,n,this.normal,this.thickness,this.totalDistance-d);if(a.push(t+0,t+1,t+2),o){var g=th([o[0],o[1]]);xh(f,g)&&fh(g,f,dh(g,ph(g,f,p))),_h(gh,g,f);var b=y(Oh(bh,uh(),mh,gh,this.thickness),2),O=b[0],w=b[1],_=hh(bh,this.normal)<0?-1:1,x=l;x||"miter"!==this.join||O>this.miterLimit&&(x=!0),x?(u.push(this.normal[0],this.normal[1],0),u.push(w[0],w[1],0),c.push(r[0],r[1],0|r[2],this.totalDistance,-this.thickness*_,0|r[2]),this.complex.indexes.push(this.currentIndex),c.push(r[0],r[1],0|r[2],this.totalDistance,this.thickness*_,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,a.push.apply(a,m(this.lastFlip!==-_?[t,t+2,t+3]:[t+2,t+1,t+3])),a.push(t+2,t+3,t+4),wh(yh,gh),lh(this.normal,yh),u.push(this.normal[0],this.normal[1],0),c.push(r[0],r[1],0|r[2],this.totalDistance,-this.thickness*_,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,i+=3):(this.extrusions(c,u,r,w,O,this.totalDistance),a.push.apply(a,m(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),_=-1,lh(this.normal,w),i+=2),this.lastFlip=_}else{if(wh(this.normal,mh),s){var E=uh(),S=uh();vh(S,mh,this.normal),fh(E,mh,this.normal),u.push(S[0],S[1],0),u.push(E[0],E[1],0),c.push(r[0],r[1],0|r[2],this.totalDistance,this.thickness,0|r[2]),this.complex.indexes.push(this.currentIndex),c.push(r[0],r[1],0|r[2],this.totalDistance,this.thickness,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(c,u,r,this.normal,this.thickness,this.totalDistance);a.push.apply(a,m(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),i+=2}return i}},{key:"extrusions",value:function(e,t,n,r,o,i){t.push(r[0],r[1],0),t.push(r[0],r[1],0),e.push(n[0],n[1],0|n[2],i,-o,0|n[2]),this.complex.indexes.push(this.currentIndex),e.push(n[0],n[1],0|n[2],i,o,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.sqrt(n*n+r*r)}}]),e}();function Sh(e){var t=e.coordinates,n=e.originCoordinates,r=e.version,o=new Eh({dash:!0,join:"bevel"});if("GAODE2.x"===r){var i=t;Array.isArray(i[0][0])||(i=[t]);var a=n;Array.isArray(a[0][0])||(a=[n]);for(var c=0;c<i.length;c++){var u=i[c],s=a[c];o.extrude_gaode2(u,s)}}else{var l=t;l[0]&&!Array.isArray(l[0][0])&&(l=[t]),l.forEach((function(e){o.extrude(e)}))}var f=o.complex;return{vertices:f.positions,indices:f.indices,normals:f.normals,indexes:f.indexes,size:6}}function Ch(e){var t=function(e){if(eh(e[0]))return e;if(eh(e[0][0]))throw new Error("当前数据不支持标注");if(eh(e[0][0][0])){var t=0,n=0,r=0;return e.forEach((function(e){e.forEach((function(e){t+=e[0],n+=e[1],r++}))})),[t/r,n/r,0]}throw new Error("当前数据不支持标注")}(e.coordinates);return{vertices:[].concat(m(t),m(t),m(t),m(t)),indices:[0,1,2,2,3,0],size:t.length}}function jh(e){var t=e.coordinates,n=Yp.flatten(t),r=n.vertices,o=n.dimensions,i=n.holes;return{indices:Yp(r,i,o),vertices:r,size:o}}var kh=function(){var e=a(o().mark((function e(t){var n,r,i,a,c,u,s,l,f;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.descriptors,r=t.features,i=t.enablePicking,a=t.iconMap,c={a_Color:Vp,a_Position:Hp,filter:Gp,a_vertexId:Wp,a_PickingColor:function(e){var t=e.id;return i?zp(t):[0,0,0]},a_DistanceAndIndex:function(e,t,n,r,o,i){return void 0===i?[n[3],10]:[n[3],i]},a_Total_Distance:function(e,t,n,r){return[n[5]]},a_Size:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0],n[1]]:[n,0]},a_Normal:function(e,t,n,r,o){return o},a_Miter:function(e,t,n){return[n[4]]},a_iconMapUV:function(e){var t=e.texture,n=a[t]||{x:0,y:0};return[n.x,n.y]}},u={sizePerElement:0,elements:[]},s=0,l=[],f=3,r.forEach((function(e,t){var r=Sh(e),o=r.indices,i=r.vertices,a=r.normals,p=r.size,d=r.indexes;o.forEach((function(e){l.push(e+s)})),f=p;var h=i.length/p;u.sizePerElement=f,u.elements.push({featureIdx:t,vertices:i,normals:a,offset:s}),s+=h;for(var v=function(r){var o=(null==a?void 0:a.slice(3*r,3*r+3))||[],u=i.slice(r*p,r*p+p),s=0;d&&void 0!==d[r]&&(s=d[r]),n.forEach((function(n){var i;n&&c[n.name]&&(i=n.buffer.data).push.apply(i,m(c[n.name](e,t,u,r,o,s)))}))},y=0;y<h;y++)v(y)})),e.abrupt("return",{descriptors:n,featureLayout:u,indices:l});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ph={pointFill:function(){var e=a(o().mark((function e(t){var n,r,i,a,c,u,s,l,f;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.descriptors,r=t.features,i=t.enablePicking,a=t.shape2d,c={a_Color:Vp,a_Position:Hp,filter:Gp,a_vertexId:Wp,a_PickingColor:function(e){var t=e.id;return i?zp(t):[0,0,0]},a_Shape:function(e){var t=e.shape,n=void 0===t?2:t;return[a.indexOf(n)]},a_Extrude:function(e,t,n,r){var o=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],i=r%4*3;return[o[i],o[i+1],o[i+2]]},a_Size:function(e){var t=e.size,n=void 0===t?5:t;return Array.isArray(n)?[n[0]]:[n]}},u={sizePerElement:0,elements:[]},s=0,l=[],f=3,r.forEach((function(e,t){var r=Ch(e),o=r.indices,i=r.vertices,a=r.normals,p=r.size;o.forEach((function(e){l.push(e+s)})),f=p;var d=i.length/p;u.sizePerElement=f,u.elements.push({featureIdx:t,vertices:i,normals:a,offset:s}),s+=d;for(var h=function(r){var o=[],a=i.slice(r*p,r*p+p);n.forEach((function(n){var i;n&&c[n.name]&&(i=n.buffer.data).push.apply(i,m(c[n.name](e,t,a,r,o,0)))}))},v=0;v<d;v++)h(v)})),e.abrupt("return",{descriptors:n,featureLayout:u,indices:l});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),line:kh,polygonFill:function(){var e=a(o().mark((function e(t){var n,r,i,a,c,u,s,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.descriptors,r=t.features,i=t.enablePicking,a={a_Color:Vp,a_Position:Hp,filter:Gp,a_vertexId:Wp,a_PickingColor:function(e){var t=e.id;return i?zp(t):[0,0,0]}},c={sizePerElement:0,elements:[]},u=0,s=[],l=3,r.forEach((function(e,t){var r=jh(e),o=r.indices,i=r.vertices,f=r.normals,p=r.size;o.forEach((function(e){s.push(e+u)})),l=p;var d=i.length/p;c.sizePerElement=l,c.elements.push({featureIdx:t,vertices:i,normals:f,offset:u}),u+=d;for(var h=function(r){var o=[],c=i.slice(r*p,r*p+p);n.forEach((function(n){var i;n&&a[n.name]&&(i=n.buffer.data).push.apply(i,m(a[n.name](e,t,c,r,o,0)))}))},v=0;v<d;v++)h(v)})),e.abrupt("return",{descriptors:n,featureLayout:c,indices:s});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},Th=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Ph);function Mh(e){return Ah.apply(this,arguments)}function Ah(){return(Ah=a(o().mark((function e(t){var n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.workerType,r=t.data,!Th[n]){e.next=3;break}return e.abrupt("return",Th[n](r));case 3:return e.abrupt("return",Promise.reject(new Error('Worker with type "'.concat(n,'" non-existent.'))));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}ci(Mh),n.WorkerSourceMap=Ph,n.createWorker=ci,n.worker=Mh}({})}).call(this,n("fRV1"))},Rdeb:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("hgAf"),o=n("qVN5"),i=n("LNVR");function a(e){var t={r:0,g:0,b:0},n=1,a=null,c=null,u=null,s=!1,p=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.a[e])e=o.a[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=l.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=l.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=l.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=l.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=l.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=l.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=l.hex8.exec(e))return{r:Object(r.e)(n[1]),g:Object(r.e)(n[2]),b:Object(r.e)(n[3]),a:Object(r.a)(n[4]),format:t?"name":"hex8"};if(n=l.hex6.exec(e))return{r:Object(r.e)(n[1]),g:Object(r.e)(n[2]),b:Object(r.e)(n[3]),format:t?"name":"hex"};if(n=l.hex4.exec(e))return{r:Object(r.e)(n[1]+n[1]),g:Object(r.e)(n[2]+n[2]),b:Object(r.e)(n[3]+n[3]),a:Object(r.a)(n[4]+n[4]),format:t?"name":"hex8"};if(n=l.hex3.exec(e))return{r:Object(r.e)(n[1]+n[1]),g:Object(r.e)(n[2]+n[2]),b:Object(r.e)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=Object(r.i)(e.r,e.g,e.b),s=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=Object(i.d)(e.s),c=Object(i.d)(e.v),t=Object(r.c)(e.h,a,c),s=!0,p="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=Object(i.d)(e.s),u=Object(i.d)(e.l),t=Object(r.b)(e.h,a,u),s=!0,p="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Object(i.b)(n),{ok:s,format:e.format||p,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var c="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),u="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),s="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),l={CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+u),rgba:new RegExp("rgba"+s),hsl:new RegExp("hsl"+u),hsla:new RegExp("hsla"+s),hsv:new RegExp("hsv"+u),hsva:new RegExp("hsva"+s),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return Boolean(l.CSS_UNIT.exec(String(e)))}},RhWx:function(e,t,n){var r=n("tGbD"),o=n("twbh"),i=n("peMk"),a=n("d8WC");e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},Rkrg:function(e,t,n){var r=n("1kx4"),o=function(e){var t="",n=Object.keys(e);return n.forEach((function(o,i){var a=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",i<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,r){t+=o(n),r<e.length-1&&(t+=", ")})),t):o(e)}},RlXo:function(e,t,n){"use strict";t.a={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},RqAY:function(e,t,n){"use strict";function r(e){return Object.keys(e).reduce((function(t,n){return!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n||n.startsWith("data-__")||(t[n]=e[n]),t}),{})}n.d(t,"a",(function(){return r}))},S0cN:function(e,t,n){var r=n("h++M"),o=n("4ygQ")((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=o},S0iI:function(e,t){e.exports=function(e,t){return e.has(t)}},SC2c:function(e,t,n){var r=n("RhWx");e.exports=function(e){function t(e){var n,r,i,a=null;function c(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(c.enabled){var i=c,a=Number(new Date),u=a-(n||a);i.diff=u,i.prev=n,i.curr=a,n=a,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var s=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return"%";s++;var o=t.formatters[n];if("function"==typeof o){var a=r[s];e=o.call(i,a),r.splice(s,1),s--}return e})),t.formatArgs.call(i,r);var l=i.log||t.log;l.apply(i,r)}}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=o,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(r!==t.namespaces&&(r=t.namespaces,i=t.enabled(e)),i)},set:function(e){a=e}}),"function"==typeof t.init&&t.init(c),c}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(i)),r(t.skips.map(i).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n("n1Tc"),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(n){t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},SE3H:function(e,t,n){},SEb4:function(e,t,n){"use strict";var r=Array.isArray;t.a=r},SNCn:function(e,t,n){"use strict";var r=n("GAvS"),o=n("mr4r"),i=n("SEb4"),a=n("G12H"),c=r.a?r.a.prototype:void 0,u=c?c.toString:void 0;var s=function e(t){if("string"==typeof t)return t;if(Object(i.a)(t))return Object(o.a)(t,e)+"";if(Object(a.a)(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};t.a=function(e){return null==e?"":s(e)}},"SRL+":function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(t){return"Object"}}},SU8Q:function(e,t){e.exports=function(e){return function(t){return e(t)}}},"SVW/":function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},SVsW:function(e,t,n){"use strict";var r=/\s/;var o=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t},i=/^\s+/;var a=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e},c=n("gDU4"),u=n("G12H"),s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;t.a=function(e){if("number"==typeof e)return e;if(Object(u.a)(e))return NaN;if(Object(c.a)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Object(c.a)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=l.test(e);return n||f.test(e)?p(e.slice(2),n?2:8):s.test(e)?NaN:+e}},Sdc0:function(e,t,n){"use strict";var r=n("cxan"),o=n("zjfJ"),i=n("QmBg"),a=n("O94r"),c=n.n(a),u=n("zygG"),s=n("HbGN"),l=n("ERkP"),f=n("MSM+"),p=n("tmJt"),d=l.forwardRef((function(e,t){var n,r=e.prefixCls,i=void 0===r?"rc-switch":r,a=e.className,d=e.checked,h=e.defaultChecked,v=e.disabled,y=e.loadingIcon,m=e.checkedChildren,g=e.unCheckedChildren,b=e.onClick,O=e.onChange,w=e.onKeyDown,_=Object(s.a)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),x=Object(f.a)(!1,{value:d,defaultValue:h}),E=Object(u.a)(x,2),S=E[0],C=E[1];function j(e,t){var n=S;return v||(C(n=e),null==O||O(n,t)),n}var k=c()(i,a,(n={},Object(o.a)(n,"".concat(i,"-checked"),S),Object(o.a)(n,"".concat(i,"-disabled"),v),n));return l.createElement("button",Object.assign({},_,{type:"button",role:"switch","aria-checked":S,disabled:v,className:k,ref:t,onKeyDown:function(e){e.which===p.a.LEFT?j(!1,e):e.which===p.a.RIGHT&&j(!0,e),null==w||w(e)},onClick:function(e){var t=j(!S,e);null==b||b(t,e)}}),y,l.createElement("span",{className:"".concat(i,"-inner")},S?m:g))}));d.displayName="Switch";var h=d,v=n("H84U"),y=n("caoh"),m=n("3Nzz"),g=n("g0mS"),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},O=l.forwardRef((function(e,t){var n,a=e.prefixCls,u=e.size,s=e.disabled,f=e.loading,p=e.className,d=void 0===p?"":p,O=b(e,["prefixCls","size","disabled","loading","className"]),w=l.useContext(v.b),_=w.getPrefixCls,x=w.direction,E=l.useContext(m.b),S=l.useContext(y.b),C=s||S||f,j=_("switch",a),k=l.createElement("div",{className:"".concat(j,"-handle")},f&&l.createElement(i.a,{className:"".concat(j,"-loading-icon")})),P=c()((n={},Object(o.a)(n,"".concat(j,"-small"),"small"===(u||E)),Object(o.a)(n,"".concat(j,"-loading"),f),Object(o.a)(n,"".concat(j,"-rtl"),"rtl"===x),n),d);return l.createElement(g.a,{insertExtraNode:!0},l.createElement(h,Object(r.a)({},O,{prefixCls:j,className:P,disabled:C,ref:t,loadingIcon:k})))}));O.__ANT_SWITCH=!0;t.a=O},SeOj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Request=void 0;var r=n("+OwM"),o=function(){function e(e,t,n,o,i){this.id=r.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=i,this.childRequests=[],this.bindings=Array.isArray(o)?o:[o],this.requestScope=null===n?new Map:null}return e.prototype.addChildRequest=function(t,n,r){var o=new e(t,this.parentContext,this,n,r);return this.childRequests.push(o),o},e}();t.Request=o},Sgyn:function(e,t,n){},"SiX+":function(e,t,n){"use strict";var r=n("cxan"),o=n("zjfJ"),i=n("zygG"),a=n("O94r"),c=n.n(a),u=n("MSM+"),s=n("ERkP"),l=n("H84U"),f=n("3Nzz"),p=n("RqAY"),d=n("xCex"),h=n("oOh1"),v=s.forwardRef((function(e,t){var n,a=s.useContext(l.b),v=a.getPrefixCls,y=a.direction,m=s.useContext(f.b),g=Object(u.a)(e.defaultValue,{value:e.value}),b=Object(i.a)(g,2),O=b[0],w=b[1],_=e.prefixCls,x=e.className,E=void 0===x?"":x,S=e.options,C=e.buttonStyle,j=void 0===C?"outline":C,k=e.disabled,P=e.children,T=e.size,M=e.style,A=e.id,L=e.onMouseEnter,R=e.onMouseLeave,N=e.onFocus,I=e.onBlur,D=v("radio",_),F="".concat(D,"-group"),z=P;S&&S.length>0&&(z=S.map((function(e){return"string"==typeof e||"number"==typeof e?s.createElement(h.a,{key:e.toString(),prefixCls:D,disabled:k,value:e,checked:O===e},e):s.createElement(h.a,{key:"radio-group-value-options-".concat(e.value),prefixCls:D,disabled:e.disabled||k,value:e.value,checked:O===e.value,style:e.style},e.label)})));var B=T||m,U=c()(F,"".concat(F,"-").concat(j),(n={},Object(o.a)(n,"".concat(F,"-").concat(B),B),Object(o.a)(n,"".concat(F,"-rtl"),"rtl"===y),n),E);return s.createElement("div",Object(r.a)({},Object(p.a)(e),{className:U,style:M,onMouseEnter:L,onMouseLeave:R,onFocus:N,onBlur:I,id:A,ref:t}),s.createElement(d.a,{value:{onChange:function(t){var n=O,r=t.target.value;"value"in e||w(r);var o=e.onChange;o&&r!==n&&o(t)},value:O,disabled:e.disabled,name:e.name,optionType:e.optionType}},z))}));t.a=s.memo(v)},Sp6C:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="CloseOutlined";t.a=o.forwardRef(c)},Syyo:function(e,t,n){var r=n("IBsm").Symbol;e.exports=r},Szl1:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="CheckOutlined";t.a=o.forwardRef(c)},"T+0C":function(e,t,n){var r,o,i=n("9JhN"),a=n("ZORK"),c=i.process,u=i.Deno,s=c&&c.versions||u&&u.version,l=s&&s.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},T0aG:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},T1QL:function(e,t,n){"use strict";n.r(t);var r=n("gbJM");n.d(t,"Source",(function(){return r.a}));var o=n("pufz");for(var i in o)["default","Source"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var a=n("+CBx");n.d(t,"Scene",(function(){return a.a}));var c=n("gTrE");n.d(t,"Version",(function(){return c.Version})),n.d(t,"GaodeMap",(function(){return c.GaodeMap})),n.d(t,"GaodeMapV2",(function(){return c.GaodeMapV2})),n.d(t,"Mapbox",(function(){return c.Mapbox})),n.d(t,"Map",(function(){return c.Map})),n.d(t,"Earth",(function(){return c.Earth})),n.d(t,"Viewport",(function(){return c.Viewport})),n.d(t,"BaseMapWrapper",(function(){return c.BaseMapWrapper})),n.d(t,"BaseMapService",(function(){return c.BaseMapService}));var u=n("JeyM");n.d(t,"BaseLayer",(function(){return u.a})),n.d(t,"BaseModel",(function(){return u.b})),n.d(t,"PointLayer",(function(){return u.m})),n.d(t,"PolygonLayer",(function(){return u.n})),n.d(t,"LineLayer",(function(){return u.j})),n.d(t,"CityBuildingLayer",(function(){return u.e})),n.d(t,"GeometryLayer",(function(){return u.g})),n.d(t,"CanvasLayer",(function(){return u.c})),n.d(t,"ImageLayer",(function(){return u.i})),n.d(t,"RasterLayer",(function(){return u.o})),n.d(t,"HeatmapLayer",(function(){return u.h})),n.d(t,"EarthLayer",(function(){return u.f})),n.d(t,"WindLayer",(function(){return u.r})),n.d(t,"MaskLayer",(function(){return u.l})),n.d(t,"TileDebugLayer",(function(){return u.q})),n.d(t,"lineStyleType",(function(){return u.s})),n.d(t,"LinearDir",(function(){return u.k})),n.d(t,"TextureBlend",(function(){return u.p})),n.d(t,"CanvasUpdateType",(function(){return u.d}));var s=n("aqw4");n.d(t,"Control",(function(){return s.a})),n.d(t,"Logo",(function(){return s.c})),n.d(t,"Scale",(function(){return s.g})),n.d(t,"Zoom",(function(){return s.h})),n.d(t,"Layers",(function(){return s.b})),n.d(t,"Marker",(function(){return s.d})),n.d(t,"Popup",(function(){return s.f})),n.d(t,"MarkerLayer",(function(){return s.e}));var l=n("zEXi");n.d(t,"djb2hash",(function(){return l.P})),n.d(t,"BKDRHash",(function(){return l.e})),n.d(t,"DOM",(function(){return l.f})),n.d(t,"Satistics",(function(){return l.l})),n.d(t,"isMiniAli",(function(){return l.kb})),n.d(t,"isWeChatMiniProgram",(function(){return l.mb})),n.d(t,"isMini",(function(){return l.jb})),n.d(t,"miniWindow",(function(){return l.wb})),n.d(t,"$window",(function(){return l.c})),n.d(t,"$XMLHttpRequest",(function(){return l.a})),n.d(t,"$location",(function(){return l.b})),n.d(t,"dispatchTouchStart",(function(){return l.O})),n.d(t,"dispatchTouchMove",(function(){return l.N})),n.d(t,"dispatchTouchEnd",(function(){return l.M})),n.d(t,"dispatchMapCameraParams",(function(){return l.F})),n.d(t,"dispatchPointerDown",(function(){return l.J})),n.d(t,"dispatchPointerMove",(function(){return l.K})),n.d(t,"dispatchPointerUp",(function(){return l.L})),n.d(t,"dispatchMouseDown",(function(){return l.G})),n.d(t,"dispatchMouseMove",(function(){return l.H})),n.d(t,"dispatchMouseUp",(function(){return l.I})),n.d(t,"AJAXError",(function(){return l.d})),n.d(t,"makeXMLHttpRequestPromise",(function(){return l.ub})),n.d(t,"getJSON",(function(){return l.ab})),n.d(t,"getArrayBuffer",(function(){return l.X})),n.d(t,"postData",(function(){return l.Cb})),n.d(t,"getImage",(function(){return l.Z})),n.d(t,"arrayBufferToTiffImage",(function(){return l.w})),n.d(t,"getTiffImage",(function(){return l.db})),n.d(t,"extent",(function(){return l.T})),n.d(t,"tranfrormCoord",(function(){return l.Hb})),n.d(t,"lngLatToMeters",(function(){return l.rb})),n.d(t,"metersToLngLat",(function(){return l.vb})),n.d(t,"longitude",(function(){return l.tb})),n.d(t,"latitude",(function(){return l.ob})),n.d(t,"validateLngLat",(function(){return l.Jb})),n.d(t,"aProjectFlat",(function(){return l.q})),n.d(t,"unProjectFlat",(function(){return l.Ib})),n.d(t,"amap2Project",(function(){return l.r})),n.d(t,"amap2UnProject",(function(){return l.s})),n.d(t,"lnglatDistance",(function(){return l.sb})),n.d(t,"project",(function(){return l.Db})),n.d(t,"padBounds",(function(){return l.Ab})),n.d(t,"boundsContains",(function(){return l.z})),n.d(t,"bBoxToBounds",(function(){return l.x})),n.d(t,"normalize",(function(){return l.xb})),n.d(t,"calDistance",(function(){return l.B})),n.d(t,"calAngle",(function(){return l.A})),n.d(t,"getAngle",(function(){return l.W})),n.d(t,"flow",(function(){return l.U})),n.d(t,"calculateCentroid",(function(){return l.C})),n.d(t,"calculatePointsCenterAndRadius",(function(){return l.D})),n.d(t,"LRUCache",(function(){return l.h})),n.d(t,"bindAll",(function(){return l.y})),n.d(t,"FrequencyController",(function(){return l.g})),n.d(t,"isColor",(function(){return l.hb})),n.d(t,"rgb2arr",(function(){return l.Eb})),n.d(t,"decodePickingColor",(function(){return l.E})),n.d(t,"encodePickingColor",(function(){return l.Q})),n.d(t,"generateColorRamp",(function(){return l.V})),n.d(t,"anchorType",(function(){return l.u})),n.d(t,"anchorTranslate",(function(){return l.t})),n.d(t,"applyAnchorClass",(function(){return l.v})),n.d(t,"getMask",(function(){return l.bb})),n.d(t,"WorkerSourceMap",(function(){return l.p})),n.d(t,"setL7WorkerSource",(function(){return l.Fb})),n.d(t,"executeWorkerTask",(function(){return l.R})),n.d(t,"getCullFace",(function(){return l.Y})),n.d(t,"isImageBitmap",(function(){return l.ib})),n.d(t,"isWorker",(function(){return l.nb})),n.d(t,"getReferrer",(function(){return l.cb})),n.d(t,"isURLTemplate",(function(){return l.lb})),n.d(t,"expandUrl",(function(){return l.S})),n.d(t,"getURLFromTemplate",(function(){return l.gb})),n.d(t,"UpdateTileStrategy",(function(){return l.o})),n.d(t,"LoadTileDataStatus",(function(){return l.j})),n.d(t,"Tile",(function(){return l.m})),n.d(t,"TilesetManager",(function(){return l.n})),n.d(t,"osmLonLat2TileXY",(function(){return l.yb})),n.d(t,"osmTileXY2LonLat",(function(){return l.zb})),n.d(t,"tileToBounds",(function(){return l.Gb})),n.d(t,"getTileIndices",(function(){return l.eb})),n.d(t,"getTileWarpXY",(function(){return l.fb})),n.d(t,"LineTriangulation",(function(){return l.i})),n.d(t,"PointFillTriangulation",(function(){return l.k})),n.d(t,"polygonFillTriangulation",(function(){return l.Bb})),n.d(t,"lineAtOffset",(function(){return l.pb})),n.d(t,"lineAtOffsetAsyc",(function(){return l.qb}));var f=n("/mHc");n.d(t,"version",(function(){return f.a}))},T6vp:function(e,t,n){(function(e){var r=n("e93E"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=c}).call(this,n("aYSr")(e))},TAtK:function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},TJ9i:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.normal="normal",e.additive="additive",e.subtractive="subtractive",e.min="min",e.max="max",e.none="none"}(r||(r={}))},TJfB:function(e,t,n){},TLLU:function(e,t,n){"use strict";var r=n("5OYt");t.a={useBreakpoint:function(){return Object(r.a)()}}},TN3B:function(e,t,n){var r=n("DpO5"),o=n("xgf2");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"TPB+":function(e,t,n){"use strict";(function(e){var r=n("fw2E"),o=n("VxF/"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.a.Buffer:void 0,u=(c?c.isBuffer:void 0)||o.a;t.a=u}).call(this,n("cyaT")(e))},TPFc:function(e,t,n){var r=n("WhsZ"),o=n("svN1"),i=n("icSG"),a=n("c7QU");e.exports=r(o(["drop"],i,(function(e,t){return a(Math.max(0,e),1/0,t)})))},TYRa:function(e,t,n){var r=n("kbrz")("toUpperCase");e.exports=r},TbR9:function(e,t,n){var r=n("56Cj");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},Tc2z:function(e,t,n){"use strict";var r=n("mr4r"),o=n("wh7w"),i=n("rkDk"),a=n("GIvL");var c=function(e,t){var n=-1,r=Object(a.a)(e)?Array(e.length):[];return Object(i.a)(e,(function(e,o,i){r[++n]=t(e,o,i)})),r},u=n("SEb4");t.a=function(e,t){return(Object(u.a)(e)?r.a:c)(e,Object(o.a)(t,3))}},TcdR:function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},Tckk:function(e,t,n){"use strict";var r=n("cxan"),o=n("zjfJ"),i=n("4wDe"),a=n("zygG"),c=n("O94r"),u=n.n(c),s=n("8sde"),l=n("uwWy"),f=n("ERkP"),p=n("H84U"),d=n("5OYt"),h=n("ACnJ"),v=f.createContext("default"),y=function(e){var t=e.children,n=e.size;return f.createElement(v.Consumer,null,(function(e){return f.createElement(v.Provider,{value:n||e},t)}))},m=v,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},b=function(e,t){var n,c,v=f.useContext(m),y=f.useState(1),b=Object(a.a)(y,2),O=b[0],w=b[1],_=f.useState(!1),x=Object(a.a)(_,2),E=x[0],S=x[1],C=f.useState(!0),j=Object(a.a)(C,2),k=j[0],P=j[1],T=f.useRef(),M=f.useRef(),A=Object(l.a)(t,T),L=f.useContext(p.b).getPrefixCls,R=function(){if(M.current&&T.current){var t=M.current.offsetWidth,n=T.current.offsetWidth;if(0!==t&&0!==n){var r=e.gap,o=void 0===r?4:r;2*o<n&&w(n-2*o<t?(n-2*o)/t:1)}}};f.useEffect((function(){S(!0)}),[]),f.useEffect((function(){P(!0),w(1)}),[e.src]),f.useEffect((function(){R()}),[e.gap]);var N,I=e.prefixCls,D=e.shape,F=e.size,z=e.src,B=e.srcSet,U=e.icon,V=e.className,H=e.alt,G=e.draggable,W=e.children,Y=e.crossOrigin,K=g(e,["prefixCls","shape","size","src","srcSet","icon","className","alt","draggable","children","crossOrigin"]),X="default"===F?v:F,q=Object.keys("object"===Object(i.a)(X)&&X||{}).some((function(e){return["xs","sm","md","lg","xl","xxl"].includes(e)})),Z=Object(d.a)(q),J=f.useMemo((function(){if("object"!==Object(i.a)(X))return{};var e=h.b.find((function(e){return Z[e]})),t=X[e];return t?{width:t,height:t,lineHeight:"".concat(t,"px"),fontSize:U?t/2:18}:{}}),[Z,X]),Q=L("avatar",I),$=u()((n={},Object(o.a)(n,"".concat(Q,"-lg"),"large"===X),Object(o.a)(n,"".concat(Q,"-sm"),"small"===X),n)),ee=f.isValidElement(z),te=u()(Q,$,(c={},Object(o.a)(c,"".concat(Q,"-").concat(D),!!D),Object(o.a)(c,"".concat(Q,"-image"),ee||z&&k),Object(o.a)(c,"".concat(Q,"-icon"),!!U),c),V),ne="number"==typeof X?{width:X,height:X,lineHeight:"".concat(X,"px"),fontSize:U?X/2:18}:{};if("string"==typeof z&&k)N=f.createElement("img",{src:z,draggable:G,srcSet:B,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&P(!1)},alt:H,crossOrigin:Y});else if(ee)N=z;else if(U)N=U;else if(E||1!==O){var re="scale(".concat(O,") translateX(-50%)"),oe={msTransform:re,WebkitTransform:re,transform:re},ie="number"==typeof X?{lineHeight:"".concat(X,"px")}:{};N=f.createElement(s.a,{onResize:R},f.createElement("span",{className:"".concat(Q,"-string"),ref:function(e){M.current=e},style:Object(r.a)(Object(r.a)({},ie),oe)},W))}else N=f.createElement("span",{className:"".concat(Q,"-string"),style:{opacity:0},ref:function(e){M.current=e}},W);return delete K.onError,delete K.gap,f.createElement("span",Object(r.a)({},K,{style:Object(r.a)(Object(r.a)(Object(r.a)({},ne),J),K.style),className:te,ref:A}),N)},O=f.forwardRef(b);O.defaultProps={shape:"circle",size:"default"};var w=O,_=n("6Qj0"),x=n("diRs"),E=n("0n0R"),S=function(e){var t=f.useContext(p.b),n=t.getPrefixCls,r=t.direction,i=e.prefixCls,a=e.className,c=void 0===a?"":a,s=e.maxCount,l=e.maxStyle,d=e.size,h=n("avatar-group",i),v=u()(h,Object(o.a)({},"".concat(h,"-rtl"),"rtl"===r),c),m=e.children,g=e.maxPopoverPlacement,b=void 0===g?"top":g,O=e.maxPopoverTrigger,S=void 0===O?"hover":O,C=Object(_.a)(m).map((function(e,t){return Object(E.a)(e,{key:"avatar-key-".concat(t)})})),j=C.length;if(s&&s<j){var k=C.slice(0,s),P=C.slice(s,j);return k.push(f.createElement(x.a,{key:"avatar-popover-key",content:P,trigger:S,placement:b,overlayClassName:"".concat(h,"-popover")},f.createElement(w,{style:l},"+".concat(j-s)))),f.createElement(y,{size:d},f.createElement("div",{className:v,style:e.style},k))}return f.createElement(y,{size:d},f.createElement("div",{className:v,style:e.style},C))},C=w;C.Group=S;t.a=C},TeRw:function(e,t,n){"use strict";n("p05D");var r=n("cxan"),o=n("zjfJ"),i=n("5ouU"),a=n("r8k/"),c=n("Sp6C"),u=n("+Hko"),s=n("TyQ8"),l=n("O94r"),f=n.n(l),p=n("8tx+"),d=n("ERkP"),h=n("wEI+"),v=n("zygG"),y=n("8HVG"),m=n("H84U");var g,b,O,w={},_=4.5,x=24,E=24,S="",C="topRight",j=!1;function k(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;switch(e){case"top":t={left:"50%",transform:"translateX(-50%)",right:"auto",top:n,bottom:"auto"};break;case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottom":t={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:r};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function P(e,t){var n=e.placement,r=void 0===n?C:n,i=e.top,a=e.bottom,c=e.getContainer,u=void 0===c?g:c,s=e.prefixCls,l=Object(h.b)(),d=l.getPrefixCls,v=l.getIconPrefixCls,y=d("notification",s||S),m=v(),b="".concat(y,"-").concat(r),_=w[b];if(_)Promise.resolve(_).then((function(e){t({prefixCls:"".concat(y,"-notice"),iconPrefixCls:m,instance:e})}));else{var x=f()("".concat(y,"-").concat(r),Object(o.a)({},"".concat(y,"-rtl"),!0===j));w[b]=new Promise((function(e){p.a.newInstance({prefixCls:y,className:x,style:k(r,i,a),getContainer:u,maxCount:O},(function(n){e(n),t({prefixCls:"".concat(y,"-notice"),iconPrefixCls:m,instance:n})}))}))}}var T={success:i.a,info:s.a,error:a.a,warning:u.a};function M(e,t,n){var r=e.duration,i=e.icon,a=e.type,u=e.description,s=e.message,l=e.btn,p=e.onClose,v=e.onClick,y=e.key,m=e.style,g=e.className,O=e.closeIcon,w=void 0===O?b:O,x=void 0===r?_:r,E=null;i?E=d.createElement("span",{className:"".concat(t,"-icon")},e.icon):a&&(E=d.createElement(T[a]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(a)}));var S=d.createElement("span",{className:"".concat(t,"-close-x")},w||d.createElement(c.a,{className:"".concat(t,"-close-icon")})),C=!u&&E?d.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:d.createElement(h.a,{iconPrefixCls:n},d.createElement("div",{className:E?"".concat(t,"-with-icon"):"",role:"alert"},E,d.createElement("div",{className:"".concat(t,"-message")},C,s),d.createElement("div",{className:"".concat(t,"-description")},u),l?d.createElement("span",{className:"".concat(t,"-btn")},l):null)),duration:x,closable:!0,closeIcon:S,onClose:p,onClick:v,key:y,style:m||{},className:f()(g,Object(o.a)({},"".concat(t,"-").concat(a),!!a))}}var A,L,R={open:function(e){P(e,(function(t){var n=t.prefixCls,r=t.iconPrefixCls;t.instance.notice(M(e,n,r))}))},close:function(e){Object.keys(w).forEach((function(t){return Promise.resolve(w[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,o=e.top,i=e.getContainer,a=e.closeIcon,c=e.prefixCls;void 0!==c&&(S=c),void 0!==t&&(_=t),void 0!==n?C=n:e.rtl&&(C="topLeft"),void 0!==r&&(E=r),void 0!==o&&(x=o),void 0!==i&&(g=i),void 0!==a&&(b=a),void 0!==e.rtl&&(j=e.rtl),void 0!==e.maxCount&&(O=e.maxCount)},destroy:function(){Object.keys(w).forEach((function(e){Promise.resolve(w[e]).then((function(e){e.destroy()})),delete w[e]}))}};["success","info","warning","error"].forEach((function(e){R[e]=function(t){return R.open(Object(r.a)(Object(r.a)({},t),{type:e}))}})),R.warn=R.warning,R.useNotification=(A=P,L=M,function(){var e,t=null,n={add:function(e,n){null==t||t.component.add(e,n)}},o=Object(y.a)(n),i=Object(v.a)(o,2),a=i[0],c=i[1],u=d.useRef({});return u.current.open=function(n){var o=n.prefixCls,i=e("notification",o);A(Object(r.a)(Object(r.a)({},n),{prefixCls:i}),(function(e){var r=e.prefixCls,o=e.instance;t=o,a(L(n,r))}))},["success","info","warning","error"].forEach((function(e){u.current[e]=function(t){return u.current.open(Object(r.a)(Object(r.a)({},t),{type:e}))}})),[u.current,d.createElement(m.a,{key:"holder"},(function(t){return e=t.getPrefixCls,c}))]});t.a=R},Tr4L:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("ddV6"),o=n.n(r),i=n("KEM+"),a=n.n(i),c=n("ERkP"),u=n("snMe"),s=n("AZnI");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e,t){var n=Object(c.useRef)();return Object(c.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(c.useContext)(u.a)||{},i=r.i18n,a=r.defaultNS,l=n||i||Object(u.d)();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new u.b),!l){Object(s.d)("You will need to pass in an i18next instance by using initReactI18next");var d=function(e){return Array.isArray(e)?e[e.length-1]:e},h=[d,{},!1];return h.t=d,h.i18n={},h.ready=!1,h}l.options.react&&void 0!==l.options.react.wait&&Object(s.d)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var v=f(f(f({},Object(u.c)()),l.options.react),t),y=v.useSuspense,m=v.keyPrefix,g=e||a||l.options&&l.options.defaultNS;g="string"==typeof g?[g]:g||["translation"],l.reportNamespaces.addUsedNamespaces&&l.reportNamespaces.addUsedNamespaces(g);var b=(l.isInitialized||l.initializedStoreOnce)&&g.every((function(e){return Object(s.b)(e,l,v)}));function O(){return l.getFixedT(null,"fallback"===v.nsMode?g:g[0],m)}var w=Object(c.useState)(O),_=o()(w,2),x=_[0],E=_[1],S=g.join(),C=p(S),j=Object(c.useRef)(!0);Object(c.useEffect)((function(){var e=v.bindI18n,t=v.bindI18nStore;function n(){j.current&&E(O)}return j.current=!0,b||y||Object(s.c)(l,g,(function(){j.current&&E(O)})),b&&C&&C!==S&&j.current&&E(O),e&&l&&l.on(e,n),t&&l&&l.store.on(t,n),function(){j.current=!1,e&&l&&e.split(" ").forEach((function(e){return l.off(e,n)})),t&&l&&t.split(" ").forEach((function(e){return l.store.off(e,n)}))}}),[l,S]);var k=Object(c.useRef)(!0);Object(c.useEffect)((function(){j.current&&!k.current&&E(O),k.current=!1}),[l]);var P=[x,l,b];if(P.t=x,P.i18n=l,P.ready=b,b)return P;if(!b&&!y)return P;throw new Promise((function(e){Object(s.c)(l,g,(function(){e()}))}))}},Tv3l:function(e,t,n){var r=n("2Fbm"),o=n("VPai"),i=n("+fUG"),a=n("QMz8"),c=n("mUsV");function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},TyQ8:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="InfoCircleOutlined";t.a=o.forwardRef(c)},U9tm:function(e,t,n){var r=n("GSdA");e.exports=r(0)},UADf:function(e,t,n){},UAs9:function(e,t,n){var r=n("zaNA"),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,c=o(i.length-t,0),u=Array(c);++a<c;)u[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=n(u),r(e,this,s)}}},UFed:function(e,t,n){var r=n("BkAM"),o=n("WhsZ"),i=n("UOep");e.exports=function(e){return function t(n,a,c){switch(arguments.length){case 0:return t;case 1:return i(n)?t:o((function(t,r){return e(n,t,r)}));case 2:return i(n)&&i(a)?t:i(n)?o((function(t,n){return e(t,a,n)})):i(a)?o((function(t,r){return e(n,t,r)})):r((function(t){return e(n,a,t)}));default:return i(n)&&i(a)&&i(c)?t:i(n)&&i(a)?o((function(t,n){return e(t,n,c)})):i(n)&&i(c)?o((function(t,n){return e(t,a,n)})):i(a)&&i(c)?o((function(t,r){return e(n,t,r)})):i(n)?r((function(t){return e(t,a,c)})):i(a)?r((function(t){return e(n,t,c)})):i(c)?r((function(t){return e(n,a,t)})):e(n,a,c)}}}},UOep:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},"USM+":function(e,t,n){"use strict";var r={equals:{"fantasy-land/equals":function(e){return this.equals(e)}},concat:{"fantasy-land/concat":function(e){return this.concat(e)}},empty:{"fantasy-land/empty":function(){return this.empty()}},map:{"fantasy-land/map":function(e){return this.map(e)}},apply:{ap:function(e){return this.apply(e)},"fantasy-land/ap":function(e){return e.apply(this)}},of:{"fantasy-land/of":function(e){return this.of(e)}},or:{"fantasy-land/alt":function(e){return this.or(e)},alt:function(e){return this.or(e)}},reduce:{"fantasy-land/reduce":function(e,t){return this.reduce(e,t)}},traverse:{"fantasy-land/traverse":function(e,t){return this.traverse(e,t)}},chain:{"fantasy-land/chain":function(e){return this.chain(e)}},chainRecursively:{chainRec:function(e,t){return this.chainRecursively(e,t)},"fantasy-land/chainRec":function(e,t){return this.chainRecursively(e,t)}},extend:{"fantasy-land/extend":function(e){return this.extend(e)}},extract:{"fantasy-land/extract":function(){return this.extract()}},bimap:{"fantasy-land/bimap":function(e,t){return this.bimap(e,t)}},promap:{"fantasy-land/promap":function(e,t){return this.promap(e,t)}}};e.exports=function(e){Object.keys(r).forEach((function(t){"function"==typeof e[t]&&Object.keys(r[t]).forEach((function(n){e[n]=r[t][n]}))}))}},Ua7V:function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports},UdtX:function(e,t,n){var r=n("RFxK")();e.exports=r},UfwH:function(e,t,n){"use strict";var r,o=n("cxan"),i=n("9fIP"),a=n("MMYH"),c=n("8K1b"),u=n("AqVP"),s=n("ERkP"),l=n("Czhu"),f=n("zjfJ"),p=n("8sde"),d=n("WSTu"),h=n("O94r"),v=n.n(h),y="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",m=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],g={};function b(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&g[n])return g[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=m.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),u={sizingStyle:c,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(g[n]=u),u}var O,w=n("Pu0A"),_=n.n(w);!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(O||(O={}));var x=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e){var a;return Object(i.a)(this,n),(a=t.call(this,e)).nextFrameActionId=void 0,a.resizeFrameId=void 0,a.textArea=void 0,a.saveTextArea=function(e){a.textArea=e},a.handleResize=function(e){var t=a.state.resizeStatus,n=a.props,r=n.autoSize,o=n.onResize;t===O.NONE&&("function"==typeof o&&o(e),r&&a.resizeOnNextFrame())},a.resizeOnNextFrame=function(){cancelAnimationFrame(a.nextFrameActionId),a.nextFrameActionId=requestAnimationFrame(a.resizeTextarea)},a.resizeTextarea=function(){var e=a.props.autoSize;if(e&&a.textArea){var t=e.minRows,n=e.maxRows,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=b(e,t),a=i.paddingSize,c=i.borderSize,u=i.boxSizing,s=i.sizingStyle;r.setAttribute("style","".concat(s,";").concat(y)),r.value=e.value||e.placeholder||"";var l,f=Number.MIN_SAFE_INTEGER,p=Number.MAX_SAFE_INTEGER,d=r.scrollHeight;if("border-box"===u?d+=c:"content-box"===u&&(d-=a),null!==n||null!==o){r.value=" ";var h=r.scrollHeight-a;null!==n&&(f=h*n,"border-box"===u&&(f=f+a+c),d=Math.max(f,d)),null!==o&&(p=h*o,"border-box"===u&&(p=p+a+c),l=d>p?"":"hidden",d=Math.min(p,d))}return{height:d,minHeight:f,maxHeight:p,overflowY:l,resize:"none"}}(a.textArea,!1,t,n);a.setState({textareaStyles:o,resizeStatus:O.RESIZING},(function(){cancelAnimationFrame(a.resizeFrameId),a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:O.RESIZED},(function(){a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:O.NONE}),a.fixFirefoxAutoScroll()}))}))}))}))}},a.renderTextArea=function(){var e=a.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,r=e.autoSize,i=e.onResize,c=e.className,u=e.disabled,h=a.state,y=h.textareaStyles,m=h.resizeStatus,g=Object(d.a)(a.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),b=v()(n,c,Object(f.a)({},"".concat(n,"-disabled"),u));"value"in g&&(g.value=g.value||"");var w=Object(l.a)(Object(l.a)(Object(l.a)({},a.props.style),y),m===O.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return s.createElement(p.a,{onResize:a.handleResize,disabled:!(r||i)},s.createElement("textarea",Object(o.a)({},g,{className:b,style:w,ref:a.saveTextArea})))},a.state={textareaStyles:{},resizeStatus:O.NONE},a}return Object(a.a)(n,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&_()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(s.Component),E=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e){var r;Object(i.a)(this,n),(r=t.call(this,e)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;13===e.keyCode&&n&&n(e),o&&o(e)};var o=void 0===e.value||null===e.value?e.defaultValue:e.value;return r.state={value:o},r}return Object(a.a)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return s.createElement(x,Object(o.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(s.Component);t.a=E},Umn3:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},Uskr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.named=void 0;var r=n("2u/a"),o=n("jFDj"),i=n("tTA5");t.named=function(e){return function(t,n,a){var c=new o.Metadata(r.NAMED_TAG,e);"number"==typeof a?i.tagParameter(t,n,a,c):i.tagProperty(t,n,c)}}},UuAG:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("cxan"),o=n("ERkP"),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},a=o.createContext(null),c=function(e){var t=e.children,n=i(e,["children"]),c=o.useContext(a),u=o.useMemo((function(){return Object(r.a)(Object(r.a)({},c),n)}),[c,n.prefixCls,n.mode,n.selectable]);return o.createElement(a.Provider,{value:u},t)};t.b=a},UvhB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBindingDictionary=t.createMockRequest=t.plan=void 0;var r=n("BhhY"),o=n("KWcp"),i=n("BEDn"),a=n("2u/a"),c=n("Ias3"),u=n("o7q5"),s=n("AiJW"),l=n("jFDj"),f=n("4deW"),p=n("6Mra"),d=n("SeOj"),h=n("0H/D");function v(e){return e._bindingDictionary}function y(e,t,n,i,a){var c=m(n.container,a.serviceIdentifier),s=[];return c.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof a.serviceIdentifier&&e.getConstructorMetadata(a.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(a.serviceIdentifier).toSelf(),c=m(n.container,a.serviceIdentifier)),s=t?c:c.filter((function(e){var t=new d.Request(e.serviceIdentifier,n,i,e,a);return e.constraint(t)})),function(e,t,n,i){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var a=u.getServiceIdentifierAsString(e),c=o.NOT_REGISTERED;throw c+=u.listMetadataForTarget(a,n),c+=u.listRegisteredBindingsForServiceIdentifier(i,a,m),new Error(c);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;a=u.getServiceIdentifierAsString(e),c=o.AMBIGUOUS_MATCH+" "+a;throw c+=u.listRegisteredBindingsForServiceIdentifier(i,a,m),new Error(c)}}(a.serviceIdentifier,s,a,n.container),s}function m(e,t){var n=[],r=v(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=m(e.parent,t)),n}t.getBindingDictionary=v,t.plan=function(e,t,n,r,v,m,g,b){void 0===b&&(b=!1);var O=new s.Context(t),w=function(e,t,n,r,o,i){var c=e?a.MULTI_INJECT_TAG:a.INJECT_TAG,u=new l.Metadata(c,n),s=new h.Target(t,r,n,u);if(void 0!==o){var f=new l.Metadata(o,i);s.metadata.push(f)}return s}(n,r,v,"",m,g);try{return function e(t,n,r,a,c,u){var s,l;if(null===c){s=y(t,n,a,null,u),l=new d.Request(r,a,null,s,u);var h=new f.Plan(a,l);a.addPlan(h)}else s=y(t,n,a,c,u),l=c.addChildRequest(u.serviceIdentifier,s,u);s.forEach((function(n){var r=null;if(u.isArray())r=l.addChildRequest(n.serviceIdentifier,n,u);else{if(n.cache)return;r=l}if(n.type===i.BindingTypeEnum.Instance&&null!==n.implementationType){var c=p.getDependencies(t,n.implementationType);if(!a.container.options.skipBaseClassChecks){var s=p.getBaseClassDependencyCount(t,n.implementationType);if(c.length<s){var f=o.ARGUMENTS_LENGTH_MISMATCH(p.getFunctionName(n.implementationType));throw new Error(f)}}c.forEach((function(n){e(t,!1,n.serviceIdentifier,a,r,n)}))}}))}(e,b,v,O,null,w),O}catch(_){throw c.isStackOverflowExeption(_)&&O.plan&&u.circularDependencyToException(O.plan.rootRequest),_}},t.createMockRequest=function(e,t,n,r){var o=new h.Target(i.TargetTypeEnum.Variable,"",t,new l.Metadata(n,r)),a=new s.Context(e);return new d.Request(t,a,null,[],o)}},UxWs:function(e,t,n){"use strict";n.r(t);var r=n("xtsi"),o=n("ERkP"),i=n.n(o),a=n("7nmT"),c=n.n(a),u=n("tYqs"),s=n("1T57"),l=n("CT8p"),f=n.n(l),p=n("Wbzz"),d=n("aWzz"),h=n.n(d),v=n("emEt"),y=n("YLt+"),m=n("5yr3"),g={id:"gatsby-announcer",style:{position:"absolute",top:0,width:1,height:1,padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},"aria-live":"assertive","aria-atomic":"true"},b=n("50Kn"),O=n("O+tk");function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}function C(e,t){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var M=new Map,A=new Map;function L(e){var t=M.get(e);return t||(t=A.get(e.toLowerCase())),null!=t&&(window.___replace(t.toPath),!0)}y.forEach((function(e){e.ignoreCase?A.set(e.fromPath,e):M.set(e.fromPath,e)}));var R=function(e,t){L(e.pathname)||Object(r.apiRunner)("onPreRouteUpdate",{location:e,prevLocation:t})},N=function(e,t){L(e.pathname)||Object(r.apiRunner)("onRouteUpdate",{location:e,prevLocation:t})},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("number"!==T(e)){var n=Object(O.parsePath)(e),o=n.pathname,i=M.get(o);if(i||(i=A.get(o.toLowerCase())),i&&(e=i.toPath,o=Object(O.parsePath)(e).pathname),window.___swUpdated)window.location=o;else{var a=setTimeout((function(){m.a.emit("onDelayedLoadPageResources",{pathname:o}),Object(r.apiRunner)("onRouteUpdateDelayed",{location:window.location})}),1e3);v.default.loadPage(o).then((function(n){if(!n||n.status===v.PageResourceStatus.Error)return window.history.replaceState({},"",location.href),window.location=o,void clearTimeout(a);n&&n.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),window.location=o),Object(u.navigate)(e,t),clearTimeout(a)}))}}else b.c.navigate(e)};function D(e,t){var n=this,o=t.location,i=o.pathname,a=o.hash,c=Object(r.apiRunner)("shouldUpdateScroll",{prevRouterProps:e,pathname:i,routerProps:{location:o},getSavedScrollPosition:function(e){return[0,n._stateStorage.read(e,e.key)]}});if(c.length>0)return c[c.length-1];if(e&&e.location.pathname===i)return a?decodeURI(a.slice(1)):[0,0];return!0}var F=function(e){S(n,e);var t=j(n);function n(e){var r;return _(this,n),(r=t.call(this,e)).announcementRef=i.a.createRef(),r}return E(n,[{key:"componentDidUpdate",value:function(e,t){var n=this;requestAnimationFrame((function(){var e="new page at ".concat(n.props.location.pathname);document.title&&(e=document.title);var t=document.querySelectorAll("#gatsby-focus-wrapper h1");t&&t.length&&(e=t[0].textContent);var r="Navigated to ".concat(e);n.announcementRef.current&&(n.announcementRef.current.innerText!==r&&(n.announcementRef.current.innerText=r))}))}},{key:"render",value:function(){return i.a.createElement("div",w({},g,{ref:this.announcementRef}))}}]),n}(i.a.Component),z=function(e,t){var n,r;return e.href!==t.href||(null==e||null===(n=e.state)||void 0===n?void 0:n.key)!==(null==t||null===(r=t.state)||void 0===r?void 0:r.key)},B=function(e){S(n,e);var t=j(n);function n(e){var r;return _(this,n),r=t.call(this,e),R(e.location,null),r}return E(n,[{key:"componentDidMount",value:function(){N(this.props.location,null)}},{key:"shouldComponentUpdate",value:function(e){return!!z(e.location,this.props.location)&&(R(this.props.location,e.location),!0)}},{key:"componentDidUpdate",value:function(e){z(e.location,this.props.location)&&N(this.props.location,e.location)}},{key:"render",value:function(){return i.a.createElement(i.a.Fragment,null,this.props.children,i.a.createElement(F,{location:location}))}}]),n}(i.a.Component);B.propTypes={location:h.a.object.isRequired};var U=n("IOVJ"),V=n("NsGk"),H=n.n(V);function G(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){X(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z(e,t){return(Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$(e);if(t){var o=$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Q(this,n)}}function Q(e,t){if(t&&("object"===W(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}(i,e);var t,n,r,o=J(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=o.call(this);var n=e.location,r=e.pageResources;return t.state={location:K({},n),pageResources:r||v.default.loadPageSync(n.pathname)},t}return t=i,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.location;return t.location.href!==n.href?{pageResources:v.default.loadPageSync(n.pathname),location:K({},n)}:{location:K({},n)}}}],(n=[{key:"loadResources",value:function(e){var t=this;v.default.loadPage(e).then((function(n){n&&n.status!==v.PageResourceStatus.Error?t.setState({location:K({},window.location),pageResources:n}):(window.history.replaceState({},"",location.href),window.location=e)}))}},{key:"shouldComponentUpdate",value:function(e,t){return t.pageResources?this.state.pageResources!==t.pageResources||this.state.pageResources.component!==t.pageResources.component||this.state.pageResources.json!==t.pageResources.json||!(this.state.location.key===t.location.key||!t.pageResources.page||!t.pageResources.page.matchPath&&!t.pageResources.page.path)||function(e,t,n){return G(e.props,t)||G(e.state,n)}(this,e,t):(this.loadResources(e.location.pathname),!1)}},{key:"render",value:function(){return this.props.children(this.state)}}])&&q(t.prototype,n),r&&q(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(i.a.Component),te=n("cSJ8"),ne=n("JeVI");function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(){return(oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ce(e,t,n){return t&&ae(e.prototype,t),n&&ae(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ue(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&se(e,t)}function se(e,t){return(se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pe(e);if(t){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fe(this,n)}}function fe(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var de=new v.ProdLoader(H.a,ne);Object(v.setLoader)(de),de.setApiRunner(r.apiRunner),window.asyncRequires=H.a,window.___emitter=m.a,window.___loader=v.publicLoader,b.c.listen((function(e){e.location.action=e.action})),window.___push=function(e){return I(e,{replace:!1})},window.___replace=function(e){return I(e,{replace:!0})},window.___navigate=function(e,t){return I(e,t)},L(window.location.pathname),Object(r.apiRunnerAsync)("onClientEntry").then((function(){Object(r.apiRunner)("registerServiceWorker").length>0&&n("NSX3");var e=function(e){return i.a.createElement(u.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},i.a.createElement(U.a,e))},t=i.a.createContext({}),o=function(e){ue(r,e);var n=le(r);function r(){return ie(this,r),n.apply(this,arguments)}return ce(r,[{key:"render",value:function(){var e=this.props.children;return i.a.createElement(u.Location,null,(function(n){var r=n.location;return i.a.createElement(ee,{location:r},(function(n){var r=n.pageResources,o=n.location,a=Object(v.getStaticQueryResults)();return i.a.createElement(p.StaticQueryContext.Provider,{value:a},i.a.createElement(t.Provider,{value:{pageResources:r,location:o}},e))}))}))}}]),r}(i.a.Component),a=function(n){ue(o,n);var r=le(o);function o(){return ie(this,o),r.apply(this,arguments)}return ce(o,[{key:"render",value:function(){var n=this;return i.a.createElement(t.Consumer,null,(function(t){var r=t.pageResources,o=t.location;return i.a.createElement(B,{location:o},i.a.createElement(s.ScrollContext,{location:o,shouldUpdateScroll:D},i.a.createElement(u.Router,{basepath:"",location:o,id:"gatsby-focus-wrapper"},i.a.createElement(e,oe({path:"/404.html"===r.page.path?Object(te.a)(o.pathname,""):encodeURI(r.page.matchPath||r.page.path)},n.props,{location:o,pageResources:r},r.json)))))}))}}]),o}(i.a.Component),l=window,d=l.pagePath,h=l.location;d&&""+d!==h.pathname&&!(de.findMatchPath(Object(te.a)(h.pathname,""))||"/404.html"===d||d.match(/^\/404\/?$/)||d.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&Object(u.navigate)(""+d+h.search+h.hash,{replace:!0}),v.publicLoader.loadPage(h.pathname).then((function(e){if(!e||e.status===v.PageResourceStatus.Error)throw new Error("page resources for ".concat(h.pathname," not found. Not rendering React"));window.___webpackCompilationHash=e.page.webpackCompilationHash;var t=Object(r.apiRunner)("wrapRootElement",{element:i.a.createElement(a,null)},i.a.createElement(a,null),(function(e){return{element:e.result}})).pop(),n=function(){return i.a.createElement(o,null,t)},u=Object(r.apiRunner)("replaceHydrateFunction",void 0,c.a.hydrate)[0];f()((function(){u(i.a.createElement(n,null),"undefined"!==("undefined"==typeof window?"undefined":re(window))?document.getElementById("___gatsby"):void 0,(function(){Object(r.apiRunner)("onInitialClientRender")}))}))}))}))},V7SB:function(e,t,n){"use strict";n.d(t,"b",(function(){return Nr})),n.d(t,"a",(function(){return Wr}));var r,o=n("H8sf"),i=n.n(o),a=n("zEXi"),c=n("Gpi5"),u=n("n1rt"),s=n.n(u);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n){var r=n-t,o=((e-t)%r+r)%r+t;return o===t?n:o}function d(e,t,n){return Math.min(n,Math.max(t,e))}function h(e,t,n){return e*(1-n)+t*n}function v(e,t,n,r){var o=new s.a(e,t,n,r);return function(e){return o.solve(e)}}var y=v(.25,.1,.25,1);function m(){return!(a.jb||!a.c.matchMedia)&&(null==r&&(r=a.c.matchMedia("(prefers-reduced-motion: reduce)")),r.matches)}function g(e,t){var n,r={},o=l(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;i in e&&(r[i]=e[i])}}catch(a){o.e(a)}finally{o.f()}return r}var b=a.jb?Date.now.bind(Date):a.c.performance&&a.c.performance.now?a.c.performance.now.bind(a.c.performance):Date.now.bind(Date),O=a.c.requestAnimationFrame||a.c.mozRequestAnimationFrame||a.c.webkitRequestAnimationFrame||a.c.msRequestAnimationFrame,w=a.c.cancelAnimationFrame||a.c.mozCancelAnimationFrame||a.c.webkitCancelAnimationFrame||a.c.msCancelAnimationFrame;function _(e){var t=O(e);return{cancel:function(){return w(t)}}}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var S=function(){function e(t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),isNaN(t)||isNaN(n))throw new Error("Invalid LngLat object: (".concat(t,", ").concat(n,")"));if(this.lng=+t,this.lat=+n,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}var t,n,r;return t=e,r=[{key:"convert",value:function(t){if(t instanceof e)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new e(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"===x(t)&&null!==t){var n="lng"in t?t.lng:t.lon;return new e(Number(n),Number(t.lat))}throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}],(n=[{key:"wrap",value:function(){return new e(p(this.lng,-180,180),this.lat)}},{key:"toArray",value:function(){return[this.lng,this.lat]}},{key:"toString",value:function(){return"LngLat(".concat(this.lng,", ").concat(this.lat,")")}},{key:"distanceTo",value:function(e){var t=Math.PI/180,n=this.lat*t,r=e.lat*t,o=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((e.lng-this.lng)*t);return 6371008.8*Math.acos(Math.min(o,1))}}])&&E(t.prototype,n),r&&E(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var j=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(n?this.setSouthWest(t).setNorthEast(n):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))}var t,n,r;return t=e,r=[{key:"convert",value:function(t){return t instanceof e?t:new e(t)}}],(n=[{key:"setNorthEast",value:function(e){return this.ne=e instanceof S?new S(e.lng,e.lat):S.convert(e),this}},{key:"setSouthWest",value:function(e){return this.sw=e instanceof S?new S(e.lng,e.lat):S.convert(e),this}},{key:"extend",value:function(t){var n,r,o=this.sw,i=this.ne;if(t instanceof S)n=t,r=t;else{if(!(t instanceof e)){if(Array.isArray(t)){if(4===t.length||t.every(Array.isArray)){var a=t;return this.extend(e.convert(a))}var c=t;return this.extend(S.convert(c))}return this}if(n=t.sw,r=t.ne,!n||!r)return this}return o||i?(o.lng=Math.min(n.lng,o.lng),o.lat=Math.min(n.lat,o.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this.sw=new S(n.lng,n.lat),this.ne=new S(r.lng,r.lat)),this}},{key:"getCenter",value:function(){return new S((this.sw.lng+this.ne.lng)/2,(this.sw.lat+this.ne.lat)/2)}},{key:"getSouthWest",value:function(){return this.sw}},{key:"getNorthEast",value:function(){return this.ne}},{key:"getNorthWest",value:function(){return new S(this.getWest(),this.getNorth())}},{key:"getSouthEast",value:function(){return new S(this.getEast(),this.getSouth())}},{key:"getWest",value:function(){return this.sw.lng}},{key:"getSouth",value:function(){return this.sw.lat}},{key:"getEast",value:function(){return this.ne.lng}},{key:"getNorth",value:function(){return this.ne.lat}},{key:"toArray",value:function(){return[this.sw.toArray(),this.ne.toArray()]}},{key:"toString",value:function(){return"LngLatBounds(".concat(this.sw.toString(),", ").concat(this.ne.toString(),")")}},{key:"isEmpty",value:function(){return!(this.sw&&this.ne)}},{key:"contains",value:function(e){var t=S.convert(e),n=t.lng,r=t.lat,o=this.sw.lat<=r&&r<=this.ne.lat,i=this.sw.lng<=n&&n<=this.ne.lng;return this.sw.lng>this.ne.lng&&(i=this.sw.lng>=n&&n>=this.ne.lng),o&&i}}])&&C(t.prototype,n),r&&C(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var P=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=t,this.y=n}var t,n,r;return t=e,r=[{key:"convert",value:function(t){return t instanceof e?t:Array.isArray(t)?new e(t[0],t[1]):t}}],(n=[{key:"clone",value:function(){return new e(this.x,this.y)}},{key:"_add",value:function(e){return this.x+=e.x,this.y+=e.y,this}},{key:"add",value:function(e){return this.clone()._add(e)}},{key:"_sub",value:function(e){return this.x-=e.x,this.y-=e.y,this}},{key:"sub",value:function(e){return this.clone()._sub(e)}},{key:"_multByPoint",value:function(e){return this.x*=e.x,this.y*=e.y,this}},{key:"multByPoint",value:function(e){return this.clone()._multByPoint(e)}},{key:"_divByPoint",value:function(e){return this.x/=e.x,this.y/=e.y,this}},{key:"divByPoint",value:function(e){return this.clone()._divByPoint(e)}},{key:"_mult",value:function(e){return this.x*=e,this.y*=e,this}},{key:"mult",value:function(e){return this.clone()._mult(e)}},{key:"_div",value:function(e){return this.x/=e,this.y/=e,this}},{key:"div",value:function(e){return this.clone()._div(e)}},{key:"_rotate",value:function(e){var t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,o=n*this.x+t*this.y;return this.x=r,this.y=o,this}},{key:"rotate",value:function(e){return this.clone()._rotate(e)}},{key:"_rotateAround",value:function(e,t){var n=Math.cos(e),r=Math.sin(e),o=t.x+n*(this.x-t.x)-r*(this.y-t.y),i=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=o,this.y=i,this}},{key:"roateAround",value:function(e,t){return this.clone()._rotateAround(e,t)}},{key:"_matMult",value:function(e){var t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this}},{key:"matMult",value:function(e){return this.clone()._matMult(e)}},{key:"_unit",value:function(){return this.div(this.mag()),this}},{key:"unit",value:function(){return this.clone()._unit()}},{key:"_perp",value:function(){var e=this.y;return this.y=this.x,this.x=-e,this}},{key:"perp",value:function(){return this.clone()._perp()}},{key:"_round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"round",value:function(){return this.clone()._round()}},{key:"mag",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"equals",value:function(e){return this.x===e.x&&this.y===e.y}},{key:"dist",value:function(e){return Math.sqrt(this.distSqr(e))}},{key:"distSqr",value:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n}},{key:"angle",value:function(){return Math.atan2(this.y,this.x)}},{key:"angleTo",value:function(e){return Math.atan2(this.y-e.y,this.x-e.x)}},{key:"angleWith",value:function(e){return this.angleWithSep(e.x,e.y)}},{key:"angleWithSep",value:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)}}])&&k(t.prototype,n),r&&k(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),T=n("K/oH");function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var L=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(M(this,e),isNaN(t)||t<0||isNaN(n)||n<0||isNaN(r)||r<0||isNaN(o)||o<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=n,this.left=r,this.right=o}var t,n,r;return t=e,(n=[{key:"interpolate",value:function(e,t,n){return null!=t.top&&null!=e.top&&(this.top=h(e.top,t.top,n)),null!=t.bottom&&null!=e.bottom&&(this.bottom=h(e.bottom,t.bottom,n)),null!=t.left&&null!=e.left&&(this.left=h(e.left,t.left,n)),null!=t.right&&null!=e.right&&(this.right=h(e.right,t.right,n)),this}},{key:"getCenter",value:function(e,t){var n=d((this.left+e-this.right)/2,0,e),r=d((this.top+t-this.bottom)/2,0,t);return new P(n,r)}},{key:"equals",value:function(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}},{key:"clone",value:function(){return new e(this.top,this.bottom,this.left,this.right)}},{key:"toJSON",value:function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}])&&A(t.prototype,n),r&&A(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var I=2*Math.PI*6371008.8;function D(e){return I*Math.cos(e*Math.PI/180)}function F(e){return(180+e)/360}function z(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function B(e,t){return e/D(t)}function U(e){var t=180-360*e;return 360/Math.PI*Math.atan(Math.exp(t*Math.PI/180))-90}var V=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;R(this,e),this.x=+t,this.y=+n,this.z=+r}var t,n,r;return t=e,r=[{key:"fromLngLat",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=S.convert(t);return new e(F(r.lng),z(r.lat),B(n,r.lat))}}],(n=[{key:"toLngLat",value:function(){return new S(360*this.x-180,U(this.y))}},{key:"toAltitude",value:function(){return e=this.z,t=this.y,e*D(U(t));var e,t}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/I*(e=U(this.y),1/Math.cos(e*Math.PI/180));var e}}])&&N(t.prototype,n),r&&N(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function H(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Y=function(){function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===i||i,this._minZoom=t||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==o?60:o,this.setMaxBounds(),this.width=0,this.height=0,this._center=new S(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this.unmodified=!0,this.edgeInsets=new L,this.posMatrixCache={},this.alignedPosMatrixCache={}}var t,n,r;return t=e,(n=[{key:"minZoom",get:function(){return this._minZoom},set:function(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}},{key:"maxZoom",get:function(){return this._maxZoom},set:function(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}},{key:"minPitch",get:function(){return this._minPitch},set:function(e){this._minPitch!==e&&(this._minPitch=e,this._pitch=Math.max(this._pitch,e))}},{key:"maxPitch",get:function(){return this._maxPitch},set:function(e){this._maxPitch!==e&&(this._maxPitch=e,this._pitch=Math.min(this._pitch,e))}},{key:"renderWorldCopies",get:function(){return this._renderWorldCopies},set:function(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}},{key:"worldSize",get:function(){return this.tileSize*this.scale}},{key:"centerOffset",get:function(){return this.centerPoint._sub(this.size._div(2))}},{key:"size",get:function(){return new P(this.width,this.height)}},{key:"bearing",get:function(){return-this.angle/Math.PI*180},set:function(e){var t=-p(e,-180,180)*Math.PI/180;this.angle!==t&&(this.unmodified=!1,this.angle=t,this.calcMatrices(),this.rotationMatrix=T.a.create(),T.a.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))}},{key:"pitch",get:function(){return this._pitch/Math.PI*180},set:function(e){var t=d(e,this._minPitch,this._maxPitch)/180*Math.PI;this._pitch!==t&&(this.unmodified=!1,this._pitch=t,this.calcMatrices())}},{key:"fov",get:function(){return this._fov/Math.PI*180},set:function(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this.unmodified=!1,this._fov=e/180*Math.PI,this.calcMatrices())}},{key:"zoom",get:function(){return this._zoom},set:function(e){var t=Math.min(Math.max(e,this._minZoom),this._maxZoom);this._zoom!==t&&(this.unmodified=!1,this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom,this.constrain(),this.calcMatrices())}},{key:"center",get:function(){return this._center},set:function(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this.unmodified=!1,this._center=e,this.constrain(),this.calcMatrices())}},{key:"padding",get:function(){return this.edgeInsets.toJSON()},set:function(e){this.edgeInsets.equals(e)||(this.unmodified=!1,this.edgeInsets.interpolate(this.edgeInsets,e,1),this.calcMatrices())}},{key:"centerPoint",get:function(){return this.edgeInsets.getCenter(this.width,this.height)}},{key:"point",get:function(){return this.project(this.center)}},{key:"clone",value:function(){var t=new e(this._minZoom,this._maxZoom,this._minPitch,this._maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t.center=this._center,t.zoom=this.zoom,t.angle=this.angle,t.fov=this._fov,t.pitch=this._pitch,t.unmodified=this.unmodified,t.edgeInsets=this.edgeInsets.clone(),t.calcMatrices(),t}},{key:"isPaddingEqual",value:function(e){return this.edgeInsets.equals(e)}},{key:"interpolatePadding",value:function(e,t,n){this.unmodified=!1,this.edgeInsets.interpolate(e,t,n),this.constrain(),this.calcMatrices()}},{key:"coveringZoomLevel",value:function(e){var t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)}},{key:"resize",value:function(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this.constrain(),this.calcMatrices()}},{key:"zoomScale",value:function(e){return Math.pow(2,e)}},{key:"scaleZoom",value:function(e){return Math.log(e)/Math.LN2}},{key:"project",value:function(e){var t=d(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new P(F(e.lng)*this.worldSize,z(t)*this.worldSize)}},{key:"unproject",value:function(e){return new V(e.x/this.worldSize,e.y/this.worldSize).toLngLat()}},{key:"setLocationAtPoint",value:function(e,t){var n=this.pointCoordinate(t),r=this.pointCoordinate(this.centerPoint),o=this.locationCoordinate(e),i=new V(o.x-(n.x-r.x),o.y-(n.y-r.y));this.center=this.coordinateLocation(i),this._renderWorldCopies&&(this.center=this.center.wrap())}},{key:"pointCoordinate",value:function(e){var t=new Float64Array([e.x,e.y,0,1]),n=new Float64Array([e.x,e.y,1,1]);T.e.transformMat4(t,t,this.pixelMatrixInverse),T.e.transformMat4(n,n,this.pixelMatrixInverse);var r=t[3],o=n[3],i=t[0]/r,a=n[0]/o,c=t[1]/r,u=n[1]/o,s=t[2]/r,l=n[2]/o,f=s===l?0:(0-s)/(l-s);return new V(h(i,a,f)/this.worldSize,h(c,u,f)/this.worldSize)}},{key:"getBounds",value:function(){return(new j).extend(this.pointLocation(new P(0,0))).extend(this.pointLocation(new P(this.width,0))).extend(this.pointLocation(new P(this.width,this.height))).extend(this.pointLocation(new P(0,this.height)))}},{key:"getMaxBounds",value:function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new j([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}},{key:"setMaxBounds",value:function(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this.constrain()):(this.lngRange=void 0,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])}},{key:"customLayerMatrix",value:function(){return this.mercatorMatrix.slice()}},{key:"maxPitchScaleFactor",value:function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new P(0,0)),t=new Float32Array([e.x*this.worldSize,e.y*this.worldSize,0,1]);return T.e.transformMat4(t,t,this.pixelMatrix)[3]/this.cameraToCenterDistance}},{key:"getCameraPoint",value:function(){var e=this._pitch,t=Math.tan(e)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new P(0,t))}},{key:"getCameraQueryGeometry",value:function(e){var t=this.getCameraPoint();if(1===e.length)return[e[0],t];var n,r=t.x,o=t.y,i=t.x,a=t.y,c=H(e);try{for(c.s();!(n=c.n()).done;){var u=n.value;r=Math.min(r,u.x),o=Math.min(o,u.y),i=Math.max(i,u.x),a=Math.max(a,u.y)}}catch(s){c.e(s)}finally{c.f()}return[new P(r,o),new P(i,o),new P(i,a),new P(r,a),new P(r,o)]}},{key:"coordinatePoint",value:function(e){var t=T.e.fromValues(e.x*this.worldSize,e.y*this.worldSize,0,1);return T.e.transformMat4(t,t,this.pixelMatrix),new P(t[0]/t[3],t[1]/t[3])}},{key:"locationPoint",value:function(e){return this.coordinatePoint(this.locationCoordinate(e))}},{key:"pointLocation",value:function(e){return this.coordinateLocation(this.pointCoordinate(e))}},{key:"locationCoordinate",value:function(e){return V.fromLngLat(e)}},{key:"coordinateLocation",value:function(e){return e.toLngLat()}},{key:"getProjectionMatrix",value:function(){return this.projMatrix}},{key:"constrain",value:function(){if(this.center&&this.width&&this.height&&!this.constraining){this.constraining=!0;var e,t,n,r,o=-90,i=90,c=-180,u=180,s=this.size,l=this.unmodified;if(this.latRange){var f=this.latRange;o=z(f[1])*this.worldSize,e=(i=z(f[0])*this.worldSize)-o<s.y?s.y/(i-o):0}if(this.lngRange){var p=this.lngRange;c=F(p[0])*this.worldSize,t=(u=F(p[1])*this.worldSize)-c<s.x?s.x/(u-c):0}var d=this.point,h=Math.max(t||0,e||0);if(h)return this.center=this.unproject(new P(t?(u+c)/2:d.x,e?(i+o)/2:d.y)),a.jb?this.zoom=Math.max(this.zoom,Math.max(-1,this.minZoom)):this.zoom+=this.scaleZoom(h),this.unmodified=l,void(this.constraining=!1);if(this.latRange){var v=d.y,y=s.y/2;v-y<o&&(r=o+y),v+y>i&&(r=i-y)}if(this.lngRange){var m=d.x,g=s.x/2;m-g<c&&(n=c+g),m+g>u&&(n=u-g)}void 0===n&&void 0===r||(this.center=this.unproject(new P(void 0!==n?n:d.x,void 0!==r?r:d.y))),this.unmodified=l,this.constraining=!1}}},{key:"calcMatrices",value:function(){if(this.height){var e=this._fov/2,t=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(e)*this.height;var n=Math.PI/2+this._pitch,r=this._fov*(.5+t.y/this.height),o=Math.sin(r)*this.cameraToCenterDistance/Math.sin(d(Math.PI-n-r,.01,Math.PI-.01)),i=this.point,a=i.x,c=i.y,u=1.01*(Math.cos(Math.PI/2-this._pitch)*o+this.cameraToCenterDistance),s=this.height/50,l=new Float64Array(16);T.b.perspective(l,this._fov,this.width/this.height,s,u),l[8]=2*-t.x/this.width,l[9]=2*t.y/this.height,T.b.scale(l,l,[1,-1,1]),T.b.translate(l,l,[0,0,-this.cameraToCenterDistance]),T.b.rotateX(l,l,this._pitch),T.b.rotateZ(l,l,this.angle),T.b.translate(l,l,[-a,-c,0]),this.mercatorMatrix=T.b.scale([],l,[this.worldSize,this.worldSize,this.worldSize]),T.b.scale(l,l,[1,1,B(1,this.center.lat)*this.worldSize,1]),this.projMatrix=l,this.invProjMatrix=T.b.invert([],this.projMatrix);var f=this.width%2/2,p=this.height%2/2,h=Math.cos(this.angle),v=Math.sin(this.angle),y=a-Math.round(a)+h*f+v*p,m=c-Math.round(c)+h*p+v*f,g=new Float64Array(l);if(T.b.translate(g,g,[y>.5?y-1:y,m>.5?m-1:m,0]),this.alignedProjMatrix=g,l=T.b.create(),T.b.scale(l,l,[this.width/2,-this.height/2,1]),T.b.translate(l,l,[1,-1,0]),this.labelPlaneMatrix=l,l=T.b.create(),T.b.scale(l,l,[1,-1,1]),T.b.translate(l,l,[-1,-1,0]),T.b.scale(l,l,[2/this.width,2/this.height,1]),this.glCoordMatrix=l,this.pixelMatrix=T.b.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(l=T.b.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=l,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}])&&W(t.prototype,n),r&&W(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(e,t,n){return t&&K(e.prototype,t),n&&K(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Z=X((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q(this,e),i()(this,n),this.type=t}));function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $(e,t){return($=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=re(e);if(t){var o=re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return te(this,n)}}function te(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ne(e)}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$(e,t)}(a,e);var t,n,r,o=ee(a);function a(e){var t,n,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=o.call(this),n=ne(t),i=function(){var e=Math.min((b()-t.easeStart)/t.easeOptions.duration,1);t.onEaseFrame(t.easeOptions.easing(e)),e<1?t.easeFrameId=t.requestRenderFrame(t.renderFrameCallback):t.stop()},(r="renderFrameCallback")in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,t.options=e;var c=e.minZoom,u=e.maxZoom,s=e.minPitch,l=e.maxPitch,f=e.renderWorldCopies;return t.moving=!1,t.zooming=!1,t.bearingSnap=e.bearingSnap,t.pitchEnabled=e.pitchEnabled,t.rotateEnabled=e.rotateEnabled,t.transform=new Y(c,u,s,l,f),t}return t=a,(n=[{key:"requestRenderFrame",value:function(e){return 0}},{key:"cancelRenderFrame",value:function(e){}},{key:"getCenter",value:function(){var e=this.transform.center,t=e.lng,n=e.lat;return new S(t,n)}},{key:"getZoom",value:function(){return this.transform.zoom}},{key:"getPitch",value:function(){return this.transform.pitch}},{key:"setCenter",value:function(e,t){return this.jumpTo({center:e},t)}},{key:"setPitch",value:function(e,t){return this.jumpTo({pitch:e},t),this}},{key:"getBearing",value:function(){return this.transform.bearing}},{key:"panTo",value:function(e,t,n){return this.easeTo(i()({center:e},t),n)}},{key:"zoomOut",value:function(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}},{key:"setBearing",value:function(e,t){return this.jumpTo({bearing:e},t),this}},{key:"setZoom",value:function(e,t){return this.jumpTo({zoom:e},t),this}},{key:"zoomIn",value:function(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}},{key:"zoomTo",value:function(e,t,n){return this.easeTo(i()({zoom:e},t),n)}},{key:"getPadding",value:function(){return this.transform.padding}},{key:"setPadding",value:function(e,t){return this.jumpTo({padding:e},t),this}},{key:"rotateTo",value:function(e,t,n){return this.easeTo(i()({bearing:e},t),n)}},{key:"resetNorth",value:function(e,t){return this.rotateTo(0,i()({duration:1e3},e),t),this}},{key:"resetNorthPitch",value:function(e,t){return this.easeTo(i()({bearing:0,pitch:0,duration:1e3},e),t),this}},{key:"fitBounds",value:function(e,t,n){return this.fitInternal(this.cameraForBounds(e,t),t,n)}},{key:"cameraForBounds",value:function(e,t){return e=j.convert(e),this.cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),0,t)}},{key:"snapToNorth",value:function(e,t){return Math.abs(this.getBearing())<this.bearingSnap?this.resetNorth(e,t):this}},{key:"jumpTo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stop();var n=this.transform,r=!1,o=!1,i=!1;return e.zoom&&n.zoom!==+e.zoom&&(r=!0,n.zoom=+e.zoom),void 0!==e.center&&(n.center=S.convert(e.center)),e.bearing&&n.bearing!==+e.bearing&&(o=!0,n.bearing=+e.bearing),e.pitch&&n.pitch!==+e.pitch&&(i=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),this.emit("movestart",new Z("movestart",t)),this.emit("move",new Z("move",t)),r&&(this.emit("zoomstart",new Z("zoomstart",t)),this.emit("zoom",new Z("zoom",t)),this.emit("zoomend",new Z("zoomend",t))),o&&(this.emit("rotatestart",new Z("rotatestart",t)),this.emit("rotate",new Z("rotate",t)),this.emit("rotateend",new Z("rotateend",t))),i&&(this.emit("pitchstart",new Z("pitchstart",t)),this.emit("pitch",new Z("pitch",t)),this.emit("pitchend",new Z("pitchend",t))),this.emit("moveend",new Z("moveend",t))}},{key:"easeTo",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;(!1===(t=i()({offset:[0,0],duration:500,easing:y},t)).animate||!t.essential&&m())&&(t.duration=0);var r=this.transform,o=this.getZoom(),a=this.getBearing(),c=this.getPitch(),u=this.getPadding(),s=t.zoom?+t.zoom:o,l=t.bearing?this.normalizeBearing(t.bearing,a):a,f=t.pitch?+t.pitch:c,p=t.padding?t.padding:r.padding,d=P.convert(t.offset),v=r.centerPoint.add(d),g=r.pointLocation(v),b=S.convert(t.center||g);this.normalizeCenter(b);var O,w,_=r.project(g),x=r.project(b).sub(_),E=r.zoomScale(s-o);t.around&&(O=S.convert(t.around),w=r.locationPoint(O));var C={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||s!==o,this.rotating=this.rotating||a!==l,this.pitching=this.pitching||f!==c,this.padding=!r.isPaddingEqual(p),this.easeId=t.easeId,this.prepareEase(n,t.noMoveStart,C),clearTimeout(this.easeEndTimeoutID),this.ease((function(t){if(e.zooming&&(r.zoom=h(o,s,t)),e.rotating&&e.rotateEnabled&&(r.bearing=h(a,l,t)),e.pitching&&e.pitchEnabled&&(r.pitch=h(c,f,t)),e.padding&&(r.interpolatePadding(u,p,t),v=r.centerPoint.add(d)),O)r.setLocationAtPoint(O,w);else{var i=r.zoomScale(r.zoom-o),y=s>o?Math.min(2,E):Math.max(.5,E),m=Math.pow(y,1-t),g=r.unproject(_.add(x.mult(t*m)).mult(i));r.setLocationAtPoint(r.renderWorldCopies?g.wrap():g,v)}e.fireMoveEvents(n)}),(function(t){e.afterEase(n,t)}),t),this}},{key:"flyTo",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(!t.essential&&m()){var r=g(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(r,n)}this.stop(),t=i()({offset:[0,0],speed:1.2,curve:1.42,easing:y},t);var o=this.transform,a=this.getZoom(),c=this.getBearing(),u=this.getPitch(),s=this.getPadding(),l=t.zoom?d(+t.zoom,o.minZoom,o.maxZoom):a,f=t.bearing?this.normalizeBearing(t.bearing,c):c,p=t.pitch?+t.pitch:u,v="padding"in t?t.padding:o.padding,b=o.zoomScale(l-a),O=P.convert(t.offset),w=o.centerPoint.add(O),_=o.pointLocation(w),x=S.convert(t.center||_);this.normalizeCenter(x);var E=o.project(_),C=o.project(x).sub(E),j=t.curve,k=Math.max(o.width,o.height),T=k/b,M=C.mag();if("minZoom"in t){var A=d(Math.min(t.minZoom,a,l),o.minZoom,o.maxZoom),L=k/o.zoomScale(A-a);j=Math.sqrt(L/M*2)}var R=j*j;function N(e){var t=(T*T-k*k+(e?-1:1)*R*R*M*M)/(2*(e?T:k)*R*M);return Math.log(Math.sqrt(t*t+1)-t)}function I(e){return(Math.exp(e)-Math.exp(-e))/2}function D(e){return(Math.exp(e)+Math.exp(-e))/2}function F(e){return I(e)/D(e)}var z=N(0),B=function(e){return D(z)/D(z+j*e)},U=function(e){return k*((D(z)*F(z+j*e)-I(z))/R)/M},V=(N(1)-z)/j;if(Math.abs(M)<1e-6||!isFinite(V)){if(Math.abs(k-T)<1e-6)return this.easeTo(t,n);var H=T<k?-1:1;V=Math.abs(Math.log(T/k))/j,U=function(){return 0},B=function(e){return Math.exp(H*j*e)}}if("duration"in t)t.duration=+t.duration;else{var G="screenSpeed"in t?+t.screenSpeed/j:+t.speed;t.duration=1e3*V/G}return t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this.zooming=!0,this.rotating=c!==f,this.pitching=p!==u,this.padding=!o.isPaddingEqual(v),this.prepareEase(n,!1),this.ease((function(t){var r=t*V,i=1/B(r);o.zoom=1===t?l:a+o.scaleZoom(i),e.rotating&&(o.bearing=h(c,f,t)),e.pitching&&(o.pitch=h(u,p,t)),e.padding&&(o.interpolatePadding(s,v,t),w=o.centerPoint.add(O));var d=1===t?x:o.unproject(E.add(C.mult(U(r))).mult(i));o.setLocationAtPoint(o.renderWorldCopies?d.wrap():d,w),e.fireMoveEvents(n)}),(function(){return e.afterEase(n)}),t),this}},{key:"fitScreenCoordinates",value:function(e,t,n,r,o){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation(P.convert(e)),this.transform.pointLocation(P.convert(t)),n,r),r,o)}},{key:"stop",value:function(e,t){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var n=this.onEaseEnd;delete this.onEaseEnd,n.call(this,t)}return this}},{key:"normalizeBearing",value:function(e,t){e=p(e,-180,180);var n=Math.abs(e-t);return Math.abs(e-360-t)<n&&(e-=360),Math.abs(e+360-t)<n&&(e+=360),e}},{key:"normalizeCenter",value:function(e){var t=this.transform;if(t.renderWorldCopies&&!t.lngRange){var n=e.lng-t.center.lng;e.lng+=n>180?-360:n<-180?360:0}}},{key:"fireMoveEvents",value:function(e){this.emit("move",new Z("move",e)),this.zooming&&this.emit("zoom",new Z("zoom",e)),this.rotating&&this.emit("rotate",new Z("rotate",e)),this.pitching&&this.emit("rotate",new Z("pitch",e))}},{key:"prepareEase",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.moving=!0,t||n.moving||this.emit("movestart",new Z("movestart",e)),this.zooming&&!n.zooming&&this.emit("zoomstart",new Z("zoomstart",e)),this.rotating&&!n.rotating&&this.emit("rotatestart",new Z("rotatestart",e)),this.pitching&&!n.pitching&&this.emit("pitchstart",new Z("pitchstart",e))}},{key:"afterEase",value:function(e,t){if(!this.easeId||!t||this.easeId!==t){delete this.easeId;var n=this.zooming,r=this.rotating,o=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,n&&this.emit("zoomend",new Z("zoomend",e)),r&&this.emit("rotateend",new Z("rotateend",e)),o&&this.emit("pitchend",new Z("pitchend",e)),this.emit("moveend",new Z("moveend",e))}}},{key:"ease",value:function(e,t,n){!1===n.animate||0===n.duration?(e(1),t()):(this.easeStart=b(),this.easeOptions=n,this.onEaseFrame=e,this.onEaseEnd=t,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(e,t,n,r){var o={top:0,bottom:0,right:0,left:0};if("number"==typeof(r=i()({padding:o,offset:[0,0],maxZoom:this.transform.maxZoom},r)).padding){var a=r.padding;r.padding={top:a,bottom:a,right:a,left:a}}r.padding=i()(o,r.padding);var c=this.transform,u=c.padding,s=c.project(S.convert(e)),l=c.project(S.convert(t)),f=s.rotate(-n*Math.PI/180),p=l.rotate(-n*Math.PI/180),d=new P(Math.max(f.x,p.x),Math.max(f.y,p.y)),h=new P(Math.min(f.x,p.x),Math.min(f.y,p.y)),v=d.sub(h),y=(c.width-(u.left+u.right+r.padding.left+r.padding.right))/v.x,m=(c.height-(u.top+u.bottom+r.padding.top+r.padding.bottom))/v.y;if(!(m<0||y<0)){var g=Math.min(c.scaleZoom(c.scale*Math.min(y,m)),r.maxZoom),b=P.convert(r.offset),O=(r.padding.left-r.padding.right)/2,w=(r.padding.top-r.padding.bottom)/2,_=new P(b.x+O,b.y+w).mult(c.scale/c.zoomScale(g));return{center:c.unproject(s.add(l).div(2).sub(_)),zoom:g,bearing:n}}}},{key:"fitInternal",value:function(e,t,n){return e?(delete(t=i()(e,t)).padding,t.linear?this.easeTo(t,n):this.flyTo(t,n)):this}}])&&Q(t.prototype,n),r&&Q(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(c.EventEmitter);n("itHI");function ie(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ae(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ce={},ue=ce;ce.create=function(e,t,n){var r=a.c.document.createElement(e);return void 0!==t&&(r.className=t),n&&n.appendChild(r),r},ce.createNS=function(e,t){return a.c.document.createElementNS(e,t)};var se=a.c.document&&a.c.document.documentElement.style;function le(e){if(!se)return e[0];var t,n=ie(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r in se)return r}}catch(o){n.e(o)}finally{n.f()}return e[0]}var fe,pe=le(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);ce.disableDrag=function(){se&&pe&&(fe=se[pe],se[pe]="none")},ce.enableDrag=function(){se&&pe&&(se[pe]=fe)};var de=le(["transform","WebkitTransform"]);ce.setTransform=function(e,t){e.style[de]=t};var he=!1;try{var ve=Object.defineProperty({},"passive",{get:function(){he=!0}});a.c.addEventListener("test",ve,ve),a.c.removeEventListener("test",ve,ve)}catch(Yr){he=!1}ce.addEventListener=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"passive"in r&&he?e.addEventListener(t,n,r):e.addEventListener(t,n,r.capture)},ce.removeEventListener=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"passive"in r&&he?e.removeEventListener(t,n,r):e.removeEventListener(t,n,r.capture)};var ye=function e(t){t.preventDefault(),t.stopPropagation(),a.c.removeEventListener("click",e,!0)};function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oe(e,t){return(Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xe(e);if(t){var o=xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}function _e(e,t){if(t&&("object"===me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ce.suppressClick=function(){a.jb||(a.c.addEventListener("click",ye,!0),setTimeout((function(){a.c.removeEventListener("click",ye,!0)}),0))},ce.mousePos=function(e,t){if(a.jb)return new P(t.clientX-e.left-0,t.clientY-e.top-0);var n=e.getBoundingClientRect();return new P(t.clientX-n.left-e.clientLeft,t.clientY-n.top-e.clientTop)},ce.touchPos=function(e,t){if(a.jb){var n,r=[],o=ie(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;r.push(new P(i.clientX-e.left,i.clientY-e.top))}}catch(Yr){o.e(Yr)}finally{o.f()}return r}var c,u=e.getBoundingClientRect(),s=[],l=ie(t);try{for(l.s();!(c=l.n()).done;){var f=c.value;s.push(new P(f.clientX-u.left-e.clientLeft,f.clientY-u.top-e.clientTop))}}catch(Yr){l.e(Yr)}finally{l.f()}return s},ce.mouseButton=function(e){return a.jb&&void 0!==a.c.InstallTrigger&&2===e.button&&e.ctrlKey&&a.c.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:e.button},ce.remove=function(e){e.parentNode&&e.parentNode.removeChild(e)};var Ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oe(e,t)}(a,e);var t,n,r,o=we(a);function a(e,t,n){var r,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};ge(this,a);var u=ue.mousePos(t.getCanvasContainer(),n),s=t.unproject(u);return(r=o.call(this,e,i()({point:u,lngLat:s,originalEvent:n},c))).defaultPrevented=!1,r.target=t,r}return t=a,(n=[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}])&&be(t.prototype,n),r&&be(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Z);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function je(e,t){return(je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Te(e);if(t){var o=Te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pe(this,n)}}function Pe(e,t){if(t&&("object"===Se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Me=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&je(e,t)}(i,e);var t,n,r,o=ke(i);function i(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var a="touchend"===e?n.changedTouches:n.touches,c=ue.touchPos(t.getCanvasContainer(),a),u=c.map((function(e){return t.unproject(e)})),s=c.reduce((function(e,t,n,r){return e.add(t.div(r.length))}),new P(0,0)),l=t.unproject(s);return(r=o.call(this,e,{points:c,point:s,lngLats:u,lngLat:l,originalEvent:n})).defaultPrevented=!1,r}return t=i,(n=[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}])&&Ce(t.prototype,n),r&&Ce(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(Z);function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Re(e,t){return(Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=De(e);if(t){var o=De(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ie(this,n)}}function Ie(e,t){if(t&&("object"===Ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Re(e,t)}(i,e);var t,n,r,o=Ne(i);function i(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(r=o.call(this,e,{originalEvent:n})).defaultPrevented=!1,r}return t=i,(n=[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}])&&Le(t.prototype,n),r&&Le(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(Z);function ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Be=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=t}var t,n,r;return t=e,(n=[{key:"reset",value:function(){this.delayContextMenu=!1,delete this.contextMenuEvent}},{key:"mousemove",value:function(e){this.map.emit(e.type,new Ee(e.type,this.map,e))}},{key:"mousedown",value:function(){this.delayContextMenu=!0}},{key:"mouseup",value:function(){this.delayContextMenu=!1,this.contextMenuEvent&&(this.map.emit("contextmenu",new Ee("contextmenu",this.map,this.contextMenuEvent)),delete this.contextMenuEvent)}},{key:"contextmenu",value:function(e){this.delayContextMenu?this.contextMenuEvent=e:this.map.emit(e.type,new Ee(e.type,this.map,e)),this.map.listeners("contextmenu")&&e.preventDefault()}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!0}},{key:"disable",value:function(){return!1}}])&&ze(t.prototype,n),r&&ze(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ve=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=t,this.el=t.getCanvasContainer(),this.container=t.getContainer(),this.clickTolerance=n.clickTolerance||1}var t,n,r;return t=e,(n=[{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active}},{key:"enable",value:function(){this.isEnabled()||(this.enabled=!0)}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"mousedown",value:function(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(ue.disableDrag(),this.startPos=this.lastPos=t,this.active=!0)}},{key:"mousemoveWindow",value:function(e,t){if(this.active){var n=t;if(!(this.lastPos.equals(n)||!this.box&&n.dist(this.startPos)<this.clickTolerance)){var r=this.startPos;this.lastPos=n,this.box||(this.box=ue.create("div","l7-boxzoom",this.container),this.container.classList.add("l7-crosshair"),this.fireEvent("boxzoomstart",e));var o=Math.min(r.x,n.x),i=Math.max(r.x,n.x),a=Math.min(r.y,n.y),c=Math.max(r.y,n.y);ue.setTransform(this.box,"translate(".concat(o,"px,").concat(a,"px)")),this.box&&(this.box.style.width="".concat(i-o,"px"),this.box.style.height="".concat(c-a,"px"))}}}},{key:"mouseupWindow",value:function(e,t){var n=this;if(this.active&&0===e.button){var r=this.startPos,o=t;if(this.reset(),ue.suppressClick(),r.x!==o.x||r.y!==o.y)return this.map.emit("boxzoomend",new Z("boxzoomend",{originalEvent:e})),{cameraAnimation:function(e){return e.fitScreenCoordinates(r,o,n.map.getBearing(),{linear:!0})}};this.fireEvent("boxzoomcancel",e)}}},{key:"keydown",value:function(e){this.active&&27===e.keyCode&&(this.reset(),this.fireEvent("boxzoomcancel",e))}},{key:"reset",value:function(){this.active=!1,this.container.classList.remove("l7-crosshair"),this.box&&(ue.remove(this.box),this.box=null),ue.enableDrag(),delete this.startPos,delete this.lastPos}},{key:"fireEvent",value:function(e,t){return this.map.emit(e,new Z(e,{originalEvent:t}))}}])&&Ue(t.prototype,n),r&&Ue(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function He(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ge=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.reset()}var t,n,r;return t=e,(n=[{key:"reset",value:function(){this.active=!1}},{key:"dblclick",value:function(e,t){return e.preventDefault(),{cameraAnimation:function(n){n.easeTo({duration:300,zoom:n.getZoom()+(e.shiftKey?-1:1),around:n.unproject(t)},{originalEvent:e})}}}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}])&&He(t.prototype,n),r&&He(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xe(e,t){return(Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qe(e);if(t){var o=Qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ze(this,n)}}function Ze(e,t){if(t&&("object"===We(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Je(e)}function Je(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qe(e){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var et=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xe(e,t)}(i,e);var t,n,r,o=qe(i);function i(){var e;Ke(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $e(Je(e=o.call.apply(o,[this].concat(n))),"type","renderFrame"),e}return t=i,n&&Ye(t.prototype,n),r&&Ye(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(Z);function tt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ot={linearity:.3,easing:v(0,0,.3,1)},it=i()({deceleration:2500,maxSpeed:1400},ot),at=i()({deceleration:20,maxSpeed:1400},ot),ct=i()({deceleration:1e3,maxSpeed:360},ot),ut=i()({deceleration:1e3,maxSpeed:90},ot),st=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=t,this.clear()}var t,n,r;return t=e,(n=[{key:"clear",value:function(){this.inertiaBuffer=[]}},{key:"record",value:function(e){this.drainInertiaBuffer(),this.inertiaBuffer.push({time:b(),settings:e})}},{key:"drainInertiaBuffer",value:function(){for(var e=this.inertiaBuffer,t=b();e.length>0&&t-e[0].time>160;)e.shift()}},{key:"onMoveEnd",value:function(e){if(this.drainInertiaBuffer(),!(this.inertiaBuffer.length<2)){var t,n={zoom:0,bearing:0,pitch:0,pan:new P(0,0),pinchAround:void 0,around:void 0},r=tt(this.inertiaBuffer);try{for(r.s();!(t=r.n()).done;){var o=t.value.settings;n.zoom+=o.zoomDelta||0,n.bearing+=o.bearingDelta||0,n.pitch+=o.pitchDelta||0,o.panDelta&&n.pan._add(o.panDelta),o.around&&(n.around=o.around),o.pinchAround&&(n.pinchAround=o.pinchAround)}}catch(Yr){r.e(Yr)}finally{r.f()}var a=this.inertiaBuffer[this.inertiaBuffer.length-1].time-this.inertiaBuffer[0].time,c={};if(n.pan.mag()){var u=ft(n.pan.mag(),a,i()({},it,e||{}));c.offset=n.pan.mult(u.amount/n.pan.mag()),c.center=this.map.transform.center,lt(c,u)}if(n.zoom){var s=ft(n.zoom,a,at);c.zoom=this.map.transform.zoom+s.amount,lt(c,s)}if(n.bearing){var l=ft(n.bearing,a,ct);c.bearing=this.map.transform.bearing+d(l.amount,-179,179),lt(c,l)}if(n.pitch){var f=ft(n.pitch,a,ut);c.pitch=this.map.transform.pitch+f.amount,lt(c,f)}if(c.zoom||c.bearing){var p=void 0===n.pinchAround?n.around:n.pinchAround;c.around=p?this.map.unproject(p):this.map.getCenter()}return this.clear(),i()(c,{noMoveStart:!0})}}}])&&rt(t.prototype,n),r&&rt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function lt(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function ft(e,t,n){var r=n.maxSpeed,o=n.linearity,i=n.deceleration,a=d(e*o/(t/1e3),-r,r),c=Math.abs(a)/(i*o);return{easing:n.easing,duration:1e3*c,amount:a*(c/2)}}function pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var dt={panStep:100,bearingStep:15,pitchStep:10};function ht(e){return e*(2-e)}var vt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=dt;this.panStep=t.panStep,this.bearingStep=t.bearingStep,this.pitchStep=t.pitchStep}var t,n,r;return t=e,(n=[{key:"reset",value:function(){this.active=!1}},{key:"keydown",value:function(e){var t=this;if(!(e.altKey||e.ctrlKey||e.metaKey)){var n=0,r=0,o=0,i=0,a=0;switch(e.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),i=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),i=1);break;case 38:e.shiftKey?o=1:(e.preventDefault(),a=-1);break;case 40:e.shiftKey?o=-1:(e.preventDefault(),a=1);break;default:return}return{cameraAnimation:function(c){var u=c.getZoom();c.easeTo({duration:300,easeId:"keyboardHandler",easing:ht,zoom:n?Math.round(u)+n*(e.shiftKey?2:1):u,bearing:c.getBearing()+r*t.bearingStep,pitch:c.getPitch()+o*t.pitchStep,offset:[-i*t.panStep,-a*t.panStep],center:c.getCenter()},{originalEvent:e})}}}}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}])&&pt(t.prototype,n),r&&pt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var mt,gt=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=t,this.clickTolerance=n.clickTolerance}var t,n,r;return t=e,(n=[{key:"reset",value:function(){delete this.mousedownPos}},{key:"wheel",value:function(e){return this.firePreventable(new Fe(e.type,this.map,e))}},{key:"mousedown",value:function(e,t){return this.mousedownPos=t,this.firePreventable(new Ee(e.type,this.map,e))}},{key:"mouseup",value:function(e){this.map.emit(e.type,new Ee(e.type,this.map,e))}},{key:"click",value:function(e,t){this.mousedownPos&&this.mousedownPos.dist(t)>=this.clickTolerance||this.map.emit(e.type,new Ee(e.type,this.map,e))}},{key:"dblclick",value:function(e){return this.firePreventable(new Ee(e.type,this.map,e))}},{key:"mouseover",value:function(e){this.map.emit(e.type,new Ee(e.type,this.map,e))}},{key:"mouseout",value:function(e){this.map.emit(e.type,new Ee(e.type,this.map,e))}},{key:"touchstart",value:function(e){return this.firePreventable(new Me(e.type,this.map,e))}},{key:"touchmove",value:function(e){this.map.emit(e.type,new Me(e.type,this.map,e))}},{key:"touchend",value:function(e){this.map.emit(e.type,new Me(e.type,this.map,e))}},{key:"touchcancel",value:function(e){this.map.emit(e.type,new Me(e.type,this.map,e))}},{key:"firePreventable",value:function(e){if(this.map.emit(e.type,e),e.defaultPrevented)return{}}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!1}},{key:"disable",value:function(){return!1}}])&&yt(t.prototype,n),r&&yt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ot=(bt(mt={},0,1),bt(mt,2,2),mt);function wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _t=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.reset(),this.clickTolerance=t.clickTolerance||1}var t,n,r;return t=e,(n=[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(e,t){if(!this.lastPoint){var n=ue.mouseButton(e);this.correctButton(e,n)&&(this.lastPoint=t,this.eventButton=n)}}},{key:"mousemoveWindow",value:function(e,t){var n=this.lastPoint;if(n)if(e.preventDefault(),function(e,t){var n=Ot[t];return void 0===e.buttons||(e.buttons&n)!==n}(e,this.eventButton))this.reset();else if(this.moved||!(t.dist(n)<this.clickTolerance))return this.moved=!0,this.lastPoint=t,this.move(n,t)}},{key:"mouseupWindow",value:function(e){this.lastPoint&&ue.mouseButton(e)===this.eventButton&&(this.moved&&ue.suppressClick(),this.reset())}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}},{key:"correctButton",value:function(e,t){return!1}},{key:"move",value:function(e,t){}}])&&wt(t.prototype,n),r&&wt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function St(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ct(){return(Ct="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=jt(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function jt(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Mt(e)););return e}function kt(e,t){return(kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mt(e);if(t){var o=Mt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt(this,n)}}function Tt(e,t){if(t&&("object"===xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mt(e){return(Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var At=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kt(e,t)}(i,e);var t,n,r,o=Pt(i);function i(){return Et(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"mousedown",value:function(e,t){Ct(Mt(i.prototype),"mousedown",this).call(this,e,t),this.lastPoint&&(this.active=!0)}},{key:"move",value:function(e,t){return{around:t,panDelta:t.sub(e)}}},{key:"correctButton",value:function(e,t){return 0===t&&!e.ctrlKey}}])&&St(t.prototype,n),r&&St(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(_t);function Lt(e){return(Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function It(e,t){return(It=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Dt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zt(e);if(t){var o=zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ft(this,n)}}function Ft(e,t){if(t&&("object"===Lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function zt(e){return(zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&It(e,t)}(i,e);var t,n,r,o=Dt(i);function i(){return Rt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"correctButton",value:function(e,t){return 0===t&&e.ctrlKey||2===t}},{key:"move",value:function(e,t){var n=-.5*(t.y-e.y);if(n)return this.active=!0,{pitchDelta:n}}},{key:"contextmenu",value:function(e){e.preventDefault()}}])&&Nt(t.prototype,n),r&&Nt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(_t);function Ut(e){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gt(e,t){return(Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kt(e);if(t){var o=Kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yt(this,n)}}function Yt(e,t){if(t&&("object"===Ut(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kt(e){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gt(e,t)}(i,e);var t,n,r,o=Wt(i);function i(){return Vt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"contextmenu",value:function(e){e.preventDefault()}},{key:"correctButton",value:function(e,t){return 0===t&&e.ctrlKey||2===t}},{key:"move",value:function(e,t){var n=.8*(t.x-e.x);if(n)return this.active=!0,{bearingDelta:n}}}])&&Ht(t.prototype,n),r&&Ht(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(_t);function qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Zt=function(){function e(t,n){var r,o,i,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i=function(){if(a.frameId&&(a.frameId=null,a.isActive())){var e=a.map.transform;if(0!==a.delta){var t="wheel"===a.type&&Math.abs(a.delta)>4.000244140625?a.wheelZoomRate:a.defaultZoomRate,n=2/(1+Math.exp(-Math.abs(a.delta*t)));a.delta<0&&0!==n&&(n=1/n);var r="number"==typeof a.targetZoom?e.zoomScale(a.targetZoom):e.scale;a.targetZoom=Math.min(e.maxZoom,Math.max(e.minZoom,e.scaleZoom(r*n))),"wheel"===a.type&&(a.startZoom=e.zoom,a.easing=a.smoothOutEasing(200)),a.delta=0}var o,i="number"==typeof a.targetZoom?a.targetZoom:e.zoom,c=a.startZoom,u=a.easing,s=!1;if("wheel"===a.type&&c&&u){var l=Math.min((b()-a.lastWheelEventTime)/200,1);o=h(c,i,u(l)),l<1?a.frameId||(a.frameId=!0):s=!0}else o=i,s=!0;return a.active=!0,s&&(a.active=!1,a.finishTimeout=setTimeout((function(){a.zooming=!1,a.handler.triggerRenderFrame(),delete a.targetZoom,delete a.finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!s,zoomDelta:o-e.zoom,around:a.aroundPoint,originalEvent:a.lastWheelEvent}}},(o="onScrollFrame")in(r=this)?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,this.map=t,this.el=t.getCanvasContainer(),this.handler=n,this.delta=0,this.defaultZoomRate=.01,this.wheelZoomRate=1/450}var t,n,r;return t=e,(n=[{key:"setZoomRate",value:function(e){this.defaultZoomRate=e}},{key:"setWheelZoomRate",value:function(e){this.wheelZoomRate=e}},{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active||void 0!==this.finishTimeout}},{key:"isZooming",value:function(){return!!this.zooming}},{key:"enable",value:function(e){this.isEnabled()||(this.enabled=!0,this.aroundCenter=e&&"center"===e.around)}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"wheel",value:function(e){if(this.isEnabled()){var t=e.deltaMode===window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=b(),r=n-(this.lastWheelEventTime||0);this.lastWheelEventTime=n,0!==t&&t%4.000244140625==0?this.type="wheel":0!==t&&Math.abs(t)<4?this.type="trackpad":r>400?(this.type=null,this.lastValue=t,this.timeout=setTimeout(this.onTimeout,40,e)):this.type||(this.type=Math.abs(r*t)<200?"trackpad":"wheel",this.timeout&&(clearTimeout(this.timeout),this.timeout=null,t+=this.lastValue)),e.shiftKey&&t&&(t/=4),this.type&&(this.lastWheelEvent=e,this.delta-=t,this.active||this.start(e)),e.preventDefault()}}},{key:"renderFrame",value:function(){return this.onScrollFrame()}},{key:"reset",value:function(){this.active=!1}},{key:"onTimeout",value:function(e){this.type="wheel",this.delta-=this.lastValue,!this.active&&this.start&&this.start(e)}},{key:"start",value:function(e){if(this.delta){this.frameId&&(this.frameId=null),this.active=!0,this.isZooming()||(this.zooming=!0),this.finishTimeout&&(clearTimeout(this.finishTimeout),delete this.finishTimeout);var t=ue.mousePos(this.el,e);this.around=S.convert(this.aroundCenter?this.map.getCenter():this.map.unproject(t)),this.aroundPoint=this.map.transform.locationPoint(this.around),this.frameId||(this.frameId=!0,this.handler.triggerRenderFrame())}}},{key:"smoothOutEasing",value:function(e){var t=y;if(this.prevEase){var n=this.prevEase,r=(b()-n.start)/n.duration,o=n.easing(r+.01)-n.easing(r),i=.27/Math.sqrt(o*o+1e-4)*.01;t=v(i,Math.sqrt(.0729-i*i),.25,1)}return this.prevEase={start:b(),duration:e,easing:t},t}}])&&qt(t.prototype,n),r&&qt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Qt=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clickZoom=t,this.tapZoom=n}var t,n,r;return t=e,(n=[{key:"enable",value:function(){this.clickZoom.enable(),this.tapZoom.enable()}},{key:"disable",value:function(){this.clickZoom.disable(),this.tapZoom.disable()}},{key:"isEnabled",value:function(){return this.clickZoom.isEnabled()&&this.tapZoom.isEnabled()}},{key:"isActive",value:function(){return this.clickZoom.isActive()||this.tapZoom.isActive()}}])&&Jt(t.prototype,n),r&&Jt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function $t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var en=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=t,this.mousePan=n,this.touchPan=r}var t,n,r;return t=e,(n=[{key:"enable",value:function(e){this.inertiaOptions=e||{},this.mousePan.enable(),this.touchPan.enable(),a.jb||this.el.classList.add("l7-touch-drag-pan")}},{key:"disable",value:function(){this.mousePan.disable(),this.touchPan.disable(),a.jb||this.el.classList.remove("l7-touch-drag-pan")}},{key:"isEnabled",value:function(){return this.mousePan.isEnabled()&&this.touchPan.isEnabled()}},{key:"isActive",value:function(){return this.mousePan.isActive()||this.touchPan.isActive()}}])&&$t(t.prototype,n),r&&$t(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var nn=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pitchWithRotate=t.pitchWithRotate,this.mouseRotate=n,this.mousePitch=r}var t,n,r;return t=e,(n=[{key:"enable",value:function(){this.mouseRotate.enable(),this.pitchWithRotate&&this.mousePitch.enable()}},{key:"disable",value:function(){this.mouseRotate.disable(),this.mousePitch.disable()}},{key:"isEnabled",value:function(){return this.mouseRotate.isEnabled()&&(!this.pitchWithRotate||this.mousePitch.isEnabled())}},{key:"isActive",value:function(){return this.mouseRotate.isActive()||this.mousePitch.isActive()}}])&&tn(t.prototype,n),r&&tn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var on=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=t,this.touchZoom=n,this.touchRotate=r,this.tapDragZoom=o,this.rotationDisabled=!1,this.enabled=!0}var t,n,r;return t=e,(n=[{key:"enable",value:function(e){this.touchZoom.enable(e),this.rotationDisabled||this.touchRotate.enable(e),this.tapDragZoom.enable(),a.jb||this.el.classList.add("l7-touch-zoom-rotate")}},{key:"disable",value:function(){this.touchZoom.disable(),this.touchRotate.disable(),this.tapDragZoom.disable(),a.jb||this.el.classList.remove("l7-touch-zoom-rotate")}},{key:"isEnabled",value:function(){return this.touchZoom.isEnabled()&&(this.rotationDisabled||this.touchRotate.isEnabled())&&this.tapDragZoom.isEnabled()}},{key:"isActive",value:function(){return this.touchZoom.isActive()||this.touchRotate.isActive()||this.tapDragZoom.isActive()}},{key:"disableRotation",value:function(){this.rotationDisabled=!0,this.touchRotate.disable()}},{key:"enableRotation",value:function(){this.rotationDisabled=!1,this.touchZoom.isEnabled()&&this.touchRotate.enable()}}])&&rn(t.prototype,n),r&&rn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function an(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].identifier]=t[r];return n}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function un(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sn(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ln=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.reset(),this.numTouches=t.numTouches}var t,n,r;return t=e,(n=[{key:"reset",value:function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}},{key:"touchstart",value:function(e,t,n){(this.centroid||n.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=e.timeStamp),n.length===this.numTouches&&(this.centroid=function(e){var t,n=new P(0,0),r=un(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;n._add(o)}}catch(Yr){r.e(Yr)}finally{r.f()}return n.div(e.length)}(t),this.touches=an(n,t)))}},{key:"touchmove",value:function(e,t,n){if(!this.aborted&&this.centroid){var r=an(n,t);for(var o in this.touches)if(this.touches[o]){var i=this.touches[o],a=r[o];(!a||a.dist(i)>30)&&(this.aborted=!0)}}}},{key:"touchend",value:function(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}}}])&&cn(t.prototype,n),r&&cn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var pn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.singleTap=new ln(t),this.numTaps=t.numTaps,this.reset()}var t,n,r;return t=e,(n=[{key:"reset",value:function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}},{key:"touchstart",value:function(e,t,n){this.singleTap.touchstart(e,t,n)}},{key:"touchmove",value:function(e,t,n){this.singleTap.touchmove(e,t,n)}},{key:"touchend",value:function(e,t,n){var r=this.singleTap.touchend(e,t,n);if(r){var o=e.timeStamp-this.lastTime<500,i=!this.lastTap||this.lastTap.dist(r)<30;if(o&&i||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}}}])&&fn(t.prototype,n),r&&fn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var hn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tap=new pn({numTouches:1,numTaps:1}),this.reset()}var t,n,r;return t=e,(n=[{key:"reset",value:function(){this.active=!1,delete this.swipePoint,delete this.swipeTouch,delete this.tapTime,this.tap.reset()}},{key:"touchstart",value:function(e,t,n){this.swipePoint||(this.tapTime&&e.timeStamp-this.tapTime>500&&this.reset(),this.tapTime?n.length>0&&(this.swipePoint=t[0],this.swipeTouch=n[0].identifier):this.tap.touchstart(e,t,n))}},{key:"touchmove",value:function(e,t,n){if(this.tapTime){if(this.swipePoint){if(n[0].identifier!==this.swipeTouch)return;var r=t[0],o=r.y-this.swipePoint.y;return this.swipePoint=r,e.preventDefault(),this.active=!0,{zoomDelta:o/128}}}else this.tap.touchmove(e,t,n)}},{key:"touchend",value:function(e,t,n){this.tapTime?this.swipePoint&&0===n.length&&this.reset():this.tap.touchend(e,t,n)&&(this.tapTime=e.timeStamp)}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}])&&dn(t.prototype,n),r&&dn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function vn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var yn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.zoomIn=new pn({numTouches:1,numTaps:2}),this.zoomOut=new pn({numTouches:2,numTaps:1}),this.reset()}var t,n,r;return t=e,(n=[{key:"reset",value:function(){this.active=!1,this.zoomIn.reset(),this.zoomOut.reset()}},{key:"touchstart",value:function(e,t,n){this.zoomIn.touchstart(e,t,n),this.zoomOut.touchstart(e,t,n)}},{key:"touchmove",value:function(e,t,n){this.zoomIn.touchmove(e,t,n),this.zoomOut.touchmove(e,t,n)}},{key:"touchend",value:function(e,t,n){var r=this,o=this.zoomIn.touchend(e,t,n),i=this.zoomOut.touchend(e,t,n);return o?(this.active=!0,e.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(o)},{originalEvent:e})}}):i?(this.active=!0,e.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(i)},{originalEvent:e})}}):void 0}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}])&&vn(t.prototype,n),r&&vn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var gn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.minTouches=1,this.clickTolerance=t.clickTolerance||1,this.reset()}var t,n,r;return t=e,(n=[{key:"reset",value:function(){this.active=!1,this.touches={},this.sum=new P(0,0)}},{key:"touchstart",value:function(e,t,n){return this.calculateTransform(e,t,n)}},{key:"touchmove",value:function(e,t,n){if(this.active)return e.preventDefault(),this.calculateTransform(e,t,n)}},{key:"touchend",value:function(e,t,n){this.calculateTransform(e,t,n),this.active&&n.length<this.minTouches&&this.reset()}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}},{key:"calculateTransform",value:function(e,t,n){n.length>0&&(this.active=!0);var r=an(n,t),o=new P(0,0),i=new P(0,0),a=0;for(var c in r)if(r[c]){var u=r[c],s=this.touches[c];s&&(o._add(u),i._add(u.sub(s)),a++,r[c]=u)}if(this.touches=r,!(a<this.minTouches)&&i.mag()){var l=i.div(a);if(this.sum._add(l),!(this.sum.mag()<this.clickTolerance))return{around:o.div(a),panDelta:l}}}}])&&mn(t.prototype,n),r&&mn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function bn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(Yr){c=!0,o=Yr}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return On(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return On(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function On(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.reset()}var t,n,r;return t=e,(n=[{key:"reset",value:function(){this.active=!1,delete this.firstTwoTouches}},{key:"start",value:function(e){}},{key:"move",value:function(e,t,n){}},{key:"touchstart",value:function(e,t,n){this.firstTwoTouches||n.length<2||(this.firstTwoTouches=[n[0].identifier,n[1].identifier],this.start([t[0],t[1]]))}},{key:"touchmove",value:function(e,t,n){if(this.firstTwoTouches){e.preventDefault();var r=bn(this.firstTwoTouches,2),o=r[0],i=r[1],a=xn(n,t,o),c=xn(n,t,i);if(a&&c){var u=this.aroundCenter?null:a.add(c).div(2);return this.move([a,c],u,e)}}}},{key:"touchend",value:function(e,t,n){if(this.firstTwoTouches){var r=bn(this.firstTwoTouches,2),o=r[0],i=r[1],a=xn(n,t,o),c=xn(n,t,i);a&&c||(this.active&&ue.suppressClick(),this.reset())}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(e){this.enabled=!0,this.aroundCenter=!!e&&"center"===e.around}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}])&&wn(t.prototype,n),r&&wn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function xn(e,t,n){for(var r=0;r<e.length;r++)if(e[r].identifier===n)return t[r]}function En(e){return(En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jn(){return(jn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=kn(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function kn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=An(e)););return e}function Pn(e,t){return(Pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=An(e);if(t){var o=An(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mn(this,n)}}function Mn(e,t){if(t&&("object"===En(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function An(e){return(An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ln(e){return Math.abs(e.y)>Math.abs(e.x)}var Rn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pn(e,t)}(i,e);var t,n,r,o=Tn(i);function i(){return Sn(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"reset",value:function(){jn(An(i.prototype),"reset",this).call(this),this.valid=void 0,delete this.firstMove,delete this.lastPoints}},{key:"start",value:function(e){this.lastPoints=e,Ln(e[0].sub(e[1]))&&(this.valid=!1)}},{key:"move",value:function(e,t,n){var r=e[0].sub(this.lastPoints[0]),o=e[1].sub(this.lastPoints[1]);if(this.valid=this.gestureBeginsVertically(r,o,n.timeStamp),this.valid)return this.lastPoints=e,this.active=!0,{pitchDelta:(r.y+o.y)/2*-.5}}},{key:"gestureBeginsVertically",value:function(e,t,n){if(void 0!==this.valid)return this.valid;var r=e.mag()>=2,o=t.mag()>=2;if(r||o){if(!r||!o)return void 0===this.firstMove&&(this.firstMove=n),n-this.firstMove<100&&void 0;var i=e.y>0==t.y>0;return Ln(e)&&Ln(t)&&i}}}])&&Cn(t.prototype,n),r&&Cn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(_n);function Nn(e){return(Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function In(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fn(){return(Fn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=zn(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function zn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Hn(e)););return e}function Bn(e,t){return(Bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hn(e);if(t){var o=Hn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vn(this,n)}}function Vn(e,t){if(t&&("object"===Nn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hn(e){return(Hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gn(e,t){return 180*e.angleWith(t)/Math.PI}var Wn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bn(e,t)}(i,e);var t,n,r,o=Un(i);function i(){return In(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"reset",value:function(){Fn(Hn(i.prototype),"reset",this).call(this),delete this.minDiameter,delete this.startVector,delete this.vector}},{key:"start",value:function(e){this.startVector=this.vector=e[0].sub(e[1]),this.minDiameter=e[0].dist(e[1])}},{key:"move",value:function(e,t){var n=this.vector;if(this.vector=e[0].sub(e[1]),this.active||!this.isBelowThreshold(this.vector))return this.active=!0,{bearingDelta:Gn(this.vector,n),pinchAround:t}}},{key:"isBelowThreshold",value:function(e){this.minDiameter=Math.min(this.minDiameter,e.mag());var t=25/(Math.PI*this.minDiameter)*360,n=Gn(e,this.startVector);return Math.abs(n)<t}}])&&Dn(t.prototype,n),r&&Dn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(_n);function Yn(e){return(Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qn(){return(qn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Zn(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Zn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=er(e)););return e}function Jn(e,t){return(Jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=er(e);if(t){var o=er(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $n(this,n)}}function $n(e,t){if(t&&("object"===Yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function er(e){return(er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tr(e,t){return Math.log(e/t)/Math.LN2}var nr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jn(e,t)}(i,e);var t,n,r,o=Qn(i);function i(){return Kn(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"reset",value:function(){qn(er(i.prototype),"reset",this).call(this),delete this.distance,delete this.startDistance}},{key:"start",value:function(e){this.startDistance=this.distance=e[0].dist(e[1])}},{key:"move",value:function(e,t){var n=this.distance;if(this.distance=e[0].dist(e[1]),this.active||!(Math.abs(tr(this.distance,this.startDistance))<.1))return this.active=!0,{zoomDelta:tr(this.distance,n),pinchAround:t}}}])&&Xn(t.prototype,n),r&&Xn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(_n);function rr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(Yr){c=!0,o=Yr}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||ir(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function or(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ir(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function ir(e,t){if(e){if("string"==typeof e)return ar(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ar(e,t):void 0}}function ar(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ur(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sr=function(e){return e.zoom||e.drag||e.pitch||e.rotate};function lr(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}var fr=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ur(this,"handleWindowEvent",(function(e){r.handleEvent(e,"".concat(e.type,"Window"))})),ur(this,"handleEvent",(function(e,t){if("blur"!==e.type){r.updatingCamera=!0;var n,o="renderFrame"===e.type?void 0:e,i={needsRenderFrame:!1},a={},c={},u=e.touches?r.getMapTouches(e.touches):void 0,s=u?ue.touchPos(r.el,u):ue.mousePos(r.el,e),l=or(r.handlers);try{for(l.s();!(n=l.n()).done;){var f=n.value,p=f.handlerName,d=f.handler,h=f.allowed;if(d.isEnabled()){var v=void 0;if(r.blockedByActive(c,h,p))d.reset();else{var y=t||e.type;d&&d[y]&&(v=d[y](e,s,u),r.mergeIHandlerResult(i,a,v,p,o),v&&v.needsRenderFrame&&r.triggerRenderFrame())}(v||d.isActive())&&(c[p]=d)}}}catch(Yr){l.e(Yr)}finally{l.f()}var m={};for(var g in r.previousActiveHandlers)c[g]||(m[g]=o);r.previousActiveHandlers=c,(Object.keys(m).length||lr(i))&&(r.changes.push([i,a,m]),r.triggerRenderFrame()),(Object.keys(c).length||lr(i))&&r.map.stop(!0),r.updatingCamera=!1;var b=i.cameraAnimation;b&&(r.inertia.clear(),r.fireEvents({},{}),r.changes=[],b(r.map))}else r.stop()})),this.map=t,this.el=this.map.getCanvasContainer(),this.handlers=[],this.handlersById={},this.changes=[],this.inertia=new st(t),this.bearingSnap=n.bearingSnap,this.rotateEnabled=n.rotateEnabled,this.pitchEnabled=n.pitchEnabled,this.previousActiveHandlers={},this.eventsInProgress={},this.addDefaultHandlers(n);var o=this.el;if(this.listeners=[],a.jb)a.c.document.addEventListener("touchstart",(function(e){r.handleEvent(e)}),{}),a.c.document.addEventListener("touchmove",(function(e){r.handleEvent(e)}),{}),a.c.document.addEventListener("touchend",(function(e){r.handleEvent(e)}),{}),a.c.document.addEventListener("touchcancel",(function(e){r.handleEvent(e)}),{});else{this.listeners=[[o,"touchstart",{passive:!1}],[o,"touchmove",{passive:!1}],[o,"touchend",void 0],[o,"touchcancel",void 0],[o,"mousedown",void 0],[o,"mousemove",void 0],[o,"mouseup",void 0],[window.document,"mousemove",{capture:!0}],[window.document,"mouseup",void 0],[o,"mouseover",void 0],[o,"mouseout",void 0],[o,"dblclick",void 0],[o,"click",void 0],[o,"keydown",{capture:!1}],[o,"keyup",void 0],[o,"wheel",{passive:!1}],[o,"contextmenu",void 0],[window,"blur",void 0]];var i,c=or(this.listeners);try{for(c.s();!(i=c.n()).done;){var u=rr(i.value,3),s=u[0],l=u[1],f=u[2];ue.addEventListener(s,l,s===window.document?this.handleWindowEvent:this.handleEvent,f)}}catch(Yr){c.e(Yr)}finally{c.f()}}}var t,n,r;return t=e,(n=[{key:"destroy",value:function(){var e,t=or(this.listeners);try{for(t.s();!(e=t.n()).done;){var n=rr(e.value,3),r=n[0],o=n[1],i=n[2];ue.removeEventListener(r,o,r===window.document?this.handleWindowEvent:this.handleEvent,i)}}catch(Yr){t.e(Yr)}finally{t.f()}}},{key:"stop",value:function(){if(!this.updatingCamera){var e,t=or(this.handlers);try{for(t.s();!(e=t.n()).done;)e.value.handler.reset()}catch(Yr){t.e(Yr)}finally{t.f()}this.inertia.clear(),this.fireEvents({},{}),this.changes=[]}}},{key:"isActive",value:function(){var e,t=or(this.handlers);try{for(t.s();!(e=t.n()).done;)if(e.value.handler.isActive())return!0}catch(Yr){t.e(Yr)}finally{t.f()}return!1}},{key:"isZooming",value:function(){return!!this.eventsInProgress.zoom||this.map.scrollZoom.isZooming()}},{key:"isRotating",value:function(){return!!this.eventsInProgress.rotate}},{key:"isMoving",value:function(){return Boolean(sr(this.eventsInProgress))||this.isZooming()}},{key:"mergeIHandlerResult",value:function(e,t,n,r,o){if(n){i()(e,n);var a={handlerName:r,originalEvent:n.originalEvent||o};void 0!==n.zoomDelta&&(t.zoom=a),void 0!==n.panDelta&&(t.drag=a),void 0!==n.pitchDelta&&(t.pitch=a),void 0!==n.bearingDelta&&(t.rotate=a)}}},{key:"triggerRenderFrame",value:function(){var e=this;void 0===this.frameId&&(this.frameId=this.map.requestRenderFrame((function(t){delete e.frameId,e.handleEvent(new et("renderFrame",{timeStamp:t})),e.applyChanges()})))}},{key:"addDefaultHandlers",value:function(e){var t=this.map,n=t.getCanvasContainer();this.add("mapEvent",new gt(t,e));var r=t.boxZoom=new Ve(t,e);this.add("boxZoom",r);var o=new yn,i=new Ge;t.doubleClickZoom=new Qt(i,o),this.add("tapZoom",o),this.add("clickZoom",i);var a=new hn;this.add("tapDragZoom",a);var c=t.touchPitch=new Rn;this.add("touchPitch",c);var u=new Bt(e),s=new Xt(e);t.dragRotate=new nn(e,u,s),this.add("mouseRotate",u,["mousePitch"]),this.add("mousePitch",s,["mouseRotate"]);var l=new At(e),f=new gn(e);t.dragPan=new en(n,l,f),this.add("mousePan",l),this.add("touchPan",f,["touchZoom","touchRotate"]);var p=new Wn,d=new nr;t.touchZoomRotate=new on(n,d,p,a),this.add("touchRotate",p,["touchPan","touchZoom"]),this.add("touchZoom",d,["touchPan","touchRotate"]);var h=t.scrollZoom=new Zt(t,this);this.add("scrollZoom",h,["mousePan"]);var v=t.keyboard=new vt;this.add("keyboard",v),this.add("blockableMapEvent",new Be(t));for(var y=0,m=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];y<m.length;y++){var g=m[y];e.interactive&&e[g]&&t[g].enable(e[g])}}},{key:"add",value:function(e,t,n){this.handlers.push({handlerName:e,handler:t,allowed:n}),this.handlersById[e]=t}},{key:"blockedByActive",value:function(e,t,n){for(var r in e)if(r!==n&&(!t||t.indexOf(r)<0))return!0;return!1}},{key:"getMapTouches",value:function(e){var t,n=[],r=or(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=o.target;(a.jb||this.el.contains(i))&&n.push(o)}}catch(Yr){r.e(Yr)}finally{r.f()}return n}},{key:"applyChanges",value:function(){var e,t={},n={},r={},o=or(this.changes);try{for(o.s();!(e=o.n()).done;){var a=rr(e.value,3),c=a[0],u=a[1],s=a[2];c.panDelta&&(t.panDelta=(t.panDelta||new P(0,0))._add(c.panDelta)),c.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+c.zoomDelta),c.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+c.bearingDelta),c.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+c.pitchDelta),void 0!==c.around&&(t.around=c.around),void 0!==c.pinchAround&&(t.pinchAround=c.pinchAround),c.noInertia&&(t.noInertia=c.noInertia),i()(n,u),i()(r,s)}}catch(Yr){o.e(Yr)}finally{o.f()}this.updateMapTransform(t,n,r),this.changes=[]}},{key:"updateMapTransform",value:function(e,t,n){var r=this.map,o=r.transform;if(!lr(e))return this.fireEvents(t,n);var i=e.panDelta,a=e.zoomDelta,c=e.bearingDelta,u=e.pitchDelta,s=e.pinchAround,l=e.around;void 0!==s&&(l=s),r.stop(!0),l=l||r.transform.centerPoint;var f=o.pointLocation(i?l.sub(i):l);c&&this.rotateEnabled&&(o.bearing+=c),u&&this.pitchEnabled&&(o.pitch+=u),a&&(o.zoom+=a),o.setLocationAtPoint(f,l),this.map.update(),e.noInertia||this.inertia.record(e),this.fireEvents(t,n)}},{key:"fireEvents",value:function(e,t){var n=this,r=sr(this.eventsInProgress),o=sr(e),i={};for(var a in e)if(e[a]){var c=e[a].originalEvent;this.eventsInProgress[a]||(i["".concat(a,"start")]=c),this.eventsInProgress[a]=e[a]}for(var u in!r&&o&&this.fireEvent("movestart",o.originalEvent),i)i[u]&&this.fireEvent(u,i[u]);for(var s in e.rotate&&(this.bearingChanged=!0),o&&this.fireEvent("move",o.originalEvent),e)if(e[s]){var l=e[s].originalEvent;this.fireEvent(s,l)}var f,p={};for(var d in this.eventsInProgress)if(this.eventsInProgress[d]){var h=this.eventsInProgress[d],v=h.handlerName,y=h.originalEvent;this.handlersById[v].isActive()||(delete this.eventsInProgress[d],f=t[v]||y,p["".concat(d,"end")]=f)}for(var m in p)p[m]&&this.fireEvent(m,p[m]);var g=sr(this.eventsInProgress);if((r||o)&&!g){this.updatingCamera=!0;var b=this.inertia.onMoveEnd(this.map.dragPan.inertiaOptions),O=function(e){return 0!==e&&-n.bearingSnap<e&&e<n.bearingSnap};b?(O(b.bearing||this.map.getBearing())&&(b.bearing=0),this.map.easeTo(b,{originalEvent:f})):(this.map.emit("moveend",new Z("moveend",{originalEvent:f})),O(this.map.getBearing())&&this.map.resetNorth()),this.bearingChanged=!1,this.updatingCamera=!1}}},{key:"fireEvent",value:function(e,t){this.map.emit(e,new Z(e,t?{originalEvent:t}:{}))}}])&&cr(t.prototype,n),r&&cr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),pr=n("Bcqe"),dr=n.n(pr);function hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yr=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vr(this,"onHashChange",(function(){var e=n.getCurrentHash();if(e.length>=3&&!e.some((function(e){return isNaN(+e)}))){var t=n.map.dragRotate.isEnabled()&&n.map.touchZoomRotate.isEnabled()?+(e[3]||0):n.map.getBearing();return n.map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:t,pitch:+(e[4]||0)}),!0}return!1})),vr(this,"getCurrentHash",(function(){var e,t=window.location.hash.replace("#","");return n.hashName?(t.split("&").map((function(e){return e.split("=")})).forEach((function(t){t[0]===n.hashName&&(e=t)})),(e&&e[1]||"").split("/")):t.split("/")})),vr(this,"updateHashUnthrottled",(function(){var e=n.getHashString();try{window.history.replaceState(window.history.state,"",e)}catch(t){}})),this.hashName=t&&encodeURIComponent(t),this.updateHash=dr()(this.updateHashUnthrottled,300)}var t,n,r;return t=e,(n=[{key:"addTo",value:function(e){return this.map=e,a.c.addEventListener("hashchange",this.onHashChange,!1),this.map.on("moveend",this.updateHash),this}},{key:"remove",value:function(){return a.c.removeEventListener("hashchange",this.onHashChange,!1),this.map.off("moveend",this.updateHash),delete this.map,this}},{key:"getHashString",value:function(e){var t=this.map.getCenter(),n=Math.round(100*this.map.getZoom())/100,r=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,r),i=Math.round(t.lng*o)/o,a=Math.round(t.lat*o)/o,c=this.map.getBearing(),u=this.map.getPitch(),s="";if(s+=e?"/".concat(i,"/").concat(a,"/").concat(n):"".concat(n,"/").concat(a,"/").concat(i),(c||u)&&(s+="/".concat(Math.round(10*c)/10)),u&&(s+="/".concat(Math.round(u))),this.hashName){var l=this.hashName,f=!1,p=window.location.hash.slice(1).split("&").map((function(e){var t=e.split("=")[0];return t===l?(f=!0,"".concat(t,"=").concat(s)):e})).filter((function(e){return e}));return f||p.push("".concat(l,"=").concat(s)),"#".concat(p.join("&"))}return"#".concat(s)}}])&&hr(t.prototype,n),r&&hr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),mr=null,gr=[],br=(a.c.performance,function(e){var t=e;if(null!=mr){var n=t-mr;gr.push(n)}mr=t});function Or(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return wr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var xr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.queue=[],this.id=0,this.cleared=!1,this.currentlyRunning=!1}var t,n,r;return t=e,(n=[{key:"add",value:function(e){var t=++this.id;return this.queue.push({callback:e,id:t,cancelled:!1}),t}},{key:"remove",value:function(e){var t,n=this.currentlyRunning,r=Or(n?this.queue.concat(n):this.queue);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o.id===e)return void(o.cancelled=!0)}}catch(Yr){r.e(Yr)}finally{r.f()}}},{key:"run",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.currentlyRunning=this.queue;this.queue=[];var n,r=Or(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!o.cancelled&&(o.callback(e),this.cleared))break}}catch(Yr){r.e(Yr)}finally{r.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}])&&_r(t.prototype,n),r&&_r(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Er(e){return(Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(Yr){c=!0,o=Yr}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kr(e,t){return(kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ar(e);if(t){var o=Ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tr(this,n)}}function Tr(e,t){if(t&&("object"===Er(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Mr(e)}function Mr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ar(e){return(Ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rr={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},Nr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kr(e,t)}(c,e);var t,n,r,o=Pr(c);function c(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),Lr(Mr(t=o.call(this,i()({},Rr,e))),"renderTaskQueue",new xr),Lr(Mr(t),"trackResize",!0),Lr(Mr(t),"onWindowOnline",(function(){t.update()})),Lr(Mr(t),"onWindowResize",(function(e){t.trackResize&&t.resize({originalEvent:e}).update()})),a.jb?t.initMiniContainer():t.initContainer(),t.resize(),t.handlers=new fr(Mr(t),t.options),"undefined"!=typeof window&&(window.addEventListener("online",t.onWindowOnline,!1),window.addEventListener("resize",t.onWindowResize,!1),window.addEventListener("orientationchange",t.onWindowResize,!1)),!a.jb){var n="string"==typeof e.hash&&e.hash||void 0;e.hash&&(t.hash=new yr(n).addTo(Mr(t)))}return t.hash&&t.hash.onHashChange()||(t.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(t.resize(),t.fitBounds(e.bounds,i()({},e.fitBoundsOptions,{duration:0})))),t}return t=c,(n=[{key:"resize",value:function(e){var t=Sr(this.containerDimensions(),2),n=t[0],r=t[1];if(this.transform.resize(n,r),a.jb)return this;var o=!this.moving;return o&&(this.stop(),this.emit("movestart",new a.c.Event("movestart",e)),this.emit("move",new a.c.Event("move",e))),this.emit("resize",new a.c.Event("resize",e)),o&&this.emit("moveend",new a.c.Event("moveend",e)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(e){return this.transform.locationPoint(S.convert(e))}},{key:"unproject",value:function(e){return this.transform.pointLocation(P.convert(e))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(e){this.transform.setMaxBounds(j.convert(e))}},{key:"setStyle",value:function(e){}},{key:"setMinZoom",value:function(e){if((e=null==e?-2:e)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this.getZoom()<e&&this.setZoom(e),this;throw new Error("minZoom must be between ".concat(-2," and the current maxZoom, inclusive"))}},{key:"getMinZoom",value:function(){return this.transform.minZoom}},{key:"setMaxZoom",value:function(e){if((e=null==e?22:e)>=this.transform.minZoom)return this.transform.maxZoom=e,this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(e){if((e=null==e?0:e)<0)throw new Error("minPitch must be greater than or equal to ".concat(0));if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this.getPitch()<e&&this.setPitch(e),this;throw new Error("minPitch must be between ".concat(0," and the current maxPitch, inclusive"))}},{key:"getMinPitch",value:function(){return this.transform.minPitch}},{key:"setMaxPitch",value:function(e){if((e=null==e?60:e)>60)throw new Error("maxPitch must be less than or equal to ".concat(60));if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(e){this.transform.renderWorldCopies=!!e}},{key:"remove",value:function(){this.container.removeChild(this.canvasContainer),this.canvasContainer=null,this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(e){return this.update(),this.renderTaskQueue.add(e)}},{key:"cancelRenderFrame",value:function(e){return this.renderTaskQueue.remove(e)}},{key:"triggerRepaint",value:function(){var e=this;this.frame||(this.frame=_((function(t){br(t),e.frame=null,e.update(t)})))}},{key:"update",value:function(e){var t=this;this.frame||(this.frame=_((function(n){br(n),t.frame=null,t.renderTaskQueue.run(e)})))}},{key:"initContainer",value:function(){if("string"==typeof this.options.container){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else{if(!(this.options.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this.container=this.options.container}var e=this.container;e.classList.add("l7-map");var t=this.canvasContainer=a.f.create("div","l7-canvas-container",e);this.options.interactive&&t.classList.add("l7-interactive")}},{key:"initMiniContainer",value:function(){this.container=this.options.canvas,this.canvasContainer=this.container}},{key:"containerDimensions",value:function(){var e=0,t=0;return this.container&&(a.jb?(e=this.container.width/a.c.devicePixelRatio,t=this.container.height/a.c.devicePixelRatio):(e=0==(e=this.container.clientWidth)?400:e,t=0===(t=this.container.clientHeight)?300:t)),[e,t]}}])&&jr(t.prototype,n),r&&jr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(oe);function Ir(e){return(Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fr(e,t){return(Fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vr(e);if(t){var o=Vr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Br(this,n)}}function Br(e,t){if(t&&("object"===Ir(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ur(e)}function Ur(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vr(e){return(Vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gr={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},Wr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fr(e,t)}(c,e);var t,n,r,o=zr(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),Hr(Ur(t=o.call(this,i()({},Gr,e))),"renderTaskQueue",new xr),Hr(Ur(t),"trackResize",!0),Hr(Ur(t),"onWindowOnline",(function(){t.update()})),Hr(Ur(t),"onWindowResize",(function(e){t.trackResize&&t.resize({originalEvent:e}).update()})),t.initContainer(),t.resize(),t.handlers=new fr(Ur(t),t.options),"undefined"!=typeof window&&(window.addEventListener("online",t.onWindowOnline,!1),window.addEventListener("resize",t.onWindowResize,!1),window.addEventListener("orientationchange",t.onWindowResize,!1)),t}return t=c,(n=[{key:"resize",value:function(e){var t=this.containerDimensions(),n=t[0],r=t[1];this.transform.resize(n,r);var o=!this.moving;return o&&(this.stop(),this.emit("movestart",new Event("movestart",e)),this.emit("move",new Event("move",e))),this.emit("resize",new Event("resize",e)),o&&this.emit("moveend",new Event("moveend",e)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(e){return this.transform.locationPoint(S.convert(e))}},{key:"unproject",value:function(e){return this.transform.pointLocation(P.convert(e))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(e){this.transform.setMaxBounds(j.convert(e))}},{key:"setStyle",value:function(e){}},{key:"setMinZoom",value:function(e){if((e=null==e?-2:e)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this.getZoom()<e&&this.setZoom(e),this;throw new Error("minZoom must be between ".concat(-2," and the current maxZoom, inclusive"))}},{key:"getMinZoom",value:function(){return this.transform.minZoom}},{key:"setMaxZoom",value:function(e){if((e=null==e?22:e)>=this.transform.minZoom)return this.transform.maxZoom=e,this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(e){if((e=null==e?0:e)<0)throw new Error("minPitch must be greater than or equal to ".concat(0));if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this.getPitch()<e&&this.setPitch(e),this;throw new Error("minPitch must be between ".concat(0," and the current maxPitch, inclusive"))}},{key:"getMinPitch",value:function(){return this.transform.minPitch}},{key:"setMaxPitch",value:function(e){if((e=null==e?60:e)>60)throw new Error("maxPitch must be less than or equal to ".concat(60));if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(e){this.transform.renderWorldCopies=!!e}},{key:"remove",value:function(){this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(e){return this.update(),this.renderTaskQueue.add(e)}},{key:"cancelRenderFrame",value:function(e){return this.renderTaskQueue.remove(e)}},{key:"triggerRepaint",value:function(){var e=this;this.frame||(this.frame=_((function(t){br(t),e.frame=null,e.update(t)})))}},{key:"update",value:function(e){var t=this;this.frame||(this.frame=_((function(n){br(n),t.frame=null,t.renderTaskQueue.run(e)})))}},{key:"initContainer",value:function(){if("string"==typeof this.options.container){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else{if(!(this.options.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this.container=this.options.container}var e=this.container;e.classList.add("l7-map");var t=this.canvasContainer=a.f.create("div","l7-canvas-container",e);this.options.interactive&&t.classList.add("l7-interactive")}},{key:"containerDimensions",value:function(){var e=0,t=0;return this.container&&(e=this.container.clientWidth||400,t=this.container.clientHeight||300),[e,t]}},{key:"resizeCanvas",value:function(e,t){var n=a.f.DPR||1;this.canvas.width=n*e,this.canvas.height=n*t,this.canvas.style.width="".concat(e,"px"),this.canvas.style.height="".concat(t,"px")}}])&&Dr(t.prototype,n),r&&Dr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(oe)},VCi3:function(e,t,n){var r=n("9JhN"),o=n("POgt"),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},VEhy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingInWhenOnSyntax=void 0;var r=n("6Oxz"),o=n("dqzZ"),i=n("LoNN"),a=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new o.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(e)}return e.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},e.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},e.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingInWhenOnSyntax=a},VFiX:function(e,t,n){},VL4P:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n("dyMZ"),i=n("7Jnn");e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof e||!e.trim())throw new Error("Invalid url.");t&&("object"!==(void 0===t?"undefined":r(t))&&(t={stripHash:!1}),e=i(e,t));var n=o(e);return n}},VNzZ:function(e,t,n){"use strict";var r=n("cxan"),o=n("zjfJ"),i=n("9fIP"),a=n("MMYH"),c=n("8K1b"),u=n("AqVP"),s=n("4wDe"),l=n("O94r"),f=n.n(l),p=n("8sde"),d=n("WSTu"),h=n("ERkP"),v=n("H84U"),y=n("PEeC"),m=n("ty86");function g(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function b(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function O(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n)return n+(window.innerHeight-t.bottom)}var w=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],_=[];function x(e,t){if(e){var n=_.find((function(t){return t.target===e}));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},_.push(n),w.forEach((function(t){n.eventHandlers[t]=Object(m.a)(e,t,(function(){n.affixList.forEach((function(e){e.lazyUpdatePosition()}))}))})))}}function E(e){var t=_.find((function(t){var n=t.affixList.some((function(t){return t===e}));return n&&(t.affixList=t.affixList.filter((function(t){return t!==e}))),n}));t&&0===t.affixList.length&&(_=_.filter((function(e){return e!==t})),w.forEach((function(e){var n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}var S,C=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Object(s.a)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};function j(){return"undefined"!=typeof window?window:null}!function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"}(S||(S={}));var k=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).state={status:S.None,lastAffix:!1,prevTarget:null},e.getOffsetTop=function(){var t=e.props,n=t.offsetBottom,r=t.offsetTop;return void 0===n&&void 0===r?0:r},e.getOffsetBottom=function(){return e.props.offsetBottom},e.savePlaceholderNode=function(t){e.placeholderNode=t},e.saveFixedNode=function(t){e.fixedNode=t},e.measure=function(){var t=e.state,n=t.status,r=t.lastAffix,o=e.props.onChange,i=e.getTargetFunc();if(n===S.Prepare&&e.fixedNode&&e.placeholderNode&&i){var a=e.getOffsetTop(),c=e.getOffsetBottom(),u=i();if(u){var s={status:S.None},l=g(u),f=g(e.placeholderNode),p=b(f,l,a),d=O(f,l,c);void 0!==p?(s.affixStyle={position:"fixed",top:p,width:f.width,height:f.height},s.placeholderStyle={width:f.width,height:f.height}):void 0!==d&&(s.affixStyle={position:"fixed",bottom:d,width:f.width,height:f.height},s.placeholderStyle={width:f.width,height:f.height}),s.lastAffix=!!s.affixStyle,o&&r!==s.lastAffix&&o(s.lastAffix),e.setState(s)}}},e.prepareMeasure=function(){e.setState({status:S.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e}return Object(a.a)(n,[{key:"getTargetFunc",value:function(){var e=this.context.getTargetContainer,t=this.props.target;return void 0!==t?t:e||j}},{key:"componentDidMount",value:function(){var e=this,t=this.getTargetFunc();t&&(this.timeout=setTimeout((function(){x(t(),e),e.updatePosition()})))}},{key:"componentDidUpdate",value:function(e){var t=this.state.prevTarget,n=this.getTargetFunc(),r=(null==n?void 0:n())||null;t!==r&&(E(this),r&&(x(r,this),this.updatePosition()),this.setState({prevTarget:r})),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),E(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var e=this.getTargetFunc(),t=this.state.affixStyle;if(e&&t){var n=this.getOffsetTop(),r=this.getOffsetBottom(),o=e();if(o&&this.placeholderNode){var i=g(o),a=g(this.placeholderNode),c=b(a,i,n),u=O(a,i,r);if(void 0!==c&&t.top===c||void 0!==u&&t.bottom===u)return}}this.prepareMeasure()}},{key:"render",value:function(){var e=this,t=this.state,n=t.affixStyle,i=t.placeholderStyle,a=this.props,c=a.affixPrefixCls,u=a.children,s=f()(Object(o.a)({},c,!!n)),l=Object(d.a)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls"]);return h.createElement(p.a,{onResize:function(){e.updatePosition()}},h.createElement("div",Object(r.a)({},l,{ref:this.savePlaceholderNode}),n&&h.createElement("div",{style:i,"aria-hidden":"true"}),h.createElement("div",{className:s,ref:this.saveFixedNode,style:n},h.createElement(p.a,{onResize:function(){e.updatePosition()}},u))))}}]),n}(h.Component);k.contextType=v.b,C([Object(y.b)()],k.prototype,"updatePosition",null),C([Object(y.b)()],k.prototype,"lazyUpdatePosition",null);var P=h.forwardRef((function(e,t){var n=e.prefixCls,o=(0,h.useContext(v.b).getPrefixCls)("affix",n),i=Object(r.a)(Object(r.a)({},e),{affixPrefixCls:o});return h.createElement(k,Object(r.a)({},i,{ref:t}))}));t.a=P},VPai:function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},VYXi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerSnapshot=void 0;var r=function(){function e(){}return e.of=function(t,n){var r=new e;return r.bindings=t,r.middleware=n,r},e}();t.ContainerSnapshot=r},VaJR:function(e,t,n){"use strict";n("6JDI"),n("nndn"),e.exports=o,e.exports.default=o;var r=1e20;function o(e,t,n,r,o,i){this.fontSize=e||24,this.buffer=void 0===t?3:t,this.cutoff=r||.25,this.fontFamily=o||"sans-serif",this.fontWeight=i||"normal",this.radius=n||8;var a=this.size=this.fontSize+2*this.buffer,c=a+2*this.buffer,u="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;u?this.canvas=my.createOffscreenCanvas(a,a,"2d"):(this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a),this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(c*c),this.gridInner=new Float64Array(c*c),this.f=new Float64Array(c),this.z=new Float64Array(c+1),this.v=new Uint16Array(c),this.useMetrics=void 0!==this.ctx.measureText("A").actualBoundingBoxLeft,this.middle=u?Math.round(a/2*1):Math.round(a/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function i(e,t,n,r,o,i){for(var c=0;c<t;c++)a(e,c,t,n,r,o,i);for(var u=0;u<n;u++)a(e,u*t,1,t,r,o,i)}function a(e,t,n,o,i,a,c){var u,s,l,f;for(a[0]=0,c[0]=-r,c[1]=r,u=0;u<o;u++)i[u]=e[t+u*n];for(u=1,s=0,l=0;u<o;u++){do{f=a[s],l=(i[u]-i[f]+u*u-f*f)/(u-f)/2}while(l<=c[s]&&--s>-1);a[++s]=u,c[s]=l,c[s+1]=r}for(u=0,s=0;u<o;u++){for(;c[s+1]<u;)s++;f=a[s],e[t+u*n]=i[f]+(u-f)*(u-f)}}o.prototype._draw=function(e,t){var n,o,a,c,u,s,l,f,p,d=this.ctx.measureText(e),h=d.width,v=2*this.buffer;t&&this.useMetrics?(u=Math.floor(d.actualBoundingBoxAscent),f=this.buffer+Math.ceil(d.actualBoundingBoxAscent),s=this.buffer,l=this.buffer,n=(o=Math.min(this.size,Math.ceil(d.actualBoundingBoxRight-d.actualBoundingBoxLeft)))+v,a=(c=Math.min(this.size-s,Math.ceil(d.actualBoundingBoxAscent+d.actualBoundingBoxDescent)))+v,this.ctx.textBaseline="alphabetic"):(n=o=this.size,a=c=this.size,u=19*this.fontSize/24,s=l=0,f=this.middle,this.ctx.textBaseline="middle"),o&&c&&(this.ctx.clearRect(l,s,o,c),this.ctx.fillText(e,this.buffer,f),p=this.ctx.getImageData(l,s,o,c));var y=new Uint8ClampedArray(n*a);return function(e,t,n,o,i,a,c){a.fill(r,0,t*n),c.fill(0,0,t*n);for(var u=(t-o)/2,s=0;s<i;s++)for(var l=0;l<o;l++){var f=(s+u)*t+l+u,p=e.data[4*(s*o+l)+3]/255;if(1===p)a[f]=0,c[f]=r;else if(0===p)a[f]=r,c[f]=0;else{var d=Math.max(0,.5-p),h=Math.max(0,p-.5);a[f]=d*d,c[f]=h*h}}}(p,n,a,o,c,this.gridOuter,this.gridInner),i(this.gridOuter,n,a,this.f,this.v,this.z),i(this.gridInner,n,a,this.f,this.v,this.z),function(e,t,n,r,o,i,a){for(var c=0;c<t*n;c++){var u=Math.sqrt(r[c])-Math.sqrt(o[c]);e[c]=Math.round(255-255*(u/i+a))}}(y,n,a,this.gridOuter,this.gridInner,this.radius,this.cutoff),{data:y,metrics:{width:o,height:c,sdfWidth:n,sdfHeight:a,top:u,left:0,advance:h}}},o.prototype.draw=function(e){return this._draw(e,!1).data},o.prototype.drawWithMetrics=function(e){return this._draw(e,!0)}},VdbV:function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,o=e.indexOf("["),i=e.indexOf("]");-1!=o&&-1!=i&&(e=e.substring(0,o)+e.substring(o,i).replace(/:/g,";")+e.substring(i,e.length));for(var a,c,u=n.exec(e||""),s={},l=14;l--;)s[r[l]]=u[l]||"";return-1!=o&&-1!=i&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=function(e,t){var n=t.replace(/\/{2,9}/g,"/").split("/");"/"!=t.substr(0,1)&&0!==t.length||n.splice(0,1);"/"==t.substr(t.length-1,1)&&n.splice(n.length-1,1);return n}(0,s.path),s.queryKey=(a=s.query,c={},a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(c[t]=n)})),c),s}},VeAG:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("3yBb"),o=function(e){if(Object(r.a)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function i(e,t){return Array.isArray(e)||void 0===t?o(e):function(e,t){if(!o(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}},VfWM:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var r=n("9fIP"),o=n("MMYH"),i=n("K/z8"),a=n("sRHE"),c=n("8K1b"),u=n("pWxA"),s=n("zygG"),l=n("hj/m");function f(e,t){var n=l.transformMat4([],t,e);return l.scale(n,n,1/n[3]),n}var p=n("NJkw"),d=n("F/1k"),h=n("7Th+");function v(e,t){if(!e)throw new Error(t||"viewport-mercator-project: assertion failed.")}var y=Math.PI,m=y/4,g=y/180,b=180/y;function O(e){return Math.pow(2,e)}function w(e,t){var n=Object(s.a)(e,2),r=n[0],o=n[1];v(Number.isFinite(r)&&Number.isFinite(t)),v(Number.isFinite(o)&&o>=-90&&o<=90,"invalid latitude");var i=o*g;return[(t*=512)*(r*g+y)/(2*y),t*(y-Math.log(Math.tan(m+.5*i)))/(2*y)]}function _(e,t){var n=Object(s.a)(e,2),r=n[0],o=n[1],i=r/(t*=512)*(2*y)-y,a=2*(Math.atan(Math.exp(y-o/t*(2*y)))-m);return[i*b,a*b]}function x(e){var t=e.latitude,n=e.longitude,r=e.zoom,o=e.scale,i=e.highPrecision,a=void 0!==i&&i;o=void 0!==o?o:O(r),v(Number.isFinite(t)&&Number.isFinite(n)&&Number.isFinite(o));var c={},u=512*o,s=Math.cos(t*g),l=u/360,f=l/s,p=u/4003e4/s;if(c.pixelsPerMeter=[p,-p,p],c.metersPerPixel=[1/p,-1/p,1/p],c.pixelsPerDegree=[l,-f,p],c.degreesPerPixel=[1/l,-1/f,1/p],a){var d=g*Math.tan(t*g)/s,h=l*d/2,y=u/4003e4*d,m=y/f*p;c.pixelsPerDegree2=[0,-h,y],c.pixelsPerMeter2=[m,0,m]}return c}function E(e){var t=e.height,n=e.pitch,r=e.bearing,o=e.altitude,i=e.center,a=void 0===i?null:i,c=e.flipY,u=void 0!==c&&c,s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return p.translate(s,s,[0,0,-o]),p.scale(s,s,[1,1,1/t]),p.rotateX(s,s,-n*g),p.rotateZ(s,s,r*g),u&&p.scale(s,s,[1,-1,1]),a&&p.translate(s,s,h.negate([],a)),s}function S(e){var t=e.width,n=e.height,r=e.pitch,o=function(e){var t=e.width,n=e.height,r=e.altitude,o=void 0===r?1.5:r,i=e.pitch,a=void 0===i?0:i,c=e.nearZMultiplier,u=void 0===c?1:c,s=e.farZMultiplier,l=void 0===s?1:s,f=a*g,p=Math.atan(.5/o),d=Math.sin(p)*o/Math.sin(Math.PI/2-f-p),h=Math.cos(Math.PI/2-f)*d+o;return{fov:2*Math.atan(n/2/o),aspect:t/n,focalDistance:o,near:u,far:h*l}}({width:t,height:n,altitude:e.altitude,pitch:r,nearZMultiplier:e.nearZMultiplier,farZMultiplier:e.farZMultiplier}),i=o.fov,a=o.aspect,c=o.near,u=o.far;return p.perspective([],i,a,c,u)}function C(e,t){var n=Object(s.a)(e,3),r=n[0],o=n[1],i=n[2],a=void 0===i?0:i;return v(Number.isFinite(r)&&Number.isFinite(o)&&Number.isFinite(a)),f(t,[r,o,a,1])}function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Object(s.a)(e,3),o=r[0],i=r[1],a=r[2];if(v(Number.isFinite(o)&&Number.isFinite(i),"invalid pixel coordinate"),Number.isFinite(a)){var c=f(t,[o,i,a,1]);return c}var u=f(t,[o,i,0,1]),l=f(t,[o,i,1,1]),p=u[2],h=l[2],y=p===h?0:((n||0)-p)/(h-p);return d.lerp([],u,l,y)}var k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function P(e){var t=e.width,n=e.height,r=e.bounds,o=e.minExtent,i=void 0===o?0:o,a=e.maxZoom,c=void 0===a?24:a,u=e.padding,l=void 0===u?0:u,f=e.offset,p=void 0===f?[0,0]:f,d=Object(s.a)(r,2),h=Object(s.a)(d[0],2),y=h[0],m=h[1],g=Object(s.a)(d[1],2),b=g[0],O=g[1];if(Number.isFinite(l)){l={top:l,bottom:l,left:l,right:l}}else v(Number.isFinite(l.top)&&Number.isFinite(l.bottom)&&Number.isFinite(l.left)&&Number.isFinite(l.right));var w=new T({width:t,height:n,longitude:0,latitude:0,zoom:0}),_=w.project([y,O]),x=w.project([b,m]),E=[Math.max(Math.abs(x[0]-_[0]),i),Math.max(Math.abs(x[1]-_[1]),i)],S=[t-l.left-l.right-2*Math.abs(p[0]),n-l.top-l.bottom-2*Math.abs(p[1])];v(S[0]>0&&S[1]>0);var C=S[0]/E[0],j=S[1]/E[1],k=(l.right-l.left)/2/C,P=(l.bottom-l.top)/2/j,M=[(x[0]+_[0])/2+k,(x[1]+_[1])/2+P],A=w.unproject(M),L=w.zoom+Math.log2(Math.abs(Math.min(C,j)));return{longitude:A[0],latitude:A[1],zoom:Math.min(L,c)}}var T=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.width,c=n.height,s=n.latitude,l=void 0===s?0:s,f=n.longitude,p=void 0===f?0:f,d=n.zoom,h=void 0===d?0:d,v=n.pitch,y=void 0===v?0:v,m=n.bearing,g=void 0===m?0:m,b=n.altitude,_=void 0===b?1.5:b,C=n.nearZMultiplier,j=n.farZMultiplier;Object(r.a)(this,t),o=o||1,c=c||1;var k=O(h);_=Math.max(.75,_);var P=w([p,l],k);P[2]=0;var T=S({width:o,height:c,pitch:y,bearing:g,altitude:_,nearZMultiplier:C||1/c,farZMultiplier:j||1.01}),M=E({height:c,center:P,pitch:y,bearing:g,altitude:_,flipY:!0});return(e=Object(i.a)(this,Object(a.a)(t).call(this,{width:o,height:c,viewMatrix:M,projectionMatrix:T}))).latitude=l,e.longitude=p,e.zoom=h,e.pitch=y,e.bearing=g,e.altitude=_,e.scale=k,e.center=P,e.pixelsPerMeter=x(Object(u.a)(Object(u.a)(e))).pixelsPerMeter[2],Object.freeze(Object(u.a)(Object(u.a)(e))),e}return Object(c.a)(t,e),Object(o.a)(t,[{key:"projectFlat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return w(e,t)}},{key:"unprojectFlat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return _(e,t)}},{key:"getMapCenterByLngLatPosition",value:function(e){var t=e.lngLat,n=j(e.pos,this.pixelUnprojectionMatrix),r=w(t,this.scale),o=d.add([],r,d.negate([],n));return _(d.add([],this.center,o),this.scale)}},{key:"getLocationAtPoint",value:function(e){var t=e.lngLat,n=e.pos;return this.getMapCenterByLngLatPosition({lngLat:t,pos:n})}},{key:"fitBounds",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.width,o=this.height,i=P(Object.assign({width:r,height:o,bounds:e},n)),a=i.longitude,c=i.latitude,u=i.zoom;return new t({width:r,height:o,longitude:a,latitude:c,zoom:u})}}]),t}(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width,o=t.height,i=t.viewMatrix,a=void 0===i?k:i,c=t.projectionMatrix,u=void 0===c?k:c;Object(r.a)(this,e),this.width=n||1,this.height=o||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=a,this.projectionMatrix=u;var s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];p.multiply(s,s,this.projectionMatrix),p.multiply(s,s,this.viewMatrix),this.viewProjectionMatrix=s;var l=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];p.scale(l,l,[this.width/2,-this.height/2,1]),p.translate(l,l,[1,-1,0]),p.multiply(l,l,this.viewProjectionMatrix);var f=p.invert([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],l);if(!f)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=l,this.pixelUnprojectionMatrix=f,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return Object(o.a)(e,[{key:"equals",value:function(t){return t instanceof e&&(t.width===this.width&&t.height===this.height&&p.equals(t.projectionMatrix,this.projectionMatrix)&&p.equals(t.viewMatrix,this.viewMatrix))}},{key:"project",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,r=void 0===n||n,o=this.projectPosition(e),i=C(o,this.pixelProjectionMatrix),a=Object(s.a)(i,2),c=a[0],u=a[1],l=r?u:this.height-u;return 2===e.length?[c,l]:[c,l,i[2]]}},{key:"unproject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,r=void 0===n||n,o=t.targetZ,i=Object(s.a)(e,3),a=i[0],c=i[1],u=i[2],l=r?c:this.height-c,f=o&&o*this.pixelsPerMeter,p=j([a,l,u],this.pixelUnprojectionMatrix,f),d=this.unprojectPosition(p),h=Object(s.a)(d,3),v=h[0],y=h[1],m=h[2];return Number.isFinite(u)?[v,y,m]:Number.isFinite(o)?[v,y,o]:[v,y]}},{key:"projectPosition",value:function(e){var t=this.projectFlat(e),n=Object(s.a)(t,2);return[n[0],n[1],(e[2]||0)*this.pixelsPerMeter]}},{key:"unprojectPosition",value:function(e){var t=this.unprojectFlat(e),n=Object(s.a)(t,2);return[n[0],n[1],(e[2]||0)/this.pixelsPerMeter]}},{key:"projectFlat",value:function(e){arguments.length>1&&void 0!==arguments[1]||this.scale;return e}},{key:"unprojectFlat",value:function(e){arguments.length>1&&void 0!==arguments[1]||this.scale;return e}}]),e}())},Vgyk:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ve}));var r,o,i,a,c=n("aWzz"),u=n.n(c),s=n("rqe8"),l=n.n(s),f=n("F0GY"),p=n.n(f),d=n("ERkP"),h=n.n(d),v=n("ch84"),y=n.n(v),m="bodyAttributes",g="htmlAttributes",b="titleAttributes",O={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},w=(Object.keys(O).map((function(e){return O[e]})),"charset"),_="cssText",x="href",E="http-equiv",S="innerHTML",C="itemprop",j="name",k="property",P="rel",T="src",M="target",A={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},L="defaultTitle",R="defer",N="encodeSpecialCharacters",I="onChangeClientState",D="titleTemplate",F=Object.keys(A).reduce((function(e,t){return e[A[t]]=t,e}),{}),z=[O.NOSCRIPT,O.SCRIPT,O.STYLE],B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},V=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},W=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Y=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},K=function(e){var t=Q(e,O.TITLE),n=Q(e,D);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Q(e,L);return t||r||void 0},X=function(e){return Q(e,I)||function(){}},q=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return H({},e,t)}),{})},Z=function(e,t){return t.filter((function(e){return void 0!==e[O.BASE]})).map((function(e){return e[O.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},J=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&re("Helmet: "+e+' should be of type "Array". Instead found type "'+B(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var c=i[a],u=c.toLowerCase();-1===t.indexOf(u)||n===P&&"canonical"===e[n].toLowerCase()||u===P&&"stylesheet"===e[u].toLowerCase()||(n=u),-1===t.indexOf(c)||c!==S&&c!==_&&c!==C||(n=c)}if(!n||!e[n])return!1;var s=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][s]&&(o[n][s]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var c=i[a],u=y()({},r[c],o[c]);r[c]=u}return e}),[]).reverse()},Q=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},$=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){$(e)}),0)}),ee=function(e){return clearTimeout(e)},te="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||$:e.requestAnimationFrame||$,ne="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||ee:e.cancelAnimationFrame||ee,re=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},oe=null,ie=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,u=e.onChangeClientState,s=e.scriptTags,l=e.styleTags,f=e.title,p=e.titleAttributes;ue(O.BODY,r),ue(O.HTML,o),ce(f,p);var d={baseTag:se(O.BASE,n),linkTags:se(O.LINK,i),metaTags:se(O.META,a),noscriptTags:se(O.NOSCRIPT,c),scriptTags:se(O.SCRIPT,s),styleTags:se(O.STYLE,l)},h={},v={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(v[e]=d[e].oldTags)})),t&&t(),u(e,h,v)},ae=function(e){return Array.isArray(e)?e.join(""):e},ce=function(e,t){void 0!==e&&document.title!==e&&(document.title=ae(e)),ue(O.TITLE,t)},ue=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-react-helmet"),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),c=0;c<a.length;c++){var u=a[c],s=t[u]||"";n.getAttribute(u)!==s&&n.setAttribute(u,s),-1===o.indexOf(u)&&o.push(u);var l=i.indexOf(u);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f--)n.removeAttribute(i[f]);o.length===i.length?n.removeAttribute("data-react-helmet"):n.getAttribute("data-react-helmet")!==a.join(",")&&n.setAttribute("data-react-helmet",a.join(","))}},se=function(e,t){var n=document.head||document.querySelector(O.HEAD),r=n.querySelectorAll(e+"[data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===S)n.innerHTML=t.innerHTML;else if(r===_)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute("data-react-helmet","true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},le=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[A[n]||n]=e[n],t}),t)},pe=function(e,t,n){switch(e){case O.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})["data-react-helmet"]=!0,o=fe(n,r),[h.a.createElement(O.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=le(n),i=ae(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+Y(i,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+Y(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case m:case g:return{toComponent:function(){return fe(t)},toString:function(){return le(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})["data-react-helmet"]=!0,r);return Object.keys(t).forEach((function(e){var n=A[e]||e;if(n===S||n===_){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),h.a.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===S||e===_)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+Y(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===z.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},de=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,u=e.scriptTags,s=e.styleTags,l=e.title,f=void 0===l?"":l,p=e.titleAttributes;return{base:pe(O.BASE,t,r),bodyAttributes:pe(m,n,r),htmlAttributes:pe(g,o,r),link:pe(O.LINK,i,r),meta:pe(O.META,a,r),noscript:pe(O.NOSCRIPT,c,r),script:pe(O.SCRIPT,u,r),style:pe(O.STYLE,s,r),title:pe(O.TITLE,{title:f,titleAttributes:p},r)}},he=l()((function(e){return{baseTag:Z([x,M],e),bodyAttributes:q(m,e),defer:Q(e,R),encode:Q(e,N),htmlAttributes:q(g,e),linkTags:J(O.LINK,[P,x],e),metaTags:J(O.META,[j,w,E,k,C],e),noscriptTags:J(O.NOSCRIPT,[S],e),onChangeClientState:X(e),scriptTags:J(O.SCRIPT,[T,S],e),styleTags:J(O.STYLE,[_],e),title:K(e),titleAttributes:q(b,e)}}),(function(e){oe&&ne(oe),e.defer?oe=te((function(){ie(e,(function(){oe=null}))})):(ie(e),oe=null)}),de)((function(){return null})),ve=(o=he,a=i=function(e){function t(){return U(this,t),W(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!p()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case O.SCRIPT:case O.NOSCRIPT:return{innerHTML:t};case O.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return H({},r,((t={})[n.type]=[].concat(r[n.type]||[],[H({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case O.TITLE:return H({},o,((t={})[r.type]=a,t.titleAttributes=H({},i),t));case O.BODY:return H({},o,{bodyAttributes:H({},i)});case O.HTML:return H({},o,{htmlAttributes:H({},i)})}return H({},o,((n={})[r.type]=H({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=H({},t);return Object.keys(e).forEach((function(t){var r;n=H({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return h.a.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[F[n]||n]=e[n],t}),t)}(G(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case O.LINK:case O.META:case O.NOSCRIPT:case O.SCRIPT:case O.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=G(e,["children"]),r=H({},n);return t&&(r=this.mapChildrenToProps(t,r)),h.a.createElement(o,r)},V(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(h.a.Component),i.propTypes={base:u.a.object,bodyAttributes:u.a.object,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]),defaultTitle:u.a.string,defer:u.a.bool,encodeSpecialCharacters:u.a.bool,htmlAttributes:u.a.object,link:u.a.arrayOf(u.a.object),meta:u.a.arrayOf(u.a.object),noscript:u.a.arrayOf(u.a.object),onChangeClientState:u.a.func,script:u.a.arrayOf(u.a.object),style:u.a.arrayOf(u.a.object),title:u.a.string,titleAttributes:u.a.object,titleTemplate:u.a.string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);ve.renderStatic=ve.rewind}).call(this,n("fRV1"))},VrFO:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},VtSi:function(e,t,n){var r=n("KaVu")();e.exports=r;try{regeneratorRuntime=r}catch(o){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},VvbM:function(e,t){e.exports=function(e){return"function"==typeof e["@@transducer/step"]}},"VxF/":function(e,t,n){"use strict";t.a=function(){return!1}},"W/Kd":function(e,t,n){var r=n("695J");e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},W0vE:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},"WJ/m":function(e,t,n){e.exports.VectorTile=n("Bp1t"),e.exports.VectorTileFeature=n("aMhq"),e.exports.VectorTileLayer=n("/GY5")},WJeu:function(e,t,n){"use strict";var r=n("bOZ7"),o=n("Nogd"),i=n("jvEv"),a=i.union,c=i.derivations,u=n("USM+"),s=n("03hK"),l=n("0C76"),f=n("1ims"),p=c.equality,d=c.debugRepresentation,h=c.serialization,v=a("folktale:Maybe",{Nothing:function(){},Just:function(e){return{value:e}}}).derive(p,d,h),y=v.Nothing,m=v.Just,g=r(v);f(m.prototype,{get value(){throw new TypeError("`value` can’t be accessed in an abstract instance of Maybe.Just")}}),l(v,{map:{Nothing:function(e){return o("Maybe.Nothing#map",e),this},Just:function(e){return o("Maybe.Just#map",e),m(e(this.value))}},apply:{Nothing:function(e){return g("Maybe.Nothing#apply",e),this},Just:function(e){return g("Maybe.Just#apply",e),e.map(this.value)}},chain:{Nothing:function(e){return o("Maybe.Nothing#chain",e),this},Just:function(e){return o("Maybe.Just#chain",e),e(this.value)}},unsafeGet:{Nothing:function(){throw new TypeError("Can't extract the value of a Nothing.\n\n Since Nothing holds no values, it's not possible to extract one from them.\n You might consider switching from Maybe#get to Maybe#getOrElse, or some other method\n that is not partial.\n ")},Just:function(){return this.value}},getOrElse:{Nothing:function(e){return e},Just:function(e){return this.value}},orElse:{Nothing:function(e){return o("Maybe.Nothing#orElse",e),e(this.value)},Just:function(e){return o("Maybe.Nothing#orElse",e),this}},concat:{Nothing:function(e){return g("Maybe.Nothing#concat",e),e},Just:function(e){var t=this;return g("Maybe.Just#concat",e),e.matchWith({Nothing:function(){return m(t.value)},Just:function(e){return m(t.value.concat(e.value))}})}},cata:{Nothing:function(e){return s("`.cata(pattern)` is deprecated. Use `.matchWith(pattern)` instead."),e.Nothing()},Just:function(e){return s("`.cata(pattern)` is deprecated. Use `.matchWith(pattern)` instead."),e.Just(this.value)}},fold:{Nothing:function(e,t){return o("Maybe.Nothing#fold",e),o("Maybe.Nothing#fold",t),e()},Just:function(e,t){return o("Maybe.Just#fold",e),o("Maybe.Just#fold",t),t(this.value)}},filter:{Nothing:function(e){return o("Maybe.Nothing#filter",e),this},Just:function(e){return o("Maybe.Just#filter",e),e(this.value)?this:y()}},or:{Nothing:function(e){return g("Maybe.Nothing#or",e),e},Just:function(e){return g("Maybe.Just#or",e),this}}}),Object.assign(v,{of:function(e){return m(e)},empty:function(){return y()},get:function(){return s("`.get()` is deprecated, and has been renamed to `.unsafeGet()`."),this.unsafeGet()},toResult:function(e){return n("wbXe")(this,e)},toValidation:function(e){return n("ZfBd")(this,e)}}),u(m.prototype),u(y.prototype),u(v),e.exports=v},WSTu:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("Czhu");function o(e,t){var n=Object(r.a)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},WWiX:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var r=n("mGvo"),o=n.n(r),i=n("pufz"),a=n("zEXi"),c=n("pfNN"),u=n("wIdy"),s=n("phgI");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){f=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(k){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=u;var p={};function d(){}function h(){}function v(){}var y={};c(y,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,o)&&(y=g);var b=v.prototype=d.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var f=u.arg,p=f.value;return p&&"object"==l(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(p).then((function(e){f.value=e,a(f)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=v,c(b,"constructor",v),c(v,"constructor",h),h.displayName=c(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},O(w.prototype),c(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(b),c(b,a,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function p(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,c,"next",e)}function c(e){p(i,r,o,a,c,"throw",e)}a(void 0)}))}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var S='#define SDF_PX 8.0\n#define EDGE_GAMMA 0.105\n#define FONT_SIZE 48.0\nuniform sampler2D u_sdf_map;\nuniform float u_gamma_scale : 0.5;\n// uniform float u_font_size : 24.0;\nuniform float u_opacity : 1.0;\nuniform vec4 u_stroke_color : [0, 0, 0, 1];\nuniform float u_stroke_width : 2.0;\nuniform float u_halo_blur : 0.5;\nuniform float u_DevicePixelRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_uv;\nvarying float v_gamma_scale;\nvarying float v_fontScale;\n\n#pragma include "picking"\nvoid main() {\n // get sdf from atlas\n float dist = texture2D(u_sdf_map, v_uv).a;\n\n lowp float buff = (6.0 - u_stroke_width / v_fontScale) / SDF_PX;\n highp float gamma = (u_halo_blur * 1.19 / SDF_PX + EDGE_GAMMA) / (v_fontScale * u_gamma_scale) / 1.0;\n\n highp float gamma_scaled = gamma * v_gamma_scale;\n\n highp float alpha = smoothstep(buff - gamma_scaled, buff + gamma_scaled, dist);\n \n gl_FragColor = mix(vec4(v_color.rgb, v_color.a * u_opacity), vec4(u_stroke_color.rgb, u_stroke_color.a * u_opacity), smoothstep(0., 0.5, 1. - dist));\n gl_FragColor.a= gl_FragColor.a * alpha;\n gl_FragColor = filterColor(gl_FragColor);\n}\n',C='#define SDF_PX 8.0\n#define EDGE_GAMMA 0.105\n#define FONT_SIZE 24.0\nattribute vec3 a_Position;\nattribute vec2 a_tex;\nattribute vec2 a_textOffsets;\nattribute vec4 a_Color;\nattribute float a_Size;\n\nuniform vec2 u_sdf_map_size;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\nvarying vec2 v_uv;\nvarying float v_gamma_scale;\nvarying vec4 v_color;\nvarying float v_fontScale;\n\nuniform float u_opacity : 1;\nuniform float u_stroke_width : 2;\nuniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0];\n\n#pragma include "projection"\n#pragma include "picking"\n\nvoid main() {\n v_color = a_Color;\n v_uv = a_tex / u_sdf_map_size;\n\n // 文本缩放比例\n float fontScale = a_Size / FONT_SIZE;\n v_fontScale = fontScale;\n\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n vec4 projected_position;\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n projected_position = u_Mvp * (vec4(a_Position.xyz, 1.0));\n } else { // else\n projected_position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n\n gl_Position = vec4(\n projected_position.xy / projected_position.w + a_textOffsets * fontScale / u_ViewportSize * 2.0 * u_DevicePixelRatio, 0.0, 1.0);\n v_gamma_scale = gl_Position.w;\n setPickingColor(a_PickingColor);\n\n}\n',j="#define SDF_PX 8.0\n#define EDGE_GAMMA 0.105\n#define FONT_SIZE 48.0\nuniform sampler2D u_sdf_map;\nuniform float u_gamma_scale : 0.5;\n\nuniform float u_opacity : 1.0;\nuniform vec4 u_stroke_color : [0, 0, 0, 1];\nuniform float u_stroke_width : 2.0;\nuniform float u_halo_blur : 0.5;\nuniform float u_DevicePixelRatio;\n\nvarying vec2 v_uv;\nvarying float v_gamma_scale;\nvarying float v_fontScale;\nuniform vec4 u_color;\n\nvoid main() {\n // get sdf from atlas\n float dist = texture2D(u_sdf_map, v_uv).a;\n\n lowp float buff = (6.0 - u_stroke_width / v_fontScale) / SDF_PX;\n highp float gamma = (u_halo_blur * 1.19 / SDF_PX + EDGE_GAMMA) / (v_fontScale * u_gamma_scale) / 1.0;\n\n highp float gamma_scaled = gamma * v_gamma_scale;\n\n highp float alpha = smoothstep(buff - gamma_scaled, buff + gamma_scaled, dist);\n \n gl_FragColor = mix(vec4(u_color.rgb, u_color.a * u_opacity), vec4(u_stroke_color.rgb, u_stroke_color.a * u_opacity), smoothstep(0., 0.5, 1. - dist));\n gl_FragColor.a= gl_FragColor.a * alpha;\n}\n",k='#define FONT_SIZE 24.0\nattribute vec3 a_Position;\nattribute vec2 a_tex;\nattribute vec2 a_textOffsets;\n\nuniform vec2 u_sdf_map_size;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\nuniform float u_size;\n\nvarying vec2 v_uv;\nvarying float v_gamma_scale;\nvarying float v_fontScale;\n\n#pragma include "projection"\n\nvoid main() {\n v_uv = a_tex / u_sdf_map_size;\n\n // 文本缩放比例\n float fontScale = u_size / FONT_SIZE;\n v_fontScale = fontScale;\n\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n vec4 projected_position;\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n projected_position = u_Mvp * (vec4(a_Position.xyz, 1.0));\n } else { // else\n projected_position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n\n gl_Position = vec4(\n projected_position.xy / projected_position.w + a_textOffsets * fontScale / u_ViewportSize * 2.0 * u_DevicePixelRatio, 0.0, 1.0);\n v_gamma_scale = gl_Position.w;\n\n}\n';function P(e){var t=e.id,n=[],r=[];if(!this.glyphInfoMap||!this.glyphInfoMap[t])return{vertices:[],indices:[],size:7};var o=this.glyphInfoMap[t].centroid,i=2===o.length?[o[0],o[1],0]:o;return this.glyphInfoMap[t].glyphQuads.forEach((function(e,t){n.push.apply(n,_(i).concat([e.tex.x,e.tex.y+e.tex.height,e.tl.x,e.tl.y],_(i),[e.tex.x+e.tex.width,e.tex.y+e.tex.height,e.tr.x,e.tr.y],_(i),[e.tex.x+e.tex.width,e.tex.y,e.br.x,e.br.y],_(i),[e.tex.x,e.tex.y,e.bl.x,e.bl.y])),r.push(0+4*t,1+4*t,2+4*t,2+4*t,3+4*t,0+4*t)})),{vertices:n,indices:r,size:7}}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(l,e);var t,n,r,c=m(l);function l(){var e;h(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(b(e=c.call.apply(c,[this].concat(n))),"glyphInfoMap",{}),w(b(e),"currentZoom",-1),w(b(e),"textureHeight",0),w(b(e),"textCount",0),w(b(e),"preTextStyle",{}),w(b(e),"buildModels",function(){var t=d(f().mark((function t(n){var r,o;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.mapping(),r=e.layer.getLayerConfig(),o=r.usage,e.layer.buildLayerModel({moduleName:"pointTileText_"+o,vertexShader:"basemap"===o?k:C,fragmentShader:"basemap"===o?j:S,triangulation:P.bind(b(e)),depth:{enable:!1},blend:e.getBlend(),pick:"basemap"!==o}).then((function(e){n([e])})).catch((function(e){console.warn(e),n([])}));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),w(b(e),"mapping",(function(){e.initGlyph(),e.updateTexture(),e.filterGlyphs(),e.reBuildModel()})),e}return t=l,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.stroke,i=void 0===r?"#fff":r,c=e.strokeWidth,u=void 0===c?0:c,s=e.textAnchor,l=void 0===s?"center":s,f=e.textAllowOverlap,p=void 0!==f&&f,d=e.halo,h=void 0===d?.5:d,v=e.gamma,y=void 0===v?2:v,m=e.usage,g=e.color,b=void 0===g?"#fff":g,O=e.size,w=void 0===O?1:O,_=this.fontService,x=_.canvas,E=_.mapping;return Object.keys(E).length!==this.textCount&&(this.updateTexture(),this.textCount=Object.keys(E).length),this.preTextStyle={textAnchor:l,textAllowOverlap:p},{u_opacity:o()(n)?n:1,u_stroke_width:o()(u)?u:1,u_stroke_color:this.getStrokeColor(i),u_sdf_map:this.texture,u_halo_blur:h,u_gamma_scale:y,u_sdf_map_size:[x.width,x.height],u_color:"basemap"===m?Object(a.Eb)(b):[0,0,0,0],u_size:"basemap"===m?w:1}}},{key:"initModels",value:function(e){this.extent=this.textExtent();var t=this.layer.getLayerConfig(),n=t.textAnchor,r=void 0===n?"center":n,o=t.textAllowOverlap,i=void 0===o||o;this.preTextStyle={textAnchor:r,textAllowOverlap:i},this.buildModels(e)}},{key:"clearModels",value:function(){var e;null===(e=this.texture)||void 0===e||e.destroy()}},{key:"registerBuiltinAttributes",value:function(){var e=this.layer.getLayerConfig().usage;this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:i.AttributeType.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:i.gl.STATIC_DRAW,data:[],type:i.gl.FLOAT},size:2,update:function(e,t,n){return[n[5],n[6]]}}}),"basemap"!==e&&this.styleAttributeService.registerStyleAttribute({name:"size",type:i.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?12:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:i.AttributeType.Attribute,descriptor:{name:"a_tex",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}},{key:"textExtent",value:function(){var e=this.mapService.getBounds();return Object(a.Ab)(e,.5)}},{key:"initTextFont",value:function(){var e=this.layer.getLayerConfig(),t=e.fontWeight,n=void 0===t?"400":t,r=e.fontFamily,o=void 0===r?"sans-serif":r,i=this.layer.getEncodedData(),a=[];i.forEach((function(e){var t,n=e.shape,r=void 0===n?"":n,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=x(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(r=r.toString());try{for(o.s();!(t=o.n()).done;){var i=t.value;-1===a.indexOf(i)&&a.push(i)}}catch(c){o.e(c)}finally{o.f()}})),this.fontService.setFontOptions({characterSet:a,fontWeight:n,fontFamily:o,iconfont:!1})}},{key:"generateGlyphLayout",value:function(){var e=this,t=this.fontService.mapping,n=this.layer.getLayerConfig(),r=n.spacing,o=void 0===r?2:r,i=n.textAnchor,c=void 0===i?"center":i,u=this.layer.getEncodedData();this.glyphInfo=u.map((function(n){var r=n.shape,i=void 0===r?"":r,u=n.id,l=n.size,f=void 0===l?1:l,p=n.textOffset,d=void 0===p?[0,0]:p,h=Object(s.b)(i.toString(),t,f,c,"left",o,d,!1),v=Object(s.a)(h,d,!1);return n.shaping=h,n.glyphQuads=v,n.centroid=Object(a.C)(n.coordinates),n.originCentroid="GAODE2.x"===n.version?Object(a.C)(n.originCoordinates):n.originCentroid=n.centroid,e.glyphInfoMap[u]={shaping:h,glyphQuads:v,centroid:Object(a.C)(n.coordinates)},n}))}},{key:"filterGlyphs",value:function(){var e=this,t=this.layer.getLayerConfig(),n=t.padding,r=void 0===n?[4,4]:n,o=t.textAllowOverlap;if(void 0===o||!o){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var i=this.rendererService.getViewportSize(),a=i.width,c=i.height,s=new u.a(a,c);this.glyphInfo.filter((function(t){var n=t.shaping,o=t.id,i=void 0===o?0:o,a="GAODE2.x"===t.version?t.originCentroid:t.centroid,c=t.size/24,u=e.mapService.lngLatToContainer(a),l=s.placeCollisionBox({x1:n.left*c-r[0],x2:n.right*c+r[0],y1:n.top*c-r[1],y2:n.bottom*c+r[1],anchorPointX:u.x,anchorPointY:u.y}).box;return!(!l||!l.length||(s.insertCollisionBox(l,i),0))})).forEach((function(t){e.glyphInfoMap[t.id]=t}))}}},{key:"initGlyph",value:function(){this.initTextFont(),this.generateGlyphLayout()}},{key:"updateTexture",value:function(){var e=this.rendererService.createTexture2D,t=this.fontService.canvas;this.textureHeight=t.height,this.texture&&this.texture.destroy(),this.texture=e({data:t,mag:i.gl.LINEAR,min:i.gl.LINEAR,width:t.width,height:t.height})}},{key:"reBuildModel",value:function(){var e=this,t=this.layer.getLayerConfig().usage;this.filterGlyphs(),this.layer.buildLayerModel({moduleName:"pointTileText_"+t,vertexShader:"basemap"===t?k:C,fragmentShader:"basemap"===t?j:S,triangulation:P.bind(this),depth:{enable:!1},blend:this.getBlend(),pick:"basemap"!==t}).then((function(t){e.layer.models=[t],e.layerService.throttleRenderLayers()})).catch((function(t){console.warn(t),e.layer.models=[]}))}}])&&v(t.prototype,n),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(c.a)},Wbd9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingWhenOnSyntax=void 0;var r=n("dqzZ"),o=n("LoNN"),i=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new r.BindingOnSyntax(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingWhenOnSyntax=i},Wbzz:function(e,t,n){"use strict";n.r(t),n.d(t,"graphql",(function(){return g})),n.d(t,"StaticQueryContext",(function(){return h})),n.d(t,"StaticQuery",(function(){return y})),n.d(t,"useStaticQuery",(function(){return m})),n.d(t,"prefetchPathname",(function(){return d}));var r=n("ERkP"),o=n.n(r),i=n("aWzz"),a=n.n(i),c=n("O+tk"),u=n.n(c);n.d(t,"Link",(function(){return u.a})),n.d(t,"withAssetPrefix",(function(){return c.withAssetPrefix})),n.d(t,"withPrefix",(function(){return c.withPrefix})),n.d(t,"parsePath",(function(){return c.parsePath})),n.d(t,"navigate",(function(){return c.navigate})),n.d(t,"push",(function(){return c.push})),n.d(t,"replace",(function(){return c.replace})),n.d(t,"navigateTo",(function(){return c.navigateTo}));var s=n("1T57");n.d(t,"useScrollRestoration",(function(){return s.useScrollRestoration}));var l=n("lw3w"),f=n.n(l);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"PageRenderer",(function(){return f.a}));var d=n("emEt").default.enqueue,h=o.a.createContext({});function v(e){var t=e.staticQueryData,n=e.data,r=e.query,i=e.render,a=n?n.data:t[r]&&t[r].data;return o.a.createElement(o.a.Fragment,null,a&&i(a),!a&&o.a.createElement("div",null,"Loading (StaticQuery)"))}var y=function(e){var t=e.data,n=e.query,r=e.render,i=e.children;return o.a.createElement(h.Consumer,null,(function(e){return o.a.createElement(v,{data:t,query:n,render:r||i,staticQueryData:e})}))},m=function(e){var t;p(o.a.useContext);var n=o.a.useContext(h);if(isNaN(Number(e)))throw new Error("useStaticQuery was called with a string but expects to be called using `graphql`. Try this:\n\nimport { useStaticQuery, graphql } from 'gatsby';\n\nuseStaticQuery(graphql`".concat(e,"`);\n"));if(null!==(t=n[e])&&void 0!==t&&t.data)return n[e].data;throw new Error("The result of this StaticQuery could not be fetched.\n\nThis is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/gatsbyjs/gatsby/issues")};function g(){throw new Error("It appears like Gatsby is misconfigured. Gatsby related `graphql` calls are supposed to only be evaluated at compile time, and then compiled away. Unfortunately, something went wrong and the query was left in the compiled code.\n\nUnless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.")}y.propTypes={data:a.a.object,query:a.a.string.isRequired,render:a.a.func,children:a.a.func}},Wdz6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(){return"undefined"==typeof window?null:(window.navigator.languages?window.navigator.languages[0]:null)||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}},WhsZ:function(e,t,n){var r=n("BkAM"),o=n("UOep");e.exports=function(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return o(n)?t:r((function(t){return e(n,t)}));default:return o(n)&&o(i)?t:o(n)?r((function(t){return e(t,i)})):o(i)?r((function(t){return e(n,t)})):e(n,i)}}}},Wkny:function(e,t,n){var r=n("rxHK"),o=n("BkAM"),i=n("WhsZ"),a=n("9cwg");e.exports=i((function(e,t){return 1===e?o(t):r(e,a(e,[],t))}))},WvW5:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"j",(function(){return i})),n.d(t,"k",(function(){return a})),n.d(t,"g",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"h",(function(){return s})),n.d(t,"i",(function(){return l})),n.d(t,"m",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"l",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return y}));var r={centimeters:637100880,centimetres:637100880,degrees:6371008.8/111325,feet:20902260.511392,inches:6371008.8*39.37,kilometers:6371.0088,kilometres:6371.0088,meters:6371008.8,metres:6371008.8,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:6371008.8/1852,radians:1,yards:6371008.8*1.0936};function o(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function i(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!v(e[0])||!v(e[1]))throw new Error("coordinates must contain numbers");return o({type:"Point",coordinates:e},t,n)}function a(e,t,n){void 0===n&&(n={});for(var r=0,i=e;r<i.length;r++){var a=i[r];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var c=0;c<a[a.length-1].length;c++)if(a[a.length-1][c]!==a[0][c])throw new Error("First and last Position are not equivalent.")}return o({type:"Polygon",coordinates:e},t,n)}function c(e,t,n){if(void 0===n&&(n={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return o({type:"LineString",coordinates:e},t,n)}function u(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function s(e,t,n){return void 0===n&&(n={}),o({type:"MultiLineString",coordinates:e},t,n)}function l(e,t,n){return void 0===n&&(n={}),o({type:"MultiPolygon",coordinates:e},t,n)}function f(e,t){void 0===t&&(t="kilometers");var n=r[t];if(!n)throw new Error(t+" units is invalid");return e*n}function p(e,t){void 0===t&&(t="kilometers");var n=r[t];if(!n)throw new Error(t+" units is invalid");return e/n}function d(e){return 180*(e%(2*Math.PI))/Math.PI}function h(e){return e%360*Math.PI/180}function v(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function y(e){return!!e&&e.constructor===Object}},WxKw:function(e,t,n){var r=n("1Mu/"),o=n("q9+l"),i=n("lhjL");e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},X4R2:function(e,t){e.exports=function(){return[]}},XBQK:function(e,t,n){"use strict";var r=n("cxan"),o=n("4wDe"),i=n("zygG"),a=n("zjfJ"),c=n("PtGW"),u=n("O94r"),s=n.n(u),l=n("IjRU"),f=n("99DC"),p=n("MSM+"),d=n("ERkP"),h=n("H84U"),v=n("UuAG"),y=n("NWM5"),m=n("0n0R"),g=n("CWQg"),b=n("hShO"),O=n("2/Rp"),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},_=O.a.Group,x=function(e){var t=d.useContext(h.b),n=t.getPopupContainer,o=t.getPrefixCls,a=t.direction,c=e.prefixCls,u=e.type,l=void 0===u?"default":u,f=e.disabled,p=e.loading,v=e.onClick,y=e.htmlType,m=e.children,g=e.className,x=e.overlay,E=e.trigger,S=e.align,j=e.visible,k=e.onVisibleChange,P=e.placement,T=e.getPopupContainer,M=e.href,A=e.icon,L=void 0===A?d.createElement(b.a,null):A,R=e.title,N=e.buttonsRender,I=void 0===N?function(e){return e}:N,D=e.mouseEnterDelay,F=e.mouseLeaveDelay,z=e.overlayClassName,B=e.overlayStyle,U=e.destroyPopupOnHide,V=w(e,["prefixCls","type","disabled","loading","onClick","htmlType","children","className","overlay","trigger","align","visible","onVisibleChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide"]),H=o("dropdown-button",c),G={align:S,overlay:x,disabled:f,trigger:f?[]:E,onVisibleChange:k,getPopupContainer:T||n,mouseEnterDelay:D,mouseLeaveDelay:F,overlayClassName:z,overlayStyle:B,destroyPopupOnHide:U};"visible"in e&&(G.visible=j),G.placement="placement"in e?P:"rtl"===a?"bottomLeft":"bottomRight";var W=I([d.createElement(O.a,{type:l,disabled:f,loading:p,onClick:v,htmlType:y,href:M,title:R},m),d.createElement(O.a,{type:l,icon:L})]),Y=Object(i.a)(W,2),K=Y[0],X=Y[1];return d.createElement(_,Object(r.a)({},V,{className:s()(H,g)}),K,d.createElement(C,Object(r.a)({},G),X))};x.__ANT_BUTTON=!0;var E=x,S=(Object(g.a)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight","top","bottom"),function(e){var t,n=d.useContext(h.b),u=n.getPopupContainer,g=n.getPrefixCls,b=n.direction,O=e.arrow,w=e.prefixCls,_=e.children,x=e.trigger,E=e.disabled,S=e.getPopupContainer,C=e.overlayClassName,j=e.visible,k=e.onVisibleChange,P=g("dropdown",w),T=d.Children.only(_),M=Object(m.a)(T,{className:s()("".concat(P,"-trigger"),Object(a.a)({},"".concat(P,"-rtl"),"rtl"===b),T.props.className),disabled:E}),A=E?[]:x;A&&-1!==A.indexOf("contextMenu")&&(t=!0);var L,R,N,I,D=Object(p.a)(!1,{value:j}),F=Object(i.a)(D,2),z=F[0],B=F[1],U=Object(f.a)((function(e){null==k||k(e),B(e)})),V=s()(C,Object(a.a)({},"".concat(P,"-rtl"),"rtl"===b)),H=Object(y.a)({arrowPointAtCenter:"object"===Object(o.a)(O)&&O.pointAtCenter,autoAdjustOverflow:!0}),G=d.useCallback((function(){B(!1)}),[]);return d.createElement(l.a,Object(r.a)({alignPoint:t},e,{visible:z,builtinPlacements:H,arrow:!!O,overlayClassName:V,prefixCls:P,getPopupContainer:S||u,transitionName:(L=g(),R=e.placement,N=void 0===R?"":R,I=e.transitionName,void 0!==I?I:N.indexOf("top")>=0?"".concat(L,"-slide-down"):"".concat(L,"-slide-up")),trigger:A,overlay:function(){var t,n=e.overlay;return t="function"==typeof n?n():n,t=d.Children.only("string"==typeof t?d.createElement("span",null,t):t),d.createElement(v.a,{prefixCls:"".concat(P,"-menu"),expandIcon:d.createElement("span",{className:"".concat(P,"-menu-submenu-arrow")},d.createElement(c.a,{className:"".concat(P,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:G,validator:function(e){e.mode}},t)},placement:function(){var t=e.placement;return t?t.includes("Center")?t.slice(0,t.indexOf("Center")):t:"rtl"===b?"bottomRight":"bottomLeft"}(),onVisibleChange:U}),M)});S.Button=E,S.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var C=t.a=S},XI05:function(e,t,n){"use strict";var r=n("ERkP"),o=n("H84U"),i=n("ECub");t.a=function(e){return r.createElement(o.a,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return r.createElement(i.a,{image:i.a.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(i.a,{image:i.a.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return r.createElement(i.a,null)}}))}},XKHd:function(e,t,n){"use strict";var r=Function.prototype.toString;t.a=function(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},XLVD:function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return r})),n.d(t,"registerImage",(function(){return i})),n.d(t,"registerImages",(function(){return a})),n.d(t,"unregisterImage",(function(){return c})),n.d(t,"registerFontFace",(function(){return s})),n.d(t,"unregisterFontFace",(function(){return l})),n.d(t,"registerIconFont",(function(){return p})),n.d(t,"registerIconFonts",(function(){return d})),n.d(t,"unregisterIconFont",(function(){return h})),n.d(t,"getTheme",(function(){return pe})),n.d(t,"registerTheme",(function(){return de})),n.d(t,"BlendType",(function(){return ye.BlendType})),n.d(t,"LineStyleType",(function(){return he})),n.d(t,"LayerType",(function(){return ve})),n.d(t,"MapboxglMap",(function(){return be.Map})),n.d(t,"Source",(function(){return Oe.a})),n.d(t,"BaseMapType",(function(){return me})),n.d(t,"PlotType",(function(){return ge})),n.d(t,"TooltipAnchorType",(function(){return Se.u})),n.d(t,"PositionType",(function(){return ye.PositionType})),n.d(t,"Map",(function(){return dt})),n.d(t,"Plot",(function(){return Et})),n.d(t,"L7Plot",(function(){return Xn})),n.d(t,"DotLayer",(function(){return Dt})),n.d(t,"IconLayer",(function(){return Fn})),n.d(t,"DotDensityLayer",(function(){return Ut})),n.d(t,"TextLayer",(function(){return _t})),n.d(t,"HeatmapLayer",(function(){return Kt})),n.d(t,"GridLayer",(function(){return Qt})),n.d(t,"HexbinLayer",(function(){return rn})),n.d(t,"PathLayer",(function(){return pn})),n.d(t,"ArcLayer",(function(){return vn})),n.d(t,"AreaLayer",(function(){return xn})),n.d(t,"PrismLayer",(function(){return Gn})),n.d(t,"Dot",(function(){return Ft})),n.d(t,"DotDensity",(function(){return Vt})),n.d(t,"Heatmap",(function(){return Xt})),n.d(t,"Grid",(function(){return $t})),n.d(t,"Hexbin",(function(){return on})),n.d(t,"Path",(function(){return dn})),n.d(t,"Flow",(function(){return yn})),n.d(t,"Area",(function(){return En})),n.d(t,"Choropleth",(function(){return Dn}));var r="0.1.0",o=new Map;function i(e,t){o.set(e,t)}function a(e){e.forEach((function(e){o.set(e.id,e.image)}))}function c(e){return o.delete(e)}var u=new Map;function s(e,t){u.set(e,t)}function l(e){return u.delete(e)}var f=new Map;function p(e,t){f.set(e,t)}function d(e){e.forEach((function(e){f.set(e.name,e.fontUnicode)}))}function h(e){return f.delete(e)}var v=function(e){return null!==e&&"function"!=typeof e&&isFinite(e.length)},y={}.toString,m=function(e,t){return y.call(e)==="[object "+t+"]"},g=function(e){return m(e,"Function")},b=function(e){return null==e},O=function(e){return Array.isArray?Array.isArray(e):m(e,"Array")},w=function(e){var t=typeof e;return null!==e&&"object"===t||"function"===t};var _=function(e,t){if(e)if(O(e))for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);else if(w(e))for(var o in e)if(e.hasOwnProperty(o)&&!1===t(e[o],o))break};Object.keys;var x=function(e){return"object"==typeof e&&null!==e},E=function(e){if(!x(e)||!m(e,"Object"))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t};var S=Array.prototype,C=(S.splice,S.indexOf,Array.prototype.splice,n("tQbP"),function(e){return m(e,"String")});Object.prototype.hasOwnProperty;var j=function(e){return m(e,"Number")};Number.isInteger&&Number.isInteger;Math.PI,parseInt,Math.PI;var k=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return _(e,(function(n,r){g(e)&&"prototype"===r||t.push(n)})),t},P=function(e){return b(e)?"":e.toString()},T=function(e){return P(e).toLowerCase()};var M=function(e,t){return e&&t?e.replace(/\\?\{([^{}]+)\}/g,(function(e,n){return"\\"===e.charAt(0)?e.slice(1):void 0===t[n]?"":t[n]})):e},A=function(e){return m(e,"Boolean")},L=(Object.prototype,function(e){return void 0===e});var R=function e(t){if("object"!=typeof t||null===t)return t;var n;if(O(t)){n=[];for(var r=0,o=t.length;r<o;r++)"object"==typeof t[r]&&null!=t[r]?n[r]=e(t[r]):n[r]=t[r]}else for(var i in n={},t)"object"==typeof t[i]&&null!=t[i]?n[i]=e(t[i]):n[i]=t[i];return n};function N(e,t,n,r){for(var o in n=n||0,r=r||5,t)if(t.hasOwnProperty(o)){var i=t[o];null!==i&&E(i)?(E(e[o])||(e[o]={}),n<r?N(e[o],i,n+1,r):e[o]=t[o]):O(i)?(e[o]=[],e[o]=e[o].concat(i)):void 0!==i&&(e[o]=i)}}var I=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r+=1)N(e,t[r]);return e};Object.prototype.hasOwnProperty;var D=function e(t,n){if(t===n)return!0;if(!t||!n)return!1;if(C(t)||C(n))return!1;if(v(t)||v(n)){if(t.length!==n.length)return!1;for(var r=!0,o=0;o<t.length&&(r=e(t[o],n[o]));o++);return r}if(x(t)||x(n)){var i=Object.keys(t),a=Object.keys(n);if(i.length!==a.length)return!1;for(r=!0,o=0;o<i.length&&(r=e(t[i[o]],n[i[o]]));o++);return r}return!1},F=Object.prototype.hasOwnProperty,z=function(e,t){if(null===e||!E(e))return{};var n={};return _(t,(function(t){F.call(e,t)&&(n[t]=e[t])})),n},B={},U=function(e){return B[e=e||"g"]?B[e]+=1:B[e]=1,e+B[e]};var V,H=n("D57K"),G=(function(e,t){if(!g(e))throw new TypeError("Expected a function");var n=function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var c=e.apply(this,r);return a.set(i,c),c};n.cache=new Map}((function(e,t){void 0===t&&(t={});var n=t.fontSize,r=t.fontFamily,o=t.fontWeight,i=t.fontStyle,a=t.fontVariant;return V||(V=document.createElement("canvas").getContext("2d")),V.font=[i,a,o,n+"px",r].join(" "),V.measureText(C(e)?e:"").width}),(function(e,t){return void 0===t&&(t={}),Object(H.h)([e],k(t)).join("")})),function(){function e(){this.map={}}e.prototype.has=function(e){return void 0!==this.map[e]},e.prototype.get=function(e,t){var n=this.map[e];return void 0===n?t:n},e.prototype.set=function(e,t){this.map[e]=t},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(e){delete this.map[e]},e.prototype.size=function(){return Object.keys(this.map).length}}(),n("HVFg")),W=n("KXuV"),Y=n("Kklp");function K(e){var t,n,r,o={point:{default:{fill:e.pointFillColor,size:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{fill:e.pointActiveFillColor},selected:{fill:e.pointSelectedFillColor}}};return{mapStyle:e.mapStyle,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,fontFamily:e.fontFamily,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["circle","square"],line:["line"]},sizes:[1,10],geometries:{point:{circle:{default:{style:o.point.default},active:{style:o.point.active},selected:{style:o.point.selected}}},line:{},polygon:{}},components:{legend:{category:{domStyles:(t={},t[W.CONTAINER_CLASS]={visibility:"visible",zIndex:1,backgroundColor:e.legendContainerFillColor,boxShadow:e.legendContainerShadow,borderRadius:"".concat(e.legendContainerBorderRadius,"px"),color:e.legendTextFillColor,fontFamily:e.fontFamily,padding:"10px",lineHeight:"1",fontSize:"".concat(e.legendTextFontSize,"px")},t[W.TITLE_CLASS]={fontSize:"13px",lineHeight:"19px",marginBottom:"8px"},t[W.LIST_CLASS]={margin:"0px",padding:"0px"},t[W.LIST_ITEM_CLASS]={marginBottom:"2px"},t[W.MARKER_CLASS]={width:"10px",height:"10px"},t[W.VALUE_CLASS]={paddingLeft:"8px"},t)},continue:{domStyles:(n={},n[Y.CONTAINER_CLASS]={visibility:"visible",zIndex:1,backgroundColor:e.legendContainerFillColor,boxShadow:e.legendContainerShadow,borderRadius:"".concat(e.legendContainerBorderRadius,"px"),color:e.legendTextFillColor,fontFamily:e.fontFamily,padding:"10px",lineHeight:1,fontSize:"".concat(e.legendTextFontSize,"px")},n[Y.TITLE_CLASS]={fontSize:"13px",lineHeight:"19px",marginBottom:"8px"},n[Y.RIBBON_CLASS]={display:"flex",alignItems:"center"},n[Y.GRADIENT_BAR_CLASS]={width:"140px",height:"14px",margin:"0px 5px"},n[Y.VALUE_RANGE_CLASS]={padding:"0px"},n)}},tooltip:{domStyles:(r={},r[G.CONTAINER_CLASS]={visibility:"visible",zIndex:999,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:e.tooltipContainerFillColor,boxShadow:e.tooltipContainerShadow,borderRadius:"".concat(e.tooltipContainerBorderRadius,"px"),color:e.tooltipTextFillColor,fontSize:"".concat(e.tooltipTextFontSize,"px"),fontFamily:e.fontFamily,lineHeight:e.tooltipTextLineHeight},r[G.TITLE_CLASS]={marginBottom:"4px"},r[G.LIST_CLASS]={margin:"0px",padding:"0px"},r[G.LIST_ITEM_CLASS]={marginBottom:"4px"},r[G.NAME_CLASS]={color:e.tooltipItemNameFillColor},r[G.VALUE_CLASS]={color:e.tooltipItemValueFillColor,marginLeft:"30px"},r)},label:{style:{textAnchor:"center",textOffset:[0,0],fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight}}}}}var X="#000",q="#595959",Z="#FFFFFF",J=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Q=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],$=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],ee=function(e){void 0===e&&(e={});var t=e.mapStyle,n=void 0===t?"light":t,r=e.subColor,o=void 0===r?"rgba(0,0,0,0.05)":r,i=e.paletteQualitative10,a=void 0===i?J:i,c=e.paletteQualitative20,u=void 0===c?Q:c,s=e.paletteSemanticRed,l=void 0===s?"#F4664A":s,f=e.paletteSemanticGreen,p=void 0===f?"#30BF78":f,d=e.paletteSemanticYellow,h=void 0===d?"#FAAD14":d,v=e.paletteSequence,y=void 0===v?$:v,m=e.fontFamily,g=void 0===m?'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':m,b=e.brandColor,O=void 0===b?a[0]:b;return{mapStyle:n,brandColor:O,subColor:o,paletteQualitative10:a,paletteQualitative20:u,paletteSemanticRed:l,paletteSemanticGreen:p,paletteSemanticYellow:h,paletteSequence:y,fontFamily:g,legendContainerFillColor:"rgba(255, 255, 255, 0.85)",legendContainerShadow:"0 2px 8px 0 rgba(166, 166, 166, 0.20)",legendContainerBorderRadius:2,legendTextFillColor:q,legendTextFontSize:12,tooltipContainerFillColor:"rgba(255, 255, 255, 0.9)",tooltipContainerShadow:"rgb(0 0 0 / 16%) 0px 6px 12px 0px",tooltipContainerBorderRadius:2,tooltipTextFillColor:q,tooltipItemNameFillColor:q,tooltipItemValueFillColor:q,tooltipTextFontSize:12,tooltipTextLineHeight:"20px",labelFillColor:q,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,pointFillColor:O,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Z,pointActiveBorderColor:X,pointSelectedBorderColor:X}},te=(ee(),"#000"),ne="#FFFFFF",re="#A6A6A6",oe=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],ie=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],ae=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],ce=function(e){void 0===e&&(e={});var t=e.mapStyle,n=void 0===t?"dark":t,r=e.subColor,o=void 0===r?"rgba(255,255,255,0.05)":r,i=e.paletteQualitative10,a=void 0===i?oe:i,c=e.paletteQualitative20,u=void 0===c?ie:c,s=e.paletteSemanticRed,l=void 0===s?"#F4664A":s,f=e.paletteSemanticGreen,p=void 0===f?"#30BF78":f,d=e.paletteSemanticYellow,h=void 0===d?"#FAAD14":d,v=e.paletteSequence,y=void 0===v?ae:v,m=e.fontFamily,g=void 0===m?'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':m,b=e.brandColor;return{mapStyle:n,brandColor:void 0===b?a[0]:b,subColor:o,paletteQualitative10:a,paletteQualitative20:u,paletteSemanticRed:l,paletteSemanticGreen:p,paletteSemanticYellow:h,paletteSequence:y,fontFamily:g,legendContainerFillColor:"rgba(31, 31, 31, 0.85)",legendContainerShadow:"0 2px 8px 0 rgba(166, 166, 166, 0.20)",legendContainerBorderRadius:2,legendTextFillColor:re,legendTextFontSize:12,tooltipContainerFillColor:"rgba(31, 31, 31, 0.9)",tooltipContainerShadow:"0px 2px 4px rgba(0, 0, 0, 0.5)",tooltipContainerBorderRadius:2,tooltipTextFillColor:re,tooltipItemNameFillColor:re,tooltipItemValueFillColor:re,tooltipTextFontSize:12,tooltipTextLineHeight:"20px",labelFillColor:re,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,pointFillColor:oe[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:te,pointActiveBorderColor:ne,pointSelectedBorderColor:ne}};ce();function ue(e){var t=e.styleSheet,n=void 0===t?{}:t,r=Object(H.f)(e,["styleSheet"]),o=ee(n);return I({},K(o),r)}function se(e){var t=e.styleSheet,n=void 0===t?{}:t,r=Object(H.f)(e,["styleSheet"]),o=ce(n);return I({},K(o),r)}var le=ue({}),fe={default:le,light:le,dark:se({})};function pe(e){return void 0===e&&(e="default"),function(e,t,n){for(var r=0,o=C(t)?t.split("."):t;e&&r<o.length;)e=e[o[r++]];return void 0===e||r<o.length?n:e}(fe,T(e),fe.default)}function de(e,t,n){void 0===n&&(n="light"),fe[T(e)]="light"===n?ue(t):se(t)}var he,ve,ye=n("pufz");!function(e){e[e.solid=0]="solid",e[e.dash=1]="dash"}(he||(he={})),function(e){e.TextLayer="textLayer",e.DotLayer="dotLayer",e.IconLayer="iconLayer",e.DotDensity="dotDensityLayer",e.ColumnLayer="columnLayer",e.HeatmapLayer="heatmapLayer",e.GridLayer="gridLayer",e.HexbinLayer="hexbinLayer",e.LinesLayer="linesLayer",e.PathLayer="pathLayer",e.ArcLayer="arcLayer",e.AreaLayer="areaLayer",e.PrismLayer="prismLayer"}(ve||(ve={}));var me,ge,be=n("QGPn"),Oe=n("gbJM");!function(e){e.Amap="amap",e.Mapbox="mapbox"}(me||(me={})),function(e){e.Dot="dot",e.DotDensity="dotDensity",e.Heatmap="heatmap",e.Grid="grid",e.Hexbin="hexbin",e.Path="path",e.Flow="flow",e.Area="area",e.Choropleth="choropleth"}(ge||(ge={}));var we,_e,xe,Ee,Se=n("zEXi"),Ce=n("+CBx"),je=n("tmTm"),ke=n("P2D4"),Pe=n("aqw4"),Te=function(){function e(){this._events={}}return e.prototype.on=function(e,t,n){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!n}),this},e.prototype.once=function(e,t){return this.on(e,t,!0)},e.prototype.emit=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this._events[e]||[],i=this._events["*"]||[],a=function(r){for(var o=r.length,i=0;i<o;i++)if(r[i]){var a=r[i],c=a.callback;a.once&&(r.splice(i,1),0===r.length&&delete t._events[e],o--,i--),c.apply(t,n)}};a(o),a(i)},e.prototype.off=function(e,t){if(e)if(t){for(var n=this._events[e]||[],r=n.length,o=0;o<r;o++)n[o].callback===t&&(n.splice(o,1),r--,o--);0===n.length&&delete this._events[e]}else delete this._events[e];else this._events={};return this},e.prototype.getEvents=function(){return this._events},e}();function Me(e){we||(we=document.createElement("table"),_e=document.createElement("tr"),xe=/^\s*<(\w+|!)[^>]*>/,Ee={tr:document.createElement("tbody"),tbody:we,thead:we,tfoot:we,td:_e,th:_e,"*":document.createElement("div")});var t=xe.test(e)&&RegExp.$1;t&&t in Ee||(t="*");var n=Ee[t];e="string"==typeof e?e.replace(/(^\s*)|(\s*$)/g,""):e,n.innerHTML=""+e;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}function Ae(e,t){if(e)for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);return e}var Le,Re='\n "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',Ne="l7plot-tooltip__list",Ie='<div class="'.concat("l7plot-tooltip",'">\n <div class="').concat("l7plot-tooltip__title",'"></div>\n <ul class="').concat(Ne,'"></ul>\n</div>'),De='<li class="'.concat("l7plot-tooltip__list-item",'" data-index={index}>\n <span class="').concat("l7plot-tooltip__name",'">{name}</span>\n <span class="').concat("l7plot-tooltip__value",'">{value}</span>\n</li>'),Fe=((Le={})["l7plot-tooltip"]={visibility:"visible",zIndex:999,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"rgb(0 0 0 / 16%) 0px 6px 12px 0px",borderRadius:"2px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:Re,lineHeight:"20px",padding:"10px 10px 6px 10px"},Le["l7plot-tooltip__title"]={marginBottom:"4px"},Le[Ne]={margin:"0px",listStyleType:"none",padding:"0px"},Le["l7plot-tooltip__list-item"]={listStyleType:"none",marginBottom:"4px",whiteSpace:"nowrap",display:"flex",justifyContent:"space-between"},Le["l7plot-tooltip__name"]={},Le["l7plot-tooltip__value"]={marginLeft:"30px"},Le);function ze(e){for(var t=e.childNodes,n=t.length-1;n>=0;n--)e.removeChild(t[n])}var Be,Ue,Ve=function(){function e(e){this.destroyed=!1,this.options=I({},this.getDefaultOptions(),e),this.container=this.initContainer(),this.initDom(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible(),this.render()}return e.prototype.getDefaultOptions=function(){return{name:"",containerTpl:"<div></div>",visible:!0,capture:!0,domStyles:{}}},e.prototype.getContainer=function(){return this.container},e.prototype.getParentContainer=function(){var e,t=this.options.parent;if(!t)return e;if(C(t)){var n=document.getElementById(t);if(!n)throw new Error("No parent id ".concat(t));e=n}else e=t;return e},e.prototype.initContainer=function(){var e=this.createDom(this.options.containerTpl),t=this.getParentContainer();return t&&t.appendChild(e),e},e.prototype.initVisible=function(){this.options.visible?this.show():this.hide()},e.prototype.initCapture=function(){this.setCapture(this.options.capture)},e.prototype.update=function(e){this.options=I({},this.options,e),this.updateInner(e),this.afterUpdate(e)},e.prototype.updateInner=function(e){e.domStyles&&this.applyStyles()},e.prototype.afterUpdate=function(e){e.capture&&this.setCapture(e.capture)},e.prototype.setCapture=function(e){var t=e?"auto":"none";this.container.style.pointerEvents=t},e.prototype.applyStyles=function(){var e=this.options.domStyles;if(e){var t=this.container;this.applyChildrenStyles(t,e);var n,r=this.options.className;if(r&&(n=r,t.className.match(new RegExp("(\\s|^)".concat(n,"(\\s|$)")))))Ae(t,e[r])}},e.prototype.applyChildrenStyles=function(e,t){_(t,(function(t,n){var r=e.getElementsByClassName(n);_(r,(function(e){Ae(e,t)}))}))},e.prototype.applyStyle=function(e,t){var n=this.options.domStyles;n&&Ae(t,n[e])},e.prototype.createDom=function(e){return void 0===e&&(e="<div></div>"),Me(e)},e.prototype.removeDom=function(){var e=this.container;e&&e.parentNode&&e.parentNode.removeChild(e)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),this.destroyed=!0},e}(),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return I({},e.prototype.getDefaultOptions.call(this),{id:"l7plot-tooltip",name:"l7plot-tooltip",title:"",showTitle:!0,items:[],containerTpl:Ie,itemTpl:De,domStyles:Fe,className:"l7plot-tooltip"})},t.prototype.initContainer=function(){var t=this.options.customContent;if(t){var n=this.getHtmlContentNode(t),r=this.getParentContainer();return r&&r.appendChild(n),n}return e.prototype.initContainer.call(this)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){},t.prototype.cacheDoms=function(){var e=this.container,t=e.getElementsByClassName("l7plot-tooltip__title")[0],n=e.getElementsByClassName(Ne)[0];this.titleDom=t,this.listDom=n},t.prototype.render=function(){this.options.customContent?this.renderCustomContent(this.options.customContent):(this.resetTitle(),this.renderItems())},t.prototype.show=function(){var e=this.container;e&&!this.destroyed&&Ae(e,{visibility:"visible"})},t.prototype.hide=function(){var e=this.container;e&&!this.destroyed&&Ae(e,{visibility:"hidden"})},t.prototype.updateInner=function(t){this.options.customContent?this.renderCustomContent(this.options.customContent):(t.title&&this.resetTitle(),t.items&&this.renderItems()),e.prototype.updateInner.call(this,t)},t.prototype.renderCustomContent=function(e){var t=this.container.parentNode,n=this.getHtmlContentNode(e),r=this.container;t&&t.replaceChild(n,r),this.container=n,this.applyStyles()},t.prototype.getHtmlContentNode=function(e){var t=e(this.options.title||"",this.options.items);return C(t)?this.createDom(t):t},t.prototype.resetTitle=function(){var e=this.options.title;this.options.showTitle&&e?(this.showTitle(),this.setTitle(e)):this.hideTitle()},t.prototype.showTitle=function(){var e=this.titleDom;e&&Ae(e,{display:"block"})},t.prototype.hideTitle=function(){var e=this.titleDom;e&&Ae(e,{display:"none"})},t.prototype.setTitle=function(e){var t=this.titleDom;t&&(t.innerHTML=e)},t.prototype.renderItems=function(){var e=this;this.clearItemDoms();var t=this.options.items,n=this.options.itemTpl||De,r=this.listDom;r&&(t.forEach((function(t){var o=Object(H.a)({},t),i=M(n,o),a=e.createDom(i);r.appendChild(a)})),this.applyChildrenStyles(r,this.options.domStyles))},t.prototype.clearItemDoms=function(){this.listDom&&ze(this.listDom)},t.prototype.clear=function(){this.setTitle(""),this.clearItemDoms()},t}(Ve),Ge=n("r6MD"),We=(new Object).toString,Ye=function(e,t){return We.call(e)==="[object "+t+"]"},Ke=function(e){return Ye(e,"Array")},Xe=function(e){if(!function(e){return"object"==typeof e&&null!==e}(e)||!Ye(e,"Object"))return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},qe=function e(t,n,r,o){for(var i in r=r||0,o=o||5,n)if(Object.prototype.hasOwnProperty.call(n,i)){var a=n[i];a?Xe(a)?(Xe(t[i])||(t[i]={}),r<o?e(t[i],a,r+1,o):t[i]=n[i]):Ke(a)?(t[i]=[],t[i]=t[i].concat(a)):t[i]=a:t[i]=a}},Ze=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r+=1)qe(e,t[r]);return e},Je=["mousemove","click"],Qe=function(e){function t(t,n,r){var o=e.call(this)||this;o.currentVisible=!1,o.interactionTriggerHander=function(e){var t=e.feature,n=e.featureId,r=o.options,i=r.title,a=r.customTitle,c=r.items,u=r.customItems,s="Feature"===t.type&&t.geometry&&t.properties?t.properties:t,l=[];if(u){var f=u(t);if(!Array.isArray(f))throw new Error("customItems return array");l=f}else c&&c.forEach((function(e){if(C(e)){var t=e.split(".").pop()||e;void 0!==(r=Object(Ge.a)(s,e))&&l.push({name:t,value:r})}else{var r,o=e.field,i=e.alias,a=e.customValue,c=i||o.split(".").pop()||o;void 0!==(r=Object(Ge.a)(s,o))&&l.push({name:c,value:a?a(r,s,n):r})}}));var p={title:a?a(s):i,items:l};o.updateTooltip(e,p)},o.interactionUntriggerHander=function(){o.hideTooltip()},o.scene=t,o.interactionLayers=n,o.options=Ze({},o.getDefaultOptions(),r);var i=o.options,a=i.offsets,c=i.title,u=i.showTitle,s=i.customContent,l=i.domStyles,f=i.anchor,p=i.className;return o.marker=new Pe.d({offsets:a,anchor:f,draggable:!1}),o.tooltipComponent=new He({title:c,showTitle:u,items:[],customContent:s,domStyles:l,className:p}),o.setComponent(),o.initInteractionEvent(),o}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return{showTitle:!0,showComponent:!0,items:[],offsets:[15,0],trigger:"mousemove",anchor:Se.u["TOP-LEFT"]}},t.prototype.update=function(e){this.marker.remove(),this.currentVisible=!1,this.options=Ze({},this.options,e);var t=this.options,n=t.offsets,r=t.showTitle,o=t.customContent,i=t.domStyles,a=t.anchor,c=t.className;this.marker=new Pe.d({offsets:n,anchor:a,draggable:!1}),this.tooltipComponent.update({showTitle:r,customContent:o,domStyles:i,className:c}),this.setComponent()},t.prototype.initInteractionEvent=function(){var e=this,t=this.options.trigger||"mousemove";if(!Je.includes(t))throw new Error("trigger is mousemove or click");this.interactionLayers.forEach((function(n){var r=n.layer;r.on(t,e.interactionTriggerHander),r.on("un".concat(t),e.interactionUntriggerHander)}))},t.prototype.unBindInteractionEvent=function(){var e=this,t=this.options.trigger||"mousemove";this.interactionLayers.forEach((function(n){var r=n.layer;r.off(t,e.interactionTriggerHander),r.off("un".concat(t),e.interactionUntriggerHander)}))},t.prototype.updateTooltip=function(e,t){var n=e.lngLat,r=e.x,o=e.y;if(this.options.showComponent&&(this.updateComponent(t),this.setPostion(n)),this.currentVisible){var i={type:"tooltip:change",data:t,lngLat:n,x:r,y:o};this.emit("tooltip:change",i)}else{this.showTooltip();var a={type:"tooltip:show",data:t,lngLat:n,x:r,y:o};this.emit("tooltip:show",a)}},t.prototype.showTooltip=function(){this.currentVisible||(this.options.showComponent&&this.scene.addMarker(this.marker),this.currentVisible=!0)},t.prototype.hideTooltip=function(){if(this.currentVisible){this.options.showComponent&&this.marker.remove(),this.currentVisible=!1;this.emit("tooltip:hide",{type:"tooltip:hide"})}},t.prototype.updateComponent=function(e){D(this.lastComponentOptions,e)||(this.tooltipComponent.update(e),this.lastComponentOptions=e)},t.prototype.setComponent=function(){var e=this.tooltipComponent.getContainer(),t=window.document.createElement("div");t.style.cursor="auto",t.style.userSelect="text",t.className="l7plot-tooltip-container",["mousemove","mousedown","mouseup","click","dblclick"].forEach((function(e){t.addEventListener(e,(function(e){return e.stopPropagation()}))})),t.appendChild(e),this.marker.setElement(t)},t.prototype.setPostion=function(e){this.marker.setLnglat(e)},t.prototype.destroy=function(){this.unBindInteractionEvent(),this.off(),this.marker.remove(),this.tooltipComponent.destroy()},t}(Te),$e='<div class="'.concat("l7plot-legend l7plot-legend__category",'">\n <div class="').concat("l7plot-legend__title",'"></div>\n <ul class="').concat("l7plot-legend__category-list",'"></ul>\n</div>'),et='<li class="'.concat("l7plot-legend__list-item",'" data-index={index}>\n <span class="').concat("l7plot-legend__category-marker",'" style="background:{color}"></span>\n <span class="').concat("l7plot-legend__category-value",'">{value}</span>\n</li>'),tt=((Be={})["l7plot-legend l7plot-legend__category"]={visibility:"visible",zIndex:1,backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"rgb(0 0 0 / 16%) 0px 6px 12px 0px",borderRadius:"2px",color:"rgb(87, 87, 87)",fontFamily:Re,padding:"10px 10px 6px 10px",lineHeight:1,fontSize:"12px"},Be["l7plot-legend__title"]={fontSize:"13px",lineHeight:"19px",marginBottom:"8px"},Be["l7plot-legend__category-list"]={margin:"0px",listStyleType:"none",padding:"0px"},Be["l7plot-legend__list-item"]={listStyleType:"none",display:"flex",alignItems:"center",marginBottom:"2px"},Be["l7plot-legend__category-marker"]={width:"10px",height:"10px"},Be["l7plot-legend__category-value"]={paddingLeft:"8px"},Be),nt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return I({},e.prototype.getDefaultOptions.call(this),{id:"l7plot-category-legend",name:"l7plot-category-legend",title:"",items:[],containerTpl:$e,itemTpl:et,domStyles:tt,className:"l7plot-legend l7plot-legend__category"})},t.prototype.initContainer=function(){var t=this.options.customContent;if(t){var n=this.getHtmlContentNode(t),r=this.getParentContainer();return r&&r.appendChild(n),n}return e.prototype.initContainer.call(this)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){},t.prototype.cacheDoms=function(){var e=this.container,t=e.getElementsByClassName("l7plot-legend__title")[0],n=e.getElementsByClassName("l7plot-legend__category-list")[0];this.titleDom=t,this.listDom=n},t.prototype.render=function(){this.options.customContent?this.renderCustomContent(this.options.customContent):(this.resetTitle(),this.renderItems())},t.prototype.show=function(){var e=this.container;e&&!this.destroyed&&Ae(e,{visibility:"visible"})},t.prototype.hide=function(){var e=this.container;e&&!this.destroyed&&Ae(e,{visibility:"hidden"})},t.prototype.updateInner=function(t){this.options.customContent?this.renderCustomContent(this.options.customContent):(t.title&&this.resetTitle(),t.items&&this.renderItems()),e.prototype.updateInner.call(this,t)},t.prototype.renderCustomContent=function(e){var t=this.container.parentNode,n=this.getHtmlContentNode(e),r=this.container;t&&t.replaceChild(n,r),this.container=n,this.applyStyles()},t.prototype.getHtmlContentNode=function(e){var t=e(this.options.title||"",this.options.items);return C(t)?this.createDom(t):t},t.prototype.resetTitle=function(){var e=this.options.title;e?(this.showTitle(),this.setTitle(e)):this.hideTitle()},t.prototype.showTitle=function(){var e=this.titleDom;e&&Ae(e,{display:"block"})},t.prototype.hideTitle=function(){var e=this.titleDom;e&&Ae(e,{display:"none"})},t.prototype.setTitle=function(e){var t=this.titleDom;t&&(t.innerHTML=e)},t.prototype.renderItems=function(){var e=this;this.clearItemDoms();var t=this.options.items.length>30?this.options.items.slice(0,30):this.options.items,n=this.options.itemTpl||et,r=this.listDom;r&&(t.forEach((function(t){var o=""===t.value?"—":Array.isArray(t.value)?t.value.join(" - "):t.value,i=Object(H.a)(Object(H.a)({},t),{value:o}),a=M(n,i),c=e.createDom(a);r.appendChild(c)})),this.applyChildrenStyles(r,this.options.domStyles))},t.prototype.clearItemDoms=function(){this.listDom&&ze(this.listDom)},t.prototype.clear=function(){this.setTitle(""),this.clearItemDoms()},t}(Ve),rt='<div class="'.concat("l7plot-legend l7plot-legend__continue",'">\n <div class="').concat("l7plot-legend__title",'"></div>\n <div class="').concat("l7plot-legend__ribbon-container",'"></div>\n</div>'),ot='<div class="'.concat("l7plot-legend__ribbon",'">\n <span class="').concat("l7plot-legend__value-range",'">{min}</span>\n <div class="').concat("l7plot-legend__gradient-bar",'" style="background-image: {backgroundImage}"></div>\n <span class="').concat("l7plot-legend__value-range",'">{max}</span>\n</div>'),it=((Ue={})["l7plot-legend l7plot-legend__continue"]={visibility:"visible",zIndex:1,backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"rgb(0 0 0 / 16%) 0px 6px 12px 0px",borderRadius:"2px",color:"rgb(87, 87, 87)",fontFamily:Re,padding:"10px",lineHeight:1,fontSize:"12px"},Ue["l7plot-legend__title"]={fontSize:"13px",lineHeight:"19px",marginBottom:"8px"},Ue["l7plot-legend__ribbon"]={display:"flex",alignItems:"center"},Ue["l7plot-legend__gradient-bar"]={width:"140px",height:"14px",margin:"0px 5px"},Ue["l7plot-legend__value-range"]={padding:"0px"},Ue),at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return I({},e.prototype.getDefaultOptions.call(this),{id:"l7plot-continue-legend",name:"l7plot-continue-legend",title:"",containerTpl:rt,ribbonTpl:ot,domStyles:it,className:"l7plot-legend l7plot-legend__continue"})},t.prototype.initContainer=function(){var t=this.options.customContent;if(t){var n=this.getHtmlContentNode(t),r=this.getParentContainer();return r&&r.appendChild(n),n}return e.prototype.initContainer.call(this)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){},t.prototype.cacheDoms=function(){var e=this.container,t=e.getElementsByClassName("l7plot-legend__title")[0],n=e.getElementsByClassName("l7plot-legend__ribbon-container")[0];this.titleDom=t,this.ribbonContainerDom=n},t.prototype.render=function(){this.options.customContent?this.renderCustomContent(this.options.customContent):(this.resetTitle(),this.renderRibbon())},t.prototype.show=function(){var e=this.container;e&&!this.destroyed&&Ae(e,{visibility:"visible"})},t.prototype.hide=function(){var e=this.container;e&&!this.destroyed&&Ae(e,{visibility:"hidden"})},t.prototype.updateInner=function(t){this.options.customContent?this.renderCustomContent(this.options.customContent):(t.title&&this.resetTitle(),t.colors&&this.renderRibbon()),e.prototype.updateInner.call(this,t)},t.prototype.renderCustomContent=function(e){var t=this.container.parentNode,n=this.getHtmlContentNode(e),r=this.container;t&&t.replaceChild(n,r),this.container=n,this.applyStyles()},t.prototype.getHtmlContentNode=function(e){var t=e(this.options.title||"",this.options.min,this.options.max,this.options.colors);return C(t)?this.createDom(t):t},t.prototype.resetTitle=function(){var e=this.options.title;e?(this.showTitle(),this.setTitle(e)):this.hideTitle()},t.prototype.showTitle=function(){var e=this.titleDom;e&&Ae(e,{display:"block"})},t.prototype.hideTitle=function(){var e=this.titleDom;e&&Ae(e,{display:"none"})},t.prototype.setTitle=function(e){var t=this.titleDom;t&&(t.innerHTML=e)},t.prototype.renderRibbon=function(){this.clearRibbonContainerDoms();var e=this.options,t=e.min,n=e.max,r=e.colors,o=e.ribbonTpl,i=void 0===o?ot:o,a=this.ribbonContainerDom;if(a){var c="linear-gradient(to right, ".concat(r.join(", "),")"),u=M(i,{min:t,max:n,backgroundImage:c}),s=this.createDom(u);a.appendChild(s),this.applyChildrenStyles(a,this.options.domStyles)}},t.prototype.clearRibbonContainerDoms=function(){this.ribbonContainerDom&&ze(this.ribbonContainerDom)},t.prototype.clear=function(){this.setTitle(""),this.clearRibbonContainerDoms()},t}(Ve),ct=function(e){function t(t){var n=e.call(this,t)||this;return n.legendComponents=[],n.options=t,n.legendComponents=n.initLegendComponents(t.items),n}return Object(H.c)(t,e),t.prototype.initLegendComponents=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if("category"===r.type){var o=new nt({title:r.options.title,items:r.options.items,className:r.options.className,customContent:r.options.customContent,domStyles:r.options.domStyles});t.push(o)}else if("continue"===r.type){o=new at({title:r.options.title,min:r.options.min,max:r.options.max,colors:r.options.colors,className:r.options.className,customContent:r.options.customContent,domStyles:r.options.domStyles});t.push(o)}}return t},t.prototype.getDefaultOptions=function(){return{position:"bottomleft"}},t.prototype.onAdd=function(){var e=window.document.createElement("div");return e.className="l7plot-legend-container",this.legendComponents.forEach((function(t){var n=t.getContainer();e.appendChild(n)})),e},t.prototype.onRemove=function(){this.legendComponents.forEach((function(e){e.destroy()}))},t}(Pe.a),ut=function(e){function t(t,n){void 0===t&&(t=[]),void 0===n&&(n={});var r=e.call(this)||this;return r.name=n.name?n.name:U("layerGroup"),r.layers=t,r}return Object(H.c)(t,e),t.prototype.addTo=function(e){var t=this;this.scene=e;var n=0,r=this.layers.length;this.layers.forEach((function(o){o.once("inited",(function(e){n++,t.emit("inited",e),n===r&&t.emit("inited-all")})),o.addTo(e)}))},t.prototype.hasLayer=function(e){return this.layers.some((function(t){return t===e}))},t.prototype.addLayer=function(e){var t=this;this.layers.push(e),this.scene&&(e.once("inited",(function(e){return t.emit("inited",e)})),e.addTo(this.scene))},t.prototype.removeLayer=function(e){var t=this.layers.findIndex((function(t){return t===e}));return-1!==t&&(this.layers.splice(t,1),this.scene&&e.remove(this.scene),!0)},t.prototype.getLayers=function(){return this.layers},t.prototype.getInteractionLayers=function(){return this.layers.filter((function(e){return e.interaction}))},t.prototype.getLayer=function(e){return this.layers.find((function(t){return t.layer.id===e}))},t.prototype.getLayerByName=function(e){return this.layers.find((function(t){return t.name===e}))},t.prototype.removeAllLayer=function(){var e=this;this.layers.forEach((function(t){e.scene&&t.remove(e.scene)})),this.layers=[]},t.prototype.isEmpty=function(){return 0===this.layers.length},t}(Te),st=[{original:"loaded",adaptation:"scene-loaded"},{original:"resize",adaptation:"resize"},{original:"destroy",adaptation:"destroy"},{original:"resize",adaptation:"resize"}],lt=["mapmove","movestart","moveend","zoomchange","zoomstart","zoomend","click","dblclick","contextmenu","mousemove","mousewheel","mouseover","mouseout","mouseup","mousedown","dragstart","dragging","dragend"],ft=["inited","add","remove","dataUpdate","click","unclick","contextmenu","uncontextmenu","mouseenter","mousemove","unmousemove","mouseout","mouseup","unmouseup","mousedown","uncontextmenu","unpick"],pt={map:{type:me.Amap},logo:!0},dt=function(e){function t(t){var n=e.call(this)||this;return n.inited=!1,n.sceneLoaded=!1,n.layersLoaded=!1,n.loaded=!1,n.layerGroup=new ut,n.options=Ze({},n.getDefaultOptions(),t),n.lastOptions=n.options,n}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return t.DefaultOptions},t.prototype.createContainer=function(e){var t=this.options,n=t.width,r=t.height,o="string"==typeof e?document.getElementById(e):e;return o.style.position||(o.style.position="relative"),n&&(o.style.width||(o.style.width="".concat(n,"px"))),r&&(o.style.height||(o.style.height="".concat(r,"px"))),o},t.prototype.createTheme=function(){return w(this.options.theme)?Ze({},pe("default"),ue(this.options.theme)):pe(this.options.theme)},t.prototype.createMap=function(){var e=this.options.map?this.options.map:pt.map,t=e.type,n=Object(H.f)(e,["type"]),r=Object.assign({style:this.theme.mapStyle},n);return t===me.Amap?new je.a(r):new ke.a(r)},t.prototype.createScene=function(){var e=this.options,t=e.logo,n=e.antialias,r=e.preserveDrawingBuffer,o=A(t)?{logoVisible:t}:{logoVisible:null==t?void 0:t.visible,logoPosition:null==t?void 0:t.position},i=Object.assign({antialias:n,preserveDrawingBuffer:r},o),a=this.createMap();return new Ce.a(Object(H.a)({id:this.container,map:a},i))},t.prototype.registerResources=function(){var e=this;o.size&&o.forEach((function(t,n){!e.scene.hasImage(n)&&e.scene.addImage(n,t)})),u.size&&u.forEach((function(t,n){e.scene.addFontFace(n,t)})),f.size&&f.forEach((function(t,n){e.scene.addIconFont(n,t)}))},t.prototype.update=function(e){this.updateOption(e),e.map&&!D(this.lastOptions.map,this.options.map)&&this.updateMap(e.map),this.render(),this.emit("update")},t.prototype.updateOption=function(e){this.lastOptions=this.options,this.options=Ze({},this.options,e)},t.prototype.updateMap=function(e){var t;if(this.scene){var n=e.style,r=e.center,o=e.zoom,i=e.rotation,a=e.pitch;L(a)||this.scene.setPitch(a),L(i)||this.scene.setRotation(i),n&&n!==(null===(t=this.lastOptions.map)||void 0===t?void 0:t.style)&&this.scene.setMapStyle(n),o&&r&&this.scene.setZoomAndCenter(o,r)}},t.prototype.changeSize=function(e,t){this.options.width===e&&this.options.height===t||(this.container.style.width="".concat(e,"px"),this.container.style.height="".concat(t,"px"),this.options=Object.assign(this.options,{width:e,height:t}))},t.prototype.on=function(e,t){return this.proxyEventHander("on",e,t),this},t.prototype.once=function(e,t){return this.proxyEventHander("once",e,t),this},t.prototype.off=function(e,t){return this.proxyEventHander("off",e,t),this},t.prototype.proxyEventHander=function(t,n,r){var o=st.find((function(e){return e.adaptation===n}));if(o)this.scene[t](o.original,r);else if(-1!==lt.indexOf(n))this.scene[t](n,r);else if(n.includes("Layer:")){var i=Object(H.e)(n.split(":"),2),a=i[0],c=i[1];if(!(this[a]&&this[a][t])||-1===ft.indexOf(c))throw new Error('No event name "'.concat(n,'"'));this[a][t](c,r)}else e.prototype[t].call(this,n,r)},t.prototype.getScene=function(){return this.scene},t.prototype.getMap=function(){var e,t;return(null===(e=this.options.map)||void 0===e?void 0:e.type)===me.Amap||(null===(t=this.options.map)||void 0===t||t.type,me.Mapbox),this.scene.map},t.prototype.addLayer=function(e){this.layerGroup.addLayer(e)},t.prototype.getLayes=function(){return console.warn("Replace to use getLayers()"),this.getLayers()},t.prototype.getLayers=function(){return this.layerGroup.getLayers()},t.prototype.getLayerByName=function(e){return this.layerGroup.getLayerByName(e)},t.prototype.removeLayer=function(e){return this.layerGroup.removeLayer(e)},t.prototype.removeAllLayer=function(){this.layerGroup.removeAllLayer()},t.prototype.zoomIn=function(){this.scene.zoomIn()},t.prototype.zoomOut=function(){this.scene.zoomOut()},t.prototype.setPitch=function(e){this.scene.setPitch(e)},t.prototype.fitBounds=function(e){this.scene.fitBounds(e)},t.prototype.setMapStatus=function(e){this.scene.setMapStatus(e)},t.prototype.setBgColor=function(e){this.scene.setBgColor(e)},t.prototype.initComponents=function(){this.initControls(),this.initTooltip()},t.prototype.updateComponents=function(){this.updateControls(),this.initTooltip()},t.prototype.initControls=function(){var e=this.options,t=e.zoom,n=e.scale,r=e.layerMenu,o=e.legend;n&&this.addScaleControl(n),t&&this.addZoomControl(t),r&&this.addLayerMenuControl(r),o&&this.addLegendControl(o)},t.prototype.updateControls=function(){var e=this.options,t=e.zoom,n=e.scale,r=e.layerMenu,o=e.legend;D(this.lastOptions.zoom,t)||(t?this.updateZoomControl(t):this.removeZoomControl()),D(this.lastOptions.scale,n)||(n?this.updateScaleControl(n):this.removeScaleControl()),D(this.lastOptions.layerMenu,r)||(r?this.updateLayerMenuControl(r):this.removeLayerMenuControl()),D(this.lastOptions.legend,o)||(o?this.updateLegendControl(o):this.removeLegendControl())},t.prototype.addZoomControl=function(e){this.zoomControl||(this.zoomControl=new Pe.h(e),this.scene.addControl(this.zoomControl))},t.prototype.updateZoomControl=function(e){this.zoomControl?(this.removeZoomControl(),this.addZoomControl(e)):this.addZoomControl(e)},t.prototype.removeZoomControl=function(){this.zoomControl&&(this.zoomControl.remove(),this.zoomControl=void 0)},t.prototype.addScaleControl=function(e){this.scaleControl||(this.scaleControl=new Pe.g(e),this.scene.addControl(this.scaleControl))},t.prototype.updateScaleControl=function(e){this.scaleControl?(this.removeScaleControl(),this.addScaleControl(e)):this.addScaleControl(e)},t.prototype.removeScaleControl=function(){this.scaleControl&&(this.scaleControl.remove(),this.scaleControl=void 0)},t.prototype.addLayerMenuControl=function(e){if(!this.layerMenuControl){var t={};this.layerGroup.getLayers().forEach((function(e){var n=e.name,r=e.layer;t[n]=r})),this.layerMenuControl=new Pe.b(Object.assign({},e,{baseLayers:{},overlayers:t})),this.scene.addControl(this.layerMenuControl)}},t.prototype.updateLayerMenuControl=function(e){this.layerMenuControl?(this.removeLayerMenuControl(),this.addLayerMenuControl(e)):this.addLayerMenuControl(e)},t.prototype.removeLayerMenuControl=function(){this.layerMenuControl&&(this.layerMenuControl.remove(),this.layerMenuControl=void 0)},t.prototype.getLegendOptions=function(){return{}},t.prototype.addLegendControl=function(e){if(!this.legendControl){var t=this.theme.components.legend,n=Ze({},this.getLegendOptions(),e),r=n.type,o=n.position,i=Object(H.f)(n,["type","position"]),a=[];if("category"===r){var c=Ze({},{domStyles:t.category.domStyles},i);a.push({type:r,options:c})}else if("continue"===r){var u=Ze({},{domStyles:t.continue.domStyles},i);a.push({type:r,options:u})}a.length&&(this.legendControl=new ct({position:o,items:a}),this.scene.addControl(this.legendControl))}},t.prototype.updateLegendControl=function(e){this.legendControl?(this.removeLegendControl(),this.addLegendControl(e)):this.addLegendControl(e)},t.prototype.removeLegendControl=function(){this.legendControl&&(this.legendControl.remove(),this.legendControl=void 0)},t.prototype.initTooltip=function(){var e=this;this.tooltip&&this.tooltip.destroy();var t=this.options.tooltip;if(t){var n=Ze({},{domStyles:this.theme.components.tooltip.domStyles},t),r=this.layerGroup.getInteractionLayers();this.tooltip=new Qe(this.scene,r,n),this.tooltip.on("*",(function(t){return e.emit(t.type,t)}))}},t.prototype.exportPng=function(e){return this.scene.exportPng(e)},t.prototype.destroy=function(){var t;e.prototype.off.call(this,"*"),this.removeScaleControl(),this.removeZoomControl(),this.removeLayerMenuControl(),this.removeLegendControl(),null===(t=this.tooltip)||void 0===t||t.destroy(),this.scene.destroy()},t.DefaultOptions=pt,t}(Te),ht=n("CB1q"),vt=function(){function e(){}return e.aggregation=function(e,t){var n=t.type,r={type:void 0===n?"grid":n,size:t.radius,method:t.method,field:t.field};e.transforms?(e.transforms=e.transforms.filter((function(e){return e.type!==r.type})),e.transforms.push(r)):e.transforms=[r]},e}(),yt=["name","zIndex","visible","minZoom","maxZoom","pickingBuffer","autoFit","blend"],mt=function(e){function t(t){var n=e.call(this)||this;return n.options=Ze({},n.getDefaultOptions(),t),n.lastOptions=n.options,n}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return{}},t.prototype.pickLayerConfig=function(e){return z(e,yt)},t.prototype.addTo=function(e){e.addLayer(this.layer)},t.prototype.remove=function(e){e.removeLayer(this.layer)},t.prototype.update=function(e){this.updateOption(e),this.updateConfig(e)},t.prototype.updateOption=function(e){this.lastOptions=this.options,this.options=Ze({},this.options,e)},t.prototype.updateConfig=function(e){L(e.zIndex)||D(this.lastOptions.zIndex,this.options.zIndex)||this.setIndex(e.zIndex),L(e.blend)||D(this.lastOptions.blend,this.options.blend)||this.setBlend(e.blend),L(e.minZoom)||D(this.lastOptions.minZoom,this.options.minZoom)||this.setMinZoom(e.minZoom),L(e.maxZoom)||D(this.lastOptions.maxZoom,this.options.maxZoom)||this.setMinZoom(e.maxZoom),L(e.visible)||D(this.lastOptions.visible,this.options.visible)||(e.visible?this.show():this.hide())},t.prototype.render=function(){this.layer.renderLayers()},t.prototype.setSource=function(e){if(e instanceof Oe.a)this.layer.setSource(e);else{var t=e.data,n=e.aggregation,r=Object(H.f)(e,["data","aggregation"]);n&&vt.aggregation(r,n),this.layer.getSource()?this.layer.setData(t,r):this.layer.source(t,r)}},t.prototype.changeData=function(e){this.setSource(e)},t.prototype.setIndex=function(e){this.layer.setIndex(e)},t.prototype.setBlend=function(e){this.layer.setBlend(e)},t.prototype.setMinZoom=function(e){this.layer.setMinZoom(e)},t.prototype.setMaxZoom=function(e){this.layer.setMaxZoom(e)},t.prototype.show=function(){this.layer.inited&&this.layer.show()},t.prototype.hide=function(){this.layer.inited&&this.layer.hide()},t.prototype.toggleVisible=function(){this.isVisible()?this.hide():this.show()},t.prototype.isVisible=function(){return this.layer.inited?this.layer.isVisible():this.options.visible},t.prototype.fitBounds=function(e){this.layer.fitBounds(e)},t.prototype.on=function(t,n){return-1!==ft.indexOf(t)?this.layer.on(t,n):e.prototype.on.call(this,t,n),this},t.prototype.once=function(t,n){return-1!==ft.indexOf(t)?this.layer.once(t,n):e.prototype.once.call(this,t,n),this},t.prototype.off=function(t,n){return-1!==ft.indexOf(t)?this.layer.off(t,n):e.prototype.off.call(this,t,n),this},t.LayerType=ve,t.LayerConfigkeys=yt,t}(Te);function gt(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o={};return e.forEach((function(e,t){o[e]=n[t]})),delete o[void 0],t(o)}}var bt=function(){function e(){}return e.shape=function(t,n){if(C(n))t.shape(n);else if(g(n)){var r=[];t.shape(r.join("*"),gt(r,n))}else if(w(n)){var o=n.field?n.field:"";if(g(n.value)){r=O(o)?o:o.split("*");t.shape(o,gt(r,n.value))}else t.shape(o,n.value);C(o)&&n.scale&&e.scale(t,o,n.scale)}},e.size=function(t,n){if(j(n))t.size(n);else if(O(n))t.size(n);else if(g(n)){var r=[];t.size(r.join("*"),gt(r,n))}else if(w(n)){var o=n.field?n.field:"";if(g(n.value)){r=O(o)?o:o.split("*");t.size(o,gt(r,n.value))}else t.size(o,n.value);C(o)&&n.scale&&e.scale(t,o,n.scale)}},e.color=function(t,n){if(C(n))t.color(n);else if(g(n)){var r=[];t.color(r.join("*"),gt(r,n))}else if(w(n)){var o=n.field?n.field:"";if(g(n.value)){r=O(o)?o:o.split("*");t.color(o,gt(r,n.value))}else t.color(o,n.value);C(o)&&n.scale&&e.scale(t,o,n.scale)}},e.style=function(e,t){t&&e.style(t)},e.state=function(e,t){var n=t.active,r=t.select;n&&e.active(n),r&&e.select(r)},e.rotate=function(e,t){C(t)||g(t)||w(t)},e.texture=function(e,t){C(t)&&e.texture(t)},e.animate=function(e,t){(A(t)||w(t))&&e.animate(t)},e.scale=function(e,t,n){e.scale(t,n)},e.filter=function(e,t){var n=t.field?t.field:"",r=O(n)?n:n.split("*");e.filter(r.join("*"),gt(r,t.value))},e}();var Ot={style:{fontSize:12}},wt=[],_t=function(e){function t(t){var n=e.call(this,t)||this;n.type=mt.LayerType.TextLayer,n.interaction=!1;var r=n.options,o=r.name,i=r.source,a=n.pickLayerConfig(n.options);return n.name=o||U(n.type),n.layer=new ht.a(Object(H.a)(Object(H.a)({},a),{name:n.name})),n.mappingLayer(n.layer,n.options),n.setSource(i),n}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return Ot},t.prototype.mappingLayer=function(e,t){!function(e,t){var n=t.field,r=t.content,o=t.style,i=void 0===o?{}:o,a=t.state,c=i.fontSize,u=i.fill,s={field:n||(r||""),value:"text"};bt.shape(e,s),c&&bt.size(e,c),u&&bt.color(e,u),i&&bt.style(e,i),a&&bt.state(e,a)}(e,t)},t.prototype.update=function(t){e.prototype.update.call(this,t),this.mappingLayer(this.layer,this.options)},t.DefaultOptions=Ot,t.LayerOptionsKeys=mt.LayerConfigkeys.concat(wt),t}(mt),xt={autoFit:!1},Et=function(e){function t(t,n){var r=this;if("string"==typeof t||t instanceof Element){if(void 0===n)throw new Error("options is undefined");(r=e.call(this,n)||this).container=r.createContainer(t),r.theme=r.createTheme(),r.scene=r.createScene(),r.registerResources(),r.initSource()}else r=e.call(this,t)||this;return r}return Object(H.c)(t,e),t.prototype.initSource=function(){this.source=this.createSource(),this.render(),this.inited=!0},t.prototype.initLayersEvent=function(){},t.prototype.getDefaultOptions=function(){return t.DefaultOptions},t.prototype.createSource=function(){var e=this.options.source,t=e.data,n=e.aggregation,r=Object(H.f)(e,["data","aggregation"]);return n&&vt.aggregation(r,n),new Oe.a(t,r)},t.prototype.createLabelLayer=function(e,t,n){var r=n||{},o=r.visible,i=r.minZoom,a=r.maxZoom,c=r.zIndex,u=void 0===c?0:c;return new _t(Object(H.a)({name:"labelLayer",visible:o,minZoom:i,maxZoom:a,zIndex:u+.1,source:e},t))},t.prototype.updateLabelLayer=function(e,t,n,r){t?r?r.update(Object(H.a)({},t)):(r=this.createLabelLayer(e,t,n),this.layerGroup.addLayer(r)):!1===t&&r&&this.layerGroup.removeLayer(r)},t.prototype.render=function(){var e=this,t=this.createLayers(this.source);this.inited?(this.layerGroup.removeAllLayer(),t.addTo(this.scene),this.layerGroup=t):(this.layerGroup=t,this.scene.sceneService.loaded?this.onSceneLoaded():this.scene.once("loaded",(function(){e.onSceneLoaded()}))),this.initLayersEvent()},t.prototype.onSceneLoaded=function(){var e=this;this.sceneLoaded=!0,this.layerGroup.isEmpty()?this.onLayersLoaded():this.layerGroup.once("inited-all",(function(){e.onLayersLoaded()})),this.layerGroup.addTo(this.scene)},t.prototype.onLayersLoaded=function(){this.layersLoaded=!0,this.initComponents(),this.loaded=!0,this.emit("loaded")},t.prototype.attachToScene=function(e,t){this.scene=e,this.theme=t||pe("default"),this.registerResources(),this.initSource()},t.prototype.unattachFromScene=function(){var e;this.removeAllLayer(),null===(e=this.tooltip)||void 0===e||e.destroy()},t.prototype.addToScene=function(e){this.attachToScene(e)},t.prototype.removeFromScene=function(){var e;this.removeAllLayer(),this.removeScaleControl(),this.removeZoomControl(),this.removeLayerMenuControl(),this.removeLegendControl(),null===(e=this.tooltip)||void 0===e||e.destroy()},t.prototype.update=function(e){if(this.updateOption(e),e.map&&!D(this.lastOptions.map,this.options.map)&&this.updateMap(e.map),this.scene.setEnableRender(!1),e.source&&!D(this.lastOptions.source,this.options.source)){var t=e.source,n=t.data,r=Object(H.f)(t,["data"]);this.changeData(n,r)}this.scene.setEnableRender(!0),this.render(),this.updateComponents(),this.emit("update")},t.prototype.changeData=function(e,t){var n=this;this.options.source=Ze({},this.options.source,Object(H.a)({data:e},t));var r=this.options.source,o=r.aggregation,i=Object(H.f)(r,["aggregation"]);o&&vt.aggregation(i,o),this.source.setData(this.options.source.data,i);var a=this.options.legend;a&&setTimeout((function(){n.updateLegendControl(a)})),this.emit("change-data")},t.DefaultOptions=xt,t.PlotType=ge,t}(dt),St=Ze({},Et.DefaultOptions,{source:{data:[],parser:{type:"json",x:"x",y:"y"}}});var Ct=n("fw2E"),jt=n("SVsW");var kt=function(e){return e?(e=Object(jt.a)(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var Pt=function(e){var t=kt(e),n=t%1;return t==t?n?t-n:t:0},Tt=n("SNCn"),Mt=Ct.a.isFinite,At=Math.min;var Lt=function(e){var t=Math[e];return function(e,n){if(e=Object(jt.a)(e),(n=null==n?0:At(Pt(n),292))&&Mt(e)){var r=(Object(Tt.a)(e)+"e").split("e"),o=t(r[0]+"e"+(+r[1]+n));return+((r=(Object(Tt.a)(o)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}("round"),Rt=function(e){return function(e){return!Array.isArray(e[0].value)}(e)?e:e.map((function(e){return Object(H.a)(Object(H.a)({},e),{value:[Lt(e.value[0],2),Lt(e.value[1],2)]})}))},Nt={source:{data:[],parser:{type:"json",x:"x",y:"y"}},shape:"circle",size:12,color:"#5FD3A6"},It=["shape","color","size","style","state","animate"],Dt=function(e){function t(t){var n=e.call(this,t)||this;n.type=mt.LayerType.DotLayer,n.interaction=!0;var r=n.options,o=r.name,i=r.source,a=n.pickLayerConfig(n.options);return n.name=o||U(n.type),n.layer=new ht.a(Object(H.a)(Object(H.a)({},a),{name:n.name})),n.mappingLayer(n.layer,n.options),n.setSource(i),n}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return Nt},t.prototype.mappingLayer=function(e,t){!function(e,t){var n=t.shape,r=t.color,o=t.size,i=t.style,a=t.state,c=t.animate;n&&bt.shape(e,n),o&&bt.size(e,o),r&&bt.color(e,r),i&&bt.style(e,i),a&&bt.state(e,a),c&&bt.animate(e,c)}(e,t)},t.prototype.update=function(t){e.prototype.update.call(this,t),this.mappingLayer(this.layer,this.options)},t.prototype.getColorLegendItems=function(){var e=this.layer.getLegendItems("color");return Array.isArray(e)&&0!==e.length?Rt(e):[]},t.DefaultOptions=Nt,t.LayerOptionsKeys=mt.LayerConfigkeys.concat(It),t}(mt),Ft=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Et.PlotType.Dot,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return t.DefaultOptions},t.prototype.createLayers=function(e){this.dotLayer=new Dt(Object(H.a)({source:e},z(this.options,Dt.LayerOptionsKeys)));var t=new ut([this.dotLayer]);return this.options.label&&(this.labelLayer=this.createLabelLayer(e,this.options.label,this.options),t.addLayer(this.labelLayer)),t},t.prototype.updateLayers=function(e){var t=z(e,Dt.LayerOptionsKeys);this.dotLayer.update(t),this.updateLabelLayer(this.source,e.label,this.options,this.labelLayer)},t.prototype.getLegendOptions=function(){var e=this.dotLayer.getColorLegendItems();return 0!==e.length?{type:"category",items:e}:{}},t.DefaultOptions=St,t}(Et),zt=Ze({},Et.DefaultOptions,{source:{data:[],parser:{type:"json",x:"x",y:"y"}}}),Bt=["color","size","style","state","animate"],Ut=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Dt.LayerType.DotDensity,t.interaction=!1,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return Ze({},Dt.DefaultOptions,{shape:"dot",size:1})},t.LayerOptionsKeys=Dt.LayerConfigkeys.concat(Bt),t}(Dt),Vt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Et.PlotType.DotDensity,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return t.DefaultOptions},t.prototype.createLayers=function(e){return this.dotDensityLayer=new Ut(Object(H.a)({source:e},z(this.options,Ut.LayerOptionsKeys))),new ut([this.dotDensityLayer])},t.prototype.updateLayers=function(e){var t=z(e,Ut.LayerOptionsKeys);this.dotDensityLayer.update(t)},t.DefaultOptions=zt,t}(Et),Ht=Ze({},Et.DefaultOptions,{source:{data:[],parser:{type:"json",x:"x",y:"y"}}}),Gt=n("aDjr");var Wt={source:{data:[],parser:{type:"json",x:"x",y:"y"}},shape:"heatmap",size:{value:[0,1]},style:{intensity:3,radius:20,opacity:1,colorsRamp:[{color:"rgba(33,102,172,0.0)",position:0},{color:"rgb(103,169,207)",position:.2},{color:"rgb(209,229,240)",position:.4},{color:"rgb(253,219,199)",position:.6},{color:"rgb(239,138,98)",position:.8},{color:"rgb(178,24,43,1.0)",position:1}]}},Yt=["shape","color","size","style","state"],Kt=function(e){function t(t){var n=e.call(this,t)||this;n.type=mt.LayerType.HeatmapLayer,n.interaction=!1;var r=n.options,o=r.name,i=r.source,a=n.pickLayerConfig(n.options);return n.name=o||U(n.type),n.layer=new Gt.a(Object(H.a)(Object(H.a)({},a),{name:n.name})),n.mappingLayer(n.layer,n.options),n.setSource(i),n}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return Wt},t.prototype.mappingLayer=function(e,t){!function(e,t){var n=t.shape,r=t.size,o=t.style,i=t.state;n&&bt.shape(e,n),r&&bt.size(e,r),o&&("colorsRamp"in o&&(o.rampColors=function(e){var t=e.colorsRamp,n={colors:[],positions:[]};return t.forEach((function(e){var t=e.color,r=e.position;n.colors.push(t),n.positions.push(r)})),n}(o)),bt.style(e,o)),i&&bt.state(e,i)}(e,t)},t.prototype.update=function(t){e.prototype.update.call(this,t),this.mappingLayer(this.layer,this.options)},t.DefaultOptions=Wt,t.LayerOptionsKeys=mt.LayerConfigkeys.concat(Yt),t}(mt),Xt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Et.PlotType.Heatmap,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return t.DefaultOptions},t.prototype.createLayers=function(e){this.heatmapLayer=new Kt(Object(H.a)({source:e},z(this.options,Kt.LayerOptionsKeys)));var t=new ut([this.heatmapLayer]);return this.options.label&&(this.labelLayer=this.createLabelLayer(this.source,this.options.label,this.options),t.addLayer(this.labelLayer)),t},t.prototype.updateLayers=function(e){var t=z(e,Kt.LayerOptionsKeys);this.heatmapLayer.update(t),this.updateLabelLayer(this.source,e.label,this.options,this.labelLayer)},t.prototype.getLegendOptions=function(){var e,t=this.heatmapLayer.layer.getLegendItems("size");return Array.isArray(t)&&0!==t.length?{type:"continue",min:t[0].value,max:t[t.length-1].value,colors:null===(e=this.heatmapLayer.options.style)||void 0===e?void 0:e.colorsRamp.map((function(e){return e.color}))}:{}},t.DefaultOptions=Ht,t}(Et),qt=Ze({},Et.DefaultOptions,{source:{data:[],parser:{type:"json",x:"x",y:"y"},aggregation:{type:"grid",radius:15e3,method:"sum"}}});var Zt={source:{data:[],parser:{type:"json",x:"x",y:"y"},aggregation:{type:"grid",field:"",radius:15e3,method:"sum"}},shape:"square",color:"#5FD3A6",style:{coverage:.9,angle:0,opacity:1}},Jt=["shape","color","size","style","state"],Qt=function(e){function t(t){var n=e.call(this,t)||this;n.type=mt.LayerType.GridLayer,n.interaction=!1;var r=n.options,o=r.name,i=r.source,a=n.pickLayerConfig(n.options);return n.name=o||U(n.type),n.layer=new Gt.a(Object(H.a)(Object(H.a)({},a),{name:n.name})),n.mappingLayer(n.layer,n.options),n.setSource(i),n}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return Zt},t.prototype.mappingLayer=function(e,t){!function(e,t){var n=t.shape,r=t.color,o=t.size,i=t.style,a=t.state;n&&bt.shape(e,n),o&&bt.size(e,o),r&&bt.color(e,r),i&&bt.style(e,i),a&&bt.state(e,a)}(e,t)},t.prototype.update=function(t){e.prototype.update.call(this,t),this.mappingLayer(this.layer,this.options)},t.DefaultOptions=Zt,t.LayerOptionsKeys=mt.LayerConfigkeys.concat(Jt),t}(mt),$t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Et.PlotType.Grid,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return t.DefaultOptions},t.prototype.createLayers=function(e){this.gridLayer=new Qt(Object(H.a)({source:e},z(this.options,Qt.LayerOptionsKeys)));var t=new ut([this.gridLayer]);return this.options.label&&(this.labelLayer=this.createLabelLayer(this.source,this.options.label,this.options),t.addLayer(this.labelLayer)),t},t.prototype.updateLayers=function(e){var t=z(e,Qt.LayerOptionsKeys);this.gridLayer.update(t),this.updateLabelLayer(this.source,e.label,this.options,this.labelLayer)},t.DefaultOptions=qt,t}(Et),en=Ze({},Et.DefaultOptions,{source:{data:[],parser:{type:"json",x:"x",y:"y"},aggregation:{type:"hexagon",radius:15e3,method:"sum"}}});var tn={source:{data:[],parser:{type:"json",x:"x",y:"y"},aggregation:{type:"hexagon",field:"",radius:15e3,method:"sum"}},shape:"hexagon",color:"#5FD3A6",style:{coverage:.9,angle:0,opacity:1}},nn=["shape","color","size","style","state"],rn=function(e){function t(t){var n=e.call(this,t)||this;n.type=mt.LayerType.HexbinLayer,n.interaction=!1;var r=n.options,o=r.name,i=r.source,a=n.pickLayerConfig(n.options);return n.name=o||U(n.type),n.layer=new Gt.a(Object(H.a)(Object(H.a)({},a),{name:n.name})),n.mappingLayer(n.layer,n.options),n.setSource(i),n}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return tn},t.prototype.mappingLayer=function(e,t){!function(e,t){var n=t.shape,r=t.color,o=t.size,i=t.style,a=t.state;n&&bt.shape(e,n),o&&bt.size(e,o),r&&bt.color(e,r),i&&bt.style(e,i),a&&bt.state(e,a)}(e,t)},t.prototype.update=function(t){e.prototype.update.call(this,t),this.mappingLayer(this.layer,this.options)},t.DefaultOptions=tn,t.LayerOptionsKeys=mt.LayerConfigkeys.concat(nn),t}(mt),on=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Et.PlotType.Hexbin,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return t.DefaultOptions},t.prototype.createLayers=function(e){this.hexbinLayer=new rn(Object(H.a)({source:e},z(this.options,rn.LayerOptionsKeys)));var t=new ut([this.hexbinLayer]);return this.options.label&&(this.labelLayer=this.createLabelLayer(this.source,this.options.label,this.options),t.addLayer(this.labelLayer)),t},t.prototype.updateLayers=function(e){var t=z(e,rn.LayerOptionsKeys);this.hexbinLayer.update(t),this.updateLabelLayer(this.source,e.label,this.options,this.labelLayer)},t.DefaultOptions=en,t}(Et),an=Ze({},Et.DefaultOptions,{source:{data:{type:"FeatureCollection",features:[]},parser:{type:"geojson"}}}),cn=n("3/cu");var un={},sn=["shape","color","size","style","state","animate"],ln=function(e){function t(t){var n=e.call(this,t)||this;n.type=mt.LayerType.LinesLayer,n.interaction=!0;var r=n.options,o=r.name,i=r.source,a=n.pickLayerConfig(n.options);return n.name=o||U(n.type),n.layer=new cn.a(Object(H.a)(Object(H.a)({},a),{name:n.name})),n.mappingLayer(n.layer,n.options),n.setSource(i),n}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return un},t.prototype.mappingLayer=function(e,t){!function(e,t){var n=t.shape,r=t.color,o=t.size,i=t.style,a=t.state,c=t.animate,u=t.texture;n&&bt.shape(e,n),o&&bt.size(e,o),r&&bt.color(e,r),i&&bt.style(e,i),a&&bt.state(e,a),c&&bt.animate(e,c),u&&bt.texture(e,u)}(e,t)},t.prototype.update=function(t){e.prototype.update.call(this,t),this.mappingLayer(this.layer,this.options)},t.prototype.getColorLegendItems=function(){var e=this.layer.getLegendItems("color");return Array.isArray(e)&&0!==e.length?Rt(e):[]},t.DefaultOptions=un,t.LayerOptionsKeys=mt.LayerConfigkeys.concat(sn),t}(mt),fn=["color","size","style","state","animate"],pn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=ln.LayerType.PathLayer,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return Ze({},ln.DefaultOptions,{shape:"line"})},t.LayerOptionsKeys=ln.LayerConfigkeys.concat(fn),t}(ln),dn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Et.PlotType.Path,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return t.DefaultOptions},t.prototype.createLayers=function(e){return this.pathLayer=new pn(Object(H.a)({source:e},z(this.options,pn.LayerOptionsKeys))),new ut([this.pathLayer])},t.prototype.updateLayers=function(e){var t=z(e,pn.LayerOptionsKeys);this.pathLayer.update(t)},t.prototype.getLegendOptions=function(){var e=this.pathLayer.getColorLegendItems();return 0!==e.length?{type:"category",items:e}:{}},t.DefaultOptions=an,t}(Et),hn=Ze({},Et.DefaultOptions,{source:{data:[],parser:{type:"json"}},shape:"arc"}),vn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=ln.LayerType.ArcLayer,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return Ze({},ln.DefaultOptions,{shape:"arc"})},t}(ln),yn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Et.PlotType.Flow,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return t.DefaultOptions},t.prototype.createLayers=function(e){this.flowLayer=new vn(Object(H.a)({name:"flowLayer",source:e},z(this.options,vn.LayerOptionsKeys)));var t=new ut([this.flowLayer]);return this.options.radiation&&(this.radiationLayer=this.createRadiationLayer(e),t.addLayer(this.radiationLayer)),this.options.label&&(this.labelLayer=this.createLabelLayer(e,this.options.label),t.addLayer(this.labelLayer)),t},t.prototype.parserPointData=function(e){var t=[];return e.data.dataArray.forEach((function(e){var n=e.coordinates,r=Object(H.e)(n,2)[1];t.push(Object(H.a)(Object(H.a)({},e),{coordinates:r}))})),t},t.prototype.createRadiationLayer=function(e){var t=this,n=this.parserPointData(e),r=this.options.radiation||{},o=r.enabled,i=void 0===o||o,a=r.color,c=r.size,u=void 0===c?20:c,s=r.shape,l=void 0===s?"circle":s,f=r.animate,p=new Dt({name:"radiationLayer",source:{data:n,parser:{type:"json",coordinates:"coordinates"}},visible:i,color:a,size:u,shape:l,animate:void 0===f||f}),d=function(){var e=t.parserPointData(t.source);p.layer.setData(e)};return e.on("update",d),p.on("remove",(function(){e.off("update",d)})),p},t.prototype.createLabelLayer=function(e,t){var n=this,r=this.parserPointData(e),o=this.options,i=o.visible,a=o.minZoom,c=o.maxZoom,u=o.zIndex,s=void 0===u?0:u,l=new _t(Object(H.a)({name:"labelLayer",source:{data:r,parser:{type:"json",coordinates:"coordinates"}},visible:i,minZoom:a,maxZoom:c,zIndex:s+.1},t)),f=function(){var e=n.parserPointData(n.source);l.layer.setData(e)};return e.on("update",f),l.on("remove",(function(){e.off("update",f)})),l},t.prototype.updateLayers=function(e){var t=z(e,vn.LayerOptionsKeys);if(this.flowLayer.update(t),e.radiation)if(this.radiationLayer){var n=Object(H.a)(Object(H.a)({},e.radiation),{visible:e.radiation.enabled});this.radiationLayer.update(n)}else this.radiationLayer=this.createRadiationLayer(this.source),this.layerGroup.addLayer(this.radiationLayer);this.updateLabelLayer(this.source,e.label,this.options,this.labelLayer)},t.prototype.getLegendOptions=function(){var e=this.flowLayer.getColorLegendItems();return 0!==e.length?{type:"category",items:e}:{}},t.DefaultOptions=hn,t}(Et),mn=Ze({},Et.DefaultOptions,{source:{data:{type:"FeatureCollection",features:[]},parser:{type:"geojson"}}}),gn=n("nfwc"),bn={active:{fill:!1,stroke:"#2f54eb",lineWidth:1.5,lineOpacity:.8},select:{fill:!1,stroke:"#2f54eb",lineWidth:1.5,lineOpacity:.8}},On=function(e){return L(e)||(!1===e.active?bn.active=Object.assign(bn.active,{fill:!1,stroke:!1}):"object"==typeof e.active&&(!1===e.active.fill?bn.active.fill=!1:"string"==typeof e.active.fill&&(bn.active.fill=e.active.fill),!1===e.active.stroke?bn.active.stroke=!1:"string"==typeof e.active.stroke&&(bn.active.stroke=e.active.stroke),"number"==typeof e.active.lineWidth&&(bn.active.lineWidth=e.active.lineWidth),"number"==typeof e.active.lineOpacity&&(bn.active.lineOpacity=e.active.lineOpacity)),!1===e.select?bn.select=Object.assign(bn.select,{fill:!1,stroke:!1}):"object"==typeof e.select&&(!1===e.select.fill?bn.select.fill=!1:"string"==typeof e.select.fill&&(bn.select.fill=e.select.fill),!1===e.select.stroke?bn.select.stroke=!1:"string"==typeof e.select.stroke&&(bn.select.stroke=e.select.stroke),"number"==typeof e.select.lineWidth&&(bn.select.lineWidth=e.select.lineWidth),"number"==typeof e.select.lineOpacity&&(bn.select.lineOpacity=e.select.lineOpacity))),bn};var wn={visible:!0,state:{active:!1,select:!1},enabledMultiSelect:!1},_n=["color","style","state","enabledMultiSelect"],xn=function(e){function t(t){var n=e.call(this,t)||this;n.selectData=[],n.type=mt.LayerType.AreaLayer,n.interaction=!0,n.onHighlighHandle=function(e){var t=e.feature,r=e.featureId;n.setHighlightLayerSource(t,r)},n.onUnhighlighHandle=function(){n.setHighlightLayerSource()},n.onSelectHandle=function(e){var t=n.options.enabledMultiSelect,r=e.feature,o=e.featureId,i=R(n.selectData),a=i.findIndex((function(e){return e.featureId===o}));if(-1===a)t?i.push({feature:r,featureId:o}):i=[{feature:r,featureId:o}],n.emit("select",r,R(i));else{var c=i[a];t?i.splice(a,1):i=[],n.emit("unselect",c,R(i))}n.setSelectLayerSource(i)};var r=n.options,o=r.name,i=r.source,a=r.visible,c=r.minZoom,u=r.maxZoom,s=r.zIndex,l=void 0===s?0:s,f=n.pickLayerConfig(n.options),p=On(n.options.state);return n.name=o||U(n.type),n.layer=new gn.a(Object(H.a)(Object(H.a)({},f),{name:n.name})),n.strokeLayer=new cn.a({name:"strokeLayer",visible:a,zIndex:l,minZoom:c,maxZoom:u}),n.highlightLayer=new cn.a({name:"highlightLayer",visible:a&&Boolean(p.active.stroke),zIndex:l+.1,minZoom:c,maxZoom:u}),n.selectFillLayer=new gn.a({name:"selectFillLayer",visible:a&&Boolean(p.select.fill),zIndex:l+.1,minZoom:c,maxZoom:u}),n.selectStrokeLayer=new cn.a({name:"selectStrokeLayer",visible:a&&Boolean(p.select.stroke),zIndex:l+.1,minZoom:c,maxZoom:u}),n.mappingLayer(n.options),n.setSource(i),n.initEvent(),n}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return wn},t.prototype.mappingLayer=function(e){!function(e,t,n,r,o,i){var a=i.color,c=i.style,u=i.state,s=On(u),l={active:!1!==s.active.fill&&{color:s.active.fill},select:!1},f={opacity:null==c?void 0:c.opacity},p=null==c?void 0:c.fillBottomColor,d=null==c?void 0:c.lineWidth,h=null==c?void 0:c.stroke,v={opacity:null==c?void 0:c.lineOpacity,dashArray:null==c?void 0:c.lineDash,lineType:null==c?void 0:c.lineType};if(bt.shape(e,"fill"),a&&bt.color(e,a),f&&bt.style(e,f),l&&bt.state(e,l),p&&e.setBottomColor(p),bt.shape(t,"line"),d&&bt.size(t,d),h&&bt.color(t,h),v&&bt.style(t,v),s.active.stroke){var y=s.active.stroke,m=s.active.lineWidth||d,g={opacity:s.active.lineOpacity};bt.shape(n,"line"),m&&bt.size(n,m),y&&bt.color(n,y),g&&bt.style(n,g)}if(s.select.fill){var b=s.select.fill;bt.shape(r,"fill"),b&&bt.color(r,b),f&&bt.style(r,f),bt.state(r,{select:!1,active:!1})}if(s.select.stroke){var O=s.select.stroke,w=(m=s.select.lineWidth||d,{opacity:s.select.lineOpacity});bt.shape(o,"line"),m&&bt.size(o,m),O&&bt.color(o,O),w&&bt.style(o,w)}}(this.layer,this.strokeLayer,this.highlightLayer,this.selectFillLayer,this.selectStrokeLayer,e)},t.prototype.setSource=function(t){e.prototype.setSource.call(this,t),this.setStrokeLayerSource(),this.setHighlightLayerSource(),this.selectFillLayer.source({type:"FeatureCollection",features:[]},{parser:{type:"geojson"}}),this.selectStrokeLayer.source({type:"FeatureCollection",features:[]},{parser:{type:"geojson"}})},t.prototype.setStrokeLayerSource=function(){var e=this.layer.getSource();if(e)this.strokeLayer.setSource(e);else{var t=this.layer.sourceOption,n=t.data,r=t.options;this.strokeLayer.source(n,r)}},t.prototype.setHighlightLayerSource=function(e,t){if(void 0===t&&(t=-999),this.highlightLayerData!==t){var n=e?[e]:[];this.highlightLayer.setData({type:"FeatureCollection",features:n},{parser:{type:"geojson"}}),this.highlightLayerData=t}},t.prototype.setSelectLayerSource=function(e){if(void 0===e&&(e=[]),this.selectData.length!==e.length||!D(this.selectData.map((function(e){return e.featureId})),e.map((function(e){return e.featureId})))){var t=e.map((function(e){return e.feature}));this.selectFillLayer.setData({type:"FeatureCollection",features:t},{parser:{type:"geojson"}}),this.selectStrokeLayer.setData({type:"FeatureCollection",features:t},{parser:{type:"geojson"}}),this.selectData=e}},t.prototype.initEvent=function(){this.layer.off("mousemove",this.onHighlighHandle),this.layer.off("unmousemove",this.onHighlighHandle),this.layer.off("click",this.onSelectHandle),this.selectData=[],this.highlightLayerData=null,this.options.state&&(this.options.state.active&&(this.layer.on("mousemove",this.onHighlighHandle),this.layer.on("unmousemove",this.onUnhighlighHandle)),this.options.state.select&&this.layer.on("click",this.onSelectHandle))},t.prototype.addTo=function(e){e.addLayer(this.layer),e.addLayer(this.strokeLayer),e.addLayer(this.highlightLayer),e.addLayer(this.selectFillLayer),e.addLayer(this.selectStrokeLayer)},t.prototype.remove=function(e){e.removeLayer(this.layer),e.removeLayer(this.strokeLayer),e.removeLayer(this.highlightLayer),e.removeLayer(this.selectFillLayer),e.removeLayer(this.selectStrokeLayer)},t.prototype.update=function(t){if(e.prototype.update.call(this,t),this.mappingLayer(this.options),this.options.visible){L(t.state)||D(this.lastOptions.state,this.options.state)||this.updateHighlightLayer();var n=On(this.options.state);n.active.stroke&&this.setHighlightLayerSource(),(n.select.fill||n.select.stroke)&&this.setSelectLayerSource()}this.initEvent()},t.prototype.updateHighlightLayer=function(){var e=On(this.options.state),t=On(this.lastOptions.state);t.active.stroke!==e.active.stroke&&(e.active.stroke?this.highlightLayer.show():this.highlightLayer.hide()),t.select.fill!==e.select.fill&&(e.select.fill?this.selectFillLayer.show():this.selectFillLayer.hide()),t.select.stroke!==e.select.stroke&&(e.select.stroke?this.selectStrokeLayer.show():this.selectStrokeLayer.hide())},t.prototype.setIndex=function(e){this.layer.setIndex(e),this.strokeLayer.setIndex(e),this.highlightLayer.setIndex(e+.1),this.selectFillLayer.setIndex(e+.1),this.selectStrokeLayer.setIndex(e+.1)},t.prototype.setMinZoom=function(e){this.layer.setMinZoom(e),this.strokeLayer.setMinZoom(e),this.highlightLayer.setMinZoom(e),this.selectFillLayer.setMinZoom(e),this.selectStrokeLayer.setMinZoom(e)},t.prototype.setMaxZoom=function(e){this.layer.setMaxZoom(e),this.strokeLayer.setMaxZoom(e),this.highlightLayer.setMaxZoom(e),this.selectFillLayer.setMaxZoom(e),this.selectStrokeLayer.setMaxZoom(e)},t.prototype.show=function(){this.layer.inited&&(this.layer.show(),this.strokeLayer.show(),this.selectFillLayer.show(),this.selectStrokeLayer.show())},t.prototype.hide=function(){this.layer.inited&&(this.layer.hide(),this.strokeLayer.hide(),this.selectFillLayer.hide(),this.selectStrokeLayer.hide())},t.prototype.getColorLegendItems=function(){var e=this.layer.getLegendItems("color");return Array.isArray(e)&&0!==e.length?Rt(e):[]},t.prototype.setActive=function(e){},t.prototype.setSelect=function(e){},t.DefaultOptions=wn,t.LayerOptionsKeys=mt.LayerConfigkeys.concat(_n),t}(mt),En=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Et.PlotType.Area,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return t.DefaultOptions},t.prototype.createLayers=function(e){this.areaLayer=new xn(Object(H.a)({source:e},z(this.options,xn.LayerOptionsKeys)));var t=new ut([this.areaLayer]);return this.options.label&&(this.labelLayer=this.createLabelLayer(e,this.options.label,this.options),t.addLayer(this.labelLayer)),t},t.prototype.updateLayers=function(e){var t=z(e,xn.LayerOptionsKeys);this.areaLayer.update(t),this.updateLabelLayer(this.source,e.label,this.options,this.labelLayer)},t.prototype.initLayersEvent=function(){},t.prototype.getLegendOptions=function(){var e=this.areaLayer.getColorLegendItems();return 0!==e.length?{type:"category",items:e}:{}},t.DefaultOptions=mn,t}(Et),Sn=Ze({},Et.DefaultOptions,{source:{data:[],joinBy:{geoField:"adcode"}},viewLevel:{level:"country",adcode:"100000"},chinaBorder:!0}),Cn={world:"country",country:"province",province:"city",city:"district",district:"district"},jn="https://gw.alipayobjects.com/os/alisis/geo-data-v0.1.2",kn="".concat(jn,"/choropleth-data"),Pn={national:{color:"red",width:1,opacity:1},dispute:{color:"red",width:1,opacity:.8,dashArray:[2,4]},coast:{color:"blue",width:.7,opacity:.8},hkm:{color:"gray",width:.7,opacity:.8,dashArray:[2,4]}},Tn=new Map;var Mn=function(e){return e},An=function(e){if(null==e)return Mn;var t,n,r=e.scale[0],o=e.scale[1],i=e.translate[0],a=e.translate[1];return function(e,c){c||(t=n=0);var u=2,s=e.length,l=new Array(s);for(l[0]=(t+=e[0])*r+i,l[1]=(n+=e[1])*o+a;u<s;)l[u]=e[u],++u;return l}};function Ln(e,t){var n=t.id,r=t.bbox,o=null==t.properties?{}:t.properties,i=Rn(e,t);return null==n&&null==r?{type:"Feature",properties:o,geometry:i}:null==r?{type:"Feature",id:n,properties:o,geometry:i}:{type:"Feature",id:n,bbox:r,properties:o,geometry:i}}function Rn(e,t){var n=An(e.transform),r=e.arcs;function o(e,t){t.length&&t.pop();for(var o=r[e<0?~e:e],i=0,a=o.length;i<a;++i)t.push(n(o[i],i));e<0&&function(e,t){for(var n,r=e.length,o=r-t;o<--r;)n=e[o],e[o++]=e[r],e[r]=n}(t,a)}function i(e){return n(e)}function a(e){for(var t=[],n=0,r=e.length;n<r;++n)o(e[n],t);return t.length<2&&t.push(t[0]),t}function c(e){for(var t=a(e);t.length<4;)t.push(t[0]);return t}function u(e){return e.map(c)}return function e(t){var n,r=t.type;switch(r){case"GeometryCollection":return{type:r,geometries:t.geometries.map(e)};case"Point":n=i(t.coordinates);break;case"MultiPoint":n=t.coordinates.map(i);break;case"LineString":n=a(t.arcs);break;case"MultiLineString":n=t.arcs.map(a);break;case"Polygon":n=u(t.arcs);break;case"MultiPolygon":n=t.arcs.map(u);break;default:return null}return{type:r,coordinates:n}}(t)}var Nn=function(e){try{return t=e,"string"==typeof(n="json")&&(n=t.objects[n]),"GeometryCollection"===n.type?{type:"FeatureCollection",features:n.geometries.map((function(e){return Ln(t,e)}))}:Ln(t,n)}catch(r){throw new Error('Failed convert to geojson from topojson, topojson default layer name "json"')}var t,n},In=function(e){return z(e,["source","color","style","state","label","tooltip"])},Dn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Et.PlotType.Choropleth,t.chinaBoundaryData={type:"FeatureCollection",features:[]},t.currentDistrictData={type:"FeatureCollection",features:[]},t.drillSteps=[],t.drillStacks=[],t.onDrillDownHander=function(e){var n,r=t.options.drill,o=r.steps,i=r.onDown,a=null===(n=e.feature)||void 0===n?void 0:n.properties,c=a.adcode;if(t.drillStacks.length!==o.length+1){var u=t.drillStacks.slice(-1)[0],s=t.drillStacks.length-1,l=t.drillSteps[s],f=l.level,p=l.granularity,d=void 0===p?Cn[f]:p,h=Object(H.f)(l,["level","granularity"]),v={from:{level:u.level,adcode:u.adcode,granularity:u.granularity},to:{level:f,adcode:c,granularity:d,properties:a}},y=function(e){void 0===e&&(e={});var n={level:f,adcode:c,granularity:d},r=Ze({},h,e);t.changeView(n,r).then((function(e){e&&(t.drillStacks.push(e),t.emit("drilldown",v))}))};i?i(v.from,v.to,y):y()}},t.onDrillUpHander=function(){var e=t.options.drill.onUp;if(!(0===t.drillStacks.length||1===t.drillStacks.length)){var n=t.drillStacks.length-1,r=t.drillStacks[n],o=t.drillStacks[n-1],i={from:{level:r.level,adcode:r.adcode,granularity:r.granularity},to:{level:o.level,adcode:o.adcode,granularity:o.granularity}},a=function(e){void 0===e&&(e={});var n=i.to,r=Ze({},o.config,e);t.changeView(n,r).then((function(e){e&&(t.drillStacks.pop(),t.emit("drillup",i))}))};e?e(i.from,i.to,a):a()}},t}return Object(H.c)(t,e),t.prototype.initSource=function(){var e=this;this.getInitDistrictData().then((function(){e.source=e.createSource(),e.render(),e.inited=!0}))},t.prototype.render=function(){var e=this;if(console.time("l7plot choropleth render time"),this.inited)this.scene.setEnableRender(!0),this.scene.render();else{var t=this.createLayers(this.source);this.layerGroup=t,this.scene.sceneService.loaded?this.onSceneLoaded():this.scene.once("loaded",(function(){e.onSceneLoaded()})),this.initLayersEvent()}console.timeEnd("l7plot choropleth render time")},t.prototype.update=function(e){var t,n,r,o=this;if(this.updateOption(e),e.map&&!D(this.lastOptions.map,this.options.map)&&this.updateMap(e.map),e.drill&&!1!==e.drill.enabled&&!D(null===(t=this.lastOptions.drill)||void 0===t?void 0:t.steps,null===(n=this.options.drill)||void 0===n?void 0:n.steps)&&(this.drillReset(),this.initDrillEvent()),this.scene.setEnableRender(!1),e.viewLevel&&!D(this.lastOptions.viewLevel,this.options.viewLevel)){var i=null===(r=e.source)||void 0===r?void 0:r.joinBy.geoData;console.time("l7plot choropleth update viewLevel time"),this.getDistrictData(i).then((function(){var t=o.options.source,n=t.data,r=Object(H.f)(t,["data"]);o.changeData(n,r),o.updateLayers(e),o.render(),o.updateComponents(),console.timeEnd("l7plot choropleth update viewLevel time"),o.emit("update")}))}else{if(e.source&&!D(this.lastOptions.source,this.options.source)){var a=this.options.source,c=a.data,u=Object(H.f)(a,["data"]);this.changeData(c,u)}this.updateLayers(e),this.render(),this.updateComponents(),this.emit("update")}},t.prototype.getDefaultOptions=function(){return t.DefaultOptions},t.prototype.parserSourceConfig=function(e){var t=e.data,n=e.joinBy,r=Object(H.f)(e,["data","joinBy"]),o=n.sourceField,i=n.geoField,a=n.geoData,c={type:"join",sourceField:o,targetField:i,data:t};return r.transforms?r.transforms.push(c):r.transforms=[c],r.parser&&delete r.parser,{data:a,sourceCFG:r}},t.prototype.createSource=function(){var e=this.parserSourceConfig(this.options.source),t=e.data,n=e.sourceCFG;return new Oe.a(t,n)},t.prototype.changeData=function(e,t){var n=this;console.time("l7plot choropleth update data time"),this.options.source=Ze({},this.options.source,Object(H.a)({data:e},t));var r=this.parserSourceConfig(this.options.source),o=r.data,i=r.sourceCFG;this.source.setData(o,i),console.timeEnd("l7plot choropleth update data time");var a=this.options.legend;a&&setTimeout((function(){n.updateLegendControl(a)})),this.emit("change-data")},t.prototype.createLayers=function(e){this.fillAreaLayer=new xn(Object(H.a)({name:"fillAreaLayer",source:e},z(this.options,xn.LayerOptionsKeys)));var t=new ut([this.fillAreaLayer]);this.options.chinaBorder&&this.createCountryBoundaryLayer(this.chinaBoundaryData,this.options).forEach((function(e){return t.addLayer(e)}));return this.options.label&&(this.labelLayer=this.createLabelLayer(e,this.options.label),t.addLayer(this.labelLayer)),t},t.prototype.createCountryBoundaryLayer=function(e,t){var n=function(e,t){var n=t||{},r=n.visible,o=n.minZoom,i=n.maxZoom,a=n.zIndex,c=void 0===a?0:a,u=n.chinaBorder,s="object"==typeof u?Ze({},Pn,u):Pn,l=e.features.filter((function(e){var t=e.properties;return["coast","national"].includes(null==t?void 0:t.type)})),f=e.features.filter((function(e){var t=e.properties;return"dispute"===(null==t?void 0:t.type)})),p=e.features.filter((function(e){var t=e.properties;return"hkm"===(null==t?void 0:t.type)}));return{chinaBoundaryLayer:new pn({name:"chinaBoundaryLayer",visible:r,minZoom:o,maxZoom:i,zIndex:c+.1,source:{data:{type:"FeatureCollection",features:l},parser:{type:"geojson"}},color:{field:"type",value:function(e){var t=e.type;return s[t].color}},size:{field:"type",value:function(e){var t=e.type;return s[t].width}},style:{opacity:["type",function(e){return s[e].opacity}]}}),chinaHkmBoundaryLayer:new pn({name:"chinaHkmBoundaryLayer",visible:r,minZoom:o,maxZoom:i,zIndex:c+.1,source:{data:{type:"FeatureCollection",features:p},parser:{type:"geojson"}},color:s.hkm.color,size:s.hkm.width,style:{opacity:s.hkm.opacity,lineType:"dash",dashArray:s.hkm.dashArray}}),chinaDisputeBoundaryLayer:new pn({name:"chinaDisputeBoundaryLayer",visible:r,minZoom:o,maxZoom:i,zIndex:c+.1,source:{data:{type:"FeatureCollection",features:f},parser:{type:"geojson"}},color:s.dispute.color,size:s.dispute.width,style:{opacity:s.dispute.opacity,lineType:"dash",dashArray:s.dispute.dashArray}})}}(e,t),r=n.chinaBoundaryLayer,o=n.chinaHkmBoundaryLayer,i=n.chinaDisputeBoundaryLayer;return this.chinaBoundaryLayer=r,this.chinaHkmBoundaryLayer=o,this.chinaDisputeBoundaryLayer=i,[r,o,i]},t.prototype.createLabelLayer=function(e,t){var n=this,r=e.originData.features.map((function(e){var t=e.properties;return Object.assign({},t,{centroid:t.centroid||t.center})})).filter((function(e){return e.centroid})),o=this.options,i=o.visible,a=o.minZoom,c=o.maxZoom,u=o.zIndex,s=void 0===u?0:u,l=new _t(Object(H.a)({name:"labelLayer",source:{data:r,parser:{type:"json",coordinates:"centroid"},transforms:e.transforms},visible:i,minZoom:a,maxZoom:c,zIndex:s+.1},t)),f=function(){var e=n.source.originData.features.map((function(e){return e.properties})).filter((function(e){return e.centroid}));l.layer.setData(e)};return e.on("update",f),l.on("remove",(function(){e.off("update",f)})),l},t.prototype.updateLayers=function(e){var t=this,n=z(e,xn.LayerOptionsKeys);this.fillAreaLayer.update(n);var r=function(){t.createCountryBoundaryLayer(t.chinaBoundaryData,t.options).forEach((function(e){return t.layerGroup.addLayer(e)}))},o=function(){t.chinaBoundaryLayer&&t.layerGroup.removeLayer(t.chinaBoundaryLayer),t.chinaHkmBoundaryLayer&&t.layerGroup.removeLayer(t.chinaHkmBoundaryLayer),t.chinaDisputeBoundaryLayer&&t.layerGroup.removeLayer(t.chinaDisputeBoundaryLayer)};e.chinaBorder?this.chinaBoundaryLayer?(o(),r()):r():!1===e.chinaBorder&&o(),this.updateLabelLayer(this.source,e.label,this.options,this.labelLayer)},t.prototype.initLayersEvent=function(){this.initDrillEvent()},t.prototype.initDrillEvent=function(){if(this.lastOptions.drill){var e=this.lastOptions.drill,t=e.triggerUp,n=void 0===t?"unclick":t,r=e.triggerDown,o=void 0===r?"click":r;this.fillAreaLayer.off(n,this.onDrillUpHander),this.fillAreaLayer.off(o,this.onDrillDownHander)}if(this.options.drill&&!1!==this.options.drill.enabled){var i=this.options.drill,a=i.steps,c=i.triggerUp,u=void 0===c?"unclick":c,s=i.triggerDown,l=void 0===s?"click":s,f=a.map((function(e){return"string"==typeof e?{level:e,granularity:Cn[e]}:(e.granularity||(e.granularity=Cn[e.level]),e)}));if(function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=r.level,i=r.granularity;if(t[n].level!==o||t[n].granularity!==i)return!1}return!0}(f,this.drillSteps)||(this.drillSteps=f,this.drillStacks=[]),!this.drillStacks.length){var p=this.options.viewLevel,d=p.level,h=p.adcode,v=p.granularity,y=void 0===v?Cn[d]:v,m=In(this.options);this.drillStacks=[{level:d,adcode:h,granularity:y,config:m}]}this.fillAreaLayer.on(u,this.onDrillUpHander),this.fillAreaLayer.on(l,this.onDrillDownHander)}},t.prototype.drillReset=function(){this.drillStacks=[]},t.prototype.getCurrentDrillSteps=function(){return this.drillStacks.map((function(e){return z(e,["level","adcode","granularity"])}))},t.prototype.getLegendOptions=function(){var e=this.fillAreaLayer.getColorLegendItems();return 0!==e.length?{type:"category",items:e}:{}},t.prototype.fetchData=function(e,t,n){return Object(H.b)(this,void 0,void 0,(function(){var r,o,i,a,c,u,s,l;return Object(H.d)(this,(function(f){switch(f.label){case 0:return r="".concat(t,"_").concat(e,"_").concat(n),h=r,(o=Tn.get(h))?[2,o]:(p=this.options.geoArea,d={url:kn,type:"topojson",extension:"topo.json"},L(p)||("string"==typeof p?d.url=p:(d.url=(null==p?void 0:p.url)||kn,d.type=p.type,d.extension="topojson"===p.type?"topo.json":"json")),a=(i=d).url,c=i.type,u=i.extension,(l=this.options.customFetchGeoData)?[4,l({url:a,level:e,adcode:t,granularity:n,extension:u})]:[3,2]);case 1:return s=f.sent(),[3,5];case 2:return[4,fetch("".concat(a,"/").concat(e,"/").concat(r,".").concat(u))];case 3:return[4,f.sent().json()];case 4:s=f.sent(),f.label=5;case 5:return"topojson"===c&&(s=Nn(s)),function(e,t){Tn.set(e,t)}(r,s),[2,s]}var p,d,h}))}))},t.prototype.getInitDistrictData=function(){var e;return Object(H.b)(this,void 0,void 0,(function(){var t,n,r,o;return Object(H.d)(this,(function(i){switch(i.label){case 0:t=this.fetchData("country","100000","boundary"),n=null===(e=this.options.source)||void 0===e?void 0:e.joinBy.geoData,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all([t,this.getDistrictData(n)])];case 2:return o=H.e.apply(void 0,[i.sent(),1]),this.chinaBoundaryData=o[0],[3,4];case 3:throw r=i.sent(),new Error("Failed to get china boundary data,".concat(r));case 4:return[2]}}))}))},t.prototype.getDistrictData=function(e){return Object(H.b)(this,void 0,void 0,(function(){var t,n,r,o,i,a,c,u;return Object(H.d)(this,(function(s){switch(s.label){case 0:t=this.options.viewLevel,n=t.level,r=t.adcode,o=t.granularity,i=void 0===o?Cn[n]:o,a=e?Promise.resolve(e):this.fetchData(n,r,i),s.label=1;case 1:return s.trys.push([1,3,,4]),c=this,[4,a];case 2:return c.currentDistrictData=s.sent(),this.options.source=Ze({},this.options.source,{joinBy:{geoData:this.currentDistrictData}}),[3,4];case 3:throw u=s.sent(),new Error("Failed to get district data,".concat(u));case 4:return[2]}}))}))},t.prototype.drillDown=function(e,t){var n=this;void 0===t&&(t={}),this.changeView(e,t).then((function(e){e&&n.drillStacks.push(e)}))},t.prototype.drillUp=function(e,t){void 0===e&&(e={});var n=this.drillStacks.length;if(![0,1].includes(n)){var r=t?this.drillStacks.findIndex((function(e){return e.level===t})):-1,o=-1!==r,i=o?r:n-2,a=this.drillStacks[i],c=a.config,u=Object(H.f)(a,["config"]),s=Ze({},c,e);this.changeView(u,s),o?this.drillStacks.splice(r+1):this.drillStacks.pop()}},t.prototype.changeView=function(e,t){return void 0===t&&(t={}),Object(H.b)(this,void 0,void 0,(function(){var n,r,o,i,a,c;return Object(H.d)(this,(function(u){switch(u.label){case 0:return n=e.level,r=e.adcode,o=e.granularity,i=void 0===o?Cn[n]:o,[4,this.fetchData(n,r,i)];case 1:return(a=u.sent()).features.length?(c=Ze({},In(this.options),t,{viewLevel:{level:n,adcode:r,granularity:i},source:{joinBy:{geoData:a}}}),this.update(c),[2,{level:n,adcode:r,granularity:i,config:c}]):[2]}}))}))},t.DefaultOptions=Sn,t.GeoDataUrl=jn,t.GeoAreaUrl=kn,t}(Et),Fn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Dt.LayerType.IconLayer,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return Ze({},Dt.DefaultOptions,{color:void 0})},t}(Dt),zn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Dt.LayerType.ColumnLayer,t}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return Ze({},Dt.DefaultOptions,{shape:"cylinder"})},t}(Dt);var Bn,Un,Vn={},Hn=["color","size","style","state"],Gn=function(e){function t(t){var n=e.call(this,t)||this;n.type=mt.LayerType.PrismLayer,n.interaction=!0;var r=n.options,o=r.name,i=r.source,a=n.pickLayerConfig(n.options);return n.name=o||U(n.type),n.layer=new gn.a(Object(H.a)(Object(H.a)({},a),{name:n.name})),n.mappingLayer(n.layer,n.options),n.setSource(i),n}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return Vn},t.prototype.mappingLayer=function(e,t){!function(e,t){var n=t.color,r=t.size,o=t.style,i=t.state;bt.shape(e,"extrude"),r&&bt.size(e,r),n&&bt.color(e,n),o&&bt.style(e,o),i&&bt.state(e,i)}(e,t)},t.prototype.update=function(t){e.prototype.update.call(this,t),this.mappingLayer(this.layer,this.options)},t.prototype.getColorLegendItems=function(){var e=this.layer.getLegendItems("color");return Array.isArray(e)&&0!==e.length?Rt(e):[]},t.DefaultOptions=Vn,t.LayerOptionsKeys=mt.LayerConfigkeys.concat(Hn),t}(mt),Wn=((Bn={})[ge.Dot]=Ft,Bn[ge.DotDensity]=Vt,Bn[ge.Heatmap]=Xt,Bn[ge.Grid]=$t,Bn[ge.Hexbin]=on,Bn[ge.Path]=dn,Bn[ge.Flow]=yn,Bn[ge.Area]=En,Bn[ge.Choropleth]=Dn,Bn),Yn=((Un={})[ve.TextLayer]=_t,Un[ve.DotLayer]=Dt,Un[ve.IconLayer]=Fn,Un[ve.DotDensity]=Ut,Un[ve.ColumnLayer]=zn,Un[ve.HeatmapLayer]=Kt,Un[ve.GridLayer]=Qt,Un[ve.HexbinLayer]=rn,Un[ve.PathLayer]=pn,Un[ve.ArcLayer]=vn,Un[ve.AreaLayer]=xn,Un[ve.PrismLayer]=Gn,Un),Kn={},Xn=function(e){function t(t,n){var r=e.call(this,n)||this;return r.plots=[],r.container=r.createContainer(t),r.theme=r.createTheme(),r.scene=r.createScene(),r.registerResources(),r.render(),r.inited=!0,r}return Object(H.c)(t,e),t.prototype.getDefaultOptions=function(){return Ze({},dt.DefaultOptions,t.DefaultOptions)},t.prototype.createLayers=function(){for(var e=new ut([]),t=this.options.layers||[],n=0;n<t.length;n++){var r=this.createLayer(t[n]);e.addLayer(r)}return e},t.prototype.createLayer=function(e){var t=e.type,n=Object(H.f)(e,["type"]),r=Yn[t];if(L(r))throw new Error("Don't exist ".concat(t," layer"));return new r(n)},t.prototype.addLayer=function(t){if(function(e){return"function"==typeof e.render}(t))e.prototype.addLayer.call(this,t);else{var n=this.createLayer(t);e.prototype.addLayer.call(this,n)}},t.prototype.removeLayerByName=function(e){var t=this.layerGroup.getLayerByName(e);return!!t&&this.layerGroup.removeLayer(t)},t.prototype.updateLayers=function(e){},t.prototype.updatePlots=function(e){},t.prototype.render=function(){var e=this,t=this.createLayers();this.inited?(this.layerGroup.removeAllLayer(),t.addTo(this.scene),this.layerGroup=t,this.updateControls()):(this.layerGroup=t,this.scene.sceneService.loaded?this.onSceneLoaded():this.scene.once("loaded",(function(){e.onSceneLoaded()})))},t.prototype.onSceneLoaded=function(){var e=this;this.sceneLoaded=!0,this.layerGroup.isEmpty()?this.onLayersLoaded():this.layerGroup.once("inited-all",(function(){e.onLayersLoaded()})),this.layerGroup.addTo(this.scene)},t.prototype.onLayersLoaded=function(){this.layersLoaded=!0,this.renderPlots(),this.initControls(),this.loaded=!0,this.emit("loaded")},t.prototype.renderPlots=function(){for(var e=this.options.plots||[],t=0;t<e.length;t++){var n=e[t],r=this.createPlot(n);this.plots.push(r)}},t.prototype.createPlot=function(e){var t=e.type,n=(e.legend,e.layerMenu,Object(H.f)(e,["type","legend","layerMenu"])),r=Wn[t];if(L(r))throw new Error("Don't exist ".concat(t," plot"));var o=new r(n);return o.attachToScene(this.scene,this.theme),o},t.prototype.addPlot=function(e){var t=this.createPlot(e);this.plots.push(t)},t.prototype.getPlots=function(){return this.plots},t.prototype.getPlotByName=function(e){return this.plots.find((function(t){var n;return(null===(n=t.options)||void 0===n?void 0:n.name)===e}))},t.prototype.removePlotByName=function(e){var t=this.plots.findIndex((function(t){var n;return(null===(n=t.options)||void 0===n?void 0:n.name)===e}));return-1!==t&&(Object(H.e)(this.plots.splice(t,1),1)[0].unattachFromScene(),!0)},t.prototype.removeAllPlot=function(){this.plots.forEach((function(e){e.unattachFromScene()})),this.plots=[]},t.DefaultOptions=Kn,t}(dt)},XcBm:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},XhxR:function(e,t,n){"use strict";var r=n("CYhr");var o=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var i=function(e){return this.__data__.has(e)};function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r.a;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i;t.a=a},Xidw:function(e,t,n){var r=n("y/9h"),o=n("/wCD"),i=n("70Le"),a=n("X4R2"),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},Xj5T:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optional=void 0;var r=n("2u/a"),o=n("jFDj"),i=n("tTA5");t.optional=function(){return function(e,t,n){var a=new o.Metadata(r.OPTIONAL_TAG,!0);"number"==typeof n?i.tagParameter(e,t,n,a):i.tagProperty(e,t,a)}}},XlL0:function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},"Xm/D":function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")"+"?",s="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[i,a,c].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),l="(?:"+[i+r+"?",r,a,c,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+l+s,"g");e.exports=function(e){return e.match(f)||[]}},"Y/ZZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var r,o,i,a,c,u=n("TYRa"),s=n.n(u),l=n("2Lg3"),f=n.n(l),p=n("S0cN"),d=n.n(p),h=n("s6Xb"),v=(n("qzOT"),n("+NSP")),y=n("sC+u"),m=n("JyD/");function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _,x,E,S,C,j,k=(r=Object(h.injectable)(),o=Object(h.inject)(y.a.IShaderModuleService),r((a=function(){function e(){var t,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="shaderModuleService",o=this,(r=c)&&Object.defineProperty(t,n,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(o):void 0}),w(this,"quad","attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}"),w(this,"enabled",!0),w(this,"renderToScreen",!1),w(this,"optionsToUpdate",{})}var t,n,r;return t=e,(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getType",value:function(){return m.a.PostProcessing}},{key:"init",value:function(e,t){this.config=t,this.rendererService=e.getContainer().get(y.a.IRendererService),this.shaderModuleService=e.getContainer().get(y.a.IShaderModuleService);var n=this.rendererService,r=n.createAttribute,o=n.createBuffer,i=n.createModel,a=this.setupShaders(),c=a.vs,u=a.fs,s=a.uniforms;this.model=i({vs:c,fs:u,attributes:{a_Position:r({buffer:o({data:[-4,-4,4,-4,0,4],type:v.a.FLOAT}),size:2})},uniforms:b(b({u_Texture:null},s),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:"copy"===this.getName()}})}},{key:"render",value:function(e,t){var n=this,r=e.multiPassRenderer.getPostProcessor(),o=this.rendererService,i=o.useFramebuffer,a=o.getViewportSize,c=o.clear,u=a(),s=u.width,l=u.height;i(this.renderToScreen?null:r.getWriteFBO(),(function(){c({framebuffer:r.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var e=b({u_BloomFinal:0,u_Texture:r.getReadFBO(),u_ViewportSize:[s,l]},n.convertOptionsToUniforms(n.optionsToUpdate));t&&(e.u_BloomFinal=1,e.u_Texture2=t),n.model.draw({uniforms:e})}))}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(e){this.enabled=e}},{key:"setRenderToScreen",value:function(e){this.renderToScreen=e}},{key:"updateOptions",value:function(e){this.optionsToUpdate=b(b({},this.optionsToUpdate),e)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(e){var t={};return Object.keys(e).forEach((function(n){f()(e[n])||(t["u_".concat(s()(d()(n)))]=e[n])})),t}}])&&O(t.prototype,n),r&&O(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),_=a.prototype,x="shaderModuleService",E=[o],S={configurable:!0,enumerable:!0,writable:!0,initializer:null},j={},Object.keys(S).forEach((function(e){j[e]=S[e]})),j.enumerable=!!j.enumerable,j.configurable=!!j.configurable,("value"in j||j.initializer)&&(j.writable=!0),j=E.slice().reverse().reduce((function(e,t){return t(_,x,e)||e}),j),C&&void 0!==j.initializer&&(j.value=j.initializer?j.initializer.call(C):void 0,j.initializer=void 0),void 0===j.initializer&&(Object.defineProperty(_,x,j),j=null),c=j,i=a))||i)},Y2Wc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Binding=void 0;var r=n("BEDn"),o=n("+OwM"),i=function(){function e(e,t){this.id=o.id(),this.activated=!1,this.serviceIdentifier=e,this.scope=t,this.type=r.BindingTypeEnum.Invalid,this.constraint=function(e){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.dynamicValue=null}return e.prototype.clone=function(){var t=new e(this.serviceIdentifier,this.scope);return t.activated=t.scope===r.BindingScopeEnum.Singleton&&this.activated,t.implementationType=this.implementationType,t.dynamicValue=this.dynamicValue,t.scope=this.scope,t.type=this.type,t.factory=this.factory,t.provider=this.provider,t.constraint=this.constraint,t.onActivation=this.onActivation,t.cache=this.cache,t},e}();t.Binding=i},Y3rH:function(e,t,n){var r=n("VrFO"),o=n("Y9Ll"),i=n("5Yy7"),a=n("N+ot"),c=n("AuHH");function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}var s=n("5w0e"),l=n("dMso"),f=n("KQpv")("engine.io-client:transport"),p=function(e){"use strict";i(n,e);var t=u(n);function n(e){var o;return r(this,n),(o=t.call(this)).opts=e,o.query=e.query,o.readyState="",o.socket=e.socket,o}return o(n,[{key:"onError",value:function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this}},{key:"open",value:function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}},{key:"close",value:function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}},{key:"send",value:function(e){"open"===this.readyState?this.write(e):f("transport is not open, discarding packets")}},{key:"onOpen",value:function(){this.readyState="open",this.writable=!0,this.emit("open")}},{key:"onData",value:function(e){var t=s.decodePacket(e,this.socket.binaryType);this.onPacket(t)}},{key:"onPacket",value:function(e){this.emit("packet",e)}},{key:"onClose",value:function(){this.readyState="closed",this.emit("close")}}]),n}(l);e.exports=p},Y9Ll:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},Y9MM:function(e,t,n){var r=n("POgt"),o=n("SRL+"),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},YCww:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryableString=void 0;var r=function(){function e(e){this.str=e}return e.prototype.startsWith=function(e){return 0===this.str.indexOf(e)},e.prototype.endsWith=function(e){var t,n=e.split("").reverse().join("");return t=this.str.split("").reverse().join(""),this.startsWith.call({str:t},n)},e.prototype.contains=function(e){return-1!==this.str.indexOf(e)},e.prototype.equals=function(e){return this.str===e},e.prototype.value=function(){return this.str},e}();t.QueryableString=r},"YLt+":function(e){e.exports=JSON.parse('[{"fromPath":"/en/docs/tutorial","ignoreCase":false,"toPath":"/en/docs/tutorial/quickstart"},{"fromPath":"/zh/docs/tutorial","ignoreCase":false,"toPath":"/zh/docs/tutorial/quickstart"},{"fromPath":"/zh/docs/tutorial","ignoreCase":false,"toPath":"/zh/docs/tutorial/tile"},{"fromPath":"/en/docs/api","ignoreCase":false,"toPath":"/en/docs/api/l7"},{"fromPath":"/zh/docs/api","ignoreCase":false,"toPath":"/zh/docs/api/l7"},{"fromPath":"/zh/examples/polygon/","ignoreCase":false,"toPath":"/zh/examples/polygon/3d"},{"fromPath":"/en/examples","ignoreCase":false,"toPath":"/en/examples/gallery"},{"fromPath":"/zh/examples","ignoreCase":false,"toPath":"/zh/examples/gallery"}]')},YM9j:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("mGvo"),o=n.n(r),i=n("pufz"),a=n("zEXi"),c=n("pfNN"),u=n("PGAt");function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(s,e);var t,n,r,c=d(s);function s(){var e;l(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(v(e=c.call.apply(c,[this].concat(n))),"updateTexture",(function(){var t=e.rendererService.createTexture2D;if(e.texture)return e.texture.update({data:e.iconService.getCanvas(),mag:"linear",min:"linear mipmap nearest",mipmap:!0}),void e.layerService.throttleRenderLayers();e.texture=t({data:e.iconService.getCanvas(),mag:i.gl.LINEAR,min:i.gl.LINEAR_MIPMAP_LINEAR,premultiplyAlpha:!1,width:1024,height:e.iconService.canvasHeight||128,mipmap:!0})})),e}return t=s,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.offsets,a=void 0===r?[0,0]:r,c=e.raisingHeight,u=void 0===c?0:c,s=e.heightfixed,l=void 0!==s&&s;if(this.rendererService.getDirty()&&this.texture.bind(),this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n,offsets:a})){this.judgeStyleAttributes({opacity:n,offsets:a});var f=this.layer.getEncodedData(),p=this.calDataFrame(this.cellLength,f,this.cellProperties),d=p.data,h=p.width,v=p.height;this.rowCount=v,this.dataTexture=this.cellLength>0&&d.length>0?this.createTexture2D({flipY:!0,data:d,format:i.gl.LUMINANCE,type:i.gl.FLOAT,width:h,height:v}):this.createTexture2D({flipY:!0,data:[1],format:i.gl.LUMINANCE,type:i.gl.FLOAT,width:1,height:1})}return{u_raisingHeight:Number(u),u_heightfixed:Number(l),u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_texture:this.texture,u_textSize:[1024,this.iconService.canvasHeight||128],u_opacity:o()(n)?n:1,u_offsets:this.isOffsetStatic(a)?a:[0,0]}}},{key:"initModels",value:function(e){this.registerBuiltinAttributes(),this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels(e)}},{key:"clearModels",value:function(){var e,t;null===(e=this.texture)||void 0===e||e.destroy(),null===(t=this.dataTexture)||void 0===t||t.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,c=void 0===o||o;this.layer.buildLayerModel({moduleName:"pointImage",vertexShader:'precision highp float;\nattribute vec3 a_Position;\nattribute vec4 a_Color;\nattribute vec2 a_Uv;\nattribute float a_Size;\nvarying vec4 v_color;\nvarying vec2 v_uv;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform vec2 u_offsets;\n\nuniform float u_opacity : 1;\nuniform float u_raisingHeight: 0.0;\nuniform float u_heightfixed: 0.0;\n\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "picking"\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n\n styleMappingMat[1][0] = a_Size;\n\n vec2 textrueOffsets = vec2(0.0, 0.0);\n if(hasOffsets()) {\n vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x\n textureOffset += 1.0;\n\n vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x\n textureOffset += 1.0;\n } else {\n textrueOffsets = u_offsets;\n }\n\n // cal style mapping - 数据纹理映射部分的计算\n v_color = a_Color;\n v_uv = a_Uv;\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n \n vec2 offset = project_pixel(textrueOffsets);\n\n float raisingHeight = u_raisingHeight;\n if(u_heightfixed < 1.0) { // false\n raisingHeight = project_pixel(u_raisingHeight);\n } else {\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n raisingHeight = u_raisingHeight * mapboxZoomScale;\n }\n }\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * vec4(project_pos.xy + offset, raisingHeight, 1.0);\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, raisingHeight, 1.0));\n }\n\n gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio;\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'\nuniform sampler2D u_texture;\nvarying vec4 v_color;\nvarying vec2 v_uv;\nuniform vec2 u_textSize;\nuniform float u_opacity : 1;\n\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\n#pragma include "picking"\n\nvoid main(){\n float opacity = styleMappingMat[0][0];\n float size = styleMappingMat[1][0];\n vec2 pos = v_uv / u_textSize + gl_PointCoord / u_textSize * 64.;\n vec4 textureColor;\n\n // Y = 0.299R + 0.587G + 0.114B // 亮度提取\n \n textureColor = texture2D(u_texture, pos);\n\n // Tip: 去除边缘部分 mipmap 导致的混合变暗\n float fragmengTocenter = distance(vec2(0.5), gl_PointCoord);\n if(fragmengTocenter >= 0.5) {\n float luma = 0.299 * textureColor.r + 0.587 * textureColor.g + 0.114 * textureColor.b;\n textureColor.a *= luma;\n }\n \n \n\n if(all(lessThan(v_color, vec4(1.0+0.00001))) && all(greaterThan(v_color, vec4(1.0-0.00001))) || v_color==vec4(1.0)){\n gl_FragColor= textureColor;\n }else {\n gl_FragColor= step(0.01, textureColor.z) * v_color;\n }\n\n gl_FragColor.a = gl_FragColor.a * opacity;\n gl_FragColor = filterColor(gl_FragColor);\n}\n',triangulation:u.h,depth:{enable:!1},primitive:i.gl.POINTS,blend:this.getBlend(),stencil:Object(a.bb)(r,c)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){var e=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:i.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?5:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:i.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:2,update:function(t,n,r,o){var i=e.iconService.getIconMap()[t.shape]||{x:0,y:0};return[i.x,i.y]}}})}}])&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(c.a)},YMnH:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var r=n("cxan"),o=n("9fIP"),i=n("MMYH"),a=n("8K1b"),c=n("AqVP"),u=n("ERkP"),s=n("YlG9"),l=n("ZvpZ").a,f=function(e){Object(a.a)(n,e);var t=Object(c.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||l[null!=t?t:"global"],o=this.context,i=t&&o?o[t]:{};return Object(r.a)(Object(r.a)({},n instanceof Function?n():n),i||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?l.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(u.Component);function p(e,t){var n=u.useContext(s.a);return[u.useMemo((function(){var o=t||l[e||"global"],i=e&&n?n[e]:{};return Object(r.a)(Object(r.a)({},"function"==typeof o?o():o),i||{})}),[e,t,n])]}f.defaultProps={componentName:"global"},f.contextType=s.a},YN6n:function(e,t,n){var r=n("Y9MM");e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},YkAm:function(e,t,n){},YlG9:function(e,t,n){"use strict";var r=n("ERkP"),o=Object(r.createContext)(void 0);t.a=o},YpBQ:function(e,t,n){var r=n("y/9h"),o=n("oCTG");e.exports=function e(t,n,i,a,c){var u=-1,s=t.length;for(i||(i=o),c||(c=[]);++u<s;){var l=t[u];n>0&&i(l)?n>1?e(l,n-1,i,a,c):r(c,l):a||(c[c.length]=l)}return c}},"Yu/1":function(e,t,n){"use strict";var r=n("ERkP"),o=n("7nmT"),i=n.n(o),a=n("3yBb"),c=Object(r.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,c=e.children,u=Object(r.useRef)(),s=Object(r.useRef)();Object(r.useImperativeHandle)(t,(function(){return{}}));var l=Object(r.useRef)(!1);return!l.current&&Object(a.a)()&&(s.current=o(),u.current=s.current.parentNode,l.current=!0),Object(r.useEffect)((function(){null==n||n(e)})),Object(r.useEffect)((function(){return null===s.current.parentNode&&null!==u.current&&u.current.appendChild(s.current),function(){var e,t;null===(e=s.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(s.current)}}),[]),s.current?i.a.createPortal(c,s.current):null}));t.a=c},YzpX:function(e,t,n){"use strict";t.wrapPageElement=n("F3O+")},Z18Y:function(e,t,n){var r=n("r8Ni");e.exports=function(){var e=Object.prototype.toString;return"[object Arguments]"===e.call(arguments)?function(t){return"[object Arguments]"===e.call(t)}:function(e){return r("callee",e)}}()},Z7Uv:function(e,t,n){"use strict";t.a=function(e){return void 0===e?e:"/"===e?"/":"/"===e.charAt(e.length-1)?e.slice(0,-1):e}},ZEqj:function(e,t,n){"use strict";var r;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n("eT/W"),a=n("8Jfv").typeSymbol;e.exports=(o(r={Error:i.Error,Ok:i.Ok,hasInstance:i.hasInstance,of:i.of,fromJSON:i.fromJSON},a,i[a]),o(r,"try",n("bBEY")),o(r,"fromNullable",(function(e,t){var r=n("HKQc");return arguments.length>1?r(e,t):r(e)})),o(r,"fromValidation",(function(e){return n("OHlR")(e)})),o(r,"fromMaybe",(function(e,t){return n("wbXe")(e,t)})),r)},ZIJ7:function(e,t,n){"use strict";t.onRouteUpdate=function(e){var t=e.location;if("function"!=typeof gtag)return null;if(t&&void 0!==window.excludeGtagPaths&&window.excludeGtagPaths.some((function(e){return e.test(t.pathname)})))return null;var n=function(){var e=t?t.pathname+t.search+t.hash:void 0;window.gtag("event","page_view",{page_path:e})};return"requestAnimationFrame"in window?requestAnimationFrame((function(){requestAnimationFrame(n)})):setTimeout(n,32),null}},ZORK:function(e,t,n){var r=n("VCi3");e.exports=r("navigator","userAgent")||""},ZT8c:function(e,t,n){"use strict";var r=n("SRL+"),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},ZTcJ:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="ArrowRightOutlined";t.a=o.forwardRef(c)},ZX9x:function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n("zjfJ"),o=n("cxan"),i=n("zygG"),a=n("Czhu"),c=n("ERkP"),u={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},s=n("vspj"),l=function(e,t){return c.createElement(s.a,Object(a.a)(Object(a.a)({},e),{},{ref:t,icon:u}))};l.displayName="BarsOutlined";var f,p=c.forwardRef(l),d=n("uOPO"),h=n("PtGW"),v=n("O94r"),y=n.n(v),m=n("WSTu"),g=n("H84U"),b=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},O=n("PKem"),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},_={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=c.createContext({}),E=(f=0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f+=1,"".concat(e).concat(f)}),S=c.forwardRef((function(e,t){var n=e.prefixCls,a=e.className,u=e.trigger,s=e.children,l=e.defaultCollapsed,f=void 0!==l&&l,v=e.theme,S=void 0===v?"dark":v,C=e.style,j=void 0===C?{}:C,k=e.collapsible,P=void 0!==k&&k,T=e.reverseArrow,M=void 0!==T&&T,A=e.width,L=void 0===A?200:A,R=e.collapsedWidth,N=void 0===R?80:R,I=e.zeroWidthTriggerStyle,D=e.breakpoint,F=e.onCollapse,z=e.onBreakpoint,B=w(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),U=Object(c.useContext)(O.d).siderHook,V=Object(c.useState)("collapsed"in B?B.collapsed:f),H=Object(i.a)(V,2),G=H[0],W=H[1],Y=Object(c.useState)(!1),K=Object(i.a)(Y,2),X=K[0],q=K[1];Object(c.useEffect)((function(){"collapsed"in B&&W(B.collapsed)}),[B.collapsed]);var Z=function(e,t){"collapsed"in B||W(e),null==F||F(e,t)},J=Object(c.useRef)();J.current=function(e){q(e.matches),null==z||z(e.matches),G!==e.matches&&Z(e.matches,"responsive")},Object(c.useEffect)((function(){function e(e){return J.current(e)}var t;if("undefined"!=typeof window){var n=window.matchMedia;if(n&&D&&D in _){t=n("(max-width: ".concat(_[D],")"));try{t.addEventListener("change",e)}catch(r){t.addListener(e)}e(t)}}return function(){try{null==t||t.removeEventListener("change",e)}catch(r){null==t||t.removeListener(e)}}}),[D]),Object(c.useEffect)((function(){var e=E("ant-sider-");return U.addSider(e),function(){return U.removeSider(e)}}),[]);var Q,$,ee,te,ne,re,oe,ie,ae,ce,ue=function(){Z(!G,"clickTrigger")},se=Object(c.useContext)(g.b).getPrefixCls,le=c.useMemo((function(){return{siderCollapsed:G}}),[G]);return c.createElement(x.Provider,{value:le},($=se("layout-sider",n),ee=Object(m.a)(B,["collapsed"]),ne=b(te=G?N:L)?"".concat(te,"px"):String(te),re=0===parseFloat(String(N||0))?c.createElement("span",{onClick:ue,className:y()("".concat($,"-zero-width-trigger"),"".concat($,"-zero-width-trigger-").concat(M?"right":"left")),style:I},u||c.createElement(p,null)):null,oe={expanded:M?c.createElement(h.a,null):c.createElement(d.a,null),collapsed:M?c.createElement(d.a,null):c.createElement(h.a,null)}[G?"collapsed":"expanded"],ie=null!==u?re||c.createElement("div",{className:"".concat($,"-trigger"),onClick:ue,style:{width:ne}},u||oe):null,ae=Object(o.a)(Object(o.a)({},j),{flex:"0 0 ".concat(ne),maxWidth:ne,minWidth:ne,width:ne}),ce=y()($,"".concat($,"-").concat(S),(Q={},Object(r.a)(Q,"".concat($,"-collapsed"),!!G),Object(r.a)(Q,"".concat($,"-has-trigger"),P&&null!==u&&!re),Object(r.a)(Q,"".concat($,"-below"),!!X),Object(r.a)(Q,"".concat($,"-zero-width"),0===parseFloat(ne)),Q),a),c.createElement("aside",Object(o.a)({className:ce},ee,{style:ae,ref:t}),c.createElement("div",{className:"".concat($,"-children")},s),P||X&&re?ie:null)))}));t.b=S},"ZZ+W":function(e,t,n){var r=n("JBn+"),o=n("myUI"),i=n("S0iI");e.exports=function(e,t,n,a,c,u){var s=1&n,l=e.length,f=t.length;if(l!=f&&!(s&&f>l))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,v=!0,y=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<l;){var m=e[h],g=t[h];if(a)var b=s?a(g,m,h,t,e,u):a(m,g,h,e,t,u);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(m===e||c(m,e,n,a,u)))return y.push(t)}))){v=!1;break}}else if(m!==g&&!c(m,g,n,a,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},ZdBB:function(e,t,n){var r=n("yRya"),o=n("sX5C").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},ZfBd:function(e,t,n){"use strict";var r=n("M1iK"),o=r.Success,i=r.Failure;e.exports=function(e,t){return e.matchWith({Nothing:function(){return i(t)},Just:function(e){var t=e.value;return o(t)}})}},Zrw9:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="EyeOutlined";t.a=o.forwardRef(c)},ZvpZ:function(e,t,n){"use strict";var r=n("OjVO"),o=n("3x3+"),i=n("61s2"),a=n("RlXo"),c="${label} is not a valid ${type}",u={locale:"en",Pagination:r.a,DatePicker:i.a,TimePicker:a.a,Calendar:o.a,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:c,method:c,array:c,object:c,number:c,date:c,boolean:c,integer:c,float:c,regexp:c,email:c,url:c,hex:c},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};t.a=u},ZvuB:function(e,t){var n=function(e,t){this.p1=e,this.p2=t};n.prototype.rise=function(){return this.p2[1]-this.p1[1]},n.prototype.run=function(){return this.p2[0]-this.p1[0]},n.prototype.slope=function(){return this.rise()/this.run()},n.prototype.yIntercept=function(){return this.p1[1]-this.p1[0]*this.slope(this.p1,this.p2)},n.prototype.isVertical=function(){return!isFinite(this.slope())},n.prototype.isHorizontal=function(){return this.p1[1]==this.p2[1]},n.prototype._perpendicularDistanceHorizontal=function(e){return Math.abs(this.p1[1]-e[1])},n.prototype._perpendicularDistanceVertical=function(e){return Math.abs(this.p1[0]-e[0])},n.prototype._perpendicularDistanceHasSlope=function(e){var t=this.slope(),n=this.yIntercept();return Math.abs(t*e[0]-e[1]+n)/Math.sqrt(Math.pow(t,2)+1)},n.prototype.perpendicularDistance=function(e){return this.isVertical()?this._perpendicularDistanceVertical(e):this.isHorizontal()?this._perpendicularDistanceHorizontal(e):this._perpendicularDistanceHasSlope(e)},e.exports=n},a88S:function(e,t,n){var r=n("Dhk8"),o=n("tLQN");e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},aDjr:function(e,t,n){"use strict";n.d(t,"a",(function(){return ae}));var r=n("Gf+y"),o=n("pufz"),i=n("zEXi"),a=n("pfNN"),c=n("PGAt");function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(u,e);var t,n,r,a=p(u);function u(){return s(this,u),a.apply(this,arguments)}return t=u,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig();return{u_opacity:e.opacity||1,u_coverage:e.coverage||.9,u_angle:e.angle||0,u_radius:[this.layer.getSource().data.xOffset,this.layer.getSource().data.yOffset]}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,a=t.maskInside,u=void 0===a||a;this.layer.buildLayerModel({moduleName:"heatmapGrid",vertexShader:'precision highp float;\r\n// 多边形顶点坐标\r\nattribute vec3 a_Position;\r\n// 多边形经纬度坐标\r\nattribute vec3 a_Pos;\r\nattribute float a_Size;\r\nattribute vec4 a_Color;\r\nuniform vec2 u_radius;\r\nuniform float u_coverage: 0.9;\r\nuniform float u_angle: 0;\r\nuniform mat4 u_ModelMatrix;\r\nuniform mat4 u_Mvp;\r\nvarying vec4 v_color;\r\n\r\nuniform vec2 u_SceneCenterMKT;\r\n\r\n#pragma include "projection"\r\n#pragma include "project"\r\n#pragma include "picking"\r\n\r\nvoid main() {\r\n v_color = a_Color;\r\n\r\n mat2 rotationMatrix = mat2(cos(u_angle), sin(u_angle), -sin(u_angle), cos(u_angle));\r\n vec2 offset = a_Position.xy * u_radius * rotationMatrix * u_coverage ;\r\n // vec2 lnglat = unProjectFlat(a_Pos.xy + offset);\r\n // vec4 project_pos = project_position(vec4(lnglat, 0, 1.0));\r\n // gl_Position = project_common_position_to_clipspace(project_pos);\r\n\r\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\r\n vec2 lnglat = unProjectFlat(a_Pos.xy + offset);\r\n vec2 customLnglat = customProject(lnglat) - u_SceneCenterMKT; // 将经纬度转换为高德2.0需要的平面坐标\r\n vec4 project_pos = project_position(vec4(customLnglat, 0, 1.0));\r\n gl_Position = u_Mvp * (project_pos);\r\n } else {\r\n vec2 lnglat = unProjectFlat(a_Pos.xy + offset);\r\n vec4 project_pos = project_position(vec4(lnglat, 0, 1.0));\r\n gl_Position = project_common_position_to_clipspace(project_pos);\r\n }\r\n\r\n setPickingColor(a_PickingColor);\r\n}\r\n',fragmentShader:'precision highp float;\nvarying vec4 v_color;\nuniform float u_opacity: 1;\n\n#pragma include "picking"\n\nvoid main() {\n gl_FragColor = v_color;\n gl_FragColor.a *= u_opacity;\n\n gl_FragColor = filterColor(gl_FragColor);\n}\n',triangulation:c.b,primitive:o.gl.TRIANGLES,depth:{enable:!1},stencil:Object(i.bb)(r,u)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"pos",type:o.AttributeType.Attribute,descriptor:{name:"a_Pos",buffer:{usage:o.gl.DYNAMIC_DRAW,data:[],type:o.gl.FLOAT},size:3,update:function(e){var t="GAODE2.x"===e.version?e.originCoordinates:e.coordinates;return[t[0],t[1],0]}}})}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(a.a);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x,E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(u,e);var t,n,r,a=O(u);function u(){return m(this,u),a.apply(this,arguments)}return t=u,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig();return{u_opacity:e.opacity||1,u_coverage:e.coverage||1,u_angle:e.angle||0,u_radius:[this.layer.getSource().data.xOffset,this.layer.getSource().data.yOffset]}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,a=t.maskInside,u=void 0===a||a;this.layer.buildLayerModel({moduleName:"heatmapGrid3d",vertexShader:'precision highp float;\n// 多边形顶点坐标\nattribute vec3 a_Position;\n// 多边形经纬度坐标\nattribute vec3 a_Pos;\n\nattribute vec3 a_Normal;\nattribute float a_Size;\nattribute vec4 a_Color;\nuniform vec2 u_radius;\nuniform float u_coverage: 0.9;\nuniform float u_angle: 0;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nvarying vec4 v_color;\n\nuniform vec2 u_SceneCenterMKT;\n\n#pragma include "projection"\n#pragma include "project"\n#pragma include "light"\n#pragma include "picking"\n\n\nvoid main() {\n mat2 rotationMatrix = mat2(cos(u_angle), sin(u_angle), -sin(u_angle), cos(u_angle));\n vec2 offset =(vec2(a_Position.xy * u_radius * rotationMatrix * u_coverage));\n // vec2 lnglat = unProjectFlat(a_Pos.xy + offset); // 实际的经纬度\n // vec2 lnglat = (a_Pos.xy + offset); \n // vec4 project_pos = project_position(vec4(lnglat, a_Position.z * a_Size, 1.0));\n // gl_Position = project_common_position_to_clipspace(project_pos);\n // float lightWeight = calc_lighting(project_pos);\n // v_color =vec4(a_Color.rgb*lightWeight, a_Color.w);\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n // vec2 lnglat = (a_Pos.xy + offset); \n // vec4 project_pos = project_position(vec4(lnglat, a_Position.z * a_Size, 1.0));\n\n // float lightWeight = calc_lighting(project_pos);\n // v_color =vec4(a_Color.rgb*lightWeight, a_Color.w);\n \n // gl_Position = u_Mvp * vec4(lnglat , a_Position.z * a_Size, 1.0);\n vec2 lnglat = unProjectFlat(a_Pos.xy + offset); // 经纬度\n vec2 customLnglat = customProject(lnglat) - u_SceneCenterMKT; // 将经纬度转换为高德2.0需要的平面坐标\n vec4 project_pos = project_position(vec4(customLnglat, a_Position.z * a_Size, 1.0));\n\n float lightWeight = calc_lighting(project_pos);\n v_color =vec4(a_Color.rgb*lightWeight, a_Color.w);\n \n gl_Position = u_Mvp * vec4(customLnglat , a_Position.z * a_Size, 1.0);\n } else {\n vec2 lnglat = unProjectFlat(a_Pos.xy + offset); // 实际的经纬度\n vec4 project_pos = project_position(vec4(lnglat, a_Position.z * a_Size, 1.0));\n \n float lightWeight = calc_lighting(project_pos);\n v_color =vec4(a_Color.rgb*lightWeight, a_Color.w);\n \n gl_Position = project_common_position_to_clipspace(project_pos);\n }\n\n\n\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'precision highp float;\nvarying vec4 v_color;\nuniform float u_opacity: 1;\n\n#pragma include "picking"\n\nvoid main() {\n gl_FragColor = v_color;\n gl_FragColor.a *= u_opacity;\n\n gl_FragColor = filterColor(gl_FragColor);\n}\n',triangulation:c.f,primitive:o.gl.TRIANGLES,depth:{enable:!0},blend:this.getBlend(),stencil:Object(i.bb)(r,u)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:o.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:o.gl.DYNAMIC_DRAW,data:[],type:o.gl.FLOAT},size:1,update:function(e){var t=e.size;return Array.isArray(t)?[t[0]]:[t]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:o.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:o.gl.STATIC_DRAW,data:[],type:o.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:o.AttributeType.Attribute,descriptor:{name:"a_Pos",buffer:{usage:o.gl.DYNAMIC_DRAW,data:[],type:o.gl.FLOAT},size:3,update:function(e){var t="GAODE2.x"===e.version?e.originCoordinates:e.coordinates;return[t[0],t[1],0]}}})}}])&&g(t.prototype,n),r&&g(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(a.a),S=n("K/oH"),C=n("s6Xb");n("qzOT");function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(){L=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==j(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function R(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function N(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){R(i,r,o,a,c,"next",e)}function c(e){R(i,r,o,a,c,"throw",e)}a(void 0)}))}}function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t){return(F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=U(e);if(t){var o=U(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B(this,n)}}function B(e,t){if(t&&("object"===j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=Object(C.injectable)()(x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(l,e);var t,n,r,a,u,s=z(l);function l(){return I(this,l),s.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.rendererService,n=t.clear;(0,t.useFramebuffer)(this.heatmapFramerBuffer,(function(){n({color:[0,0,0,0],depth:1,stencil:0,framebuffer:e.heatmapFramerBuffer}),e.drawIntensityMode()})),this.layer.styleNeedUpdate&&this.updateColorTexture(),"heatmap"===this.shapeType?this.drawColorMode():this.draw3DHeatMap()}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"initModels",value:(u=N(L().mark((function e(t){var n,r,i,a,c,u,s,l,f,p;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.rendererService,i=r.createFramebuffer,a=r.getViewportSize,c=r.createTexture2D,u=this.styleAttributeService.getLayerStyleAttribute("shape"),s=(null==u||null===(n=u.scale)||void 0===n?void 0:n.field)||"heatmap",this.shapeType=s,e.next=6,this.buildHeatMapIntensity();case 6:this.intensityModel=e.sent,this.colorModel="heatmap"===s?this.buildHeatmapColor():this.build3dHeatMap(),l=a(),f=l.width,p=l.height,this.heatmapFramerBuffer=i({color:c({width:Math.floor(f/4),height:Math.floor(p/4),wrapS:o.gl.CLAMP_TO_EDGE,wrapT:o.gl.CLAMP_TO_EDGE,min:o.gl.LINEAR,mag:o.gl.LINEAR}),depth:!1}),this.updateColorTexture(),t([this.intensityModel,this.colorModel]);case 12:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"buildModels",value:function(e){this.initModels(e)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"dir",type:o.AttributeType.Attribute,descriptor:{name:"a_Dir",buffer:{usage:o.gl.DYNAMIC_DRAW,data:[],type:o.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:o.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:o.gl.DYNAMIC_DRAW,data:[],type:o.gl.FLOAT},size:1,update:function(e){var t=e.size;return[void 0===t?1:t]}}})}},{key:"buildHeatMapIntensity",value:(a=N(L().mark((function e(){var t;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.layer.triangulation=c.c,e.next=3,this.layer.buildLayerModel({moduleName:"heatmapIntensity",vertexShader:'precision highp float;\nattribute vec3 a_Position;\nattribute float a_Size;\nattribute vec2 a_Dir;\nuniform float u_intensity;\nuniform float u_radius;\nvarying vec2 v_extrude;\nvarying float v_weight;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\n#define GAUSS_COEF 0.3989422804014327\n\n#pragma include "projection"\n\nvoid main(){\n v_weight = a_Size;\n float ZERO = 1.0 / 255.0 / 16.0;\n float extrude_x = a_Dir.x * 2.0 -1.0;\n float extrude_y = a_Dir.y * 2.0 -1.0;\n vec2 extrude_dir = normalize(vec2(extrude_x,extrude_y));\n float S = sqrt(-2.0 * log(ZERO / a_Size / u_intensity / GAUSS_COEF)) / 2.5;\n v_extrude = extrude_dir * S;\n\n vec2 offset = project_pixel(v_extrude * u_radius);\n vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0));\n\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy + offset, 0.0, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0));\n }\n}\n',fragmentShader:"precision highp float;\nuniform float u_intensity;\nvarying float v_weight;\nvarying vec2 v_extrude;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(){\n float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude);\n float val = v_weight * u_intensity * GAUSS_COEF * exp(d);\n gl_FragColor = vec4(val, 1., 1., 1.);\n}\n",triangulation:c.c,depth:{enable:!1},cull:{enable:!0,face:Object(i.Y)(this.mapService.version)},blend:{enable:!0,func:{srcRGB:o.gl.ONE,srcAlpha:1,dstRGB:o.gl.ONE,dstAlpha:1}},pick:!1});case 3:return t=e.sent,e.abrupt("return",t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"buildHeatmapColor",value:function(){var e=this.layer.getLayerConfig(),t=e.mask,n=void 0!==t&&t,r=e.maskInside,a=void 0===r||r;this.shaderModuleService.registerModule("heatmapColor",{vs:"precision highp float;\nattribute vec3 a_Position;\nattribute vec2 a_Uv;\nvarying vec2 v_texCoord;\n\nvoid main() {\n v_texCoord = a_Uv;\n\n gl_Position = vec4(a_Position.xy, 0, 1.);\n}\n",fs:"uniform sampler2D u_texture; // 热力强度图\nuniform sampler2D u_colorTexture; // 根据强度分布的色带\nuniform float u_opacity;\nvarying vec2 v_texCoord;\n\nuniform vec2 u_ViewportSize;\n\nfloat getBlurIndusty() {\n float vW = 2.0/u_ViewportSize.x;\n float vH = 2.0/u_ViewportSize.y;\n vec2 vUv = v_texCoord;\n float i11 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y + 1.0 * vH) ).r;\n float i12 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y + 1.0 * vH) ).r;\n float i13 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y + 1.0 * vH) ).r;\n\n float i21 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y) ).r;\n float i22 = texture2D( u_texture, vec2( vUv.x , vUv.y) ).r;\n float i23 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y) ).r;\n\n float i31 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y-1.0*vH) ).r;\n float i32 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y-1.0*vH) ).r;\n float i33 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y-1.0*vH) ).r;\n\n return(\n i11 + \n i12 + \n i13 + \n i21 + \n i21 + \n i22 + \n i23 + \n i31 + \n i32 + \n i33\n )/9.0;\n}\n\n\nvoid main(){\n // float intensity = texture2D(u_texture, v_texCoord).r;\n float intensity = getBlurIndusty();\n vec4 color = texture2D(u_colorTexture, vec2(intensity, 0.0));\n\n gl_FragColor =color;\n gl_FragColor.a = color.a * smoothstep(0.,0.1,intensity) * u_opacity;\n\n}\n"});var c=this.shaderModuleService.getModule("heatmapColor"),u=c.vs,s=c.fs,l=c.uniforms,f=this.rendererService,p=f.createAttribute,d=f.createElements,h=f.createBuffer;return(0,f.createModel)({pick:!1,vs:u,fs:s,attributes:{a_Position:p({buffer:h({data:[-1,1,0,1,1,0,-1,-1,0,1,-1,0],type:o.gl.FLOAT}),size:3}),a_Uv:p({buffer:h({data:[0,1,1,1,0,0,1,0],type:o.gl.FLOAT}),size:2})},uniforms:M({},l),depth:{enable:!1},blend:this.getBlend(),elements:d({data:[0,2,1,2,3,1],type:o.gl.UNSIGNED_INT,count:6}),stencil:Object(i.bb)(n,a)})}},{key:"drawIntensityMode",value:function(){var e,t=this.layer.getLayerConfig(),n=t.opacity,r=t.intensity,o=void 0===r?10:r,i=t.radius,a=void 0===i?5:i;null===(e=this.intensityModel)||void 0===e||e.draw({uniforms:{u_opacity:n||1,u_radius:a,u_intensity:o}})}},{key:"drawColorMode",value:function(){var e,t=this.layer.getLayerConfig().opacity;null===(e=this.colorModel)||void 0===e||e.draw({uniforms:{u_opacity:t||1,u_colorTexture:this.colorTexture,u_texture:this.heatmapFramerBuffer}})}},{key:"draw3DHeatMap",value:function(){var e,t=this.layer.getLayerConfig().opacity,n=S.b.create();S.b.invert(n,this.cameraService.getViewProjectionMatrixUncentered()),null===(e=this.colorModel)||void 0===e||e.draw({uniforms:{u_opacity:t||1,u_colorTexture:this.colorTexture,u_texture:this.heatmapFramerBuffer,u_ViewProjectionMatrixUncentered:this.cameraService.getViewProjectionMatrixUncentered(),u_InverseViewProjectionMatrix:k(n)}})}},{key:"build3dHeatMap",value:function(){var e=this.layer.getLayerConfig(),t=e.mask,n=void 0!==t&&t,r=e.maskInside,a=void 0===r||r,c=(0,this.rendererService.getViewportSize)(),u=function(e,t){for(var n=[],r=[],o=[],i=e+1,a=t+1,c=e/2,u=t/2,s=0;s<a;s++)for(var l=s-u,f=0;f<i;f++){var p=f-c;r.push(p/c,-l/u,0),o.push(f/e),o.push(1-s/t)}for(var d=0;d<t;d++)for(var h=0;h<e;h++){var v=h+i*d,y=h+i*(d+1),m=h+1+i*(d+1),g=h+1+i*d;n.push(v,y,g),n.push(y,m,g)}return{vertices:r,indices:n,uvs:o}}(c.width/4,c.height/4);this.shaderModuleService.registerModule("heatmap3dColor",{vs:'precision highp float;\nattribute vec3 a_Position;\nattribute vec2 a_Uv;\nuniform sampler2D u_texture;\nvarying vec2 v_texCoord;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_InverseViewProjectionMatrix;\nuniform mat4 u_ViewProjectionMatrixUncentered;\nvarying float v_intensity;\n\n\nvec2 toBezier(float t, vec2 P0, vec2 P1, vec2 P2, vec2 P3) {\n float t2 = t * t;\n float one_minus_t = 1.0 - t;\n float one_minus_t2 = one_minus_t * one_minus_t;\n return (P0 * one_minus_t2 * one_minus_t + P1 * 3.0 * t * one_minus_t2 + P2 * 3.0 * t2 * one_minus_t + P3 * t2 * t);\n}\nvec2 toBezier(float t, vec4 p){\n return toBezier(t, vec2(0.0, 0.0), vec2(p.x, p.y), vec2(p.z, p.w), vec2(1.0, 1.0));\n}\n#pragma include "projection"\nvoid main() {\n v_texCoord = a_Uv;\n\n vec2 pos = a_Uv * vec2(2.0) - vec2(1.0); // 将原本 0 -> 1 的 uv 转换为 -1 -> 1 的标准坐标空间(NDC)\n\n vec4 p1 = vec4(pos, 0.0, 1.0); // x/y 平面上的点(z == 0)可以认为是三维上的点被投影到平面后的点\n\tvec4 p2 = vec4(pos, 1.0, 1.0); // 平行于x/y平面、z==1 的平面上的点\n\n\tvec4 inverseP1 = u_InverseViewProjectionMatrix * p1; // 根据视图投影矩阵的逆矩阵平面上的反算出三维空间中的点(p1平面上的点)\n\tvec4 inverseP2 = u_InverseViewProjectionMatrix * p2;\n\n inverseP1 = inverseP1 / inverseP1.w; // 归一化操作(归一化后为世界坐标)\n\tinverseP2 = inverseP2 / inverseP2.w;\n\n\tfloat zPos = (0.0 - inverseP1.z) / (inverseP2.z - inverseP1.z); // ??\n\tvec4 position = inverseP1 + zPos * (inverseP2 - inverseP1);\n\n vec4 b= vec4(0.5000, 0.0, 1.0, 0.5000);\n float fh;\n\n v_intensity = texture2D(u_texture, v_texCoord).r;\n fh = toBezier(v_intensity, b).y;\n gl_Position = u_ViewProjectionMatrixUncentered * vec4(position.xy, fh * project_pixel(50.), 1.0);\n \n}\n',fs:"uniform sampler2D u_texture;\nuniform sampler2D u_colorTexture;\nuniform float u_opacity;\nvarying vec2 v_texCoord;\nvarying float v_intensity;\n\nvoid main(){\n \n float intensity = texture2D(u_texture, v_texCoord).r;\n vec4 color = texture2D(u_colorTexture,vec2(intensity, 0));\n gl_FragColor = color;\n // gl_FragColor.a = color.a * smoothstep(0.1,0.2,intensity)* u_opacity;\n gl_FragColor.a = color.a * smoothstep(0.,0.1,intensity) * u_opacity;\n}\n"});var s=this.shaderModuleService.getModule("heatmap3dColor"),l=s.vs,f=s.fs,p=s.uniforms,d=this.rendererService,h=d.createAttribute,v=d.createElements,y=d.createBuffer;return(0,d.createModel)({vs:l,fs:f,attributes:{a_Position:h({buffer:y({data:u.vertices,type:o.gl.FLOAT}),size:3}),a_Uv:h({buffer:y({data:u.uvs,type:o.gl.FLOAT}),size:2})},primitive:o.gl.TRIANGLES,uniforms:M({},p),depth:{enable:!0},blend:{enable:!0,func:{srcRGB:o.gl.SRC_ALPHA,srcAlpha:1,dstRGB:o.gl.ONE_MINUS_SRC_ALPHA,dstAlpha:1}},elements:v({data:u.indices,type:o.gl.UNSIGNED_INT,count:u.indices.length}),stencil:Object(i.bb)(n,a)})}},{key:"updateStyle",value:function(){this.updateColorTexture()}},{key:"updateColorTexture",value:function(){var e=this.rendererService.createTexture2D;this.texture&&this.texture.destroy();var t=this.layer.getLayerConfig().rampColors,n=Object(i.V)(t);this.colorTexture=e({data:new Uint8Array(n.data),width:n.width,height:n.height,wrapS:o.gl.CLAMP_TO_EDGE,wrapT:o.gl.CLAMP_TO_EDGE,min:o.gl.NEAREST,mag:o.gl.NEAREST,flipY:!1})}}])&&D(t.prototype,n),r&&D(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(a.a))||x;function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y(e,t){return(Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q(e);if(t){var o=q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return X(this,n)}}function X(e,t){if(t&&("object"===H(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z={heatmap:V,heatmap3d:V,grid:v,grid3d:E,hexagon:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y(e,t)}(u,e);var t,n,r,a=K(u);function u(){return G(this,u),a.apply(this,arguments)}return t=u,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig();return{u_opacity:e.opacity||1,u_coverage:e.coverage||.9,u_angle:e.angle||0,u_radius:[this.layer.getSource().data.xOffset,this.layer.getSource().data.yOffset]}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,a=t.maskInside,u=void 0===a||a;this.layer.buildLayerModel({moduleName:"heatmapHexagon",vertexShader:'precision highp float;\n// 多边形顶点坐标\nattribute vec3 a_Position;\n// 多边形经纬度坐标\nattribute vec3 a_Pos;\nattribute float a_Size;\nattribute vec4 a_Color;\nuniform vec2 u_radius;\nuniform float u_coverage: 0.9;\nuniform float u_angle: 0;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nvarying vec4 v_color;\n\nuniform vec2 u_SceneCenterMKT;\n\n#pragma include "projection"\n#pragma include "project"\n#pragma include "picking"\n\nvoid main() {\n v_color = a_Color;\n \n mat2 rotationMatrix = mat2(cos(u_angle), sin(u_angle), -sin(u_angle), cos(u_angle));\n vec2 offset =(vec2(a_Position.xy * u_radius * rotationMatrix * u_coverage));\n vec2 lnglat = unProjectFlat(a_Pos.xy + offset);\n \n // vec4 project_pos = project_position(vec4(lnglat, 0, 1.0));\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, 0., 1.0));\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n // gl_Position = u_Mvp * (vec4(project_pos.xy, 0., 1.0));\n // gl_Position = u_Mvp * (vec4(a_Pos.xy + offset, 0., 1.0));\n vec2 customLnglat = customProject(lnglat) - u_SceneCenterMKT;\n vec4 project_pos = project_position(vec4(customLnglat, 0, 1.0));\n gl_Position = u_Mvp * vec4(project_pos.xy, 0.0, 1.0);\n } else {\n vec4 project_pos = project_position(vec4(lnglat, 0, 1.0));\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, 0., 1.0));\n }\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'precision highp float;\nvarying vec4 v_color;\nuniform float u_opacity: 1;\n\n#pragma include "picking"\n\nvoid main() {\n gl_FragColor = v_color;\n gl_FragColor.a *= u_opacity;\n\n gl_FragColor = filterColor(gl_FragColor);\n}\n',triangulation:c.b,depth:{enable:!1},primitive:o.gl.TRIANGLES,blend:this.getBlend(),stencil:Object(i.bb)(r,u)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"pos",type:o.AttributeType.Attribute,descriptor:{name:"a_Pos",buffer:{usage:o.gl.DYNAMIC_DRAW,data:[],type:o.gl.FLOAT},size:3,update:function(e){var t="GAODE2.x"===e.version?e.originCoordinates:e.coordinates;return[t[0],t[1],0]}}})}}])&&W(t.prototype,n),r&&W(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(a.a)};function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ee(e,t){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oe(e);if(t){var o=oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ne(this,n)}}function ne(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return re(e)}function re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ae=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(i,e);var t,n,r,o=te(i);function i(){var e;Q(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ie(re(e=o.call.apply(o,[this].concat(n))),"type","HeatMapLayer"),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new Z[t](this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"renderModels",value:function(){var e=this;return"heatmap"===this.getModelType()?(this.layerModel&&this.layerModel.render(),this):(this.layerModelNeedUpdate&&(this.layerModel.buildModels((function(t){return e.models=t})),this.layerModelNeedUpdate=!1),this.models.forEach((function(t){return t.draw({uniforms:e.layerModel.getUninforms()})})),this)}},{key:"updateModelData",value:function(e){e.attributes&&e.elements?this.models[0].updateAttributesAndElements(e.attributes,e.elements):console.warn("data error")}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getModelType",value:function(){var e,t=this.styleAttributeService.getLayerStyleAttribute("shape"),n=this.getLayerConfig().shape3d,r=this.getSource().data.type,o=(null==t||null===(e=t.scale)||void 0===e?void 0:e.field)||"heatmap";return"heatmap"===o||"heatmap3d"===o?"heatmap":"hexagon"===r?-1===(null==n?void 0:n.indexOf(o))?"hexagon":"grid3d":"grid"===r?-1===(null==n?void 0:n.indexOf(o))?"grid":"grid3d":"heatmap"}}])&&$(t.prototype,n),r&&$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a)},aGtQ:function(e,t,n){"use strict";t.a=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},aMhq:function(e,t,n){"use strict";var r=n("aeo5");function o(e,t,n,r,o){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=o,e.readFields(i,this,t)}function i(e,t,n){1==e?t.id=n.readVarint():2==e?function(e,t){var n=e.readVarint()+e.pos;for(;e.pos<n;){var r=t._keys[e.readVarint()],o=t._values[e.readVarint()];t.properties[r]=o}}(n,t):3==e?t.type=n.readVarint():4==e&&(t._geometry=n.pos)}function a(e){for(var t,n,r=0,o=0,i=e.length,a=i-1;o<i;a=o++)t=e[o],r+=((n=e[a]).x-t.x)*(t.y+n.y);return r}e.exports=o,o.types=["Unknown","Point","LineString","Polygon"],o.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,o=1,i=0,a=0,c=0,u=[];e.pos<n;){if(i<=0){var s=e.readVarint();o=7&s,i=s>>3}if(i--,1===o||2===o)a+=e.readSVarint(),c+=e.readSVarint(),1===o&&(t&&u.push(t),t=[]),t.push(new r(a,c));else{if(7!==o)throw new Error("unknown command "+o);t&&t.push(t[0].clone())}}return t&&u.push(t),u},o.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,o=0,i=0,a=1/0,c=-1/0,u=1/0,s=-1/0;e.pos<t;){if(r<=0){var l=e.readVarint();n=7&l,r=l>>3}if(r--,1===n||2===n)(o+=e.readSVarint())<a&&(a=o),o>c&&(c=o),(i+=e.readSVarint())<u&&(u=i),i>s&&(s=i);else if(7!==n)throw new Error("unknown command "+n)}return[a,u,c,s]},o.prototype.toGeoJSON=function(e,t,n){var r,i,c=this.extent*Math.pow(2,n),u=this.extent*e,s=this.extent*t,l=this.loadGeometry(),f=o.types[this.type];function p(e){for(var t=0;t<e.length;t++){var n=e[t],r=180-360*(n.y+s)/c;e[t]=[360*(n.x+u)/c-180,360/Math.PI*Math.atan(Math.exp(r*Math.PI/180))-90]}}switch(this.type){case 1:var d=[];for(r=0;r<l.length;r++)d[r]=l[r][0];p(l=d);break;case 2:for(r=0;r<l.length;r++)p(l[r]);break;case 3:for(l=function(e){var t=e.length;if(t<=1)return[e];for(var n,r,o=[],i=0;i<t;i++){var c=a(e[i]);0!==c&&(void 0===r&&(r=c<0),r===c<0?(n&&o.push(n),n=[e[i]]):n.push(e[i]))}n&&o.push(n);return o}(l),r=0;r<l.length;r++)for(i=0;i<l[r].length;i++)p(l[r][i])}1===l.length?l=l[0]:f="Multi"+f;var h={type:"Feature",geometry:{type:f,coordinates:l},properties:this.properties};return"id"in this&&(h.id=this.id),h}},aPP9:function(e,t,n){"use strict";t.a=function(e,t){return e.has(t)}},aRoJ:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="CopyOutlined";t.a=o.forwardRef(c)},aURW:function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},aYSr:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},aeo5:function(e,t,n){"use strict";function r(e,t){this.x=e,this.y=t}e.exports=r,r.prototype={clone:function(){return new r(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,o=n*this.x+t*this.y;return this.x=r,this.y=o,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),o=t.x+n*(this.x-t.x)-r*(this.y-t.y),i=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=o,this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},r.convert=function(e){return e instanceof r?e:Array.isArray(e)?new r(e[0],e[1]):e}},akv9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.url=void 0;var r=n("VdbV"),o=n("KQpv")("socket.io-client:url");t.url=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==n?n.protocol+"//"+e:"https://"+e),o("parse %s",e),i=r(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";var a=-1!==i.host.indexOf(":"),c=a?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+c+":"+i.port+t,i.href=i.protocol+"://"+c+(n&&n.port===i.port?"":":"+i.port),i}},amH4:function(e,t,n){var r=n("cLeC"),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},amiU:function(e,t,n){var r=n("wC3K"),o=n("pPzx");e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},aqw4:function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return A})),n.d(t,"g",(function(){return B})),n.d(t,"h",(function(){return X})),n.d(t,"b",(function(){return E})),n.d(t,"d",(function(){return ie})),n.d(t,"f",(function(){return Me})),n.d(t,"e",(function(){return Oe}));var r=n("pufz"),o=n("zEXi"),i=n("Gpi5");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=0,y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(c,e);var t,n,i,a=p(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this)).controlOption=u(u({},t.getDefault()),e||{}),t}return t=c,(n=[{key:"getDefault",value:function(){return{position:r.PositionType.TOPRIGHT,name:"".concat(v++)}}},{key:"setPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.PositionType.BOTTOMRIGHT,t=this.controlService;return t&&t.removeControl(this),this.controlOption.position=e,t&&t.addControl(this,this.sceneContainer),this}},{key:"addTo",value:function(e){this.mapsService=e.get(r.TYPES.IMapService),this.renderService=e.get(r.TYPES.IRendererService),this.layerService=e.get(r.TYPES.ILayerService),this.controlService=e.get(r.TYPES.IControlService),this.sceneContainer=e,this.isShow=!0,this.container=this.onAdd();var t=this.container,n=this.controlOption.position,i=this.controlService.controlCorners[n];return o.f.addClass(t,"l7-control"),-1!==n.indexOf("bottom")?i.insertBefore(t,i.firstChild):i.appendChild(t),this}},{key:"onAdd",value:function(){throw new Error("Method not implemented.")}},{key:"onRemove",value:function(){throw new Error("Method not implemented.")}},{key:"hide",value:function(){var e=this.container;o.f.addClass(e,"l7-control-hide"),this.isShow=!1}},{key:"show",value:function(){var e=this.container;o.f.removeClass(e,"l7-control-hide"),this.isShow=!0}},{key:"remove",value:function(){if(!this.mapsService)return this;o.f.remove(this.container),this.onRemove()}},{key:"_refocusOnMap",value:function(e){if(this.mapsService&&e&&e.screenX>0&&e.screenY>0){var t=this.mapsService.getContainer();null!==t&&t.focus()}}}])&&l(t.prototype,n),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.EventEmitter);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x(e);if(t){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(c,e);var t,n,i,a=O(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).layerControlInputs=[],t.layers=[],t.lastZIndex=0,t.handlingClick=!1,t.initLayers(),Object(o.y)(["checkDisabledLayers","onLayerChange","collapse","extend","expand","onInputClick"],_(t)),t}return t=c,(n=[{key:"getDefault",value:function(){return{collapsed:!0,position:r.PositionType.TOPRIGHT,autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,name:"layers"}}},{key:"onAdd",value:function(){var e=this;return this.initLayout(),this.update(),this.mapsService.on("zoomend",this.checkDisabledLayers),this.layers.forEach((function(t){t.layer.on("remove",e.onLayerChange),t.layer.on("add",e.onLayerChange)})),this.container}},{key:"addVisualLayer",value:function(e,t){return this.addLayer(e,t,!0),this.mapsService?this.update():this}},{key:"expand",value:function(){var e=this.renderService.getViewportSize().height;o.f.addClass(this.container,"l7-control-layers-expanded"),this.form.style.height="null";var t=e-(this.container.offsetTop+50);return t<this.form.clientHeight?(o.f.addClass(this.form,"l7-control-layers-scrollbar"),this.form.style.height=t+"px"):o.f.removeClass(this.form,"l7-control-layers-scrollbar"),this.checkDisabledLayers(),this}},{key:"collapse",value:function(){return o.f.removeClass(this.container,"l7-control-layers-expanded"),this}},{key:"onRemove",value:function(){var e=this;this.mapsService&&(this.mapsService.off("click",this.collapse),this.layers.forEach((function(t){t.layer.off("remove",e.onLayerChange),t.layer.off("add",e.onLayerChange)})))}},{key:"initLayout",value:function(){var e="l7-control-layers",t=this.container=o.f.create("div",e),n=this.controlOption.collapsed;t.setAttribute("aria-haspopup","true");var r=this.form=o.f.create("form",e+"-list");n&&(this.mapsService.on("click",this.collapse),t.addEventListener("mouseenter",this.expand),t.addEventListener("mouseleave",this.collapse)),this.layersLink=o.f.create("a",e+"-toggle",t),this.layersLink.title="Layers",n||this.expand(),this.baseLayersList=o.f.create("div",e+"-base",r),this.separator=o.f.create("div",e+"-separator",r),this.overlaysList=o.f.create("div",e+"-overlays",r),t.appendChild(r)}},{key:"initLayers",value:function(){var e=this,t=this.controlOption,n=t.baseLayers,r=void 0===n?{}:n,o=t.overlayers,i=void 0===o?{}:o;Object.keys(r).forEach((function(t){e.addLayer(r[t],t,!1)})),Object.keys(i).forEach((function(t){e.addLayer(i[t],t,!0)}))}},{key:"update",value:function(){if(!this.container)return this;var e,t,n,r;o.f.empty(this.baseLayersList),o.f.empty(this.overlaysList),this.layerControlInputs=[];var i=0;for(n=0;n<this.layers.length;n++)r=this.layers[n],this.addItem(r),t=t||r.overlay,e=e||!r.overlay,i+=r.overlay?0:1;return this.controlOption.hideSingleBase&&(e=e&&i>1,this.baseLayersList.style.display=e?"":"none"),this.separator.style.display=t&&e?"":"none",this}},{key:"checkDisabledLayers",value:function(){for(var e,t,n=this.layerControlInputs,r=this.mapsService.getZoom(),o=n.length-1;o>=0;o--)if(e=n[o],(t=this.layerService.getLayer(e.layerId))&&t.inited){var i=t.getMinZoom(),a=t.getMaxZoom();e.disabled=r<i||r>a}}},{key:"addLayer",value:function(e,t,n){this.mapsService&&(e.on("add",this.onLayerChange),e.on("remove",this.onLayerChange)),this.layers.push({layer:e,name:t,overlay:n});var r=this.controlOption,o=r.sortLayers,i=r.sortFunction,a=r.autoZIndex;o&&this.layers.sort((function(e,t){return i(e.layer,t.layer,e.name,t.name)})),a&&e.setZIndex&&(this.lastZIndex++,e.setZIndex(this.lastZIndex)),this.expandIfNotCollapsed()}},{key:"expandIfNotCollapsed",value:function(){return this.mapsService&&!this.controlOption.collapsed&&this.expand(),this}},{key:"onLayerChange",value:function(e){this.handlingClick||this.update();var t=this.layerService.getLayer(e.target.layerId),n=null!=t&&t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this.emit(n,t)}},{key:"createRadioElement",value:function(e,t){var n='<input type="radio" class="l7-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild}},{key:"addItem",value:function(e){var t,n=document.createElement("label"),r=this.layerService.getLayer(e.layer.id),o=r&&r.inited&&e.layer.isVisible();e.overlay?((t=document.createElement("input")).type="checkbox",t.className="l7-control-layers-selector",t.defaultChecked=o):t=this.createRadioElement("l7-base-layers",o),this.layerControlInputs.push(t),t.layerId=e.layer.id,t.addEventListener("click",this.onInputClick);var i=document.createElement("span");i.innerHTML=" "+e.name;var a=document.createElement("div");return n.appendChild(a),a.appendChild(t),a.appendChild(i),(e.overlay?this.overlaysList:this.baseLayersList).appendChild(n),this.checkDisabledLayers(),n}},{key:"onInputClick",value:function(){var e,t,n=this.layerControlInputs,r=[],o=[];this.handlingClick=!0;for(var i=n.length-1;i>=0;i--)e=n[i],t=this.layerService.getLayer(e.layerId),e.checked?r.push(t):e.checked||o.push(t);o.forEach((function(e){e.hide()})),r.forEach((function(e){e.show()})),this.handlingClick=!1}}])&&g(t.prototype,n),i&&g(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(y);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M(e);if(t){var o=M(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(c,e);var t,n,i,a=P(c);function c(){return C(this,c),a.apply(this,arguments)}return t=c,(n=[{key:"getDefault",value:function(){return{position:r.PositionType.BOTTOMLEFT,name:"logo"}}},{key:"onAdd",value:function(){var e=o.f.create("div","l7-control-logo"),t=o.f.create("a","l7-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://antv.alipay.com/l7",t.setAttribute("aria-label","AntV logo"),t.setAttribute("rel","noopener nofollow"),e.appendChild(t),e}},{key:"onRemove",value:function(){return null}}])&&j(t.prototype,n),i&&j(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(y);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,t){return(N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var o=z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(e,t){if(t&&("object"===L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return F(e)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}(c,e);var t,n,i,a=I(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),t=a.call(this,e),Object(o.y)(["update"],F(t)),t}return t=c,(n=[{key:"getDefault",value:function(){return{position:r.PositionType.BOTTOMLEFT,maxWidth:100,metric:!0,updateWhenIdle:!1,imperial:!1,name:"scale"}}},{key:"onAdd",value:function(){var e=o.f.create("div","l7-control-scale");this.addScales("l7-control-scale-line",e);var t=this.controlOption.updateWhenIdle;return this.mapsService.on(t?"moveend":"mapmove",this.update),this.mapsService.on(t?"zoomend":"zoomchange",this.update),this.update(),e}},{key:"onRemove",value:function(){var e=this.controlOption.updateWhenIdle;this.mapsService.off(e?"zoomend":"zoomchange",this.update),this.mapsService.off(e?"moveend":"mapmove",this.update)}},{key:"update",value:function(){var e=this.mapsService,t=this.controlOption.maxWidth,n=e.getSize()[1]/2,r=e.containerToLngLat([0,n]),i=e.containerToLngLat([t,n]),a=Object(o.sb)([r.lng,r.lat],[i.lng,i.lat]);this.updateScales(a)}},{key:"updateScales",value:function(e){var t=this.controlOption,n=t.metric,r=t.imperial;n&&e&&this.updateMetric(e),r&&e&&this.updateImperial(e)}},{key:"updateMetric",value:function(e){var t=this.getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this.updateScale(this.mScale,n,t/e)}},{key:"updateImperial",value:function(e){var t,n,r,o=3.2808399*e;o>5280?(t=o/5280,n=this.getRoundNum(t),this.updateScale(this.iScale,n+" mi",n/t)):(r=this.getRoundNum(o),this.updateScale(this.iScale,r+" ft",r/o))}},{key:"updateScale",value:function(e,t,n){var r=this.controlOption.maxWidth;e.style.width=Math.round(r*n)+"px",e.innerHTML=t}},{key:"getRoundNum",value:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}},{key:"addScales",value:function(e,t){var n=this.controlOption,r=n.metric,i=n.imperial;r&&(this.mScale=o.f.create("div",e,t)),i&&(this.iScale=o.f.create("div",e,t))}}])&&R(t.prototype,n),i&&R(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(y);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H(e,t){return(H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return W(this,n)}}function W(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Y(e)}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}(c,e);var t,n,i,a=G(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),t=a.call(this,e),Object(o.y)(["updateDisabled","zoomIn","zoomOut"],Y(t)),t}return t=c,(n=[{key:"getDefault",value:function(){return{position:r.PositionType.TOPLEFT,zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out",name:"zoom"}}},{key:"onAdd",value:function(){var e=o.f.create("div","l7-control-zoom l7-bar");return this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-control-zoom-in",e,this.zoomIn),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-control-zoom-out",e,this.zoomOut),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),this.updateDisabled(),e}},{key:"onRemove",value:function(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}},{key:"disable",value:function(){return this.disabled=!0,this.updateDisabled(),this}},{key:"enable",value:function(){return this.disabled=!1,this.updateDisabled(),this}},{key:"zoomIn",value:function(){!this.disabled&&this.mapsService.getZoom()<this.mapsService.getMaxZoom()&&this.mapsService.zoomIn()}},{key:"zoomOut",value:function(){!this.disabled&&this.mapsService.getZoom()>this.mapsService.getMinZoom()&&this.mapsService.zoomOut()}},{key:"createButton",value:function(e,t,n,r,i){var a=o.f.create("a",n,r);return a.innerHTML=e,a.title=t,a.href="javascript:void(0)",a.addEventListener("click",i),a}},{key:"updateDisabled",value:function(){var e=this.mapsService;o.f.removeClass(this.zoomInButton,"l7-disabled"),o.f.removeClass(this.zoomOutButton,"l7-disabled"),(this.disabled||e.getZoom()<=e.getMinZoom())&&o.f.addClass(this.zoomOutButton,"l7-disabled"),(this.disabled||e.getZoom()>=e.getMaxZoom())&&o.f.addClass(this.zoomInButton,"l7-disabled")}}])&&V(t.prototype,n),i&&V(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(y);function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $(e,t){return($=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=re(e);if(t){var o=re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return te(this,n)}}function te(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ne(e)}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$(e,t)}(c,e);var t,n,i,a=ee(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),oe(ne(t=a.call(this)),"added",!1),oe(ne(t),"eventHandle",(function(e){t.emit(e.type,{target:e,data:t.markerOption.extData,lngLat:t.lngLat})})),t.markerOption=J(J({},t.getDefault()),e),Object(o.y)(["update","onMove","onUp","addDragHandler","onMapClick"],ne(t)),t.init(),t}return t=c,(n=[{key:"getMarkerLayerContainerSize",value:function(){}},{key:"getDefault",value:function(){return{element:void 0,anchor:o.u.BOTTOM,offsets:[0,0],color:"#5B8FF9",draggable:!1}}},{key:"addTo",value:function(e){this.scene=e,this.mapsService=e.get(r.TYPES.IMapService),this.sceneSerive=e.get(r.TYPES.ISceneService);var t=this.markerOption.element;return this.mapsService.getMarkerContainer().appendChild(t),this.registerMarkerEvent(t),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.update(),this.added=!0,this.emit("added"),this}},{key:"remove",value:function(){this.mapsService&&(this.mapsService.off("click",this.onMapClick),this.mapsService.off("move",this.update),this.mapsService.off("moveend",this.update),this.mapsService.off("mousedown",this.addDragHandler),this.mapsService.off("touchstart",this.addDragHandler),this.mapsService.off("mouseup",this.onUp),this.mapsService.off("touchend",this.onUp)),this.unRegisterMarkerEvent(),this.removeAllListeners();var e=this.markerOption.element;return e&&o.f.remove(e),this.popup&&this.popup.remove(),this}},{key:"setLnglat",value:function(e){return this.lngLat=e,Array.isArray(e)&&(this.lngLat={lng:e[0],lat:e[1]}),this.popup&&this.popup.setLnglat(this.lngLat),this.update(),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"getElement",value:function(){return this.markerOption.element}},{key:"setElement",value:function(e){var t=this;if(!this.added)return this.once("added",(function(){t.setElement(e)})),this;var n=this.markerOption.element;return n&&o.f.remove(n),this.markerOption.element=e,this.init(),this.mapsService.getMarkerContainer().appendChild(e),this.registerMarkerEvent(e),this.update(),this}},{key:"openPopup",value:function(){var e=this;if(!this.added)return this.once("added",(function(){e.openPopup()})),this;var t=this.popup;return t?(t.isOpen()||t.addTo(this.scene),this):this}},{key:"closePopup",value:function(){var e=this;this.added||this.once("added",(function(){e.closePopup()}));var t=this.popup;return t&&t.remove(),this}},{key:"setPopup",value:function(e){return this.popup=e,this.lngLat&&this.popup.setLnglat(this.lngLat),this}},{key:"togglePopup",value:function(){var e=this.popup;return e?(e.isOpen()?e.remove():e.addTo(this.scene),this):this}},{key:"getPopup",value:function(){return this.popup}},{key:"getOffset",value:function(){return this.markerOption.offsets}},{key:"setDraggable",value:function(e){throw new Error("Method not implemented.")}},{key:"isDraggable",value:function(){return this.markerOption.draggable}},{key:"getExtData",value:function(){return this.markerOption.extData}},{key:"setExtData",value:function(e){this.markerOption.extData=e}},{key:"update",value:function(){if(this.mapsService){var e=this.markerOption,t=e.element,n=e.anchor;this.updatePosition(),o.f.setTransform(t,"".concat(o.t[n]))}}},{key:"onMapClick",value:function(e){var t=this.markerOption.element;this.popup&&t&&this.togglePopup()}},{key:"getCurrentContainerSize",value:function(){var e=this.mapsService.getContainer();return{containerHeight:(null==e?void 0:e.scrollHeight)||0,containerWidth:(null==e?void 0:e.scrollWidth)||0,bounds:this.mapsService.getBounds()}}},{key:"updatePosition",value:function(){if(this.mapsService){var e=this.markerOption,t=e.element,n=e.offsets,r=this.lngLat,o=r.lng,i=r.lat,a=this.mapsService.lngLatToContainer([o,i]);if(t){t.style.display="block",t.style.whiteSpace="nowrap";var c=this.getMarkerLayerContainerSize()||this.getCurrentContainerSize(),u=c.containerHeight,s=c.containerWidth,l=c.bounds;if(!l)return;if(Math.abs(l[0][0])>180||Math.abs(l[1][0])>180){if(a.x>s){var f=this.mapsService.lngLatToContainer([o-360,i]);a.x=f.x}if(a.x<0){var p=this.mapsService.lngLatToContainer([o+360,i]);a.x=p.x}}(a.x>s||a.x<0||a.y>u||a.y<0)&&(t.style.display="none"),t.style.left=a.x+n[0]+"px",t.style.top=a.y-n[1]+"px"}}}},{key:"init",value:function(){var e=this,t=this.markerOption.element,n=this.markerOption,r=n.color,i=n.anchor;if(!t){this.defaultMarker=!0,t=o.f.create("div"),this.markerOption.element=t;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"display","block"),a.setAttributeNS(null,"height","48px"),a.setAttributeNS(null,"width","48px"),a.setAttributeNS(null,"viewBox","0 0 1024 1024");var c=document.createElementNS("http://www.w3.org/2000/svg","path");c.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),c.setAttributeNS(null,"fill",r),a.appendChild(c),t.appendChild(a)}o.f.addClass(t,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach((function(n){var r,o,i=(null===(r=e.markerOption)||void 0===r?void 0:r.style)&&(null===(o=e.markerOption)||void 0===o?void 0:o.style[n]);t&&(t.style[n]=i)})),t.addEventListener("click",(function(t){e.onMapClick(t)})),t.addEventListener("click",this.eventHandle),Object(o.v)(t,i,"marker")}},{key:"registerMarkerEvent",value:function(e){e.addEventListener("mousemove",this.eventHandle),e.addEventListener("click",this.eventHandle),e.addEventListener("mousedown",this.eventHandle),e.addEventListener("mouseup",this.eventHandle),e.addEventListener("dblclick",this.eventHandle),e.addEventListener("contextmenu",this.eventHandle),e.addEventListener("mouseover",this.eventHandle),e.addEventListener("mouseout",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var e=this.getElement();e.removeEventListener("mousemove",this.eventHandle),e.removeEventListener("click",this.eventHandle),e.removeEventListener("mousedown",this.eventHandle),e.removeEventListener("mouseup",this.eventHandle),e.removeEventListener("dblclick",this.eventHandle),e.removeEventListener("contextmenu",this.eventHandle),e.removeEventListener("mouseover",this.eventHandle),e.removeEventListener("mouseout",this.eventHandle)}},{key:"addDragHandler",value:function(e){throw new Error("Method not implemented.")}},{key:"onUp",value:function(e){throw new Error("Method not implemented.")}}])&&Q(t.prototype,n),i&&Q(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.EventEmitter),ae=n("H8sf"),ce=n.n(ae),ue=n("ctih"),se=n.n(ue);function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t){return(he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ye(this,n)}}function ye(e,t){if(t&&("object"===le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return me(e)}function me(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&he(e,t)}(c,e);var t,n,i,a=ve(c);function c(e){var t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),be(me(n=a.call(this)),"markers",[]),be(me(n),"points",[]),be(me(n),"clusterMarkers",[]),n.markerLayerOption=ce()(n.getDefault(),e),Object(o.y)(["update"],me(n)),n.zoom=(null===(t=n.markerLayerOption.clusterOption)||void 0===t?void 0:t.zoom)||-99,n}return t=c,(n=[{key:"getDefault",value:function(){return{cluster:!1,clusterOption:{radius:80,maxZoom:20,minZoom:0,zoom:-99,style:{},className:""}}}},{key:"addTo",value:function(e){return this.scene=e,this.mapsService=e.get(r.TYPES.IMapService),this.markerLayerOption.cluster&&(this.initCluster(),this.update(),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.mapsService.on("camerachange",this.setContainerSize.bind(this)),this.mapsService.on("viewchange",this.setContainerSize.bind(this)),this.addMarkers(),this}},{key:"setContainerSize",value:function(){if(this.mapsService){var e=this.mapsService.getContainer();this.containerSize={containerWidth:(null==e?void 0:e.scrollWidth)||0,containerHeight:(null==e?void 0:e.scrollHeight)||0,bounds:this.mapsService.getBounds()}}}},{key:"getContainerSize",value:function(){return this.containerSize}},{key:"addMarker",value:function(e){var t=this.markerLayerOption.cluster;if(e.getMarkerLayerContainerSize=this.getContainerSize.bind(this),t&&(this.addPoint(e,this.markers.length),this.mapsService)){var n=this.mapsService.getZoom(),r=this.mapsService.getBounds();this.bbox=Object(o.Ab)(r,.5),this.zoom=Math.floor(n),this.getClusterMarker(this.bbox,this.zoom)}this.markers.push(e)}},{key:"removeMarker",value:function(e){this.markers.indexOf(e);var t=this.markers.indexOf(e);t>-1&&this.markers.splice(t,1)}},{key:"hide",value:function(){this.markers.map((function(e){e.getElement().style.opacity="0"})),this.clusterMarkers.map((function(e){e.getElement().style.opacity="0"}))}},{key:"show",value:function(){this.markers.map((function(e){e.getElement().style.opacity="1"})),this.clusterMarkers.map((function(e){e.getElement().style.opacity="1"}))}},{key:"getMarkers",value:function(){return this.markerLayerOption.cluster?this.clusterMarkers:this.markers}},{key:"addMarkers",value:function(){var e=this;this.getMarkers().forEach((function(t){t.addTo(e.scene)}))}},{key:"clear",value:function(){this.markers.forEach((function(e){e.remove()})),this.clusterMarkers.forEach((function(e){e.remove()})),this.markers=[],this.points=[],this.clusterMarkers=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners(),this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.off("camerachange",this.setContainerSize.bind(this)),this.mapsService.off("viewchange",this.setContainerSize.bind(this))}},{key:"addPoint",value:function(e,t){var n=e.getLnglat(),r={geometry:{type:"Point",coordinates:[n.lng,n.lat]},properties:pe(pe({},e.getExtData()),{},{marker_id:t})};this.points.push(r),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(this.markerLayerOption.cluster){var e=this.markerLayerOption.clusterOption,t=e.radius,n=e.minZoom,r=void 0===n?0:n,o=e.maxZoom;this.clusterIndex=new se.a({radius:t,minZoom:r,maxZoom:o}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(e,t){var n=this,r=e[0].concat(e[1]),i=this.clusterIndex.getClusters(r,t);this.clusterMarkers.forEach((function(e){e.remove()})),this.clusterMarkers=[],i.forEach((function(e){var t,r=n.markerLayerOption.clusterOption,i=r.field,a=r.method;if(null!==(t=e.properties)&&void 0!==t&&t.cluster_id){var c,u=n.getLeaves(null===(c=e.properties)||void 0===c?void 0:c.cluster_id);if(e.properties.clusterData=u,i&&a){var s=null==u?void 0:u.map((function(e){return be({},i,e.properties[i])})),l=o.l.getColumn(s,i),f=o.l.getSatByColumn(a,l),p="point_"+a;e.properties[p]=f.toFixed(2)}}var d=n.clusterMarker(e);n.clusterMarkers.push(d),d.addTo(n.scene)}))}},{key:"getLeaves",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e?this.clusterIndex.getLeaves(e,t,n):null}},{key:"clusterMarker",value:function(e){var t=this.markerLayerOption.clusterOption.element,n=void 0===t?this.generateElement.bind(this):t;return new ie({element:n(e)}).setLnglat({lng:e.geometry.coordinates[0],lat:e.geometry.coordinates[1]})}},{key:"normalMarker",value:function(e){var t=e.properties.marker_id;return this.markers[t]}},{key:"update",value:function(){if(this.mapsService&&0!==this.markers.length){var e=this.mapsService.getZoom(),t=this.mapsService.getBounds();(!this.bbox||Math.abs(e-this.zoom)>=1||!Object(o.z)(this.bbox,t))&&(this.bbox=Object(o.Ab)(t,.5),this.zoom=Math.floor(e),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(e){var t=o.f.create("div","l7-marker-cluster"),n=o.f.create("div","",t),r=o.f.create("span","",n),i=this.markerLayerOption.clusterOption,a=i.field,c=i.method;e.properties.point_count=e.properties.point_count||1;var u=a&&c?e.properties["point_"+c]||e.properties[a]:e.properties.point_count;return r.textContent=u,t}}])&&de(t.prototype,n),i&&de(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.EventEmitter);function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){Ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ce(e,t){return(Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function je(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Te(e);if(t){var o=Te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ke(this,n)}}function ke(e,t){if(t&&("object"===we(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pe(e)}function Pe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Me=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ce(e,t)}(c,e);var t,n,i,a=je(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this)).popupOption=xe(xe({},t.getdefault()),e),Object(o.y)(["update","onClickClose","remove"],Pe(t)),t}return t=c,(n=[{key:"addTo",value:function(e){var t=this;return this.mapsService=e.get(r.TYPES.IMapService),this.sceneSerive=e.get(r.TYPES.ISceneService),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=e,this.update(),this.popupOption.closeOnClick&&(this.timeoutInstance=setTimeout((function(){t.mapsService.on("click",t.onClickClose)}),30)),this.emit("open"),this}},{key:"close",value:function(){this.remove()}},{key:"open",value:function(){this.addTo(this.scene)}},{key:"setHTML",value:function(e){var t,n=window.document.createDocumentFragment(),r=window.document.createElement("body");for(r.innerHTML=e;t=r.firstChild;)n.appendChild(t);return this.setDOMContent(n)}},{key:"setLnglat",value:function(e){return this.lngLat=e,Array.isArray(e)&&(this.lngLat={lng:e[0],lat:e[1]}),this.mapsService&&(this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.update(),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setText",value:function(e){return this.setDOMContent(window.document.createTextNode(e))}},{key:"setMaxWidth",value:function(e){return this.popupOption.maxWidth=e,this.update(),this}},{key:"setDOMContent",value:function(e){return this.createContent(),this.content.appendChild(e),this.update(),this}},{key:"remove",value:function(){return this.content&&this.removeDom(this.content),this.container&&(this.removeDom(this.container),delete this.container),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.off("click",this.onClickClose),delete this.mapsService),clearTimeout(this.timeoutInstance),this.emit("close"),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"createContent",value:function(){this.content&&o.f.remove(this.content),this.content=o.f.create("div","l7-popup-content",this.container),this.popupOption.closeButton&&(this.closeButton=o.f.create("button","l7-popup-close-button",this.content),this.popupOption.closeButtonOffsets&&(this.closeButton.style.right=this.popupOption.closeButtonOffsets[0]+"px",this.closeButton.style.top=this.popupOption.closeButtonOffsets[1]+"px"),this.closeButton.setAttribute("aria-label","Close popup"),this.closeButton.innerHTML="×",this.closeButton.addEventListener("click",this.onClickClose))}},{key:"creatDom",value:function(e,t,n){var r=window.document.createElement(e);return void 0!==t&&(r.className=t),n&&n.appendChild(r),r}},{key:"removeDom",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"getdefault",value:function(){return{closeButton:!0,closeOnClick:!0,maxWidth:"240px",offsets:[0,0],anchor:o.u.BOTTOM,className:"",stopPropagation:!0}}},{key:"onClickClose",value:function(e){e.stopPropagation&&e.stopPropagation(),this.remove()}},{key:"update",value:function(){var e=this,t=this.lngLat,n=this.popupOption,r=n.className,i=n.maxWidth,a=n.anchor;if(this.mapsService&&t&&this.content){var c=this.mapsService.getMarkerContainer();!this.container&&c&&(this.container=this.creatDom("div","l7-popup",c),this.tip=this.creatDom("div","l7-popup-tip",this.container),this.container.appendChild(this.content),r&&r.split(" ").forEach((function(t){return e.container.classList.add(t)})),this.popupOption.stopPropagation&&["mousemove","mousedown","mouseup","click","dblclick"].forEach((function(t){e.container.addEventListener(t,(function(e){e.stopPropagation()}))})),this.container.style.whiteSpace="nowrap"),i&&this.container.style.maxWidth!==i&&(this.container.style.maxWidth=i),this.updatePosition(),o.f.setTransform(this.container,"".concat(o.t[a])),Object(o.v)(this.container,a,"popup")}}},{key:"updatePosition",value:function(){if(this.mapsService){var e=this.lngLat,t=e.lng,n=e.lat,r=this.popupOption.offsets,o=this.mapsService.lngLatToContainer([t,n]);this.container.style.left=o.x+r[0]+"px",this.container.style.top=o.y-r[1]+"px"}}}])&&Se(t.prototype,n),i&&Se(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.EventEmitter);n("O82g")},ax0f:function(e,t,n){var r=n("9JhN"),o=n("GFpt").f,i=n("WxKw"),a=n("7zCF"),c=n("RJmV"),u=n("tjTa"),s=n("66wQ");e.exports=function(e,t){var n,l,f,p,d,h=e.target,v=e.global,y=e.stat;if(n=v?r:y?r[h]||c(h,{}):(r[h]||{}).prototype)for(l in t){if(p=t[l],f=e.dontCallGetSet?(d=o(n,l))&&d.value:n[l],!s(v?l:h+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,e)}}},bBEY:function(e,t,n){"use strict";var r=n("eT/W"),o=r.Error,i=r.Ok;e.exports=function(e){try{return i(e())}catch(t){return o(t)}}},bE4q:function(e,t,n){"use strict";var r=n("cxan"),o=n("zjfJ"),i=n("fGyu"),a=n("O94r"),c=n.n(a),u=n("6Qj0"),s=n("ERkP"),l=n("H84U"),f=n("BvKs"),p=n("0n0R"),d=n("sxM7"),h=n("XBQK"),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},y=function(e){var t,n,o=e.prefixCls,i=e.separator,a=void 0===i?"/":i,c=e.children,u=e.overlay,f=e.dropdownProps,p=v(e,["prefixCls","separator","children","overlay","dropdownProps"]),y=(0,s.useContext(l.b).getPrefixCls)("breadcrumb",o);return t="href"in p?s.createElement("a",Object(r.a)({className:"".concat(y,"-link")},p),c):s.createElement("span",Object(r.a)({className:"".concat(y,"-link")},p),c),n=t,t=u?s.createElement(h.a,Object(r.a)({overlay:u,placement:"bottom"},f),s.createElement("span",{className:"".concat(y,"-overlay-link")},n,s.createElement(d.a,null))):n,c?s.createElement("li",null,t,a&&s.createElement("span",{className:"".concat(y,"-separator")},a)):null};y.__ANT_BREADCRUMB_ITEM=!0;var m=y,g=function(e){var t=e.children,n=(0,s.useContext(l.b).getPrefixCls)("breadcrumb");return s.createElement("span",{className:"".concat(n,"-separator")},t||"/")};g.__ANT_BREADCRUMB_SEPARATOR=!0;var b=g,O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function w(e,t,n,r){var o=n.indexOf(e)===n.length-1,i=function(e,t){if(!e.breadcrumbName)return null;var n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(":(".concat(n,")"),"g"),(function(e,n){return t[n]||e}))}(e,t);return o?s.createElement("span",null,i):s.createElement("a",{href:"#/".concat(r.join("/"))},i)}var _=function(e,t){return e=(e||"").replace(/^\//,""),Object.keys(t).forEach((function(n){e=e.replace(":".concat(n),t[n])})),e},x=function(e,t,n){var r=Object(i.a)(e),o=_(t||"",n);return o&&r.push(o),r},E=function(e){var t,n=e.prefixCls,i=e.separator,a=void 0===i?"/":i,d=e.style,h=e.className,v=e.routes,y=e.children,g=e.itemRender,b=void 0===g?w:g,E=e.params,S=void 0===E?{}:E,C=O(e,["prefixCls","separator","style","className","routes","children","itemRender","params"]),j=s.useContext(l.b),k=j.getPrefixCls,P=j.direction,T=k("breadcrumb",n);if(v&&v.length>0){var M=[];t=v.map((function(e){var t,n=_(e.path,S);return n&&M.push(n),e.children&&e.children.length&&(t=s.createElement(f.a,{items:e.children.map((function(e){return{key:e.path||e.breadcrumbName,label:b(e,S,v,x(M,e.path,S))}}))})),s.createElement(m,{overlay:t,separator:a,key:n||e.breadcrumbName},b(e,S,v,M))}))}else y&&(t=Object(u.a)(y).map((function(e,t){return e?Object(p.a)(e,{separator:a,key:t}):e})));var A=c()(T,Object(o.a)({},"".concat(T,"-rtl"),"rtl"===P),h);return s.createElement("nav",Object(r.a)({className:A,style:d},C),s.createElement("ol",null,t))};E.Item=m,E.Separator=b;var S=E;t.a=S},bHH9:function(e,t,n){"use strict";var r=n("M1iK"),o=r.Success,i=r.Failure;e.exports=function(e){return e.matchWith({Error:function(e){var t=e.value;return i(t)},Ok:function(e){var t=e.value;return o(t)}})}},bKJz:function(e,t,n){},bOZ7:function(e,t,n){"use strict";var r=n("8Jfv").typeSymbol;e.exports=function(e){return function(t,n){var o=e[r];"none"==={}.FOLKTALE_ASSERTIONS||e.isPrototypeOf(n)||(console.warn(o+"."+t+" expects a value of the same type, but was given "+n+"."),"minimal"!=={}.FOLKTALE_ASSERTIONS&&console.warn("\nThis could mean that you've provided the wrong value to the method, in\nwhich case this is a bug in your program, and you should try to track\ndown why the wrong value is getting here.\n\nBut this could also mean that you have more than one "+o+" library\ninstantiated in your program. This is not **necessarily** a bug, it\ncould happen for several reasons:\n\n 1) You're loading the library in Node, and Node's cache didn't give\n you back the same instance you had previously requested.\n\n 2) You have more than one Code Realm in your program, and objects\n created from the same library, in different realms, are interacting.\n\n 3) You have a version conflict of folktale libraries, and objects\n created from different versions of the library are interacting.\n\nIf your situation fits the cases (1) or (2), you are okay, as long as\nthe objects originate from the same version of the library. Folktale\ndoes not rely on reference checking, only structural checking. However\nyou'll want to watch out if you're modifying the "+o+"'s prototype,\nbecause you'll have more than one of them, and you'll want to make\nsure you do the same change in all of them — ideally you shouldn't\nbe modifying the object, though.\n\nIf your situation fits the case (3), you are *probably* okay if the\nversion difference isn't a major one. However, at this point the\nbehaviour of your program using "+o+" is undefined, and you should\ntry looking into why the version conflict is happening.\n\nParametric modules can help ensuring your program only has a single\ninstance of the folktale library. Check out the Folktale Architecture\ndocumentation for more information.\n "))}}},bSuG:function(e,t,n){"use strict";n.d(t,"a",(function(){return X}));var r=n("mpCQ"),o=n("OZKJ"),i=n.n(o),a=n("pufz"),c=n("zEXi"),u=n("K/oH"),s=n("s6Xb"),l=(n("qzOT"),n("k0uE")),f={dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",normal:"amap://styles/normal",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true"};function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),m(this,"projectionMatrix",u.b.create()),m(this,"viewMatrix",u.b.create()),m(this,"viewProjectionMatrix",u.b.create()),m(this,"ViewProjectionMatrixUncentered",u.b.create()),m(this,"viewUncenteredMatrix",u.b.create())}var t,n,r;return t=e,(n=[{key:"syncWithMapCamera",value:function(e){var t=e.zoom,n=void 0===t?1:t,r=e.center,o=void 0===r?[0,0]:r,i=e.offsetOrigin,a=void 0===i?[0,0]:i,c=e.cameraPosition,s=void 0===c?[0,0,0]:c,l=e.up,f=void 0===l?[0,1,0]:l,p=e.lookAt,h=void 0===p?[0,0,0]:p,v=e.aspect,y=void 0===v?1:v,m=e.near,g=void 0===m?.1:m,b=e.far,O=void 0===b?1e3:b,w=e.fov,_=void 0===w?45:w;this.zoom=n,this.center=o,u.b.perspective(this.projectionMatrix,_/180*Math.PI,y,g,O);var x=u.d.fromValues.apply(u.d,d(s)),E=u.d.fromValues.apply(u.d,d(h)),S=u.d.fromValues.apply(u.d,d(f));u.b.lookAt(this.viewMatrix,x,E,S),this.viewUncenteredMatrix=u.b.clone(this.viewMatrix),u.b.translate(this.viewMatrix,this.viewMatrix,u.d.fromValues(-a[0],a[1],0)),u.b.multiply(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),u.b.multiply(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 1048576}},{key:"getCenter",value:function(){var e=p(this.center,2);return[e[0],e[1]]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(e,t){var n=Math.max(Math.min(85.0511287798,e[1]),-85.0511287798),r=Math.PI/180,o=e[0]*r,i=n*r;return i=Math.log(Math.tan(Math.PI/4+i/2)),[o=(256<<20)*(.5/Math.PI*o+.5)-215440491,i=-((256<<20)*(-.5/Math.PI*i+(r=.5))-106744817)]}}])&&y(t.prototype,n),r&&y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),b=n("Os+v");function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var w,_=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"];function x(){x=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(k){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(C([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==O(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function j(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function k(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=I(e);if(t){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return N(e)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.forceWebGL=!0;var F=!1,z=[],B=Object(s.injectable)()(w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(d,e);var t,n,r,o,s,p=L(d);function d(){var e;T(this,d);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return D(N(e=p.call.apply(p,[this].concat(n))),"version",l.a["GAODE2.x"]),D(N(e),"handleViewChanged",(function(t){var n=e.map.customCoords.getCameraParams(),r=n.fov,o=n.near,i=n.far,c=n.aspect,u=n.position,s=n.lookAt,l=n.up;e.emit("mapchange");var f=e.map.customCoords.getCenter();e.cameraChangedCallback&&(e.viewport.syncWithMapCamera({aspect:c,far:i,fov:r,cameraPosition:u,lookAt:s,up:l,near:o,zoom:e.map.getZoom()-1,center:f,offsetOrigin:[u[0],u[1]]}),e.coordinateSystemService.setCoordinateSystem(a.CoordinateSystem.P20_2),e.cameraChangedCallback(e.viewport))})),e}return t=d,(n=[{key:"setCustomCoordCenter",value:function(e){this.sceneCenter=e,this.sceneCenterMKT=c.r.apply(void 0,k(e))}},{key:"getCustomCoordCenter",value:function(){return this.sceneCenterMKT}},{key:"lngLatToCoordByLayer",value:function(e,t){var n=c.r.apply(void 0,k(t));return this._sub(Object(c.r)(e[0],e[1]),n)}},{key:"lngLatToCoordsByLayer",value:function(e,t){var n=this;return e.map((function(e){return"number"==typeof e[0]?n.lngLatToCoordByLayer(e,t):e.map((function(e){return n.lngLatToCoordByLayer(e,t)}))}))}},{key:"lngLatToCoord",value:function(e){return this.sceneCenter||(this.map.customCoords.setCenter(e),this.setCustomCoordCenter(e)),this._sub(Object(c.r)(e[0],e[1]),this.sceneCenterMKT)}},{key:"lngLatToCoords",value:function(e){var t=this;return e.map((function(e){return"number"==typeof e[0]?t.lngLatToCoord(e):e.map((function(e){return t.lngLatToCoord(e)}))}))}},{key:"addMarkerContainer",value:function(){if(this.map){var e=this.map.getContainer();if(null!==e){var t=e.getElementsByClassName("amap-maps")[0];t.style.zIndex="auto",this.markerContainer=c.f.create("div","l7-marker-container2",t)}}}},{key:"updateView",value:function(e){}},{key:"getOverlayContainer",value:function(){}},{key:"getMapStyle",value:function(e){return f[e]?f[e]:e}},{key:"getType",value:function(){return"amap2"}},{key:"getBounds",value:function(){var e=this.map.getBounds(),t=e.getNorthEast(),n=e.getSouthWest(),r=this.getCenter(),o=r.lng>t.getLng()||r.lng<n.getLng()?180-t.getLng():t.getLng();return[[r.lng<n.getLng()?n.getLng()-180:n.getLng(),n.getLat()],[o,t.getLat()]]}},{key:"getMinZoom",value:function(){return this.map.getZooms()[0]-1}},{key:"getMaxZoom",value:function(){return this.map.getZooms()[1]-1}},{key:"lngLatToContainer",value:function(e){var t=this.map.lngLatToContainer(e);return{x:t.getX(),y:t.getY()}}},{key:"getModelMatrix",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[1,1,1],o=this.map.customCoords.lngLatToCoord(e),i=u.b.create();return u.b.translate(i,i,u.d.fromValues(o[0],o[1],t)),u.b.scale(i,i,u.d.fromValues(r[0],r[1],r[2])),u.b.rotateX(i,i,n[0]),u.b.rotateY(i,i,n[1]),u.b.rotateZ(i,i,n[2]),i}},{key:"init",value:(o=x().mark((function e(){var t,n,r,o,a,c,u,s,l,f,p,d,h,v,y=this;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.config,n=t.id,r=t.style,o=void 0===r?"light":r,a=t.minZoom,c=void 0===a?0:a,u=t.maxZoom,s=void 0===u?18:u,l=t.token,f=void 0===l?"ff533602d57df6f8ab3b0fea226ae52f":l,p=t.mapInstance,d=t.plugin,h=void 0===d?[]:d,t.version,v=C(t,_),e.next=3,new Promise((function(e){var t=function(){if(p){var t;y.map=p,y.$mapContainer=y.map.getContainer();var r=y.map.getCenter();null===(t=y.map.customCoords)||void 0===t||t.setCenter([r.lng,r.lat]),y.setCustomCoordCenter([r.lng,r.lat]),setTimeout((function(){y.map.on("viewchange",y.handleViewChanged),e()}),30)}else{y.$mapContainer=y.creatMapContainer(n);var i=S({mapStyle:y.getMapStyle(o),zooms:[c,s],viewMode:"3D"},v);i.zoom&&(i.zoom+=1);var a=new AMap.Map(y.$mapContainer,i);y.map=a;var u=a.getCenter();a.customCoords.setCenter([u.lng,u.lat]),y.setCustomCoordCenter([u.lng,u.lat]),a.on("viewchange",y.handleViewChanged),setTimeout((function(){e()}),10)}};y.viewport=new g,F||p?F&&window.AMap||p?t():z.push(t):("ff533602d57df6f8ab3b0fea226ae52f"===f&&console.warn(y.configService.getSceneWarninfo("MapToken")),F=!0,h.push("Map3D"),i.a.load({key:f,version:"2.0.5",plugins:h}).then((function(e){t(),z.length&&(z.forEach((function(e){return e()})),z=[])})).catch((function(e){throw new Error(e)})))}));case 3:this.initViewPort();case 4:case"end":return e.stop()}}),e,this)})),s=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){j(i,n,r,a,c,"next",e)}function c(e){j(i,n,r,a,c,"throw",e)}a(void 0)}))},function(){return s.apply(this,arguments)})},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(e){this.cameraChangedCallback=e}},{key:"initViewPort",value:function(){var e,t=null===(e=this.map.customCoords)||void 0===e?void 0:e.getCameraParams(),n=t.fov,r=t.near,o=t.far,i=t.aspect,c=t.position,u=t.lookAt,s=t.up;this.emit("mapchange");var l=this.map.customCoords.getCenter(),f=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:i,far:o,fov:n,cameraPosition:c,lookAt:u,near:r,up:s,zoom:f-1,center:l,offsetOrigin:[c[0],c[1]]}),this.coordinateSystemService.setCoordinateSystem(a.CoordinateSystem.P20_2),this.cameraChangedCallback(this.viewport))}},{key:"_sub",value:function(e,t){var n=[0,0];return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n}}])&&M(t.prototype,n),r&&M(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(b.a))||w;function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(e,t){return(G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Y(this,n)}}function Y(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}(i,e);var t,n,r,o=W(i);function i(){return V(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getServiceConstructor",value:function(){return B}}])&&H(t.prototype,n),r&&H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a)},bVbG:function(e,t,n){var r=n("Syyo"),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},bXwC:function(e,t,n){},bf48:function(e,t,n){"use strict";var r=n("zjfJ"),o=n("zygG"),i=n("cxan"),a=n("P8Qv"),c=n("ZTcJ"),u=n("O94r"),s=n.n(u),l=n("8sde"),f=n("mDRv"),p=n("ERkP"),d=n("Tckk"),h=n("bE4q"),v=n("H84U"),y=n("YMnH"),m=n("zeV3"),g=n("gDlH"),b=function(e,t,n){return t&&n?p.createElement(y.a,{componentName:"PageHeader"},(function(r){var o=r.back;return p.createElement("div",{className:"".concat(e,"-back")},p.createElement(g.a,{onClick:function(e){null==n||n(e)},className:"".concat(e,"-back-button"),"aria-label":o},t))})):null},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr";return void 0!==e.backIcon?e.backIcon:"rtl"===t?p.createElement(c.a,null):p.createElement(a.a,null)};t.a=function(e){var t=Object(f.a)(!1),n=Object(o.a)(t,2),a=n[0],c=n[1],u=function(e){var t=e.width;c(t<768,!0)};return p.createElement(v.a,null,(function(t){var n,o,c=t.getPrefixCls,f=t.pageHeader,v=t.direction,y=e.prefixCls,g=e.style,w=e.footer,_=e.children,x=e.breadcrumb,E=e.breadcrumbRender,S=e.className,C=!0;"ghost"in e?C=e.ghost:f&&"ghost"in f&&(C=f.ghost);var j=c("page-header",y),k=(null==x?void 0:x.routes)?function(e){return p.createElement(h.a,Object(i.a)({},e))}(x):null,P=x&&"props"in x,T=null!==(o=null==E?void 0:E(e,k))&&void 0!==o?o:k,M=P?x:T,A=s()(j,S,(n={"has-breadcrumb":!!M,"has-footer":!!w},Object(r.a)(n,"".concat(j,"-ghost"),C),Object(r.a)(n,"".concat(j,"-rtl"),"rtl"===v),Object(r.a)(n,"".concat(j,"-compact"),a),n));return p.createElement(l.a,{onResize:u},p.createElement("div",{className:A,style:g},M,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=t.title,o=t.avatar,a=t.subTitle,c=t.tags,u=t.extra,s=t.onBack,l="".concat(e,"-heading"),f=r||a||c||u;if(!f)return null;var h=O(t,n),v=b(e,h,s),y=v||o||f;return p.createElement("div",{className:l},y&&p.createElement("div",{className:"".concat(l,"-left")},v,o&&p.createElement(d.a,Object(i.a)({},o)),r&&p.createElement("span",{className:"".concat(l,"-title"),title:"string"==typeof r?r:void 0},r),a&&p.createElement("span",{className:"".concat(l,"-sub-title"),title:"string"==typeof a?a:void 0},a),c&&p.createElement("span",{className:"".concat(l,"-tags")},c)),u&&p.createElement("span",{className:"".concat(l,"-extra")},p.createElement(m.b,null,u)))}(j,e,v),_&&function(e,t){return p.createElement("div",{className:"".concat(e,"-content")},t)}(j,_),function(e,t){return t?p.createElement("div",{className:"".concat(e,"-footer")},t):null}(j,w)))}))}},bnMc:function(e,t,n){var r=n("VrFO"),o=n("Y9Ll"),i=n("5Yy7"),a=n("N+ot"),c=n("AuHH");function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}var s=n("Y3rH"),l=n("5dAn"),f=n("5w0e"),p=n("73V4"),d=n("KQpv")("engine.io-client:polling"),h=function(e){"use strict";i(n,e);var t=u(n);function n(){return r(this,n),t.apply(this,arguments)}return o(n,[{key:"name",get:function(){return"polling"}},{key:"doOpen",value:function(){this.poll()}},{key:"pause",value:function(e){var t=this;function n(){d("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(d("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){d("pre-pause polling complete"),--r||n()}))),this.writable||(d("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){d("pre-pause writing complete"),--r||n()})))}else n()}},{key:"poll",value:function(){d("polling"),this.polling=!0,this.doPoll(),this.emit("poll")}},{key:"onData",value:function(e){var t=this;d("polling got data %s",e);f.decodePayload(e,this.socket.binaryType).forEach((function(e,n,r){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():d('ignoring poll - transport state "%s"',this.readyState))}},{key:"doClose",value:function(){var e=this;function t(){d("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(d("transport open - closing"),t()):(d("transport not open - deferring close"),this.once("open",t))}},{key:"write",value:function(e){var t=this;this.writable=!1,f.encodePayload(e,(function(e){t.doWrite(e,(function(){t.writable=!0,t.emit("drain")}))}))}},{key:"uri",value:function(){var e=this.query||{},t=this.opts.secure?"https":"http",n="";return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=p()),this.supportsBinary||e.sid||(e.b64=1),e=l.encode(e),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),e.length&&(e="?"+e),t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+e}}]),n}(s);e.exports=h},bogI:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e?"function"==typeof e?e():e:null}},bvyN:function(e,t,n){var r=n("/30y"),o=n("tLQN"),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=u},bywK:function(e,t,n){"use strict";var r=n("BjaG");function o(e){if("string"!=typeof e)throw new Error("The url must be a string.");var t=r(e),n=t.resource.split("."),i=null;switch(t.toString=function(e){return o.stringify(this,e)},t.source=n.length>2?n.slice(1-n.length).join("."):t.source=t.resource,t.git_suffix=/\.git$/.test(t.pathname),t.name=decodeURIComponent(t.pathname.replace(/^\//,"").replace(/\.git$/,"")),t.owner=decodeURIComponent(t.user),t.source){case"git.cloudforge.com":t.owner=t.user,t.organization=n[0],t.source="cloudforge.com";break;case"visualstudio.com":if("vs-ssh.visualstudio.com"===t.resource){4===(i=t.name.split("/")).length&&(t.organization=i[1],t.owner=i[2],t.name=i[3],t.full_name=i[2]+"/"+i[3]);break}2===(i=t.name.split("/")).length?(t.owner=i[1],t.name=i[1],t.full_name="_git/"+t.name):3===i.length?(t.name=i[2],"DefaultCollection"===i[0]?(t.owner=i[2],t.organization=i[0],t.full_name=t.organization+"/_git/"+t.name):(t.owner=i[0],t.full_name=t.owner+"/_git/"+t.name)):4===i.length&&(t.organization=i[0],t.owner=i[1],t.name=i[3],t.full_name=t.organization+"/"+t.owner+"/_git/"+t.name);break;case"dev.azure.com":case"azure.com":if("ssh.dev.azure.com"===t.resource){4===(i=t.name.split("/")).length&&(t.organization=i[1],t.owner=i[2],t.name=i[3]);break}5===(i=t.name.split("/")).length?(t.organization=i[0],t.owner=i[1],t.name=i[4],t.full_name="_git/"+t.name):3===i.length?(t.name=i[2],"DefaultCollection"===i[0]?(t.owner=i[2],t.organization=i[0],t.full_name=t.organization+"/_git/"+t.name):(t.owner=i[0],t.full_name=t.owner+"/_git/"+t.name)):4===i.length&&(t.organization=i[0],t.owner=i[1],t.name=i[3],t.full_name=t.organization+"/"+t.owner+"/_git/"+t.name),t.query&&t.query.path&&(t.filepath=t.query.path.replace(/^\/+/g,"")),t.query&&t.query.version&&(t.ref=t.query.version.replace(/^GB/,""));break;default:var a=(i=t.name.split("/")).length-1;if(i.length>=2){var c=i.indexOf("-",2),u=i.indexOf("blob",2),s=i.indexOf("tree",2),l=i.indexOf("commit",2),f=i.indexOf("src",2),p=i.indexOf("raw",2);a=c>0?c-1:u>0?u-1:s>0?s-1:l>0?l-1:f>0?f-1:p>0?p-1:a,t.owner=i.slice(0,a).join("/"),t.name=i[a],l&&(t.commit=i[a+2])}t.ref="",t.filepathtype="",t.filepath="";var d=i.length>a&&"-"===i[a+1]?a+1:a;i.length>d+2&&["raw","src","blob","tree"].indexOf(i[d+1])>=0&&(t.filepathtype=i[d+1],t.ref=i[d+2],i.length>d+3&&(t.filepath=i.slice(d+3).join("/"))),t.organization=t.owner}t.full_name||(t.full_name=t.owner,t.name&&(t.full_name&&(t.full_name+="/"),t.full_name+=t.name)),t.owner.startsWith("scm/")&&(t.source="bitbucket-server",t.owner=t.owner.replace("scm/",""),t.organization=t.owner,t.full_name=t.owner+"/"+t.name);var h=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/.exec(t.pathname);return null!=h&&(t.source="bitbucket-server","users"===h[1]?t.owner="~"+h[2]:t.owner=h[2],t.organization=t.owner,t.name=h[3],(i=h[4].split("/")).length>1&&(["raw","browse"].indexOf(i[1])>=0?(t.filepathtype=i[1],i.length>2&&(t.filepath=i.slice(2).join("/"))):"commits"===i[1]&&i.length>2&&(t.commit=i[2])),t.full_name=t.owner+"/"+t.name,t.query.at?t.ref=t.query.at:t.ref=""),t}o.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var n=e.port?":"+e.port:"",r=e.user||"git",o=e.git_suffix?".git":"";switch(t){case"ssh":return n?"ssh://"+r+"@"+e.resource+n+"/"+e.full_name+o:r+"@"+e.resource+":"+e.full_name+o;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+r+"@"+e.resource+n+"/"+e.full_name+o;case"http":case"https":return t+"://"+(e.token?function(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"")+e.resource+n+"/"+function(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:return""+e.full_name}}(e)+o;default:return e.href}},e.exports=o},bz5b:function(e,t,n){var r=n("9y2L");e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,c=Object(n);(t?a--:++a<i)&&!1!==o(c[a],a,c););return n}}},"c+mU":function(e,t,n){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var a=r[i],c=e[a];(o?-1!==t.indexOf(a):t(a,c,e))&&(n[a]=c)}return n}},c18h:function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},c2re:function(e,t,n){var r=n("kn3Q");e.exports=function(e){return r(e,5)}},c5bu:function(e,t,n){"use strict";var r=n("n70c"),o=n("5Yy7"),i=n("N+ot"),a=n("AuHH"),c=n("VrFO"),u=n("Y9Ll");function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;var l,f=n("dMso"),p=n("xyj9"),d=n("BDtw"),h=n("KQpv")("socket.io-parser");t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(l=t.PacketType||(t.PacketType={}));var v=function(){function e(){c(this,e)}return u(e,[{key:"encode",value:function(e){return h("encoding packet %j",e),e.type!==l.EVENT&&e.type!==l.ACK||!d.hasBinary(e)?[this.encodeAsString(e)]:(e.type=e.type===l.EVENT?l.BINARY_EVENT:l.BINARY_ACK,this.encodeAsBinary(e))}},{key:"encodeAsString",value:function(e){var t=""+e.type;return e.type!==l.BINARY_EVENT&&e.type!==l.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data)),h("encoded %j as %s",e,t),t}},{key:"encodeAsBinary",value:function(e){var t=p.deconstructPacket(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}]),e}();t.Encoder=v;var y=function(e){o(n,e);var t=s(n);function n(){return c(this,n),t.call(this)}return u(n,[{key:"add",value:function(e){var t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");(t=this.decodeString(e)).type===l.BINARY_EVENT||t.type===l.BINARY_ACK?(this.reconstructor=new m(t),0===t.attachments&&r(a(n.prototype),"emit",this).call(this,"decoded",t)):r(a(n.prototype),"emit",this).call(this,"decoded",t)}else{if(!d.isBinary(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,r(a(n.prototype),"emit",this).call(this,"decoded",t))}}},{key:"decodeString",value:function(e){var t=0,r={type:Number(e.charAt(0))};if(void 0===l[r.type])throw new Error("unknown packet type "+r.type);if(r.type===l.BINARY_EVENT||r.type===l.BINARY_ACK){for(var o=t+1;"-"!==e.charAt(++t)&&t!=e.length;);var i=e.substring(o,t);if(i!=Number(i)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(i)}if("/"===e.charAt(t+1)){for(var a=t+1;++t;){if(","===e.charAt(t))break;if(t===e.length)break}r.nsp=e.substring(a,t)}else r.nsp="/";var c=e.charAt(t+1);if(""!==c&&Number(c)==c){for(var u=t+1;++t;){var s=e.charAt(t);if(null==s||Number(s)!=s){--t;break}if(t===e.length)break}r.id=Number(e.substring(u,t+1))}if(e.charAt(++t)){var f=function(e){try{return JSON.parse(e)}catch(t){return!1}}(e.substr(t));if(!n.isPayloadValid(r.type,f))throw new Error("invalid payload");r.data=f}return h("decoded %s as %j",e,r),r}},{key:"destroy",value:function(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}],[{key:"isPayloadValid",value:function(e,t){switch(e){case l.CONNECT:return"object"==typeof t;case l.DISCONNECT:return void 0===t;case l.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case l.EVENT:case l.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case l.ACK:case l.BINARY_ACK:return Array.isArray(t)}}}]),n}(f);t.Decoder=y;var m=function(){function e(t){c(this,e),this.packet=t,this.buffers=[],this.reconPack=t}return u(e,[{key:"takeBinaryData",value:function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=p.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}},{key:"finishedReconstruction",value:function(){this.reconPack=null,this.buffers=[]}}]),e}()},c72w:function(e,t,n){var r=n("wC3K"),o=n("pPzx"),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},c7QU:function(e,t,n){var r=n("8SJ9"),o=n("UFed");e.exports=o(r("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})))},c7Qd:function(e,t,n){var r=n("DuXo"),o=n("z9Jh"),i=n("n1QJ");e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},c7fE:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=["loaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"]},c9Qg:function(e,t,n){"use strict";t.a=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1}},cEmw:function(e,t){e.exports=function(e){return this.__data__.has(e)}},cLeC:function(e,t,n){var r=n("Q/gL"),o=Function.prototype,i=o.bind,a=o.call,c=r&&i.bind(a,a);e.exports=r?function(e){return e&&c(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},cPMt:function(e,t){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},cSJ8:function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t?e===t?"/":e.startsWith("".concat(t,"/"))?e.slice(t.length):e:e}n.d(t,"a",(function(){return r}))},caoh:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("ERkP"),o=r.createContext(!1),i=function(e){var t=e.children,n=e.disabled,i=r.useContext(o);return r.createElement(o.Provider,{value:n||i},t)};t.b=o},cb1R:function(e,t,n){var r=n("amiU"),o=n("Grae"),i=n("6Rtw"),a=n("QT01"),c=n("sD1O"),u=n("bvyN"),s=n("wxYD"),l=n("Ndl3"),f=n("3ajY"),p=n("2q8g"),d=n("tQYX"),h=n("Kkar"),v=n("Qd2C"),y=n("LL3N"),m=n("4ScB");e.exports=function(e,t,n,g,b,O,w){var _=y(e,n),x=y(t,n),E=w.get(x);if(E)r(e,n,E);else{var S=O?O(_,x,n+"",e,t,w):void 0,C=void 0===S;if(C){var j=s(x),k=!j&&f(x),P=!j&&!k&&v(x);S=x,j||k||P?s(_)?S=_:l(_)?S=a(_):k?(C=!1,S=o(x,!0)):P?(C=!1,S=i(x,!0)):S=[]:h(x)||u(x)?(S=_,u(_)?S=m(_):d(_)&&!p(_)||(S=c(x))):C=!1}C&&(w.set(x,S),b(S,x,g,O,w),w.delete(x)),r(e,n,S)}}},cbhl:function(e,t,n){var r=n("8M93"),o=n("uqcd"),i=n("ffIY"),a=n("vabA");t.polling=function(e){var t=!1,n=!1,a=!1!==e.jsonp;if("undefined"!=typeof location){var c="https:"===location.protocol,u=location.port;u||(u=c?443:80),t=e.hostname!==location.hostname||u!==e.port,n=e.secure!==c}if(e.xdomain=t,e.xscheme=n,"open"in new r(e)&&!e.forceJSONP)return new o(e);if(!a)throw new Error("JSONP disabled");return new i(e)},t.websocket=a},ch84:function(e,t,n){"use strict";e.exports=Object.assign},cl7Q:function(e,t,n){var r=n("ZvuB");e.exports=function e(t,n){for(var o=0,i=0,a=1;a<=t.length-2;a++){var c=new r(t[0],t[t.length-1]).perpendicularDistance(t[a]);c>o&&(i=a,o=c)}if(o>n)var u=e(t.slice(0,i),n),s=e(t.slice(i,t.length),n),l=u.concat(s);else l=t.length>1?[t[0],t[t.length-1]]:[t[0]];return l}},clBK:function(e,t,n){"use strict";t.a=function(e){return function(t){return e(t)}}},cpcO:function(e,t,n){var r=n("9JhN"),o=n("POgt"),i=n("32/0"),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},ct5l:function(e,t,n){var r=n("ax0f"),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,c=0,u=arguments.length,s=0;c<u;)s<(n=i(arguments[c++]))?(o=o*(r=s/n)*r+1,s=n):o+=n>0?(r=n/s)*r:n;return s===1/0?1/0:s*a(o)}})},ct80:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},ctih:function(e,t,n){n("fmYM"),n("6JDI"),n("nndn"),e.exports=function(){"use strict";function e(n,r,o,i,a,c){if(!(a-i<=o)){var u=i+a>>1;!function e(n,r,o,i,a,c){for(;a>i;){if(a-i>600){var u=a-i+1,s=o-i+1,l=Math.log(u),f=.5*Math.exp(2*l/3),p=.5*Math.sqrt(l*f*(u-f)/u)*(s-u/2<0?-1:1),d=Math.max(i,Math.floor(o-s*f/u+p)),h=Math.min(a,Math.floor(o+(u-s)*f/u+p));e(n,r,o,d,h,c)}var v=r[2*o+c],y=i,m=a;for(t(n,r,i,o),r[2*a+c]>v&&t(n,r,i,a);y<m;){for(t(n,r,y,m),y++,m--;r[2*y+c]<v;)y++;for(;r[2*m+c]>v;)m--}r[2*i+c]===v?t(n,r,i,m):(m++,t(n,r,m,a)),m<=o&&(i=m+1),o<=m&&(a=m-1)}}(n,r,u,i,a,c%2),e(n,r,o,i,u-1,c+1),e(n,r,o,u+1,a,c+1)}}function t(e,t,r,o){n(e,r,o),n(t,2*r,2*o),n(t,2*r+1,2*o+1)}function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,n,r){var o=e-n,i=t-r;return o*o+i*i}var o=function(e){return e[0]},i=function(e){return e[1]},a=function(t,n,r,a,c){void 0===n&&(n=o),void 0===r&&(r=i),void 0===a&&(a=64),void 0===c&&(c=Float64Array),this.nodeSize=a,this.points=t;for(var u=t.length<65536?Uint16Array:Uint32Array,s=this.ids=new u(t.length),l=this.coords=new c(2*t.length),f=0;f<t.length;f++)s[f]=f,l[2*f]=n(t[f]),l[2*f+1]=r(t[f]);e(s,l,a,0,s.length-1,0)};a.prototype.range=function(e,t,n,r){return function(e,t,n,r,o,i,a){for(var c,u,s=[0,e.length-1,0],l=[];s.length;){var f=s.pop(),p=s.pop(),d=s.pop();if(p-d<=a)for(var h=d;h<=p;h++)c=t[2*h],u=t[2*h+1],c>=n&&c<=o&&u>=r&&u<=i&&l.push(e[h]);else{var v=Math.floor((d+p)/2);c=t[2*v],u=t[2*v+1],c>=n&&c<=o&&u>=r&&u<=i&&l.push(e[v]);var y=(f+1)%2;(0===f?n<=c:r<=u)&&(s.push(d),s.push(v-1),s.push(y)),(0===f?o>=c:i>=u)&&(s.push(v+1),s.push(p),s.push(y))}}return l}(this.ids,this.coords,e,t,n,r,this.nodeSize)},a.prototype.within=function(e,t,n){return function(e,t,n,o,i,a){for(var c=[0,e.length-1,0],u=[],s=i*i;c.length;){var l=c.pop(),f=c.pop(),p=c.pop();if(f-p<=a)for(var d=p;d<=f;d++)r(t[2*d],t[2*d+1],n,o)<=s&&u.push(e[d]);else{var h=Math.floor((p+f)/2),v=t[2*h],y=t[2*h+1];r(v,y,n,o)<=s&&u.push(e[h]);var m=(l+1)%2;(0===l?n-i<=v:o-i<=y)&&(c.push(p),c.push(h-1),c.push(m)),(0===l?n+i>=v:o+i>=y)&&(c.push(h+1),c.push(f),c.push(m))}}return u}(this.ids,this.coords,e,t,n,this.nodeSize)};var c,u={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},s=Math.fround||(c=new Float32Array(1),function(e){return c[0]=+e,c[0]}),l=function(e){this.options=m(Object.create(u),e),this.trees=new Array(this.options.maxZoom+1)};function f(e,t,n,r,o){return{x:s(e),y:s(t),zoom:1/0,id:n,parentId:-1,numPoints:r,properties:o}}function p(e,t){var n=e.geometry.coordinates,r=n[0],o=n[1];return{x:s(v(r)),y:s(y(o)),zoom:1/0,index:t,parentId:-1}}function d(e){return{type:"Feature",id:e.id,properties:h(e),geometry:{type:"Point",coordinates:[(r=e.x,360*(r-.5)),(t=e.y,n=(180-360*t)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var t,n,r}function h(e){var t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return m(m({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function v(e){return e/360+.5}function y(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function m(e,t){for(var n in t)e[n]=t[n];return e}function g(e){return e.x}function b(e){return e.y}return l.prototype.load=function(e){var t=this.options,n=t.log,r=t.minZoom,o=t.maxZoom,i=t.nodeSize;n&&console.time("total time");var c="prepare "+e.length+" points";n&&console.time(c),this.points=e;for(var u=[],s=0;s<e.length;s++)e[s].geometry&&u.push(p(e[s],s));this.trees[o+1]=new a(u,g,b,i,Float32Array),n&&console.timeEnd(c);for(var l=o;l>=r;l--){var f=+Date.now();u=this._cluster(u,l),this.trees[l]=new a(u,g,b,i,Float32Array),n&&console.log("z%d: %d clusters in %dms",l,u.length,+Date.now()-f)}return n&&console.timeEnd("total time"),this},l.prototype.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),o=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){var a=this.getClusters([n,r,180,i],t),c=this.getClusters([-180,r,o,i],t);return a.concat(c)}for(var u=this.trees[this._limitZoom(t)],s=[],l=0,f=u.range(v(n),y(i),v(o),y(r));l<f.length;l+=1){var p=f[l],h=u.points[p];s.push(h.numPoints?d(h):this.points[h.index])}return s},l.prototype.getChildren=function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var i=o.points[t];if(!i)throw new Error(r);for(var a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),c=[],u=0,s=o.within(i.x,i.y,a);u<s.length;u+=1){var l=s[u],f=o.points[l];f.parentId===e&&c.push(f.numPoints?d(f):this.points[f.index])}if(0===c.length)throw new Error(r);return c},l.prototype.getLeaves=function(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r},l.prototype.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],o=Math.pow(2,e),i=this.options,a=i.extent,c=i.radius/a,u=(n-c)/o,s=(n+1+c)/o,l={features:[]};return this._addTileFeatures(r.range((t-c)/o,u,(t+1+c)/o,s),r.points,t,n,o,l),0===t&&this._addTileFeatures(r.range(1-c/o,u,1,s),r.points,o,n,o,l),t===o-1&&this._addTileFeatures(r.range(0,u,c/o,s),r.points,-1,n,o,l),l.features.length?l:null},l.prototype.getClusterExpansionZoom=function(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},l.prototype._appendLeaves=function(e,t,n,r,o){for(var i=0,a=this.getChildren(t);i<a.length;i+=1){var c=a[i],u=c.properties;if(u&&u.cluster?o+u.point_count<=r?o+=u.point_count:o=this._appendLeaves(e,u.cluster_id,n,r,o):o<r?o++:e.push(c),e.length===n)break}return o},l.prototype._addTileFeatures=function(e,t,n,r,o,i){for(var a=0,c=e;a<c.length;a+=1){var u=t[c[a]],s=u.numPoints,l=void 0,f=void 0,p=void 0;if(s)l=h(u),f=u.x,p=u.y;else{var d=this.points[u.index];l=d.properties,f=v(d.geometry.coordinates[0]),p=y(d.geometry.coordinates[1])}var m={type:1,geometry:[[Math.round(this.options.extent*(f*o-n)),Math.round(this.options.extent*(p*o-r))]],tags:l},g=void 0;s?g=u.id:this.options.generateId?g=u.index:this.points[u.index].id&&(g=this.points[u.index].id),void 0!==g&&(m.id=g),i.features.push(m)}},l.prototype._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))},l.prototype._cluster=function(e,t){for(var n=[],r=this.options,o=r.radius,i=r.extent,a=r.reduce,c=r.minPoints,u=o/(i*Math.pow(2,t)),s=0;s<e.length;s++){var l=e[s];if(!(l.zoom<=t)){l.zoom=t;for(var p=this.trees[t+1],d=p.within(l.x,l.y,u),h=l.numPoints||1,v=h,y=0,m=d;y<m.length;y+=1){var g=m[y],b=p.points[g];b.zoom>t&&(v+=b.numPoints||1)}if(v>h&&v>=c){for(var O=l.x*h,w=l.y*h,_=a&&h>1?this._map(l,!0):null,x=(s<<5)+(t+1)+this.points.length,E=0,S=d;E<S.length;E+=1){var C=S[E],j=p.points[C];if(!(j.zoom<=t)){j.zoom=t;var k=j.numPoints||1;O+=j.x*k,w+=j.y*k,j.parentId=x,a&&(_||(_=this._map(l,!0)),a(_,this._map(j)))}}l.parentId=x,n.push(f(O/v,w/v,x,v,_))}else if(n.push(l),v>1)for(var P=0,T=d;P<T.length;P+=1){var M=T[P],A=p.points[M];A.zoom<=t||(A.zoom=t,n.push(A))}}}return n},l.prototype._getOriginId=function(e){return e-this.points.length>>5},l.prototype._getOriginZoom=function(e){return(e-this.points.length)%32},l.prototype._map=function(e,t){if(e.numPoints)return t?m({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?m({},r):r},l}()},cww3:function(e,t){var n=TypeError;e.exports=function(e){if(null==e)throw n("Can't call method on "+e);return e}},cx1T:function(e,t,n){"use strict";var r=n("WJeu"),o=r.Just,i=r.Nothing;e.exports=function(e){return e.matchWith({Failure:function(){return i()},Success:function(e){var t=e.value;return o(t)}})}},cxan:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},cyaT:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},d0UJ:function(e,t,n){var r=n("JNqh");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},d8WC:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},d8ec:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,"a",(function(){return r}))},dEMF:function(e,t,n){"use strict";n("6JDI"),n("nndn"),t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=s(e),a=r[0],c=r[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===c&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===c&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,c=n-o;a<c;a+=16383)i.push(l(e,a,a+16383>c?c:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=a.length;c<u;++c)r[c]=a[c],o[a.charCodeAt(c)]=c;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],c=t;c<n;c+=3)o=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(255&e[c+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},dKHC:function(e,t,n){var r=n("UFed"),o=n("PSzb");e.exports=r(o)},dMso:function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},dRg2:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="InfoCircleFilled";t.a=o.forwardRef(c)},dSaG:function(e,t,n){var r=n("POgt");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},ddV6:function(e,t,n){var r=n("qPgQ"),o=n("Ua7V"),i=n("peMk"),a=n("f2kJ");e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},diRs:function(e,t,n){"use strict";var r=n("cxan"),o=n("ERkP"),i=n("H84U"),a=n("3S7+"),c=n("bogI"),u=n("EXcs"),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},l=o.forwardRef((function(e,t){var n=e.prefixCls,l=e.title,f=e.content,p=e._overlay,d=s(e,["prefixCls","title","content","_overlay"]),h=o.useContext(i.b).getPrefixCls,v=h("popover",n),y=h();return o.createElement(a.a,Object(r.a)({},d,{prefixCls:v,ref:t,overlay:p||function(e){if(l||f)return o.createElement(o.Fragment,null,l&&o.createElement("div",{className:"".concat(e,"-title")},Object(c.a)(l)),o.createElement("div",{className:"".concat(e,"-inner-content")},Object(c.a)(f)))}(v),transitionName:Object(u.c)(y,"zoom-big",d.transitionName)}))}));l.defaultProps={placement:"top",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},t.a=l},diSF:function(e,t,n){"use strict";n.d(t,"c",(function(){return ce})),n.d(t,"b",(function(){return ie})),n.d(t,"a",(function(){return q})),n.d(t,"e",(function(){return W}));n("tQbP");var r=n("cxan"),o=n("fGyu"),i=n("zjfJ"),a=n("Czhu"),c=n("zygG"),u=n("HbGN"),s=n("4wDe"),l=n("MSM+"),f=n("5qS4"),p=n("ERkP"),d=n("O94r"),h=n.n(d),v=n("tmJt"),y=n("gh9N"),m=n("uwWy"),g=n("s1jM"),b=n("0Jwk");function O(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function w(e,t){var n=e||{};return{label:n.label||(t?"children":"label"),value:n.value||"value",options:n.options||"options"}}function _(e){var t=Object(a.a)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(f.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var x=n("h/vM"),E=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],S=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),c=e.children,s=e.popupElement,l=e.containerWidth,f=e.animation,d=e.transitionName,v=e.dropdownStyle,y=e.dropdownClassName,m=e.direction,g=void 0===m?"ltr":m,b=e.placement,O=e.dropdownMatchSelectWidth,w=e.dropdownRender,_=e.dropdownAlign,S=e.getPopupContainer,C=e.empty,j=e.getTriggerDOMNode,k=e.onPopupVisibleChange,P=e.onPopupMouseEnter,T=Object(u.a)(e,E),M="".concat(n,"-dropdown"),A=s;w&&(A=w(s));var L=p.useMemo((function(){return function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}}(O)}),[O]),R=f?"".concat(M,"-").concat(f):d,N=p.useRef(null);p.useImperativeHandle(t,(function(){return{getPopupElement:function(){return N.current}}}));var I=Object(a.a)({minWidth:l},v);return"number"==typeof O?I.width=O:O&&(I.width=l),p.createElement(x.a,Object(r.a)({},T,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:b||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:L,prefixCls:M,popupTransitionName:R,popup:p.createElement("div",{ref:N,onMouseEnter:P},A),popupAlign:_,popupVisible:o,getPopupContainer:S,popupClassName:h()(y,Object(i.a)({},"".concat(M,"-empty"),C)),popupStyle:I,getTriggerDOMNode:j,onPopupVisibleChange:k}),c)},C=p.forwardRef(S);C.displayName="SelectTrigger";var j=C,k=n("8EaV"),P=n("0jbY"),T=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,a=e.onClick,c=e.children;return t="function"==typeof r?r(o):r,p.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:p.createElement("span",{className:h()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},c))},M=function(e,t){var n,r,o=e.prefixCls,i=e.id,c=e.inputElement,u=e.disabled,s=e.tabIndex,l=e.autoFocus,d=e.autoComplete,v=e.editable,y=e.activeDescendantId,g=e.value,b=e.maxLength,O=e.onKeyDown,w=e.onMouseDown,_=e.onChange,x=e.onPaste,E=e.onCompositionStart,S=e.onCompositionEnd,C=e.open,j=e.attrs,k=c||p.createElement("input",null),P=k,T=P.ref,M=P.props,A=M.onKeyDown,L=M.onChange,R=M.onMouseDown,N=M.onCompositionStart,I=M.onCompositionEnd,D=M.style;return Object(f.c)(!("maxLength"in k.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),k=p.cloneElement(k,Object(a.a)(Object(a.a)(Object(a.a)({type:"search"},M),{},{id:i,ref:Object(m.a)(t,T),disabled:u,tabIndex:s,autoComplete:d||"off",autoFocus:l,className:h()("".concat(o,"-selection-search-input"),null===(n=k)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":C,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":y},j),{},{value:v?g:"",maxLength:b,readOnly:!v,unselectable:v?null:"on",style:Object(a.a)(Object(a.a)({},D),{},{opacity:v?null:0}),onKeyDown:function(e){O(e),A&&A(e)},onMouseDown:function(e){w(e),R&&R(e)},onChange:function(e){_(e),L&&L(e)},onCompositionStart:function(e){E(e),N&&N(e)},onCompositionEnd:function(e){S(e),I&&I(e)},onPaste:x}))},A=p.forwardRef(M);A.displayName="Input";var L=A;function R(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var N="undefined"!=typeof window&&window.document&&window.document.documentElement;function I(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var D=function(e){e.preventDefault(),e.stopPropagation()},F=function(e){var t,n,r=e.id,o=e.prefixCls,a=e.values,u=e.open,s=e.searchValue,l=e.inputRef,f=e.placeholder,d=e.disabled,v=e.mode,y=e.showSearch,m=e.autoFocus,g=e.autoComplete,b=e.activeDescendantId,O=e.tabIndex,w=e.removeIcon,_=e.maxTagCount,x=e.maxTagTextLength,E=e.maxTagPlaceholder,S=void 0===E?function(e){return"+ ".concat(e.length," ...")}:E,C=e.tagRender,j=e.onToggleOpen,M=e.onRemove,A=e.onInputChange,R=e.onInputPaste,F=e.onInputKeyDown,z=e.onInputMouseDown,B=e.onInputCompositionStart,U=e.onInputCompositionEnd,V=p.useRef(null),H=Object(p.useState)(0),G=Object(c.a)(H,2),W=G[0],Y=G[1],K=Object(p.useState)(!1),X=Object(c.a)(K,2),q=X[0],Z=X[1],J="".concat(o,"-selection"),Q=u||"tags"===v?s:"",$="tags"===v||y&&(u||q);function ee(e,t,n,r,o){return p.createElement("span",{className:h()("".concat(J,"-item"),Object(i.a)({},"".concat(J,"-item-disabled"),n)),title:"string"==typeof e||"number"==typeof e?e.toString():void 0},p.createElement("span",{className:"".concat(J,"-item-content")},t),r&&p.createElement(T,{className:"".concat(J,"-item-remove"),onMouseDown:D,onClick:o,customizeIcon:w},"×"))}t=function(){Y(V.current.scrollWidth)},n=[Q],N?p.useLayoutEffect(t,n):p.useEffect(t,n);var te=p.createElement("div",{className:"".concat(J,"-search"),style:{width:W},onFocus:function(){Z(!0)},onBlur:function(){Z(!1)}},p.createElement(L,{ref:l,open:u,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:m,autoComplete:g,editable:$,activeDescendantId:b,value:Q,onKeyDown:F,onMouseDown:z,onChange:A,onPaste:R,onCompositionStart:B,onCompositionEnd:U,tabIndex:O,attrs:Object(k.a)(e,!0)}),p.createElement("span",{ref:V,className:"".concat(J,"-search-mirror"),"aria-hidden":!0},Q," ")),ne=p.createElement(P.a,{prefixCls:"".concat(J,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!d&&!t,i=n;if("number"==typeof x&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>x&&(i="".concat(a.slice(0,x),"..."))}var c=function(t){t&&t.stopPropagation(),M(e)};return"function"==typeof C?function(e,t,n,r,o){return p.createElement("span",{onMouseDown:function(e){D(e),j(!u)}},C({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,i,t,o,c):ee(n,i,t,o,c)},renderRest:function(e){var t="function"==typeof S?S(e):S;return ee(t,t,!1)},suffix:te,itemKey:I,maxCount:_});return p.createElement(p.Fragment,null,ne,!a.length&&!Q&&p.createElement("span",{className:"".concat(J,"-placeholder")},f))},z=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,u=e.autoComplete,s=e.activeDescendantId,l=e.mode,f=e.open,d=e.values,h=e.placeholder,v=e.tabIndex,y=e.showSearch,m=e.searchValue,g=e.activeValue,b=e.maxLength,O=e.onInputKeyDown,w=e.onInputMouseDown,_=e.onInputChange,x=e.onInputPaste,E=e.onInputCompositionStart,S=e.onInputCompositionEnd,C=p.useState(!1),j=Object(c.a)(C,2),P=j[0],T=j[1],M="combobox"===l,A=M||y,R=d[0],N=m||"";M&&g&&!P&&(N=g),p.useEffect((function(){M&&T(!1)}),[M,g]);var I=!("combobox"!==l&&!f&&!y)&&!!N,D=!R||"string"!=typeof R.label&&"number"!=typeof R.label?void 0:R.label.toString();return p.createElement(p.Fragment,null,p.createElement("span",{className:"".concat(n,"-selection-search")},p.createElement(L,{ref:o,prefixCls:n,id:r,open:f,inputElement:t,disabled:i,autoFocus:a,autoComplete:u,editable:A,activeDescendantId:s,value:N,onKeyDown:O,onMouseDown:w,onChange:function(e){T(!0),_(e)},onPaste:x,onCompositionStart:E,onCompositionEnd:S,tabIndex:v,attrs:Object(k.a)(e,!0),maxLength:M?b:void 0})),!M&&R&&!I&&p.createElement("span",{className:"".concat(n,"-selection-item"),title:D},R.label),function(){if(R)return null;var e=I?{visibility:"hidden"}:void 0;return p.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},h)}())};function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=p.useRef(null),n=p.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return p.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var U=function(e,t){var n=Object(p.useRef)(null),o=Object(p.useRef)(!1),i=e.prefixCls,a=e.open,u=e.mode,s=e.showSearch,l=e.tokenWithEnter,f=e.onSearch,d=e.onSearchSubmit,h=e.onToggleOpen,y=e.onInputKeyDown,m=e.domRef;p.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=B(0),b=Object(c.a)(g,2),O=b[0],w=b[1],_=Object(p.useRef)(null),x=function(e){!1!==f(e,!0,o.current)&&h(!0)},E={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==v.a.UP&&n!==v.a.DOWN||e.preventDefault(),y&&y(e),n!==v.a.ENTER||"tags"!==u||o.current||a||null==d||d(e.target.value),t=n,[v.a.ESC,v.a.SHIFT,v.a.BACKSPACE,v.a.TAB,v.a.WIN_KEY,v.a.ALT,v.a.META,v.a.WIN_KEY_RIGHT,v.a.CTRL,v.a.SEMICOLON,v.a.EQUALS,v.a.CAPS_LOCK,v.a.CONTEXT_MENU,v.a.F1,v.a.F2,v.a.F3,v.a.F4,v.a.F5,v.a.F6,v.a.F7,v.a.F8,v.a.F9,v.a.F10,v.a.F11,v.a.F12].includes(t)||h(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(l&&_.current&&/[\r\n]/.test(_.current)){var n=_.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,_.current)}_.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");_.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==u&&x(e.target.value)}},S="multiple"===u||"tags"===u?p.createElement(F,Object(r.a)({},e,E)):p.createElement(z,Object(r.a)({},e,E));return p.createElement("div",{ref:m,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=O();e.target===n.current||t||e.preventDefault(),("combobox"===u||s&&t)&&a||(a&&f("",!0,!1),h())}},S)},V=p.forwardRef(U);V.displayName="Selector";var H=V;var G=p.createContext(null);function W(){return p.useContext(G)}var Y=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],K=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function X(e){return"tags"===e||"multiple"===e}var q=p.forwardRef((function(e,t){var n,f,d=e.id,O=e.prefixCls,w=e.className,_=e.showSearch,x=e.tagRender,E=e.direction,S=e.omitDomProps,C=e.displayValues,k=e.onDisplayValuesChange,P=e.emptyOptions,M=e.notFoundContent,A=void 0===M?"Not Found":M,L=e.onClear,R=e.mode,N=e.disabled,I=e.loading,D=e.getInputElement,F=e.getRawInputElement,z=e.open,U=e.defaultOpen,V=e.onDropdownVisibleChange,W=e.activeValue,q=e.onActiveValueChange,Z=e.activeDescendantId,J=e.searchValue,Q=e.onSearch,$=e.onSearchSplit,ee=e.tokenSeparators,te=e.allowClear,ne=e.showArrow,re=e.inputIcon,oe=e.clearIcon,ie=e.OptionList,ae=e.animation,ce=e.transitionName,ue=e.dropdownStyle,se=e.dropdownClassName,le=e.dropdownMatchSelectWidth,fe=e.dropdownRender,pe=e.dropdownAlign,de=e.placement,he=e.getPopupContainer,ve=e.showAction,ye=void 0===ve?[]:ve,me=e.onFocus,ge=e.onBlur,be=e.onKeyUp,Oe=e.onKeyDown,we=e.onMouseDown,_e=Object(u.a)(e,Y),xe=X(R),Ee=(void 0!==_?_:xe)||"combobox"===R,Se=Object(a.a)({},_e);K.forEach((function(e){delete Se[e]})),null==S||S.forEach((function(e){delete Se[e]}));var Ce=p.useState(!1),je=Object(c.a)(Ce,2),ke=je[0],Pe=je[1];p.useEffect((function(){Pe(Object(y.a)())}),[]);var Te=p.useRef(null),Me=p.useRef(null),Ae=p.useRef(null),Le=p.useRef(null),Re=p.useRef(null),Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=p.useState(!1),n=Object(c.a)(t,2),r=n[0],o=n[1],i=p.useRef(null),a=function(){window.clearTimeout(i.current)};p.useEffect((function(){return a}),[]);var u=function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)};return[r,u,a]}(),Ie=Object(c.a)(Ne,3),De=Ie[0],Fe=Ie[1],ze=Ie[2];p.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Le.current)||void 0===e?void 0:e.focus,blur:null===(t=Le.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Re.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Be=p.useMemo((function(){var e;if("combobox"!==R)return J;var t=null===(e=C[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[J,R,C]),Ue="combobox"===R&&"function"==typeof D&&D()||null,Ve="function"==typeof F&&F(),He=Object(m.d)(Me,null==Ve||null===(n=Ve.props)||void 0===n?void 0:n.ref),Ge=Object(l.a)(void 0,{defaultValue:U,value:z}),We=Object(c.a)(Ge,2),Ye=We[0],Ke=We[1],Xe=Ye,qe=!A&&P;(N||qe&&Xe&&"combobox"===R)&&(Xe=!1);var Ze=!qe&&Xe,Je=p.useCallback((function(e){var t=void 0!==e?e:!Xe;Xe===t||N||(Ke(t),null==V||V(t))}),[N,Xe,Ke,V]),Qe=p.useMemo((function(){return(ee||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ee]),$e=function(e,t,n){var r=!0,i=e;null==q||q(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var i=Object(b.a)(r),a=i[0],c=i.slice(1);if(!a)return[t];var u=t.split(a);return n=n||u.length>1,u.reduce((function(t,n){return[].concat(Object(o.a)(t),Object(o.a)(e(n,c)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,ee);return"combobox"!==R&&a&&(i="",null==$||$(a),Je(!1),r=!1),Q&&Be!==i&&Q(i,{source:t?"typing":"effect"}),r};p.useEffect((function(){Xe||xe||"combobox"===R||$e("",!1,!1)}),[Xe]),p.useEffect((function(){Ye&&N&&Ke(!1),N&&Fe(!1)}),[N]);var et=B(),tt=Object(c.a)(et,2),nt=tt[0],rt=tt[1],ot=p.useRef(!1),it=[];p.useEffect((function(){return function(){it.forEach((function(e){return clearTimeout(e)})),it.splice(0,it.length)}}),[]);var at,ct=p.useState(null),ut=Object(c.a)(ct,2),st=ut[0],lt=ut[1],ft=p.useState({}),pt=Object(c.a)(ft,2)[1];Object(g.a)((function(){if(Ze){var e,t=Math.ceil(null===(e=Te.current)||void 0===e?void 0:e.offsetWidth);st===t||Number.isNaN(t)||lt(t)}}),[Ze]),Ve&&(at=function(e){Je(e)}),function(e,t,n,r){var o=p.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},p.useEffect((function(){function t(t){var n;if(!(null===(n=o.current)||void 0===n?void 0:n.customizedTrigger)){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Te.current,null===(e=Ae.current)||void 0===e?void 0:e.getPopupElement()]}),Ze,Je,!!Ve);var dt,ht,vt=p.useMemo((function(){return Object(a.a)(Object(a.a)({},e),{},{notFoundContent:A,open:Xe,triggerOpen:Ze,id:d,showSearch:Ee,multiple:xe,toggleOpen:Je})}),[e,A,Ze,Xe,d,Ee,xe,Je]),yt=void 0!==ne?ne:I||!xe&&"combobox"!==R;yt&&(dt=p.createElement(T,{className:h()("".concat(O,"-arrow"),Object(i.a)({},"".concat(O,"-arrow-loading"),I)),customizeIcon:re,customizeIconProps:{loading:I,searchValue:Be,open:Xe,focused:De,showSearch:Ee}}));!N&&te&&(C.length||Be)&&(ht=p.createElement(T,{className:"".concat(O,"-clear"),onMouseDown:function(){null==L||L(),k([],{type:"clear",values:C}),$e("",!1,!1)},customizeIcon:oe},"×"));var mt,gt=p.createElement(ie,{ref:Re}),bt=h()(O,w,(f={},Object(i.a)(f,"".concat(O,"-focused"),De),Object(i.a)(f,"".concat(O,"-multiple"),xe),Object(i.a)(f,"".concat(O,"-single"),!xe),Object(i.a)(f,"".concat(O,"-allow-clear"),te),Object(i.a)(f,"".concat(O,"-show-arrow"),yt),Object(i.a)(f,"".concat(O,"-disabled"),N),Object(i.a)(f,"".concat(O,"-loading"),I),Object(i.a)(f,"".concat(O,"-open"),Xe),Object(i.a)(f,"".concat(O,"-customize-input"),Ue),Object(i.a)(f,"".concat(O,"-show-search"),Ee),f)),Ot=p.createElement(j,{ref:Ae,disabled:N,prefixCls:O,visible:Ze,popupElement:gt,containerWidth:st,animation:ae,transitionName:ce,dropdownStyle:ue,dropdownClassName:se,direction:E,dropdownMatchSelectWidth:le,dropdownRender:fe,dropdownAlign:pe,placement:de,getPopupContainer:he,empty:P,getTriggerDOMNode:function(){return Me.current},onPopupVisibleChange:at,onPopupMouseEnter:function(){pt({})}},Ve?p.cloneElement(Ve,{ref:He}):p.createElement(H,Object(r.a)({},e,{domRef:Me,prefixCls:O,inputElement:Ue,ref:Le,id:d,showSearch:Ee,mode:R,activeDescendantId:Z,tagRender:x,values:C,open:Xe,onToggleOpen:Je,activeValue:W,searchValue:Be,onSearch:$e,onSearchSubmit:function(e){e&&e.trim()&&Q(e,{source:"submit"})},onRemove:function(e){var t=C.filter((function(t){return t!==e}));k(t,{type:"remove",values:[e]})},tokenWithEnter:Qe})));return mt=Ve?Ot:p.createElement("div",Object(r.a)({className:bt},Se,{ref:Te,onMouseDown:function(e){var t,n=e.target,r=null===(t=Ae.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=it.indexOf(o);(-1!==t&&it.splice(t,1),ze(),ke||r.contains(document.activeElement))||(null===(e=Le.current)||void 0===e||e.focus())}));it.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];null==we||we.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=nt(),r=e.which;if(r===v.a.ENTER&&("combobox"!==R&&e.preventDefault(),Xe||Je(!0)),rt(!!Be),r===v.a.BACKSPACE&&!n&&xe&&!Be&&C.length){for(var i=Object(o.a)(C),a=null,c=i.length-1;c>=0;c-=1){var u=i[c];if(!u.disabled){i.splice(c,1),a=u;break}}a&&k(i,{type:"remove",values:[a]})}for(var s=arguments.length,l=new Array(s>1?s-1:0),f=1;f<s;f++)l[f-1]=arguments[f];Xe&&Re.current&&(t=Re.current).onKeyDown.apply(t,[e].concat(l));null==Oe||Oe.apply(void 0,[e].concat(l))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Xe&&Re.current&&(o=Re.current).onKeyUp.apply(o,[e].concat(n));null==be||be.apply(void 0,[e].concat(n))},onFocus:function(){Fe(!0),N||(me&&!ot.current&&me.apply(void 0,arguments),ye.includes("focus")&&Je(!0)),ot.current=!0},onBlur:function(){Fe(!1,(function(){ot.current=!1,Je(!1)})),N||(Be&&("tags"===R?Q(Be,{source:"submit"}):"multiple"===R&&Q("",{source:"blur"})),ge&&ge.apply(void 0,arguments))}}),De&&!Xe&&p.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(C.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(Object(s.a)(t))?t:n})).join(", "))),Ot,dt,ht),p.createElement(G.Provider,{value:vt},mt)}));function Z(e,t){return R(e).join("").toUpperCase().includes(t)}var J=n("qHzf"),Q=n("6Qj0"),$=["children","value"],ee=["children"];function te(e){var t=e.key,n=e.props,r=n.children,o=n.value,i=Object(u.a)(n,$);return Object(a.a)({key:t,value:void 0!==o?o:t,children:r},i)}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(Q.a)(e).map((function(e,n){if(!p.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,c=i.children,s=Object(u.a)(i,ee);return t||!r?te(e):Object(a.a)(Object(a.a)({key:"__RC_SELECT_GRP__".concat(null===o?n:o,"__"),label:o},s),{},{options:ne(c)})})).filter((function(e){return e}))}function re(e){var t=p.useRef();return t.current=e,p.useCallback((function(){return t.current.apply(t,arguments)}),[])}var oe=function(){return null};oe.isSelectOptGroup=!0;var ie=oe,ae=function(){return null};ae.isSelectOption=!0;var ce=ae,ue=n("WSTu"),se=n("p2vu"),le=n("hh2X");var fe=p.createContext(null),pe=["disabled","title","children","style","className"];function de(e){return"string"==typeof e||"number"==typeof e}var he=function(e,t){var n=W(),a=n.prefixCls,s=n.id,l=n.open,f=n.multiple,d=n.mode,y=n.searchValue,m=n.toggleOpen,g=n.notFoundContent,b=n.onPopupScroll,O=p.useContext(fe),w=O.flattenOptions,_=O.onActiveValue,x=O.defaultActiveFirstOption,E=O.onSelect,S=O.menuItemSelectedIcon,C=O.rawValues,j=O.fieldNames,P=O.virtual,M=O.listHeight,A=O.listItemHeight,L="".concat(a,"-item"),R=Object(se.a)((function(){return w}),[l,w],(function(e,t){return t[0]&&e[1]!==t[1]})),N=p.useRef(null),I=function(e){e.preventDefault()},D=function(e){N.current&&N.current.scrollTo("number"==typeof e?{index:e}:e)},F=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=R.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=R[o],a=i.group,c=i.data;if(!a&&!c.disabled)return o}return-1},z=p.useState((function(){return F(0)})),B=Object(c.a)(z,2),U=B[0],V=B[1],H=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];V(e);var n={source:t?"keyboard":"mouse"},r=R[e];r?_(r.value,e,n):_(null,-1,n)};Object(p.useEffect)((function(){H(!1!==x?F(0):-1)}),[R.length,y]);var G=p.useCallback((function(e){return C.has(e)&&"combobox"!==d}),[d,Object(o.a)(C).toString()]);Object(p.useEffect)((function(){var e,t=setTimeout((function(){if(!f&&l&&1===C.size){var e=Array.from(C)[0],t=R.findIndex((function(t){return t.data.value===e}));-1!==t&&(H(t),D(t))}}));l&&(null===(e=N.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[l,y]);var Y=function(e){void 0!==e&&E(e,{selected:!C.has(e)}),f||m(!1)};if(p.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case v.a.N:case v.a.P:case v.a.UP:case v.a.DOWN:var r=0;if(t===v.a.UP?r=-1:t===v.a.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===v.a.N?r=1:t===v.a.P&&(r=-1)),0!==r){var o=F(U+r,r);D(o),H(o,!0)}break;case v.a.ENTER:var i=R[U];i&&!i.data.disabled?Y(i.value):Y(void 0),l&&e.preventDefault();break;case v.a.ESC:m(!1),l&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){D(e)}}})),0===R.length)return p.createElement("div",{role:"listbox",id:"".concat(s,"_list"),className:"".concat(L,"-empty"),onMouseDown:I},g);var K=Object.keys(j).map((function(e){return j[e]})),X=function(e){return e.label},q=function(e){var t=R[e];if(!t)return null;var n=t.data||{},o=n.value,i=t.group,a=Object(k.a)(n,!0),c=X(t);return t?p.createElement("div",Object(r.a)({"aria-label":"string"!=typeof c||i?null:c},a,{key:e,role:i?"presentation":"option",id:"".concat(s,"_list_").concat(e),"aria-selected":G(o)}),o):null};return p.createElement(p.Fragment,null,p.createElement("div",{role:"listbox",id:"".concat(s,"_list"),style:{height:0,width:0,overflow:"hidden"}},q(U-1),q(U),q(U+1)),p.createElement(le.a,{itemKey:"key",ref:N,data:R,height:M,itemHeight:A,fullHeight:!1,onMouseDown:I,onScroll:b,virtual:P},(function(e,t){var n,o=e.group,a=e.groupOption,c=e.data,s=e.label,l=e.value,f=c.key;if(o){var d,v=null!==(d=c.title)&&void 0!==d?d:de(s)?s.toString():void 0;return p.createElement("div",{className:h()(L,"".concat(L,"-group")),title:v},void 0!==s?s:f)}var y=c.disabled,m=c.title,g=(c.children,c.style),b=c.className,O=Object(u.a)(c,pe),w=Object(ue.a)(O,K),_=G(l),x="".concat(L,"-option"),E=h()(L,x,b,(n={},Object(i.a)(n,"".concat(x,"-grouped"),a),Object(i.a)(n,"".concat(x,"-active"),U===t&&!y),Object(i.a)(n,"".concat(x,"-disabled"),y),Object(i.a)(n,"".concat(x,"-selected"),_),n)),C=X(e),j=!S||"function"==typeof S||_,P="number"==typeof C?C:C||l,M=de(P)?P.toString():void 0;return void 0!==m&&(M=m),p.createElement("div",Object(r.a)({},Object(k.a)(w),{"aria-selected":_,className:E,title:M,onMouseMove:function(){U===t||y||H(t)},onClick:function(){y||Y(l)},style:g}),p.createElement("div",{className:"".concat(x,"-content")},P),p.isValidElement(S)||_,j&&p.createElement(T,{className:"".concat(L,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:_}},_?"✓":null))})))},ve=p.forwardRef(he);ve.displayName="OptionList";var ye=ve;var me=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],ge=["inputValue"];var be=p.forwardRef((function(e,t){var n=e.id,f=e.mode,d=e.prefixCls,h=void 0===d?"rc-select":d,v=e.backfill,y=e.fieldNames,m=e.inputValue,g=e.searchValue,b=e.onSearch,x=e.autoClearSearchValue,E=void 0===x||x,S=e.onSelect,C=e.onDeselect,j=e.dropdownMatchSelectWidth,k=void 0===j||j,P=e.filterOption,T=e.filterSort,M=e.optionFilterProp,A=e.optionLabelProp,L=e.options,N=e.children,I=e.defaultActiveFirstOption,D=e.menuItemSelectedIcon,F=e.virtual,z=e.listHeight,B=void 0===z?200:z,U=e.listItemHeight,V=void 0===U?20:U,H=e.value,G=e.defaultValue,W=e.labelInValue,Y=e.onChange,K=Object(u.a)(e,me),Q=Object(J.a)(n),$=X(f),ee=!(L||!N),te=p.useMemo((function(){return(void 0!==P||"combobox"!==f)&&P}),[P,f]),oe=p.useMemo((function(){return w(y,ee)}),[JSON.stringify(y),ee]),ie=Object(l.a)("",{value:void 0!==g?g:m,postState:function(e){return e||""}}),ae=Object(c.a)(ie,2),ce=ae[0],ue=ae[1],se=function(e,t,n,r,o){return p.useMemo((function(){var i=e;!e&&(i=ne(t));var a=new Map,c=new Map,u=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var l=t[s];!l[n.options]||i?(a.set(l[n.value],l),u(c,l,n.label),u(c,l,r),u(c,l,o)):e(l[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:c}}),[e,t,n,r,o])}(L,N,oe,M,A),le=se.valueOptions,pe=se.labelOptions,de=se.options,he=p.useCallback((function(e){return R(e).map((function(e){var t,n,r,o,i;(function(e){return!e||"object"!==Object(s.a)(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(i=e.value)&&void 0!==i?i:r);var a,c=le.get(t);c&&(void 0===n&&(n=null==c?void 0:c[A||oe.label]),void 0===r&&(r=null!==(a=null==c?void 0:c.key)&&void 0!==a?a:t),o=null==c?void 0:c.disabled);return{label:n,value:t,key:r,disabled:o}}))}),[oe,A,le]),ve=Object(l.a)(G,{value:H}),be=Object(c.a)(ve,2),Oe=be[0],we=be[1],_e=function(e,t){var n=p.useRef({values:new Map,options:new Map});return[p.useMemo((function(){var r=n.current,o=r.values,i=r.options,c=e.map((function(e){var t;return void 0===e.label?Object(a.a)(Object(a.a)({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),u=new Map,s=new Map;return c.forEach((function(e){u.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=u,n.current.options=s,c}),[e,t]),p.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(p.useMemo((function(){var e,t=he(Oe);return"combobox"!==f||(null===(e=t[0])||void 0===e?void 0:e.value)?t:[]}),[Oe,he,f]),le),xe=Object(c.a)(_e,2),Ee=xe[0],Se=xe[1],Ce=p.useMemo((function(){if(!f&&1===Ee.length){var e=Ee[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Ee.map((function(e){var t;return Object(a.a)(Object(a.a)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[f,Ee]),je=p.useMemo((function(){return new Set(Ee.map((function(e){return e.value})))}),[Ee]);p.useEffect((function(){if("combobox"===f){var e,t=null===(e=Ee[0])||void 0===e?void 0:e.value;null!=t&&ue(String(t))}}),[Ee]);var ke=re((function(e,t){var n,r=null!=t?t:e;return n={},Object(i.a)(n,oe.value,e),Object(i.a)(n,oe.label,r),n})),Pe=function(e,t,n,r,o){return p.useMemo((function(){if(!n||!1===r)return e;var c=t.options,u=t.label,s=t.value,l=[],f="function"==typeof r,p=n.toUpperCase(),d=f?r:function(e,t){return o?Z(t[o],p):t[c]?Z(t["children"!==u?u:"label"],p):Z(t[s],p)},h=f?function(e){return _(e)}:function(e){return e};return e.forEach((function(e){if(e[c])if(d(n,h(e)))l.push(e);else{var t=e[c].filter((function(e){return d(n,h(e))}));t.length&&l.push(Object(a.a)(Object(a.a)({},e),{},Object(i.a)({},c,t)))}else d(n,h(e))&&l.push(e)})),l}),[e,r,o,n,t])}(p.useMemo((function(){if("tags"!==f)return de;var e=Object(o.a)(de);return Object(o.a)(Ee).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return le.has(e)})(n)||e.push(ke(n,t.label))})),e}),[ke,de,le,Ee,f]),oe,ce,te,M),Te=p.useMemo((function(){return"tags"!==f||!ce||Pe.some((function(e){return e[M||"value"]===ce}))?Pe:[ke(ce)].concat(Object(o.a)(Pe))}),[ke,M,f,Pe,ce]),Me=p.useMemo((function(){return T?Object(o.a)(Te).sort((function(e,t){return T(e,t)})):Te}),[Te,T]),Ae=p.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=w(n,!1),a=i.label,c=i.value,u=i.options;function s(e,t){e.forEach((function(e){var n=e[a];if(t||!(u in e)){var i=e[c];o.push({key:O(e,o.length),groupOption:t,data:e,label:n,value:i})}else{var l=n;void 0===l&&r&&(l=e.label),o.push({key:O(e,o.length),group:!0,data:e,label:l}),s(e[u],!0)}}))}return s(e,!1),o}(Me,{fieldNames:oe,childrenAsData:ee})}),[Me,oe,ee]),Le=function(e){var t=he(e);if(we(t),Y&&(t.length!==Ee.length||t.some((function(e,t){var n;return(null===(n=Ee[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=W?t:t.map((function(e){return e.value})),r=t.map((function(e){return _(Se(e.value))}));Y($?n:n[0],$?r:r[0])}},Re=p.useState(null),Ne=Object(c.a)(Re,2),Ie=Ne[0],De=Ne[1],Fe=p.useState(0),ze=Object(c.a)(Fe,2),Be=ze[0],Ue=ze[1],Ve=void 0!==I?I:"combobox"!==f,He=p.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=void 0===r?"keyboard":r;Ue(t),v&&"combobox"===f&&null!==e&&"keyboard"===o&&De(String(e))}),[v,f]),Ge=function(e,t){var n=function(){var t,n=Se(e);return[W?{label:null==n?void 0:n[oe.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,_(n)]};if(t&&S){var r=n(),o=Object(c.a)(r,2),i=o[0],a=o[1];S(i,a)}else if(!t&&C){var u=n(),s=Object(c.a)(u,2),l=s[0],f=s[1];C(l,f)}},We=re((function(e,t){var n,r=!$||t.selected;n=r?$?[].concat(Object(o.a)(Ee),[e]):[e]:Ee.filter((function(t){return t.value!==e})),Le(n),Ge(e,r),"combobox"===f?De(""):X&&!E||(ue(""),De(""))})),Ye=p.useMemo((function(){var e=!1!==F&&!1!==k;return Object(a.a)(Object(a.a)({},se),{},{flattenOptions:Ae,onActiveValue:He,defaultActiveFirstOption:Ve,onSelect:We,menuItemSelectedIcon:D,rawValues:je,fieldNames:oe,virtual:e,listHeight:B,listItemHeight:V,childrenAsData:ee})}),[se,Ae,He,Ve,We,D,je,oe,F,k,B,V,ee]);return p.createElement(fe.Provider,{value:Ye},p.createElement(q,Object(r.a)({},K,{id:Q,prefixCls:h,ref:t,omitDomProps:ge,mode:f,displayValues:Ce,onDisplayValuesChange:function(e,t){Le(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((function(e){Ge(e.value,!1)}))},searchValue:ce,onSearch:function(e,t){if(ue(e),De(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===f&&Le(e),null==b||b(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(Object(o.a)(je),[n])));Le(r),Ge(n,!0),ue("")}}},onSearchSplit:function(e){var t=e;"tags"!==f&&(t=e.map((function(e){var t=pe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Object(o.a)(je),Object(o.a)(t))));Le(n),n.forEach((function(e){Ge(e,!0)}))},dropdownMatchSelectWidth:k,OptionList:ye,emptyOptions:!Ae.length,activeValue:Ie,activeDescendantId:"".concat(Q,"_list_").concat(Be)})))}));be.Option=ce,be.OptGroup=ie;var Oe=be;t.d=Oe},dqzZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingOnSyntax=void 0;var r=n("LoNN"),o=function(){function e(e){this._binding=e}return e.prototype.onActivation=function(e){return this._binding.onActivation=e,new r.BindingWhenSyntax(this._binding)},e}();t.BindingOnSyntax=o},dt97:function(e,t,n){},dw5g:function(e,t,n){var r=n("JcJ6");e.exports=function(e){return null==e?"":r(e)}},dyMZ:function(e,t,n){"use strict";var r=n("/sJt"),o=n("l0By"),i=n("JBtm");e.exports=function(e){e=(e||"").trim().replace(/\r?\n|\r/gm,"");var t={protocols:r(e),protocol:null,port:null,resource:"",user:"",pathname:"",hash:"",search:"",href:e,query:Object.create(null)},n=e.indexOf("://"),a=null,c=null;e.startsWith(".")&&(e.startsWith("./")&&(e=e.substring(2)),t.pathname=e,t.protocol="file");var u=e.charAt(1);if(t.protocol||(t.protocol=t.protocols[0],t.protocol||(o(e)?t.protocol="ssh":"/"===u||"~"===u?(e=e.substring(2),t.protocol="file"):t.protocol="file")),-1!==n&&(e=e.substring(n+3)),c=e.split(/\/|\\/),"file"!==t.protocol?t.resource=c.shift():t.resource="",2===(a=t.resource.split("@")).length&&(t.user=a[0],t.resource=a[1]),2===(a=t.resource.split(":")).length){t.resource=a[0];var s=a[1];s?(t.port=Number(s),(isNaN(t.port)||null===s.match(/^\d+$/))&&(t.port=null,c.unshift(s))):t.port=null}return c=c.filter(Boolean),"file"===t.protocol?t.pathname=t.href:t.pathname=t.pathname||("file"!==t.protocol||"/"===t.href[0]?"/":"")+c.join("/"),2===(a=t.pathname.split("#")).length&&(t.pathname=a[0],t.hash=a[1]),2===(a=t.pathname.split("?")).length&&(t.pathname=a[0],t.search=a[1]),t.query=i.parse(t.search),t.href=t.href.replace(/\/$/,""),t.pathname=t.pathname.replace(/\/$/,""),t}},"e+hn":function(e,t,n){},e0s7:function(e,t,n){},e1KB:function(e,t,n){var r=n("3fuC");e.exports={WebSocket:r.WebSocket||r.MozWebSocket,usingBrowserWebSocket:!0,defaultBinaryType:"arraybuffer"}},e63W:function(e,t,n){var r=n("JNqh");e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},e93E:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("fRV1"))},eEqd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("o83V"),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){if("undefined"!=typeof window){var n="/"+(0,i.default)(e,t)+"/";window.location.replace(n)}}},eN33:function(e,t){e.exports=function(e){return function(){return e}}},eP0R:function(e,t,n){"use strict";e.exports=function(e,t){r={},i=[],o=0,a=0,c=1,function e(t){var n,r;if("FeatureCollection"===t.type)for(n=0;n<t.features.length;n++)e(t.features[n]);else if("Feature"===t.type)for(r in null!==t.geometry&&e(t.geometry),t.properties)p(r);else if("Point"===t.type)f(t.coordinates);else if("MultiPoint"===t.type)l(t.coordinates);else if("GeometryCollection"===t.type)for(n=0;n<t.geometries.length;n++)e(t.geometries[n]);else if("LineString"===t.type)l(t.coordinates);else if("Polygon"===t.type||"MultiLineString"===t.type)s(t.coordinates);else if("MultiPolygon"===t.type)for(n=0;n<t.coordinates.length;n++)s(t.coordinates[n]);for(r in t)w(r,t.type)||p(r)}(e),c=Math.min(c,1e6);for(var n=Math.ceil(Math.log(c)/Math.LN10),u=0;u<i.length;u++)t.writeStringField(1,i[u]);2!==a&&t.writeVarintField(2,a);6!==n&&t.writeVarintField(3,n);"FeatureCollection"===e.type?t.writeMessage(4,d,e):"Feature"===e.type?t.writeMessage(5,h,e):t.writeMessage(6,v,e);return r=null,t.finish()};var r,o,i,a,c,u={Point:0,MultiPoint:1,LineString:2,MultiLineString:3,Polygon:4,MultiPolygon:5,GeometryCollection:6};function s(e){for(var t=0;t<e.length;t++)l(e[t])}function l(e){for(var t=0;t<e.length;t++)f(e[t])}function f(e){a=Math.max(a,e.length);for(var t=0;t<e.length;t++)for(;Math.round(e[t]*c)/c!==e[t]&&c<1e6;)c*=10}function p(e){void 0===r[e]&&(i.push(e),r[e]=o++)}function d(e,t){for(var n=0;n<e.features.length;n++)t.writeMessage(1,h,e.features[n]);y(e,t,!0)}function h(e,t){null!==e.geometry&&t.writeMessage(1,v,e.geometry),void 0!==e.id&&("number"==typeof e.id&&e.id%1==0?t.writeSVarintField(12,e.id):t.writeStringField(11,e.id)),e.properties&&y(e.properties,t),y(e,t,!0)}function v(e,t){t.writeVarintField(1,u[e.type]);var n=e.coordinates;if("Point"===e.type)!function(e,t){for(var n=[],r=0;r<a;r++)n.push(Math.round(e[r]*c));t.writePackedSVarint(3,n)}(n,t);else if("MultiPoint"===e.type)g(n,t);else if("LineString"===e.type)g(n,t);else if("MultiLineString"===e.type)b(n,t);else if("Polygon"===e.type)b(n,t,!0);else if("MultiPolygon"===e.type)!function(e,t){var n,r,o=e.length;if(1!==o||1!==e[0].length){var i=[o];for(n=0;n<o;n++)for(i.push(e[n].length),r=0;r<e[n].length;r++)i.push(e[n][r].length-1);t.writePackedVarint(2,i)}var a=[];for(n=0;n<o;n++)for(r=0;r<e[n].length;r++)O(a,e[n][r],!0);t.writePackedSVarint(3,a)}(n,t);else if("GeometryCollection"===e.type)for(var r=0;r<e.geometries.length;r++)t.writeMessage(4,v,e.geometries[r]);y(e,t,!0)}function y(e,t,n){var o=[],i=0;for(var a in e)n&&w(a,e.type)||(t.writeMessage(13,m,e[a]),o.push(r[a]),o.push(i++));t.writePackedVarint(n?15:14,o)}function m(e,t){if(null!==e){var n=typeof e;"string"===n?t.writeStringField(1,e):"boolean"===n?t.writeBooleanField(5,e):"object"===n?t.writeStringField(6,JSON.stringify(e)):"number"===n&&(e%1!=0?t.writeDoubleField(2,e):e>=0?t.writeVarintField(3,e):t.writeVarintField(4,-e))}}function g(e,t){var n=[];O(n,e),t.writePackedSVarint(3,n)}function b(e,t,n){var r,o=e.length;if(1!==o){var i=[];for(r=0;r<o;r++)i.push(e[r].length-(n?1:0));t.writePackedVarint(2,i)}var a=[];for(r=0;r<o;r++)O(a,e[r],n);t.writePackedSVarint(3,a)}function O(e,t,n){var r,o,i=t.length-(n?1:0),u=new Array(a);for(o=0;o<a;o++)u[o]=0;for(r=0;r<i;r++)for(o=0;o<a;o++){var s=Math.round(t[r][o]*c)-u[o];e.push(s),u[o]+=s}}function w(e,t){if("type"===e)return!0;if("FeatureCollection"===t){if("features"===e)return!0}else if("Feature"===t){if("id"===e||"properties"===e||"geometry"===e)return!0}else if("GeometryCollection"===t){if("geometries"===e)return!0}else if("coordinates"===e)return!0;return!1}},"eT/W":function(e,t,n){"use strict";var r=n("bOZ7"),o=n("Nogd"),i=n("jvEv"),a=i.union,c=i.derivations,u=n("USM+"),s=n("0C76"),l=n("1ims"),f=n("03hK"),p=c.equality,d=c.debugRepresentation,h=c.serialization,v=a("folktale:Result",{Error:function(e){return{value:e}},Ok:function(e){return{value:e}}}).derive(p,d,h),y=v.Error,m=v.Ok,g=r(v);l(y.prototype,{get value(){throw new TypeError("`value` can’t be accessed in an abstract instance of Result.Error")}}),l(m.prototype,{get value(){throw new TypeError("`value` can’t be accessed in an abstract instance of Result.Ok")}}),s(v,{map:{Error:function(e){return o("Result.Error#map",e),this},Ok:function(e){return o("Result.Ok#map",e),m(e(this.value))}},apply:{Error:function(e){return g("Result.Error#apply",e),this},Ok:function(e){return g("Result.Ok#apply",e),e.map(this.value)}},chain:{Error:function(e){return o("Result.Error#chain",e),this},Ok:function(e){return o("Result.Ok#chain",e),e(this.value)}},unsafeGet:{Error:function(){throw new TypeError("Can't extract the value of an Error.\n\nError does not contain a normal value - it contains an error.\nYou might consider switching from Result#unsafeGet to Result#getOrElse,\nor some other method that is not partial.\n ")},Ok:function(){return this.value}},getOrElse:{Error:function(e){return e},Ok:function(e){return this.value}},orElse:{Error:function(e){return o("Result.Error#orElse",e),e(this.value)},Ok:function(e){return o("Result.Ok#orElse",e),this}},concat:{Error:function(e){return g("Result.Error#concat",e),this},Ok:function(e){var t=this;return g("Result.Ok#concat",e),e.map((function(e){return t.value.concat(e)}))}},fold:{Error:function(e,t){return o("Result.Error#fold",e),o("Result.Error#fold",t),e(this.value)},Ok:function(e,t){return o("Result.Ok#fold",e),o("Result.Ok#fold",t),t(this.value)}},swap:{Error:function(){return m(this.value)},Ok:function(){return y(this.value)}},bimap:{Error:function(e,t){return o("Result.Error#bimap",e),o("Result.Error#bimap",t),y(e(this.value))},Ok:function(e,t){return o("Result.Ok#bimap",e),o("Result.Ok#bimap",t),m(t(this.value))}},mapError:{Error:function(e){return o("Result.Error#mapError",e),y(e(this.value))},Ok:function(e){return o("Result.Ok#mapError",e),this}},filter:{Error:function(e){return o("Result.Error#filter",e),this},Ok:function(e){return o("Result.Ok#filter",e),e(this.value)?this:y(this.value)}}}),Object.assign(v,{of:function(e){return m(e)},get:function(){return f("`.get()` is deprecated, and has been renamed to `.unsafeGet()`."),this.unsafeGet()},merge:function(){return this.value},toValidation:function(){return n("bHH9")(this)},toMaybe:function(){return n("8DIc")(this)}}),u(y.prototype),u(m.prototype),u(v),e.exports=v},eX5m:function(e,t,n){var r=n("BkAM");e.exports=r((function(e){return!e}))},eask:function(e,t,n){var r=n("JNqh");e.exports=function(e){return r(this,e).get(e)}},eiXn:function(e,t,n){var r=n("cLeC"),o=n("N9G2"),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},emEt:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.r(t),n.d(t,"PageResourceStatus",(function(){return C})),n.d(t,"BaseLoader",(function(){return A})),n.d(t,"ProdLoader",(function(){return R})),n.d(t,"setLoader",(function(){return N})),n.d(t,"publicLoader",(function(){return I})),n.d(t,"getStaticQueryResults",(function(){return D}));var o=function(e){if("undefined"===("undefined"==typeof document?"undefined":r(document)))return!1;var t=document.createElement("link");try{if(t.relList&&"function"===r(t.relList.supports))return t.relList.supports(e)}catch(n){return!1}return!1}("prefetch")?function(e,t){return new Promise((function(n,o){if("undefined"!==("undefined"==typeof document?"undefined":r(document))){var i=document.createElement("link");i.setAttribute("rel","prefetch"),i.setAttribute("href",e),Object.keys(t).forEach((function(e){i.setAttribute(e,t[e])})),i.onload=n,i.onerror=o,(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(i)}else o()}))}:function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onload=function(){200===r.status?t():n()},r.send(null)}))},i={},a=function(e,t){return new Promise((function(n){i[e]?n():o(e,t).then((function(){n(),i[e]=!0})).catch((function(){}))}))},c=n("5yr3"),u=n("30RF");function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=l(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function l(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t,n){return t&&_(e.prototype,t),n&&_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var C={Error:"error",Success:"success"},j=function(e){return e&&e.default||e},k=function(e){var t,n="/"===e?"index":t=(t="/"===(t=e)[0]?t.slice(1):t).endsWith("/")?t.slice(0,-1):t;return"".concat("","/page-data/").concat(n,"/page-data.json")};function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";return new Promise((function(n,r){var o=new XMLHttpRequest;o.open(t,e,!0),o.onreadystatechange=function(){4==o.readyState&&n(o)},o.send(null)}))}var T,M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath,staticQueryHashes:e.staticQueryHashes};return{component:t,json:e.result,page:n}},A=function(){function e(t,n){w(this,e),E(this,"inFlightNetworkRequests",new Map),this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=t,Object(u.d)(n)}return x(e,[{key:"memoizedGet",value:function(e){var t=this,n=this.inFlightNetworkRequests.get(e);return n||(n=P(e,"GET"),this.inFlightNetworkRequests.set(e,n)),n.then((function(n){return t.inFlightNetworkRequests.delete(e),n})).catch((function(n){throw t.inFlightNetworkRequests.delete(e),n}))}},{key:"setApiRunner",value:function(e){this.apiRunner=e,this.prefetchDisabled=e("disableCorePrefetching").some((function(e){return e}))}},{key:"fetchPageDataJson",value:function(e){var t=this,n=e.pagePath,r=e.retries,o=void 0===r?0:r,i=k(n);return this.memoizedGet(i).then((function(r){var i=r.status,a=r.responseText;if(200===i)try{var c=JSON.parse(a);if(void 0===c.path)throw new Error("not a valid pageData response");return Object.assign(e,{status:C.Success,payload:c})}catch(u){}return 404===i||200===i?"/404.html"===n?Object.assign(e,{status:C.Error}):t.fetchPageDataJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===i?Object.assign(e,{status:C.Error}):o<3?t.fetchPageDataJson(Object.assign(e,{retries:o+1})):Object.assign(e,{status:C.Error})}))}},{key:"loadPageDataJson",value:function(e){var t=this,n=Object(u.b)(e);if(this.pageDataDb.has(n)){var r=this.pageDataDb.get(n);return Promise.resolve(r)}return this.fetchPageDataJson({pagePath:n}).then((function(e){return t.pageDataDb.set(n,e),e}))}},{key:"findMatchPath",value:function(e){return Object(u.a)(e)}},{key:"loadPage",value:function(e){var t=this,n=Object(u.b)(e);if(this.pageDb.has(n)){var r=this.pageDb.get(n);return Promise.resolve(r.payload)}if(this.inFlightDb.has(n))return this.inFlightDb.get(n);var o=Promise.all([this.loadAppData(),this.loadPageDataJson(n)]).then((function(e){var r=e[1];if(r.status===C.Error)return{status:C.Error};var o=r.payload,i=o,a=i.componentChunkName,u=i.staticQueryHashes,s=void 0===u?[]:u,l={},f=t.loadComponent(a).then((function(t){var n;return l.createdAt=new Date,t?(l.status=C.Success,!0===r.notFound&&(l.notFound=!0),o=Object.assign(o,{webpackCompilationHash:e[0]?e[0].webpackCompilationHash:""}),n=M(o,t)):l.status=C.Error,n})),p=Promise.all(s.map((function(e){if(t.staticQueryDb[e]){var n=t.staticQueryDb[e];return{staticQueryHash:e,jsonPayload:n}}return t.memoizedGet("".concat("","/page-data/sq/d/").concat(e,".json")).then((function(t){var n=JSON.parse(t.responseText);return{staticQueryHash:e,jsonPayload:n}}))}))).then((function(e){var n={};return e.forEach((function(e){var r=e.staticQueryHash,o=e.jsonPayload;n[r]=o,t.staticQueryDb[r]=o})),n}));return Promise.all([f,p]).then((function(e){var r,o=g(e,2),i=o[0],a=o[1];return i&&(r=m(m({},i),{},{staticQueryResults:a}),l.payload=r,c.a.emit("onPostLoadPageResources",{page:r,pageResources:r})),t.pageDb.set(n,l),r}))}));return o.then((function(e){t.inFlightDb.delete(n)})).catch((function(e){throw t.inFlightDb.delete(n),e})),this.inFlightDb.set(n,o),o}},{key:"loadPageSync",value:function(e){var t=Object(u.b)(e);if(this.pageDb.has(t))return this.pageDb.get(t).payload}},{key:"shouldPrefetch",value:function(e){return!!function(){if("connection"in navigator&&"undefined"!==S(navigator.connection)){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0}()&&!this.pageDb.has(e)}},{key:"prefetch",value:function(e){var t=this;if(!this.shouldPrefetch(e))return!1;if(this.prefetchTriggered.has(e)||(this.apiRunner("onPrefetchPathname",{pathname:e}),this.prefetchTriggered.add(e)),this.prefetchDisabled)return!1;var n=Object(u.b)(e);return this.doPrefetch(n).then((function(){t.prefetchCompleted.has(e)||(t.apiRunner("onPostPrefetchPathname",{pathname:e}),t.prefetchCompleted.add(e))})),!0}},{key:"doPrefetch",value:function(e){var t=this,n=k(e);return a(n,{crossOrigin:"anonymous",as:"fetch"}).then((function(){return t.loadPageDataJson(e)}))}},{key:"hovering",value:function(e){this.loadPage(e)}},{key:"getResourceURLsForPathname",value:function(e){var t=Object(u.b)(e),n=this.pageDataDb.get(t);if(n){var r=M(n.payload);return[].concat(v(L(r.page.componentChunkName)),[k(t)])}return null}},{key:"isPageNotFound",value:function(e){var t=Object(u.b)(e),n=this.pageDb.get(t);return!n||n.notFound}},{key:"loadAppData",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.memoizedGet("".concat("","/page-data/app-data.json")).then((function(n){var r,o=n.status,i=n.responseText;if(200!==o&&t<3)return e.loadAppData(t+1);if(200===o)try{var a=JSON.parse(i);if(void 0===a.webpackCompilationHash)throw new Error("not a valid app-data response");r=a}catch(c){}return r}))}}]),e}(),L=function(e){return(window.___chunkMapping[e]||[]).map((function(e){return""+e}))},R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(n,e);var t=p(n);function n(e,r){w(this,n);return t.call(this,(function(t){return e.components[t]?e.components[t]().then(j).catch((function(){return null})):Promise.resolve()}),r)}return x(n,[{key:"doPrefetch",value:function(e){return s(h(n.prototype),"doPrefetch",this).call(this,e).then((function(e){if(e.status!==C.Success)return Promise.resolve();var t=e.payload,n=t.componentChunkName,r=L(n);return Promise.all(r.map(a)).then((function(){return t}))}))}},{key:"loadPageDataJson",value:function(e){return s(h(n.prototype),"loadPageDataJson",this).call(this,e).then((function(t){return t.notFound?P(e,"HEAD").then((function(e){return 200===e.status?{status:C.Error}:t})):t}))}}]),n}(A),N=function(e){T=e},I={getResourcesForPathname:function(e){return console.warn("Warning: getResourcesForPathname is deprecated. Use loadPage instead"),T.i.loadPage(e)},getResourcesForPathnameSync:function(e){return console.warn("Warning: getResourcesForPathnameSync is deprecated. Use loadPageSync instead"),T.i.loadPageSync(e)},enqueue:function(e){return T.prefetch(e)},getResourceURLsForPathname:function(e){return T.getResourceURLsForPathname(e)},loadPage:function(e){return T.loadPage(e)},loadPageSync:function(e){return T.loadPageSync(e)},prefetch:function(e){return T.prefetch(e)},isPageNotFound:function(e){return T.isPageNotFound(e)},hovering:function(e){return T.hovering(e)},loadAppData:function(){return T.loadAppData()}};t.default=I;function D(){return T?T.staticQueryDb:{}}},f2kJ:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},f2p0:function(e,t,n){var r=n("gEzS"),o=n("GZgP"),i=n("Xm/D");e.exports=function(e){return o(e)?i(e):r(e)}},f4p7:function(e,t,n){"use strict";var r=n("ct80");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},fCvj:function(e,t,n){},fD9S:function(e,t,n){var r=n("1Mu/"),o=n("ct80"),i=n("8r/q");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},fGyu:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("lEbO");var o=n("5x5+"),i=n("HO86");function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},fH32:function(e,t,n){var r=n("/qsF").PACKET_TYPES,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),i="function"==typeof ArrayBuffer,a=function(e,t){var n=new FileReader;return n.onload=function(){var e=n.result.split(",")[1];t("b"+e)},n.readAsDataURL(e)};e.exports=function(e,t,n){var c,u=e.type,s=e.data;return o&&s instanceof Blob?t?n(s):a(s,n):i&&(s instanceof ArrayBuffer||(c=s,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?t?n(s):a(new Blob([s]),n):n(r[u]+(s||""))}},fLdg:function(e,t,n){var r=n("qBJQ"),o=n("JcJ6"),i=n("rXFn"),a=n("GZgP"),c=n("GVul"),u=n("f2p0"),s=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":o(t)).length;if(n<2)return n?r(t,e):t;var l=r(t,s(e/c(t)));return a(t)?i(u(l),0,e).join(""):l.slice(0,e)}},fRV1:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"==typeof window&&(n=window)}e.exports=n},fVMg:function(e,t,n){var r=n("9JhN"),o=n("TN3B"),i=n("eiXn"),a=n("HYrn"),c=n("56Cj"),u=n("TbR9"),s=o("wks"),l=r.Symbol,f=l&&l.for,p=u?l:l&&l.withoutSetter||a;e.exports=function(e){if(!i(s,e)||!c&&"string"!=typeof s[e]){var t="Symbol."+e;c&&i(l,e)?s[e]=l[e]:s[e]=u&&f?f(t):p(t)}return s[e]}},fWyh:function(e,t,n){var r=n("nvU9");e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},ffIY:function(e,t,n){var r=n("VrFO"),o=n("Y9Ll"),i=n("1Pcy"),a=n("n70c"),c=n("5Yy7"),u=n("N+ot"),s=n("AuHH");function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}var f,p=n("bnMc"),d=n("3fuC"),h=/\n/g,v=/\\n/g,y=function(e){"use strict";c(n,e);var t=l(n);function n(e){var o;r(this,n),(o=t.call(this,e)).query=o.query||{},f||(f=d.___eio=d.___eio||[]),o.index=f.length;var a=i(o);return f.push((function(e){a.onData(e)})),o.query.j=o.index,o}return o(n,[{key:"supportsBinary",get:function(){return!1}},{key:"doClose",value:function(){this.script&&(this.script.onerror=function(){},this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),a(s(n.prototype),"doClose",this).call(this)}},{key:"doPoll",value:function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)}},{key:"doWrite",value:function(e,t){var n,r=this;if(!this.form){var o=document.createElement("form"),i=document.createElement("textarea"),a=this.iframeId="eio_iframe_"+this.index;o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=a,o.method="POST",o.setAttribute("accept-charset","utf-8"),i.name="d",o.appendChild(i),document.body.appendChild(o),this.form=o,this.area=i}function c(){u(),t()}function u(){if(r.iframe)try{r.form.removeChild(r.iframe)}catch(t){r.onError("jsonp polling iframe removal error",t)}try{var e='<iframe src="javascript:0" name="'+r.iframeId+'">';n=document.createElement(e)}catch(t){(n=document.createElement("iframe")).name=r.iframeId,n.src="javascript:0"}n.id=r.iframeId,r.form.appendChild(n),r.iframe=n}this.form.action=this.uri(),u(),e=e.replace(v,"\\\n"),this.area.value=e.replace(h,"\\n");try{this.form.submit()}catch(s){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===r.iframe.readyState&&c()}:this.iframe.onload=c}}]),n}(p);e.exports=y},fkDJ:function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},fmYM:function(e,t,n){n("99Mk")},fuOX:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r=n("hgAf"),o=n("Rdeb"),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,n=e.g,o=e.b,i=Object(r.h)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function c(e){var t=e.r,n=e.g,o=e.b;return"#".concat(Object(r.f)(t,n,o,!1))}function u(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function s(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function l(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function f(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function p(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Object(o.a)(e),p=5;p>0;p-=1){var d=a(r),h=c(Object(o.a)({h:s(d,p,!0),s:l(d,p,!0),v:f(d,p,!0)}));n.push(h)}n.push(c(r));for(var v=1;v<=4;v+=1){var y=a(r),m=c(Object(o.a)({h:s(y,v),s:l(y,v),v:f(y,v)}));n.push(m)}return"dark"===t.theme?i.map((function(e){var r=e.index,i=e.opacity;return c(u(Object(o.a)(t.backgroundColor||"#141414"),Object(o.a)(n[r]),100*i))})):n}var d={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},h={},v={};Object.keys(d).forEach((function(e){h[e]=p(d[e]),h[e].primary=h[e][5],v[e]=p(d[e],{theme:"dark",backgroundColor:"#141414"}),v[e].primary=v[e][5]}));h.red,h.volcano,h.gold,h.orange,h.yellow,h.lime,h.green,h.cyan,h.blue,h.geekblue,h.purple,h.magenta,h.grey},fw2E:function(e,t,n){"use strict";var r=n("kq48"),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},g0mS:function(e,t,n){"use strict";var r=n("cxan"),o=n("9fIP"),i=n("MMYH"),a=n("pWxA"),c=n("8K1b"),u=n("AqVP"),s=n("gnsf"),l=n("uwWy"),f=n("ERkP"),p=n("H84U"),d=n("jiyB"),h=0,v={};function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=h++,r=t;function o(){(r-=1)<=0?(e(),delete v[n]):v[n]=Object(d.a)(o)}return v[n]=Object(d.a)(o),n}y.cancel=function(e){void 0!==e&&(d.a.cancel(v[e]),delete v[e])},y.ids=v;var m,g=n("0n0R");function b(e){return!e||null===e.offsetParent||e.hidden}function O(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}var w=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).containerRef=f.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r,o,i=e.props,c=i.insertExtraNode;if(!(i.disabled||!t||b(t)||t.className.indexOf("-leave")>=0)){e.extraNode=document.createElement("div");var u=Object(a.a)(e).extraNode,l=e.context.getPrefixCls;u.className="".concat(l(""),"-click-animating-node");var f=e.getAttributeName();if(t.setAttribute(f,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&O(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){u.style.borderColor=n;var p=(null===(r=t.getRootNode)||void 0===r?void 0:r.call(t))||t.ownerDocument,d=p instanceof Document?p.body:null!==(o=p.firstChild)&&void 0!==o?o:p;m=Object(s.a)("\n [".concat(l(""),"-click-animating-without-extra-node='true']::after, .").concat(l(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:d})}c&&t.appendChild(u),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!b(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),y.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=y((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!f.isValidElement(r))return r;var o=e.containerRef;return Object(l.c)(r)&&(o=Object(l.a)(r.ref,e.containerRef)),Object(g.a)(r,{ref:o})},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1;var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,"false"),m&&(m.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return f.createElement(p.a,null,this.renderWave)}}]),n}(f.Component);w.contextType=p.b;var _=Object(f.forwardRef)((function(e,t){return f.createElement(w,Object(r.a)({ref:t},e))}));t.a=_},"g6a+":function(e,t,n){var r=n("cLeC"),o=n("ct80"),i=n("amH4"),a=Object,c=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?c(e,""):a(e)}:a},gC6d:function(e,t,n){var r=n("ct80");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},gCGT:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="HomeOutlined";t.a=o.forwardRef(c)},gDU4:function(e,t,n){"use strict";t.a=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},gDlH:function(e,t,n){"use strict";var r=n("cxan"),o=n("tmJt"),i=n("ERkP"),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},u=i.forwardRef((function(e,t){var n=e.style,u=e.noStyle,s=e.disabled,l=a(e,["style","noStyle","disabled"]),f={};return u||(f=Object(r.a)({},c)),s&&(f.pointerEvents="none"),f=Object(r.a)(Object(r.a)({},f),n),i.createElement("div",Object(r.a)({role:"button",tabIndex:0,ref:t},l,{onKeyDown:function(e){e.keyCode===o.a.ENTER&&e.preventDefault()},onKeyUp:function(t){var n=t.keyCode,r=e.onClick;n===o.a.ENTER&&r&&r()},style:f}))}));t.a=u},gEWz:function(e,t,n){var r=n("kkM+"),o=n("tLQN");e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},gEzS:function(e,t){e.exports=function(e){return e.split("")}},gFym:function(e,t,n){"use strict";t.a=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},gIIS:function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,c,u=1,s={},l=!1,f=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",c=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",c,!1):e.attachEvent("onmessage",c),r=function(t){e.postMessage(a+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return s[u]=o,r(u),u++},p.clearImmediate=d}function d(e){delete s[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=s[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n("fRV1"),n("F63i"))},gK9i:function(e,t,n){"use strict";var r=n("cxan"),o=n("zjfJ"),i=n("PtGW"),a=n("O94r"),c=n.n(a),u=n("fGyu"),s=n("9fIP"),l=n("MMYH"),f=n("8K1b"),p=n("AqVP"),d=n("4wDe"),h=n("ERkP"),v=n("Pu0A"),y=n.n(v),m=n("6Qj0"),g=n("B5SY"),b=n("zygG"),O=h.forwardRef((function(e,t){var n,r=e.prefixCls,i=e.forceRender,a=e.className,u=e.style,s=e.children,l=e.isActive,f=e.role,p=h.useState(l||i),d=Object(b.a)(p,2),v=d[0],y=d[1];return h.useEffect((function(){(i||l)&&y(!0)}),[i,l]),v?h.createElement("div",{ref:t,className:c()("".concat(r,"-content"),(n={},Object(o.a)(n,"".concat(r,"-content-active"),l),Object(o.a)(n,"".concat(r,"-content-inactive"),!l),n),a),style:u,role:f},h.createElement("div",{className:"".concat(r,"-content-box")},s)):null}));O.displayName="PanelContent";var w=O,_=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(s.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).onItemClick=function(){var t=e.props,n=t.onItemClick,r=t.panelKey;"function"==typeof n&&n(r)},e.handleKeyPress=function(t){"Enter"!==t.key&&13!==t.keyCode&&13!==t.which||e.onItemClick()},e.renderIcon=function(){var t=e.props,n=t.showArrow,r=t.expandIcon,o=t.prefixCls,i=t.collapsible;if(!n)return null;var a="function"==typeof r?r(e.props):h.createElement("i",{className:"arrow"});return a&&h.createElement("div",{className:"".concat(o,"-expand-icon"),onClick:"header"===i?e.onItemClick:null},a)},e.renderTitle=function(){var t=e.props,n=t.header,r=t.prefixCls,o=t.collapsible;return h.createElement("span",{className:"".concat(r,"-header-text"),onClick:"header"===o?e.onItemClick:null},n)},e}return Object(l.a)(n,[{key:"shouldComponentUpdate",value:function(e){return!y()(this.props,e)}},{key:"render",value:function(){var e,t,n=this.props,i=n.className,a=n.id,u=n.style,s=n.prefixCls,l=n.headerClass,f=n.children,p=n.isActive,d=n.destroyInactivePanel,v=n.accordion,y=n.forceRender,m=n.openMotion,b=n.extra,O=n.collapsible,_="disabled"===O,x="header"===O,E=c()((e={},Object(o.a)(e,"".concat(s,"-item"),!0),Object(o.a)(e,"".concat(s,"-item-active"),p),Object(o.a)(e,"".concat(s,"-item-disabled"),_),e),i),S={className:c()("".concat(s,"-header"),(t={},Object(o.a)(t,l,l),Object(o.a)(t,"".concat(s,"-header-collapsible-only"),x),t)),"aria-expanded":p,"aria-disabled":_,onKeyPress:this.handleKeyPress};x||(S.onClick=this.onItemClick,S.role=v?"tab":"button",S.tabIndex=_?-1:0);var C=null!=b&&"boolean"!=typeof b;return h.createElement("div",{className:E,style:u,id:a},h.createElement("div",S,this.renderIcon(),this.renderTitle(),C&&h.createElement("div",{className:"".concat(s,"-extra")},b)),h.createElement(g.b,Object(r.a)({visible:p,leavedClassName:"".concat(s,"-content-hidden")},m,{forceRender:y,removeOnLeave:d}),(function(e,t){var n=e.className,r=e.style;return h.createElement(w,{ref:t,prefixCls:s,className:n,style:r,isActive:p,forceRender:y,role:v?"tabpanel":null},f)})))}}]),n}(h.Component);_.defaultProps={showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1};var x=_;function E(e){var t=e;if(!Array.isArray(t)){var n=Object(d.a)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var S=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){var r;Object(s.a)(this,n),(r=t.call(this,e)).onClickItem=function(e){var t=r.state.activeKey;if(r.props.accordion)t=t[0]===e?[]:[e];else{var n=(t=Object(u.a)(t)).indexOf(e);n>-1?t.splice(n,1):t.push(e)}r.setActiveKey(t)},r.getNewChild=function(e,t){if(!e)return null;var n=r.state.activeKey,o=r.props,i=o.prefixCls,a=o.openMotion,c=o.accordion,u=o.destroyInactivePanel,s=o.expandIcon,l=o.collapsible,f=e.key||String(t),p=e.props,d=p.header,v=p.headerClass,y=p.destroyInactivePanel,m=p.collapsible,g=null!=m?m:l,b={key:f,panelKey:f,header:d,headerClass:v,isActive:c?n[0]===f:n.indexOf(f)>-1,prefixCls:i,destroyInactivePanel:null!=y?y:u,openMotion:a,accordion:c,children:e.props.children,onItemClick:"disabled"===g?null:r.onClickItem,expandIcon:s,collapsible:g};return"string"==typeof e.type?e:(Object.keys(b).forEach((function(e){void 0===b[e]&&delete b[e]})),h.cloneElement(e,b))},r.getItems=function(){var e=r.props.children;return Object(m.a)(e).map(r.getNewChild)},r.setActiveKey=function(e){"activeKey"in r.props||r.setState({activeKey:e}),r.props.onChange(r.props.accordion?e[0]:e)};var o=e.activeKey,i=e.defaultActiveKey;return"activeKey"in e&&(i=o),r.state={activeKey:E(i)},r}return Object(l.a)(n,[{key:"shouldComponentUpdate",value:function(e,t){return!y()(this.props,e)||!y()(this.state,t)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,r=t.className,i=t.style,a=t.accordion,u=c()((e={},Object(o.a)(e,n,!0),Object(o.a)(e,r,!!r),e));return h.createElement("div",{className:u,style:i,role:a?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(e){var t={};return"activeKey"in e&&(t.activeKey=E(e.activeKey)),t}}]),n}(h.Component);S.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},S.Panel=x;var C=S,j=(S.Panel,n("WSTu")),k=n("H84U"),P=n("EXcs"),T=n("0n0R"),M=function(e){var t,n,a=h.useContext(k.b),u=a.getPrefixCls,s=a.direction,l=e.prefixCls,f=e.className,p=void 0===f?"":f,d=e.bordered,v=void 0===d||d,y=e.ghost,g=e.expandIconPosition,b=void 0===g?"start":g,O=u("collapse",l),w=h.useMemo((function(){return"left"===b?"start":"right"===b?"end":b}),[b]),_=c()("".concat(O,"-icon-position-").concat(w),(t={},Object(o.a)(t,"".concat(O,"-borderless"),!v),Object(o.a)(t,"".concat(O,"-rtl"),"rtl"===s),Object(o.a)(t,"".concat(O,"-ghost"),!!y),t),p),x=Object(r.a)(Object(r.a)({},P.a),{motionAppear:!1,leavedClassName:"".concat(O,"-content-hidden")});return h.createElement(C,Object(r.a)({openMotion:x},e,{expandIcon:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.expandIcon,r=n?n(t):h.createElement(i.a,{rotate:t.isActive?90:void 0});return Object(T.a)(r,(function(){return{className:c()(r.props.className,"".concat(O,"-arrow"))}}))},prefixCls:O,className:_}),(n=e.children,Object(m.a)(n).map((function(e,t){var n;if(null===(n=e.props)||void 0===n?void 0:n.disabled){var o=e.key||String(t),i=e.props,a=i.disabled,c=i.collapsible,u=Object(r.a)(Object(r.a)({},Object(j.a)(e.props,["disabled"])),{key:o,collapsible:null!=c?c:a?"disabled":void 0});return Object(T.a)(e,u)}return e}))))};M.Panel=function(e){var t=h.useContext(k.b).getPrefixCls,n=e.prefixCls,i=e.className,a=void 0===i?"":i,u=e.showArrow,s=void 0===u||u,l=t("collapse",n),f=c()(Object(o.a)({},"".concat(l,"-no-arrow"),!s),a);return h.createElement(C.Panel,Object(r.a)({},e,{prefixCls:l,className:f}))};var A=M;t.a=A},gRH6:function(e,t,n){"use strict";var r=n("cxan"),o=n("zjfJ"),i=n("HbGN"),a=n("Czhu"),c=n("9fIP"),u=n("MMYH"),s=n("8K1b"),l=n("AqVP"),f=n("ERkP"),p=n.n(f),d=n("O94r"),h=n.n(d),v=function(e){Object(s.a)(n,e);var t=Object(l.a)(n);function n(e){var r;Object(c.a)(this,n),(r=t.call(this,e)).handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange;n||("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:Object(a.a)(Object(a.a)({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var o="checked"in e?e.checked:e.defaultChecked;return r.state={checked:o},r}return Object(u.a)(n,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,a=t.className,c=t.style,u=t.name,s=t.id,l=t.type,f=t.disabled,d=t.readOnly,v=t.tabIndex,y=t.onClick,m=t.onFocus,g=t.onBlur,b=t.onKeyDown,O=t.onKeyPress,w=t.onKeyUp,_=t.autoFocus,x=t.value,E=t.required,S=Object(i.a)(t,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),C=Object.keys(S).reduce((function(e,t){return"aria-"!==t.substr(0,5)&&"data-"!==t.substr(0,5)&&"role"!==t||(e[t]=S[t]),e}),{}),j=this.state.checked,k=h()(n,a,(e={},Object(o.a)(e,"".concat(n,"-checked"),j),Object(o.a)(e,"".concat(n,"-disabled"),f),e));return p.a.createElement("span",{className:k,style:c},p.a.createElement("input",Object(r.a)({name:u,id:s,type:l,required:E,readOnly:d,disabled:f,tabIndex:v,className:"".concat(n,"-input"),checked:!!j,onClick:y,onFocus:m,onBlur:g,onKeyUp:w,onKeyDown:b,onKeyPress:O,onChange:this.handleChange,autoFocus:_,ref:this.saveInput,value:x},C)),p.a.createElement("span",{className:"".concat(n,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"checked"in e?Object(a.a)(Object(a.a)({},t),{},{checked:e.checked}):null}}]),n}(f.Component);v.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},t.a=v},gTrE:function(e,t,n){"use strict";n.r(t),n.d(t,"Version",(function(){return s.a})),n.d(t,"GaodeMap",(function(){return r.a})),n.d(t,"GaodeMapV2",(function(){return o.a})),n.d(t,"Mapbox",(function(){return V.a})),n.d(t,"Map",(function(){return U.default})),n.d(t,"Earth",(function(){return B})),n.d(t,"Viewport",(function(){return H.a})),n.d(t,"BaseMapWrapper",(function(){return i.a})),n.d(t,"BaseMapService",(function(){return h.a}));var r=n("tmTm"),o=n("bSuG"),i=n("mpCQ"),a=n("pufz"),c=n("V7SB"),u=n("s6Xb"),s=(n("qzOT"),n("k0uE")),l=n("K/oH");function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"xzReg",.6*-Math.PI),p(this,"yReg",.2*Math.PI),p(this,"earthCameraRadius",200),p(this,"earthCameraZoom",1),p(this,"cameraPosition",l.d.create()),p(this,"projectionMatrix",l.b.create()),p(this,"modelMatrix",l.b.create()),p(this,"viewMatrix",l.b.create()),p(this,"viewProjectionMatrix",l.b.create()),p(this,"ViewProjectionMatrixUncentered",l.b.create()),p(this,"viewUncenteredMatrix",l.b.create())}var t,n,r;return t=e,(n=[{key:"syncWithMapCamera",value:function(e){var t=e.viewportHeight,n=void 0===t?1:t,r=e.viewportWidth,o=(void 0===r?1:r)/n;l.b.perspective(this.projectionMatrix,20,o,.1,1e4);var i=this.earthCameraRadius*Math.cos(this.xzReg),a=this.earthCameraRadius*Math.sin(this.xzReg),c=this.earthCameraRadius*Math.sin(this.yReg);this.cameraPosition=l.d.fromValues(i,c,a),l.d.normalize(this.cameraPosition,this.cameraPosition),l.d.multiply(this.cameraPosition,this.cameraPosition,l.d.fromValues(this.earthCameraRadius,this.earthCameraRadius,this.earthCameraRadius)),l.d.scale(this.cameraPosition,this.cameraPosition,this.earthCameraZoom);var u=l.d.create();l.d.cross(u,this.cameraPosition,l.d.fromValues(0,1,0));var s=l.d.fromValues(0,1,0);l.d.cross(s,u,this.cameraPosition);var f=l.d.fromValues(0,0,0);l.b.lookAt(this.viewMatrix,this.cameraPosition,f,s),this.viewUncenteredMatrix=l.b.clone(this.viewMatrix),l.b.multiply(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),l.b.multiply(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"rotateY",value:function(e){this.xzReg+=e*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"rotateX",value:function(e){this.yReg+=e*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"scaleZoom",value:function(e){this.earthCameraZoom+=e,this.earthCameraZoom=Math.max(this.earthCameraZoom,.6)}},{key:"getZoom",value:function(){return 4}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[0,0]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return this.modelMatrix}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(e,t){return this.viewport.projectFlat(e,t)}}])&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),h=n("LNdp");function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var y,m=["id","style","rotation"];function g(){g=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(k){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&n.call(m,o)&&(h=m);var b=d.prototype=f.prototype=Object.create(h);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==v(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,c(b,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},O(w.prototype),c(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(b),c(b,a,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},A=Object(u.injectable)()(y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(l,e);var t,n,r,o,i,u=C(l);function l(){var e;x(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return T(k(e=u.call.apply(u,[this].concat(n))),"version",s.a.GLOBEL),T(k(e),"dragging",!1),T(k(e),"handleCameraChanged",(function(t){e.emit("mapchange");e.handleCameraChanging=!0,e.handleCameraTimer&&clearTimeout(e.handleCameraTimer),e.handleCameraTimer=setTimeout((function(){e.handleCameraChanging=!1}),2e3);t.type&&t.originalEvent&&("wheel"===t.originalEvent.type&&e.viewport.scaleZoom(.01*Math.sign(t.originalEvent.wheelDelta)*-1),Math.abs(t.originalEvent.movementX)>Math.abs(t.originalEvent.movementY)?t.originalEvent.movementX>0?e.viewport.rotateY(.02):t.originalEvent.movementX<0&&e.viewport.rotateY(-.02):t.originalEvent.movementY>0?e.viewport.rotateX(.02):t.originalEvent.movementY<0&&e.viewport.rotateX(-.02));var n=e.config.offsetCoordinate,r=void 0===n||n;e.viewport.syncWithMapCamera({viewportHeight:e.map.transform.height,viewportWidth:e.map.transform.width}),e.viewport.getZoom()>12&&r?e.coordinateSystemService.setCoordinateSystem(a.CoordinateSystem.LNGLAT_OFFSET):e.coordinateSystemService.setCoordinateSystem(a.CoordinateSystem.LNGLAT),e.cameraChangedCallback(e.viewport)})),e}return t=l,(n=[{key:"lngLatToMercator",value:function(e,t){throw new Error("Method not implemented.")}},{key:"getModelMatrix",value:function(e,t,n,r,o){throw new Error("Method not implemented.")}},{key:"on",value:function(e,t){-1!==a.MapServiceEvent.indexOf(e)?this.eventEmitter.on(e,t):this.map.on(M[e]||e,t)}},{key:"off",value:function(e,t){this.map.off(M[e]||e,t),this.eventEmitter.off(e,t)}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var e=this.map.transform;return[e.width,e.height]}},{key:"getType",value:function(){return"earth"}},{key:"init",value:(o=g().mark((function e(){var t,n,r,o,i,a,u,s;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.config,n=t.id,r=void 0===n?"map":n,o=t.style,i=void 0===o?"light":o,a=t.rotation,u=void 0===a?0:a,s=w(t,m),this.viewport=new d,this.$mapContainer=this.creatMapContainer(r),this.map=new c.a(O({container:this.$mapContainer,style:this.getMapStyle(i),bearing:u},s)),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged({});case 7:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){_(i,n,r,a,c,"next",e)}function c(e){_(i,n,r,a,c,"throw",e)}a(void 0)}))},function(){return i.apply(this,arguments)})},{key:"destroy",value:function(){var e,t;null===(e=this.$mapContainer)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.eventEmitter).emit.apply(t,[e].concat(r))}},{key:"once",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.eventEmitter).once.apply(t,[e].concat(r))}},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(e){this.cameraChangedCallback=e}},{key:"rotateY",value:function(e){var t=e||{},n=t.force,r=void 0!==n&&n,o=t.reg,i=void 0===o?.01:o;this.handleCameraChanging&&!r||this.viewport&&(this.viewport.rotateY(i),this.viewport.syncWithMapCamera({viewportHeight:this.map.transform.height,viewportWidth:this.map.transform.width}),this.cameraChangedCallback(this.viewport))}}])&&E(t.prototype,n),r&&E(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(h.a))||y;function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var o=z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return F(this,n)}}function F(e,t){if(t&&("object"===L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}(i,e);var t,n,r,o=D(i);function i(){return R(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getServiceConstructor",value:function(){return A}}])&&N(t.prototype,n),r&&N(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(i.a),U=n("hOO4"),V=n("P2D4"),H=n("uNS2")},gVvV:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}},gbJM:function(e,t,n){"use strict";n.d(t,"b",(function(){return We}));var r={},o={},i=function(e){return o[e]},a=function(e,t){o[e]=t},c=function(e,t){r[e]=t},u={},s={};function l(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function f(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var r in e)r in t||n.push(t[r]=r)})),n}function p(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function d(e){var t,n=e.getUTCHours(),r=e.getUTCMinutes(),o=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":((t=e.getUTCFullYear())<0?"-"+p(-t,6):t>9999?"+"+p(t,6):p(t,4))+"-"+p(e.getUTCMonth()+1,2)+"-"+p(e.getUTCDate(),2)+(i?"T"+p(n,2)+":"+p(r,2)+":"+p(o,2)+"."+p(i,3)+"Z":o?"T"+p(n,2)+":"+p(r,2)+":"+p(o,2)+"Z":r||n?"T"+p(n,2)+":"+p(r,2)+"Z":"")}var h=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,o=[],i=e.length,a=0,c=0,l=i<=0,f=!1;function p(){if(l)return s;if(f)return f=!1,u;var t,r,o=a;if(34===e.charCodeAt(o)){for(;a++<i&&34!==e.charCodeAt(a)||34===e.charCodeAt(++a););return(t=a)>=i?l=!0:10===(r=e.charCodeAt(a++))?f=!0:13===r&&(f=!0,10===e.charCodeAt(a)&&++a),e.slice(o+1,t-1).replace(/""/g,'"')}for(;a<i;){if(10===(r=e.charCodeAt(t=a++)))f=!0;else if(13===r)f=!0,10===e.charCodeAt(a)&&++a;else if(r!==n)continue;return e.slice(o,t)}return l=!0,e.slice(o,i)}for(10===e.charCodeAt(i-1)&&--i,13===e.charCodeAt(i-1)&&--i;(r=p())!==s;){for(var d=[];r!==u&&r!==s;)d.push(r),r=p();t&&null==(d=t(d,c++))||o.push(d)}return o}function o(t,n){return t.map((function(t){return n.map((function(e){return a(t[e])})).join(e)}))}function i(t){return t.map(a).join(e)}function a(e){return null==e?"":e instanceof Date?d(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,o,i=r(e,(function(e,r){if(n)return n(e,r-1);o=e,n=t?function(e,t){var n=l(e);return function(r,o){return t(n(r),o,e)}}(e,t):l(e)}));return i.columns=o||[],i},parseRows:r,format:function(t,n){return null==n&&(n=f(t)),[n.map(a).join(e)].concat(o(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=f(e)),o(e,t).join("\n")},formatRows:function(e){return e.map(i).join("\n")},formatRow:i,formatValue:a}}(","),v=h.parse,y=(h.parseRows,h.format,h.formatBody,h.formatRows,h.formatRow,h.formatValue,n("qnot")),m=n.n(y),g=n("WvW5");function b(e,t){var n,r,o,i,a,c,u,s,l,f,p=0,d="FeatureCollection"===e.type,h="Feature"===e.type,v=d?e.features.length:1;for(n=0;n<v;n++){for(c=d?e.features[n].geometry:h?e.geometry:e,s=d?e.features[n].properties:h?e.properties:{},l=d?e.features[n].bbox:h?e.bbox:void 0,f=d?e.features[n].id:h?e.id:void 0,a=(u=!!c&&"GeometryCollection"===c.type)?c.geometries.length:1,o=0;o<a;o++)if(null!==(i=u?c.geometries[o]:c))switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(i,p,s,l,f))return!1;break;case"GeometryCollection":for(r=0;r<i.geometries.length;r++)if(!1===t(i.geometries[r],p,s,l,f))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,p,s,l,f))return!1;p++}}function O(e,t){b(e,(function(e,n,r,o,i){var a,c=null===e?null:e.type;switch(c){case null:case"Point":case"LineString":case"Polygon":return!1!==t(Object(g.b)(e,r,{bbox:o,id:i}),n,0)&&void 0}switch(c){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon"}for(var u=0;u<e.coordinates.length;u++){var s={type:a,coordinates:e.coordinates[u]};if(!1===t(Object(g.b)(s,r),n,u))return!1}}))}var w=n("zzo4");function _(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){var n=t.x,r=t.y,o=t.x1,i=t.y1,a=t.coordinates,c=t.geometry,u=[];if(!Array.isArray(e))return{dataArray:[]};for(var s=function(t){var s=e[t];if(c){var l=S({},s[c]);return O(m()(l,!0),(function(e){var n=Object(w.b)(e),r=S(S({},s),{},{_id:t,coordinates:n});u.push(r)})),"continue"}var f=[];if(a){var p="Polygon";Array.isArray(a[0])||(p="Point"),Array.isArray(a[0])&&!Array.isArray(a[0][0])&&(p="LineString");var d={type:p,coordinates:_(s[a])};f=m()(d,!0).coordinates}else if(n&&r&&o&&i){f=[[parseFloat(s[n]),parseFloat(s[r])],[parseFloat(s[o]),parseFloat(s[i])]]}else n&&r&&(f=[parseFloat(s[n]),parseFloat(s[r])]);var h=S(S({},s),{},{_id:t,coordinates:f});u.push(h)},l=0;l<e.length;l++)s(l);return{dataArray:u}}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=n("zEXi");function A(e,t){var n=t.extent,r=void 0===n?[121.168,30.2828,121.384,30.4219]:n,o=new Promise((function(t){e instanceof HTMLImageElement||Object(M.ib)(e)?t([e]):function(e,t){var n=e,r=[];if("string"==typeof n)Object(M.Z)({url:n},(function(e,n){n&&(r.push(n),t(r))}));else{var o=n.length,i=0;n.forEach((function(e){Object(M.Z)({url:e},(function(e,n){i++,n&&r.push(n),i===o&&t(r)}))}))}}(e,(function(e){t(e)}))}));return{originData:e,images:o,_id:1,dataArray:[{_id:0,coordinates:[[r[0],r[1]],[r[2],r[3]]]}]}}var L=n("WJ/m"),R=n("h7wP"),N=n.n(R);function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(){B=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==I(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function U(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}var V={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0};var H=function(){var e,t=(e=B().mark((function e(t,n,r){var o;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Object(M.gb)(t,n),e.abrupt("return",new Promise((function(e){var t=Object(M.X)({url:o},(function(t,r){if(t||!r)e({layers:{}});else{for(var o=new L.VectorTile(new N.a(r)),i=0,a=Object.keys(o.layers);i<a.length;i++){for(var c=a[i],u=[],s=o.layers[c],l=0;l<o.layers[c].length;l++){var f=o.layers[c].feature(l).toGeoJSON(n.x,n.y,n.z);u.push(f)}s.features=u}e(o)}}));r.xhrCancel=function(){return t.abort()}})));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){U(i,r,o,a,c,"next",e)}function c(e){U(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e,n,r){return t.apply(this,arguments)}}();function G(e,t,n,r,o,i){var a=o-n,c=i-r;if(0!==a||0!==c){var u=((e-n)*a+(t-r)*c)/(a*a+c*c);u>1?(n=o,r=i):u>0&&(n+=a*u,r+=c*u)}return(a=e-n)*a+(c=t-r)*c}function W(e,t,n,r){var o={id:void 0===e?null:e,type:t,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,n=e.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)Y(e,t);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<t.length;r++)Y(e,t[r]);else if("MultiPolygon"===n)for(r=0;r<t.length;r++)for(var o=0;o<t[r].length;o++)Y(e,t[r][o])}(o),o}function Y(e,t){for(var n=0;n<t.length;n+=3)e.minX=Math.min(e.minX,t[n]),e.minY=Math.min(e.minY,t[n+1]),e.maxX=Math.max(e.maxX,t[n]),e.maxY=Math.max(e.maxY,t[n+1])}function K(e,t,n,r){if(t.geometry){var o=t.geometry.coordinates,i=t.geometry.type,a=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),c=[],u=t.id;if(n.promoteId?u=t.properties[n.promoteId]:n.generateId&&(u=r||0),"Point"===i)X(o,c);else if("MultiPoint"===i)for(var s=0;s<o.length;s++)X(o[s],c);else if("LineString"===i)q(o,c,a,!1);else if("MultiLineString"===i){if(n.lineMetrics){for(s=0;s<o.length;s++)c=[],q(o[s],c,a,!1),e.push(W(u,"LineString",c,t.properties));return}Z(o,c,a,!1)}else if("Polygon"===i)Z(o,c,a,!0);else{if("MultiPolygon"!==i){if("GeometryCollection"===i){for(s=0;s<t.geometry.geometries.length;s++)K(e,{id:u,geometry:t.geometry.geometries[s],properties:t.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(s=0;s<o.length;s++){var l=[];Z(o[s],l,a,!0),c.push(l)}}e.push(W(u,i,c,t.properties))}}function X(e,t){t.push(J(e[0])),t.push(Q(e[1])),t.push(0)}function q(e,t,n,r){for(var o,i,a=0,c=0;c<e.length;c++){var u=J(e[c][0]),s=Q(e[c][1]);t.push(u),t.push(s),t.push(0),c>0&&(a+=r?(o*s-u*i)/2:Math.sqrt(Math.pow(u-o,2)+Math.pow(s-i,2))),o=u,i=s}var l=t.length-3;t[2]=1,function e(t,n,r,o){for(var i,a=o,c=r-n>>1,u=r-n,s=t[n],l=t[n+1],f=t[r],p=t[r+1],d=n+3;d<r;d+=3){var h=G(t[d],t[d+1],s,l,f,p);if(h>a)i=d,a=h;else if(h===a){var v=Math.abs(d-c);v<u&&(i=d,u=v)}}a>o&&(i-n>3&&e(t,n,i,o),t[i+2]=a,r-i>3&&e(t,i,r,o))}(t,0,l,n),t[l+2]=1,t.size=Math.abs(a),t.start=0,t.end=t.size}function Z(e,t,n,r){for(var o=0;o<e.length;o++){var i=[];q(e[o],i,n,r),t.push(i)}}function J(e){return e/360+.5}function Q(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function $(e,t,n,r,o,i,a,c){if(r/=t,i>=(n/=t)&&a<r)return e;if(a<n||i>=r)return null;for(var u=[],s=0;s<e.length;s++){var l=e[s],f=l.geometry,p=l.type,d=0===o?l.minX:l.minY,h=0===o?l.maxX:l.maxY;if(d>=n&&h<r)u.push(l);else if(!(h<n||d>=r)){var v=[];if("Point"===p||"MultiPoint"===p)ee(f,v,n,r,o);else if("LineString"===p)te(f,v,n,r,o,!1,c.lineMetrics);else if("MultiLineString"===p)re(f,v,n,r,o,!1);else if("Polygon"===p)re(f,v,n,r,o,!0);else if("MultiPolygon"===p)for(var y=0;y<f.length;y++){var m=[];re(f[y],m,n,r,o,!0),m.length&&v.push(m)}if(v.length){if(c.lineMetrics&&"LineString"===p){for(y=0;y<v.length;y++)u.push(W(l.id,p,v[y],l.tags));continue}"LineString"!==p&&"MultiLineString"!==p||(1===v.length?(p="LineString",v=v[0]):p="MultiLineString"),"Point"!==p&&"MultiPoint"!==p||(p=3===v.length?"Point":"MultiPoint"),u.push(W(l.id,p,v,l.tags))}}}return u.length?u:null}function ee(e,t,n,r,o){for(var i=0;i<e.length;i+=3){var a=e[i+o];a>=n&&a<=r&&(t.push(e[i]),t.push(e[i+1]),t.push(e[i+2]))}}function te(e,t,n,r,o,i,a){for(var c,u,s=ne(e),l=0===o?ie:ae,f=e.start,p=0;p<e.length-3;p+=3){var d=e[p],h=e[p+1],v=e[p+2],y=e[p+3],m=e[p+4],g=0===o?d:h,b=0===o?y:m,O=!1;a&&(c=Math.sqrt(Math.pow(d-y,2)+Math.pow(h-m,2))),g<n?b>n&&(u=l(s,d,h,y,m,n),a&&(s.start=f+c*u)):g>r?b<r&&(u=l(s,d,h,y,m,r),a&&(s.start=f+c*u)):oe(s,d,h,v),b<n&&g>=n&&(u=l(s,d,h,y,m,n),O=!0),b>r&&g<=r&&(u=l(s,d,h,y,m,r),O=!0),!i&&O&&(a&&(s.end=f+c*u),t.push(s),s=ne(e)),a&&(f+=c)}var w=e.length-3;d=e[w],h=e[w+1],v=e[w+2],(g=0===o?d:h)>=n&&g<=r&&oe(s,d,h,v),w=s.length-3,i&&w>=3&&(s[w]!==s[0]||s[w+1]!==s[1])&&oe(s,s[0],s[1],s[2]),s.length&&t.push(s)}function ne(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function re(e,t,n,r,o,i){for(var a=0;a<e.length;a++)te(e[a],t,n,r,o,i,!1)}function oe(e,t,n,r){e.push(t),e.push(n),e.push(r)}function ie(e,t,n,r,o,i){var a=(i-t)/(r-t);return e.push(i),e.push(n+(o-n)*a),e.push(1),a}function ae(e,t,n,r,o,i){var a=(i-n)/(o-n);return e.push(t+(r-t)*a),e.push(i),e.push(1),a}function ce(e,t){for(var n=[],r=0;r<e.length;r++){var o,i=e[r],a=i.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)o=ue(i.geometry,t);else if("MultiLineString"===a||"Polygon"===a){o=[];for(var c=0;c<i.geometry.length;c++)o.push(ue(i.geometry[c],t))}else if("MultiPolygon"===a)for(o=[],c=0;c<i.geometry.length;c++){for(var u=[],s=0;s<i.geometry[c].length;s++)u.push(ue(i.geometry[c][s],t));o.push(u)}n.push(W(i.id,a,o,i.tags))}return n}function ue(e,t){var n=[];n.size=e.size,void 0!==e.start&&(n.start=e.start,n.end=e.end);for(var r=0;r<e.length;r+=3)n.push(e[r]+t,e[r+1],e[r+2]);return n}function se(e,t){if(e.transformed)return e;var n,r,o,i=1<<e.z,a=e.x,c=e.y;for(n=0;n<e.features.length;n++){var u=e.features[n],s=u.geometry,l=u.type;if(u.geometry=[],1===l)for(r=0;r<s.length;r+=2)u.geometry.push(le(s[r],s[r+1],t,i,a,c));else for(r=0;r<s.length;r++){var f=[];for(o=0;o<s[r].length;o+=2)f.push(le(s[r][o],s[r][o+1],t,i,a,c));u.geometry.push(f)}}return e.transformed=!0,e}function le(e,t,n,r,o,i){return[Math.round(n*(e*r-o)),Math.round(n*(t*r-i))]}function fe(e,t,n,r,o){for(var i=t===o.maxZoom?0:o.tolerance/((1<<t)*o.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},c=0;c<e.length;c++){a.numFeatures++,pe(a,e[c],i,o);var u=e[c].minX,s=e[c].minY,l=e[c].maxX,f=e[c].maxY;u<a.minX&&(a.minX=u),s<a.minY&&(a.minY=s),l>a.maxX&&(a.maxX=l),f>a.maxY&&(a.maxY=f)}return a}function pe(e,t,n,r){var o=t.geometry,i=t.type,a=[];if("Point"===i||"MultiPoint"===i)for(var c=0;c<o.length;c+=3)a.push(o[c]),a.push(o[c+1]),e.numPoints++,e.numSimplified++;else if("LineString"===i)de(a,o,e,n,!1,!1);else if("MultiLineString"===i||"Polygon"===i)for(c=0;c<o.length;c++)de(a,o[c],e,n,"Polygon"===i,0===c);else if("MultiPolygon"===i)for(var u=0;u<o.length;u++){var s=o[u];for(c=0;c<s.length;c++)de(a,s[c],e,n,!0,0===c)}if(a.length){var l=t.tags||null;if("LineString"===i&&r.lineMetrics){for(var f in l={},t.tags)l[f]=t.tags[f];l.mapbox_clip_start=o.start/o.size,l.mapbox_clip_end=o.end/o.size}var p={geometry:a,type:"Polygon"===i||"MultiPolygon"===i?3:"LineString"===i||"MultiLineString"===i?2:1,tags:l};null!==t.id&&(p.id=t.id),e.features.push(p)}}function de(e,t,n,r,o,i){var a=r*r;if(r>0&&t.size<(o?a:r))n.numPoints+=t.length/3;else{for(var c=[],u=0;u<t.length;u+=3)(0===r||t[u+2]>a)&&(n.numSimplified++,c.push(t[u]),c.push(t[u+1])),n.numPoints++;o&&function(e,t){for(var n=0,r=0,o=e.length,i=o-2;r<o;i=r,r+=2)n+=(e[r]-e[i])*(e[r+1]+e[i+1]);if(n>0===t)for(r=0,o=e.length;r<o/2;r+=2){var a=e[r],c=e[r+1];e[r]=e[o-2-r],e[r+1]=e[o-1-r],e[o-2-r]=a,e[o-1-r]=c}}(c,i),e.push(c)}}function he(e,t){var n=(t=this.options=function(e,t){for(var n in t)e[n]=t[n];return e}(Object.create(this.options),t)).debug;if(n&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var r=0;r<e.features.length;r++)K(n,e.features[r],t,r);else"Feature"===e.type?K(n,e,t):K(n,{geometry:e},t);return n}(e,t);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(r=function(e,t){var n=t.buffer/t.extent,r=e,o=$(e,1,-1-n,n,0,-1,2,t),i=$(e,1,1-n,2+n,0,-1,2,t);return(o||i)&&(r=$(e,1,-n,1+n,0,-1,2,t)||[],o&&(r=ce(o,1).concat(r)),i&&(r=r.concat(ce(i,-1)))),r}(r,t)).length&&this.splitTile(r,0,0,0),n&&(r.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function ve(e,t,n){return 32*((1<<e)*n+t)+e}function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(){Oe=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==ye(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function we(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}he.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},he.prototype.splitTile=function(e,t,n,r,o,i,a){for(var c=[e,t,n,r],u=this.options,s=u.debug;c.length;){r=c.pop(),n=c.pop(),t=c.pop(),e=c.pop();var l=1<<t,f=ve(t,n,r),p=this.tiles[f];if(!p&&(s>1&&console.time("creation"),p=this.tiles[f]=fe(e,t,n,r,u),this.tileCoords.push({z:t,x:n,y:r}),s)){s>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,r,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var d="z"+t;this.stats[d]=(this.stats[d]||0)+1,this.total++}if(p.source=e,o){if(t===u.maxZoom||t===o)continue;var h=1<<o-t;if(n!==Math.floor(i/h)||r!==Math.floor(a/h))continue}else if(t===u.indexMaxZoom||p.numPoints<=u.indexMaxPoints)continue;if(p.source=null,0!==e.length){s>1&&console.time("clipping");var v,y,m,g,b,O,w=.5*u.buffer/u.extent,_=.5-w,x=.5+w,E=1+w;v=y=m=g=null,b=$(e,l,n-w,n+x,0,p.minX,p.maxX,u),O=$(e,l,n+_,n+E,0,p.minX,p.maxX,u),e=null,b&&(v=$(b,l,r-w,r+x,1,p.minY,p.maxY,u),y=$(b,l,r+_,r+E,1,p.minY,p.maxY,u),b=null),O&&(m=$(O,l,r-w,r+x,1,p.minY,p.maxY,u),g=$(O,l,r+_,r+E,1,p.minY,p.maxY,u),O=null),s>1&&console.timeEnd("clipping"),c.push(v||[],t+1,2*n,2*r),c.push(y||[],t+1,2*n,2*r+1),c.push(m||[],t+1,2*n+1,2*r),c.push(g||[],t+1,2*n+1,2*r+1)}}},he.prototype.getTile=function(e,t,n){var r=this.options,o=r.extent,i=r.debug;if(e<0||e>24)return null;var a=1<<e,c=ve(e,t=(t%a+a)%a,n);if(this.tiles[c])return se(this.tiles[c],o);i>1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var u,s=e,l=t,f=n;!u&&s>0;)s--,l=Math.floor(l/2),f=Math.floor(f/2),u=this.tiles[ve(s,l,f)];return u&&u.source?(i>1&&console.log("found parent tile z%d-%d-%d",s,l,f),i>1&&console.time("drilling down"),this.splitTile(u.source,s,l,f,e,t,n),i>1&&console.timeEnd("drilling down"),this.tiles[c]?se(this.tiles[c],o):null):null};var _e={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0};function xe(e){for(var t,n,r=0,o=0,i=e.length,a=i-1;o<i;a=o++)t=e[o],r+=((n=e[a]).x-t.x)*(t.y+n.y);return r}var Ee=["Unknown","Point","LineString","Polygon"];function Se(e,t,n,r,o){var i,a,c=o.geometry,u=o.type,s=o.tags,l=o.id,f=e*Math.pow(2,r),p=e*t,d=e*n,h=Ee[u];function v(e){for(var t=0;t<e.length;t++){var n=e[t];if(n[3])break;var r=180-360*(n[1]+d)/f,o=360*(n[0]+p)/f-180,i=360/Math.PI*Math.atan(Math.exp(r*Math.PI/180))-90;e[t]=[o,i,0,1]}}switch(u){case 1:var y=[];for(i=0;i<c.length;i++)y[i]=c[i][0];v(c=y);break;case 2:for(i=0;i<c.length;i++)v(c[i]);break;case 3:for(c=function(e){var t=e.length;if(t<=1)return[e];for(var n,r,o=[],i=0;i<t;i++){var a=xe(e[i]);0!==a&&(void 0===r&&(r=a<0),r===a<0?(n&&o.push(n),n=[e[i]]):n.push(e[i]))}return n&&o.push(n),o}(c),i=0;i<c.length;i++)for(a=0;a<c[i].length;a++)v(c[i][a])}return 1===c.length?c=c[0]:h="Multi"+h,{type:"Feature",geometry:{type:h,coordinates:c},properties:s,id:l,tileOrigin:[0,0],coord:""}}var Ce,je=function(){var e,t=(e=Oe().mark((function e(t,n,r,o){return Oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var i=n.getTile(t.z,t.x,t.y),a=[];i.features.map((function(e){var t=Se(o,r.x,r.y,r.z,e);a.push(t)})),e({layers:{geojsonvt:{features:a}}})})));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){we(i,r,o,a,c,"next",e)}function c(e){we(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e,n,r,o){return t.apply(this,arguments)}}();function ke(e){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach((function(t){Me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(){Ae=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==ke(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function Le(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function Re(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Le(i,r,o,a,c,"next",e)}function c(e){Le(i,r,o,a,c,"throw",e)}a(void 0)}))}}!function(e){e.IMAGE="image",e.ARRAYBUFFER="arraybuffer"}(Ce||(Ce={}));var Ne=function(){var e=Re(Ae().mark((function e(t,n,r,o){var i;return Ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={url:Fe(t,n)},e.abrupt("return",new Promise((function(e,t){Ie(r,i,(function(n,r){n?t(n):r&&e(r)}),o)})));case 2:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),Ie=function(){var e=Re(Ae().mark((function e(t,n,r,o){var i,a,c,u,s,l,f,p,d,h,v,y,m,g,b;return Ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Array.isArray(n.url)){e.next=35;break}i=[],a=[],c=[],u=n.url,s=0;case 6:if(!(s<u.length)){e.next=20;break}return l=Te(Te({},n),{},{url:u[s]}),e.next=10,Object(M.ub)(Te(Te({},l),{},{type:"arrayBuffer"}));case 10:f=e.sent,p=f.err,d=f.data,h=f.xhr,p&&c.push(p),a.push(h),i.push(d);case 17:s++,e.next=6;break;case 20:if(De(t,a),!(c.length>0)){e.next=24;break}return r(c,null),e.abrupt("return");case 24:return e.next=26,o(i);case 26:v=e.sent,y=v.rasterData,m=v.width,g=v.height,0,8e3,r(null,{data:y,width:m,height:g,min:0,max:8e3}),e.next=37;break;case 35:b=Object(M.X)(n,(function(e,t){e?r(e):t&&Object(M.w)(t,r,o)})),De(t,[b]);case 37:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}();function De(e,t){e.xhrCancel=function(){t.map((function(e){e.abort()}))}}function Fe(e,t){return Array.isArray(e)?e.map((function(e){return Object(M.gb)(e,t)})):Object(M.gb)(e,t)}var ze=function(){var e=Re(Ae().mark((function e(t,n,r){var o;return Ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Object(M.gb)(Array.isArray(t)?t[0]:t,n),e.abrupt("return",new Promise((function(e,t){var n=Object(M.Z)({url:o},(function(n,r){n?t(n):r&&e(r)}));r.xhrCancel=function(){return n.abort()}})));case 2:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),Be=function(){return{rasterData:new Uint8Array([0]),width:1,height:1}};function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){He(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ge={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},We=[Ce.ARRAYBUFFER];function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(){Ze=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==Ye(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function Je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $e(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}var et={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},tt=function(){var e,t=(e=Ze().mark((function e(t){return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var n=Je(t.bounds,4),r=n[0],o=n[1],i=n[2],a=n[3];e({layers:{testTile:{features:[{type:"Feature",properties:{key:t.x+"/"+t.y+"/"+t.z,textLng:(r+i)/2,textLat:(o+a)/2},geometry:{type:"LineString",coordinates:[[i,a],[i,o],[r,o],[r,o]]}}]}}})})));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){$e(i,r,o,a,c,"next",e)}function c(e){$e(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();var nt=n("PuIx"),rt=n.n(nt),ot=n("nDih"),it=n.n(ot),at=n("2q8g"),ct=n.n(at),ut=n("c2re"),st=n.n(ut),lt=n("Dxeu"),ft=n("Gpi5"),pt=n("ctih"),dt=n.n(pt);function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(e,t){var n=t.radius,r=void 0===n?40:n,o=t.maxZoom,i=void 0===o?18:o,a=t.minZoom,c=void 0===a?0:a,u=t.zoom,s=void 0===u?2:u;if(e.pointIndex){var l=e.pointIndex.getClusters(e.extent,Math.floor(s));return e.dataArray=l.map((function(e,t){return vt({coordinates:e.geometry.coordinates,_id:t+1},e.properties)})),e}var f=new dt.a({radius:r,minZoom:c,maxZoom:i}),p={type:"FeatureCollection",features:[]};return p.features=e.dataArray.map((function(e){return{type:"Feature",geometry:{type:"Point",coordinates:e.coordinates},properties:vt({},e)}})),f.load(p.features),f}function gt(e){if(0===e.length)return 0;for(var t,n=e[0],r=0,o=1;o<e.length;o++)t=n+1*e[o],Math.abs(n)>=Math.abs(e[o])?r+=n-t+e[o]:r+=e[o]-t+n,n=t;return n+1*r}var bt={min:function(e){if(0===e.length)throw new Error("min requires at least one data point");for(var t=e[0],n=1;n<e.length;n++)e[n]<t&&(t=e[n]);return t},max:function(e){if(0===e.length)throw new Error("max requires at least one data point");for(var t=e[0],n=1;n<e.length;n++)e[n]>t&&(t=e[n]);return t},mean:function(e){if(0===e.length)throw new Error("mean requires at least one data point");return gt(e)/e.length},sum:gt};function Ot(e){return(Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){Pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Et(e,t){return(Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function St(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kt(e);if(t){var o=kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ct(this,n)}}function Ct(e,t){if(t&&("object"===Ot(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jt(e)}function jt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tt(e,t){if(Array.isArray(t))return t}var Mt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Et(e,t)}(c,e);var t,n,o,a=St(c);function c(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),Pt(jt(n=a.call(this)),"inited",!1),Pt(jt(n),"hooks",{init:new lt.c}),Pt(jt(n),"parser",{type:"geojson"}),Pt(jt(n),"transforms",[]),Pt(jt(n),"cluster",!1),Pt(jt(n),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),Pt(jt(n),"invalidExtent",!1),Pt(jt(n),"dataArrayChanged",!1),Pt(jt(n),"cfg",{}),n.originData=e,n.initCfg(t),n.init(),n}return t=c,(n=[{key:"getClusters",value:function(e){return this.clusterIndex.getClusters(this.caculClusterExtent(2),e)}},{key:"getClustersLeaves",value:function(e){return this.clusterIndex.getLeaves(e,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(e){var t=this,n=this.clusterOptions,r=n.method,o=void 0===r?"sum":r,a=n.field,c=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(e));this.clusterOptions.zoom=e,c.forEach((function(e){e.id||(e.properties.point_count=1)})),(a||ct()(o))&&(c=c.map((function(e){var n=e.id;if(n){var r,i=t.clusterIndex.getLeaves(n,1/0).map((function(e){return e.properties}));if(it()(o)&&a){var c=function(e,t){return e.map((function(e){return 1*e[t]}))}(i,a);r=bt[o](c)}ct()(o)&&(r=o(i)),e.properties.stat=r}else e.properties.point_count=1;return e}))),this.data=i("geojson")({type:"FeatureCollection",features:c}),this.executeTrans()}},{key:"getFeatureById",value:function(e){var t=this.parser.type;if("geojson"!==(void 0===t?"geojson":t)||this.cluster)return e<this.data.dataArray.length?this.data.dataArray[e]:"null";var n=e<this.originData.features.length?this.originData.features[e]:"null",r=st()(n);if(null!=r&&r.properties&&(0!==this.transforms.length||this.dataArrayChanged)){var o=this.data.dataArray.find((function(t){return t._id===e}));r.properties=o}return r}},{key:"updateFeaturePropertiesById",value:function(e,t){this.data.dataArray=this.data.dataArray.map((function(n){return n._id===e?_t(_t({},n),t):n})),this.dataArrayChanged=!0,this.emit("update")}},{key:"getFeatureId",value:function(e,t){var n=this.data.dataArray.find((function(n){return n[e]===t}));return null==n?void 0:n._id}},{key:"setData",value:function(e,t){this.originData=e,this.dataArrayChanged=!1,this.initCfg(t),this.init()}},{key:"destroy",value:function(){var e;this.removeAllListeners(),this.originData=null,this.clusterIndex=null,this.data=null,null===(e=this.tileset)||void 0===e||e.destroy()}},{key:"handleData",value:function(){var e=this;return new Promise((function(t,n){try{e.excuteParser(),e.initCluster(),e.executeTrans(),t({})}catch(r){n(r)}}))}},{key:"initCfg",value:function(e){this.cfg=rt()(this.cfg,e,Tt);var t=this.cfg;t&&(t.parser&&(this.parser=t.parser),t.transforms&&(this.transforms=t.transforms),this.cluster=t.cluster||!1,t.clusterOptions&&(this.cluster=!0,this.clusterOptions=_t(_t({},this.clusterOptions),t.clusterOptions)))}},{key:"init",value:function(){var e=this;this.inited=!1,this.handleData().then((function(){e.inited=!0,e.emit("sourceUpdate")}))}},{key:"excuteParser",value:function(){var e=this.parser,t=e.type||"geojson",n=i(t);this.data=n(this.originData,e),this.tileset=this.initTileset(),e.cancelExtent||(this.extent=Object(M.T)(this.data.dataArray),this.setCenter(this.extent),this.invalidExtent=this.extent[0]===this.extent[2]||this.extent[1]===this.extent[3])}},{key:"setCenter",value:function(e){this.center=[(e[0]+e[2])/2,(e[1]+e[3])/2],(isNaN(this.center[0])||isNaN(this.center[1]))&&(this.center=[108.92361111111111,34.54083333333333])}},{key:"initTileset",value:function(){var e=this.data.tilesetOptions;if(e)return this.tileset?(this.tileset.updateOptions(e),this.tileset):new M.n(_t({},e))}},{key:"executeTrans",value:function(){var e=this;this.transforms.forEach((function(t){var n=function(e){return r[e]}(t.type)(e.data,t);Object.assign(e.data,n)}))}},{key:"initCluster",value:function(){if(this.cluster){var e=this.clusterOptions||{};this.clusterIndex=mt(this.data,e)}}},{key:"caculClusterExtent",value:function(e){var t=[[-1/0,-1/0],[1/0,1/0]];return this.invalidExtent||(t=Object(M.Ab)(Object(M.x)(this.extent),e)),t[0].concat(t[1])}}])&&xt(t.prototype,n),o&&xt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(ft.EventEmitter);function At(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function Lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rt=Math.PI/3,Nt=[0,Rt,2*Rt,3*Rt,4*Rt,5*Rt];function It(e){return e[0]}function Dt(e){return e[1]}function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach((function(t){Bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){Wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}a("rasterTile",(function(e,t){var n=(null==t?void 0:t.dataType)||Ce.IMAGE,r=Ve(Ve(Ve({},Ge),t),{},{getTileData:function(r,o){switch(n){case Ce.IMAGE:return ze(e,r,o);case Ce.ARRAYBUFFER:return Ne(e,r,o,(null==t?void 0:t.format)||Be);default:return ze(e,r,o)}}});return{data:e,dataArray:[],tilesetOptions:r,isTile:!0}})),a("mvt",(function(e,t){var n=Array.isArray(e)?e[0]:e,r=F(F(F({},V),t),{},{getTileData:function(e,t){return H(n,e,t)}});return{data:n,dataArray:[],tilesetOptions:r,isTile:!0}})),a("geojsonvt",(function(e,t){var n=function(e){var t={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!0,debug:0};return void 0===e||void 0===e.geojsonvtOptions||(e.geojsonvtOptions.maxZoom&&(t.maxZoom=e.geojsonvtOptions.maxZoom),e.geojsonvtOptions.indexMaxZoom&&(t.indexMaxZoom=e.geojsonvtOptions.indexMaxZoom),e.geojsonvtOptions.indexMaxPoints&&(t.indexMaxPoints=e.geojsonvtOptions.indexMaxPoints),e.geojsonvtOptions.tolerance&&(t.tolerance=e.geojsonvtOptions.tolerance),e.geojsonvtOptions.extent&&(t.extent=e.geojsonvtOptions.extent),e.geojsonvtOptions.buffer&&(t.buffer=e.geojsonvtOptions.buffer),e.geojsonvtOptions.lineMetrics&&(t.lineMetrics=e.geojsonvtOptions.lineMetrics),e.geojsonvtOptions.promoteId&&(t.promoteId=e.geojsonvtOptions.promoteId),e.geojsonvtOptions.generateId&&(t.generateId=e.geojsonvtOptions.generateId),e.geojsonvtOptions.debug&&(t.debug=e.geojsonvtOptions.debug)),t}(t),r=n.extent||4096,o=function(e,t){return new he(e,t)}(e,n);return{data:e,dataArray:[],tilesetOptions:ge(ge(ge({},_e),t),{},{getTileData:function(e,t){return je(t,o,e,r)}}),isTile:!0}})),a("testTile",(function(e,t){return{data:e,dataArray:[],tilesetOptions:Xe(Xe(Xe({},et),t),{},{getTileData:function(e){return tt(e)}}),isTile:!0}})),a("geojson",(function(e,t){var n=[],r={};return e.features?(e.features=e.features.filter((function(e){var t=e.geometry;return null!=e&&t&&t.type&&t.coordinates&&t.coordinates.length>0})),m()(e,!0),0===e.features.length?{dataArray:[],featureKeys:r}:(O(e,(function(e,r){var o,i,a=(o=e,void 0===(i=null==t?void 0:t.featureId)?null:"id"===i&&o.id?o.id:o[i]?o[i]:o.properties&&o.properties[i]?function(e){for(var t=e.toString(),n=5381,r=t.length;r;)n=33*n^t.charCodeAt(--r);return n>>>0}(o.properties[i]+"")%1000019:null);null===a&&(a=r);var c=a,u=Object(w.b)(e),s=P(P({},e.properties),{},{coordinates:u,_id:c});n.push(s)})),{dataArray:n,featureKeys:r})):(e.features=[],{dataArray:[]})})),a("image",A),a("csv",(function(e,t){return j(v(e),t)})),a("json",j),a("raster",(function(e,t){var n=t.extent,r=t.width,o=t.height,i=t.min,a=t.max;return{_id:1,dataArray:[{_id:1,data:Array.from(e),width:r,height:o,min:i,max:a,coordinates:[[n[0],n[1]],[n[2],n[3]]]}]}})),c("cluster",mt),c("filter",(function(e,t){var n=t.callback;return n&&(e.dataArray=e.dataArray.filter(n)),e})),c("join",(function(e,t){var n=t.sourceField,r=t.targetField,o=t.data,i={};return o.forEach((function(e){i[e[n]]=e})),e.dataArray=e.dataArray.map((function(e){var t=e[r];return Gt(Gt({},e),i[t])})),e})),c("map",(function(e,t){var n=t.callback;return n&&(e.dataArray=e.dataArray.map(n)),e})),c("grid",(function(e,t){var n=e.dataArray,r=t.size,o=void 0===r?10:r,i=o/(2*Math.PI*6378e3)*(256<<20)/2,a=function(e,t){var n,r,o=1/0,i=-1/0,a=At(e);try{for(a.s();!(r=a.n()).done;){var c=r.value;n=c.coordinates[1],Number.isFinite(n)&&(o=n<o?n:o,i=n>i?n:i)}}catch(x){a.e(x)}finally{a.f()}var u=(s=t,l=(o+i)/2,d=s,f=d/6378e3*(180/Math.PI),p=function(e,t){return t/6378e3*(180/Math.PI)/Math.cos(e*Math.PI/180)}(l,s),{yOffset:f,xOffset:p});var s,l,f,p,d;if(u.xOffset<=0||u.yOffset<=0)return{gridHash:{},gridOffset:u};var h,v={},y=At(e);try{for(y.s();!(h=y.n()).done;){var m=h.value,g=m.coordinates[1],b=m.coordinates[0];if(Number.isFinite(g)&&Number.isFinite(b)){var O=Math.floor((g+90)/u.yOffset),w=Math.floor((b+180)/u.xOffset),_="".concat(O,"-").concat(w);v[_]=v[_]||{count:0,points:[]},v[_].count+=1,v[_].points.push(m)}}}catch(x){y.e(x)}finally{y.f()}return{gridHash:v,gridOffset:u}}(n,o);return{yOffset:i,xOffset:i,radius:i,type:"grid",dataArray:function(e,t,n){return Object.keys(e).reduce((function(r,o,i){var a=o.split("-"),c=parseInt(a[0],10),u=parseInt(a[1],10),s={};if(n.field&&n.method){var l=M.l.getColumn(e[o].points,n.field);s[n.method]=M.l.statMap[n.method](l)}return Object.assign(s,{_id:i,coordinates:Object(M.q)([t.xOffset*(u+.5)-180,t.yOffset*(c+.5)-90]),rawData:e[o].points,count:e[o].count}),r.push(s),r}),[])}(a.gridHash,a.gridOffset,t)}})),c("hexagon",(function(e,t){var n=e.dataArray,r=t.size,o=void 0===r?10:r,i=t.method,a=void 0===i?"sum":i,c=o/(2*Math.PI*6378e3)*(256<<20)/2,u=n.map((function(e){var t=Ut(Object(M.q)(e.coordinates),2),n=t[0],r=t[1];return zt(zt({},e),{},{coordinates:[n,r]})}));return{dataArray:function(){var e,t,n,r=0,o=0,i=1,a=1,c=It,u=Dt;function s(e){var r,o={},i=[],a=e.length;for(r=0;r<a;++r)if(!isNaN(l=+c.call(null,s=e[r],r,e))&&!isNaN(f=+u.call(null,s,r,e))){var s,l,f,p=Math.round(f/=n),d=Math.round(l=l/t-(1&p)/2),h=f-p;if(3*Math.abs(h)>1){var v=l-d,y=d+(l<d?-1:1)/2,m=p+(f<p?-1:1),g=l-y,b=f-m;v*v+h*h>g*g+b*b&&(d=y+(1&p?1:-1)/2,p=m)}var O=d+"-"+p,w=o[O];w?w.push(s):(i.push(w=o[O]=[s]),w.x=(d+(1&p)/2)*t,w.y=p*n)}return i}function l(e){var t=0,n=0;return Nt.map((function(r){var o=Math.sin(r)*e,i=-Math.cos(r)*e,a=o-t,c=i-n;return t=o,n=i,[a,c]}))}return s.hexagon=function(t){return"m"+l(null==t?e:+t).join("l")+"z"},s.centers=function(){for(var c=[],u=Math.round(o/n),s=Math.round(r/t),l=u*n;l<a+e;l+=n,++u)for(var f=s*t+(1&u)*t/2;f<i+t/2;f+=t)c.push([f,l]);return c},s.mesh=function(){var t=l(e).slice(0,4).join("l");return s.centers().map((function(e){return"M"+e+"m"+t})).join("")},s.x=function(e){return arguments.length?(c=e,s):c},s.y=function(e){return arguments.length?(u=e,s):u},s.radius=function(r){return arguments.length?(t=2*(e=+r)*Math.sin(Rt),n=1.5*e,s):e},s.size=function(e){return arguments.length?(r=o=0,i=+e[0],a=+e[1],s):[i-r,a-o]},s.extent=function(e){return arguments.length?(r=+e[0][0],o=+e[0][1],i=+e[1][0],a=+e[1][1],s):[[r,o],[i,a]]},s.radius(1)}().radius(c).x((function(e){return e.coordinates[0]})).y((function(e){return e.coordinates[1]}))(u).map((function(e,n){var r;if(t.field&&a){var o=M.l.getColumn(e,t.field);e[a]=M.l.statMap[a](o)}return Bt(r={},t.method,e[a]),Bt(r,"count",e.length),Bt(r,"rawData",e),Bt(r,"coordinates",[e.x,e.y]),Bt(r,"_id",n),r})),radius:c,xOffset:c,yOffset:c,type:"hexagon"}}));t.a=Mt},gdHq:function(e,t,n){var r,o,i,a,c=n("BkAM"),u=n("r8Ni"),s=n("Z18Y");e.exports=(r=!{toString:null}.propertyIsEnumerable("toString"),o=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],i=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),a=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},"function"!=typeof Object.keys||i?c((function(e){if(Object(e)!==e)return[];var t,n,c=[],l=i&&s(e);for(t in e)!u(t,e)||l&&"length"===t||(c[c.length]=t);if(r)for(n=o.length-1;n>=0;)u(t=o[n],e)&&!a(c,t)&&(c[c.length]=t),n-=1;return c})):c((function(e){return Object(e)!==e?[]:Object.keys(e)})))},gdfu:function(e,t,n){"use strict";n.r(t),n.d(t,"Affix",(function(){return r.a})),n.d(t,"Alert",(function(){return o.a})),n.d(t,"Anchor",(function(){return i.a})),n.d(t,"AutoComplete",(function(){return a.a})),n.d(t,"Avatar",(function(){return c.a})),n.d(t,"BackTop",(function(){return u.a})),n.d(t,"Badge",(function(){return s.a})),n.d(t,"Breadcrumb",(function(){return l.a})),n.d(t,"Button",(function(){return f.a})),n.d(t,"Calendar",(function(){return Et})),n.d(t,"Card",(function(){return Nr})),n.d(t,"Carousel",(function(){return Ir.a})),n.d(t,"Cascader",(function(){return qo})),n.d(t,"Checkbox",(function(){return ai})),n.d(t,"Col",(function(){return ci.a})),n.d(t,"Collapse",(function(){return ui.a})),n.d(t,"Comment",(function(){return li})),n.d(t,"ConfigProvider",(function(){return fi.a})),n.d(t,"DatePicker",(function(){return Ai})),n.d(t,"Descriptions",(function(){return Gi})),n.d(t,"Divider",(function(){return Wi.a})),n.d(t,"Drawer",(function(){return na})),n.d(t,"Dropdown",(function(){return ra.a})),n.d(t,"Empty",(function(){return oa.a})),n.d(t,"Form",(function(){return Xa})),n.d(t,"Grid",(function(){return qa.a})),n.d(t,"Image",(function(){return Ic})),n.d(t,"Input",(function(){return Dc.a})),n.d(t,"InputNumber",(function(){return au})),n.d(t,"Layout",(function(){return cu.a})),n.d(t,"List",(function(){return Wu})),n.d(t,"Mentions",(function(){return us})),n.d(t,"Menu",(function(){return ss.a})),n.d(t,"message",(function(){return ls.b})),n.d(t,"Modal",(function(){return fs.a})),n.d(t,"notification",(function(){return ps.a})),n.d(t,"PageHeader",(function(){return ds.a})),n.d(t,"Pagination",(function(){return Tu})),n.d(t,"Popconfirm",(function(){return ws})),n.d(t,"Popover",(function(){return hs.a})),n.d(t,"Progress",(function(){return Ks})),n.d(t,"Radio",(function(){return Xs.a})),n.d(t,"Rate",(function(){return il})),n.d(t,"Result",(function(){return al.a})),n.d(t,"Row",(function(){return cl.a})),n.d(t,"Segmented",(function(){return gl})),n.d(t,"Select",(function(){return gt.a})),n.d(t,"Skeleton",(function(){return jt.a})),n.d(t,"Slider",(function(){return Fl})),n.d(t,"Space",(function(){return zl.b})),n.d(t,"Spin",(function(){return Du})),n.d(t,"Statistic",(function(){return Zl})),n.d(t,"Steps",(function(){return af})),n.d(t,"Switch",(function(){return cf.a})),n.d(t,"Table",(function(){return ph})),n.d(t,"Tabs",(function(){return kr})),n.d(t,"Tag",(function(){return di.a})),n.d(t,"TimePicker",(function(){return gh})),n.d(t,"Timeline",(function(){return xh})),n.d(t,"Tooltip",(function(){return Na.a})),n.d(t,"Transfer",(function(){return zh})),n.d(t,"Tree",(function(){return Ad})),n.d(t,"TreeSelect",(function(){return cv})),n.d(t,"Typography",(function(){return uv.a})),n.d(t,"Upload",(function(){return $v})),n.d(t,"version",(function(){return ey}));var r=n("VNzZ"),o=n("+KLJ"),i=n("JsLm"),a=n("lrIw"),c=n("Tckk"),u=n("3LgI"),s=n("KrTs"),l=n("bE4q"),f=n("2/Rp"),p=n("wgY5"),d=n.n(p),h=n("5qS4"),v={getNow:function(){return d()()},getFixedDate:function(e){return d()(e,"YYYY-MM-DD")},getEndDate:function(e){return e.clone().endOf("month")},getWeekDay:function(e){var t=e.clone().locale("en_US");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,t){return e.clone().add(t,"year")},addMonth:function(e,t){return e.clone().add(t,"month")},addDate:function(e,t){return e.clone().add(t,"day")},setYear:function(e,t){return e.clone().year(t)},setMonth:function(e,t){return e.clone().month(t)},setDate:function(e,t){return e.clone().date(t)},setHour:function(e,t){return e.clone().hour(t)},setMinute:function(e,t){return e.clone().minute(t)},setSecond:function(e,t){return e.clone().second(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return d()().locale(e).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.clone().locale(e).weekday(0)},getWeek:function(e,t){return t.clone().locale(e).week()},getShortWeekDays:function(e){return d()().locale(e).localeData().weekdaysMin()},getShortMonths:function(e){return d()().locale(e).localeData().monthsShort()},format:function(e,t,n){return t.clone().locale(e).format(n)},parse:function(e,t,n){for(var r=[],o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){var c=(i=i.replace(/wo/g,"w").replace(/Wo/g,"W")).match(/[-YyMmDdHhSsWwGg]+/g),u=a.match(/[-\d]+/g);c&&u?(i=c.join(""),a=u.join("")):r.push(i.replace(/o/g,""))}var s=d()(a,i,e,!0);if(s.isValid())return s}for(var l=0;l<r.length;l+=1){var f=d()(t,r[l],e,!1);if(f.isValid())return Object(h.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),f}return null}}},y=n("zjfJ"),m=n("cxan"),g=n("zygG"),b=n("O94r"),O=n.n(b),w=n("v9+8"),_=n.n(w),x=n("9fIP"),E=n("MMYH"),S=n("8K1b"),C=n("AqVP"),j=n("Czhu"),k=n("ERkP"),P=n.n(k),T=n("MSM+"),M=n("4wDe"),A=n("tmJt"),L=k.createContext({}),R={visibility:"hidden"};var N=function(e){var t=e.prefixCls,n=e.prevIcon,r=void 0===n?"‹":n,o=e.nextIcon,i=void 0===o?"›":o,a=e.superPrevIcon,c=void 0===a?"«":a,u=e.superNextIcon,s=void 0===u?"»":u,l=e.onSuperPrev,f=e.onSuperNext,p=e.onPrev,d=e.onNext,h=e.children,v=k.useContext(L),y=v.hideNextBtn,m=v.hidePrevBtn;return k.createElement("div",{className:t},l&&k.createElement("button",{type:"button",onClick:l,tabIndex:-1,className:"".concat(t,"-super-prev-btn"),style:m?R:{}},c),p&&k.createElement("button",{type:"button",onClick:p,tabIndex:-1,className:"".concat(t,"-prev-btn"),style:m?R:{}},r),k.createElement("div",{className:"".concat(t,"-view")},h),d&&k.createElement("button",{type:"button",onClick:d,tabIndex:-1,className:"".concat(t,"-next-btn"),style:y?R:{}},i),f&&k.createElement("button",{type:"button",onClick:f,tabIndex:-1,className:"".concat(t,"-super-next-btn"),style:y?R:{}},s))};var I=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,o=e.onPrevDecades,i=e.onNextDecades;if(k.useContext(L).hideHeader)return null;var a="".concat(t,"-header"),c=n.getYear(r),u=Math.floor(c/te)*te,s=u+te-1;return k.createElement(N,Object(m.a)({},e,{prefixCls:a,onSuperPrev:o,onSuperNext:i}),u,"-",s)};function D(e,t,n,r,o){var i=e.setHour(t,n);return i=e.setMinute(i,r),i=e.setSecond(i,o)}function F(e,t,n){if(!n)return t;var r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n))}function z(e,t){var n=e.getYear(t),r=e.getMonth(t)+1,o=e.getEndDate(e.getFixedDate("".concat(n,"-").concat(r,"-01"))),i=e.getDate(o),a=r<10?"0".concat(r):"".concat(r);return"".concat(n,"-").concat(a,"-").concat(i)}function B(e){for(var t=e.prefixCls,n=e.disabledDate,r=e.onSelect,o=e.picker,i=e.rowNum,a=e.colNum,c=e.prefixColumn,u=e.rowClassName,s=e.baseDate,l=e.getCellClassName,f=e.getCellText,p=e.getCellNode,d=e.getCellDate,h=e.generateConfig,v=e.titleCell,m=e.headerCells,g=k.useContext(L),b=g.onDateMouseEnter,w=g.onDateMouseLeave,_=g.mode,x="".concat(t,"-cell"),E=[],S=0;S<i;S+=1){for(var C=[],P=void 0,T=function(e){var t,i=d(s,S*a+e),u=ve({cellDate:i,mode:_,disabledDate:n,generateConfig:h});0===e&&(P=i,c&&C.push(c(P)));var m=v&&v(i);C.push(k.createElement("td",{key:e,title:m,className:O()(x,Object(j.a)((t={},Object(y.a)(t,"".concat(x,"-disabled"),u),Object(y.a)(t,"".concat(x,"-start"),1===f(i)||"year"===o&&Number(m)%10==0),Object(y.a)(t,"".concat(x,"-end"),m===z(h,i)||"year"===o&&Number(m)%10==9),t),l(i))),onClick:function(){u||r(i)},onMouseEnter:function(){!u&&b&&b(i)},onMouseLeave:function(){!u&&w&&w(i)}},p?p(i):k.createElement("div",{className:"".concat(x,"-inner")},f(i))))},M=0;M<a;M+=1)T(M);E.push(k.createElement("tr",{key:S,className:u&&u(P)},C))}return k.createElement("div",{className:"".concat(t,"-body")},k.createElement("table",{className:"".concat(t,"-content")},m&&k.createElement("thead",null,k.createElement("tr",null,m)),k.createElement("tbody",null,E)))}var U=function(e){var t=ee-1,n=e.prefixCls,r=e.viewDate,o=e.generateConfig,i="".concat(n,"-cell"),a=o.getYear(r),c=Math.floor(a/ee)*ee,u=Math.floor(a/te)*te,s=u+te-1,l=o.setYear(r,u-Math.ceil((12*ee-te)/2));return k.createElement(B,Object(m.a)({},e,{rowNum:4,colNum:3,baseDate:l,getCellText:function(e){var n=o.getYear(e);return"".concat(n,"-").concat(n+t)},getCellClassName:function(e){var n,r=o.getYear(e),a=r+t;return n={},Object(y.a)(n,"".concat(i,"-in-view"),u<=r&&a<=s),Object(y.a)(n,"".concat(i,"-selected"),r===c),n},getCellDate:function(e,t){return o.addYear(e,t*ee)}}))},V=n("fGyu"),H=n("jiyB"),G=n("c9Qg"),W=new Map;function Y(e,t,n){if(W.get(e)&&cancelAnimationFrame(W.get(e)),n<=0)W.set(e,requestAnimationFrame((function(){e.scrollTop=t})));else{var r=(t-e.scrollTop)/n*10;W.set(e,requestAnimationFrame((function(){e.scrollTop+=r,e.scrollTop!==t&&Y(e,t,n-10)})))}}function K(e,t){var n=t.onLeftRight,r=t.onCtrlLeftRight,o=t.onUpDown,i=t.onPageUpDown,a=t.onEnter,c=e.which,u=e.ctrlKey,s=e.metaKey;switch(c){case A.a.LEFT:if(u||s){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case A.a.RIGHT:if(u||s){if(r)return r(1),!0}else if(n)return n(1),!0;break;case A.a.UP:if(o)return o(-1),!0;break;case A.a.DOWN:if(o)return o(1),!0;break;case A.a.PAGE_UP:if(i)return i(-1),!0;break;case A.a.PAGE_DOWN:if(i)return i(1),!0;break;case A.a.ENTER:if(a)return a(),!0}return!1}function X(e,t,n,r){var o=e;if(!o)switch(t){case"time":o=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":o="gggg-wo";break;case"month":o="YYYY-MM";break;case"quarter":o="YYYY-[Q]Q";break;case"year":o="YYYY";break;default:o=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return o}function q(e,t,n){var r="time"===e?8:10,o="function"==typeof t?t(n.getNow()).length:t.length;return Math.max(r,o)+2}var Z=null,J=new Set;var Q={year:function(e){return"month"===e||"date"===e?"year":e},month:function(e){return"date"===e?"month":e},quarter:function(e){return"month"===e||"date"===e?"quarter":e},week:function(e){return"date"===e?"week":e},time:null,date:null};function $(e,t){return e.some((function(e){return e&&e.contains(t)}))}var ee=10,te=10*ee;var ne=function(e){var t=e.prefixCls,n=e.onViewDateChange,r=e.generateConfig,o=e.viewDate,i=e.operationRef,a=e.onSelect,c=e.onPanelChange,u="".concat(t,"-decade-panel");i.current={onKeyDown:function(e){return K(e,{onLeftRight:function(e){a(r.addYear(o,e*ee),"key")},onCtrlLeftRight:function(e){a(r.addYear(o,e*te),"key")},onUpDown:function(e){a(r.addYear(o,e*ee*3),"key")},onEnter:function(){c("year",o)}})}};var s=function(e){var t=r.addYear(o,e*te);n(t),c(null,t)};return k.createElement("div",{className:u},k.createElement(I,Object(m.a)({},e,{prefixCls:t,onPrevDecades:function(){s(-1)},onNextDecades:function(){s(1)}})),k.createElement(U,Object(m.a)({},e,{prefixCls:t,onSelect:function(e){a(e,"mouse"),c("year",e)}})))};function re(e,t){return!e&&!t||!(!e||!t)&&void 0}function oe(e,t,n){var r=re(t,n);return"boolean"==typeof r?r:e.getYear(t)===e.getYear(n)}function ie(e,t){return Math.floor(e.getMonth(t)/3)+1}function ae(e,t,n){var r=re(t,n);return"boolean"==typeof r?r:oe(e,t,n)&&ie(e,t)===ie(e,n)}function ce(e,t,n){var r=re(t,n);return"boolean"==typeof r?r:oe(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function ue(e,t,n){var r=re(t,n);return"boolean"==typeof r?r:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function se(e,t,n,r){var o=re(n,r);return"boolean"==typeof o?o:e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}function le(e,t,n){return ue(e,t,n)&&function(e,t,n){var r=re(t,n);return"boolean"==typeof r?r:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}(e,t,n)}function fe(e,t,n,r){return!!(t&&n&&r)&&(!ue(e,t,r)&&!ue(e,n,r)&&e.isAfter(r,t)&&e.isAfter(n,r))}function pe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*r);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function de(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return"function"==typeof o?o(e):n.locale.format(r.locale,e,o)}function he(e,t){var n=t.generateConfig,r=t.locale,o=t.formatList;return e&&"function"!=typeof o[0]?n.locale.parse(r.locale,e,o):null}function ve(e){var t=e.cellDate,n=e.mode,r=e.disabledDate,o=e.generateConfig;if(!r)return!1;var i=function(e,n,i){for(var a=n;a<=i;){var c=void 0;switch(e){case"date":if(c=o.setDate(t,a),!r(c))return!1;break;case"month":if(!ve({cellDate:c=o.setMonth(t,a),mode:"month",generateConfig:o,disabledDate:r}))return!1;break;case"year":if(!ve({cellDate:c=o.setYear(t,a),mode:"year",generateConfig:o,disabledDate:r}))return!1}a+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":return i("date",1,o.getDate(o.getEndDate(t)));case"quarter":var a=3*Math.floor(o.getMonth(t)/3);return i("month",a,a+2);case"year":return i("month",0,11);case"decade":var c=o.getYear(t),u=Math.floor(c/ee)*ee;return i("year",u,u+ee-1)}}var ye=function(e){if(k.useContext(L).hideHeader)return null;var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,i=e.format,a="".concat(t,"-header");return k.createElement(N,{prefixCls:a},o?de(o,{locale:r,format:i,generateConfig:n}):" ")},me=n("p2vu");var ge=function(e){var t=e.prefixCls,n=e.units,r=e.onSelect,o=e.value,i=e.active,a=e.hideDisabledOptions,c="".concat(t,"-cell"),u=k.useContext(L).open,s=Object(k.useRef)(null),l=Object(k.useRef)(new Map),f=Object(k.useRef)();return Object(k.useLayoutEffect)((function(){var e=l.current.get(o);e&&!1!==u&&Y(s.current,e.offsetTop,120)}),[o]),Object(k.useLayoutEffect)((function(){if(u){var e=l.current.get(o);e&&(f.current=(t=e,n=function(){Y(s.current,e.offsetTop,0)},function e(){Object(G.a)(t)?n():r=Object(H.a)((function(){e()}))}(),function(){H.a.cancel(r)}))}var t,n,r;return function(){var e;null===(e=f.current)||void 0===e||e.call(f)}}),[u]),k.createElement("ul",{className:O()("".concat(t,"-column"),Object(y.a)({},"".concat(t,"-column-active"),i)),ref:s,style:{position:"relative"}},n.map((function(e){var t;return a&&e.disabled?null:k.createElement("li",{key:e.value,ref:function(t){l.current.set(e.value,t)},className:O()(c,(t={},Object(y.a)(t,"".concat(c,"-disabled"),e.disabled),Object(y.a)(t,"".concat(c,"-selected"),o===e.value),t)),onClick:function(){e.disabled||r(e.value)}},k.createElement("div",{className:"".concat(c,"-inner")},e.label))})))};function be(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(e);return r}function Oe(e){return null==e?[]:Array.isArray(e)?e:[e]}function we(e){var t={};return Object.keys(e).forEach((function(n){"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n&&"name"!==n||"data-__"===n.substr(0,7)||(t[n]=e[n])})),t}function _e(e,t){return e?e[t]:null}function xe(e,t,n){var r=[_e(e,0),_e(e,1)];return r[n]="function"==typeof t?t(r[n]):t,r[0]||r[1]?r:null}function Ee(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n+=1)if(e[n].disabled!==t[n].disabled)return!0;return!1}function Se(e,t,n,r){for(var o=[],i=e;i<=t;i+=n)o.push({label:be(i,2),value:i,disabled:(r||[]).includes(i)});return o}var Ce=function(e){var t,n=e.generateConfig,r=e.prefixCls,o=e.operationRef,i=e.activeColumnIndex,a=e.value,c=e.showHour,u=e.showMinute,s=e.showSecond,l=e.use12Hours,f=e.hourStep,p=void 0===f?1:f,d=e.minuteStep,h=void 0===d?1:d,v=e.secondStep,y=void 0===v?1:v,m=e.disabledHours,b=e.disabledMinutes,O=e.disabledSeconds,w=e.disabledTime,_=e.hideDisabledOptions,x=e.onSelect,E=[],S="".concat(r,"-content"),C="".concat(r,"-time-panel"),P=a?n.getHour(a):-1,T=P,M=a?n.getMinute(a):-1,A=a?n.getSecond(a):-1,L=n.getNow(),R=k.useMemo((function(){if(w){var e=w(L);return[e.disabledHours,e.disabledMinutes,e.disabledSeconds]}return[m,b,O]}),[m,b,O,w,L]),N=Object(g.a)(R,3),I=N[0],F=N[1],z=N[2],B=function(e,t,r,o){var i=a||n.getNow(),c=Math.max(0,t),u=Math.max(0,r),s=Math.max(0,o);return i=D(n,i,l&&e?c+12:c,u,s)},U=Se(0,23,p,I&&I()),V=Object(me.a)((function(){return U}),U,Ee);l&&(t=T>=12,T%=12);var H=k.useMemo((function(){if(!l)return[!1,!1];var e=[!0,!0];return V.forEach((function(t){var n=t.disabled,r=t.value;n||(r>=12?e[1]=!1:e[0]=!1)})),e}),[l,V]),G=Object(g.a)(H,2),W=G[0],Y=G[1],K=k.useMemo((function(){return l?V.filter(t?function(e){return e.value>=12}:function(e){return e.value<12}).map((function(e){var t=e.value%12,n=0===t?"12":be(t,2);return Object(j.a)(Object(j.a)({},e),{},{label:n,value:t})})):V}),[l,t,V]),X=Se(0,59,h,F&&F(P)),q=Se(0,59,y,z&&z(P,M));function Z(e,t,n,r,o){!1!==e&&E.push({node:k.cloneElement(t,{prefixCls:C,value:n,active:i===E.length,onSelect:o,units:r,hideDisabledOptions:_}),onSelect:o,value:n,units:r})}o.current={onUpDown:function(e){var t=E[i];if(t)for(var n=t.units.findIndex((function(e){return e.value===t.value})),r=t.units.length,o=1;o<r;o+=1){var a=t.units[(n+e*o+r)%r];if(!0!==a.disabled){t.onSelect(a.value);break}}}},Z(c,k.createElement(ge,{key:"hour"}),T,K,(function(e){x(B(t,e,M,A),"mouse")})),Z(u,k.createElement(ge,{key:"minute"}),M,X,(function(e){x(B(t,T,e,A),"mouse")})),Z(s,k.createElement(ge,{key:"second"}),A,q,(function(e){x(B(t,T,M,e),"mouse")}));var J=-1;return"boolean"==typeof t&&(J=t?1:0),Z(!0===l,k.createElement(ge,{key:"12hours"}),J,[{label:"AM",value:0,disabled:W},{label:"PM",value:1,disabled:Y}],(function(e){x(B(!!e,T,M,A),"mouse")})),k.createElement("div",{className:S},E.map((function(e){return e.node})))};var je=function(e){var t=e.generateConfig,n=e.format,r=void 0===n?"HH:mm:ss":n,o=e.prefixCls,i=e.active,a=e.operationRef,c=e.showHour,u=e.showMinute,s=e.showSecond,l=e.use12Hours,f=void 0!==l&&l,p=e.onSelect,d=e.value,h="".concat(o,"-time-panel"),v=k.useRef(),b=k.useState(-1),w=Object(g.a)(b,2),_=w[0],x=w[1],E=[c,u,s,f].filter((function(e){return!1!==e})).length;return a.current={onKeyDown:function(e){return K(e,{onLeftRight:function(e){x((_+e+E)%E)},onUpDown:function(e){-1===_?x(0):v.current&&v.current.onUpDown(e)},onEnter:function(){p(d||t.getNow(),"key"),x(-1)}})},onBlur:function(){x(-1)}},k.createElement("div",{className:O()(h,Object(y.a)({},"".concat(h,"-active"),i))},k.createElement(ye,Object(m.a)({},e,{format:r,prefixCls:o})),k.createElement(Ce,Object(m.a)({},e,{prefixCls:o,activeColumnIndex:_,operationRef:v})))},ke=k.createContext({});function Pe(e){var t=e.cellPrefixCls,n=e.generateConfig,r=e.rangedValue,o=e.hoverRangedValue,i=e.isInView,a=e.isSameCell,c=e.offsetCell,u=e.today,s=e.value;return function(e){var l,f=c(e,-1),p=c(e,1),d=_e(r,0),h=_e(r,1),v=_e(o,0),m=_e(o,1),g=fe(n,v,m,e);function b(e){return a(d,e)}function O(e){return a(h,e)}var w=a(v,e),_=a(m,e),x=(g||_)&&(!i(f)||O(f)),E=(g||w)&&(!i(p)||b(p));return l={},Object(y.a)(l,"".concat(t,"-in-view"),i(e)),Object(y.a)(l,"".concat(t,"-in-range"),fe(n,d,h,e)),Object(y.a)(l,"".concat(t,"-range-start"),b(e)),Object(y.a)(l,"".concat(t,"-range-end"),O(e)),Object(y.a)(l,"".concat(t,"-range-start-single"),b(e)&&!h),Object(y.a)(l,"".concat(t,"-range-end-single"),O(e)&&!d),Object(y.a)(l,"".concat(t,"-range-start-near-hover"),b(e)&&(a(f,v)||fe(n,v,m,f))),Object(y.a)(l,"".concat(t,"-range-end-near-hover"),O(e)&&(a(p,m)||fe(n,v,m,p))),Object(y.a)(l,"".concat(t,"-range-hover"),g),Object(y.a)(l,"".concat(t,"-range-hover-start"),w),Object(y.a)(l,"".concat(t,"-range-hover-end"),_),Object(y.a)(l,"".concat(t,"-range-hover-edge-start"),x),Object(y.a)(l,"".concat(t,"-range-hover-edge-end"),E),Object(y.a)(l,"".concat(t,"-range-hover-edge-start-near-range"),x&&a(f,h)),Object(y.a)(l,"".concat(t,"-range-hover-edge-end-near-range"),E&&a(p,d)),Object(y.a)(l,"".concat(t,"-today"),a(u,e)),Object(y.a)(l,"".concat(t,"-selected"),a(s,e)),l}}var Te=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.prefixColumn,o=e.locale,i=e.rowCount,a=e.viewDate,c=e.value,u=e.dateRender,s=k.useContext(ke),l=s.rangedValue,f=s.hoverRangedValue,p=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(o.locale,n,a),d="".concat(t,"-cell"),h=n.locale.getWeekFirstDay(o.locale),v=n.getNow(),y=[],g=o.shortWeekDays||(n.locale.getShortWeekDays?n.locale.getShortWeekDays(o.locale):[]);r&&y.push(k.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var b=0;b<7;b+=1)y.push(k.createElement("th",{key:b},g[(b+h)%7]));var O=Pe({cellPrefixCls:d,today:v,value:c,generateConfig:n,rangedValue:r?null:l,hoverRangedValue:r?null:f,isSameCell:function(e,t){return ue(n,e,t)},isInView:function(e){return ce(n,e,a)},offsetCell:function(e,t){return n.addDate(e,t)}}),w=u?function(e){return u(e,v)}:void 0;return k.createElement(B,Object(m.a)({},e,{rowNum:i,colNum:7,baseDate:p,getCellNode:w,getCellText:n.getDate,getCellClassName:O,getCellDate:n.addDate,titleCell:function(e){return de(e,{locale:o,format:"YYYY-MM-DD",generateConfig:n})},headerCells:y}))};var Me=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.viewDate,i=e.onNextMonth,a=e.onPrevMonth,c=e.onNextYear,u=e.onPrevYear,s=e.onYearClick,l=e.onMonthClick;if(k.useContext(L).hideHeader)return null;var f="".concat(t,"-header"),p=r.shortMonths||(n.locale.getShortMonths?n.locale.getShortMonths(r.locale):[]),d=n.getMonth(o),h=k.createElement("button",{type:"button",key:"year",onClick:s,tabIndex:-1,className:"".concat(t,"-year-btn")},de(o,{locale:r,format:r.yearFormat,generateConfig:n})),v=k.createElement("button",{type:"button",key:"month",onClick:l,tabIndex:-1,className:"".concat(t,"-month-btn")},r.monthFormat?de(o,{locale:r,format:r.monthFormat,generateConfig:n}):p[d]),y=r.monthBeforeYear?[v,h]:[h,v];return k.createElement(N,Object(m.a)({},e,{prefixCls:f,onSuperPrev:u,onPrev:a,onNext:i,onSuperNext:c}),y)};var Ae=function(e){var t=e.prefixCls,n=e.panelName,r=void 0===n?"date":n,o=e.keyboardConfig,i=e.active,a=e.operationRef,c=e.generateConfig,u=e.value,s=e.viewDate,l=e.onViewDateChange,f=e.onPanelChange,p=e.onSelect,d="".concat(t,"-").concat(r,"-panel");a.current={onKeyDown:function(e){return K(e,Object(j.a)({onLeftRight:function(e){p(c.addDate(u||s,e),"key")},onCtrlLeftRight:function(e){p(c.addYear(u||s,e),"key")},onUpDown:function(e){p(c.addDate(u||s,7*e),"key")},onPageUpDown:function(e){p(c.addMonth(u||s,e),"key")}},o))}};var h=function(e){var t=c.addYear(s,e);l(t),f(null,t)},v=function(e){var t=c.addMonth(s,e);l(t),f(null,t)};return k.createElement("div",{className:O()(d,Object(y.a)({},"".concat(d,"-active"),i))},k.createElement(Me,Object(m.a)({},e,{prefixCls:t,value:u,viewDate:s,onPrevYear:function(){h(-1)},onNextYear:function(){h(1)},onPrevMonth:function(){v(-1)},onNextMonth:function(){v(1)},onMonthClick:function(){f("month",s)},onYearClick:function(){f("year",s)}})),k.createElement(Te,Object(m.a)({},e,{onSelect:function(e){return p(e,"mouse")},prefixCls:t,value:u,viewDate:s,rowCount:6})))},Le=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}("date","time");var Re=function(e){var t=e.prefixCls,n=e.operationRef,r=e.generateConfig,o=e.value,i=e.defaultValue,a=e.disabledTime,c=e.showTime,u=e.onSelect,s="".concat(t,"-datetime-panel"),l=k.useState(null),f=Object(g.a)(l,2),p=f[0],d=f[1],h=k.useRef({}),v=k.useRef({}),b="object"===Object(M.a)(c)?Object(j.a)({},c):{},w=function(e){v.current.onBlur&&v.current.onBlur(e),d(null)};n.current={onKeyDown:function(e){if(e.which===A.a.TAB){var t=(n=e.shiftKey?-1:1,r=Le.indexOf(p)+n,Le[r]||null);return d(t),t&&e.preventDefault(),!0}var n,r;if(p){var o="date"===p?h:v;return o.current&&o.current.onKeyDown&&o.current.onKeyDown(e),!0}return!![A.a.LEFT,A.a.RIGHT,A.a.UP,A.a.DOWN].includes(e.which)&&(d("date"),!0)},onBlur:w,onClose:w};var _=function(e,t){var n=e;"date"===t&&!o&&b.defaultValue?(n=r.setHour(n,r.getHour(b.defaultValue)),n=r.setMinute(n,r.getMinute(b.defaultValue)),n=r.setSecond(n,r.getSecond(b.defaultValue))):"time"===t&&!o&&i&&(n=r.setYear(n,r.getYear(i)),n=r.setMonth(n,r.getMonth(i)),n=r.setDate(n,r.getDate(i))),u&&u(n,"mouse")},x=a?a(o||null):{};return k.createElement("div",{className:O()(s,Object(y.a)({},"".concat(s,"-active"),p))},k.createElement(Ae,Object(m.a)({},e,{operationRef:h,active:"date"===p,onSelect:function(e){_(F(r,e,o||"object"!==Object(M.a)(c)?null:c.defaultValue),"date")}})),k.createElement(je,Object(m.a)({},e,{format:void 0},b,x,{disabledTime:null,defaultValue:void 0,operationRef:v,active:"time"===p,onSelect:function(e){_(e,"time")}})))};var Ne=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,i="".concat(t,"-cell"),a="".concat(t,"-week-panel-row");return k.createElement(Ae,Object(m.a)({},e,{panelName:"week",prefixColumn:function(e){return k.createElement("td",{key:"week",className:O()(i,"".concat(i,"-week"))},n.locale.getWeek(r.locale,e))},rowClassName:function(e){return O()(a,Object(y.a)({},"".concat(a,"-selected"),se(n,r.locale,o,e)))},keyboardConfig:{onLeftRight:null}}))};var Ie=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.viewDate,i=e.onNextYear,a=e.onPrevYear,c=e.onYearClick;if(k.useContext(L).hideHeader)return null;var u="".concat(t,"-header");return k.createElement(N,Object(m.a)({},e,{prefixCls:u,onSuperPrev:a,onSuperNext:i}),k.createElement("button",{type:"button",onClick:c,className:"".concat(t,"-year-btn")},de(o,{locale:r,format:r.yearFormat,generateConfig:n})))};var De=function(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.viewDate,i=e.generateConfig,a=e.monthCellRender,c=k.useContext(ke),u=c.rangedValue,s=c.hoverRangedValue,l=Pe({cellPrefixCls:"".concat(t,"-cell"),value:r,generateConfig:i,rangedValue:u,hoverRangedValue:s,isSameCell:function(e,t){return ce(i,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return i.addMonth(e,t)}}),f=n.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(n.locale):[]),p=i.setMonth(o,0),d=a?function(e){return a(e,n)}:void 0;return k.createElement(B,Object(m.a)({},e,{rowNum:4,colNum:3,baseDate:p,getCellNode:d,getCellText:function(e){return n.monthFormat?de(e,{locale:n,format:n.monthFormat,generateConfig:i}):f[i.getMonth(e)]},getCellClassName:l,getCellDate:i.addMonth,titleCell:function(e){return de(e,{locale:n,format:"YYYY-MM",generateConfig:i})}}))};var Fe=function(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,o=e.generateConfig,i=e.value,a=e.viewDate,c=e.onPanelChange,u=e.onSelect,s="".concat(t,"-month-panel");n.current={onKeyDown:function(e){return K(e,{onLeftRight:function(e){u(o.addMonth(i||a,e),"key")},onCtrlLeftRight:function(e){u(o.addYear(i||a,e),"key")},onUpDown:function(e){u(o.addMonth(i||a,3*e),"key")},onEnter:function(){c("date",i||a)}})}};var l=function(e){var t=o.addYear(a,e);r(t),c(null,t)};return k.createElement("div",{className:s},k.createElement(Ie,Object(m.a)({},e,{prefixCls:t,onPrevYear:function(){l(-1)},onNextYear:function(){l(1)},onYearClick:function(){c("year",a)}})),k.createElement(De,Object(m.a)({},e,{prefixCls:t,onSelect:function(e){u(e,"mouse"),c("date",e)}})))};var ze=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.viewDate,i=e.onNextYear,a=e.onPrevYear,c=e.onYearClick;if(k.useContext(L).hideHeader)return null;var u="".concat(t,"-header");return k.createElement(N,Object(m.a)({},e,{prefixCls:u,onSuperPrev:a,onSuperNext:i}),k.createElement("button",{type:"button",onClick:c,className:"".concat(t,"-year-btn")},de(o,{locale:r,format:r.yearFormat,generateConfig:n})))};var Be=function(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.viewDate,i=e.generateConfig,a=k.useContext(ke),c=a.rangedValue,u=a.hoverRangedValue,s=Pe({cellPrefixCls:"".concat(t,"-cell"),value:r,generateConfig:i,rangedValue:c,hoverRangedValue:u,isSameCell:function(e,t){return ae(i,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return i.addMonth(e,3*t)}}),l=i.setDate(i.setMonth(o,0),1);return k.createElement(B,Object(m.a)({},e,{rowNum:1,colNum:4,baseDate:l,getCellText:function(e){return de(e,{locale:n,format:n.quarterFormat||"[Q]Q",generateConfig:i})},getCellClassName:s,getCellDate:function(e,t){return i.addMonth(e,3*t)},titleCell:function(e){return de(e,{locale:n,format:"YYYY-[Q]Q",generateConfig:i})}}))};var Ue=function(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,o=e.generateConfig,i=e.value,a=e.viewDate,c=e.onPanelChange,u=e.onSelect,s="".concat(t,"-quarter-panel");n.current={onKeyDown:function(e){return K(e,{onLeftRight:function(e){u(o.addMonth(i||a,3*e),"key")},onCtrlLeftRight:function(e){u(o.addYear(i||a,e),"key")},onUpDown:function(e){u(o.addYear(i||a,e),"key")}})}};var l=function(e){var t=o.addYear(a,e);r(t),c(null,t)};return k.createElement("div",{className:s},k.createElement(ze,Object(m.a)({},e,{prefixCls:t,onPrevYear:function(){l(-1)},onNextYear:function(){l(1)},onYearClick:function(){c("year",a)}})),k.createElement(Be,Object(m.a)({},e,{prefixCls:t,onSelect:function(e){u(e,"mouse")}})))};var Ve=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,o=e.onPrevDecade,i=e.onNextDecade,a=e.onDecadeClick;if(k.useContext(L).hideHeader)return null;var c="".concat(t,"-header"),u=n.getYear(r),s=Math.floor(u/Ge)*Ge,l=s+Ge-1;return k.createElement(N,Object(m.a)({},e,{prefixCls:c,onSuperPrev:o,onSuperNext:i}),k.createElement("button",{type:"button",onClick:a,className:"".concat(t,"-decade-btn")},s,"-",l))};var He=function(e){var t=e.prefixCls,n=e.value,r=e.viewDate,o=e.locale,i=e.generateConfig,a=k.useContext(ke),c=a.rangedValue,u=a.hoverRangedValue,s="".concat(t,"-cell"),l=i.getYear(r),f=Math.floor(l/Ge)*Ge,p=f+Ge-1,d=i.setYear(r,f-Math.ceil((12-Ge)/2)),h=Pe({cellPrefixCls:s,value:n,generateConfig:i,rangedValue:c,hoverRangedValue:u,isSameCell:function(e,t){return oe(i,e,t)},isInView:function(e){var t=i.getYear(e);return f<=t&&t<=p},offsetCell:function(e,t){return i.addYear(e,t)}});return k.createElement(B,Object(m.a)({},e,{rowNum:4,colNum:3,baseDate:d,getCellText:i.getYear,getCellClassName:h,getCellDate:i.addYear,titleCell:function(e){return de(e,{locale:o,format:"YYYY",generateConfig:i})}}))},Ge=10;var We=function(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,o=e.generateConfig,i=e.value,a=e.viewDate,c=e.sourceMode,u=e.onSelect,s=e.onPanelChange,l="".concat(t,"-year-panel");n.current={onKeyDown:function(e){return K(e,{onLeftRight:function(e){u(o.addYear(i||a,e),"key")},onCtrlLeftRight:function(e){u(o.addYear(i||a,e*Ge),"key")},onUpDown:function(e){u(o.addYear(i||a,3*e),"key")},onEnter:function(){s("date"===c?"date":"month",i||a)}})}};var f=function(e){var t=o.addYear(a,10*e);r(t),s(null,t)};return k.createElement("div",{className:l},k.createElement(Ve,Object(m.a)({},e,{prefixCls:t,onPrevDecade:function(){f(-1)},onNextDecade:function(){f(1)},onDecadeClick:function(){s("decade",a)}})),k.createElement(He,Object(m.a)({},e,{prefixCls:t,onSelect:function(e){s("date"===c?"date":"month",e),u(e,"mouse")}})))};function Ye(e,t,n){return n?k.createElement("div",{className:"".concat(e,"-footer-extra")},n(t)):null}function Ke(e){var t,n,r=e.prefixCls,o=e.rangeList,i=void 0===o?[]:o,a=e.components,c=void 0===a?{}:a,u=e.needConfirmButton,s=e.onNow,l=e.onOk,f=e.okDisabled,p=e.showNow,d=e.locale;if(i.length){var h=c.rangeItem||"span";t=k.createElement(k.Fragment,null,i.map((function(e){var t=e.label,n=e.onClick,o=e.onMouseEnter,i=e.onMouseLeave;return k.createElement("li",{key:t,className:"".concat(r,"-preset")},k.createElement(h,{onClick:n,onMouseEnter:o,onMouseLeave:i},t))})))}if(u){var v=c.button||"button";s&&!t&&!1!==p&&(t=k.createElement("li",{className:"".concat(r,"-now")},k.createElement("a",{className:"".concat(r,"-now-btn"),onClick:s},d.now))),n=u&&k.createElement("li",{className:"".concat(r,"-ok")},k.createElement(v,{disabled:f,onClick:l},d.ok))}return t||n?k.createElement("ul",{className:"".concat(r,"-ranges")},t,n):null}var Xe=function(e){var t,n=e.prefixCls,r=void 0===n?"rc-picker":n,o=e.className,i=e.style,a=e.locale,c=e.generateConfig,u=e.value,s=e.defaultValue,l=e.pickerValue,f=e.defaultPickerValue,p=e.disabledDate,d=e.mode,v=e.picker,b=void 0===v?"date":v,w=e.tabIndex,_=void 0===w?0:w,x=e.showNow,E=e.showTime,S=e.showToday,C=e.renderExtraFooter,P=e.hideHeader,R=e.onSelect,N=e.onChange,I=e.onPanelChange,z=e.onMouseDown,B=e.onPickerValueChange,U=e.onOk,V=e.components,H=e.direction,G=e.hourStep,W=void 0===G?1:G,Y=e.minuteStep,K=void 0===Y?1:Y,X=e.secondStep,q=void 0===X?1:X,Z="date"===b&&!!E||"time"===b,J=24%W==0,$=60%K==0,ee=60%q==0,te=k.useContext(L),re=te.operationRef,oe=te.panelRef,ie=te.onSelect,ae=te.hideRanges,ce=te.defaultOpenValue,ue=k.useContext(ke),se=ue.inRange,fe=ue.panelPosition,pe=ue.rangedValue,de=ue.hoverRangedValue,he=k.useRef({}),ve=k.useRef(!0),ye=Object(T.a)(null,{value:u,defaultValue:s,postState:function(e){return!e&&ce&&"time"===b?ce:e}}),me=Object(g.a)(ye,2),ge=me[0],be=me[1],Oe=Object(T.a)(null,{value:l,defaultValue:f||ge,postState:function(e){var t=c.getNow();if(!e)return t;if(!ge&&E){var n="object"===Object(M.a)(E)?E.defaultValue:s;return F(c,Array.isArray(e)?e[0]:e,n||t)}return Array.isArray(e)?e[0]:e}}),we=Object(g.a)(Oe,2),_e=we[0],xe=we[1],Ee=function(e){xe(e),B&&B(e)},Se=function(e){var t=Q[b];return t?t(e):e},Ce=Object(T.a)((function(){return"time"===b?"time":Se("date")}),{value:d}),Pe=Object(g.a)(Ce,2),Te=Pe[0],Me=Pe[1];k.useEffect((function(){Me(b)}),[b]);var Le,Ie=k.useState((function(){return Te})),De=Object(g.a)(Ie,2),ze=De[0],Be=De[1],Ve=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(Te===b||n)&&(be(e),R&&R(e),ie&&ie(e,t),!N||le(c,e,ge)||(null==p?void 0:p(e))||N(e))},He=function(e){return he.current&&he.current.onKeyDown?([A.a.LEFT,A.a.RIGHT,A.a.UP,A.a.DOWN,A.a.PAGE_UP,A.a.PAGE_DOWN,A.a.ENTER].includes(e.which)&&e.preventDefault(),he.current.onKeyDown(e)):(Object(h.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)};re&&"right"!==fe&&(re.current={onKeyDown:He,onClose:function(){he.current&&he.current.onClose&&he.current.onClose()}}),k.useEffect((function(){u&&!ve.current&&xe(u)}),[u]),k.useEffect((function(){ve.current=!1}),[]);var Ge,Xe,qe,Ze=Object(j.a)(Object(j.a)({},e),{},{operationRef:he,prefixCls:r,viewDate:_e,value:ge,onViewDateChange:Ee,sourceMode:ze,onPanelChange:function(e,t){var n=Se(e||Te);Be(Te),Me(n),I&&(Te!==n||le(c,_e,_e))&&I(t,n)},disabledDate:p});switch(delete Ze.onChange,delete Ze.onSelect,Te){case"decade":Le=k.createElement(ne,Object(m.a)({},Ze,{onSelect:function(e,t){Ee(e),Ve(e,t)}}));break;case"year":Le=k.createElement(We,Object(m.a)({},Ze,{onSelect:function(e,t){Ee(e),Ve(e,t)}}));break;case"month":Le=k.createElement(Fe,Object(m.a)({},Ze,{onSelect:function(e,t){Ee(e),Ve(e,t)}}));break;case"quarter":Le=k.createElement(Ue,Object(m.a)({},Ze,{onSelect:function(e,t){Ee(e),Ve(e,t)}}));break;case"week":Le=k.createElement(Ne,Object(m.a)({},Ze,{onSelect:function(e,t){Ee(e),Ve(e,t)}}));break;case"time":delete Ze.showTime,Le=k.createElement(je,Object(m.a)({},Ze,"object"===Object(M.a)(E)?E:null,{onSelect:function(e,t){Ee(e),Ve(e,t)}}));break;default:Le=E?k.createElement(Re,Object(m.a)({},Ze,{onSelect:function(e,t){Ee(e),Ve(e,t)}})):k.createElement(Ae,Object(m.a)({},Ze,{onSelect:function(e,t){Ee(e),Ve(e,t)}}))}if(ae||(Ge=Ye(r,Te,C),Xe=Ke({prefixCls:r,components:V,needConfirmButton:Z,okDisabled:!ge||p&&p(ge),locale:a,showNow:x,onNow:Z&&function(){var e=c.getNow(),t=function(e,t,n,r,o,i){var a=Math.floor(e/r)*r;if(a<e)return[a,60-o,60-i];var c=Math.floor(t/o)*o;return c<t?[a,c,60-i]:[a,c,Math.floor(n/i)*i]}(c.getHour(e),c.getMinute(e),c.getSecond(e),J?W:1,$?K:1,ee?q:1),n=D(c,e,t[0],t[1],t[2]);Ve(n,"submit")},onOk:function(){ge&&(Ve(ge,"submit",!0),U&&U(ge))}})),S&&"date"===Te&&"date"===b&&!E){var Je=c.getNow(),Qe="".concat(r,"-today-btn"),$e=p&&p(Je);qe=k.createElement("a",{className:O()(Qe,$e&&"".concat(Qe,"-disabled")),"aria-disabled":$e,onClick:function(){$e||Ve(Je,"mouse",!0)}},a.today)}return k.createElement(L.Provider,{value:Object(j.a)(Object(j.a)({},te),{},{mode:Te,hideHeader:"hideHeader"in e?P:te.hideHeader,hidePrevBtn:se&&"right"===fe,hideNextBtn:se&&"left"===fe})},k.createElement("div",{tabIndex:_,className:O()("".concat(r,"-panel"),o,(t={},Object(y.a)(t,"".concat(r,"-panel-has-range"),pe&&pe[0]&&pe[1]),Object(y.a)(t,"".concat(r,"-panel-has-range-hover"),de&&de[0]&&de[1]),Object(y.a)(t,"".concat(r,"-panel-rtl"),"rtl"===H),t)),style:i,onKeyDown:He,onBlur:function(e){he.current&&he.current.onBlur&&he.current.onBlur(e)},onMouseDown:z,ref:oe},Le,Ge||Xe||qe?k.createElement("div",{className:"".concat(r,"-footer")},Ge,Xe,qe):null))},qe=n("h/vM"),Ze={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};var Je=function(e){var t,n=e.prefixCls,r=e.popupElement,o=e.popupStyle,i=e.visible,a=e.dropdownClassName,c=e.dropdownAlign,u=e.transitionName,s=e.getPopupContainer,l=e.children,f=e.range,p=e.popupPlacement,d=e.direction,h="".concat(n,"-dropdown");return k.createElement(qe.a,{showAction:[],hideAction:[],popupPlacement:void 0!==p?p:"rtl"===d?"bottomRight":"bottomLeft",builtinPlacements:Ze,prefixCls:h,popupTransitionName:u,popup:r,popupAlign:c,popupVisible:i,popupClassName:O()(a,(t={},Object(y.a)(t,"".concat(h,"-range"),f),Object(y.a)(t,"".concat(h,"-rtl"),"rtl"===d),t)),popupStyle:o,getPopupContainer:s},l)};function Qe(e){var t=e.open,n=e.value,r=e.isClickOutside,o=e.triggerOpen,i=e.forwardKeyDown,a=e.onKeyDown,c=e.blurToCancel,u=e.onSubmit,s=e.onCancel,l=e.onFocus,f=e.onBlur,p=Object(k.useState)(!1),d=Object(g.a)(p,2),h=d[0],v=d[1],y=Object(k.useState)(!1),m=Object(g.a)(y,2),b=m[0],O=m[1],w=Object(k.useRef)(!1),_=Object(k.useRef)(!1),x=Object(k.useRef)(!1),E={onMouseDown:function(){v(!0),o(!0)},onKeyDown:function(e){if(a(e,(function(){x.current=!0})),!x.current){switch(e.which){case A.a.ENTER:return t?!1!==u()&&v(!0):o(!0),void e.preventDefault();case A.a.TAB:return void(h&&t&&!e.shiftKey?(v(!1),e.preventDefault()):!h&&t&&!i(e)&&e.shiftKey&&(v(!0),e.preventDefault()));case A.a.ESC:return v(!0),void s()}t||[A.a.SHIFT].includes(e.which)?h||i(e):o(!0)}},onFocus:function(e){v(!0),O(!0),l&&l(e)},onBlur:function(e){!w.current&&r(document.activeElement)?(c?setTimeout((function(){for(var e=document.activeElement;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;r(e)&&s()}),0):t&&(o(!1),_.current&&u()),O(!1),f&&f(e)):w.current=!1}};return Object(k.useEffect)((function(){_.current=!1}),[t]),Object(k.useEffect)((function(){_.current=!0}),[n]),Object(k.useEffect)((function(){return e=function(e){var n=function(e){var t,n=e.target;return e.composed&&n.shadowRoot&&(null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])||n}(e);if(t){var i=r(n);i?b&&!i||o(!1):(w.current=!0,requestAnimationFrame((function(){w.current=!1})))}},!Z&&"undefined"!=typeof window&&window.addEventListener&&(Z=function(e){Object(V.a)(J).forEach((function(t){t(e)}))},window.addEventListener("mousedown",Z)),J.add(e),function(){J.delete(e),0===J.size&&(window.removeEventListener("mousedown",Z),Z=null)};var e})),[E,{focused:b,typing:h}]}function $e(e){var t=e.valueTexts,n=e.onTextChange,r=k.useState(""),o=Object(g.a)(r,2),i=o[0],a=o[1],c=k.useRef([]);function u(){a(c.current[0])}return c.current=t,k.useEffect((function(){t.every((function(e){return e!==i}))&&u()}),[t.join("||")]),[i,function(e){a(e),n(e)},u]}var et=n("Pu0A"),tt=n.n(et);function nt(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale;return Object(me.a)((function(){if(!e)return[[""],""];for(var t="",i=[],a=0;a<n.length;a+=1){var c=n[a],u=de(e,{generateConfig:r,locale:o,format:c});i.push(u),0===a&&(t=u)}return[i,t]}),[e,n],(function(e,t){return e[0]!==t[0]||!tt()(e[1],t[1])}))}function rt(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale,i=Object(k.useState)(null),a=Object(g.a)(i,2),c=a[0],u=a[1],s=Object(k.useRef)(null);function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];cancelAnimationFrame(s.current),t?u(e):s.current=requestAnimationFrame((function(){u(e)}))}var f=nt(c,{formatList:n,generateConfig:r,locale:o}),p=Object(g.a)(f,2)[1];function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l(null,e)}return Object(k.useEffect)((function(){d(!0)}),[e]),Object(k.useEffect)((function(){return function(){return cancelAnimationFrame(s.current)}}),[]),[p,function(e){l(e)},d]}function ot(e){var t,n=e.prefixCls,r=void 0===n?"rc-picker":n,o=e.id,i=e.tabIndex,a=e.style,c=e.className,u=e.dropdownClassName,s=e.dropdownAlign,l=e.popupStyle,f=e.transitionName,p=e.generateConfig,d=e.locale,v=e.inputReadOnly,b=e.allowClear,w=e.autoFocus,_=e.showTime,x=e.picker,E=void 0===x?"date":x,S=e.format,C=e.use12Hours,P=e.value,M=e.defaultValue,A=e.open,R=e.defaultOpen,N=e.defaultOpenValue,I=e.suffixIcon,D=e.clearIcon,F=e.disabled,z=e.disabledDate,B=e.placeholder,U=e.getPopupContainer,V=e.pickerRef,H=e.panelRender,G=e.onChange,W=e.onOpenChange,Y=e.onFocus,K=e.onBlur,Z=e.onMouseDown,J=e.onMouseUp,Q=e.onMouseEnter,ee=e.onMouseLeave,te=e.onContextMenu,ne=e.onClick,re=e.onKeyDown,oe=e.onSelect,ie=e.direction,ae=e.autoComplete,ce=void 0===ae?"off":ae,ue=e.inputRender,se=k.useRef(null),fe="date"===E&&!!_||"time"===E;var pe=Oe(X(S,E,_,C)),ve=k.useRef(null),ye=k.useRef(null),me=k.useRef(null),ge=Object(T.a)(null,{value:P,defaultValue:M}),be=Object(g.a)(ge,2),_e=be[0],xe=be[1],Ee=k.useState(_e),Se=Object(g.a)(Ee,2),Ce=Se[0],je=Se[1],ke=k.useRef(null),Pe=Object(T.a)(!1,{value:A,defaultValue:R,postState:function(e){return!F&&e},onChange:function(e){W&&W(e),!e&&ke.current&&ke.current.onClose&&ke.current.onClose()}}),Te=Object(g.a)(Pe,2),Me=Te[0],Ae=Te[1],Le=nt(Ce,{formatList:pe,generateConfig:p,locale:d}),Re=Object(g.a)(Le,2),Ne=Re[0],Ie=Re[1],De=$e({valueTexts:Ne,onTextChange:function(e){var t=he(e,{locale:d,formatList:pe,generateConfig:p});!t||z&&z(t)||je(t)}}),Fe=Object(g.a)(De,3),ze=Fe[0],Be=Fe[1],Ue=Fe[2],Ve=function(e){je(e),xe(e),G&&!le(p,_e,e)&&G(e,e?de(e,{generateConfig:p,locale:d,format:pe[0]}):"")},He=function(e){F&&e||Ae(e)},Ge=Qe({blurToCancel:fe,open:Me,value:ze,triggerOpen:He,forwardKeyDown:function(e){return Me&&ke.current&&ke.current.onKeyDown?ke.current.onKeyDown(e):(Object(h.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},isClickOutside:function(e){return!$([ve.current,ye.current,me.current],e)},onSubmit:function(){return!(!Ce||z&&z(Ce))&&(Ve(Ce),He(!1),Ue(),!0)},onCancel:function(){He(!1),je(_e),Ue()},onKeyDown:function(e,t){null==re||re(e,t)},onFocus:Y,onBlur:K}),We=Object(g.a)(Ge,2),Ye=We[0],Ke=We[1],qe=Ke.focused,Ze=Ke.typing;k.useEffect((function(){Me||(je(_e),Ne.length&&""!==Ne[0]?Ie!==ze&&Ue():Be(""))}),[Me,Ne]),k.useEffect((function(){Me||Ue()}),[E]),k.useEffect((function(){je(_e)}),[_e]),V&&(V.current={focus:function(){se.current&&se.current.focus()},blur:function(){se.current&&se.current.blur()}});var et=rt(ze,{formatList:pe,generateConfig:p,locale:d}),tt=Object(g.a)(et,3),ot=tt[0],it=tt[1],at=tt[2],ct=Object(j.a)(Object(j.a)({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),ut=k.createElement(Xe,Object(m.a)({},ct,{generateConfig:p,className:O()(Object(y.a)({},"".concat(r,"-panel-focused"),!Ze)),value:Ce,locale:d,tabIndex:-1,onSelect:function(e){null==oe||oe(e),je(e)},direction:ie,onPanelChange:function(t,n){var r=e.onPanelChange;at(!0),null==r||r(t,n)}}));H&&(ut=H(ut));var st,lt,ft=k.createElement("div",{className:"".concat(r,"-panel-container"),onMouseDown:function(e){e.preventDefault()}},ut);I&&(st=k.createElement("span",{className:"".concat(r,"-suffix")},I)),b&&_e&&!F&&(lt=k.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation(),Ve(null),He(!1)},className:"".concat(r,"-clear"),role:"button"},D||k.createElement("span",{className:"".concat(r,"-clear-btn")})));var pt=Object(j.a)(Object(j.a)(Object(j.a)({id:o,tabIndex:i,disabled:F,readOnly:v||"function"==typeof pe[0]||!Ze,value:ot||ze,onChange:function(e){Be(e.target.value)},autoFocus:w,placeholder:B,ref:se,title:ze},Ye),{},{size:q(E,pe[0],p)},we(e)),{},{autoComplete:ce}),dt=ue?ue(pt):k.createElement("input",pt);var ht="rtl"===ie?"bottomRight":"bottomLeft";return k.createElement(L.Provider,{value:{operationRef:ke,hideHeader:"time"===E,panelRef:ve,onSelect:function(e,t){("submit"===t||"key"!==t&&!fe)&&(Ve(e),He(!1))},open:Me,defaultOpenValue:N,onDateMouseEnter:it,onDateMouseLeave:at}},k.createElement(Je,{visible:Me,popupElement:ft,popupStyle:l,prefixCls:r,dropdownClassName:u,dropdownAlign:s,getPopupContainer:U,transitionName:f,popupPlacement:ht,direction:ie},k.createElement("div",{ref:me,className:O()(r,c,(t={},Object(y.a)(t,"".concat(r,"-disabled"),F),Object(y.a)(t,"".concat(r,"-focused"),qe),Object(y.a)(t,"".concat(r,"-rtl"),"rtl"===ie),t)),style:a,onMouseDown:Z,onMouseUp:function(){J&&J.apply(void 0,arguments),se.current&&(se.current.focus(),He(!0))},onMouseEnter:Q,onMouseLeave:ee,onContextMenu:te,onClick:ne},k.createElement("div",{className:O()("".concat(r,"-input"),Object(y.a)({},"".concat(r,"-input-placeholder"),!!ot)),ref:ye},dt,st,lt))))}var it=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;Object(x.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).pickerRef=k.createRef(),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return Object(E.a)(n,[{key:"render",value:function(){return k.createElement(ot,Object(m.a)({},this.props,{pickerRef:this.pickerRef}))}}]),n}(k.Component);function at(e,t,n,r){var o=pe(e,n,r,1);function i(n){return n(e,t)?"same":n(o,t)?"closing":"far"}switch(n){case"year":return i((function(e,t){return function(e,t,n){var r=re(t,n);return"boolean"==typeof r?r:Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}(r,e,t)}));case"quarter":case"month":return i((function(e,t){return oe(r,e,t)}));default:return i((function(e,t){return ce(r,e,t)}))}}function ct(e){var t=e.values,n=e.picker,r=e.defaultDates,o=e.generateConfig,i=k.useState((function(){return[_e(r,0),_e(r,1)]})),a=Object(g.a)(i,2),c=a[0],u=a[1],s=k.useState(null),l=Object(g.a)(s,2),f=l[0],p=l[1],d=_e(t,0),h=_e(t,1);return[function(e){return c[e]?c[e]:_e(f,e)||function(e,t,n,r){var o=_e(e,0),i=_e(e,1);if(0===t)return o;if(o&&i)switch(at(o,i,n,r)){case"same":case"closing":return o;default:return pe(i,n,r,-1)}return o}(t,e,n,o)||d||h||o.getNow()},function(e,n){if(e){var r=xe(f,e,n);u(xe(c,null,n)||[null,null]);var o=(n+1)%2;_e(t,o)||(r=xe(r,e,o)),p(r)}else(d||h)&&p(null)}]}function ut(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function st(e,t,n,r){return!!e||(!(!r||!r[t])||!!n[(t+1)%2])}function lt(e){var t,n,r,o=e.prefixCls,i=void 0===o?"rc-picker":o,a=e.id,c=e.style,u=e.className,s=e.popupStyle,l=e.dropdownClassName,f=e.transitionName,p=e.dropdownAlign,d=e.getPopupContainer,v=e.generateConfig,b=e.locale,w=e.placeholder,_=e.autoFocus,x=e.disabled,E=e.format,S=e.picker,C=void 0===S?"date":S,P=e.showTime,A=e.use12Hours,R=e.separator,N=void 0===R?"~":R,I=e.value,D=e.defaultValue,F=e.defaultPickerValue,z=e.open,B=e.defaultOpen,U=e.disabledDate,V=e.disabledTime,H=e.dateRender,G=e.panelRender,W=e.ranges,Y=e.allowEmpty,K=e.allowClear,Z=e.suffixIcon,J=e.clearIcon,Q=e.pickerRef,ee=e.inputReadOnly,te=e.mode,ne=e.renderExtraFooter,re=e.onChange,oe=e.onOpenChange,ce=e.onPanelChange,fe=e.onCalendarChange,ve=e.onFocus,ye=e.onBlur,me=e.onMouseDown,ge=e.onMouseUp,be=e.onMouseEnter,Ee=e.onMouseLeave,Se=e.onClick,Ce=e.onOk,je=e.onKeyDown,Pe=e.components,Te=e.order,Me=e.direction,Ae=e.activePickerIndex,Le=e.autoComplete,Re=void 0===Le?"off":Le,Ne="date"===C&&!!P||"time"===C,Ie=Object(k.useRef)({}),De=Object(k.useRef)(null),Fe=Object(k.useRef)(null),ze=Object(k.useRef)(null),Be=Object(k.useRef)(null),Ue=Object(k.useRef)(null),Ve=Object(k.useRef)(null),He=Object(k.useRef)(null),Ge=Object(k.useRef)(null);var We=Oe(X(E,C,P,A)),qe=Object(T.a)(0,{value:Ae}),Ze=Object(g.a)(qe,2),et=Ze[0],tt=Ze[1],ot=Object(k.useRef)(null),it=k.useMemo((function(){return Array.isArray(x)?x:[x||!1,x||!1]}),[x]),at=Object(T.a)(null,{value:I,defaultValue:D,postState:function(e){return"time"!==C||Te?ut(e,v):e}}),lt=Object(g.a)(at,2),ft=lt[0],pt=lt[1],dt=ct({values:ft,picker:C,defaultDates:F,generateConfig:v}),ht=Object(g.a)(dt,2),vt=ht[0],yt=ht[1],mt=Object(T.a)(ft,{postState:function(e){var t=e;if(it[0]&&it[1])return t;for(var n=0;n<2;n+=1)!it[n]||_e(t,n)||_e(Y,n)||(t=xe(t,v.getNow(),n));return t}}),gt=Object(g.a)(mt,2),bt=gt[0],Ot=gt[1],wt=Object(T.a)([C,C],{value:te}),_t=Object(g.a)(wt,2),xt=_t[0],Et=_t[1];Object(k.useEffect)((function(){Et([C,C])}),[C]);var St=function(e,t){Et(e),ce&&ce(t,e)},Ct=function(e,t,n){var r=e.picker,o=e.locale,i=e.selectedValue,a=e.disabledDate,c=e.disabled,u=e.generateConfig,s=_e(i,0),l=_e(i,1);function f(e){return u.locale.getWeekFirstDate(o.locale,e)}function p(e){return 100*u.getYear(e)+u.getMonth(e)}function d(e){return 10*u.getYear(e)+ie(u,e)}return[k.useCallback((function(e){if(a&&a(e))return!0;if(c[1]&&l)return!ue(u,e,l)&&u.isAfter(e,l);if(t&&l)switch(r){case"quarter":return d(e)>d(l);case"month":return p(e)>p(l);case"week":return f(e)>f(l);default:return!ue(u,e,l)&&u.isAfter(e,l)}return!1}),[a,c[1],l,t]),k.useCallback((function(e){if(a&&a(e))return!0;if(c[0]&&s)return!ue(u,e,l)&&u.isAfter(s,e);if(n&&s)switch(r){case"quarter":return d(e)<d(s);case"month":return p(e)<p(s);case"week":return f(e)<f(s);default:return!ue(u,e,s)&&u.isAfter(s,e)}return!1}),[a,c[0],s,n])]}({picker:C,selectedValue:bt,locale:b,disabled:it,disabledDate:U,generateConfig:v},Ie.current[1],Ie.current[0]),jt=Object(g.a)(Ct,2),kt=jt[0],Pt=jt[1],Tt=Object(T.a)(!1,{value:z,defaultValue:B,postState:function(e){return!it[et]&&e},onChange:function(e){oe&&oe(e),!e&&ot.current&&ot.current.onClose&&ot.current.onClose()}}),Mt=Object(g.a)(Tt,2),At=Mt[0],Lt=Mt[1],Rt=At&&0===et,Nt=At&&1===et,It=Object(k.useState)(0),Dt=Object(g.a)(It,2),Ft=Dt[0],zt=Dt[1];Object(k.useEffect)((function(){!At&&De.current&&zt(De.current.offsetWidth)}),[At]);var Bt=k.useRef();function Ut(e,t){if(e)clearTimeout(Bt.current),Ie.current[t]=!0,tt(t),Lt(e),At||yt(null,t);else if(et===t){Lt(e);var n=Ie.current;Bt.current=setTimeout((function(){n===Ie.current&&(Ie.current={})}))}}function Vt(e){Ut(!0,e),setTimeout((function(){var t=[Ve,He][e];t.current&&t.current.focus()}),0)}function Ht(e,t){var n=e,r=_e(n,0),o=_e(n,1);r&&o&&v.isAfter(r,o)&&("week"===C&&!se(v,b.locale,r,o)||"quarter"===C&&!ae(v,r,o)||"week"!==C&&"quarter"!==C&&"time"!==C&&!ue(v,r,o)?(0===t?(n=[r,null],o=null):(r=null,n=[null,o]),Ie.current=Object(y.a)({},t,!0)):"time"===C&&!1===Te||(n=ut(n,v))),Ot(n);var i=n&&n[0]?de(n[0],{generateConfig:v,locale:b,format:We[0]}):"",a=n&&n[1]?de(n[1],{generateConfig:v,locale:b,format:We[0]}):"";fe&&fe(n,[i,a],{range:0===t?"start":"end"});var c=st(r,0,it,Y),u=st(o,1,it,Y);(null===n||c&&u)&&(pt(n),!re||le(v,_e(ft,0),r)&&le(v,_e(ft,1),o)||re(n,[i,a]));var s=null;0!==t||it[1]?1!==t||it[0]||(s=0):s=1,null===s||s===et||Ie.current[s]&&_e(n,s)||!_e(n,t)?Ut(!1,t):Vt(s)}var Gt=function(e){return At&&ot.current&&ot.current.onKeyDown?ot.current.onKeyDown(e):(Object(h.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Wt={formatList:We,generateConfig:v,locale:b},Yt=nt(_e(bt,0),Wt),Kt=Object(g.a)(Yt,2),Xt=Kt[0],qt=Kt[1],Zt=nt(_e(bt,1),Wt),Jt=Object(g.a)(Zt,2),Qt=Jt[0],$t=Jt[1],en=function(e,t){var n=he(e,{locale:b,formatList:We,generateConfig:v});n&&!(0===t?kt:Pt)(n)&&(Ot(xe(bt,n,t)),yt(n,t))},tn=$e({valueTexts:Xt,onTextChange:function(e){return en(e,0)}}),nn=Object(g.a)(tn,3),rn=nn[0],on=nn[1],an=nn[2],cn=$e({valueTexts:Qt,onTextChange:function(e){return en(e,1)}}),un=Object(g.a)(cn,3),sn=un[0],ln=un[1],fn=un[2],pn=Object(k.useState)(null),dn=Object(g.a)(pn,2),hn=dn[0],vn=dn[1],yn=Object(k.useState)(null),mn=Object(g.a)(yn,2),gn=mn[0],bn=mn[1],On=rt(rn,{formatList:We,generateConfig:v,locale:b}),wn=Object(g.a)(On,3),_n=wn[0],xn=wn[1],En=wn[2],Sn=rt(sn,{formatList:We,generateConfig:v,locale:b}),Cn=Object(g.a)(Sn,3),jn=Cn[0],kn=Cn[1],Pn=Cn[2],Tn=function(e,t){return{blurToCancel:Ne,forwardKeyDown:Gt,onBlur:ye,isClickOutside:function(e){return!$([Fe.current,ze.current,Be.current,De.current],e)},onFocus:function(t){tt(e),ve&&ve(t)},triggerOpen:function(t){Ut(t,e)},onSubmit:function(){if(!bt||U&&U(bt[e]))return!1;Ht(bt,e),t()},onCancel:function(){Ut(!1,e),Ot(ft),t()}}},Mn=Qe(Object(j.a)(Object(j.a)({},Tn(0,an)),{},{open:Rt,value:rn,onKeyDown:function(e,t){null==je||je(e,t)}})),An=Object(g.a)(Mn,2),Ln=An[0],Rn=An[1],Nn=Rn.focused,In=Rn.typing,Dn=Qe(Object(j.a)(Object(j.a)({},Tn(1,fn)),{},{open:Nt,value:sn,onKeyDown:function(e,t){null==je||je(e,t)}})),Fn=Object(g.a)(Dn,2),zn=Fn[0],Bn=Fn[1],Un=Bn.focused,Vn=Bn.typing,Hn=ft&&ft[0]?de(ft[0],{locale:b,format:"YYYYMMDDHHmmss",generateConfig:v}):"",Gn=ft&&ft[1]?de(ft[1],{locale:b,format:"YYYYMMDDHHmmss",generateConfig:v}):"";Object(k.useEffect)((function(){At||(Ot(ft),Xt.length&&""!==Xt[0]?qt!==rn&&an():on(""),Qt.length&&""!==Qt[0]?$t!==sn&&fn():ln(""))}),[At,Xt,Qt]),Object(k.useEffect)((function(){Ot(ft)}),[Hn,Gn]),Q&&(Q.current={focus:function(){Ve.current&&Ve.current.focus()},blur:function(){Ve.current&&Ve.current.blur(),He.current&&He.current.blur()}});var Wn=Object.keys(W||{}).map((function(e){var t=W[e],n="function"==typeof t?t():t;return{label:e,onClick:function(){Ht(n,null),Ut(!1,et)},onMouseEnter:function(){vn(n)},onMouseLeave:function(){vn(null)}}}));function Yn(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;At&&gn&&gn[0]&&gn[1]&&v.isAfter(gn[1],gn[0])&&(r=gn);var o=P;if(P&&"object"===Object(M.a)(P)&&P.defaultValue){var a=P.defaultValue;o=Object(j.a)(Object(j.a)({},P),{},{defaultValue:_e(a,et)||void 0})}var c=null;return H&&(c=function(e,t){return H(e,t,{range:et?"end":"start"})}),k.createElement(ke.Provider,{value:{inRange:!0,panelPosition:t,rangedValue:hn||bt,hoverRangedValue:r}},k.createElement(Xe,Object(m.a)({},e,n,{dateRender:c,showTime:o,mode:xt[et],generateConfig:v,style:void 0,direction:Me,disabledDate:0===et?kt:Pt,disabledTime:function(e){return!!V&&V(e,0===et?"start":"end")},className:O()(Object(y.a)({},"".concat(i,"-panel-focused"),0===et?!In:!Vn)),value:_e(bt,et),locale:b,tabIndex:-1,onPanelChange:function(e,n){0===et&&En(!0),1===et&&Pn(!0),St(xe(xt,n,et),xe(bt,e,et));var r=e;"right"===t&&xt[et]===n&&(r=pe(r,n,v,-1)),yt(r,et)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:_e(bt,0===et?1:0)})))}var Kn=0,Xn=0;et&&ze.current&&Ue.current&&Fe.current&&(Kn=ze.current.offsetWidth+Ue.current.offsetWidth,Fe.current.offsetWidth&&Ge.current.offsetWidth&&Kn>Fe.current.offsetWidth-Ge.current.offsetWidth-("rtl"===Me||Ge.current.offsetLeft>Kn?0:Ge.current.offsetLeft)&&(Xn=Kn));var qn="rtl"===Me?{right:Kn}:{left:Kn};var Zn,Jn,Qn=k.createElement("div",{className:O()("".concat(i,"-range-wrapper"),"".concat(i,"-").concat(C,"-range-wrapper")),style:{minWidth:Ft}},k.createElement("div",{ref:Ge,className:"".concat(i,"-range-arrow"),style:qn}),function(){var e,t=Ye(i,xt[et],ne),n=Ke({prefixCls:i,components:Pe,needConfirmButton:Ne,okDisabled:!_e(bt,et)||U&&U(bt[et]),locale:b,rangeList:Wn,onOk:function(){_e(bt,et)&&(Ht(bt,et),Ce&&Ce(bt))}});if("time"===C||P)e=Yn();else{var r=vt(et),o=pe(r,C,v),a=xt[et]===C,c=Yn(!!a&&"left",{pickerValue:r,onPickerValueChange:function(e){yt(e,et)}}),u=Yn("right",{pickerValue:o,onPickerValueChange:function(e){yt(pe(e,C,v,-1),et)}});e="rtl"===Me?k.createElement(k.Fragment,null,u,a&&c):k.createElement(k.Fragment,null,c,a&&u)}var s=k.createElement(k.Fragment,null,k.createElement("div",{className:"".concat(i,"-panels")},e),(t||n)&&k.createElement("div",{className:"".concat(i,"-footer")},t,n));return G&&(s=G(s)),k.createElement("div",{className:"".concat(i,"-panel-container"),style:{marginLeft:Xn},ref:Fe,onMouseDown:function(e){e.preventDefault()}},s)}());Z&&(Zn=k.createElement("span",{className:"".concat(i,"-suffix")},Z)),K&&(_e(ft,0)&&!it[0]||_e(ft,1)&&!it[1])&&(Jn=k.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var t=ft;it[0]||(t=xe(t,null,0)),it[1]||(t=xe(t,null,1)),Ht(t,null),Ut(!1,et)},className:"".concat(i,"-clear")},J||k.createElement("span",{className:"".concat(i,"-clear-btn")})));var $n={size:q(C,We[0],v)},er=0,tr=0;ze.current&&Be.current&&Ue.current&&(0===et?tr=ze.current.offsetWidth:(er=Kn,tr=Be.current.offsetWidth));var nr="rtl"===Me?{right:er}:{left:er};return k.createElement(L.Provider,{value:{operationRef:ot,hideHeader:"time"===C,onDateMouseEnter:function(e){bn(xe(bt,e,et)),0===et?xn(e):kn(e)},onDateMouseLeave:function(){bn(xe(bt,null,et)),0===et?En():Pn()},hideRanges:!0,onSelect:function(e,t){var n=xe(bt,e,et);"submit"===t||"key"!==t&&!Ne?(Ht(n,et),0===et?En():Pn()):Ot(n)},open:At}},k.createElement(Je,{visible:At,popupElement:Qn,popupStyle:s,prefixCls:i,dropdownClassName:l,dropdownAlign:p,getPopupContainer:d,transitionName:f,range:!0,direction:Me},k.createElement("div",Object(m.a)({ref:De,className:O()(i,"".concat(i,"-range"),u,(t={},Object(y.a)(t,"".concat(i,"-disabled"),it[0]&&it[1]),Object(y.a)(t,"".concat(i,"-focused"),0===et?Nn:Un),Object(y.a)(t,"".concat(i,"-rtl"),"rtl"===Me),t)),style:c,onClick:function(e){Se&&Se(e),At||Ve.current.contains(e.target)||He.current.contains(e.target)||(it[0]?it[1]||Vt(1):Vt(0))},onMouseEnter:be,onMouseLeave:Ee,onMouseDown:function(e){me&&me(e),!At||!Nn&&!Un||Ve.current.contains(e.target)||He.current.contains(e.target)||e.preventDefault()},onMouseUp:ge},we(e)),k.createElement("div",{className:O()("".concat(i,"-input"),(n={},Object(y.a)(n,"".concat(i,"-input-active"),0===et),Object(y.a)(n,"".concat(i,"-input-placeholder"),!!_n),n)),ref:ze},k.createElement("input",Object(m.a)({id:a,disabled:it[0],readOnly:ee||"function"==typeof We[0]||!In,value:_n||rn,onChange:function(e){on(e.target.value)},autoFocus:_,placeholder:_e(w,0)||"",ref:Ve},Ln,$n,{autoComplete:Re}))),k.createElement("div",{className:"".concat(i,"-range-separator"),ref:Ue},N),k.createElement("div",{className:O()("".concat(i,"-input"),(r={},Object(y.a)(r,"".concat(i,"-input-active"),1===et),Object(y.a)(r,"".concat(i,"-input-placeholder"),!!jn),r)),ref:Be},k.createElement("input",Object(m.a)({disabled:it[1],readOnly:ee||"function"==typeof We[0]||!Vn,value:jn||sn,onChange:function(e){ln(e.target.value)},placeholder:_e(w,1)||"",ref:He},zn,$n,{autoComplete:Re}))),k.createElement("div",{className:"".concat(i,"-active-bar"),style:Object(j.a)(Object(j.a)({},nr),{},{width:tr,position:"absolute"})}),Zn,Jn)))}var ft=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;Object(x.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).pickerRef=k.createRef(),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return Object(E.a)(n,[{key:"render",value:function(){return k.createElement(lt,Object(m.a)({},this.props,{pickerRef:this.pickerRef}))}}]),n}(k.Component),pt=it,dt=n("H84U"),ht=n("YMnH"),vt=n("ihLV"),yt=n("SiX+"),mt=n("KNH7"),gt=n("2fM7");function bt(e){var t=e.fullscreen,n=e.validRange,r=e.generateConfig,o=e.locale,i=e.prefixCls,a=e.value,c=e.onChange,u=e.divRef,s=r.getYear(a||r.getNow()),l=s-10,f=l+20;n&&(l=r.getYear(n[0]),f=r.getYear(n[1])+1);for(var p=o&&"年"===o.year?"年":"",d=[],h=l;h<f;h++)d.push({label:"".concat(h).concat(p),value:h});return k.createElement(gt.a,{size:t?void 0:"small",options:d,value:s,className:"".concat(i,"-year-select"),onChange:function(e){var t=r.setYear(a,e);if(n){var o=Object(g.a)(n,2),i=o[0],u=o[1],s=r.getYear(t),l=r.getMonth(t);s===r.getYear(u)&&l>r.getMonth(u)&&(t=r.setMonth(t,r.getMonth(u))),s===r.getYear(i)&&l<r.getMonth(i)&&(t=r.setMonth(t,r.getMonth(i)))}c(t)},getPopupContainer:function(){return u.current}})}function Ot(e){var t=e.prefixCls,n=e.fullscreen,r=e.validRange,o=e.value,i=e.generateConfig,a=e.locale,c=e.onChange,u=e.divRef,s=i.getMonth(o||i.getNow()),l=0,f=11;if(r){var p=Object(g.a)(r,2),d=p[0],h=p[1],v=i.getYear(o);i.getYear(h)===v&&(f=i.getMonth(h)),i.getYear(d)===v&&(l=i.getMonth(d))}for(var y=a.shortMonths||i.locale.getShortMonths(a.locale),m=[],b=l;b<=f;b+=1)m.push({label:y[b],value:b});return k.createElement(gt.a,{size:n?void 0:"small",className:"".concat(t,"-month-select"),value:s,options:m,onChange:function(e){c(i.setMonth(o,e))},getPopupContainer:function(){return u.current}})}function wt(e){var t=e.prefixCls,n=e.locale,r=e.mode,o=e.fullscreen,i=e.onModeChange;return k.createElement(yt.a,{onChange:function(e){var t=e.target.value;i(t)},value:r,size:o?void 0:"small",className:"".concat(t,"-mode-switch")},k.createElement(mt.a,{value:"month"},n.month),k.createElement(mt.a,{value:"year"},n.year))}var _t=function(e){var t=e.prefixCls,n=e.fullscreen,r=e.mode,o=e.onChange,i=e.onModeChange,a=k.useRef(null),c=Object(k.useContext)(vt.b),u=Object(k.useMemo)((function(){return Object(m.a)(Object(m.a)({},c),{isFormItemInput:!1})}),[c]),s=Object(m.a)(Object(m.a)({},e),{onChange:o,fullscreen:n,divRef:a});return k.createElement("div",{className:"".concat(t,"-header"),ref:a},k.createElement(vt.b.Provider,{value:u},k.createElement(bt,Object(m.a)({},s)),"month"===r&&k.createElement(Ot,Object(m.a)({},s))),k.createElement(wt,Object(m.a)({},s,{onModeChange:i})))},xt=n("3x3+");var Et=function(e){function t(t,n){return t&&n&&e.getYear(t)===e.getYear(n)}function n(n,r){return t(n,r)&&e.getMonth(n)===e.getMonth(r)}function r(t,r){return n(t,r)&&e.getDate(t)===e.getDate(r)}return function(o){var i=o.prefixCls,a=o.className,c=o.style,u=o.dateFullCellRender,s=o.dateCellRender,l=o.monthFullCellRender,f=o.monthCellRender,p=o.headerRender,d=o.value,h=o.defaultValue,v=o.disabledDate,b=o.mode,w=o.validRange,x=o.fullscreen,E=void 0===x||x,S=o.onChange,C=o.onPanelChange,j=o.onSelect,P=k.useContext(dt.b),M=P.getPrefixCls,A=P.direction,L=M("picker",i),R="".concat(L,"-calendar"),N=e.getNow(),I=Object(T.a)((function(){return d||e.getNow()}),{defaultValue:h,value:d}),D=Object(g.a)(I,2),F=D[0],z=D[1],B=Object(T.a)("month",{value:b}),U=Object(g.a)(B,2),V=U[0],H=U[1],G=k.useMemo((function(){return"year"===V?"month":"date"}),[V]),W=k.useCallback((function(t){return!!w&&(e.isAfter(w[0],t)||e.isAfter(t,w[1]))||!!(null==v?void 0:v(t))}),[v,w]),Y=function(e,t){null==C||C(e,t)},K=function(e){H(e),Y(F,e)},X=function(e){!function(e){z(e),r(e,F)||(("date"===G&&!n(e,F)||"month"===G&&!t(e,F))&&Y(e,V),null==S||S(e))}(e),null==j||j(e)},q=k.useCallback((function(t){return u?u(t):k.createElement("div",{className:O()("".concat(L,"-cell-inner"),"".concat(R,"-date"),Object(y.a)({},"".concat(R,"-date-today"),r(N,t)))},k.createElement("div",{className:"".concat(R,"-date-value")},_()(String(e.getDate(t)),2,"0")),k.createElement("div",{className:"".concat(R,"-date-content")},s&&s(t)))}),[u,s]),Z=k.useCallback((function(t,r){if(l)return l(t);var o=r.shortMonths||e.locale.getShortMonths(r.locale);return k.createElement("div",{className:O()("".concat(L,"-cell-inner"),"".concat(R,"-date"),Object(y.a)({},"".concat(R,"-date-today"),n(N,t)))},k.createElement("div",{className:"".concat(R,"-date-value")},o[e.getMonth(t)]),k.createElement("div",{className:"".concat(R,"-date-content")},f&&f(t)))}),[l,f]);return k.createElement(ht.a,{componentName:"Calendar",defaultLocale:function(){var e=o.locale,t=Object(m.a)(Object(m.a)({},xt.a),e);return t.lang=Object(m.a)(Object(m.a)({},t.lang),(e||{}).lang),t}},(function(t){var n;return k.createElement("div",{className:O()(R,(n={},Object(y.a)(n,"".concat(R,"-full"),E),Object(y.a)(n,"".concat(R,"-mini"),!E),Object(y.a)(n,"".concat(R,"-rtl"),"rtl"===A),n),a),style:c},p?p({value:F,type:V,onChange:X,onTypeChange:K}):k.createElement(_t,{prefixCls:R,value:F,generateConfig:e,mode:V,fullscreen:E,locale:t.lang,validRange:w,onChange:X,onModeChange:K}),k.createElement(Xe,{value:F,prefixCls:L,locale:t.lang,generateConfig:e,dateRender:q,monthCellRender:function(e){return Z(e,t.lang)},onSelect:X,mode:G,picker:G,disabledDate:W,hideHeader:!0}))}))}}(v),St=n("WSTu"),Ct=n("3Nzz"),jt=n("/ezw"),kt=n("Sp6C"),Pt=n("hShO"),Tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Mt=n("vspj"),At=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:Tt}))};At.displayName="PlusOutlined";var Lt=k.forwardRef(At),Rt=n("HbGN"),Nt=n("6Qj0"),It=n("gh9N"),Dt=n("8sde");function Ft(e){var t=Object(k.useRef)(),n=Object(k.useRef)(!1);return Object(k.useEffect)((function(){return n.current=!1,function(){n.current=!0,H.a.cancel(t.current)}}),[]),function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];n.current||(H.a.cancel(t.current),t.current=Object(H.a)((function(){e.apply(void 0,o)})))}}function zt(e,t){var n,r=e.prefixCls,o=e.id,i=e.active,a=e.tab,c=a.key,u=a.tab,s=a.disabled,l=a.closeIcon,f=e.closable,p=e.renderWrapper,d=e.removeAriaLabel,h=e.editable,v=e.onClick,m=e.onRemove,g=e.onFocus,b=e.style,w="".concat(r,"-tab");k.useEffect((function(){return m}),[]);var _=h&&!1!==f&&!s;function x(e){s||v(e)}var E=k.createElement("div",{key:c,ref:t,className:O()(w,(n={},Object(y.a)(n,"".concat(w,"-with-remove"),_),Object(y.a)(n,"".concat(w,"-active"),i),Object(y.a)(n,"".concat(w,"-disabled"),s),n)),style:b,onClick:x},k.createElement("div",{role:"tab","aria-selected":i,id:o&&"".concat(o,"-tab-").concat(c),className:"".concat(w,"-btn"),"aria-controls":o&&"".concat(o,"-panel-").concat(c),"aria-disabled":s,tabIndex:s?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[A.a.SPACE,A.a.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:g},u),_&&k.createElement("button",{type:"button","aria-label":d||"remove",tabIndex:0,className:"".concat(w,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:c,event:t})}},l||h.removeIcon||"×"));return p?p(E):E}var Bt=k.forwardRef(zt),Ut={width:0,height:0,left:0,top:0};var Vt={width:0,height:0,left:0,top:0,right:0};var Ht=n("0jbY"),Gt=["children","locked"],Wt=k.createContext(null);function Yt(e){var t=e.children,n=e.locked,r=Object(Rt.a)(e,Gt),o=k.useContext(Wt),i=Object(me.a)((function(){return e=o,t=r,n=Object(j.a)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&tt()(e[1],t[1]))}));return k.createElement(Wt.Provider,{value:i},t)}function Kt(e,t,n,r){var o=k.useContext(Wt),i=o.activeKey,a=o.onActive,c=o.onInactive,u={active:i===e};return t||(u.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},u.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),c(e)}),u}var Xt=["item"];function qt(e){var t=e.item,n=Object(Rt.a)(e,Xt);return Object.defineProperty(n,"item",{get:function(){return Object(h.a)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function Zt(e){var t=e.icon,n=e.props,r=e.children;return("function"==typeof t?k.createElement(t,Object(j.a)({},n)):t)||r||null}function Jt(e){var t=k.useContext(Wt),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}var Qt=[],$t=k.createContext(null);function en(){return k.useContext($t)}var tn=k.createContext(Qt);function nn(e){var t=k.useContext(tn);return k.useMemo((function(){return void 0!==e?[].concat(Object(V.a)(t),[e]):t}),[t,e])}var rn=k.createContext(null),on=k.createContext(null);function an(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function cn(e){return an(k.useContext(on),e)}var un=k.createContext({}),sn=["title","attribute","elementRef"],ln=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],fn=["active"],pn=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){return Object(x.a)(this,n),t.apply(this,arguments)}return Object(E.a)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Object(Rt.a)(e,sn),i=Object(St.a)(o,["eventKey"]);return Object(h.a)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),k.createElement(Ht.a.Item,Object(m.a)({},n,{title:"string"==typeof t?t:void 0},i,{ref:r}))}}]),n}(k.Component),dn=function(e){var t,n=e.style,r=e.className,o=e.eventKey,i=(e.warnKey,e.disabled),a=e.itemIcon,c=e.children,u=e.role,s=e.onMouseEnter,l=e.onMouseLeave,f=e.onClick,p=e.onKeyDown,d=e.onFocus,h=Object(Rt.a)(e,ln),v=cn(o),g=k.useContext(Wt),b=g.prefixCls,w=g.onItemClick,_=g.disabled,x=g.overflowDisabled,E=g.itemIcon,S=g.selectedKeys,C=g.onActive,P=k.useContext(un)._internalRenderMenuItem,T="".concat(b,"-item"),M=k.useRef(),L=k.useRef(),R=_||i,N=nn(o);var I=function(e){return{key:o,keyPath:Object(V.a)(N).reverse(),item:M.current,domEvent:e}},D=a||E,F=Kt(o,R,s,l),z=F.active,B=Object(Rt.a)(F,fn),U=S.includes(o),H=Jt(N.length),G={};"option"===e.role&&(G["aria-selected"]=U);var W=k.createElement(pn,Object(m.a)({ref:M,elementRef:L,role:null===u?"none":u||"menuitem",tabIndex:i?null:-1,"data-menu-id":x&&v?null:v},h,B,G,{component:"li","aria-disabled":i,style:Object(j.a)(Object(j.a)({},H),n),className:O()(T,(t={},Object(y.a)(t,"".concat(T,"-active"),z),Object(y.a)(t,"".concat(T,"-selected"),U),Object(y.a)(t,"".concat(T,"-disabled"),R),t),r),onClick:function(e){if(!R){var t=I(e);null==f||f(qt(t)),w(t)}},onKeyDown:function(e){if(null==p||p(e),e.which===A.a.ENTER){var t=I(e);null==f||f(qt(t)),w(t)}},onFocus:function(e){C(o),null==d||d(e)}}),c,k.createElement(Zt,{props:Object(j.a)(Object(j.a)({},e),{},{isSelected:U}),icon:D}));return P&&(W=P(W,e,{selected:U})),W};var hn=function(e){var t=e.eventKey,n=en(),r=nn(t);return k.useEffect((function(){if(n)return n.registerPath(t,r),function(){n.unregisterPath(t,r)}}),[r]),n?null:k.createElement(dn,e)},vn=["label","children","key","type"];function yn(e,t){return Object(Nt.a)(e).map((function(e,n){if(k.isValidElement(e)){var r,o,i=e.key,a=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;null==a&&(a="tmp_key-".concat([].concat(Object(V.a)(t),[n]).join("-")));var c={key:a,eventKey:a};return k.cloneElement(e,c)}return e}))}function mn(e,t,n){var r=e;return t&&(r=function e(t){return(t||[]).map((function(t,n){if(t&&"object"===Object(M.a)(t)){var r=t.label,o=t.children,i=t.key,a=t.type,c=Object(Rt.a)(t,vn),u=null!=i?i:"tmp-".concat(n);return o||"group"===a?"group"===a?k.createElement(or,Object(m.a)({key:u},c,{title:r}),e(o)):k.createElement(Rn,Object(m.a)({key:u},c,{title:r}),e(o)):"divider"===a?k.createElement(ir,Object(m.a)({key:u},c)):k.createElement(hn,Object(m.a)({key:u},c),r)}return null})).filter((function(e){return e}))}(t)),yn(r,n)}function gn(e){var t=k.useRef(e);t.current=e;var n=k.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var bn=["className","children"],On=function(e,t){var n=e.className,r=e.children,o=Object(Rt.a)(e,bn),i=k.useContext(Wt),a=i.prefixCls,c=i.mode,u=i.rtl;return k.createElement("ul",Object(m.a)({className:O()(a,u&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===c?"inline":"vertical"),n)},o,{"data-menu-list":!0,ref:t}),r)},wn=k.forwardRef(On);wn.displayName="SubMenuList";var _n=wn,xn={adjustX:1,adjustY:1},En={topLeft:{points:["bl","tl"],overflow:xn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:xn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:xn,offset:[4,0]}},Sn={topLeft:{points:["bl","tl"],overflow:xn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:xn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:xn,offset:[4,0]}};function Cn(e,t,n){return t||(n?n[e]||n.other:void 0)}var jn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function kn(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupClassName,a=e.popupOffset,c=e.disabled,u=e.mode,s=e.onVisibleChange,l=k.useContext(Wt),f=l.getPopupContainer,p=l.rtl,d=l.subMenuOpenDelay,h=l.subMenuCloseDelay,v=l.builtinPlacements,m=l.triggerSubMenuAction,b=l.forceSubMenuRender,w=l.rootClassName,_=l.motion,x=l.defaultMotions,E=k.useState(!1),S=Object(g.a)(E,2),C=S[0],P=S[1],T=p?Object(j.a)(Object(j.a)({},Sn),v):Object(j.a)(Object(j.a)({},En),v),M=jn[u],A=Cn(u,_,x),L=Object(j.a)(Object(j.a)({},A),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),R=k.useRef();return k.useEffect((function(){return R.current=Object(H.a)((function(){P(n)})),function(){H.a.cancel(R.current)}}),[n]),k.createElement(qe.a,{prefixCls:t,popupClassName:O()("".concat(t,"-popup"),Object(y.a)({},"".concat(t,"-rtl"),p),i,w),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:f,builtinPlacements:T,popupPlacement:M,popupVisible:C,popup:o,popupAlign:a&&{offset:a},action:c?[]:[m],mouseEnterDelay:d,mouseLeaveDelay:h,onPopupVisibleChange:s,forceRender:b,popupMotion:L},r)}var Pn=n("B5SY");function Tn(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i=k.useContext(Wt),a=i.prefixCls,c=i.forceSubMenuRender,u=i.motion,s=i.defaultMotions,l=i.mode,f=k.useRef(!1);f.current="inline"===l;var p=k.useState(!f.current),d=Object(g.a)(p,2),h=d[0],v=d[1],y=!!f.current&&n;k.useEffect((function(){f.current&&v(!1)}),[l]);var b=Object(j.a)({},Cn("inline",u,s));r.length>1&&(b.motionAppear=!1);var O=b.onVisibleChanged;return b.onVisibleChanged=function(e){return f.current||e||v(!0),null==O?void 0:O(e)},h?null:k.createElement(Yt,{mode:"inline",locked:!f.current},k.createElement(Pn.b,Object(m.a)({visible:y},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(a,"-hidden")}),(function(e){var n=e.className,r=e.style;return k.createElement(_n,{id:t,className:n,style:r},o)})))}var Mn=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],An=["active"],Ln=function(e){var t,n=e.style,r=e.className,o=e.title,i=e.eventKey,a=(e.warnKey,e.disabled),c=e.internalPopupClose,u=e.children,s=e.itemIcon,l=e.expandIcon,f=e.popupClassName,p=e.popupOffset,d=e.onClick,h=e.onMouseEnter,v=e.onMouseLeave,b=e.onTitleClick,w=e.onTitleMouseEnter,_=e.onTitleMouseLeave,x=Object(Rt.a)(e,Mn),E=cn(i),S=k.useContext(Wt),C=S.prefixCls,P=S.mode,T=S.openKeys,M=S.disabled,A=S.overflowDisabled,L=S.activeKey,R=S.selectedKeys,N=S.itemIcon,I=S.expandIcon,D=S.onItemClick,F=S.onOpenChange,z=S.onActive,B=k.useContext(un)._internalRenderSubMenuItem,U=k.useContext(rn).isSubPathKey,V=nn(),H="".concat(C,"-submenu"),G=M||a,W=k.useRef(),Y=k.useRef();var K=s||N,X=l||I,q=T.includes(i),Z=!A&&q,J=U(R,i),Q=Kt(i,G,w,_),$=Q.active,ee=Object(Rt.a)(Q,An),te=k.useState(!1),ne=Object(g.a)(te,2),re=ne[0],oe=ne[1],ie=function(e){G||oe(e)},ae=k.useMemo((function(){return $||"inline"!==P&&(re||U([L],i))}),[P,$,L,re,i,U]),ce=Jt(V.length),ue=gn((function(e){null==d||d(qt(e)),D(e)})),se=E&&"".concat(E,"-popup"),le=k.createElement("div",Object(m.a)({role:"menuitem",style:ce,className:"".concat(H,"-title"),tabIndex:G?null:-1,ref:W,title:"string"==typeof o?o:null,"data-menu-id":A&&E?null:E,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":se,"aria-disabled":G,onClick:function(e){G||(null==b||b({key:i,domEvent:e}),"inline"===P&&F(i,!q))},onFocus:function(){z(i)}},ee),o,k.createElement(Zt,{icon:"horizontal"!==P?X:null,props:Object(j.a)(Object(j.a)({},e),{},{isOpen:Z,isSubMenu:!0})},k.createElement("i",{className:"".concat(H,"-arrow")}))),fe=k.useRef(P);if("inline"!==P&&(fe.current=V.length>1?"vertical":P),!A){var pe=fe.current;le=k.createElement(kn,{mode:pe,prefixCls:H,visible:!c&&Z&&"inline"!==P,popupClassName:f,popupOffset:p,popup:k.createElement(Yt,{mode:"horizontal"===pe?"vertical":pe},k.createElement(_n,{id:se,ref:Y},u)),disabled:G,onVisibleChange:function(e){"inline"!==P&&F(i,e)}},le)}var de=k.createElement(Ht.a.Item,Object(m.a)({role:"none"},x,{component:"li",style:n,className:O()(H,"".concat(H,"-").concat(P),r,(t={},Object(y.a)(t,"".concat(H,"-open"),Z),Object(y.a)(t,"".concat(H,"-active"),ae),Object(y.a)(t,"".concat(H,"-selected"),J),Object(y.a)(t,"".concat(H,"-disabled"),G),t)),onMouseEnter:function(e){ie(!0),null==h||h({key:i,domEvent:e})},onMouseLeave:function(e){ie(!1),null==v||v({key:i,domEvent:e})}}),le,!A&&k.createElement(Tn,{id:se,open:Z,keyPath:V},u));return B&&(de=B(de,e,{selected:J,active:ae,open:Z,disabled:G})),k.createElement(Yt,{onItemClick:ue,mode:"horizontal"===P?"vertical":P,itemIcon:K,expandIcon:X},de)};function Rn(e){var t,n=e.eventKey,r=e.children,o=nn(n),i=yn(r,o),a=en();return k.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:k.createElement(Ln,e,i),k.createElement(tn.Provider,{value:o},t)}var Nn=n("wHo0"),In=A.a.LEFT,Dn=A.a.RIGHT,Fn=A.a.UP,zn=A.a.DOWN,Bn=A.a.ENTER,Un=A.a.ESC,Vn=A.a.HOME,Hn=A.a.END,Gn=[Fn,zn,In,Dn];function Wn(e,t){return Object(Nn.a)(e,!0).filter((function(e){return t.has(e)}))}function Yn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Wn(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}function Kn(e,t,n,r,o,i,a,c,u,s){var l=k.useRef(),f=k.useRef();f.current=t;var p=function(){H.a.cancel(l.current)};return k.useEffect((function(){return function(){p()}}),[]),function(d){var h=d.which;if([].concat(Gn,[Bn,Un,Vn,Hn]).includes(h)){var v,m,g,b=function(){return v=new Set,m=new Map,g=new Map,i().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(an(r,e),"']"));t&&(v.add(t),g.set(t,e),m.set(e,t))})),v};b();var O=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(m.get(t),v),w=g.get(O),_=function(e,t,n,r){var o,i,a,c;if("inline"===e&&r===Bn)return{inlineTrigger:!0};var u=(o={},Object(y.a)(o,Fn,"prev"),Object(y.a)(o,zn,"next"),o),s=(i={},Object(y.a)(i,In,n?"next":"prev"),Object(y.a)(i,Dn,n?"prev":"next"),Object(y.a)(i,zn,"children"),Object(y.a)(i,Bn,"children"),i),l=(a={},Object(y.a)(a,Fn,"prev"),Object(y.a)(a,zn,"next"),Object(y.a)(a,Bn,"children"),Object(y.a)(a,Un,"parent"),Object(y.a)(a,In,n?"children":"parent"),Object(y.a)(a,Dn,n?"parent":"children"),a);switch(null===(c={inline:u,horizontal:s,vertical:l,inlineSub:u,horizontalSub:l,verticalSub:l}["".concat(e).concat(t?"":"Sub")])||void 0===c?void 0:c[r]){case"prev":return{offset:-1,sibling:!0};case"next":return{offset:1,sibling:!0};case"parent":return{offset:-1,sibling:!1};case"children":return{offset:1,sibling:!1};default:return null}}(e,1===a(w,!0).length,n,h);if(!_&&h!==Vn&&h!==Hn)return;(Gn.includes(h)||[Vn,Hn].includes(h))&&d.preventDefault();var x=function(e){if(e){var t=e,n=e.querySelector("a");(null==n?void 0:n.getAttribute("href"))&&(t=n);var r=g.get(e);c(r),p(),l.current=Object(H.a)((function(){f.current===r&&t.focus()}))}};if([Vn,Hn].includes(h)||_.sibling||!O){var E,S,C=Wn(E=O&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(O):o.current,v);S=h===Vn?C[0]:h===Hn?C[C.length-1]:Yn(E,v,O,_.offset),x(S)}else if(_.inlineTrigger)u(w);else if(_.offset>0)u(w,!0),p(),l.current=Object(H.a)((function(){b();var e=O.getAttribute("aria-controls"),t=Yn(document.getElementById(e),v);x(t)}),5);else if(_.offset<0){var j=a(w,!0),k=j[j.length-2],P=m.get(k);u(k,!1),x(P)}}null==s||s(d)}}var Xn=Math.random().toFixed(5).toString().slice(2),qn=0;var Zn="__RC_UTIL_PATH_SPLIT__",Jn=function(e){return e.join(Zn)};function Qn(){var e=k.useState({}),t=Object(g.a)(e,2)[1],n=Object(k.useRef)(new Map),r=Object(k.useRef)(new Map),o=k.useState([]),i=Object(g.a)(o,2),a=i[0],c=i[1],u=Object(k.useRef)(0),s=Object(k.useRef)(!1),l=Object(k.useCallback)((function(e,o){var i=Jn(o);r.current.set(i,e),n.current.set(e,i),u.current+=1;var a,c=u.current;a=function(){c===u.current&&(s.current||t({}))},Promise.resolve().then(a)}),[]),f=Object(k.useCallback)((function(e,t){var o=Jn(t);r.current.delete(o),n.current.delete(e)}),[]),p=Object(k.useCallback)((function(e){c(e)}),[]),d=Object(k.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(Zn);return t&&a.includes(o[0])&&o.unshift("rc-menu-more"),o}),[a]),h=Object(k.useCallback)((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),v=Object(k.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Zn),o=new Set;return Object(V.a)(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return k.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:f,refreshOverflowKeys:p,isSubPathKey:h,getKeyPath:d,getKeys:function(){var e=Object(V.a)(n.current.keys());return a.length&&e.push("rc-menu-more"),e},getSubPathKeys:v}}var $n=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],er=[],tr=["className","title","eventKey","children"],nr=["children"],rr=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),o=Object(Rt.a)(e,tr),i=k.useContext(Wt).prefixCls,a="".concat(i,"-item-group");return k.createElement("li",Object(m.a)({},o,{onClick:function(e){return e.stopPropagation()},className:O()(a,t)}),k.createElement("div",{className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),k.createElement("ul",{className:"".concat(a,"-list")},r))};function or(e){var t=e.children,n=Object(Rt.a)(e,nr),r=yn(t,nn(n.eventKey));return en()?r:k.createElement(rr,Object(St.a)(n,["warnKey"]),r)}function ir(e){var t=e.className,n=e.style,r=k.useContext(Wt).prefixCls;return en()?null:k.createElement("li",{className:O()("".concat(r,"-item-divider"),t),style:n})}var ar=k.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=void 0===o?"rc-menu":o,a=e.rootClassName,c=e.style,u=e.className,s=e.tabIndex,l=void 0===s?0:s,f=e.items,p=e.children,d=e.direction,h=e.id,v=e.mode,b=void 0===v?"vertical":v,w=e.inlineCollapsed,_=e.disabled,x=e.disabledOverflow,E=e.subMenuOpenDelay,S=void 0===E?.1:E,C=e.subMenuCloseDelay,P=void 0===C?.1:C,M=e.forceSubMenuRender,A=e.defaultOpenKeys,L=e.openKeys,R=e.activeKey,N=e.defaultActiveFirst,I=e.selectable,D=void 0===I||I,F=e.multiple,z=void 0!==F&&F,B=e.defaultSelectedKeys,U=e.selectedKeys,H=e.onSelect,G=e.onDeselect,W=e.inlineIndent,Y=void 0===W?24:W,K=e.motion,X=e.defaultMotions,q=e.triggerSubMenuAction,Z=void 0===q?"hover":q,J=e.builtinPlacements,Q=e.itemIcon,$=e.expandIcon,ee=e.overflowedIndicator,te=void 0===ee?"...":ee,ne=e.overflowedIndicatorPopupClassName,re=e.getPopupContainer,oe=e.onClick,ie=e.onOpenChange,ae=e.onKeyDown,ce=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),ue=e._internalRenderSubMenuItem,se=Object(Rt.a)(e,$n),le=k.useMemo((function(){return mn(p,f,er)}),[p,f]),fe=k.useState(!1),pe=Object(g.a)(fe,2),de=pe[0],he=pe[1],ve=k.useRef(),ye=function(e){var t=Object(T.a)(e,{value:e}),n=Object(g.a)(t,2),r=n[0],o=n[1];return k.useEffect((function(){qn+=1;var e="".concat(Xn,"-").concat(qn);o("rc-menu-uuid-".concat(e))}),[]),r}(h),me="rtl"===d;var ge=k.useMemo((function(){return"inline"!==b&&"vertical"!==b||!w?[b,!1]:["vertical",w]}),[b,w]),be=Object(g.a)(ge,2),Oe=be[0],we=be[1],_e=k.useState(0),xe=Object(g.a)(_e,2),Ee=xe[0],Se=xe[1],Ce=Ee>=le.length-1||"horizontal"!==Oe||x,je=Object(T.a)(A,{value:L,postState:function(e){return e||er}}),ke=Object(g.a)(je,2),Pe=ke[0],Te=ke[1],Me=function(e){Te(e),null==ie||ie(e)},Ae=k.useState(Pe),Le=Object(g.a)(Ae,2),Re=Le[0],Ne=Le[1],Ie="inline"===Oe,De=k.useRef(!1);k.useEffect((function(){Ie&&Ne(Pe)}),[Pe]),k.useEffect((function(){De.current?Ie?Te(Re):Me(er):De.current=!0}),[Ie]);var Fe=Qn(),ze=Fe.registerPath,Be=Fe.unregisterPath,Ue=Fe.refreshOverflowKeys,Ve=Fe.isSubPathKey,He=Fe.getKeyPath,Ge=Fe.getKeys,We=Fe.getSubPathKeys,Ye=k.useMemo((function(){return{registerPath:ze,unregisterPath:Be}}),[ze,Be]),Ke=k.useMemo((function(){return{isSubPathKey:Ve}}),[Ve]);k.useEffect((function(){Ue(Ce?er:le.slice(Ee+1).map((function(e){return e.key})))}),[Ee,Ce]);var Xe=Object(T.a)(R||N&&(null===(n=le[0])||void 0===n?void 0:n.key),{value:R}),qe=Object(g.a)(Xe,2),Ze=qe[0],Je=qe[1],Qe=gn((function(e){Je(e)})),$e=gn((function(){Je(void 0)}));Object(k.useImperativeHandle)(t,(function(){return{list:ve.current,focus:function(e){var t,n,r,o,i=null!=Ze?Ze:null===(t=le.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=ve.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(an(ye,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}}));var et=Object(T.a)(B||[],{value:U,postState:function(e){return Array.isArray(e)?e:null==e?er:[e]}}),nt=Object(g.a)(et,2),rt=nt[0],ot=nt[1],it=gn((function(e){null==oe||oe(qt(e)),function(e){if(D){var t,n=e.key,r=rt.includes(n);t=z?r?rt.filter((function(e){return e!==n})):[].concat(Object(V.a)(rt),[n]):[n],ot(t);var o=Object(j.a)(Object(j.a)({},e),{},{selectedKeys:t});r?null==G||G(o):null==H||H(o)}!z&&Pe.length&&"inline"!==Oe&&Me(er)}(e)})),at=gn((function(e,t){var n=Pe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Oe){var r=We(e);n=n.filter((function(e){return!r.has(e)}))}tt()(Pe,n)||Me(n)})),ct=gn(re),ut=Kn(Oe,Ze,me,ye,ve,Ge,He,Je,(function(e,t){var n=null!=t?t:!Pe.includes(e);at(e,n)}),ae);k.useEffect((function(){he(!0)}),[]);var st=k.useMemo((function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:ue}}),[ce,ue]),lt="horizontal"!==Oe||x?le:le.map((function(e,t){return k.createElement(Yt,{key:e.key,overflowDisabled:t>Ee},e)})),ft=k.createElement(Ht.a,Object(m.a)({id:h,ref:ve,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:hn,className:O()(i,"".concat(i,"-root"),"".concat(i,"-").concat(Oe),u,(r={},Object(y.a)(r,"".concat(i,"-inline-collapsed"),we),Object(y.a)(r,"".concat(i,"-rtl"),me),r),a),dir:d,style:c,role:"menu",tabIndex:l,data:lt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?le.slice(-t):null;return k.createElement(Rn,{eventKey:"rc-menu-more",title:te,disabled:Ce,internalPopupClose:0===t,popupClassName:ne},n)},maxCount:"horizontal"!==Oe||x?Ht.a.INVALIDATE:Ht.a.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Se(e)},onKeyDown:ut},se));return k.createElement(un.Provider,{value:st},k.createElement(on.Provider,{value:ye},k.createElement(Yt,{prefixCls:i,rootClassName:a,mode:Oe,openKeys:Pe,rtl:me,disabled:_,motion:de?K:null,defaultMotions:de?X:null,activeKey:Ze,onActive:Qe,onInactive:$e,selectedKeys:rt,inlineIndent:Y,subMenuOpenDelay:S,subMenuCloseDelay:P,forceSubMenuRender:M,builtinPlacements:J,triggerSubMenuAction:Z,getPopupContainer:ct,itemIcon:Q,expandIcon:$,onItemClick:it,onOpenChange:at},k.createElement(rn.Provider,{value:Ke},ft),k.createElement("div",{style:{display:"none"},"aria-hidden":!0},k.createElement($t.Provider,{value:Ye},le)))))}));ar.Item=hn,ar.SubMenu=Rn,ar.ItemGroup=or,ar.Divider=ir;var cr=ar,ur=n("IjRU");function sr(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?k.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}var lr=k.forwardRef(sr);function fr(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,c=e.moreIcon,u=void 0===c?"More":c,s=e.moreTransitionName,l=e.style,f=e.className,p=e.editable,d=e.tabBarGutter,h=e.rtl,v=e.removeAriaLabel,m=e.onTabClick,b=e.getPopupContainer,w=e.popupClassName,_=Object(k.useState)(!1),x=Object(g.a)(_,2),E=x[0],S=x[1],C=Object(k.useState)(null),j=Object(g.a)(C,2),P=j[0],T=j[1],M="".concat(r,"-more-popup"),L="".concat(n,"-dropdown"),R=null!==P?"".concat(M,"-").concat(P):null,N=null==i?void 0:i.dropdownAriaLabel;var I=k.createElement(cr,{onClick:function(e){var t=e.key,n=e.domEvent;m(t,n),S(!1)},prefixCls:"".concat(L,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[P],"aria-label":void 0!==N?N:"expanded dropdown"},o.map((function(e){var t=p&&!1!==e.closable&&!e.disabled;return k.createElement(hn,{key:e.key,id:"".concat(M,"-").concat(e.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(e.key),disabled:e.disabled},k.createElement("span",null,e.tab),t&&k.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(t){var n,r;t.stopPropagation(),n=t,r=e.key,n.preventDefault(),n.stopPropagation(),p.onEdit("remove",{key:r,event:n})}},e.closeIcon||p.removeIcon||"×"))})));function D(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===P}))||0,r=t.length,i=0;i<r;i+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void T(a.key)}}Object(k.useEffect)((function(){var e=document.getElementById(R);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[P]),Object(k.useEffect)((function(){E||T(null)}),[E]);var F=Object(y.a)({},h?"marginRight":"marginLeft",d);o.length||(F.visibility="hidden",F.order=1);var z=O()(Object(y.a)({},"".concat(L,"-rtl"),h)),B=a?null:k.createElement(ur.a,{prefixCls:L,overlay:I,trigger:["hover"],visible:!!o.length&&E,transitionName:s,onVisibleChange:S,overlayClassName:O()(z,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},k.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:F,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":E,onKeyDown:function(e){var t=e.which;if(E)switch(t){case A.a.UP:D(-1),e.preventDefault();break;case A.a.DOWN:D(1),e.preventDefault();break;case A.a.ESC:S(!1);break;case A.a.SPACE:case A.a.ENTER:null!==P&&m(P,e)}else[A.a.DOWN,A.a.SPACE,A.a.ENTER].includes(t)&&(S(!0),e.preventDefault())}},u));return k.createElement("div",{className:O()("".concat(n,"-nav-operations"),f),style:l,ref:t},B,k.createElement(lr,{prefixCls:n,locale:i,editable:p}))}var pr=k.memo(k.forwardRef(fr),(function(e,t){return t.tabMoving})),dr=Object(k.createContext)(null),hr=Math.pow(.995,20);function vr(e,t){var n=k.useRef(e),r=k.useState({}),o=Object(g.a)(r,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var yr=function(e){var t,n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i={};return o&&"object"===Object(M.a)(o)&&!k.isValidElement(o)?i=o:i.right=o,"right"===n&&(t=i.right),"left"===n&&(t=i.left),t?k.createElement("div",{className:"".concat(r,"-extra-content")},t):null};function mr(e,t){var n,r,o=k.useContext(dr),i=o.prefixCls,a=o.tabs,c=e.className,u=e.style,s=e.id,l=e.animated,f=e.activeKey,p=e.rtl,d=e.extra,h=e.editable,v=e.locale,b=e.tabPosition,w=e.tabBarGutter,_=e.children,x=e.onTabClick,E=e.onTabScroll,S=Object(k.useRef)(),C=Object(k.useRef)(),P=Object(k.useRef)(),T=Object(k.useRef)(),M=(r=Object(k.useRef)(new Map),[function(e){return r.current.has(e)||r.current.set(e,k.createRef()),r.current.get(e)},function(e){r.current.delete(e)}]),A=Object(g.a)(M,2),L=A[0],R=A[1],N="top"===b||"bottom"===b,I=vr(0,(function(e,t){N&&E&&E({direction:e>t?"left":"right"})})),D=Object(g.a)(I,2),F=D[0],z=D[1],B=vr(0,(function(e,t){!N&&E&&E({direction:e>t?"top":"bottom"})})),U=Object(g.a)(B,2),G=U[0],W=U[1],Y=Object(k.useState)(0),K=Object(g.a)(Y,2),X=K[0],q=K[1],Z=Object(k.useState)(0),J=Object(g.a)(Z,2),Q=J[0],$=J[1],ee=Object(k.useState)(null),te=Object(g.a)(ee,2),ne=te[0],re=te[1],oe=Object(k.useState)(null),ie=Object(g.a)(oe,2),ae=ie[0],ce=ie[1],ue=Object(k.useState)(0),se=Object(g.a)(ue,2),le=se[0],fe=se[1],pe=Object(k.useState)(0),de=Object(g.a)(pe,2),he=de[0],ve=de[1],ye=function(e){var t=Object(k.useRef)([]),n=Object(k.useState)({}),r=Object(g.a)(n,2)[1],o=Object(k.useRef)("function"==typeof e?e():e),i=Ft((function(){var e=o.current;t.current.forEach((function(t){e=t(e)})),t.current=[],o.current=e,r({})}));return[o.current,function(e){t.current.push(e),i()}]}(new Map),me=Object(g.a)(ye,2),ge=me[0],be=me[1],Oe=function(e,t,n){return Object(k.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Ut,i=o.left+o.width,a=0;a<e.length;a+=1){var c,u=e[a].key,s=t.get(u);if(!s)s=t.get(null===(c=e[a-1])||void 0===c?void 0:c.key)||Ut;var l=r.get(u)||Object(j.a)({},s);l.right=i-l.left-l.width,r.set(u,l)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(a,ge,X),we="".concat(i,"-nav-operations-hidden"),_e=0,xe=0;function Ee(e){return e<_e?_e:e>xe?xe:e}N?p?(_e=0,xe=Math.max(0,X-ne)):(_e=Math.min(0,ne-X),xe=0):(_e=Math.min(0,ae-Q),xe=0);var Se=Object(k.useRef)(),Ce=Object(k.useState)(),je=Object(g.a)(Ce,2),ke=je[0],Pe=je[1];function Te(){Pe(Date.now())}function Me(){window.clearTimeout(Se.current)}function Ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=Oe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(N){var n=F;p?t.right<F?n=t.right:t.right+t.width>F+ne&&(n=t.right+t.width-ne):t.left<-F?n=-t.left:t.left+t.width>-F+ne&&(n=-(t.left+t.width-ne)),W(0),z(Ee(n))}else{var r=G;t.top<-G?r=-t.top:t.top+t.height>-G+ae&&(r=-(t.top+t.height-ae)),z(0),W(Ee(r))}}!function(e,t){var n=Object(k.useState)(),r=Object(g.a)(n,2),o=r[0],i=r[1],a=Object(k.useState)(0),c=Object(g.a)(a,2),u=c[0],s=c[1],l=Object(k.useState)(0),f=Object(g.a)(l,2),p=f[0],d=f[1],h=Object(k.useState)(),v=Object(g.a)(h,2),y=v[0],m=v[1],b=Object(k.useRef)(),O=Object(k.useRef)(),w=Object(k.useRef)(null);w.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(b.current)},onTouchMove:function(e){if(o){e.preventDefault();var n=e.touches[0],r=n.screenX,a=n.screenY;i({x:r,y:a});var c=r-o.x,l=a-o.y;t(c,l);var f=Date.now();s(f),d(f-u),m({x:c,y:l})}},onTouchEnd:function(){if(o&&(i(null),m(null),y)){var e=y.x/p,n=y.y/p,r=Math.abs(e),a=Math.abs(n);if(Math.max(r,a)<.1)return;var c=e,u=n;b.current=window.setInterval((function(){Math.abs(c)<.01&&Math.abs(u)<.01?window.clearInterval(b.current):t(20*(c*=hr),20*(u*=hr))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===O.current?n:r:i>a?(o=n,O.current="x"):(o=r,O.current="y"),t(-o,-o)&&e.preventDefault()}},k.useEffect((function(){function t(e){w.current.onTouchMove(e)}function n(e){w.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){w.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){w.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(S,(function(e,t){function n(e,t){e((function(e){return Ee(e+t)}))}if(N){if(ne>=X)return!1;n(z,e)}else{if(ae>=Q)return!1;n(W,t)}return Me(),Te(),!0})),Object(k.useEffect)((function(){return Me(),ke&&(Se.current=window.setTimeout((function(){Pe(0)}),100)),Me}),[ke]);var Le=function(e,t,n,r,o){var i,a,c,u=o.tabs,s=o.tabPosition,l=o.rtl;["top","bottom"].includes(s)?(i="width",a=l?"right":"left",c=Math.abs(t.left)):(i="height",a="top",c=-t.top);var f=t[i],p=n[i],d=r[i],h=f;return p+d>f&&p<f&&(h=f-d),Object(k.useMemo)((function(){if(!u.length)return[0,0];for(var t=u.length,n=t,r=0;r<t;r+=1){var o=e.get(u[r].key)||Vt;if(o[a]+o[i]>c+h){n=r-1;break}}for(var s=0,l=t-1;l>=0;l-=1){if((e.get(u[l].key)||Vt)[a]<c){s=l+1;break}}return[s,n]}),[e,c,h,s,u.map((function(e){return e.key})).join("_"),l])}(Oe,{width:ne,height:ae,left:F,top:G},{width:X,height:Q},{width:le,height:he},Object(j.a)(Object(j.a)({},e),{},{tabs:a})),Re=Object(g.a)(Le,2),Ne=Re[0],Ie=Re[1],De={};"top"===b||"bottom"===b?De[p?"marginRight":"marginLeft"]=w:De.marginTop=w;var Fe=a.map((function(e,t){var n=e.key;return k.createElement(Bt,{id:s,prefixCls:i,key:n,tab:e,style:0===t?void 0:De,closable:e.closable,editable:h,active:n===f,renderWrapper:_,removeAriaLabel:null==v?void 0:v.removeAriaLabel,ref:L(n),onClick:function(e){x(n,e)},onRemove:function(){R(n)},onFocus:function(){Ae(n),Te(),S.current&&(p||(S.current.scrollLeft=0),S.current.scrollTop=0)}})})),ze=Ft((function(){var e,t,n,r,o,i,c=(null===(e=S.current)||void 0===e?void 0:e.offsetWidth)||0,u=(null===(t=S.current)||void 0===t?void 0:t.offsetHeight)||0,s=(null===(n=T.current)||void 0===n?void 0:n.offsetWidth)||0,l=(null===(r=T.current)||void 0===r?void 0:r.offsetHeight)||0;re(c),ce(u),fe(s),ve(l);var f=((null===(o=C.current)||void 0===o?void 0:o.offsetWidth)||0)-s,p=((null===(i=C.current)||void 0===i?void 0:i.offsetHeight)||0)-l;q(f),$(p),be((function(){var e=new Map;return a.forEach((function(t){var n=t.key,r=L(n).current;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),Be=a.slice(0,Ne),Ue=a.slice(Ie+1),Ve=[].concat(Object(V.a)(Be),Object(V.a)(Ue)),He=Object(k.useState)(),Ge=Object(g.a)(He,2),We=Ge[0],Ye=Ge[1],Ke=Oe.get(f),Xe=Object(k.useRef)();function qe(){H.a.cancel(Xe.current)}Object(k.useEffect)((function(){var e={};return Ke&&(N?(p?e.right=Ke.right:e.left=Ke.left,e.width=Ke.width):(e.top=Ke.top,e.height=Ke.height)),qe(),Xe.current=Object(H.a)((function(){Ye(e)})),qe}),[Ke,N,p]),Object(k.useEffect)((function(){Ae()}),[f,Ke,Oe,N]),Object(k.useEffect)((function(){ze()}),[p,w,f,a.map((function(e){return e.key})).join("_")]);var Ze,Je,Qe,$e,et=!!Ve.length,tt="".concat(i,"-nav-wrap");return N?p?(Je=F>0,Ze=F+ne<X):(Ze=F<0,Je=-F+ne<X):(Qe=G<0,$e=-G+ae<Q),k.createElement("div",{ref:t,role:"tablist",className:O()("".concat(i,"-nav"),c),style:u,onKeyDown:function(){Te()}},k.createElement(yr,{position:"left",extra:d,prefixCls:i}),k.createElement(Dt.a,{onResize:ze},k.createElement("div",{className:O()(tt,(n={},Object(y.a)(n,"".concat(tt,"-ping-left"),Ze),Object(y.a)(n,"".concat(tt,"-ping-right"),Je),Object(y.a)(n,"".concat(tt,"-ping-top"),Qe),Object(y.a)(n,"".concat(tt,"-ping-bottom"),$e),n)),ref:S},k.createElement(Dt.a,{onResize:ze},k.createElement("div",{ref:C,className:"".concat(i,"-nav-list"),style:{transform:"translate(".concat(F,"px, ").concat(G,"px)"),transition:ke?"none":void 0}},Fe,k.createElement(lr,{ref:T,prefixCls:i,locale:v,editable:h,style:Object(j.a)(Object(j.a)({},0===Fe.length?void 0:De),{},{visibility:et?"hidden":null})}),k.createElement("div",{className:O()("".concat(i,"-ink-bar"),Object(y.a)({},"".concat(i,"-ink-bar-animated"),l.inkBar)),style:We}))))),k.createElement(pr,Object(m.a)({},e,{removeAriaLabel:null==v?void 0:v.removeAriaLabel,ref:P,prefixCls:i,tabs:Ve,className:!et&&we,tabMoving:!!ke})),k.createElement(yr,{position:"right",extra:d,prefixCls:i}))}var gr=k.forwardRef(mr);function br(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.rtl,a=e.destroyInactiveTabPane,c=k.useContext(dr),u=c.prefixCls,s=c.tabs,l=r.tabPane,f=s.findIndex((function(e){return e.key===n}));return k.createElement("div",{className:O()("".concat(u,"-content-holder"))},k.createElement("div",{className:O()("".concat(u,"-content"),"".concat(u,"-content-").concat(o),Object(y.a)({},"".concat(u,"-content-animated"),l)),style:f&&l?Object(y.a)({},i?"marginRight":"marginLeft","-".concat(f,"00%")):null},s.map((function(e){return k.cloneElement(e.node,{key:e.key,prefixCls:u,tabKey:e.key,id:t,animated:l,active:e.key===n,destroyInactiveTabPane:a})}))))}function Or(e){var t=e.prefixCls,n=e.forceRender,r=e.className,o=e.style,i=e.id,a=e.active,c=e.animated,u=e.destroyInactiveTabPane,s=e.tabKey,l=e.children,f=k.useState(n),p=Object(g.a)(f,2),d=p[0],h=p[1];k.useEffect((function(){a?h(!0):u&&h(!1)}),[a,u]);var v={};return a||(c?(v.visibility="hidden",v.height=0,v.overflowY="hidden"):v.display="none"),k.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:Object(j.a)(Object(j.a)({},v),o),className:O()("".concat(t,"-tabpane"),a&&"".concat(t,"-tabpane-active"),r)},(a||d||n)&&l)}var wr=["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],_r=0;function xr(e,t){var n,r,o=e.id,i=e.prefixCls,a=void 0===i?"rc-tabs":i,c=e.className,u=e.children,s=e.direction,l=e.activeKey,f=e.defaultActiveKey,p=e.editable,d=e.animated,h=void 0===d?{inkBar:!0,tabPane:!1}:d,v=e.tabPosition,b=void 0===v?"top":v,w=e.tabBarGutter,_=e.tabBarStyle,x=e.tabBarExtraContent,E=e.locale,S=e.moreIcon,C=e.moreTransitionName,P=e.destroyInactiveTabPane,A=e.renderTabBar,L=e.onChange,R=e.onTabClick,N=e.onTabScroll,I=e.getPopupContainer,D=e.popupClassName,F=Object(Rt.a)(e,wr),z=function(e){return Object(Nt.a)(e).map((function(e){if(k.isValidElement(e)){var t=void 0!==e.key?String(e.key):void 0;return Object(j.a)(Object(j.a)({key:t},e.props),{},{node:e})}return null})).filter((function(e){return e}))}(u),B="rtl"===s;r=!1===h?{inkBar:!1,tabPane:!1}:!0===h?{inkBar:!0,tabPane:!0}:Object(j.a)({inkBar:!0,tabPane:!1},"object"===Object(M.a)(h)?h:{});var U=Object(k.useState)(!1),V=Object(g.a)(U,2),H=V[0],G=V[1];Object(k.useEffect)((function(){G(Object(It.a)())}),[]);var W=Object(T.a)((function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key}),{value:l,defaultValue:f}),Y=Object(g.a)(W,2),K=Y[0],X=Y[1],q=Object(k.useState)((function(){return z.findIndex((function(e){return e.key===K}))})),Z=Object(g.a)(q,2),J=Z[0],Q=Z[1];Object(k.useEffect)((function(){var e,t=z.findIndex((function(e){return e.key===K}));-1===t&&(t=Math.max(0,Math.min(J,z.length-1)),X(null===(e=z[t])||void 0===e?void 0:e.key));Q(t)}),[z.map((function(e){return e.key})).join("_"),K,J]);var $=Object(T.a)(null,{value:o}),ee=Object(g.a)($,2),te=ee[0],ne=ee[1],re=b;H&&!["left","right"].includes(b)&&(re="top"),Object(k.useEffect)((function(){o||(ne("rc-tabs-".concat(_r)),_r+=1)}),[]);var oe,ie={id:te,activeKey:K,animated:r,tabPosition:re,rtl:B,mobile:H},ae=Object(j.a)(Object(j.a)({},ie),{},{editable:p,locale:E,moreIcon:S,moreTransitionName:C,tabBarGutter:w,onTabClick:function(e,t){null==R||R(e,t);var n=e!==K;X(e),n&&(null==L||L(e))},onTabScroll:N,extra:x,style:_,panes:u,getPopupContainer:I,popupClassName:D});return oe=A?A(ae,gr):k.createElement(gr,ae),k.createElement(dr.Provider,{value:{tabs:z,prefixCls:a}},k.createElement("div",Object(m.a)({ref:t,id:o,className:O()(a,"".concat(a,"-").concat(re),(n={},Object(y.a)(n,"".concat(a,"-mobile"),H),Object(y.a)(n,"".concat(a,"-editable"),p),Object(y.a)(n,"".concat(a,"-rtl"),B),n),c)},F),oe,k.createElement(br,Object(m.a)({destroyInactiveTabPane:P},ie,{animated:r}))))}var Er=k.forwardRef(xr);Er.TabPane=Or;var Sr=Er,Cr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function jr(e){var t,n=e.type,r=e.className,o=e.size,i=e.onEdit,a=e.hideAdd,c=e.centered,u=e.addIcon,s=Cr(e,["type","className","size","onEdit","hideAdd","centered","addIcon"]),l=s.prefixCls,f=s.moreIcon,p=void 0===f?k.createElement(Pt.a,null):f,d=k.useContext(dt.b),h=d.getPrefixCls,v=d.direction,g=h("tabs",l);"editable-card"===n&&(t={onEdit:function(e,t){var n=t.key,r=t.event;null==i||i("add"===e?r:n,e)},removeIcon:k.createElement(kt.a,null),addIcon:u||k.createElement(Lt,null),showAdd:!0!==a});var b=h();return k.createElement(Ct.b.Consumer,null,(function(e){var i,a=void 0!==o?o:e;return k.createElement(Sr,Object(m.a)({direction:v,moreTransitionName:"".concat(b,"-slide-up")},s,{className:O()((i={},Object(y.a)(i,"".concat(g,"-").concat(a),a),Object(y.a)(i,"".concat(g,"-card"),["card","editable-card"].includes(n)),Object(y.a)(i,"".concat(g,"-editable-card"),"editable-card"===n),Object(y.a)(i,"".concat(g,"-centered"),c),i),r),editable:t,moreIcon:p,prefixCls:g}))}))}jr.TabPane=Or;var kr=jr,Pr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Tr=function(e){var t=e.prefixCls,n=e.className,r=e.hoverable,o=void 0===r||r,i=Pr(e,["prefixCls","className","hoverable"]);return k.createElement(dt.a,null,(function(e){var r=(0,e.getPrefixCls)("card",t),a=O()("".concat(r,"-grid"),n,Object(y.a)({},"".concat(r,"-grid-hoverable"),o));return k.createElement("div",Object(m.a)({},i,{className:a}))}))},Mr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Ar=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Lr=function(e){return k.createElement(dt.a,null,(function(t){var n=t.getPrefixCls,r=e.prefixCls,o=e.className,i=e.avatar,a=e.title,c=e.description,u=Ar(e,["prefixCls","className","avatar","title","description"]),s=n("card",r),l=O()("".concat(s,"-meta"),o),f=i?k.createElement("div",{className:"".concat(s,"-meta-avatar")},i):null,p=a?k.createElement("div",{className:"".concat(s,"-meta-title")},a):null,d=c?k.createElement("div",{className:"".concat(s,"-meta-description")},c):null,h=p||d?k.createElement("div",{className:"".concat(s,"-meta-detail")},p,d):null;return k.createElement("div",Object(m.a)({},u,{className:l}),f,h)}))},Rr=k.forwardRef((function(e,t){var n,r,o,i=k.useContext(dt.b),a=i.getPrefixCls,c=i.direction,u=k.useContext(Ct.b),s=e.prefixCls,l=e.className,f=e.extra,p=e.headStyle,d=void 0===p?{}:p,h=e.bodyStyle,v=void 0===h?{}:h,g=e.title,b=e.loading,w=e.bordered,_=void 0===w||w,x=e.size,E=e.type,S=e.cover,C=e.actions,j=e.tabList,P=e.children,T=e.activeTabKey,M=e.defaultActiveTabKey,A=e.tabBarExtraContent,L=e.hoverable,R=e.tabProps,N=void 0===R?{}:R,I=Mr(e,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),D=a("card",s),F=k.createElement(jt.a,{loading:!0,active:!0,paragraph:{rows:4},title:!1},P),z=void 0!==T,B=Object(m.a)(Object(m.a)({},N),(n={},Object(y.a)(n,z?"activeKey":"defaultActiveKey",z?T:M),Object(y.a)(n,"tabBarExtraContent",A),n)),U=j&&j.length?k.createElement(kr,Object(m.a)({size:"large"},B,{className:"".concat(D,"-head-tabs"),onChange:function(t){var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)}}),j.map((function(e){return k.createElement(kr.TabPane,{tab:e.tab,disabled:e.disabled,key:e.key})}))):null;(g||f||U)&&(o=k.createElement("div",{className:"".concat(D,"-head"),style:d},k.createElement("div",{className:"".concat(D,"-head-wrapper")},g&&k.createElement("div",{className:"".concat(D,"-head-title")},g),f&&k.createElement("div",{className:"".concat(D,"-extra")},f)),U));var V,H=S?k.createElement("div",{className:"".concat(D,"-cover")},S):null,G=k.createElement("div",{className:"".concat(D,"-body"),style:v},b?F:P),W=C&&C.length?k.createElement("ul",{className:"".concat(D,"-actions")},function(e){return e.map((function(t,n){return k.createElement("li",{style:{width:"".concat(100/e.length,"%")},key:"action-".concat(n)},k.createElement("span",null,t))}))}(C)):null,Y=Object(St.a)(I,["onTabChange"]),K=x||u,X=O()(D,(r={},Object(y.a)(r,"".concat(D,"-loading"),b),Object(y.a)(r,"".concat(D,"-bordered"),_),Object(y.a)(r,"".concat(D,"-hoverable"),L),Object(y.a)(r,"".concat(D,"-contain-grid"),(k.Children.forEach(e.children,(function(e){e&&e.type&&e.type===Tr&&(V=!0)})),V)),Object(y.a)(r,"".concat(D,"-contain-tabs"),j&&j.length),Object(y.a)(r,"".concat(D,"-").concat(K),K),Object(y.a)(r,"".concat(D,"-type-").concat(E),!!E),Object(y.a)(r,"".concat(D,"-rtl"),"rtl"===c),r),l);return k.createElement("div",Object(m.a)({ref:t},Y,{className:X}),o,H,G,W)}));Rr.Grid=Tr,Rr.Meta=Lr;var Nr=Rr,Ir=n("3I+P"),Dr=n("uOPO"),Fr=n("QmBg"),zr=n("PtGW"),Br=n("diSF"),Ur=n("qHzf");function Vr(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function Hr(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function Gr(e,t,n,r){var o,i=[];o=r||Hr;var a=new Set(e.filter((function(e){var t=!!n[e];return t||i.push(e),t}))),c=new Map,u=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(t),u=Math.max(u,r)})),Object(h.a)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}))}for(var c=new Set,u=n;u>=0;u-=1){(t.get(u)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!c.has(e.parent.key))if(r(e.parent.node))c.add(t.key);else{var a=!0,u=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),u||!n&&!i.has(t)||(u=!0)})),a&&o.add(t.key),u&&i.add(t.key),c.add(t.key)}}))}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Vr(i,o))}}(a,c,u,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),c=0;c<=r;c+=1){(n.get(c)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,c=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||c.filter((function(e){return!o(e.node)})).forEach((function(e){i.delete(e.key)}))}))}a=new Set;for(var u=new Set,s=r;s>=0;s-=1){(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!u.has(e.parent.key))if(o(e.parent.node))u.add(t.key);else{var r=!0,c=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),c||!n&&!a.has(t)||(c=!0)})),r||i.delete(t.key),c&&a.add(t.key),u.add(t.key)}}))}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Vr(a,i))}}(a,t.halfCheckedKeys,c,u,o)}var Wr=k.createContext(null);function Yr(e){return e.join("__RC_CASCADER_SPLIT__")}function Kr(e){return e.map(Yr)}function Xr(e,t){var n,r;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null===(r=e[t.children])||void 0===r?void 0:r.length)}function qr(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function Zr(e,t,n){var r=new Set(e),o=t();return e.filter((function(e){var t=o[e],i=t?t.parent:null,a=t?t.children:null;return"SHOW_CHILD"===n?!(a&&a.some((function(e){return e.key&&r.has(e.key)}))):!(i&&!i.node.disabled&&r.has(i.key))}))}function Jr(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t,i=[],a=function(t){var a,c,u,s=e[t],l=null===(a=o)||void 0===a?void 0:a.findIndex((function(e){var t=e[n.value];return r?String(t)===String(s):t===s})),f=-1!==l?null===(c=o)||void 0===c?void 0:c[l]:null;i.push({value:null!==(u=null==f?void 0:f[n.value])&&void 0!==u?u:s,index:l,option:f}),o=null==f?void 0:f[n.children]},c=0;c<e.length;c+=1)a(c);return i}var Qr=n("pWxA"),$r=n("8EaV"),eo=k.createContext(null),to=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,i="".concat(t,"-indent-unit"),a=[],c=0;c<n;c+=1){var u;a.push(k.createElement("span",{key:c,className:O()(i,(u={},Object(y.a)(u,"".concat(i,"-start"),r[c]),Object(y.a)(u,"".concat(i,"-end"),o[c]),u))}))}return k.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},a)},no=k.memo(to),ro=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],oo=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;Object(x.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={dragNodeHighlight:!1},e.selectHandle=void 0,e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,Co(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,Co(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var n=e.props.context.onNodeSelect;t.preventDefault(),n(t,Co(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){t.preventDefault();var a=!o;i(t,Co(e.props),a)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,Co(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,Co(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,Co(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,Object(Qr.a)(e));try{t.dataTransfer.setData("text/plain","")}catch(r){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,Object(Qr.a)(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,Object(Qr.a)(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,Object(Qr.a)(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(Qr.a)(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(Qr.a)(e))},e.onExpand=function(t){var n=e.props,r=n.loading,o=n.context.onNodeExpand;r||o(t,Co(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?"open":"close"},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!o&&!i||o&&r&&!i)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,r=t.loading,o=t.loaded,i=e.props.context,a=i.loadData,c=i.onNodeLoad;r||a&&n&&!e.isLeaf()&&(e.hasChildren()||o||c(Co(e.props)))},e.isDraggable=function(){var t=e.props,n=t.data,r=t.context.draggable;return!(!r||r.nodeDraggable&&!r.nodeDraggable(n))},e.renderDragHandler=function(){var t=e.props.context,n=t.draggable,r=t.prefixCls;return(null==n?void 0:n.icon)?k.createElement("span",{className:"".concat(r,"-draggable-icon")},n.icon):null},e.renderSwitcherIconDom=function(t){var n=e.props.switcherIcon,r=e.props.context.switcherIcon,o=n||r;return"function"==typeof o?o(Object(j.a)(Object(j.a)({},e.props),{},{isLeaf:t})):o},e.renderSwitcher=function(){var t=e.props.expanded,n=e.props.context.prefixCls;if(e.isLeaf()){var r=e.renderSwitcherIconDom(!0);return!1!==r?k.createElement("span",{className:O()("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},r):null}var o=O()("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?"open":"close")),i=e.renderSwitcherIconDom(!1);return!1!==i?k.createElement("span",{onClick:e.onExpand,className:o},i):null},e.renderCheckbox=function(){var t=e.props,n=t.checked,r=t.halfChecked,o=t.disableCheckbox,i=e.props.context.prefixCls,a=e.isDisabled(),c=e.isCheckable();if(!c)return null;var u="boolean"!=typeof c?c:null;return k.createElement("span",{className:O()("".concat(i,"-checkbox"),n&&"".concat(i,"-checkbox-checked"),!n&&r&&"".concat(i,"-checkbox-indeterminate"),(a||o)&&"".concat(i,"-checkbox-disabled")),onClick:e.onCheck},u)},e.renderIcon=function(){var t=e.props.loading,n=e.props.context.prefixCls;return k.createElement("span",{className:O()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},e.renderSelector=function(){var t,n,r=e.state.dragNodeHighlight,o=e.props,i=o.title,a=o.selected,c=o.icon,u=o.loading,s=o.data,l=e.props.context,f=l.prefixCls,p=l.showIcon,d=l.icon,h=l.loadData,v=l.titleRender,y=e.isDisabled(),m="".concat(f,"-node-content-wrapper");if(p){var g=c||d;t=g?k.createElement("span",{className:O()("".concat(f,"-iconEle"),"".concat(f,"-icon__customize"))},"function"==typeof g?g(e.props):g):e.renderIcon()}else h&&u&&(t=e.renderIcon());n="function"==typeof i?i(s):v?v(s):i;var b=k.createElement("span",{className:"".concat(f,"-title")},n);return k.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof i?i:"",className:O()("".concat(m),"".concat(m,"-").concat(e.getNodeState()||"normal"),!y&&(a||r)&&"".concat(f,"-node-selected")),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick},t,b,e.renderDropIndicator())},e.renderDropIndicator=function(){var t=e.props,n=t.disabled,r=t.eventKey,o=e.props.context,i=o.draggable,a=o.dropLevelOffset,c=o.dropPosition,u=o.prefixCls,s=o.indent,l=o.dropIndicatorRender,f=o.dragOverNodeKey,p=o.direction;return!n&&!1!==i&&f===r?l({dropPosition:c,dropLevelOffset:a,indent:s,prefixCls:u,direction:p}):null},e}return Object(E.a)(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,r=t.className,o=t.style,i=t.dragOver,a=t.dragOverGapTop,c=t.dragOverGapBottom,u=t.isLeaf,s=t.isStart,l=t.isEnd,f=t.expanded,p=t.selected,d=t.checked,h=t.halfChecked,v=t.loading,g=t.domRef,b=t.active,w=(t.data,t.onMouseMove),_=t.selectable,x=Object(Rt.a)(t,ro),E=this.props.context,S=E.prefixCls,C=E.filterTreeNode,j=E.keyEntities,P=E.dropContainerKey,T=E.dropTargetKey,M=E.draggingNodeKey,A=this.isDisabled(),L=Object($r.a)(x,{aria:!0,data:!0}),R=(j[n]||{}).level,N=l[l.length-1],I=this.isDraggable(),D=!A&&I,F=M===n,z=void 0!==_?{"aria-selected":!!_}:void 0;return k.createElement("div",Object(m.a)({ref:g,className:O()(r,"".concat(S,"-treenode"),(e={},Object(y.a)(e,"".concat(S,"-treenode-disabled"),A),Object(y.a)(e,"".concat(S,"-treenode-switcher-").concat(f?"open":"close"),!u),Object(y.a)(e,"".concat(S,"-treenode-checkbox-checked"),d),Object(y.a)(e,"".concat(S,"-treenode-checkbox-indeterminate"),h),Object(y.a)(e,"".concat(S,"-treenode-selected"),p),Object(y.a)(e,"".concat(S,"-treenode-loading"),v),Object(y.a)(e,"".concat(S,"-treenode-active"),b),Object(y.a)(e,"".concat(S,"-treenode-leaf-last"),N),Object(y.a)(e,"".concat(S,"-treenode-draggable"),D),Object(y.a)(e,"dragging",F),Object(y.a)(e,"drop-target",T===n),Object(y.a)(e,"drop-container",P===n),Object(y.a)(e,"drag-over",!A&&i),Object(y.a)(e,"drag-over-gap-top",!A&&a),Object(y.a)(e,"drag-over-gap-bottom",!A&&c),Object(y.a)(e,"filter-node",C&&C(Co(this.props))),e)),style:o,draggable:D,"aria-grabbed":F,onDragStart:D?this.onDragStart:void 0,onDragEnter:I?this.onDragEnter:void 0,onDragOver:I?this.onDragOver:void 0,onDragLeave:I?this.onDragLeave:void 0,onDrop:I?this.onDrop:void 0,onDragEnd:I?this.onDragEnd:void 0,onMouseMove:w},z,L),k.createElement(no,{prefixCls:S,level:R,isStart:s,isEnd:l}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(k.Component),io=function(e){return k.createElement(eo.Consumer,null,(function(t){return k.createElement(oo,Object(m.a)({},e,{context:t}))}))};io.displayName="TreeNode",io.defaultProps={title:"---"},io.isTreeNode=1;var ao=io;function co(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function uo(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function so(e){return e.split("-")}function lo(e,t){return"".concat(e,"-").concat(t)}function fo(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(t[e].children),n}function po(e){if(e.parent){var t=so(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function ho(e,t,n,r,o,i,a,c,u,s){var l,f=e.clientX,p=e.clientY,d=e.target.getBoundingClientRect(),h=d.top,v=d.height,y=(("rtl"===s?-1:1)*(((null==o?void 0:o.x)||0)-f)-12)/r,m=c[n.props.eventKey];if(p<h+v/2){var g=a.findIndex((function(e){return e.key===m.key})),b=a[g<=0?0:g-1].key;m=c[b]}var O=m.key,w=m,_=m.key,x=0,E=0;if(!u.includes(O))for(var S=0;S<y&&po(m);S+=1)m=m.parent,E+=1;var C,j=t.props.data,k=m.node,P=!0;return C=so(m.pos),0===Number(C[C.length-1])&&0===m.level&&p<h+v/2&&i({dragNode:j,dropNode:k,dropPosition:-1})&&m.key===n.props.eventKey?x=-1:(w.children||[]).length&&u.includes(_)?i({dragNode:j,dropNode:k,dropPosition:0})?x=0:P=!1:0===E?y>-1.5?i({dragNode:j,dropNode:k,dropPosition:1})?x=1:P=!1:i({dragNode:j,dropNode:k,dropPosition:0})?x=0:i({dragNode:j,dropNode:k,dropPosition:1})?x=1:P=!1:i({dragNode:j,dropNode:k,dropPosition:1})?x=1:P=!1,{dropPosition:x,dropLevelOffset:E,dropTargetKey:m.key,dropTargetPos:m.pos,dragOverNodeKey:_,dropContainerKey:0===x?null:(null===(l=m.parent)||void 0===l?void 0:l.key)||null,dropAllowed:P}}function vo(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function yo(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==Object(M.a)(e))return Object(h.a)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function mo(e,t){var n=new Set;return(e||[]).forEach((function(e){!function e(r){if(!n.has(r)){var o=t[r];if(o){n.add(r);var i=o.parent;o.node.disabled||i&&e(i.key)}}}(e)})),Object(V.a)(n)}var go=["children"];function bo(e,t){return null!=e?e:t}function Oo(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function wo(e){return function e(t){return Object(Nt.a)(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return Object(h.a)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=Object(Rt.a)(r,go),a=Object(j.a)({key:n},i),c=e(o);return c.length&&(a.children=c),a})).filter((function(e){return e}))}(e)}function _o(e,t,n){var r=Oo(n),o=r._title,i=r.key,a=r.children,c=new Set(!0===t?[]:t),u=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(s,l){for(var f,p=lo(r?r.pos:"0",l),d=bo(s[i],p),h=0;h<o.length;h+=1){var v=o[h];if(void 0!==s[v]){f=s[v];break}}var y=Object(j.a)(Object(j.a)({},Object(St.a)(s,[].concat(Object(V.a)(o),[i,a]))),{},{title:f,key:d,parent:r,pos:p,children:null,data:s,isStart:[].concat(Object(V.a)(r?r.isStart:[]),[0===l]),isEnd:[].concat(Object(V.a)(r?r.isEnd:[]),[l===n.length-1])});return u.push(y),!0===t||c.has(d)?y.children=e(s[a]||[],y):y.children=[],y}))}(e),u}function xo(e,t,n){var r,o=("object"===Object(M.a)(n)?n:{externalGetKey:n})||{},i=o.childrenPropName,a=o.externalGetKey,c=Oo(o.fieldNames),u=c.key,s=c.children,l=i||s;a?"string"==typeof a?r=function(e){return e[a]}:"function"==typeof a&&(r=function(e){return a(e)}):r=function(e,t){return bo(e[u],t)},function n(o,i,a,c){var u=o?o[l]:e,s=o?lo(a.pos,i):"0",f=o?[].concat(Object(V.a)(c),[o]):[];if(o){var p=r(o,s),d={node:o,index:i,pos:s,key:p,parentPos:a.node?a.pos:null,level:a.level+1,nodes:f};t(d)}u&&u.forEach((function(e,t){n(e,t,{node:o,pos:s,level:a?a.level+1:-1},f)}))}(null)}function Eo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,c=t.fieldNames,u=arguments.length>2?arguments[2]:void 0,s=i||u,l={},f={},p={posEntities:l,keyEntities:f};return n&&(p=n(p)||p),xo(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,c=e.level,u={node:t,nodes:e.nodes,index:n,key:i,pos:o,level:c},s=bo(i,o);l[o]=u,f[s]=u,u.parent=l[a],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),r&&r(u,p)}),{externalGetKey:s,childrenPropName:a,fieldNames:c}),o&&o(p),p}function So(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,c=t.halfCheckedKeys,u=t.dragOverNodeKey,s=t.dropPosition,l=t.keyEntities[e];return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==c.indexOf(e),pos:String(l?l.pos:""),dragOver:u===e&&0===s,dragOverGapTop:u===e&&-1===s,dragOverGapBottom:u===e&&1===s}}function Co(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,c=e.halfChecked,u=e.dragOver,s=e.dragOverGapTop,l=e.dragOverGapBottom,f=e.pos,p=e.active,d=e.eventKey,v=Object(j.a)(Object(j.a)({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:c,dragOver:u,dragOverGapTop:s,dragOverGapBottom:l,pos:f,active:p,key:d});return"props"in v||Object.defineProperty(v,"props",{get:function(){return Object(h.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}function jo(e){var t=k.useRef();return t.current=e,k.useCallback((function(){return t.current.apply(t,arguments)}),[])}n("tQbP");var ko="__rc_cascader_search_mark__",Po=function(e,t,n){var r=n.label;return t.some((function(t){return String(t[r]).toLowerCase().includes(e.toLowerCase())}))},To=function(e,t,n,r){return t.map((function(e){return e[r.label]})).join(" / ")};function Mo(e){var t,n=e.prefixCls,r=e.checked,o=e.halfChecked,i=e.disabled,a=e.onClick,c=k.useContext(Wr).checkable,u="boolean"!=typeof c?c:null;return k.createElement("span",{className:O()("".concat(n),(t={},Object(y.a)(t,"".concat(n,"-checked"),r),Object(y.a)(t,"".concat(n,"-indeterminate"),!r&&o),Object(y.a)(t,"".concat(n,"-disabled"),i),t)),onClick:a},u)}function Ao(e){var t=e.prefixCls,n=e.multiple,r=e.options,o=e.activeValue,i=e.prevValuePath,a=e.onToggleOpen,c=e.onSelect,u=e.onActive,s=e.checkedSet,l=e.halfCheckedSet,f=e.loadingKeys,p=e.isSelectable,d="".concat(t,"-menu"),h="".concat(t,"-menu-item"),v=k.useContext(Wr),m=v.fieldNames,g=v.changeOnSelect,b=v.expandTrigger,w=v.expandIcon,_=v.loadingIcon,x=v.dropdownMenuColumnStyle,E="hover"===b,S=k.useMemo((function(){return r.map((function(e){var t,n=e.disabled,r=e[ko],o=null!==(t=e.__cascader_fix_label__)&&void 0!==t?t:e[m.label],a=e[m.value],c=Xr(e,m),u=r?r.map((function(e){return e[m.value]})):[].concat(Object(V.a)(i),[a]),p=Yr(u);return{disabled:n,label:o,value:a,isLeaf:c,isLoading:f.includes(p),checked:s.has(p),halfChecked:l.has(p),option:e,fullPath:u,fullPathKey:p}}))}),[r,s,m,l,f,i]);return k.createElement("ul",{className:d,role:"menu"},S.map((function(e){var r,i,s=e.disabled,l=e.label,f=e.value,d=e.isLeaf,v=e.isLoading,m=e.checked,b=e.halfChecked,S=e.option,C=e.fullPath,j=e.fullPathKey,P=function(){s||E&&d||u(C)},T=function(){p(S)&&c(C,d)};return"string"==typeof S.title?i=S.title:"string"==typeof l&&(i=l),k.createElement("li",{key:j,className:O()(h,(r={},Object(y.a)(r,"".concat(h,"-expand"),!d),Object(y.a)(r,"".concat(h,"-active"),o===f),Object(y.a)(r,"".concat(h,"-disabled"),s),Object(y.a)(r,"".concat(h,"-loading"),v),r)),style:x,role:"menuitemcheckbox",title:i,"aria-checked":m,"data-path-key":j,onClick:function(){P(),n&&!d||T()},onDoubleClick:function(){g&&a(!1)},onMouseEnter:function(){E&&P()},onMouseDown:function(e){e.preventDefault()}},n&&k.createElement(Mo,{prefixCls:"".concat(t,"-checkbox"),checked:m,halfChecked:b,disabled:s,onClick:function(e){e.stopPropagation(),T()}}),k.createElement("div",{className:"".concat(h,"-content")},l),!v&&w&&!d&&k.createElement("div",{className:"".concat(h,"-expand-icon")},w),v&&_&&k.createElement("div",{className:"".concat(h,"-loading-icon")},_))})))}var Lo=function(e,t,n,r,o,i){var a=Object(Br.e)(),c=a.direction,u=a.searchValue,s=a.toggleOpen,l=a.open,f="rtl"===c,p=k.useMemo((function(){for(var e=-1,o=t,i=[],a=[],c=r.length,u=function(t){var c=o.findIndex((function(e){return e[n.value]===r[t]}));if(-1===c)return"break";e=c,i.push(e),a.push(r[t]),o=o[e][n.children]},s=0;s<c&&o;s+=1){if("break"===u(s))break}for(var l=t,f=0;f<i.length-1;f+=1)l=l[i[f]][n.children];return[a,e,l]}),[r,n,t]),d=Object(g.a)(p,3),h=d[0],v=d[1],y=d[2],m=function(e){o(e)},b=function(){if(h.length>1){var e=h.slice(0,-1);m(e)}else s(!1)},O=function(){var e,t=((null===(e=y[v])||void 0===e?void 0:e[n.children])||[]).find((function(e){return!e.disabled}));if(t){var r=[].concat(Object(V.a)(h),[t[n.value]]);m(r)}};k.useImperativeHandle(e,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case A.a.UP:case A.a.DOWN:var r=0;t===A.a.UP?r=-1:t===A.a.DOWN&&(r=1),0!==r&&function(e){var t=y.length,r=v;-1===r&&e<0&&(r=t);for(var o=0;o<t;o+=1){var i=y[r=(r+e+t)%t];if(i&&!i.disabled){var a=i[n.value],c=h.slice(0,-1).concat(a);return void m(c)}}}(r);break;case A.a.LEFT:f?O():b();break;case A.a.RIGHT:f?b():O();break;case A.a.BACKSPACE:u||b();break;case A.a.ENTER:if(h.length){var o=y[v],a=(null==o?void 0:o[ko])||[];a.length?i(a.map((function(e){return e[n.value]})),a[a.length-1]):i(h,y[v])}break;case A.a.ESC:s(!1),l&&e.stopPropagation()}},onKeyUp:function(){}}}))},Ro=k.forwardRef((function(e,t){var n,r,o,i,a=Object(Br.e)(),c=a.prefixCls,u=a.multiple,s=a.searchValue,l=a.toggleOpen,f=a.notFoundContent,p=a.direction,d=k.useRef(),h="rtl"===p,v=k.useContext(Wr),b=v.options,w=v.values,_=v.halfValues,x=v.fieldNames,E=v.changeOnSelect,S=v.onSelect,C=v.searchOptions,P=v.dropdownPrefixCls,T=v.loadData,M=v.expandTrigger,A=P||c,L=k.useState([]),R=Object(g.a)(L,2),N=R[0],I=R[1];k.useEffect((function(){N.length&&N.forEach((function(e){var t=Jr(e.split("__RC_CASCADER_SPLIT__"),b,x,!0).map((function(e){return e.option})),n=t[t.length-1];(!n||n[x.children]||Xr(n,x))&&I((function(t){return t.filter((function(t){return t!==e}))}))}))}),[b,N,x]);var D=k.useMemo((function(){return new Set(Kr(w))}),[w]),F=k.useMemo((function(){return new Set(Kr(_))}),[_]),z=function(){var e=Object(Br.e)(),t=e.multiple,n=e.open,r=k.useContext(Wr).values,o=k.useState([]),i=Object(g.a)(o,2),a=i[0],c=i[1];return k.useEffect((function(){if(n&&!t){var e=r[0];c(e||[])}}),[n]),[a,c]}(),B=Object(g.a)(z,2),U=B[0],H=B[1],G=function(e){H(e),function(e){if(T&&!s){var t=Jr(e,b,x).map((function(e){return e.option})),n=t[t.length-1];if(n&&!Xr(n,x)){var r=Yr(e);I((function(e){return[].concat(Object(V.a)(e),[r])})),T(t)}}}(e)},W=function(e){var t=e.disabled,n=Xr(e,x);return!t&&(n||E||u)},Y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];S(e),!u&&(t||E&&("hover"===M||n))&&l(!1)},K=k.useMemo((function(){return s?C:b}),[s,C,b]),X=k.useMemo((function(){for(var e=[{options:K}],t=K,n=function(n){var r=U[n],o=t.find((function(e){return e[x.value]===r})),i=null==o?void 0:o[x.children];if(!(null==i?void 0:i.length))return"break";t=i,e.push({options:i})},r=0;r<U.length;r+=1){if("break"===n(r))break}return e}),[K,U,x]);Lo(t,K,x,U,G,(function(e,t){W(t)&&Y(e,Xr(t,x),!0)})),k.useEffect((function(){for(var e=0;e<U.length;e+=1){var t,n=Yr(U.slice(0,e+1)),r=null===(t=d.current)||void 0===t?void 0:t.querySelector('li[data-path-key="'.concat(n.replace(/\\{0,2}"/g,'\\"'),'"]'));r&&qr(r)}}),[U]);var q=!(null===(n=X[0])||void 0===n||null===(r=n.options)||void 0===r?void 0:r.length),Z=[(o={},Object(y.a)(o,x.value,"__EMPTY__"),Object(y.a)(o,"__cascader_fix_label__",f),Object(y.a)(o,"disabled",!0),o)],J=Object(j.a)(Object(j.a)({},e),{},{multiple:!q&&u,onSelect:Y,onActive:G,onToggleOpen:l,checkedSet:D,halfCheckedSet:F,loadingKeys:N,isSelectable:W}),Q=(q?[{options:Z}]:X).map((function(e,t){var n=U.slice(0,t),r=U[t];return k.createElement(Ao,Object(m.a)({key:t},J,{prefixCls:A,options:e.options,prevValuePath:n,activeValue:r}))}));return k.createElement("div",{className:O()("".concat(A,"-menus"),(i={},Object(y.a)(i,"".concat(A,"-menu-empty"),q),Object(y.a)(i,"".concat(A,"-rtl"),h),i)),ref:d},Q)}));var No=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Io(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((function(e){return Array.isArray(e)?e:[e]})):[]}var Do=k.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,o=void 0===r?"rc-cascader":r,i=e.fieldNames,a=e.defaultValue,c=e.value,u=e.changeOnSelect,s=e.onChange,l=e.displayRender,f=e.checkable,p=e.searchValue,d=e.onSearch,h=e.showSearch,v=e.expandTrigger,b=e.options,O=e.dropdownPrefixCls,w=e.loadData,_=e.popupVisible,x=e.open,E=e.popupClassName,S=e.dropdownClassName,C=e.dropdownMenuColumnStyle,P=e.popupPlacement,A=e.placement,L=e.onDropdownVisibleChange,R=e.onPopupVisibleChange,N=e.expandIcon,I=void 0===N?">":N,D=e.loadingIcon,F=e.children,z=e.dropdownMatchSelectWidth,B=void 0!==z&&z,U=e.showCheckedStrategy,H=void 0===U?"SHOW_PARENT":U,G=Object(Rt.a)(e,No),W=Object(Ur.a)(n),Y=!!f,K=Object(T.a)(a,{value:c,postState:Io}),X=Object(g.a)(K,2),q=X[0],Z=X[1],J=k.useMemo((function(){return function(e){var t=e||{},n=t.label,r=t.value||"value";return{label:n||"label",value:r,key:r,children:t.children||"children"}}(i)}),[JSON.stringify(i)]),Q=k.useMemo((function(){return b||[]}),[b]),$=function(e,t){var n=k.useRef({options:null,info:null});return k.useCallback((function(){return n.current.options!==e&&(n.current.options=e,n.current.info=Eo(e,{fieldNames:t,initWrapper:function(e){return Object(j.a)(Object(j.a)({},e),{},{pathKeyEntities:{}})},processEntity:function(e,n){var r=e.nodes.map((function(e){return e[t.value]})).join("__RC_CASCADER_SPLIT__");n.pathKeyEntities[r]=e,e.key=r}})),n.current.info.pathKeyEntities}),[t,e])}(Q,J),ee=k.useCallback((function(e){var t=$();return e.map((function(e){return t[e].nodes.map((function(e){return e[J.value]}))}))}),[$,J]),te=Object(T.a)("",{value:p,postState:function(e){return e||""}}),ne=Object(g.a)(te,2),re=ne[0],oe=ne[1],ie=function(e){return k.useMemo((function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&"object"===Object(M.a)(e)&&(t=Object(j.a)(Object(j.a)({},t),e)),t.limit<=0&&delete t.limit,[!0,t]}),[e])}(h),ae=Object(g.a)(ie,2),ce=ae[0],ue=ae[1],se=function(e,t,n,r,o,i){var a=o.filter,c=void 0===a?Po:a,u=o.render,s=void 0===u?To:u,l=o.limit,f=void 0===l?50:l,p=o.sort;return k.useMemo((function(){var o=[];if(!e)return[];return function t(a,u){a.forEach((function(a){if(!(!p&&f>0&&o.length>=f)){var l,d=[].concat(Object(V.a)(u),[a]),h=a[n.children];if(!h||0===h.length||i)if(c(e,d,{label:n.label}))o.push(Object(j.a)(Object(j.a)({},a),{},(l={},Object(y.a)(l,n.label,s(e,d,r,n)),Object(y.a)(l,ko,d),l)));h&&t(a[n.children],d)}}))}(t,[]),p&&o.sort((function(t,r){return p(t[ko],r[ko],e,n)})),f>0?o.slice(0,f):o}),[e,t,n,r,s,i,c,p,f])}(re,Q,J,O||o,ue,u),le=function(e,t){return k.useCallback((function(n){var r=[],o=[];return n.forEach((function(n){Jr(n,e,t).every((function(e){return e.option}))?o.push(n):r.push(n)})),[o,r]}),[e,t])}(Q,J),fe=k.useMemo((function(){var e=le(q),t=Object(g.a)(e,2),n=t[0],r=t[1];if(!Y||!q.length)return[n,[],r];var o=Gr(Kr(n),!0,$()),i=o.checkedKeys,a=o.halfCheckedKeys;return[ee(i),ee(a),r]}),[Y,q,$,ee,le]),pe=Object(g.a)(fe,3),de=pe[0],he=pe[1],ve=pe[2],ye=function(e,t,n,r,o){return k.useMemo((function(){var i=o||function(e){var t=r?e.slice(-1):e;return t.every((function(e){return["string","number"].includes(Object(M.a)(e))}))?t.join(" / "):t.reduce((function(e,t,n){var r=k.isValidElement(t)?k.cloneElement(t,{key:n}):t;return 0===n?[r]:[].concat(Object(V.a)(e),[" / ",r])}),[])};return e.map((function(e){var r=Jr(e,t,n),o=i(r.map((function(e){var t,r=e.option,o=e.value;return null!==(t=null==r?void 0:r[n.label])&&void 0!==t?t:o})),r.map((function(e){return e.option}))),a=Yr(e);return{label:o,value:a,key:a,valueCells:e}}))}),[e,t,n,o,r])}(k.useMemo((function(){var e=Zr(Kr(de),$,H);return[].concat(Object(V.a)(ve),Object(V.a)(ee(e)))}),[de,$,ee,ve,H]),Q,J,Y,l),me=jo((function(e){if(Z(e),s){var t=Io(e),n=t.map((function(e){return Jr(e,Q,J).map((function(e){return e.option}))})),r=Y?t:t[0],o=Y?n:n[0];s(r,o)}})),ge=jo((function(e){if(oe(""),Y){var t=Yr(e),n=Kr(de),r=Kr(he),o=n.includes(t),i=ve.some((function(e){return Yr(e)===t})),a=de,c=ve;if(i&&!o)c=ve.filter((function(e){return Yr(e)!==t}));else{var u,s=o?n.filter((function(e){return e!==t})):[].concat(Object(V.a)(n),[t]),l=$();if(o)u=Gr(s,{checked:!1,halfCheckedKeys:r},l).checkedKeys;else u=Gr(s,!0,l).checkedKeys;var f=Zr(u,$,H);a=ee(f)}me([].concat(Object(V.a)(c),Object(V.a)(a)))}else me(e)})),be=void 0!==x?x:_,Oe=S||E,we=A||P;var _e=k.useMemo((function(){return{options:Q,fieldNames:J,values:de,halfValues:he,changeOnSelect:u,onSelect:ge,checkable:f,searchOptions:se,dropdownPrefixCls:O,loadData:w,expandTrigger:v,expandIcon:I,loadingIcon:D,dropdownMenuColumnStyle:C}}),[Q,J,de,he,u,ge,f,se,O,w,v,I,D,C]),xe=!(re?se:Q).length,Ee=re&&ue.matchInputWidth||xe?{}:{minWidth:"auto"};return k.createElement(Wr.Provider,{value:_e},k.createElement(Br.a,Object(m.a)({},G,{ref:t,id:W,prefixCls:o,dropdownMatchSelectWidth:B,dropdownStyle:Ee,displayValues:ye,onDisplayValuesChange:function(e,t){if("clear"!==t.type){var n=t.values[0].valueCells;ge(n)}else me([])},mode:Y?"multiple":void 0,searchValue:re,onSearch:function(e,t){oe(e),"blur"!==t.source&&d&&d(e)},showSearch:ce,OptionList:Ro,emptyOptions:xe,open:be,dropdownClassName:Oe,placement:we,onDropdownVisibleChange:function(e){null==L||L(e),null==R||R(e)},getRawInputElement:function(){return F}})))}));Do.SHOW_PARENT="SHOW_PARENT",Do.SHOW_CHILD="SHOW_CHILD";var Fo=Do,zo=n("XI05"),Bo=n("caoh"),Uo=n("1vzs"),Vo=n("EXcs"),Ho=n("ATYA"),Go=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Wo=Fo.SHOW_CHILD,Yo=Fo.SHOW_PARENT;var Ko=function(e,t,n,r){var o=[],i=e.toLowerCase();return t.forEach((function(e,t){0!==t&&o.push(" / ");var a=e[r.label],c=Object(M.a)(a);"string"!==c&&"number"!==c||(a=function(e,t,n){var r=e.toLowerCase().split(t).reduce((function(e,n,r){return 0===r?[n]:[].concat(Object(V.a)(e),[t,n])}),[]),o=[],i=0;return r.forEach((function(t,r){var a=i+t.length,c=e.slice(i,a);i=a,r%2==1&&(c=k.createElement("span",{className:"".concat(n,"-menu-item-keyword"),key:"seperator-".concat(r)},c)),o.push(c)})),o}(String(a),i,n)),o.push(a)})),o},Xo=k.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.size,i=e.disabled,a=e.className,c=e.multiple,u=e.bordered,s=void 0===u||u,l=e.transitionName,f=e.choiceTransitionName,p=void 0===f?"":f,d=e.popupClassName,h=e.dropdownClassName,v=e.expandIcon,g=e.placement,b=e.showSearch,w=e.allowClear,_=void 0===w||w,x=e.notFoundContent,E=e.direction,S=e.getPopupContainer,C=e.status,j=e.showArrow,P=Go(e,["prefixCls","size","disabled","className","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow"]),T=Object(St.a)(P,["suffixIcon"]),A=Object(k.useContext)(dt.b),L=A.getPopupContainer,R=A.getPrefixCls,N=A.renderEmpty,I=A.direction,D=E||I,F="rtl"===D,z=Object(k.useContext)(vt.b),B=z.status,U=z.hasFeedback,V=z.isFormItemInput,H=z.feedbackIcon,G=Object(Ho.a)(B,C),W=x||(N||zo.a)("Cascader"),Y=R(),K=R("select",r),X=R("cascader",r),q=O()(h||d,"".concat(X,"-dropdown"),Object(y.a)({},"".concat(X,"-dropdown-rtl"),"rtl"===D)),Z=k.useMemo((function(){if(!b)return b;var e={render:Ko};return"object"===Object(M.a)(b)&&(e=Object(m.a)(Object(m.a)({},e),b)),e}),[b]),J=k.useContext(Ct.b),Q=o||J,$=k.useContext(Bo.b),ee=i||$,te=v;v||(te=F?k.createElement(Dr.a,null):k.createElement(zr.a,null));var ne=k.createElement("span",{className:"".concat(K,"-menu-item-loading-icon")},k.createElement(Fr.a,{spin:!0})),re=k.useMemo((function(){return!!c&&k.createElement("span",{className:"".concat(X,"-checkbox-inner")})}),[c]),oe=void 0!==j?j:e.loading||!c,ie=Object(Uo.a)(Object(m.a)(Object(m.a)({},e),{hasFeedback:U,feedbackIcon:H,showArrow:oe,multiple:c,prefixCls:K})),ae=ie.suffixIcon,ce=ie.removeIcon,ue=ie.clearIcon;return k.createElement(Fo,Object(m.a)({prefixCls:K,className:O()(!r&&X,(n={},Object(y.a)(n,"".concat(K,"-lg"),"large"===Q),Object(y.a)(n,"".concat(K,"-sm"),"small"===Q),Object(y.a)(n,"".concat(K,"-rtl"),F),Object(y.a)(n,"".concat(K,"-borderless"),!s),Object(y.a)(n,"".concat(K,"-in-form-item"),V),n),Object(Ho.b)(K,G,U),a),disabled:ee},T,{direction:D,placement:void 0!==g?g:"rtl"===E?"bottomRight":"bottomLeft",notFoundContent:W,allowClear:_,showSearch:Z,expandIcon:te,inputIcon:ae,removeIcon:ce,clearIcon:ue,loadingIcon:ne,checkable:re,dropdownClassName:q,dropdownPrefixCls:r||X,choiceTransitionName:Object(Vo.c)(Y,"",p),transitionName:Object(Vo.c)(Y,Object(Vo.b)(g),l),getPopupContainer:S||L,ref:t,showArrow:U||j}))}));Xo.SHOW_PARENT=Yo,Xo.SHOW_CHILD=Wo;var qo=Xo,Zo=n("gRH6"),Jo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Qo=k.createContext(null),$o=function(e,t){var n=e.defaultValue,r=e.children,o=e.options,i=void 0===o?[]:o,a=e.prefixCls,c=e.className,u=e.style,s=e.onChange,l=Jo(e,["defaultValue","children","options","prefixCls","className","style","onChange"]),f=k.useContext(dt.b),p=f.getPrefixCls,d=f.direction,h=k.useState(l.value||n||[]),v=Object(g.a)(h,2),b=v[0],w=v[1],_=k.useState([]),x=Object(g.a)(_,2),E=x[0],S=x[1];k.useEffect((function(){"value"in l&&w(l.value||[])}),[l.value]);var C=function(){return i.map((function(e){return"string"==typeof e||"number"==typeof e?{label:e,value:e}:e}))},j=p("checkbox",a),P="".concat(j,"-group"),T=Object(St.a)(l,["value","disabled"]);i&&i.length>0&&(r=C().map((function(e){return k.createElement(oi,{prefixCls:j,key:e.value.toString(),disabled:"disabled"in e?e.disabled:l.disabled,value:e.value,checked:-1!==b.indexOf(e.value),onChange:e.onChange,className:"".concat(P,"-item"),style:e.style},e.label)})));var M={toggleOption:function(e){var t=b.indexOf(e.value),n=Object(V.a)(b);-1===t?n.push(e.value):n.splice(t,1),"value"in l||w(n);var r=C();null==s||s(n.filter((function(e){return-1!==E.indexOf(e)})).sort((function(e,t){return r.findIndex((function(t){return t.value===e}))-r.findIndex((function(e){return e.value===t}))})))},value:b,disabled:l.disabled,name:l.name,registerValue:function(e){S((function(t){return[].concat(Object(V.a)(t),[e])}))},cancelValue:function(e){S((function(t){return t.filter((function(t){return t!==e}))}))}},A=O()(P,Object(y.a)({},"".concat(P,"-rtl"),"rtl"===d),c);return k.createElement("div",Object(m.a)({className:A,style:u},T,{ref:t}),k.createElement(Qo.Provider,{value:M},r))},ei=k.forwardRef($o),ti=k.memo(ei),ni=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ri=function(e,t){var n,r=e.prefixCls,o=e.className,i=e.children,a=e.indeterminate,c=void 0!==a&&a,u=e.style,s=e.onMouseEnter,l=e.onMouseLeave,f=e.skipGroup,p=void 0!==f&&f,d=e.disabled,h=ni(e,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),v=k.useContext(dt.b),g=v.getPrefixCls,b=v.direction,w=k.useContext(Qo),_=Object(k.useContext)(vt.b).isFormItemInput,x=Object(k.useContext)(Bo.b),E=d||(null==w?void 0:w.disabled)||x,S=k.useRef(h.value);k.useEffect((function(){null==w||w.registerValue(h.value)}),[]),k.useEffect((function(){if(!p)return h.value!==S.current&&(null==w||w.cancelValue(S.current),null==w||w.registerValue(h.value),S.current=h.value),function(){return null==w?void 0:w.cancelValue(h.value)}}),[h.value]);var C=g("checkbox",r),j=Object(m.a)({},h);w&&!p&&(j.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),w.toggleOption&&w.toggleOption({label:i,value:h.value})},j.name=w.name,j.checked=-1!==w.value.indexOf(h.value));var P=O()((n={},Object(y.a)(n,"".concat(C,"-wrapper"),!0),Object(y.a)(n,"".concat(C,"-rtl"),"rtl"===b),Object(y.a)(n,"".concat(C,"-wrapper-checked"),j.checked),Object(y.a)(n,"".concat(C,"-wrapper-disabled"),E),Object(y.a)(n,"".concat(C,"-wrapper-in-form-item"),_),n),o),T=O()(Object(y.a)({},"".concat(C,"-indeterminate"),c)),M=c?"mixed":void 0;return k.createElement("label",{className:P,style:u,onMouseEnter:s,onMouseLeave:l},k.createElement(Zo.a,Object(m.a)({"aria-checked":M},j,{prefixCls:C,className:T,disabled:E,ref:t})),void 0!==i&&k.createElement("span",null,i))};var oi=k.forwardRef(ri),ii=oi;ii.Group=ti,ii.__ANT_CHECKBOX=!0;var ai=ii,ci=n("kPKH"),ui=n("gK9i"),si=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},li=function(e){var t=e.actions,n=e.author,r=e.avatar,o=e.children,i=e.className,a=e.content,c=e.prefixCls,u=e.datetime,s=si(e,["actions","author","avatar","children","className","content","prefixCls","datetime"]),l=k.useContext(dt.b),f=l.getPrefixCls,p=l.direction,d=f("comment",c),h=r?k.createElement("div",{className:"".concat(d,"-avatar")},"string"==typeof r?k.createElement("img",{src:r,alt:"comment-avatar"}):r):null,v=t&&t.length?k.createElement("ul",{className:"".concat(d,"-actions")},t.map((function(e,t){return k.createElement("li",{key:"action-".concat(t)},e)}))):null,g=(n||u)&&k.createElement("div",{className:"".concat(d,"-content-author")},n&&k.createElement("span",{className:"".concat(d,"-content-author-name")},n),u&&k.createElement("span",{className:"".concat(d,"-content-author-time")},u)),b=k.createElement("div",{className:"".concat(d,"-content")},g,k.createElement("div",{className:"".concat(d,"-content-detail")},a),v),w=O()(d,Object(y.a)({},"".concat(d,"-rtl"),"rtl"===p),i);return k.createElement("div",Object(m.a)({},s,{className:w}),k.createElement("div",{className:"".concat(d,"-inner")},h,b),o?function(e,t){return k.createElement("div",{className:O()("".concat(e,"-nested"))},t)}(d,o):null)},fi=n("wEI+"),pi=n("CWQg");var di=n("mr32");var hi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},vi=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:hi}))};vi.displayName="CalendarOutlined";var yi=k.forwardRef(vi),mi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},gi=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:mi}))};gi.displayName="ClockCircleOutlined";var bi=k.forwardRef(gi),Oi=n("+RZ0"),wi={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},_i=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:wi}))};_i.displayName="SwapRightOutlined";var xi=k.forwardRef(_i),Ei=n("61s2");function Si(e,t,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.yearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.quarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.monthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.weekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.placeholder:t.lang.placeholder}function Ci(e,t,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.rangeYearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.rangeQuarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.rangeMonthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.rangeWeekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.rangePlaceholder:t.lang.rangePlaceholder}function ji(e,t){var n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return"rtl"===e?{points:["tr","br"],offset:[0,4],overflow:n}:{points:["tl","bl"],offset:[0,4],overflow:n}}}var ki=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Pi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Ti={button:function(e){return k.createElement(f.a,Object(m.a)({size:"small",type:"primary"},e))},rangeItem:function(e){return k.createElement(di.a,Object(m.a)({color:"blue"},e))}};function Mi(e){var t,n=e.format,r=e.picker,o=e.showHour,i=e.showMinute,a=e.showSecond,c=e.use12Hours,u=(t=n,t?Array.isArray(t)?t:[t]:[])[0],s=Object(m.a)({},e);return u&&"string"==typeof u&&(u.includes("s")||void 0!==a||(s.showSecond=!1),u.includes("m")||void 0!==i||(s.showMinute=!1),u.includes("H")||u.includes("h")||void 0!==o||(s.showHour=!1),(u.includes("a")||u.includes("A"))&&void 0===c&&(s.use12Hours=!0)),"time"===r?s:("function"==typeof u&&delete s.format,{showTime:s})}Object(pi.a)("bottomLeft","bottomRight","topLeft","topRight");var Ai=function(e){var t=function(e){function t(t,n){var r=Object(k.forwardRef)((function(n,r){var o=n.prefixCls,i=n.getPopupContainer,a=n.className,c=n.size,u=n.bordered,s=void 0===u||u,l=n.placement,f=n.placeholder,p=n.disabled,d=n.status,h=Pi(n,["prefixCls","getPopupContainer","className","size","bordered","placement","placeholder","disabled","status"]),v=Object(k.useContext)(dt.b),g=v.getPrefixCls,b=v.direction,w=v.getPopupContainer,_=g("picker",o),x=k.useRef(null),E=n.format,S=n.showTime;Object(k.useImperativeHandle)(r,(function(){return{focus:function(){var e;return null===(e=x.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=x.current)||void 0===e?void 0:e.blur()}}}));var C={showToday:!0},j={};t&&(j.picker=t);var P=t||n.picker;j=Object(m.a)(Object(m.a)(Object(m.a)({},j),S?Mi(Object(m.a)({format:E,picker:P},S)):{}),"time"===P?Mi(Object(m.a)(Object(m.a)({format:E},n),{picker:P})):{});var T=g(),M=k.useContext(Ct.b),A=c||M,L=k.useContext(Bo.b),R=p||L,N=Object(k.useContext)(vt.b),I=N.hasFeedback,D=N.status,F=N.feedbackIcon,z=k.createElement(k.Fragment,null,"time"===P?k.createElement(bi,null):k.createElement(yi,null),I&&F);return k.createElement(ht.a,{componentName:"DatePicker",defaultLocale:Ei.a},(function(t){var r,o=Object(m.a)(Object(m.a)({},t),n.locale);return k.createElement(pt,Object(m.a)({ref:x,placeholder:Si(P,o,f),suffixIcon:z,dropdownAlign:ji(b,l),clearIcon:k.createElement(Oi.a,null),prevIcon:k.createElement("span",{className:"".concat(_,"-prev-icon")}),nextIcon:k.createElement("span",{className:"".concat(_,"-next-icon")}),superPrevIcon:k.createElement("span",{className:"".concat(_,"-super-prev-icon")}),superNextIcon:k.createElement("span",{className:"".concat(_,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(T,"-slide-up")},C,h,j,{locale:o.lang,className:O()((r={},Object(y.a)(r,"".concat(_,"-").concat(A),A),Object(y.a)(r,"".concat(_,"-borderless"),!s),r),Object(Ho.b)(_,Object(Ho.a)(D,d),I),a),prefixCls:_,getPopupContainer:i||w,generateConfig:e,components:Ti,direction:b,disabled:R}))}))}));return n&&(r.displayName=n),r}return{DatePicker:t(),WeekPicker:t("week","WeekPicker"),MonthPicker:t("month","MonthPicker"),YearPicker:t("year","YearPicker"),TimePicker:t("time","TimePicker"),QuarterPicker:t("quarter","QuarterPicker")}}(e),n=t.DatePicker,r=t.WeekPicker,o=t.MonthPicker,i=t.YearPicker,a=t.TimePicker,c=t.QuarterPicker,u=function(e){return Object(k.forwardRef)((function(t,n){var r=t.prefixCls,o=t.getPopupContainer,i=t.className,a=t.placement,c=t.size,u=t.disabled,s=t.bordered,l=void 0===s||s,f=t.placeholder,p=t.status,d=ki(t,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","status"]),h=k.useRef(null),v=Object(k.useContext)(dt.b),g=v.getPrefixCls,b=v.direction,w=v.getPopupContainer,_=g("picker",r),x=t.format,E=t.showTime,S=t.picker,C=g(),j={};j=Object(m.a)(Object(m.a)(Object(m.a)({},j),E?Mi(Object(m.a)({format:x,picker:S},E)):{}),"time"===S?Mi(Object(m.a)(Object(m.a)({format:x},t),{picker:S})):{});var P=k.useContext(Ct.b),T=c||P,M=k.useContext(Bo.b),A=u||M,L=Object(k.useContext)(vt.b),R=L.hasFeedback,N=L.status,I=L.feedbackIcon,D=k.createElement(k.Fragment,null,"time"===S?k.createElement(bi,null):k.createElement(yi,null),R&&I);return Object(k.useImperativeHandle)(n,(function(){return{focus:function(){var e;return null===(e=h.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=h.current)||void 0===e?void 0:e.blur()}}})),k.createElement(ht.a,{componentName:"DatePicker",defaultLocale:Ei.a},(function(n){var r,c=Object(m.a)(Object(m.a)({},n),t.locale);return k.createElement(ft,Object(m.a)({separator:k.createElement("span",{"aria-label":"to",className:"".concat(_,"-separator")},k.createElement(xi,null)),disabled:A,ref:h,dropdownAlign:ji(b,a),placeholder:Ci(S,c,f),suffixIcon:D,clearIcon:k.createElement(Oi.a,null),prevIcon:k.createElement("span",{className:"".concat(_,"-prev-icon")}),nextIcon:k.createElement("span",{className:"".concat(_,"-next-icon")}),superPrevIcon:k.createElement("span",{className:"".concat(_,"-super-prev-icon")}),superNextIcon:k.createElement("span",{className:"".concat(_,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(C,"-slide-up")},d,j,{className:O()((r={},Object(y.a)(r,"".concat(_,"-").concat(T),T),Object(y.a)(r,"".concat(_,"-borderless"),!l),r),Object(Ho.b)(_,Object(Ho.a)(N,p),R),i),locale:c.lang,prefixCls:_,getPopupContainer:o||w,generateConfig:e,components:Ti,direction:b}))}))}))}(e),s=n;return s.WeekPicker=r,s.MonthPicker=o,s.YearPicker=i,s.RangePicker=u,s.TimePicker=a,s.QuarterPicker=c,s}(v),Li=n("0n0R"),Ri=n("ACnJ"),Ni=function(e){return e.children};function Ii(e){return null!=e}var Di=function(e){var t,n=e.itemPrefixCls,r=e.component,o=e.span,i=e.className,a=e.style,c=e.labelStyle,u=e.contentStyle,s=e.bordered,l=e.label,f=e.content,p=e.colon,d=r;return s?k.createElement(d,{className:O()((t={},Object(y.a)(t,"".concat(n,"-item-label"),Ii(l)),Object(y.a)(t,"".concat(n,"-item-content"),Ii(f)),t),i),style:a,colSpan:o},Ii(l)&&k.createElement("span",{style:c},l),Ii(f)&&k.createElement("span",{style:u},f)):k.createElement(d,{className:O()("".concat(n,"-item"),i),style:a,colSpan:o},k.createElement("div",{className:"".concat(n,"-item-container")},(l||0===l)&&k.createElement("span",{className:O()("".concat(n,"-item-label"),Object(y.a)({},"".concat(n,"-item-no-colon"),!p)),style:c},l),(f||0===f)&&k.createElement("span",{className:O()("".concat(n,"-item-content")),style:u},f)))};function Fi(e,t,n){var r=t.colon,o=t.prefixCls,i=t.bordered,a=n.component,c=n.type,u=n.showLabel,s=n.showContent,l=n.labelStyle,f=n.contentStyle;return e.map((function(e,t){var n=e.props,p=n.label,d=n.children,h=n.prefixCls,v=void 0===h?o:h,y=n.className,g=n.style,b=n.labelStyle,O=n.contentStyle,w=n.span,_=void 0===w?1:w,x=e.key;return"string"==typeof a?k.createElement(Di,{key:"".concat(c,"-").concat(x||t),className:y,style:g,labelStyle:Object(m.a)(Object(m.a)({},l),b),contentStyle:Object(m.a)(Object(m.a)({},f),O),span:_,colon:r,component:a,itemPrefixCls:v,bordered:i,label:u?p:null,content:s?d:null}):[k.createElement(Di,{key:"label-".concat(x||t),className:y,style:Object(m.a)(Object(m.a)(Object(m.a)({},l),g),b),span:1,colon:r,component:a[0],itemPrefixCls:v,bordered:i,label:p}),k.createElement(Di,{key:"content-".concat(x||t),className:y,style:Object(m.a)(Object(m.a)(Object(m.a)({},f),g),O),span:2*_-1,component:a[1],itemPrefixCls:v,bordered:i,content:d})]}))}var zi=function(e){var t=k.useContext(Bi),n=e.prefixCls,r=e.vertical,o=e.row,i=e.index,a=e.bordered;return r?k.createElement(k.Fragment,null,k.createElement("tr",{key:"label-".concat(i),className:"".concat(n,"-row")},Fi(o,e,Object(m.a)({component:"th",type:"label",showLabel:!0},t))),k.createElement("tr",{key:"content-".concat(i),className:"".concat(n,"-row")},Fi(o,e,Object(m.a)({component:"td",type:"content",showContent:!0},t)))):k.createElement("tr",{key:i,className:"".concat(n,"-row")},Fi(o,e,Object(m.a)({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},Bi=k.createContext({}),Ui={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function Vi(e,t,n){var r=e;return(void 0===t||t>n)&&(r=Object(Li.a)(e,{span:n})),r}function Hi(e){var t,n=e.prefixCls,r=e.title,o=e.extra,i=e.column,a=void 0===i?Ui:i,c=e.colon,u=void 0===c||c,s=e.bordered,l=e.layout,f=e.children,p=e.className,d=e.style,h=e.size,v=e.labelStyle,m=e.contentStyle,b=k.useContext(dt.b),w=b.getPrefixCls,_=b.direction,x=w("descriptions",n),E=k.useState({}),S=Object(g.a)(E,2),C=S[0],j=S[1],P=function(e,t){if("number"==typeof e)return e;if("object"===Object(M.a)(e))for(var n=0;n<Ri.b.length;n++){var r=Ri.b[n];if(t[r]&&void 0!==e[r])return e[r]||Ui[r]}return 3}(a,C);k.useEffect((function(){var e=Ri.a.subscribe((function(e){"object"===Object(M.a)(a)&&j(e)}));return function(){Ri.a.unsubscribe(e)}}),[]);var T=function(e,t){var n=Object(Nt.a)(e).filter((function(e){return e})),r=[],o=[],i=t;return n.forEach((function(e,a){var c,u=null===(c=e.props)||void 0===c?void 0:c.span,s=u||1;if(a===n.length-1)return o.push(Vi(e,u,i)),void r.push(o);s<i?(i-=s,o.push(e)):(o.push(Vi(e,s,i)),r.push(o),i=t,o=[])})),r}(f,P),A=k.useMemo((function(){return{labelStyle:v,contentStyle:m}}),[v,m]);return k.createElement(Bi.Provider,{value:A},k.createElement("div",{className:O()(x,(t={},Object(y.a)(t,"".concat(x,"-").concat(h),h&&"default"!==h),Object(y.a)(t,"".concat(x,"-bordered"),!!s),Object(y.a)(t,"".concat(x,"-rtl"),"rtl"===_),t),p),style:d},(r||o)&&k.createElement("div",{className:"".concat(x,"-header")},r&&k.createElement("div",{className:"".concat(x,"-title")},r),o&&k.createElement("div",{className:"".concat(x,"-extra")},o)),k.createElement("div",{className:"".concat(x,"-view")},k.createElement("table",null,k.createElement("tbody",null,T.map((function(e,t){return k.createElement(zi,{key:t,index:t,colon:u,prefixCls:x,vertical:"vertical"===l,bordered:s,row:e})})))))))}Hi.Item=Ni;var Gi=Hi,Wi=n("PArb"),Yi=n("L+KZ");var Ki=function(e){var t=e.prefixCls,n=e.className,r=e.style,o=e.children,i=e.containerRef;return k.createElement(k.Fragment,null,k.createElement("div",{className:O()("".concat(t,"-content"),n),style:Object(j.a)({},r),"aria-modal":"true",role:"dialog",ref:i},o))},Xi=k.createContext(null);function qi(e){return"string"==typeof e&&String(Number(e))===e?(Object(h.a)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var Zi={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ji(e){var t,n,r,o,i=e.prefixCls,a=e.open,c=e.placement,u=e.inline,s=e.push,l=e.forceRender,f=e.autoFocus,p=e.keyboard,d=e.scrollLocker,h=e.rootClassName,v=e.rootStyle,b=e.zIndex,w=e.className,_=e.style,x=e.motion,E=e.width,S=e.height,C=e.children,P=e.contentWrapperStyle,T=e.mask,M=e.maskClosable,L=e.maskMotion,R=e.maskClassName,N=e.maskStyle,I=e.afterOpenChange,D=e.onClose,F=k.useRef(),z=k.useRef(),B=k.useRef();k.useEffect((function(){var e;a&&f&&(null===(e=F.current)||void 0===e||e.focus({preventScroll:!0}))}),[a,f]);var U=k.useState(!1),V=Object(g.a)(U,2),H=V[0],G=V[1],W=k.useContext(Xi),Y=null!==(t=null!==(n=null===(r=!1===s?{distance:0}:!0===s?{}:s||{})||void 0===r?void 0:r.distance)&&void 0!==n?n:null==W?void 0:W.pushDistance)&&void 0!==t?t:180,K=k.useMemo((function(){return{pushDistance:Y,push:function(){G(!0)},pull:function(){G(!1)}}}),[Y]);k.useEffect((function(){var e,t;a?null==W||null===(e=W.push)||void 0===e||e.call(W):null==W||null===(t=W.pull)||void 0===t||t.call(W)}),[a]),k.useEffect((function(){a&&T&&(null==d||d.lock())}),[a,T]),k.useEffect((function(){return function(){var e;null==d||d.unLock(),null==W||null===(e=W.pull)||void 0===e||e.call(W)}}),[]);var X=T&&k.createElement(Pn.b,Object(m.a)({key:"mask"},L,{visible:a}),(function(e,t){var n=e.className,r=e.style;return k.createElement("div",{className:O()("".concat(i,"-mask"),n,R),style:Object(j.a)(Object(j.a)({},r),N),onClick:M?D:void 0,ref:t})})),q="function"==typeof x?x(c):x,Z={};if(H&&Y)switch(c){case"top":Z.transform="translateY(".concat(Y,"px)");break;case"bottom":Z.transform="translateY(".concat(-Y,"px)");break;case"left":Z.transform="translateX(".concat(Y,"px)");break;default:Z.transform="translateX(".concat(-Y,"px)")}"left"===c||"right"===c?Z.width=qi(E):Z.height=qi(S);var J=k.createElement(Pn.b,Object(m.a)({key:"panel"},q,{visible:a,forceRender:l,onVisibleChanged:function(e){null==I||I(e),e||null==d||d.unLock()},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),(function(e,t){var n=e.className,r=e.style;return k.createElement("div",{className:O()("".concat(i,"-content-wrapper"),n),style:Object(j.a)(Object(j.a)(Object(j.a)({},Z),r),P)},k.createElement(Ki,{containerRef:t,prefixCls:i,className:w,style:_},C))})),Q=Object(j.a)({},v);return b&&(Q.zIndex=b),k.createElement(Xi.Provider,{value:K},k.createElement("div",{className:O()(i,"".concat(i,"-").concat(c),h,(o={},Object(y.a)(o,"".concat(i,"-open"),a),Object(y.a)(o,"".concat(i,"-inline"),u),o)),style:Q,tabIndex:-1,ref:F,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case A.a.TAB:var r;if(t===A.a.TAB)if(n||document.activeElement!==B.current){if(n&&document.activeElement===z.current){var o;null===(o=B.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(r=z.current)||void 0===r||r.focus({preventScroll:!0});break;case A.a.ESC:D&&p&&D(e)}}},X,k.createElement("div",{tabIndex:0,ref:z,style:Zi,"aria-hidden":"true","data-sentinel":"start"}),J,k.createElement("div",{tabIndex:0,ref:B,style:Zi,"aria-hidden":"true","data-sentinel":"end"})))}var Qi=function(e){var t=e.open,n=e.getContainer,r=e.forceRender,o=e.wrapperClassName,i=e.prefixCls,a=e.afterOpenChange,c=e.destroyOnClose,u=k.useState(!1),s=Object(g.a)(u,2),l=s[0],f=s[1];if(!r&&!l&&!t&&c)return null;var p=Object(j.a)(Object(j.a)({},e),{},{prefixCls:i,afterOpenChange:function(e){f(e),null==a||a(e)}});return!1===n?k.createElement(Ji,Object(m.a)({},p,{inline:!0})):k.createElement(Yi.a,{visible:t,forceRender:r,getContainer:n,wrapperClassName:o},(function(e){var t=e.scrollLocker;return k.createElement(Ji,Object(m.a)({},p,{scrollLocker:t}))}))};Qi.defaultProps={open:!1,getContainer:function(){return document.body},prefixCls:"rc-drawer",placement:"right",autoFocus:!0,keyboard:!0,width:378,mask:!0,maskClosable:!0};var $i=Qi,ea=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ta=(Object(pi.a)("default","large"),{distance:180});var na=function(e){var t=e.width,n=e.height,r=e.size,o=void 0===r?"default":r,i=e.closable,a=void 0===i||i,c=e.mask,u=void 0===c||c,s=e.push,l=void 0===s?ta:s,f=e.closeIcon,p=void 0===f?k.createElement(kt.a,null):f,d=e.bodyStyle,h=e.drawerStyle,v=e.className,g=e.visible,b=e.children,w=e.style,_=e.title,x=e.headerStyle,E=e.onClose,S=e.footer,C=e.footerStyle,j=e.prefixCls,P=e.getContainer,T=e.extra,M=e.afterVisibleChange,A=ea(e,["width","height","size","closable","mask","push","closeIcon","bodyStyle","drawerStyle","className","visible","children","style","title","headerStyle","onClose","footer","footerStyle","prefixCls","getContainer","extra","afterVisibleChange"]),L=k.useContext(dt.b),R=L.getPopupContainer,N=L.getPrefixCls,I=L.direction,D=N("drawer",j),F=void 0===P&&R?function(){return R(document.body)}:P,z=a&&k.createElement("button",{type:"button",onClick:E,"aria-label":"Close",className:"".concat(D,"-close")},p),B=O()(Object(y.a)({"no-mask":!u},"".concat(D,"-rtl"),"rtl"===I),v),U=k.useMemo((function(){return null!=t?t:"large"===o?736:378}),[t,o]),V=k.useMemo((function(){return null!=n?n:"large"===o?736:378}),[n,o]),H={motionName:Object(Vo.c)(D,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0};return k.createElement(vt.e,{status:!0,override:!0},k.createElement($i,Object(m.a)({prefixCls:D,onClose:E},A,{open:g,mask:u,push:l,width:U,height:V,rootClassName:B,getContainer:F,afterOpenChange:function(e){null==M||M(e)},maskMotion:H,motion:function(e){return{motionName:Object(Vo.c)(D,"panel-motion-".concat(e)),motionAppear:!0,motionEnter:!0,motionLeave:!0}},rootStyle:w}),k.createElement("div",{className:"".concat(D,"-wrapper-body"),style:Object(m.a)({},h)},_||a?k.createElement("div",{className:O()("".concat(D,"-header"),Object(y.a)({},"".concat(D,"-header-close-only"),a&&!_&&!T)),style:x},k.createElement("div",{className:"".concat(D,"-header-title")},z,_&&k.createElement("div",{className:"".concat(D,"-title")},_)),T&&k.createElement("div",{className:"".concat(D,"-extra")},T)):null,k.createElement("div",{className:"".concat(D,"-body"),style:d},b),function(){if(!S)return null;var e="".concat(D,"-footer");return k.createElement("div",{className:e,style:C},S)}())))},ra=n("jsC+"),oa=n("ECub");function ia(e){var t=k.useState(e),n=Object(g.a)(t,2),r=n[0],o=n[1];return k.useEffect((function(){var t=setTimeout((function(){o(e)}),e.length?0:10);return function(){clearTimeout(t)}}),[e]),r}var aa=[];function ca(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"==typeof e?e:"".concat(n,"-").concat(r),error:e,errorStatus:t}}function ua(e){var t=e.help,n=e.helpStatus,r=e.errors,o=void 0===r?aa:r,i=e.warnings,a=void 0===i?aa:i,c=e.className,u=e.onVisibleChanged,s=k.useContext(vt.c).prefixCls,l=k.useContext(dt.b).getPrefixCls,f="".concat(s,"-item-explain"),p=l(),d=ia(o),h=ia(a),v=k.useMemo((function(){return null!=t?[ca(t,n,"help")]:[].concat(Object(V.a)(d.map((function(e,t){return ca(e,"error","error",t)}))),Object(V.a)(h.map((function(e,t){return ca(e,"warning","warning",t)}))))}),[t,n,d,h]);return k.createElement(Pn.b,{motionDeadline:Vo.a.motionDeadline,motionName:"".concat(p,"-show-help"),visible:!!v.length,onVisibleChanged:u},(function(e){var t=e.className,n=e.style;return k.createElement("div",{className:O()(f,t,c),style:n},k.createElement(Pn.a,Object(m.a)({keys:v},Vo.a,{motionName:"".concat(p,"-show-help-item"),component:!1}),(function(e){var t=e.key,n=e.error,r=e.errorStatus,o=e.className,i=e.style;return k.createElement("div",{key:t,role:"alert",className:O()(o,Object(y.a)({},"".concat(f,"-").concat(r),r)),style:i},n)})))}))}var sa=n("85Yc");function la(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function fa(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function pa(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return fa(n.overflowY,t)||fa(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function da(e,t,n,r,o,i,a,c){return i<e&&a>t||i>e&&a<t?0:i<=e&&c<=n||a>=t&&c>=n?i-e-r:a>t&&c<n||i<e&&c>n?a-t+o:0}var ha=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,c=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!la(e))throw new TypeError("Invalid target");for(var s=document.scrollingElement||document.documentElement,l=[],f=e;la(f)&&u(f);){if((f=f.parentElement)===s){l.push(f);break}null!=f&&f===document.body&&pa(f)&&!pa(document.documentElement)||null!=f&&pa(f,c)&&l.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),m=y.height,g=y.width,b=y.top,O=y.right,w=y.bottom,_=y.left,x="start"===o||"nearest"===o?b:"end"===o?w:b+m/2,E="center"===i?_+g/2:"end"===i?O:_,S=[],C=0;C<l.length;C++){var j=l[C],k=j.getBoundingClientRect(),P=k.height,T=k.width,M=k.top,A=k.right,L=k.bottom,R=k.left;if("if-needed"===r&&b>=0&&_>=0&&w<=d&&O<=p&&b>=M&&w<=L&&_>=R&&O<=A)return S;var N=getComputedStyle(j),I=parseInt(N.borderLeftWidth,10),D=parseInt(N.borderTopWidth,10),F=parseInt(N.borderRightWidth,10),z=parseInt(N.borderBottomWidth,10),B=0,U=0,V="offsetWidth"in j?j.offsetWidth-j.clientWidth-I-F:0,H="offsetHeight"in j?j.offsetHeight-j.clientHeight-D-z:0;if(s===j)B="start"===o?x:"end"===o?x-d:"nearest"===o?da(v,v+d,d,D,z,v+x,v+x+m,m):x-d/2,U="start"===i?E:"center"===i?E-p/2:"end"===i?E-p:da(h,h+p,p,I,F,h+E,h+E+g,g),B=Math.max(0,B+v),U=Math.max(0,U+h);else{B="start"===o?x-M-D:"end"===o?x-L+z+H:"nearest"===o?da(M,L,P,D,z+H,x,x+m,m):x-(M+P/2)+H/2,U="start"===i?E-R-I:"center"===i?E-(R+T/2)+V/2:"end"===i?E-A+F+V:da(R,A,T,I,F+V,E,E+g,g);var G=j.scrollLeft,W=j.scrollTop;x+=W-(B=Math.max(0,Math.min(W+B,j.scrollHeight-P+H))),E+=G-(U=Math.max(0,Math.min(G+U,j.scrollWidth-T+V)))}S.push({el:j,top:B,left:U})}return S};function va(e){return e===Object(e)&&0!==Object.keys(e).length}var ya=function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(va(t)&&"function"==typeof t.behavior)return t.behavior(n?ha(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:va(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(ha(e,r),r.behavior)}},ma=["parentNode"];function ga(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function ba(e,t){if(e.length){var n=e.join("_");return t?"".concat(t,"_").concat(n):ma.indexOf(n)>=0?"".concat("form_item","_").concat(n):n}}function Oa(e){return ga(e).join("_")}function wa(e){var t=Object(sa.g)(),n=Object(g.a)(t,1)[0],r=k.useRef({}),o=k.useMemo((function(){return null!=e?e:Object(m.a)(Object(m.a)({},n),{__INTERNAL__:{itemRef:function(e){return function(t){var n=Oa(e);t?r.current[n]=t:delete r.current[n]}}},scrollToField:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ga(e),r=ba(n,o.__INTERNAL__.name),i=r?document.getElementById(r):null;i&&ya(i,Object(m.a)({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:function(e){var t=Oa(e);return r.current[t]}})}),[e,n]);return[o]}var _a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},xa=function(e,t){var n,r=k.useContext(Ct.b),o=k.useContext(Bo.b),i=k.useContext(dt.b),a=i.getPrefixCls,c=i.direction,u=i.form,s=e.prefixCls,l=e.className,f=void 0===l?"":l,p=e.size,d=void 0===p?r:p,h=e.disabled,v=void 0===h?o:h,b=e.form,w=e.colon,_=e.labelAlign,x=e.labelWrap,E=e.labelCol,S=e.wrapperCol,C=e.hideRequiredMark,j=e.layout,P=void 0===j?"horizontal":j,T=e.scrollToFirstError,A=e.requiredMark,L=e.onFinishFailed,R=e.name,N=_a(e,["prefixCls","className","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name"]),I=Object(k.useMemo)((function(){return void 0!==A?A:u&&void 0!==u.requiredMark?u.requiredMark:!C}),[C,A,u]),D=null!=w?w:null==u?void 0:u.colon,F=a("form",s),z=O()(F,(n={},Object(y.a)(n,"".concat(F,"-").concat(P),!0),Object(y.a)(n,"".concat(F,"-hide-required-mark"),!1===I),Object(y.a)(n,"".concat(F,"-rtl"),"rtl"===c),Object(y.a)(n,"".concat(F,"-").concat(d),d),n),f),B=wa(b),U=Object(g.a)(B,1)[0],V=U.__INTERNAL__;V.name=R;var H=Object(k.useMemo)((function(){return{name:R,labelAlign:_,labelCol:E,labelWrap:x,wrapperCol:S,vertical:"vertical"===P,colon:D,requiredMark:I,itemRef:V.itemRef,form:U}}),[R,_,E,S,P,D,I,U]);k.useImperativeHandle(t,(function(){return U}));return k.createElement(Bo.a,{disabled:v},k.createElement(Ct.a,{size:d},k.createElement(vt.a.Provider,{value:H},k.createElement(sa.f,Object(m.a)({id:R},N,{name:R,onFinishFailed:function(e){null==L||L(e);var t={block:"nearest"};T&&e.errorFields.length&&("object"===Object(M.a)(T)&&(t=T),U.scrollToField(e.errorFields[0].name,t))},form:U,className:z})))))},Ea=k.forwardRef(xa),Sa=n("mDRv"),Ca=n("uwWy"),ja=function(){return{status:Object(k.useContext)(vt.b).status}};var ka=n("CZO1"),Pa=n("+Gah"),Ta=n("s1jM"),Ma=n("qrJ5"),Aa=n("LxhF"),La=n("/kpp"),Ra=n("ZvpZ"),Na=n("3S7+"),Ia=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Da=function(e){var t=e.prefixCls,n=e.label,r=e.htmlFor,o=e.labelCol,i=e.labelAlign,a=e.colon,c=e.required,u=e.requiredMark,s=e.tooltip,l=Object(ht.b)("Form"),f=Object(g.a)(l,1)[0];return n?k.createElement(vt.a.Consumer,{key:"label"},(function(e){var l,p,d=e.vertical,h=e.labelAlign,v=e.labelCol,g=e.labelWrap,b=e.colon,w=o||v||{},_=i||h,x="".concat(t,"-item-label"),E=O()(x,"left"===_&&"".concat(x,"-left"),w.className,Object(y.a)({},"".concat(x,"-wrap"),!!g)),S=n,C=!0===a||!1!==b&&!1!==a;C&&!d&&"string"==typeof n&&""!==n.trim()&&(S=n.replace(/[:|:]\s*$/,""));var j=function(e){return e?"object"!==Object(M.a)(e)||k.isValidElement(e)?{title:e}:e:null}(s);if(j){var P=j.icon,T=void 0===P?k.createElement(Aa.a,null):P,A=Ia(j,["icon"]),L=k.createElement(Na.a,Object(m.a)({},A),k.cloneElement(T,{className:"".concat(t,"-item-tooltip"),title:""}));S=k.createElement(k.Fragment,null,S,L)}"optional"!==u||c||(S=k.createElement(k.Fragment,null,S,k.createElement("span",{className:"".concat(t,"-item-optional"),title:""},(null==f?void 0:f.optional)||(null===(p=Ra.a.Form)||void 0===p?void 0:p.optional))));var R=O()((l={},Object(y.a)(l,"".concat(t,"-item-required"),c),Object(y.a)(l,"".concat(t,"-item-required-mark-optional"),"optional"===u),Object(y.a)(l,"".concat(t,"-item-no-colon"),!C),l));return k.createElement(La.a,Object(m.a)({},w,{className:E}),k.createElement("label",{htmlFor:r,className:R,title:"string"==typeof n?n:""},S))})):null},Fa=function(e){var t=e.prefixCls,n=e.status,r=e.wrapperCol,o=e.children,i=e.errors,a=e.warnings,c=e._internalItemRender,u=e.extra,s=e.help,l=e.marginBottom,f=e.onErrorVisibleChanged,p="".concat(t,"-item"),d=k.useContext(vt.a),h=r||d.wrapperCol||{},v=O()("".concat(p,"-control"),h.className),y=k.useMemo((function(){return Object(m.a)({},d)}),[d]);delete y.labelCol,delete y.wrapperCol;var g=k.createElement("div",{className:"".concat(p,"-control-input")},k.createElement("div",{className:"".concat(p,"-control-input-content")},o)),b=k.useMemo((function(){return{prefixCls:t,status:n}}),[t,n]),w=null!==l||i.length||a.length?k.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},k.createElement(vt.c.Provider,{value:b},k.createElement(ua,{errors:i,warnings:a,help:s,helpStatus:n,className:"".concat(p,"-explain-connected"),onVisibleChanged:f})),!!l&&k.createElement("div",{style:{width:0,height:l}})):null,_=u?k.createElement("div",{className:"".concat(p,"-extra")},u):null,x=c&&"pro_table_render"===c.mark&&c.render?c.render(e,{input:g,errorList:w,extra:_}):k.createElement(k.Fragment,null,g,w,_);return k.createElement(vt.a.Provider,{value:y},k.createElement(La.a,Object(m.a)({},h,{className:v}),x))},za=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ba={success:ka.a,warning:Pa.a,error:Oi.a,validating:Fr.a};function Ua(e){var t,n=e.prefixCls,r=e.className,o=e.style,i=e.help,a=e.errors,c=e.warnings,u=e.validateStatus,s=e.meta,l=e.hasFeedback,f=e.hidden,p=e.children,d=e.fieldId,h=e.isRequired,v=e.onSubItemMetaChange,b=za(e,["prefixCls","className","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","isRequired","onSubItemMetaChange"]),w="".concat(n,"-item"),_=k.useContext(vt.a).requiredMark,x=k.useRef(null),E=ia(a),S=ia(c),C=null!=i,j=!!(C||a.length||c.length),P=k.useState(null),T=Object(g.a)(P,2),M=T[0],A=T[1];Object(Ta.a)((function(){if(j&&x.current){var e=getComputedStyle(x.current);A(parseInt(e.marginBottom,10))}}),[j]);var L="";void 0!==u?L=u:s.validating?L="validating":E.length?L="error":S.length?L="warning":s.touched&&(L="success");var R=k.useMemo((function(){var e;if(l){var t=L&&Ba[L];e=t?k.createElement("span",{className:O()("".concat(w,"-feedback-icon"),"".concat(w,"-feedback-icon-").concat(L))},k.createElement(t,null)):null}return{status:L,hasFeedback:l,feedbackIcon:e,isFormItemInput:!0}}),[L,l]),N=(t={},Object(y.a)(t,w,!0),Object(y.a)(t,"".concat(w,"-with-help"),C||E.length||S.length),Object(y.a)(t,"".concat(r),!!r),Object(y.a)(t,"".concat(w,"-has-feedback"),L&&l),Object(y.a)(t,"".concat(w,"-has-success"),"success"===L),Object(y.a)(t,"".concat(w,"-has-warning"),"warning"===L),Object(y.a)(t,"".concat(w,"-has-error"),"error"===L),Object(y.a)(t,"".concat(w,"-is-validating"),"validating"===L),Object(y.a)(t,"".concat(w,"-hidden"),f),t);return k.createElement("div",{className:O()(N),style:o,ref:x},k.createElement(Ma.a,Object(m.a)({className:"".concat(w,"-row")},Object(St.a)(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","required","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol"])),k.createElement(Da,Object(m.a)({htmlFor:d,required:h,requiredMark:_},e,{prefixCls:n})),k.createElement(Fa,Object(m.a)({},e,s,{errors:E,warnings:S,prefixCls:n,status:L,help:i,marginBottom:M,onErrorVisibleChanged:function(e){e||A(null)}}),k.createElement(vt.f.Provider,{value:v},k.createElement(vt.b.Provider,{value:R},p)))),!!M&&k.createElement("div",{className:"".concat(w,"-margin-offset"),style:{marginBottom:-M}}))}Object(pi.a)("success","warning","error","validating","");var Va=k.memo((function(e){return e.children}),(function(e,t){return e.value===t.value&&e.update===t.update}));var Ha=function(e){var t,n,r,o,i,a,c,u,s,l,f=e.name,p=e.noStyle,d=e.dependencies,h=e.prefixCls,v=e.shouldUpdate,y=e.rules,b=e.children,O=e.required,w=e.label,_=e.messageVariables,x=e.trigger,E=void 0===x?"onChange":x,S=e.validateTrigger,C=e.hidden,j=Object(k.useContext)(dt.b).getPrefixCls,P=Object(k.useContext)(vt.a).name,T="function"==typeof b,A=Object(k.useContext)(vt.f),L=Object(k.useContext)(sa.b).validateTrigger,R=void 0!==S?S:L,N=function(e){return!(null==e)}(f),I=j("form",h),D=k.useContext(sa.e),F=k.useRef(),z=(t={},n=k.useState(t),r=Object(g.a)(n,2),o=r[0],i=r[1],a=Object(k.useRef)(null),c=Object(k.useRef)([]),u=Object(k.useRef)(!1),k.useEffect((function(){return u.current=!1,function(){u.current=!0,H.a.cancel(a.current),a.current=null}}),[]),[o,function(e){u.current||(null===a.current&&(c.current=[],a.current=Object(H.a)((function(){a.current=null,i((function(e){var t=e;return c.current.forEach((function(e){t=e(t)})),t}))}))),c.current.push(e))}]),B=Object(g.a)(z,2),U=B[0],G=B[1],W=Object(Sa.a)((function(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[]}})),Y=Object(g.a)(W,2),K=Y[0],X=Y[1],q=function(e,t){G((function(n){var r=Object(m.a)({},n),o=[].concat(Object(V.a)(e.name.slice(0,-1)),Object(V.a)(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},Z=k.useMemo((function(){var e=Object(V.a)(K.errors),t=Object(V.a)(K.warnings);return Object.values(U).forEach((function(n){e.push.apply(e,Object(V.a)(n.errors||[])),t.push.apply(t,Object(V.a)(n.warnings||[]))})),[e,t]}),[U,K.errors,K.warnings]),J=Object(g.a)(Z,2),Q=J[0],$=J[1],ee=(s=k.useContext(vt.a).itemRef,l=k.useRef({}),function(e,t){var n=t&&"object"===Object(M.a)(t)&&t.ref,r=e.join("_");return l.current.name===r&&l.current.originRef===n||(l.current.name=r,l.current.originRef=n,l.current.ref=Object(Ca.a)(s(e),n)),l.current.ref});function te(t,n,r){return p&&!C?t:k.createElement(Ua,Object(m.a)({key:"row"},e,{prefixCls:I,fieldId:n,isRequired:r,errors:Q,warnings:$,meta:K,onSubItemMetaChange:q}),t)}if(!N&&!T&&!d)return te(b);var ne={};return"string"==typeof w?ne.label=w:f&&(ne.label=String(f)),_&&(ne=Object(m.a)(Object(m.a)({},ne),_)),k.createElement(sa.a,Object(m.a)({},e,{messageVariables:ne,trigger:E,validateTrigger:R,onMetaChange:function(e){var t=null==D?void 0:D.getKey(e.name);if(X(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[]}:e,!0),p&&A){var n=e.name;if(e.destroy)n=F.current||n;else if(void 0!==t){var r=Object(g.a)(t,2),o=r[0],i=r[1];n=[o].concat(Object(V.a)(i)),F.current=n}A(e,n)}}}),(function(t,n,r){var o=ga(f).length&&n?n.name:[],i=ba(o,P),a=void 0!==O?O:!(!y||!y.some((function(e){if(e&&"object"===Object(M.a)(e)&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){var t=e(r);return t&&t.required&&!t.warningOnly}return!1}))),c=Object(m.a)({},t),u=null;if(Array.isArray(b)&&N)u=b;else if(T&&(!v&&!d||N));else if(!d||T||N)if(Object(Li.b)(b)){var s=Object(m.a)(Object(m.a)({},b.props),c);s.id||(s.id=i),Object(Ca.c)(b)&&(s.ref=ee(o,b)),new Set([].concat(Object(V.a)(ga(E)),Object(V.a)(ga(R)))).forEach((function(e){s[e]=function(){for(var t,n,r,o,i,a=arguments.length,u=new Array(a),s=0;s<a;s++)u[s]=arguments[s];null===(r=c[e])||void 0===r||(t=r).call.apply(t,[c].concat(u)),null===(i=(o=b.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(u))}})),u=k.createElement(Va,{value:c[e.valuePropName||"value"],update:b},Object(Li.a)(b,s))}else u=T&&(v||d)&&!N?b(r):b;else;return te(u,i,a)}))};Ha.useStatus=ja;var Ga=Ha,Wa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ya=function(e){var t=e.prefixCls,n=e.children,r=Wa(e,["prefixCls","children"]),o=(0,k.useContext(dt.b).getPrefixCls)("form",t),i=k.useMemo((function(){return{prefixCls:o,status:"error"}}),[o]);return k.createElement(sa.d,Object(m.a)({},r),(function(e,t,r){return k.createElement(vt.c.Provider,{value:i},n(e.map((function(e){return Object(m.a)(Object(m.a)({},e),{fieldKey:e.key})})),t,{errors:r.errors,warnings:r.warnings}))}))};var Ka=Ea;Ka.Item=Ga,Ka.List=Ya,Ka.ErrorList=ua,Ka.useForm=wa,Ka.useFormInstance=function(){return Object(k.useContext)(vt.a).form},Ka.useWatch=sa.h,Ka.Provider=vt.d,Ka.create=function(){};var Xa=Ka,qa=n("TLLU"),Za=n("Zrw9");function Ja(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var Qa=n("7fAn"),$a=n("ty86");function ec(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return Object(y.a)({},e,i);if(t<0&&o<r)return Object(y.a)({},e,-i)}else if(t<0||o>r)return Object(y.a)({},e,t<0?i:-i);return{}}function tc(e,t,n,r){var o={width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight},i=o.width,a=o.height,c=null;return e<=i&&t<=a?c={x:0,y:0}:(e>i||t>a)&&(c=Object(j.a)(Object(j.a)({},ec("x",n,e,i)),ec("y",r,t,a))),c}var nc=["visible","onVisibleChange","getContainer","current","countRender"],rc=k.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),oc=rc.Provider,ic=function(e){var t=e.previewPrefixCls,n=void 0===t?"rc-image-preview":t,r=e.children,o=e.icons,i=void 0===o?{}:o,a=e.preview,c="object"===Object(M.a)(a)?a:{},u=c.visible,s=void 0===u?void 0:u,l=c.onVisibleChange,f=void 0===l?void 0:l,p=c.getContainer,d=void 0===p?void 0:p,h=c.current,v=void 0===h?0:h,y=c.countRender,b=void 0===y?void 0:y,O=Object(Rt.a)(c,nc),w=Object(k.useState)(new Map),_=Object(g.a)(w,2),x=_[0],E=_[1],S=Object(k.useState)(),C=Object(g.a)(S,2),j=C[0],P=C[1],A=Object(T.a)(!!s,{value:s,onChange:f}),L=Object(g.a)(A,2),R=L[0],N=L[1],I=Object(k.useState)(null),D=Object(g.a)(I,2),F=D[0],z=D[1],B=void 0!==s,U=Array.from(x.keys())[v],V=new Map(Array.from(x).filter((function(e){return!!Object(g.a)(e,2)[1].canPreview})).map((function(e){var t=Object(g.a)(e,2);return[t[0],t[1].url]})));return k.useEffect((function(){P(U)}),[U]),k.useEffect((function(){!R&&B&&P(U)}),[U,B,R]),k.createElement(oc,{value:{isPreviewGroup:!0,previewUrls:V,setPreviewUrls:E,current:j,setCurrent:P,setShowPreview:N,setMousePosition:z,registerImage:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=function(){E((function(t){var n=new Map(t);return n.delete(e)?n:t}))};return E((function(r){return new Map(r).set(e,{url:t,canPreview:n})})),r}}},r,k.createElement(dc,Object(m.a)({"aria-hidden":!R,visible:R,prefixCls:n,onClose:function(e){e.stopPropagation(),N(!1),z(null)},mousePosition:F,src:V.get(j),icons:i,getContainer:d,countRender:b},O)))},ac=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","countRender"],cc=k.useState,uc=k.useEffect,sc=k.useCallback,lc=k.useRef,fc=k.useContext,pc={x:0,y:0},dc=function(e){var t,n,r,o,i,a,c,u,s=e.prefixCls,l=e.src,f=e.alt,p=e.onClose,d=(e.afterClose,e.visible),v=e.icons,b=void 0===v?{}:v,w=e.rootClassName,_=e.countRender,x=Object(Rt.a)(e,ac),E=b.rotateLeft,S=b.rotateRight,C=b.zoomIn,P=b.zoomOut,T=b.close,M=b.left,L=b.right,R=cc(1),N=Object(g.a)(R,2),I=N[0],D=N[1],F=cc(0),z=Object(g.a)(F,2),B=z[0],U=z[1],V=(n=pc,r=k.useRef(null),o=k.useState(n),i=Object(g.a)(o,2),a=i[0],c=i[1],u=k.useRef([]),k.useEffect((function(){return function(){return r.current&&H.a.cancel(r.current)}}),[]),[a,function(e){null===r.current&&(u.current=[],r.current=Object(H.a)((function(){c((function(e){var t=e;return u.current.forEach((function(e){t=Object(j.a)(Object(j.a)({},t),e)})),r.current=null,t}))}))),u.current.push(e)}]),G=Object(g.a)(V,2),W=G[0],Y=G[1],K=lc(),X=lc({originX:0,originY:0,deltaX:0,deltaY:0}),q=cc(!1),Z=Object(g.a)(q,2),J=Z[0],Q=Z[1],$=fc(rc),ee=$.previewUrls,te=$.current,ne=$.isPreviewGroup,re=$.setCurrent,oe=ee.size,ie=Array.from(ee.keys()),ae=ie.indexOf(te),ce=ne?ee.get(te):l,ue=ne&&oe>1,se=cc({wheelDirection:0}),le=Object(g.a)(se,2),fe=le[0],pe=le[1],de=function(){D((function(e){return e+1})),Y(pc)},he=function(){I>1&&D((function(e){return e-1})),Y(pc)},ve=O()(Object(y.a)({},"".concat(s,"-moving"),J)),ye="".concat(s,"-operations-operation"),me="".concat(s,"-operations-icon"),ge=[{icon:T,onClick:p,type:"close"},{icon:C,onClick:de,type:"zoomIn"},{icon:P,onClick:he,type:"zoomOut",disabled:1===I},{icon:S,onClick:function(){U((function(e){return e+90}))},type:"rotateRight"},{icon:E,onClick:function(){U((function(e){return e-90}))},type:"rotateLeft"}],be=function(){if(d&&J){var e=K.current.offsetWidth*I,t=K.current.offsetHeight*I,n=K.current.getBoundingClientRect(),r=n.left,o=n.top,i=B%180!=0;Q(!1);var a=tc(i?t:e,i?e:t,r,o);a&&Y(Object(j.a)({},a))}},Oe=function(e){d&&J&&Y({x:e.pageX-X.current.deltaX,y:e.pageY-X.current.deltaY})},we=function(e){if(d){e.preventDefault();var t=e.deltaY;pe({wheelDirection:t})}},_e=sc((function(e){d&&ue&&(e.preventDefault(),e.keyCode===A.a.LEFT?ae>0&&re(ie[ae-1]):e.keyCode===A.a.RIGHT&&ae<oe-1&&re(ie[ae+1]))}),[ae,oe,ie,re,ue,d]);return uc((function(){var e=fe.wheelDirection;e>0?he():e<0&&de()}),[fe]),uc((function(){var e,t,n=Object($a.a)(window,"mouseup",be,!1),r=Object($a.a)(window,"mousemove",Oe,!1),o=Object($a.a)(window,"wheel",we,{passive:!1}),i=Object($a.a)(window,"keydown",_e,!1);try{window.top!==window.self&&(e=Object($a.a)(window.top,"mouseup",be,!1),t=Object($a.a)(window.top,"mousemove",Oe,!1))}catch(a){Object(h.c)(!1,"[rc-image] ".concat(a))}return function(){n.remove(),r.remove(),o.remove(),i.remove(),e&&e.remove(),t&&t.remove()}}),[d,J,_e]),k.createElement(Qa.a,Object(m.a)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:s,onClose:p,afterClose:function(){D(1),U(0),Y(pc)},visible:d,wrapClassName:ve,rootClassName:w},x),k.createElement("ul",{className:"".concat(s,"-operations")},ue&&k.createElement("li",{className:"".concat(s,"-operations-progress")},null!==(t=null==_?void 0:_(ae+1,oe))&&void 0!==t?t:"".concat(ae+1," / ").concat(oe)),ge.map((function(e){var t=e.icon,n=e.onClick,r=e.type,o=e.disabled;return k.createElement("li",{className:O()(ye,Object(y.a)({},"".concat(s,"-operations-operation-disabled"),!!o)),onClick:n,key:r},k.isValidElement(t)?k.cloneElement(t,{className:me}):t)}))),k.createElement("div",{className:"".concat(s,"-img-wrapper"),style:{transform:"translate3d(".concat(W.x,"px, ").concat(W.y,"px, 0)")}},k.createElement("img",{width:e.width,height:e.height,onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),X.current.deltaX=e.pageX-W.x,X.current.deltaY=e.pageY-W.y,X.current.originX=W.x,X.current.originY=W.y,Q(!0))},onDoubleClick:function(){d&&(1!==I&&D(1),W.x===pc.x&&W.y===pc.y||Y(pc))},ref:K,className:"".concat(s,"-img"),src:ce,alt:f,style:{transform:"scale3d(".concat(I,", ").concat(I,", 1) rotate(").concat(B,"deg)")}})),ue&&k.createElement("div",{className:O()("".concat(s,"-switch-left"),Object(y.a)({},"".concat(s,"-switch-left-disabled"),0===ae)),onClick:function(e){e.preventDefault(),e.stopPropagation(),ae>0&&re(ie[ae-1])}},M),ue&&k.createElement("div",{className:O()("".concat(s,"-switch-right"),Object(y.a)({},"".concat(s,"-switch-right-disabled"),ae===oe-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),ae<oe-1&&re(ie[ae+1])}},L))},hc=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap","draggable"],vc=["src","visible","onVisibleChange","getContainer","mask","maskClassName","icons"],yc=0,mc=function(e){var t,n=e.src,r=e.alt,o=e.onPreviewClose,i=e.prefixCls,a=void 0===i?"rc-image":i,c=e.previewPrefixCls,u=void 0===c?"".concat(a,"-preview"):c,s=e.placeholder,l=e.fallback,f=e.width,p=e.height,d=e.style,h=e.preview,v=void 0===h||h,b=e.className,w=e.onClick,_=e.onError,x=e.wrapperClassName,E=e.wrapperStyle,S=e.rootClassName,C=e.crossOrigin,P=e.decoding,A=e.loading,L=e.referrerPolicy,R=e.sizes,N=e.srcSet,I=e.useMap,D=e.draggable,F=Object(Rt.a)(e,hc),z=s&&!0!==s,B="object"===Object(M.a)(v)?v:{},U=B.src,V=B.visible,H=void 0===V?void 0:V,G=B.onVisibleChange,W=void 0===G?o:G,Y=B.getContainer,K=void 0===Y?void 0:Y,X=B.mask,q=B.maskClassName,Z=B.icons,J=Object(Rt.a)(B,vc),Q=null!=U?U:n,$=void 0!==H,ee=Object(T.a)(!!H,{value:H,onChange:W}),te=Object(g.a)(ee,2),ne=te[0],re=te[1],oe=Object(k.useState)(z?"loading":"normal"),ie=Object(g.a)(oe,2),ae=ie[0],ce=ie[1],ue=Object(k.useState)(null),se=Object(g.a)(ue,2),le=se[0],fe=se[1],pe="error"===ae,de=k.useContext(rc),he=de.isPreviewGroup,ve=de.setCurrent,ye=de.setShowPreview,me=de.setMousePosition,ge=de.registerImage,be=k.useState((function(){return yc+=1})),Oe=Object(g.a)(be,1)[0],we=v&&!pe,_e=k.useRef(!1),xe=function(){ce("normal")};k.useEffect((function(){return ge(Oe,Q)}),[]),k.useEffect((function(){ge(Oe,Q,we)}),[Q,we]),k.useEffect((function(){pe&&ce("normal"),z&&!_e.current&&ce("loading")}),[n]);var Ee=O()(a,x,S,Object(y.a)({},"".concat(a,"-error"),pe)),Se=pe&&l?l:Q,Ce={crossOrigin:C,decoding:P,draggable:D,loading:A,referrerPolicy:L,sizes:R,srcSet:N,useMap:I,alt:r,className:O()("".concat(a,"-img"),Object(y.a)({},"".concat(a,"-img-placeholder"),!0===s),b),style:Object(j.a)({height:p},d)};return k.createElement(k.Fragment,null,k.createElement("div",Object(m.a)({},F,{className:Ee,onClick:we?function(e){if(!$){var t=Ja(e.target),n=t.left,r=t.top;he?(ve(Oe),me({x:n,y:r})):fe({x:n,y:r})}he?ye(!0):re(!0),w&&w(e)}:w,style:Object(j.a)({width:f,height:p},E)}),k.createElement("img",Object(m.a)({},Ce,{ref:function(e){_e.current=!1,"loading"===ae&&(null==e?void 0:e.complete)&&(e.naturalWidth||e.naturalHeight)&&(_e.current=!0,xe())}},pe&&l?{src:l}:{onLoad:xe,onError:function(e){_&&_(e),ce("error")},src:n},{width:f,height:p})),"loading"===ae&&k.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},s),X&&we&&k.createElement("div",{className:O()("".concat(a,"-mask"),q),style:{display:"none"===(null===(t=Ce.style)||void 0===t?void 0:t.display)?"none":void 0}},X)),!he&&we&&k.createElement(dc,Object(m.a)({"aria-hidden":!ne,visible:ne,prefixCls:u,onClose:function(e){e.stopPropagation(),re(!1),$||fe(null)},mousePosition:le,src:Se,alt:r,getContainer:K,icons:Z,rootClassName:S},J)))};mc.PreviewGroup=ic,mc.displayName="Image";var gc=mc,bc=Ra.a,Oc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},wc=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:Oc}))};wc.displayName="RotateLeftOutlined";var _c=k.forwardRef(wc),xc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Ec=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:xc}))};Ec.displayName="RotateRightOutlined";var Sc=k.forwardRef(Ec),Cc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},jc=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:Cc}))};jc.displayName="ZoomInOutlined";var kc=k.forwardRef(jc),Pc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Tc=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:Pc}))};Tc.displayName="ZoomOutOutlined";var Mc=k.forwardRef(Tc),Ac=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Lc={rotateLeft:k.createElement(_c,null),rotateRight:k.createElement(Sc,null),zoomIn:k.createElement(kc,null),zoomOut:k.createElement(Mc,null),close:k.createElement(kt.a,null),left:k.createElement(Dr.a,null),right:k.createElement(zr.a,null)},Rc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Nc=function(e){var t=e.prefixCls,n=e.preview,r=Rc(e,["prefixCls","preview"]),o=Object(k.useContext)(dt.b),i=o.getPrefixCls,a=o.locale,c=void 0===a?bc:a,u=o.getPopupContainer,s=i("image",t),l=i(),f=c.Image||bc.Image,p=k.useMemo((function(){if(!1===n)return n;var e="object"===Object(M.a)(n)?n:{},t=e.getContainer,r=Rc(e,["getContainer"]);return Object(m.a)(Object(m.a)({mask:k.createElement("div",{className:"".concat(s,"-mask-info")},k.createElement(Za.a,null),null==f?void 0:f.preview),icons:Lc},r),{getContainer:t||u,transitionName:Object(Vo.c)(l,"zoom",e.transitionName),maskTransitionName:Object(Vo.c)(l,"fade",e.maskTransitionName)})}),[n,f]);return k.createElement(gc,Object(m.a)({prefixCls:s,preview:p},r))};Nc.PreviewGroup=function(e){var t=e.previewPrefixCls,n=e.preview,r=Ac(e,["previewPrefixCls","preview"]),o=k.useContext(dt.b).getPrefixCls,i=o("image-preview",t),a=o(),c=k.useMemo((function(){if(!1===n)return n;var e="object"===Object(M.a)(n)?n:{};return Object(m.a)(Object(m.a)({},e),{transitionName:Object(Vo.c)(a,"zoom",e.transitionName),maskTransitionName:Object(Vo.c)(a,"fade",e.maskTransitionName)})}),[n]);return k.createElement(gc.PreviewGroup,Object(m.a)({preview:c,previewPrefixCls:i,icons:Lc},r))};var Ic=Nc,Dc=n("5rEg"),Fc=n("sxM7"),zc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Bc=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:zc}))};Bc.displayName="UpOutlined";var Uc=k.forwardRef(Bc);function Vc(){return"function"==typeof BigInt}function Hc(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var c=n?"-":"";return{negative:n,negativeStr:c,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(c).concat(r)}}function Gc(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Wc(e){var t=String(e);if(Gc(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return(null==r?void 0:r[1])&&(n+=r[1].length),n}return t.includes(".")&&Kc(t)?t.length-t.indexOf(".")-1:0}function Yc(e){var t=String(e);if(Gc(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Vc()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Vc()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Wc(t))}return Hc(t).fullStr}function Kc(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}function Xc(e){var t="number"==typeof e?Yc(e):Hc(e).fullStr;return t.includes(".")?Hc(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var qc=function(){function e(t){Object(x.a)(this,e),this.origin="",this.number=void 0,this.empty=void 0,(t||0===t)&&String(t).trim()?(this.origin=String(t),this.number=Number(t)):this.empty=!0}return Object(E.a)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Wc(this.number),Wc(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":Yc(this.number):this.origin}}]),e}(),Zc=function(){function e(t){if(Object(x.a)(this,e),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,(t||0===t)&&String(t).trim())if(this.origin=String(t),"-"!==t){var n=t;if(Gc(n)&&(n=Number(n)),Kc(n="string"==typeof n?n:Yc(n))){var r=Hc(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}else this.nan=!0;else this.empty=!0}return Object(E.a)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);if(n.isInvalidate())return this;var r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=Hc((this.alignDecimal(r)+n.alignDecimal(r)).toString()),i=o.negativeStr,a=o.trimStr,c="".concat(i).concat(a.padStart(r+1,"0"));return new e("".concat(c.slice(0,-r),".").concat(c.slice(-r)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":Hc("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Jc(e){return Vc()?new Zc(e):new qc(e)}function Qc(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=Hc(e),i=o.negativeStr,a=o.integerStr,c=o.decimalStr,u="".concat(t).concat(c),s="".concat(i).concat(a);if(n>=0){var l=Number(c[n]);if(l>=5&&!r){var f=Jc(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-l));return Qc(f.toString(),t,n,r)}return 0===n?s:"".concat(s).concat(t).concat(c.padEnd(n,"0").slice(0,n))}return".0"===u?s:"".concat(s).concat(u)}function $c(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,c=k.useRef(),u=k.useRef();u.current=a;var s=function(e,t){e.preventDefault(),u.current(t),c.current=setTimeout((function e(){u.current(t),c.current=setTimeout(e,200)}),600)},l=function(){clearTimeout(c.current)};if(k.useEffect((function(){return l}),[]),Object(It.a)())return null;var f="".concat(t,"-handler"),p=O()(f,"".concat(f,"-up"),Object(y.a)({},"".concat(f,"-up-disabled"),o)),d=O()(f,"".concat(f,"-down"),Object(y.a)({},"".concat(f,"-down-disabled"),i)),h={unselectable:"on",role:"button",onMouseUp:l,onMouseLeave:l};return k.createElement("div",{className:"".concat(f,"-wrap")},k.createElement("span",Object(m.a)({},h,{onMouseDown:function(e){s(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:p}),n||k.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),k.createElement("span",Object(m.a)({},h,{onMouseDown:function(e){s(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:d}),r||k.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}var eu=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],tu=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},nu=function(e){var t=Jc(e);return t.isInvalidate()?null:t},ru=k.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-input-number":r,i=e.className,a=e.style,c=e.min,u=e.max,s=e.step,l=void 0===s?1:s,f=e.defaultValue,p=e.value,d=e.disabled,v=e.readOnly,b=e.upHandler,w=e.downHandler,_=e.keyboard,x=e.controls,E=void 0===x||x,S=e.stringMode,C=e.parser,j=e.formatter,P=e.precision,T=e.decimalSeparator,L=e.onChange,R=e.onInput,N=e.onPressEnter,I=e.onStep,D=Object(Rt.a)(e,eu),F="".concat(o,"-input"),z=k.useRef(null),B=k.useState(!1),U=Object(g.a)(B,2),V=U[0],G=U[1],W=k.useRef(!1),Y=k.useRef(!1),K=k.useRef(!1),X=k.useState((function(){return Jc(null!=p?p:f)})),q=Object(g.a)(X,2),Z=q[0],J=q[1];var Q=k.useCallback((function(e,t){if(!t)return P>=0?P:Math.max(Wc(e),Wc(l))}),[P,l]),$=k.useCallback((function(e){var t=String(e);if(C)return C(t);var n=t;return T&&(n=n.replace(T,".")),n.replace(/[^\w.-]+/g,"")}),[C,T]),ee=k.useRef(""),te=k.useCallback((function(e,t){if(j)return j(e,{userTyping:t,input:String(ee.current)});var n="number"==typeof e?Yc(e):e;if(!t){var r=Q(n,t);if(Kc(n)&&(T||r>=0))n=Qc(n,T||".",r)}return n}),[j,Q,T]),ne=k.useState((function(){var e=null!=f?f:p;return Z.isInvalidate()&&["string","number"].includes(Object(M.a)(e))?Number.isNaN(e)?"":e:te(Z.toString(),!1)})),re=Object(g.a)(ne,2),oe=re[0],ie=re[1];function ae(e,t){ie(te(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ee.current=oe;var ce,ue,se,le,fe,pe=k.useMemo((function(){return nu(u)}),[u,P]),de=k.useMemo((function(){return nu(c)}),[c,P]),he=k.useMemo((function(){return!(!pe||!Z||Z.isInvalidate())&&pe.lessEquals(Z)}),[pe,Z]),ve=k.useMemo((function(){return!(!de||!Z||Z.isInvalidate())&&Z.lessEquals(de)}),[de,Z]),ye=(ce=z.current,ue=V,se=Object(k.useRef)(null),[function(){try{var e=ce.selectionStart,t=ce.selectionEnd,n=ce.value,r=n.substring(0,e),o=n.substring(t);se.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(i){}},function(){if(ce&&se.current&&ue)try{var e=ce.value,t=se.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,i=e.length;if(e.endsWith(r))i=e.length-se.current.afterTxt.length;else if(e.startsWith(n))i=n.length;else{var a=n[o-1],c=e.indexOf(a,o-1);-1!==c&&(i=c+1)}ce.setSelectionRange(i,i)}catch(u){Object(h.a)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(u.message))}}]),me=Object(g.a)(ye,2),ge=me[0],be=me[1],Oe=function(e){return pe&&!e.lessEquals(pe)?pe:de&&!de.lessEquals(e)?de:null},we=function(e){return!Oe(e)},_e=function(e,t){var n,r=e,o=we(r)||r.isEmpty();if(r.isEmpty()||t||(r=Oe(r)||r,o=!0),!v&&!d&&o){var i=r.toString(),a=Q(i,t);return a>=0&&(r=Jc(Qc(i,".",a)),we(r)||(r=Jc(Qc(i,".",a,!0)))),r.equals(Z)||(n=r,void 0===p&&J(n),null==L||L(r.isEmpty()?null:tu(S,r)),void 0===p&&ae(r,t)),r}return Z},xe=(le=Object(k.useRef)(0),fe=function(){H.a.cancel(le.current)},Object(k.useEffect)((function(){return fe}),[]),function(e){fe(),le.current=Object(H.a)((function(){e()}))}),Ee=function e(t){if(ge(),ie(t),!Y.current){var n=Jc($(t));n.isNaN()||_e(n,!0)}null==R||R(t),xe((function(){var n=t;C||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},Se=function(e){var t;if(!(e&&he||!e&&ve)){W.current=!1;var n=Jc(K.current?Xc(l):l);e||(n=n.negate());var r=(Z||Jc(0)).add(n.toString()),o=_e(r,!1);null==I||I(tu(S,o),{offset:K.current?Xc(l):l,type:e?"up":"down"}),null===(t=z.current)||void 0===t||t.focus()}},Ce=function(e){var t=Jc($(oe)),n=t;n=t.isNaN()?Z:_e(t,e),void 0!==p?ae(Z,!1):n.isNaN()||ae(n,!1)};return Object(Ta.b)((function(){Z.isInvalidate()||ae(Z,!1)}),[P]),Object(Ta.b)((function(){var e=Jc(p);J(e);var t=Jc($(oe));e.equals(t)&&W.current&&!j||ae(e,W.current)}),[p]),Object(Ta.b)((function(){j&&be()}),[oe]),k.createElement("div",{className:O()(o,i,(n={},Object(y.a)(n,"".concat(o,"-focused"),V),Object(y.a)(n,"".concat(o,"-disabled"),d),Object(y.a)(n,"".concat(o,"-readonly"),v),Object(y.a)(n,"".concat(o,"-not-a-number"),Z.isNaN()),Object(y.a)(n,"".concat(o,"-out-of-range"),!Z.isInvalidate()&&!we(Z)),n)),style:a,onFocus:function(){G(!0)},onBlur:function(){Ce(!1),G(!1),W.current=!1},onKeyDown:function(e){var t=e.which,n=e.shiftKey;W.current=!0,K.current=!!n,t===A.a.ENTER&&(Y.current||(W.current=!1),Ce(!1),null==N||N(e)),!1!==_&&!Y.current&&[A.a.UP,A.a.DOWN].includes(t)&&(Se(A.a.UP===t),e.preventDefault())},onKeyUp:function(){W.current=!1,K.current=!1},onCompositionStart:function(){Y.current=!0},onCompositionEnd:function(){Y.current=!1,Ee(z.current.value)}},E&&k.createElement($c,{prefixCls:o,upNode:b,downNode:w,upDisabled:he,downDisabled:ve,onStep:Se}),k.createElement("div",{className:"".concat(F,"-wrap")},k.createElement("input",Object(m.a)({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":u,"aria-valuenow":Z.isInvalidate()?null:Z.toString(),step:l},D,{ref:Object(Ca.a)(z,t),className:F,value:oe,onChange:function(e){Ee(e.target.value)},disabled:d,readOnly:v}))))}));ru.displayName="InputNumber";var ou=ru,iu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},au=k.forwardRef((function(e,t){var n,r=k.useContext(dt.b),o=r.getPrefixCls,i=r.direction,a=k.useContext(Ct.b),c=k.useState(!1),u=Object(g.a)(c,2),s=u[0],l=u[1],f=k.useRef(null);k.useImperativeHandle(t,(function(){return f.current}));var p=e.className,d=e.size,h=e.disabled,v=e.prefixCls,b=e.addonBefore,w=e.addonAfter,_=e.prefix,x=e.bordered,E=void 0===x||x,S=e.readOnly,C=e.status,j=e.controls,P=iu(e,["className","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),T=o("input-number",v),A=k.createElement(Uc,{className:"".concat(T,"-handler-up-inner")}),L=k.createElement(Fc.a,{className:"".concat(T,"-handler-down-inner")}),R="boolean"==typeof j?j:void 0;"object"===Object(M.a)(j)&&(A=void 0===j.upIcon?A:k.createElement("span",{className:"".concat(T,"-handler-up-inner")},j.upIcon),L=void 0===j.downIcon?L:k.createElement("span",{className:"".concat(T,"-handler-down-inner")},j.downIcon));var N=Object(k.useContext)(vt.b),I=N.hasFeedback,D=N.status,F=N.isFormItemInput,z=N.feedbackIcon,B=Object(Ho.a)(D,C),U=d||a,V=k.useContext(Bo.b),H=h||V,G=O()((n={},Object(y.a)(n,"".concat(T,"-lg"),"large"===U),Object(y.a)(n,"".concat(T,"-sm"),"small"===U),Object(y.a)(n,"".concat(T,"-rtl"),"rtl"===i),Object(y.a)(n,"".concat(T,"-borderless"),!E),Object(y.a)(n,"".concat(T,"-in-form-item"),F),n),Object(Ho.b)(T,B),p),W=k.createElement(ou,Object(m.a)({ref:f,disabled:H,className:G,upHandler:A,downHandler:L,prefixCls:T,readOnly:S,controls:R},P));if(null!=_||I){var Y,K=O()("".concat(T,"-affix-wrapper"),Object(Ho.b)("".concat(T,"-affix-wrapper"),B,I),(Y={},Object(y.a)(Y,"".concat(T,"-affix-wrapper-focused"),s),Object(y.a)(Y,"".concat(T,"-affix-wrapper-disabled"),e.disabled),Object(y.a)(Y,"".concat(T,"-affix-wrapper-sm"),"small"===a),Object(y.a)(Y,"".concat(T,"-affix-wrapper-lg"),"large"===a),Object(y.a)(Y,"".concat(T,"-affix-wrapper-rtl"),"rtl"===i),Object(y.a)(Y,"".concat(T,"-affix-wrapper-readonly"),S),Object(y.a)(Y,"".concat(T,"-affix-wrapper-borderless"),!E),Object(y.a)(Y,"".concat(p),!(b||w)&&p),Y));W=k.createElement("div",{className:K,style:e.style,onMouseUp:function(){return f.current.focus()}},_&&k.createElement("span",{className:"".concat(T,"-prefix")},_),Object(Li.a)(W,{style:null,value:e.value,onFocus:function(t){var n;l(!0),null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:function(t){var n;l(!1),null===(n=e.onBlur)||void 0===n||n.call(e,t)}}),I&&k.createElement("span",{className:"".concat(T,"-suffix")},z))}if(null!=b||null!=w){var X,q="".concat(T,"-group"),Z="".concat(q,"-addon"),J=b?k.createElement("div",{className:Z},b):null,Q=w?k.createElement("div",{className:Z},w):null,$=O()("".concat(T,"-wrapper"),q,Object(y.a)({},"".concat(q,"-rtl"),"rtl"===i)),ee=O()("".concat(T,"-group-wrapper"),(X={},Object(y.a)(X,"".concat(T,"-group-wrapper-sm"),"small"===a),Object(y.a)(X,"".concat(T,"-group-wrapper-lg"),"large"===a),Object(y.a)(X,"".concat(T,"-group-wrapper-rtl"),"rtl"===i),X),Object(Ho.b)("".concat(T,"-group-wrapper"),B,I),p);W=k.createElement("div",{className:ee,style:e.style},k.createElement("div",{className:$},J&&k.createElement(vt.e,{status:!0,override:!0},J),Object(Li.a)(W,{style:null,disabled:H}),Q&&k.createElement(vt.e,{status:!0,override:!0},Q)))}return W})),cu=n("Ol7k"),uu=n("5OYt"),su={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},lu=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:su}))};lu.displayName="DoubleLeftOutlined";var fu=k.forwardRef(lu),pu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},du=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:pu}))};du.displayName="DoubleRightOutlined";var hu=k.forwardRef(du),vu=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=O()(n,"".concat(n,"-").concat(e.page),(t={},Object(y.a)(t,"".concat(n,"-active"),e.active),Object(y.a)(t,"".concat(n,"-disabled"),!e.page),Object(y.a)(t,e.className,!!e.className),t));return P.a.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",P.a.createElement("a",{rel:"nofollow"},e.page)))},yu=13,mu=38,gu=40,bu=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;Object(x.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var n=e.props,r=n.goButton,o=n.quickGo,i=n.rootPrefixCls,a=e.state.goInputText;r||""===a||(e.setState({goInputText:""}),t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(i,"-item-link"))>=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==yu&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return Object(E.a)(n,[{key:"getValidValue",value:function(){var e=this.state.goInputText;return!e||isNaN(e)?void 0:Number(e)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,o=t.rootPrefixCls,i=t.changeSize,a=t.quickGo,c=t.goButton,u=t.selectComponentClass,s=t.buildOptionText,l=t.selectPrefixCls,f=t.disabled,p=this.state.goInputText,d="".concat(o,"-options"),h=u,v=null,y=null,m=null;if(!i&&!a)return null;var g=this.getPageSizeOptions();if(i&&h){var b=g.map((function(t,n){return P.a.createElement(h.Option,{key:n,value:t.toString()},(s||e.buildOptionText)(t))}));v=P.a.createElement(h,{disabled:f,prefixCls:l,showSearch:!1,className:"".concat(d,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||g[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},b)}return a&&(c&&(m="boolean"==typeof c?P.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:f,className:"".concat(d,"-quick-jumper-button")},r.jump_to_confirm):P.a.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),y=P.a.createElement("div",{className:"".concat(d,"-quick-jumper")},r.jump_to,P.a.createElement("input",{disabled:f,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,m)),P.a.createElement("li",{className:"".concat(d)},v,y)}}]),n}(P.a.Component);bu.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ou=bu;function wu(){}function _u(e){var t=Number(e);return"number"==typeof t&&!isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function xu(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var Eu=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(e){var r;Object(x.a)(this,n),(r=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(xu(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,o=e||P.a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(o=P.a.createElement(e,Object(j.a)({},r.props))),o},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){var t=r.props.total;return _u(e)&&e!==r.state.current&&_u(t)&&t>0},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&t},r.handleKeyDown=function(e){e.keyCode!==mu&&e.keyCode!==gu||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===yu?r.handleChange(t):e.keyCode===mu?r.handleChange(t-1):e.keyCode===gu&&r.handleChange(t+1)},r.handleBlur=function(e){var t=r.getValidValue(e);r.handleChange(t)},r.changePageSize=function(e){var t=r.state.current,n=xu(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"==typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange,i=r.state,a=i.pageSize,c=i.current,u=i.currentInputValue;if(r.isValid(e)&&!n){var s=xu(void 0,r.state,r.props),l=e;return e>s?l=s:e<1&&(l=1),"current"in r.props||r.setState({current:l}),l!==u&&r.setState({currentInputValue:l}),o(l,a),l}return c},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current<xu(void 0,r.state,r.props)},r.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}},r.runIfEnterPrev=function(e){r.runIfEnter(e,r.prev)},r.runIfEnterNext=function(e){r.runIfEnter(e,r.next)},r.runIfEnterJumpPrev=function(e){r.runIfEnter(e,r.jumpPrev)},r.runIfEnterJumpNext=function(e){r.runIfEnter(e,r.jumpNext)},r.handleGoTO=function(e){e.keyCode!==yu&&"click"!==e.type||r.handleChange(r.state.currentInputValue)};var o=e.onChange!==wu;"current"in e&&!o&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var i=e.defaultCurrent;"current"in e&&(i=e.current);var a=e.defaultPageSize;return"pageSize"in e&&(a=e.pageSize),i=Math.min(i,xu(a,void 0,e)),r.state={current:i,currentInputValue:i,pageSize:a},r}return Object(E.a)(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var r=this.paginationNode.querySelector(".".concat(n,"-item-").concat(t.current));r&&document.activeElement===r&&r.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=xu(void 0,this.state,this.props),r=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?r:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,r=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),o=!this.hasPrev();return Object(k.isValidElement)(r)?Object(k.cloneElement)(r,{disabled:o}):r}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,r=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),o=!this.hasNext();return Object(k.isValidElement)(r)?Object(k.cloneElement)(r,{disabled:o}):r}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.className,o=t.style,i=t.disabled,a=t.hideOnSinglePage,c=t.total,u=t.locale,s=t.showQuickJumper,l=t.showLessItems,f=t.showTitle,p=t.showTotal,d=t.simple,h=t.itemRender,v=t.showPrevNextJumpers,g=t.jumpPrevIcon,b=t.jumpNextIcon,w=t.selectComponentClass,_=t.selectPrefixCls,x=t.pageSizeOptions,E=this.state,S=E.current,C=E.pageSize,j=E.currentInputValue;if(!0===a&&c<=C)return null;var T=xu(void 0,this.state,this.props),M=[],A=null,L=null,R=null,N=null,I=null,D=s&&s.goButton,F=l?1:2,z=S-1>0?S-1:0,B=S+1<T?S+1:T,U=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{});if(d)return D&&(I="boolean"==typeof D?P.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},u.jump_to_confirm):P.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},D),I=P.a.createElement("li",{title:f?"".concat(u.jump_to).concat(S,"/").concat(T):null,className:"".concat(n,"-simple-pager")},I)),P.a.createElement("ul",Object(m.a)({className:O()(n,"".concat(n,"-simple"),Object(y.a)({},"".concat(n,"-disabled"),i),r),style:o,ref:this.savePaginationNode},U),P.a.createElement("li",{title:f?u.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:O()("".concat(n,"-prev"),Object(y.a)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(z)),P.a.createElement("li",{title:f?"".concat(S,"/").concat(T):null,className:"".concat(n,"-simple-pager")},P.a.createElement("input",{type:"text",value:j,disabled:i,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),P.a.createElement("span",{className:"".concat(n,"-slash")},"/"),T),P.a.createElement("li",{title:f?u.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:O()("".concat(n,"-next"),Object(y.a)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),I);if(T<=3+2*F){var V={locale:u,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:f,itemRender:h};T||M.push(P.a.createElement(vu,Object(m.a)({},V,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var H=1;H<=T;H+=1){var G=S===H;M.push(P.a.createElement(vu,Object(m.a)({},V,{key:H,page:H,active:G})))}}else{var W=l?u.prev_3:u.prev_5,Y=l?u.next_3:u.next_5;v&&(A=P.a.createElement("li",{title:f?W:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:O()("".concat(n,"-jump-prev"),Object(y.a)({},"".concat(n,"-jump-prev-custom-icon"),!!g))},h(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(g,"prev page"))),L=P.a.createElement("li",{title:f?Y:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:O()("".concat(n,"-jump-next"),Object(y.a)({},"".concat(n,"-jump-next-custom-icon"),!!b))},h(this.getJumpNextPage(),"jump-next",this.getItemIcon(b,"next page")))),N=P.a.createElement(vu,{locale:u,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:T,page:T,active:!1,showTitle:f,itemRender:h}),R=P.a.createElement(vu,{locale:u,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:f,itemRender:h});var K=Math.max(1,S-F),X=Math.min(S+F,T);S-1<=F&&(X=1+2*F),T-S<=F&&(K=T-2*F);for(var q=K;q<=X;q+=1){var Z=S===q;M.push(P.a.createElement(vu,{locale:u,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:q,page:q,active:Z,showTitle:f,itemRender:h}))}S-1>=2*F&&3!==S&&(M[0]=Object(k.cloneElement)(M[0],{className:"".concat(n,"-item-after-jump-prev")}),M.unshift(A)),T-S>=2*F&&S!==T-2&&(M[M.length-1]=Object(k.cloneElement)(M[M.length-1],{className:"".concat(n,"-item-before-jump-next")}),M.push(L)),1!==K&&M.unshift(R),X!==T&&M.push(N)}var J=null;p&&(J=P.a.createElement("li",{className:"".concat(n,"-total-text")},p(c,[0===c?0:(S-1)*C+1,S*C>c?c:S*C])));var Q=!this.hasPrev()||!T,$=!this.hasNext()||!T;return P.a.createElement("ul",Object(m.a)({className:O()(n,r,Object(y.a)({},"".concat(n,"-disabled"),i)),style:o,unselectable:"unselectable",ref:this.savePaginationNode},U),J,P.a.createElement("li",{title:f?u.prev_page:null,onClick:this.prev,tabIndex:Q?null:0,onKeyPress:this.runIfEnterPrev,className:O()("".concat(n,"-prev"),Object(y.a)({},"".concat(n,"-disabled"),Q)),"aria-disabled":Q},this.renderPrev(z)),M,P.a.createElement("li",{title:f?u.next_page:null,onClick:this.next,tabIndex:$?null:0,onKeyPress:this.runIfEnterNext,className:O()("".concat(n,"-next"),Object(y.a)({},"".concat(n,"-disabled"),$)),"aria-disabled":$},this.renderNext(B)),P.a.createElement(Ou,{disabled:i,locale:u,rootPrefixCls:n,selectComponentClass:w,selectPrefixCls:_,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:S,pageSize:C,pageSizeOptions:x,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:D}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=xu(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(P.a.Component);Eu.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:wu,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:wu,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var Su=Eu,Cu=n("OjVO"),ju=function(e){return k.createElement(gt.a,Object(m.a)({},e,{size:"small"}))},ku=function(e){return k.createElement(gt.a,Object(m.a)({},e,{size:"middle"}))};ju.Option=gt.a.Option,ku.Option=gt.a.Option;var Pu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Tu=function(e){var t=e.prefixCls,n=e.selectPrefixCls,r=e.className,o=e.size,i=e.locale,a=e.selectComponentClass,c=e.responsive,u=e.showSizeChanger,s=Pu(e,["prefixCls","selectPrefixCls","className","size","locale","selectComponentClass","responsive","showSizeChanger"]),l=Object(uu.a)(c).xs,f=k.useContext(dt.b),p=f.getPrefixCls,d=f.direction,h=f.pagination,v=void 0===h?{}:h,g=p("pagination",t),b=null!=u?u:v.showSizeChanger,w=function(e){var t,u=Object(m.a)(Object(m.a)({},e),i),f="small"===o||!(!l||o||!c),h=p("select",n),v=O()((t={},Object(y.a)(t,"".concat(g,"-mini"),f),Object(y.a)(t,"".concat(g,"-rtl"),"rtl"===d),t),r);return k.createElement(Su,Object(m.a)({},function(){var e=k.createElement("span",{className:"".concat(g,"-item-ellipsis")},"•••"),t=k.createElement("button",{className:"".concat(g,"-item-link"),type:"button",tabIndex:-1},k.createElement(Dr.a,null)),n=k.createElement("button",{className:"".concat(g,"-item-link"),type:"button",tabIndex:-1},k.createElement(zr.a,null)),r=k.createElement("a",{className:"".concat(g,"-item-link")},k.createElement("div",{className:"".concat(g,"-item-container")},k.createElement(fu,{className:"".concat(g,"-item-link-icon")}),e)),o=k.createElement("a",{className:"".concat(g,"-item-link")},k.createElement("div",{className:"".concat(g,"-item-container")},k.createElement(hu,{className:"".concat(g,"-item-link-icon")}),e));if("rtl"===d){var i=[n,t];t=i[0],n=i[1];var a=[o,r];r=a[0],o=a[1]}return{prevIcon:t,nextIcon:n,jumpPrevIcon:r,jumpNextIcon:o}}(),s,{prefixCls:g,selectPrefixCls:h,className:v,selectComponentClass:a||(f?ju:ku),locale:u,showSizeChanger:b}))};return k.createElement(ht.a,{componentName:"Pagination",defaultLocale:Cu.a},w)},Mu=n("RNvQ"),Au=n.n(Mu),Lu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ru=(Object(pi.a)("small","default","large"),null);var Nu=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(e){var r;Object(x.a)(this,n),(r=t.call(this,e)).debouncifyUpdateSpinning=function(e){var t=(e||r.props).delay;t&&(r.cancelExistingSpin(),r.updateSpinning=Au()(r.originalUpdateSpinning,t))},r.updateSpinning=function(){var e=r.props.spinning;r.state.spinning!==e&&r.setState({spinning:e})},r.renderSpin=function(e){var t,n=e.direction,o=r.props,i=o.spinPrefixCls,a=o.className,c=o.size,u=o.tip,s=o.wrapperClassName,l=o.style,f=Lu(o,["spinPrefixCls","className","size","tip","wrapperClassName","style"]),p=r.state.spinning,d=O()(i,(t={},Object(y.a)(t,"".concat(i,"-sm"),"small"===c),Object(y.a)(t,"".concat(i,"-lg"),"large"===c),Object(y.a)(t,"".concat(i,"-spinning"),p),Object(y.a)(t,"".concat(i,"-show-text"),!!u),Object(y.a)(t,"".concat(i,"-rtl"),"rtl"===n),t),a),h=Object(St.a)(f,["spinning","delay","indicator","prefixCls"]),v=k.createElement("div",Object(m.a)({},h,{style:l,className:d,"aria-live":"polite","aria-busy":p}),function(e,t){var n=t.indicator,r="".concat(e,"-dot");return null===n?null:Object(Li.b)(n)?Object(Li.a)(n,{className:O()(n.props.className,r)}):Object(Li.b)(Ru)?Object(Li.a)(Ru,{className:O()(Ru.props.className,r)}):k.createElement("span",{className:O()(r,"".concat(e,"-dot-spin"))},k.createElement("i",{className:"".concat(e,"-dot-item")}),k.createElement("i",{className:"".concat(e,"-dot-item")}),k.createElement("i",{className:"".concat(e,"-dot-item")}),k.createElement("i",{className:"".concat(e,"-dot-item")}))}(i,r.props),u?k.createElement("div",{className:"".concat(i,"-text")},u):null);if(r.isNestedPattern()){var g=O()("".concat(i,"-container"),Object(y.a)({},"".concat(i,"-blur"),p));return k.createElement("div",Object(m.a)({},h,{className:O()("".concat(i,"-nested-loading"),s)}),p&&k.createElement("div",{key:"loading"},v),k.createElement("div",{className:g,key:"container"},r.props.children))}return v};var o=e.spinning,i=function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(o,e.delay);return r.state={spinning:o&&!i},r.originalUpdateSpinning=r.updateSpinning,r.debouncifyUpdateSpinning(e),r}return Object(E.a)(n,[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(),this.updateSpinning()}},{key:"componentWillUnmount",value:function(){this.cancelExistingSpin()}},{key:"cancelExistingSpin",value:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()}},{key:"isNestedPattern",value:function(){return!(!this.props||void 0===this.props.children)}},{key:"render",value:function(){return k.createElement(dt.a,null,this.renderSpin)}}]),n}(k.Component);Nu.defaultProps={spinning:!0,size:"default",wrapperClassName:""};var Iu=function(e){var t=e.prefixCls,n=(0,k.useContext(dt.b).getPrefixCls)("spin",t),r=Object(m.a)(Object(m.a)({},e),{spinPrefixCls:n});return k.createElement(Nu,Object(m.a)({},r))};Iu.setDefaultIndicator=function(e){Ru=e};var Du=Iu,Fu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},zu=function(e,t){var n,r=e.prefixCls,o=e.children,i=e.actions,a=e.extra,c=e.className,u=e.colStyle,s=Fu(e,["prefixCls","children","actions","extra","className","colStyle"]),l=Object(k.useContext)(Hu),f=l.grid,p=l.itemLayout,d=Object(k.useContext)(dt.b).getPrefixCls,h=d("list",r),v=i&&i.length>0&&P.a.createElement("ul",{className:"".concat(h,"-item-action"),key:"actions"},i.map((function(e,t){return P.a.createElement("li",{key:"".concat(h,"-item-action-").concat(t)},e,t!==i.length-1&&P.a.createElement("em",{className:"".concat(h,"-item-action-split")}))}))),g=f?"div":"li",b=P.a.createElement(g,Object(m.a)({},s,f?{}:{ref:t},{className:O()("".concat(h,"-item"),Object(y.a)({},"".concat(h,"-item-no-flex"),!("vertical"===p?a:(k.Children.forEach(o,(function(e){"string"==typeof e&&(n=!0)})),!(n&&k.Children.count(o)>1)))),c)}),"vertical"===p&&a?[P.a.createElement("div",{className:"".concat(h,"-item-main"),key:"content"},o,v),P.a.createElement("div",{className:"".concat(h,"-item-extra"),key:"extra"},a)]:[o,v,Object(Li.a)(a,{key:"extra"})]);return f?P.a.createElement(La.a,{ref:t,flex:1,style:u},b):b},Bu=Object(k.forwardRef)(zu);Bu.Meta=function(e){var t=e.prefixCls,n=e.className,r=e.avatar,o=e.title,i=e.description,a=Fu(e,["prefixCls","className","avatar","title","description"]),c=(0,Object(k.useContext)(dt.b).getPrefixCls)("list",t),u=O()("".concat(c,"-item-meta"),n),s=P.a.createElement("div",{className:"".concat(c,"-item-meta-content")},o&&P.a.createElement("h4",{className:"".concat(c,"-item-meta-title")},o),i&&P.a.createElement("div",{className:"".concat(c,"-item-meta-description")},i));return P.a.createElement("div",Object(m.a)({},a,{className:u}),r&&P.a.createElement("div",{className:"".concat(c,"-item-meta-avatar")},r),(o||i)&&s)};var Uu=Bu,Vu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Hu=k.createContext({});Hu.Consumer;function Gu(e){var t,n=e.pagination,r=void 0!==n&&n,o=e.prefixCls,i=e.bordered,a=void 0!==i&&i,c=e.split,u=void 0===c||c,s=e.className,l=e.children,f=e.itemLayout,p=e.loadMore,d=e.grid,h=e.dataSource,v=void 0===h?[]:h,b=e.size,w=e.header,_=e.footer,x=e.loading,E=void 0!==x&&x,S=e.rowKey,C=e.renderItem,j=e.locale,P=Vu(e,["pagination","prefixCls","bordered","split","className","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),T=r&&"object"===Object(M.a)(r)?r:{},A=k.useState(T.defaultCurrent||1),L=Object(g.a)(A,2),R=L[0],N=L[1],I=k.useState(T.defaultPageSize||10),D=Object(g.a)(I,2),F=D[0],z=D[1],B=k.useContext(dt.b),U=B.getPrefixCls,H=B.renderEmpty,G=B.direction,W={},Y=function(e){return function(t,n){N(t),z(n),r&&r[e]&&r[e](t,n)}},K=Y("onChange"),X=Y("onShowSizeChange"),q=U("list",o),Z=E;"boolean"==typeof Z&&(Z={spinning:Z});var J=Z&&Z.spinning,Q="";switch(b){case"large":Q="lg";break;case"small":Q="sm"}var $=O()(q,(t={},Object(y.a)(t,"".concat(q,"-vertical"),"vertical"===f),Object(y.a)(t,"".concat(q,"-").concat(Q),Q),Object(y.a)(t,"".concat(q,"-split"),u),Object(y.a)(t,"".concat(q,"-bordered"),a),Object(y.a)(t,"".concat(q,"-loading"),J),Object(y.a)(t,"".concat(q,"-grid"),!!d),Object(y.a)(t,"".concat(q,"-something-after-last-item"),!!(p||r||_)),Object(y.a)(t,"".concat(q,"-rtl"),"rtl"===G),t),s),ee=Object(m.a)(Object(m.a)(Object(m.a)({},{current:1,total:0}),{total:v.length,current:R,pageSize:F}),r||{}),te=Math.ceil(ee.total/ee.pageSize);ee.current>te&&(ee.current=te);var ne=r?k.createElement("div",{className:"".concat(q,"-pagination")},k.createElement(Tu,Object(m.a)({},ee,{onChange:K,onShowSizeChange:X}))):null,re=Object(V.a)(v);r&&v.length>(ee.current-1)*ee.pageSize&&(re=Object(V.a)(v).splice((ee.current-1)*ee.pageSize,ee.pageSize));var oe=Object.keys(d||{}).some((function(e){return["xs","sm","md","lg","xl","xxl"].includes(e)})),ie=Object(uu.a)(oe),ae=k.useMemo((function(){for(var e=0;e<Ri.b.length;e+=1){var t=Ri.b[e];if(ie[t])return t}}),[ie]),ce=k.useMemo((function(){if(d){var e=ae&&d[ae]?d[ae]:d.column;return e?{width:"".concat(100/e,"%"),maxWidth:"".concat(100/e,"%")}:void 0}}),[null==d?void 0:d.column,ae]),ue=J&&k.createElement("div",{style:{minHeight:53}});if(re.length>0){var se=re.map((function(e,t){return function(e,t){return C?((n="function"==typeof S?S(e):S?e[S]:e.key)||(n="list-item-".concat(t)),W[t]=n,C(e,t)):null;var n}(e,t)})),le=k.Children.map(se,(function(e,t){return k.createElement("div",{key:W[t],style:ce},e)}));ue=d?k.createElement(Ma.a,{gutter:d.gutter},le):k.createElement("ul",{className:"".concat(q,"-items")},se)}else l||J||(ue=function(e,t){return k.createElement("div",{className:"".concat(e,"-empty-text")},j&&j.emptyText||t("List"))}(q,H||zo.a));var fe=ee.position||"bottom",pe=k.useMemo((function(){return{grid:d,itemLayout:f}}),[JSON.stringify(d),f]);return k.createElement(Hu.Provider,{value:pe},k.createElement("div",Object(m.a)({className:$},P),("top"===fe||"both"===fe)&&ne,w&&k.createElement("div",{className:"".concat(q,"-header")},w),k.createElement(Du,Object(m.a)({},Z),ue,l),_&&k.createElement("div",{className:"".concat(q,"-footer")},_),p||("bottom"===fe||"both"===fe)&&ne))}Gu.Item=Uu;var Wu=Gu,Yu=n("UfwH"),Ku=n("1j5w"),Xu=k.createContext(null);var qu=function(e){var t=k.useContext(Xu),n=t.notFoundContent,r=t.activeIndex,o=t.setActiveIndex,i=t.selectOption,a=t.onFocus,c=t.onBlur,u=e.prefixCls,s=e.options,l=s[r]||{};return k.createElement(Ku.g,{prefixCls:"".concat(u,"-menu"),activeKey:l.key,onSelect:function(e){var t=e.key,n=s.find((function(e){return e.key===t}));i(n)},onFocus:a,onBlur:c},s.map((function(e,t){var n=e.key,r=e.disabled,i=e.children,a=e.className,c=e.style;return k.createElement(Ku.d,{key:n,disabled:r,className:a,style:c,onMouseEnter:function(){o(t)}},i)})),!s.length&&k.createElement(Ku.d,{disabled:!0},n))},Zu={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},Ju=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;return Object(x.a)(this,n),(e=t.apply(this,arguments)).getDropdownPrefix=function(){return"".concat(e.props.prefixCls,"-dropdown")},e.getDropdownElement=function(){var t=e.props.options;return k.createElement(qu,{prefixCls:e.getDropdownPrefix(),options:t})},e.getDropDownPlacement=function(){var t=e.props,n=t.placement;return"rtl"===t.direction?"top"===n?"topLeft":"bottomLeft":"top"===n?"topRight":"bottomRight"},e}return Object(E.a)(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transitionName,o=e.getPopupContainer,i=this.getDropdownElement();return k.createElement(qe.a,{prefixCls:this.getDropdownPrefix(),popupVisible:n,popup:i,popupPlacement:this.getDropDownPlacement(),popupTransitionName:r,builtinPlacements:Zu,getPopupContainer:o,popupClassName:this.props.dropdownClassName},t)}}]),n}(k.Component),Qu=function(){return null};function $u(e){return(e||"").toLowerCase()}function es(e,t){var n=t.measureLocation,r=t.prefix,o=t.targetText,i=t.selectionStart,a=t.split,c=e.slice(0,n);c[c.length-a.length]===a&&(c=c.slice(0,c.length-a.length)),c&&(c="".concat(c).concat(a));var u=function(e,t,n){var r=e[0];if(!r||r===n)return e;for(var o=e,i=t.length,a=0;a<i;a+=1){if($u(o[a])!==$u(t[a])){o=o.slice(a);break}a===i-1&&(o=o.slice(i))}return o}(e.slice(i),o.slice(i-n-r.length),a);u.slice(0,a.length)===a&&(u=u.slice(a.length));var s="".concat(c).concat(r).concat(o).concat(a);return{text:"".concat(s).concat(u),selectionLocation:s.length}}var ts=P.a.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.prefix,a=e.split,c=e.notFoundContent,u=e.value,s=e.defaultValue,l=e.children,f=e.open,p=e.validateSearch,d=e.filterOption,h=e.onChange,v=e.onKeyDown,y=e.onKeyUp,b=e.onPressEnter,w=e.onSearch,_=e.onSelect,x=e.onFocus,E=e.onBlur,S=e.transitionName,C=e.placement,M=e.direction,L=e.getPopupContainer,R=e.dropdownClassName,N=Object(Rt.a)(e,["prefixCls","className","style","prefix","split","notFoundContent","value","defaultValue","children","open","validateSearch","filterOption","onChange","onKeyDown","onKeyUp","onPressEnter","onSearch","onSelect","onFocus","onBlur","transitionName","placement","direction","getPopupContainer","dropdownClassName"]),I=Array.isArray(i)?i:[i],D=Object(j.a)(Object(j.a)({},e),{},{prefix:I}),F=Object(k.useRef)(null),z=Object(k.useRef)(null),B=function(){var e,t;return null===(e=F.current)||void 0===e||null===(t=e.resizableTextArea)||void 0===t?void 0:t.textArea};P.a.useImperativeHandle(t,(function(){return{focus:function(){var e;return null===(e=F.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=F.current)||void 0===e?void 0:e.blur()}}}));var U=Object(k.useState)(!1),V=Object(g.a)(U,2),H=V[0],G=V[1],W=Object(k.useState)(""),Y=Object(g.a)(W,2),K=Y[0],X=Y[1],q=Object(k.useState)(""),Z=Object(g.a)(q,2),J=Z[0],Q=Z[1],$=Object(k.useState)(0),ee=Object(g.a)($,2),te=ee[0],ne=ee[1],re=Object(k.useState)(0),oe=Object(g.a)(re,2),ie=oe[0],ae=oe[1],ce=Object(k.useState)(!1),ue=Object(g.a)(ce,2),se=ue[0],le=ue[1],fe=Object(T.a)("",{defaultValue:s,value:u}),pe=Object(g.a)(fe,2),de=pe[0],he=pe[1];Object(k.useEffect)((function(){H&&z.current&&(z.current.scrollTop=B().scrollTop)}),[H]);var ve=P.a.useMemo((function(){if(f){0;for(var e=0;e<I.length;e+=1){var t=I[e],n=de.lastIndexOf(t);if(n>=0)return[!0,"",t,n]}}return[H,K,J,te]}),[f,H,I,de,K,J,te]),ye=Object(g.a)(ve,4),me=ye[0],ge=ye[1],be=ye[2],Oe=ye[3],we=P.a.useCallback((function(e){return Object(Nt.a)(l).map((function(e){var t=e.props,n=e.key;return Object(j.a)(Object(j.a)({},t),{},{key:n||t.value})})).filter((function(t){return!1===d||d(e,t)}))}),[l,d]),_e=P.a.useMemo((function(){return we(ge)}),[we,ge]),xe=function(){var e=Object(k.useState)({id:0,callback:null}),t=Object(g.a)(e,2),n=t[0],r=t[1],o=Object(k.useCallback)((function(e){r((function(t){return{id:t.id+1,callback:e}}))}),[]);return Object(k.useEffect)((function(){var e;null===(e=n.callback)||void 0===e||e.call(n)}),[n]),o}(),Ee=function(e){G(!1),ne(0),X(""),xe(e)},Se=function(e){he(e),null==h||h(e)},Ce=function(e){var t,n=e.value,r=es(de,{measureLocation:Oe,targetText:void 0===n?"":n,prefix:be,selectionStart:null===(t=B())||void 0===t?void 0:t.selectionStart,split:a}),o=r.text,i=r.selectionLocation;Se(o),Ee((function(){!function(e,t){e.setSelectionRange(t,t),e.blur(),e.focus()}(B(),i)})),null==_||_(e,be)},je=Object(k.useRef)(),ke=function(e){window.clearTimeout(je.current),!se&&e&&x&&x(e),le(!0)},Pe=function(e){je.current=window.setTimeout((function(){le(!1),Ee(),null==E||E(e)}),0)};return P.a.createElement("div",{className:O()(n,r),style:o},P.a.createElement(Yu.a,Object(m.a)({ref:F,value:de},N,{onChange:function(e){var t=e.target.value;Se(t)},onKeyDown:function(e){var t=e.which;if(null==v||v(e),me)if(t===A.a.UP||t===A.a.DOWN){var n=_e.length,r=t===A.a.UP?-1:1;ae((ie+r+n)%n),e.preventDefault()}else if(t===A.a.ESC)Ee();else if(t===A.a.ENTER){if(e.preventDefault(),!_e.length)return void Ee();var o=_e[ie];Ce(o)}},onKeyUp:function(e){var t,n,r=e.key,o=e.which,i=e.target,a=(n=(t=i).selectionStart,t.value.slice(0,n)),c=function(e,t){return t.reduce((function(t,n){var r=e.lastIndexOf(n);return r>t.location?{location:r,prefix:n}:t}),{location:-1,prefix:""})}(a,I),u=c.location,s=c.prefix;if(null==y||y(e),-1===[A.a.ESC,A.a.UP,A.a.DOWN,A.a.ENTER].indexOf(o))if(-1!==u){var l=a.slice(u+s.length),f=p(l,D),d=!!we(l).length;f?(r===s||"Shift"===r||me||l!==ge&&d)&&function(e,t,n){G(!0),X(e),Q(t),ne(n),ae(0)}(l,s,u):me&&Ee(),w&&f&&w(l,s)}else me&&Ee()},onPressEnter:function(e){!me&&b&&b(e)},onFocus:ke,onBlur:Pe})),me&&P.a.createElement("div",{ref:z,className:"".concat(n,"-measure")},de.slice(0,Oe),P.a.createElement(Xu.Provider,{value:{notFoundContent:c,activeIndex:ie,setActiveIndex:ae,selectOption:Ce,onFocus:function(){ke()},onBlur:function(){Pe()}}},P.a.createElement(Ju,{prefixCls:n,transitionName:S,placement:C,direction:M,options:_e,visible:!0,getPopupContainer:L,dropdownClassName:R},P.a.createElement("span",null,be))),de.slice(Oe+be.length)))}));ts.defaultProps={prefixCls:"rc-mentions",prefix:"@",split:" ",validateSearch:function(e,t){var n=t.split;return!n||-1===e.indexOf(n)},filterOption:function(e,t){var n=t.value,r=void 0===n?"":n,o=e.toLowerCase();return-1!==r.toLowerCase().indexOf(o)},notFoundContent:"Not Found",rows:1},ts.Option=Qu;var ns=ts,rs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},os=ns.Option;function is(){return!0}var as=function(e,t){var n,r=e.prefixCls,o=e.className,i=e.disabled,a=e.loading,c=e.filterOption,u=e.children,s=e.notFoundContent,l=e.status,f=rs(e,["prefixCls","className","disabled","loading","filterOption","children","notFoundContent","status"]),p=k.useState(!1),d=Object(g.a)(p,2),h=d[0],v=d[1],b=k.useRef(),w=Object(Ca.a)(t,b),_=k.useContext(dt.b),x=_.getPrefixCls,E=_.renderEmpty,S=_.direction,C=k.useContext(vt.b),j=C.status,P=C.hasFeedback,T=C.feedbackIcon,M=Object(Ho.a)(j,l),A=x("mentions",r),L=O()((n={},Object(y.a)(n,"".concat(A,"-disabled"),i),Object(y.a)(n,"".concat(A,"-focused"),h),Object(y.a)(n,"".concat(A,"-rtl"),"rtl"===S),n),Object(Ho.b)(A,M),!P&&o),R=k.createElement(ns,Object(m.a)({prefixCls:A,notFoundContent:void 0!==s?s:(E||zo.a)("Select"),className:L,disabled:i,direction:S},f,{filterOption:a?is:c,onFocus:function(){f.onFocus&&f.onFocus.apply(f,arguments),v(!0)},onBlur:function(){f.onBlur&&f.onBlur.apply(f,arguments),v(!1)},ref:w}),a?k.createElement(os,{value:"ANTD_SEARCHING",disabled:!0},k.createElement(Du,{size:"small"})):u);return P?k.createElement("div",{className:O()("".concat(A,"-affix-wrapper"),Object(Ho.b)("".concat(A,"-affix-wrapper"),M,P),o)},R,k.createElement("span",{className:"".concat(A,"-suffix")},T)):R},cs=k.forwardRef(as);cs.Option=os,cs.getMentions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,r=void 0===n?"@":n,o=t.split,i=void 0===o?" ":o,a=Array.isArray(r)?r:[r];return e.split(i).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;return a.some((function(n){return e.slice(0,n.length)===n&&(t=n,!0)})),null!==t?{prefix:t,value:e.slice(t.length)}:null})).filter((function(e){return!!e&&!!e.value}))};var us=cs,ss=n("BvKs"),ls=n("tsqr"),fs=n("kLXV"),ps=n("TeRw"),ds=n("bf48"),hs=n("diRs"),vs=n("zvFY"),ys=n("lkze"),ms=n("bogI");function gs(e){var t=e.prefixCls,n=e.okButtonProps,r=e.cancelButtonProps,o=e.title,i=e.cancelText,a=e.okText,c=e.okType,u=e.icon,s=e.showCancel,l=void 0===s||s,p=e.close,d=e.onConfirm,h=e.onCancel,v=k.useContext(dt.b).getPrefixCls;return k.createElement(ht.a,{componentName:"Popconfirm",defaultLocale:Ra.a.Popconfirm},(function(e){return k.createElement("div",{className:"".concat(t,"-inner-content")},k.createElement("div",{className:"".concat(t,"-message")},u,k.createElement("div",{className:"".concat(t,"-message-title")},Object(ms.a)(o))),k.createElement("div",{className:"".concat(t,"-buttons")},l&&k.createElement(f.a,Object(m.a)({onClick:h,size:"small"},r),i||e.cancelText),k.createElement(ys.a,{buttonProps:Object(m.a)(Object(m.a)({size:"small"},Object(vs.a)(c)),n),actionFn:d,close:p,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},a||e.okText)))}))}var bs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Os=k.forwardRef((function(e,t){var n=k.useContext(dt.b).getPrefixCls,r=Object(T.a)(!1,{value:e.visible,defaultValue:e.defaultVisible}),o=Object(g.a)(r,2),i=o[0],a=o[1],c=function(t,n){var r;a(t,!0),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t,n)},u=e.prefixCls,s=e.placement,l=e.children,f=e.overlayClassName,p=bs(e,["prefixCls","placement","children","overlayClassName"]),d=n("popover",u),h=n("popconfirm",u),v=O()(h,f);return k.createElement(hs.a,Object(m.a)({},p,{prefixCls:d,placement:s,onVisibleChange:function(t){e.disabled||c(t)},visible:i,_overlay:k.createElement(gs,Object(m.a)({},e,{prefixCls:d,close:function(e){c(!1,e)},onConfirm:function(t){var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:function(t){var n;c(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),overlayClassName:v,ref:t}),Object(Li.a)(l,{onKeyDown:function(e){var t,n;k.isValidElement(l)&&(null===(n=null==l?void 0:(t=l.props).onKeyDown)||void 0===n||n.call(t,e)),function(e){e.keyCode===A.a.ESC&&i&&c(!1,e)}(e)}}))}));Os.defaultProps={placement:"top",trigger:"click",okType:"primary",icon:k.createElement(Pa.a,null),disabled:!1};var ws=Os,_s=n("Szl1"),xs=n("fuOX"),Es={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ss=function(){var e=Object(k.useRef)([]),t=Object(k.useRef)(null);return Object(k.useEffect)((function(){var n=Date.now(),r=!1;e.current.forEach((function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(o.transitionDuration="0s, 0s")}})),r&&(t.current=Date.now())})),e.current},Cs=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],js=function(e){var t=e.className,n=e.percent,r=e.prefixCls,o=e.strokeColor,i=e.strokeLinecap,a=e.strokeWidth,c=e.style,u=e.trailColor,s=e.trailWidth,l=e.transition,f=Object(Rt.a)(e,Cs);delete f.gapPosition;var p=Array.isArray(n)?n:[n],d=Array.isArray(o)?o:[o],h=Ss(),v=a/2,y=100-a/2,g="M ".concat("round"===i?v:0,",").concat(v,"\n L ").concat("round"===i?y:100,",").concat(v),b="0 0 100 ".concat(a),w=0;return k.createElement("svg",Object(m.a)({className:O()("".concat(r,"-line"),t),viewBox:b,preserveAspectRatio:"none",style:c},f),k.createElement("path",{className:"".concat(r,"-line-trail"),d:g,strokeLinecap:i,stroke:u,strokeWidth:s||a,fillOpacity:"0"}),p.map((function(e,t){var n=1;switch(i){case"round":n=1-a/100;break;case"square":n=1-a/2/100;break;default:n=1}var o={strokeDasharray:"".concat(e*n,"px, 100px"),strokeDashoffset:"-".concat(w,"px"),transition:l||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},c=d[t]||d[d.length-1];return w+=e,k.createElement("path",{key:t,className:"".concat(r,"-line-path"),d:g,strokeLinecap:i,stroke:c,strokeWidth:a,fillOpacity:"0",ref:function(e){h[t]=e},style:o})})))};js.defaultProps=Es,js.displayName="Line";var ks=n("3yBb"),Ps=0,Ts=Object(ks.a)();var Ms=function(e){var t=k.useState(),n=Object(g.a)(t,2),r=n[0],o=n[1];return k.useEffect((function(){var e;o("rc_progress_".concat((Ts?(e=Ps,Ps+=1):e="TEST_OR_SSR",e)))}),[]),e||r},As=["id","prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ls(e){return+e.replace("%","")}function Rs(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var Ns=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=o>0?90+o/2:-90,s=2*Math.PI*e,l=s*((360-o)/360),f=t/100*360*((360-o)/360),p=0===o?0:{bottom:0,top:180,left:90,right:-90}[i],d=(100-n)/100*l;return"round"===a&&100!==n&&(d+=c/2)>=l&&(d=l-.01),{stroke:"string"==typeof r?r:void 0,strokeDasharray:"".concat(l,"px ").concat(s),strokeDashoffset:d,transform:"rotate(".concat(u+f+p,"deg)"),transformOrigin:"50% 50%",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Is=function(e){var t,n=e.id,r=e.prefixCls,o=e.strokeWidth,i=e.trailWidth,a=e.gapDegree,c=e.gapPosition,u=e.trailColor,s=e.strokeLinecap,l=e.style,f=e.className,p=e.strokeColor,d=e.percent,h=Object(Rt.a)(e,As),v=Ms(n),y="".concat(v,"-gradient"),g=50-o/2,b=Ns(g,0,100,u,a,c,s,o),w=Rs(d),_=Rs(p),x=_.find((function(e){return e&&"object"===Object(M.a)(e)})),E=Ss();return k.createElement("svg",Object(m.a)({className:O()("".concat(r,"-circle"),f),viewBox:"0 0 ".concat(100," ").concat(100),style:l,id:n},h),x&&k.createElement("defs",null,k.createElement("linearGradient",{id:y,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(x).sort((function(e,t){return Ls(e)-Ls(t)})).map((function(e,t){return k.createElement("stop",{key:t,offset:e,stopColor:x[e]})})))),k.createElement("circle",{className:"".concat(r,"-circle-trail"),r:g,cx:50,cy:50,stroke:u,strokeLinecap:s,strokeWidth:i||o,style:b}),(t=0,w.map((function(e,n){var i=_[n]||_[_.length-1],u=i&&"object"===Object(M.a)(i)?"url(#".concat(y,")"):void 0,l=Ns(g,t,e,i,a,c,s,o);return t+=e,k.createElement("circle",{key:n,className:"".concat(r,"-circle-path"),r:g,cx:50,cy:50,stroke:u,strokeLinecap:s,strokeWidth:o,opacity:0===e?0:1,style:l,ref:function(e){E[n]=e}})})).reverse()))};Is.defaultProps=Es,Is.displayName="Circle";var Ds=Is;function Fs(e){return!e||e<0?0:e>100?100:e}function zs(e){var t=e.success,n=e.successPercent;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}var Bs=function(e){var t,n,r,o=e.prefixCls,i=e.width,a=e.strokeWidth,c=e.trailColor,u=void 0===c?null:c,s=e.strokeLinecap,l=void 0===s?"round":s,f=e.gapPosition,p=e.gapDegree,d=e.type,h=e.children,v=e.success,m=i||120,g={width:m,height:m,fontSize:.15*m+6},b=a||6,w=f||"dashboard"===d&&"bottom"||void 0,_="[object Object]"===Object.prototype.toString.call(e.strokeColor),x=function(e){var t=e.success,n=void 0===t?{}:t,r=e.strokeColor;return[n.strokeColor||xs.b.green,r||null]}({success:v,strokeColor:e.strokeColor}),E=O()("".concat(o,"-inner"),Object(y.a)({},"".concat(o,"-circle-gradient"),_));return k.createElement("div",{className:E,style:g},k.createElement(Ds,{percent:(t=e,n=t.percent,r=Fs(zs({success:t.success,successPercent:t.successPercent})),[r,Fs(Fs(n)-r)]),strokeWidth:b,trailWidth:b,strokeColor:x,strokeLinecap:l,trailColor:u,prefixCls:o,gapDegree:p||0===p?p:"dashboard"===d?75:void 0,gapPosition:w}),h)},Us=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Vs=function(e,t){var n,r,o=e.from,i=void 0===o?xs.b.blue:o,a=e.to,c=void 0===a?xs.b.blue:a,u=e.direction,s=void 0===u?"rtl"===t?"to left":"to right":u,l=Us(e,["from","to","direction"]);if(0!==Object.keys(l).length){var f=(n=l,r=[],Object.keys(n).forEach((function(e){var t=parseFloat(e.replace(/%/g,""));isNaN(t)||r.push({key:t,value:n[e]})})),(r=r.sort((function(e,t){return e.key-t.key}))).map((function(e){var t=e.key,n=e.value;return"".concat(n," ").concat(t,"%")})).join(", "));return{backgroundImage:"linear-gradient(".concat(s,", ").concat(f,")")}}return{backgroundImage:"linear-gradient(".concat(s,", ").concat(i,", ").concat(c,")")}},Hs=function(e){var t=e.prefixCls,n=e.direction,r=e.percent,o=e.strokeWidth,i=e.size,a=e.strokeColor,c=e.strokeLinecap,u=void 0===c?"round":c,s=e.children,l=e.trailColor,f=void 0===l?null:l,p=e.success,d=a&&"string"!=typeof a?Vs(a,n):{background:a},h="square"===u||"butt"===u?0:void 0,v={backgroundColor:f||void 0,borderRadius:h},y=Object(m.a)({width:"".concat(Fs(r),"%"),height:o||("small"===i?6:8),borderRadius:h},d),g=zs(e),b={width:"".concat(Fs(g),"%"),height:o||("small"===i?6:8),borderRadius:h,backgroundColor:null==p?void 0:p.strokeColor},O=void 0!==g?k.createElement("div",{className:"".concat(t,"-success-bg"),style:b}):null;return k.createElement(k.Fragment,null,k.createElement("div",{className:"".concat(t,"-outer")},k.createElement("div",{className:"".concat(t,"-inner"),style:v},k.createElement("div",{className:"".concat(t,"-bg"),style:y}),O)),s)},Gs=function(e){for(var t=e.size,n=e.steps,r=e.percent,o=void 0===r?0:r,i=e.strokeWidth,a=void 0===i?8:i,c=e.strokeColor,u=e.trailColor,s=void 0===u?null:u,l=e.prefixCls,f=e.children,p=Math.round(n*(o/100)),d="small"===t?2:14,h=new Array(n),v=0;v<n;v++){var m=Array.isArray(c)?c[v]:c;h[v]=k.createElement("div",{key:v,className:O()("".concat(l,"-steps-item"),Object(y.a)({},"".concat(l,"-steps-item-active"),v<=p-1)),style:{backgroundColor:v<=p-1?m:s,width:d,height:a}})}return k.createElement("div",{className:"".concat(l,"-steps-outer")},h,f)},Ws=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ys=(Object(pi.a)("line","circle","dashboard"),Object(pi.a)("normal","exception","active","success")),Ks=function(e){var t,n=e.prefixCls,r=e.className,o=e.steps,i=e.strokeColor,a=e.percent,c=void 0===a?0:a,u=e.size,s=void 0===u?"default":u,l=e.showInfo,f=void 0===l||l,p=e.type,d=void 0===p?"line":p,h=Ws(e,["prefixCls","className","steps","strokeColor","percent","size","showInfo","type"]);var v,g,b,w=k.useContext(dt.b),_=w.getPrefixCls,x=w.direction,E=_("progress",n),S=(g=e.status,Ys.indexOf(g)<0&&(v=zs(e),parseInt(void 0!==v?v.toString():c.toString(),10)>=100)?"success":g||"normal"),C=function(t,n){var r,o=e.format,i=zs(e);if(!f)return null;var a="line"===d;return o||"exception"!==n&&"success"!==n?r=(o||function(e){return"".concat(e,"%")})(Fs(c),Fs(i)):"exception"===n?r=a?k.createElement(Oi.a,null):k.createElement(kt.a,null):"success"===n&&(r=a?k.createElement(ka.a,null):k.createElement(_s.a,null)),k.createElement("span",{className:"".concat(t,"-text"),title:"string"==typeof r?r:void 0},r)}(E,S),j=Array.isArray(i)?i[0]:i,P="string"==typeof i||Array.isArray(i)?i:void 0;"line"===d?b=o?k.createElement(Gs,Object(m.a)({},e,{strokeColor:P,prefixCls:E,steps:o}),C):k.createElement(Hs,Object(m.a)({},e,{strokeColor:j,prefixCls:E,direction:x}),C):"circle"!==d&&"dashboard"!==d||(b=k.createElement(Bs,Object(m.a)({},e,{strokeColor:j,prefixCls:E,progressStatus:S}),C));var T=O()(E,(t={},Object(y.a)(t,"".concat(E,"-").concat(("dashboard"===d?"circle":o&&"steps")||d),!0),Object(y.a)(t,"".concat(E,"-status-").concat(S),!0),Object(y.a)(t,"".concat(E,"-show-info"),f),Object(y.a)(t,"".concat(E,"-").concat(s),s),Object(y.a)(t,"".concat(E,"-rtl"),"rtl"===x),t),r);return k.createElement("div",Object(m.a)({},Object(St.a)(h,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"]),{className:T}),b)},Xs=n("9yH6"),qs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Zs=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:qs}))};Zs.displayName="StarFilled";var Js=k.forwardRef(Zs),Qs=n("uO0T");var $s=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;Object(x.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).onHover=function(t){var n=e.props;(0,n.onHover)(t,n.index)},e.onClick=function(t){var n=e.props;(0,n.onClick)(t,n.index)},e.onKeyDown=function(t){var n=e.props,r=n.onClick,o=n.index;13===t.keyCode&&r(t,o)},e}return Object(E.a)(n,[{key:"getClassName",value:function(){var e=this.props,t=e.prefixCls,n=e.index,r=e.value,o=e.allowHalf,i=e.focused,a=n+1,c=t;return 0===r&&0===n&&i?c+=" ".concat(t,"-focused"):o&&r+.5>=a&&r<a?(c+=" ".concat(t,"-half ").concat(t,"-active"),i&&(c+=" ".concat(t,"-focused"))):(c+=" ".concat(t,a<=r?"-full":"-zero"),a===r&&i&&(c+=" ".concat(t,"-focused"))),c}},{key:"render",value:function(){var e=this.onHover,t=this.onClick,n=this.onKeyDown,r=this.props,o=r.disabled,i=r.prefixCls,a=r.character,c=r.characterRender,u=r.index,s=r.count,l=r.value,f="function"==typeof a?a(this.props):a,p=P.a.createElement("li",{className:this.getClassName()},P.a.createElement("div",{onClick:o?null:t,onKeyDown:o?null:n,onMouseMove:o?null:e,role:"radio","aria-checked":l>u?"true":"false","aria-posinset":u+1,"aria-setsize":s,tabIndex:o?-1:0},P.a.createElement("div",{className:"".concat(i,"-first")},f),P.a.createElement("div",{className:"".concat(i,"-second")},f)));return c&&(p=c(p,this.props)),p}}]),n}(P.a.Component);function el(){}var tl=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(e){var r;Object(x.a)(this,n),(r=t.call(this,e)).stars=void 0,r.rate=void 0,r.onHover=function(e,t){var n=r.props.onHoverChange,o=r.getStarValue(t,e.pageX);o!==r.state.cleanedValue&&r.setState({hoverValue:o,cleanedValue:null}),n(o)},r.onMouseLeave=function(){var e=r.props.onHoverChange;r.setState({hoverValue:void 0,cleanedValue:null}),e(void 0)},r.onClick=function(e,t){var n=r.props.allowClear,o=r.state.value,i=r.getStarValue(t,e.pageX),a=!1;n&&(a=i===o),r.onMouseLeave(),r.changeValue(a?0:i),r.setState({cleanedValue:a?i:null})},r.onFocus=function(){var e=r.props.onFocus;r.setState({focused:!0}),e&&e()},r.onBlur=function(){var e=r.props.onBlur;r.setState({focused:!1}),e&&e()},r.onKeyDown=function(e){var t=e.keyCode,n=r.props,o=n.count,i=n.allowHalf,a=n.onKeyDown,c="rtl"===n.direction,u=r.state.value;t===A.a.RIGHT&&u<o&&!c?(u+=i?.5:1,r.changeValue(u),e.preventDefault()):t===A.a.LEFT&&u>0&&!c||t===A.a.RIGHT&&u>0&&c?(u-=i?.5:1,r.changeValue(u),e.preventDefault()):t===A.a.LEFT&&u<o&&c&&(u+=i?.5:1,r.changeValue(u),e.preventDefault()),a&&a(e)},r.saveRef=function(e){return function(t){r.stars[e]=t}},r.saveRate=function(e){r.rate=e};var o=e.value;return void 0===o&&(o=e.defaultValue),r.stars={},r.state={value:o,focused:!1,cleanedValue:null},r}return Object(E.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"getStarDOM",value:function(e){return Object(Qs.a)(this.stars[e])}},{key:"getStarValue",value:function(e,t){var n,r,o,i,a=this.props,c=a.allowHalf,u="rtl"===a.direction,s=e+1;if(c){var l=this.getStarDOM(e),f=(r=function(e){var t,n,r=e.ownerDocument,o=r.body,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,{left:t-=i.clientLeft||o.clientLeft||0,top:n-=i.clientTop||o.clientTop||0}}(n=l),o=n.ownerDocument,i=o.defaultView||o.parentWindow,r.left+=function(e){var t=e.pageXOffset;if("number"!=typeof t){var n=e.document;"number"!=typeof(t=n.documentElement.scrollLeft)&&(t=n.body.scrollLeft)}return t}(i),r.left),p=l.clientWidth;(u&&t-f>p/2||!u&&t-f<p/2)&&(s-=.5)}return s}},{key:"focus",value:function(){this.props.disabled||this.rate.focus()}},{key:"blur",value:function(){this.props.disabled||this.rate.blur()}},{key:"changeValue",value:function(e){var t=this.props.onChange;"value"in this.props||this.setState({value:e}),t(e)}},{key:"render",value:function(){for(var e=this.props,t=e.count,n=e.allowHalf,r=e.style,o=e.prefixCls,i=e.disabled,a=e.className,c=e.character,u=e.characterRender,s=e.tabIndex,l=e.direction,f=this.state,p=f.value,d=f.hoverValue,h=f.focused,v=[],m=i?"".concat(o,"-disabled"):"",g=0;g<t;g+=1)v.push(P.a.createElement($s,{ref:this.saveRef(g),index:g,count:t,disabled:i,prefixCls:"".concat(o,"-star"),allowHalf:n,value:void 0===d?p:d,onClick:this.onClick,onHover:this.onHover,key:g,character:c,characterRender:u,focused:h}));var b=O()(o,m,a,Object(y.a)({},"".concat(o,"-rtl"),"rtl"===l));return P.a.createElement("ul",{className:b,style:r,onMouseLeave:i?null:this.onMouseLeave,tabIndex:i?-1:s,onFocus:i?null:this.onFocus,onBlur:i?null:this.onBlur,onKeyDown:i?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},v)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"value"in e&&void 0!==e.value?Object(j.a)(Object(j.a)({},t),{},{value:e.value}):t}}]),n}(P.a.Component);tl.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:el,character:"★",onHoverChange:el,tabIndex:0,direction:"ltr"};var nl=tl,rl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ol=k.forwardRef((function(e,t){var n=e.prefixCls,r=e.tooltips,o=rl(e,["prefixCls","tooltips"]),i=k.useContext(dt.b),a=i.getPrefixCls,c=i.direction,u=a("rate",n);return k.createElement(nl,Object(m.a)({ref:t,characterRender:function(e,t){var n=t.index;return r?k.createElement(Na.a,{title:r[n]},e):e}},o,{prefixCls:u,direction:c}))}));ol.defaultProps={character:k.createElement(Js,null)};var il=ol,al=n("MoRW"),cl=n("BMrR"),ul=function(e){return e?{left:e.offsetLeft,width:e.clientWidth}:null},sl=function(e){return void 0!==e?"".concat(e,"px"):void 0};function ll(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,i=e.motionName,a=e.onMotionStart,c=e.onMotionEnd,u=k.useRef(null),s=k.useState(r),l=Object(g.a)(s,2),f=l[0],p=l[1],d=function(e){var r,i=o(e);return null===(r=n.current)||void 0===r?void 0:r.querySelectorAll(".".concat(t,"-item"))[i]},h=k.useState(null),v=Object(g.a)(h,2),y=v[0],m=v[1],b=k.useState(null),w=Object(g.a)(b,2),_=w[0],x=w[1];Object(Ta.a)((function(){if(f!==r){var e=d(f),t=d(r),n=ul(e),o=ul(t);p(r),m(n),x(o),e&&t?a():c()}}),[r]);return y&&_?k.createElement(Pn.b,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onAppearEnd:function(){m(null),x(null),c()}},(function(e,n){var r=e.className,o=e.style,i=Object(j.a)(Object(j.a)({},o),{},{"--thumb-start-left":sl(null==y?void 0:y.left),"--thumb-start-width":sl(null==y?void 0:y.width),"--thumb-active-left":sl(null==_?void 0:_.left),"--thumb-active-width":sl(null==_?void 0:_.width)}),a={ref:Object(Ca.a)(u,n),style:i,className:O()("".concat(t,"-thumb"),r)};return k.createElement("div",Object(j.a)({},a))})):null}var fl=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function pl(e){return e.map((function(e){if("object"===Object(M.a)(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==Object(M.a)(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return Object(j.a)(Object(j.a)({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}var dl=function(e){var t=e.prefixCls,n=e.className,r=e.disabled,o=e.checked,i=e.label,a=e.title,c=e.value,u=e.onChange;return k.createElement("label",{className:O()(n,Object(y.a)({},"".concat(t,"-item-disabled"),r))},k.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:r,checked:o,onChange:function(e){r||u(e,c)}}),k.createElement("div",{className:"".concat(t,"-item-label"),title:a},i))},hl=k.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=void 0===o?"rc-segmented":o,a=e.direction,c=e.options,u=e.disabled,s=e.defaultValue,l=e.value,f=e.onChange,p=e.className,d=void 0===p?"":p,h=e.motionName,v=void 0===h?"thumb-motion":h,m=Object(Rt.a)(e,fl),b=k.useRef(null),w=k.useMemo((function(){return Object(Ca.a)(b,t)}),[b,t]),_=k.useMemo((function(){return pl(c)}),[c]),x=Object(T.a)(null===(n=_[0])||void 0===n?void 0:n.value,{value:l,defaultValue:s}),E=Object(g.a)(x,2),S=E[0],C=E[1],P=k.useState(!1),M=Object(g.a)(P,2),A=M[0],L=M[1],R=function(e,t){u||(C(t),null==f||f(t))},N=Object(St.a)(m,["children"]);return k.createElement("div",Object(j.a)(Object(j.a)({},N),{},{className:O()(i,(r={},Object(y.a)(r,"".concat(i,"-rtl"),"rtl"===a),Object(y.a)(r,"".concat(i,"-disabled"),u),r),d),ref:w}),k.createElement("div",{className:"".concat(i,"-group")},k.createElement(ll,{prefixCls:i,value:S,containerRef:b,motionName:"".concat(i,"-").concat(v),getValueIndex:function(e){return _.findIndex((function(t){return t.value===e}))},onMotionStart:function(){L(!0)},onMotionEnd:function(){L(!1)}}),_.map((function(e){return k.createElement(dl,Object(j.a)(Object(j.a)({key:e.value,prefixCls:i,className:O()(e.className,"".concat(i,"-item"),Object(y.a)({},"".concat(i,"-item-selected"),e.value===S&&!A)),checked:e.value===S,onChange:R},e),{},{disabled:!!u||!!e.disabled}))}))))}));hl.displayName="Segmented",hl.defaultProps={options:[]};var vl=hl,yl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var ml=k.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.className,i=e.block,a=e.options,c=e.size,u=void 0===c?"middle":c,s=yl(e,["prefixCls","className","block","options","size"]),l=k.useContext(dt.b),f=l.getPrefixCls,p=l.direction,d=f("segmented",r),h=k.useContext(Ct.b),v=u||h,g=k.useMemo((function(){return a.map((function(e){if(function(e){return"object"===Object(M.a)(e)&&!!(null==e?void 0:e.icon)}(e)){var t=e.icon,n=e.label,r=yl(e,["icon","label"]);return Object(m.a)(Object(m.a)({},r),{label:k.createElement(k.Fragment,null,k.createElement("span",{className:"".concat(d,"-item-icon")},t),n&&k.createElement("span",null,n))})}return e}))}),[a,d]);return k.createElement(vl,Object(m.a)({},s,{className:O()(o,(n={},Object(y.a)(n,"".concat(d,"-block"),i),Object(y.a)(n,"".concat(d,"-sm"),"small"===v),Object(y.a)(n,"".concat(d,"-lg"),"large"===v),n)),options:g,ref:t,prefixCls:d,direction:p}))}));ml.defaultProps={options:[]};var gl=ml,bl=k.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0});function Ol(e,t,n){return(e-t)/(n-t)}function wl(e,t,n,r){var o=Ol(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function _l(e,t){return Array.isArray(e)?e[t]:e}var xl=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"];var El=k.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,c=e.onStartMove,u=e.style,s=e.render,l=e.dragging,f=e.onOffsetChange,p=Object(Rt.a)(e,xl),d=k.useContext(bl),h=d.min,v=d.max,g=d.direction,b=d.disabled,w=d.range,_=d.tabIndex,x=d.ariaLabelForHandle,E=d.ariaLabelledByForHandle,S=d.ariaValueTextFormatterForHandle,C="".concat(o,"-handle"),P=function(e){b||c(e,a)},T=wl(g,i,h,v),M=k.createElement("div",Object(m.a)({ref:t,className:O()(C,(n={},Object(y.a)(n,"".concat(C,"-").concat(a+1),w),Object(y.a)(n,"".concat(C,"-dragging"),l),n)),style:Object(j.a)(Object(j.a)({},T),u),onMouseDown:P,onTouchStart:P,onKeyDown:function(e){if(!b){var t=null;switch(e.which||e.keyCode){case A.a.LEFT:t="ltr"===g||"btt"===g?-1:1;break;case A.a.RIGHT:t="ltr"===g||"btt"===g?1:-1;break;case A.a.UP:t="ttb"!==g?1:-1;break;case A.a.DOWN:t="ttb"!==g?-1:1;break;case A.a.HOME:t="min";break;case A.a.END:t="max";break;case A.a.PAGE_UP:t=2;break;case A.a.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),f(t,a))}},tabIndex:b?null:_l(_,a),role:"slider","aria-valuemin":h,"aria-valuemax":v,"aria-valuenow":i,"aria-disabled":b,"aria-label":_l(x,a),"aria-labelledby":_l(E,a),"aria-valuetext":null===(r=_l(S,a))||void 0===r?void 0:r(i)},p));return s&&(M=s(M,{index:a,prefixCls:o,value:i,dragging:l})),M})),Sl=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"];var Cl=k.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,c=e.handleRender,u=e.draggingIndex,s=Object(Rt.a)(e,Sl),l=k.useRef({});return k.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=l.current[e])||void 0===t||t.focus()}}})),k.createElement(k.Fragment,null,a.map((function(e,t){return k.createElement(El,Object(m.a)({ref:function(e){e?l.current[t]=e:delete l.current[t]},dragging:u===t,prefixCls:n,style:_l(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:i,render:c},s))})))}));function jl(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function kl(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,c=k.useContext(bl),u=c.direction,s=c.min,l=c.max,f=c.disabled,p=c.range,d="".concat(t,"-track"),h=Ol(r,s,l),v=Ol(o,s,l),y=function(e){!f&&a&&a(e,-1)},m={};switch(u){case"rtl":m.right="".concat(100*h,"%"),m.width="".concat(100*v-100*h,"%");break;case"btt":m.bottom="".concat(100*h,"%"),m.height="".concat(100*v-100*h,"%");break;case"ttb":m.top="".concat(100*h,"%"),m.height="".concat(100*v-100*h,"%");break;default:m.left="".concat(100*h,"%"),m.width="".concat(100*v-100*h,"%")}return k.createElement("div",{className:O()(d,p&&"".concat(d,"-").concat(i+1)),style:Object(j.a)(Object(j.a)({},m),n),onMouseDown:y,onTouchStart:y})}function Pl(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=k.useContext(bl),c=a.included,u=a.range,s=a.min,l=k.useMemo((function(){if(!u){if(0===r.length)return[];var e=null!=o?o:s,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],i=0;i<r.length-1;i+=1)n.push({start:r[i],end:r[i+1]});return n}),[r,u,o,s]);return c?l.map((function(e,r){var o=e.start,a=e.end;return k.createElement(kl,{index:r,prefixCls:t,style:_l(n,r),start:o,end:a,key:r,onStartMove:i})})):null}function Tl(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=k.useContext(bl),c=a.min,u=a.max,s=a.direction,l=a.includedStart,f=a.includedEnd,p=a.included,d="".concat(t,"-text"),h=wl(s,o,c,u);return k.createElement("span",{className:O()(d,Object(y.a)({},"".concat(d,"-active"),p&&l<=o&&o<=f)),style:Object(j.a)(Object(j.a)({},h),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){i(o)}},r)}function Ml(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?k.createElement("div",{className:o},n.map((function(e){var t=e.value,n=e.style,i=e.label;return k.createElement(Tl,{key:t,prefixCls:o,style:n,value:t,onClick:r},i)}))):null}function Al(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=k.useContext(bl),a=i.min,c=i.max,u=i.direction,s=i.included,l=i.includedStart,f=i.includedEnd,p="".concat(t,"-dot"),d=s&&l<=n&&n<=f,h=Object(j.a)(Object(j.a)({},wl(u,n,a,c)),"function"==typeof r?r(n):r);return d&&(h=Object(j.a)(Object(j.a)({},h),"function"==typeof o?o(n):o)),k.createElement("span",{className:O()(p,Object(y.a)({},"".concat(p,"-active"),d)),style:h})}function Ll(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=k.useContext(bl),c=a.min,u=a.max,s=a.step,l=k.useMemo((function(){var e=new Set;if(n.forEach((function(t){e.add(t.value)})),r&&null!==s)for(var t=c;t<=u;)e.add(t),t+=s;return Array.from(e)}),[c,u,s,r,n]);return k.createElement("div",{className:"".concat(t,"-step")},l.map((function(e){return k.createElement(Al,{prefixCls:t,key:e,value:e,style:o,activeStyle:i})})))}var Rl=k.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-slider":r,i=e.className,a=e.style,c=e.disabled,u=void 0!==c&&c,s=e.autoFocus,l=e.onFocus,f=e.onBlur,p=e.min,d=void 0===p?0:p,h=e.max,v=void 0===h?100:h,m=e.step,b=void 0===m?1:m,w=e.value,_=e.defaultValue,x=e.range,E=e.count,S=e.onChange,C=e.onBeforeChange,j=e.onAfterChange,P=e.allowCross,A=void 0===P||P,L=e.pushable,R=void 0!==L&&L,N=e.draggableTrack,I=e.reverse,D=e.vertical,F=e.included,z=void 0===F||F,B=e.startPoint,U=e.trackStyle,H=e.handleStyle,G=e.railStyle,W=e.dotStyle,Y=e.activeDotStyle,K=e.marks,X=e.dots,q=e.handleRender,Z=e.tabIndex,J=void 0===Z?0:Z,Q=e.ariaLabelForHandle,$=e.ariaLabelledByForHandle,ee=e.ariaValueTextFormatterForHandle,te=k.useRef(),ne=k.useRef(),re=k.useMemo((function(){return D?I?"ttb":"btt":I?"rtl":"ltr"}),[I,D]),oe=k.useMemo((function(){return isFinite(d)?d:0}),[d]),ie=k.useMemo((function(){return isFinite(v)?v:100}),[v]),ae=k.useMemo((function(){return null!==b&&b<=0?1:b}),[b]),ce=k.useMemo((function(){return!0===R?ae:R>=0&&R}),[R,ae]),ue=k.useMemo((function(){return Object.keys(K||{}).map((function(e){var t=K[e],n={value:Number(e)};return t&&"object"===Object(M.a)(t)&&!k.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[K]),se=function(e,t,n,r,o,i){var a=k.useCallback((function(n){var r=isFinite(n)?n:e;return r=Math.min(t,n),r=Math.max(e,r)}),[e,t]),c=k.useCallback((function(r){if(null!==n){var o=e+Math.round((a(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},c=Math.max(i(n),i(t),i(e)),u=Number(o.toFixed(c));return e<=u&&u<=t?u:null}return null}),[n,e,t,a]),u=k.useCallback((function(o){var i=a(o),u=r.map((function(e){return e.value}));null!==n&&u.push(c(o)),u.push(e,t);var s=u[0],l=t-e;return u.forEach((function(e){var t=Math.abs(i-e);t<=l&&(s=e,l=t)})),s}),[e,t,r,n,a,c]),s=function o(i,a,u){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof a){var l,f=i[u],p=f+a,d=[];r.forEach((function(e){d.push(e.value)})),d.push(e,t),d.push(c(f));var h=a>0?1:-1;"unit"===s?d.push(c(f+h*n)):d.push(c(p)),d=d.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=f:e>=f})),"unit"===s&&(d=d.filter((function(e){return e!==f})));var v="unit"===s?f:p;l=d[0];var y=Math.abs(l-v);if(d.forEach((function(e){var t=Math.abs(e-v);t<y&&(l=e,y=t)})),void 0===l)return a<0?e:t;if("dist"===s)return l;if(Math.abs(a)>1){var m=Object(V.a)(i);return m[u]=l,o(m,a-h,u,s)}return l}return"min"===a?e:"max"===a?t:void 0},l=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],i=s(e,t,n,r);return{value:i,changed:i!==o}},f=function(e){return null===i&&0===e||"number"==typeof i&&e<i};return[u,function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",a=e.map(u),c=a[n],p=s(a,t,n,r);if(a[n]=p,!1===o){var d=i||0;n>0&&a[n-1]!==c&&(a[n]=Math.max(a[n],a[n-1]+d)),n<a.length-1&&a[n+1]!==c&&(a[n]=Math.min(a[n],a[n+1]-d))}else if("number"==typeof i||null===i){for(var h=n+1;h<a.length;h+=1)for(var v=!0;f(a[h]-a[h-1])&&v;){var y=l(a,1,h);a[h]=y.value,v=y.changed}for(var m=n;m>0;m-=1)for(var g=!0;f(a[m]-a[m-1])&&g;){var b=l(a,-1,m-1);a[m-1]=b.value,g=b.changed}for(var O=a.length-1;O>0;O-=1)for(var w=!0;f(a[O]-a[O-1])&&w;){var _=l(a,-1,O-1);a[O-1]=_.value,w=_.changed}for(var x=0;x<a.length-1;x+=1)for(var E=!0;f(a[x+1]-a[x])&&E;){var S=l(a,1,x+1);a[x+1]=S.value,E=S.changed}}return{value:a[n],values:a}}]}(oe,ie,ae,ue,A,ce),le=Object(g.a)(se,2),fe=le[0],pe=le[1],de=Object(T.a)(_,{value:w}),he=Object(g.a)(de,2),ve=he[0],ye=he[1],me=k.useMemo((function(){var e=null==ve?[]:Array.isArray(ve)?ve:[ve],t=Object(g.a)(e,1)[0],n=null===ve?[]:[void 0===t?oe:t];if(x){if(n=Object(V.a)(e),E||void 0===ve){var r=E>=0?E+1:2;for(n=n.slice(0,r);n.length<r;){var o;n.push(null!==(o=n[n.length-1])&&void 0!==o?o:oe)}}n.sort((function(e,t){return e-t}))}return n.forEach((function(e,t){n[t]=fe(e)})),n}),[ve,x,oe,E,fe]),ge=k.useRef(me);ge.current=me;var be=function(e){return x?e:e[0]},Oe=function(e){var t=Object(V.a)(e).sort((function(e,t){return e-t}));S&&!tt()(t,ge.current)&&S(be(t)),ye(t)},we=function(e){if(!u){var t=0,n=ie-oe;me.forEach((function(r,o){var i=Math.abs(e-r);i<=n&&(n=i,t=o)}));var r=Object(V.a)(me);r[t]=e,x&&!me.length&&void 0===E&&r.push(e),null==C||C(be(r)),Oe(r),null==j||j(be(r))}},_e=k.useState(null),xe=Object(g.a)(_e,2),Ee=xe[0],Se=xe[1];k.useEffect((function(){if(null!==Ee){var e=me.indexOf(Ee);e>=0&&te.current.focus(e)}Se(null)}),[Ee]);var Ce=k.useMemo((function(){return(!N||null!==ae)&&N}),[N,ae]),je=function(e,t,n,r,o,i,a,c,u){var s=k.useState(null),l=Object(g.a)(s,2),f=l[0],p=l[1],d=k.useState(-1),h=Object(g.a)(d,2),v=h[0],y=h[1],m=k.useState(n),b=Object(g.a)(m,2),O=b[0],w=b[1],_=k.useState(n),x=Object(g.a)(_,2),E=x[0],S=x[1],C=k.useRef(null),j=k.useRef(null);k.useEffect((function(){-1===v&&w(n)}),[n,v]),k.useEffect((function(){return function(){document.removeEventListener("mousemove",C.current),document.removeEventListener("mouseup",j.current),document.removeEventListener("touchmove",C.current),document.removeEventListener("touchend",j.current)}}),[]);var P=function(e,t){O.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&p(t),w(e),a(e))},T=function(e,t){if(-1===e){var n=E[0],a=E[E.length-1],c=r-n,s=o-a,l=t*(o-r);l=Math.max(l,c),l=Math.min(l,s);var f=i(n+l);l=f-n;var p=E.map((function(e){return e+l}));P(p)}else{var d=(o-r)*t,h=Object(V.a)(O);h[e]=E[e];var v=u(h,d,e,"dist");P(v.values,v.value)}},M=k.useRef(T);M.current=T;var A=k.useMemo((function(){var e=Object(V.a)(n).sort((function(e,t){return e-t})),t=Object(V.a)(O).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?O:n}),[n,O]);return[v,f,A,function(r,o){r.stopPropagation();var i=n[o];y(o),p(i),S(n);var a=jl(r),u=a.pageX,s=a.pageY,l=function(n){n.preventDefault();var r,i=jl(n),a=i.pageX,c=i.pageY,l=a-u,f=c-s,p=e.current.getBoundingClientRect(),d=p.width,h=p.height;switch(t){case"btt":r=-f/h;break;case"ttb":r=f/h;break;case"rtl":r=-l/d;break;default:r=l/d}M.current(o,r)},f=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",l),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",l),C.current=null,j.current=null,y(-1),c()};document.addEventListener("mouseup",f),document.addEventListener("mousemove",l),document.addEventListener("touchend",f),document.addEventListener("touchmove",l),C.current=l,j.current=f}]}(ne,re,me,oe,ie,fe,Oe,(function(){null==j||j(be(ge.current))}),pe),ke=Object(g.a)(je,4),Pe=ke[0],Te=ke[1],Me=ke[2],Ae=ke[3],Le=function(e,t){Ae(e,t),null==C||C(be(ge.current))},Re=-1!==Pe;k.useEffect((function(){if(!Re){var e=me.lastIndexOf(Te);te.current.focus(e)}}),[Re]);var Ne=k.useMemo((function(){return Object(V.a)(Me).sort((function(e,t){return e-t}))}),[Me]),Ie=k.useMemo((function(){return x?[Ne[0],Ne[Ne.length-1]]:[oe,Ne[0]]}),[Ne,x,oe]),De=Object(g.a)(Ie,2),Fe=De[0],ze=De[1];k.useImperativeHandle(t,(function(){return{focus:function(){te.current.focus(0)},blur:function(){var e=document.activeElement;ne.current.contains(e)&&(null==e||e.blur())}}})),k.useEffect((function(){s&&te.current.focus(0)}),[]);var Be=k.useMemo((function(){return{min:oe,max:ie,direction:re,disabled:u,step:ae,included:z,includedStart:Fe,includedEnd:ze,range:x,tabIndex:J,ariaLabelForHandle:Q,ariaLabelledByForHandle:$,ariaValueTextFormatterForHandle:ee}}),[oe,ie,re,u,ae,z,Fe,ze,x,J,Q,$,ee]);return k.createElement(bl.Provider,{value:Be},k.createElement("div",{ref:ne,className:O()(o,i,(n={},Object(y.a)(n,"".concat(o,"-disabled"),u),Object(y.a)(n,"".concat(o,"-vertical"),D),Object(y.a)(n,"".concat(o,"-horizontal"),!D),Object(y.a)(n,"".concat(o,"-with-marks"),ue.length),n)),style:a,onMouseDown:function(e){e.preventDefault();var t,n=ne.current.getBoundingClientRect(),r=n.width,o=n.height,i=n.left,a=n.top,c=n.bottom,u=n.right,s=e.clientX,l=e.clientY;switch(re){case"btt":t=(c-l)/o;break;case"ttb":t=(l-a)/o;break;case"rtl":t=(u-s)/r;break;default:t=(s-i)/r}we(fe(oe+t*(ie-oe)))}},k.createElement("div",{className:"".concat(o,"-rail"),style:G}),k.createElement(Pl,{prefixCls:o,style:U,values:Ne,startPoint:B,onStartMove:Ce?Le:null}),k.createElement(Ll,{prefixCls:o,marks:ue,dots:X,style:W,activeStyle:Y}),k.createElement(Cl,{ref:te,prefixCls:o,style:H,values:Me,draggingIndex:Pe,onStartMove:Le,onOffsetChange:function(e,t){if(!u){var n=pe(me,e,t);null==C||C(be(me)),Oe(n.values),null==j||j(be(n.values)),Se(n.value)}},onFocus:l,onBlur:f,handleRender:q}),k.createElement(Ml,{prefixCls:o,marks:ue,onClick:we})))})),Nl=k.forwardRef((function(e,t){var n=e.visible,r=Object(k.useRef)(null),o=Object(k.useRef)(null);function i(){H.a.cancel(o.current),o.current=null}return k.useEffect((function(){return n?o.current=Object(H.a)((function(){var e;null===(e=r.current)||void 0===e||e.forcePopupAlign(),o.current=null})):i(),i}),[n,e.title]),k.createElement(Na.a,Object(m.a)({ref:Object(Ca.a)(r,t)},e))})),Il=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Dl=k.forwardRef((function(e,t){var n=k.useContext(dt.b),r=n.getPrefixCls,o=n.direction,i=n.getPopupContainer,a=k.useState({}),c=Object(g.a)(a,2),u=c[0],s=c[1],l=function(e,t){s((function(n){return Object(m.a)(Object(m.a)({},n),Object(y.a)({},e,t))}))},f=function(e,t){return e||(t?"rtl"===o?"left":"right":"top")},p=e.prefixCls,d=e.tooltipPrefixCls,h=e.range,v=e.className,b=Il(e,["prefixCls","tooltipPrefixCls","range","className"]),w=r("slider",p),_=r("tooltip",d),x=O()(v,Object(y.a)({},"".concat(w,"-rtl"),"rtl"===o));"rtl"!==o||b.vertical||(b.reverse=!b.reverse);var E=k.useMemo((function(){return h?"object"===Object(M.a)(h)?[!0,h.draggableTrack]:[!0,!1]:[!1]}),[h]),S=Object(g.a)(E,2),C=S[0],j=S[1];return k.createElement(Rl,Object(m.a)({},b,{step:b.step,range:C,draggableTrack:j,className:x,ref:t,prefixCls:w,handleRender:function(t,n){var o=n.index,a=n.dragging,c=r(),s=e.tipFormatter,p=e.tooltipVisible,d=e.tooltipPlacement,h=e.getTooltipPopupContainer,v=e.vertical,y=!!s&&(u[o]||a),g=p||void 0===p&&y,b=Object(m.a)(Object(m.a)({},t.props),{onMouseEnter:function(){return l(o,!0)},onMouseLeave:function(){return l(o,!1)}});return k.createElement(Nl,{prefixCls:_,title:s?s(n.value):"",visible:g,placement:f(d,v),transitionName:"".concat(c,"-zoom-down"),key:o,overlayClassName:"".concat(w,"-tooltip"),getPopupContainer:h||i},k.cloneElement(t,b))}}))}));Dl.defaultProps={tipFormatter:function(e){return"number"==typeof e?e.toString():""}};var Fl=Dl,zl=n("zeV3"),Bl=n("/+Qt"),Ul=n.n(Bl),Vl=function(e){var t,n=e.value,r=e.formatter,o=e.precision,i=e.decimalSeparator,a=e.groupSeparator,c=void 0===a?"":a,u=e.prefixCls;if("function"==typeof r)t=r(n);else{var s=String(n),l=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(l&&"-"!==s){var f=l[1],p=l[2]||"0",d=l[4]||"";p=p.replace(/\B(?=(\d{3})+(?!\d))/g,c),"number"==typeof o&&(d=Ul()(d,o,"0").slice(0,o>0?o:0)),d&&(d="".concat(i).concat(d)),t=[k.createElement("span",{key:"int",className:"".concat(u,"-content-value-int")},f,p),d&&k.createElement("span",{key:"decimal",className:"".concat(u,"-content-value-decimal")},d)]}else t=s}return k.createElement("span",{className:"".concat(u,"-content-value")},t)},Hl=function(e){var t=e.prefixCls,n=e.className,r=e.style,o=e.valueStyle,i=e.value,a=void 0===i?0:i,c=e.title,u=e.valueRender,s=e.prefix,l=e.suffix,f=e.loading,p=e.direction,d=e.onMouseEnter,h=e.onMouseLeave,v=k.createElement(Vl,Object(m.a)({},e,{value:a})),g=O()(t,Object(y.a)({},"".concat(t,"-rtl"),"rtl"===p),n);return k.createElement("div",{className:g,style:r,onMouseEnter:d,onMouseLeave:h},c&&k.createElement("div",{className:"".concat(t,"-title")},c),k.createElement(jt.a,{paragraph:!1,loading:f,className:"".concat(t,"-skeleton")},k.createElement("div",{style:o,className:"".concat(t,"-content")},s&&k.createElement("span",{className:"".concat(t,"-content-prefix")},s),u?u(v):v,l&&k.createElement("span",{className:"".concat(t,"-content-suffix")},l))))};Hl.defaultProps={decimalSeparator:".",groupSeparator:",",loading:!1};var Gl=Object(dt.c)({prefixCls:"statistic"})(Hl),Wl=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function Yl(e,t){var n=t.format,r=void 0===n?"":n,o=new Date(e).getTime(),i=Date.now();return function(e,t){var n=e,r=/\[[^\]]*]/g,o=(t.match(r)||[]).map((function(e){return e.slice(1,-1)})),i=t.replace(r,"[]"),a=Wl.reduce((function(e,t){var r=Object(g.a)(t,2),o=r[0],i=r[1];if(-1!==e.indexOf(o)){var a=Math.floor(n/i);return n-=a*i,e.replace(new RegExp("".concat(o,"+"),"g"),(function(e){var t=e.length;return _()(a.toString(),t,"0")}))}return e}),i),c=0;return a.replace(r,(function(){var e=o[c];return c+=1,e}))}(Math.max(o-i,0),r)}function Kl(e){return new Date(e).getTime()}var Xl=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;return Object(x.a)(this,n),(e=t.apply(this,arguments)).syncTimer=function(){Kl(e.props.value)>=Date.now()?e.startTimer():e.stopTimer()},e.startTimer=function(){if(!e.countdownId){var t=e.props,n=t.onChange,r=Kl(t.value);e.countdownId=window.setInterval((function(){e.forceUpdate(),n&&r>Date.now()&&n(r-Date.now())}),1e3/30)}},e.stopTimer=function(){var t=e.props,n=t.onFinish,r=t.value;if(e.countdownId){clearInterval(e.countdownId),e.countdownId=void 0;var o=Kl(r);n&&o<Date.now()&&n()}},e.formatCountdown=function(t,n){var r=e.props.format;return Yl(t,Object(m.a)(Object(m.a)({},n),{format:r}))},e.valueRender=function(e){return Object(Li.a)(e,{title:void 0})},e}return Object(E.a)(n,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return k.createElement(Gl,Object(m.a)({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),n}(k.Component);Xl.defaultProps={format:"HH:mm:ss"};var ql=Xl;Gl.Countdown=ql;var Zl=Gl,Jl=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function Ql(e){return"string"==typeof e}var $l=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;return Object(x.a)(this,n),(e=t.apply(this,arguments)).onClick=function(){var t=e.props,n=t.onClick,r=t.onStepClick,o=t.stepIndex;n&&n.apply(void 0,arguments),r(o)},e}return Object(E.a)(n,[{key:"renderIconNode",value:function(){var e,t,n=this.props,r=n.prefixCls,o=n.progressDot,i=n.stepIcon,a=n.stepNumber,c=n.status,u=n.title,s=n.description,l=n.icon,f=n.iconPrefix,p=n.icons,d=O()("".concat(r,"-icon"),"".concat(f,"icon"),(e={},Object(y.a)(e,"".concat(f,"icon-").concat(l),l&&Ql(l)),Object(y.a)(e,"".concat(f,"icon-check"),!l&&"finish"===c&&(p&&!p.finish||!p)),Object(y.a)(e,"".concat(f,"icon-cross"),!l&&"error"===c&&(p&&!p.error||!p)),e)),h=k.createElement("span",{className:"".concat(r,"-icon-dot")});return t=o?"function"==typeof o?k.createElement("span",{className:"".concat(r,"-icon")},o(h,{index:a-1,status:c,title:u,description:s})):k.createElement("span",{className:"".concat(r,"-icon")},h):l&&!Ql(l)?k.createElement("span",{className:"".concat(r,"-icon")},l):p&&p.finish&&"finish"===c?k.createElement("span",{className:"".concat(r,"-icon")},p.finish):p&&p.error&&"error"===c?k.createElement("span",{className:"".concat(r,"-icon")},p.error):l||"finish"===c||"error"===c?k.createElement("span",{className:d}):k.createElement("span",{className:"".concat(r,"-icon")},a),i&&(t=i({index:a-1,status:c,title:u,description:s,node:t})),t}},{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.prefixCls,o=t.style,i=t.active,a=t.status,c=void 0===a?"wait":a,u=(t.iconPrefix,t.icon),s=(t.wrapperStyle,t.stepNumber,t.disabled),l=t.description,f=t.title,p=t.subTitle,d=(t.progressDot,t.stepIcon,t.tailContent),h=(t.icons,t.stepIndex,t.onStepClick),v=t.onClick,m=Object(Rt.a)(t,Jl),g=O()("".concat(r,"-item"),"".concat(r,"-item-").concat(c),n,(e={},Object(y.a)(e,"".concat(r,"-item-custom"),u),Object(y.a)(e,"".concat(r,"-item-active"),i),Object(y.a)(e,"".concat(r,"-item-disabled"),!0===s),e)),b=Object(j.a)({},o),w={};return h&&!s&&(w.role="button",w.tabIndex=0,w.onClick=this.onClick),k.createElement("div",Object.assign({},m,{className:g,style:b}),k.createElement("div",Object.assign({onClick:v},w,{className:"".concat(r,"-item-container")}),k.createElement("div",{className:"".concat(r,"-item-tail")},d),k.createElement("div",{className:"".concat(r,"-item-icon")},this.renderIconNode()),k.createElement("div",{className:"".concat(r,"-item-content")},k.createElement("div",{className:"".concat(r,"-item-title")},f,p&&k.createElement("div",{title:"string"==typeof p?p:void 0,className:"".concat(r,"-item-subtitle")},p)),l&&k.createElement("div",{className:"".concat(r,"-item-description")},l))))}}]),n}(k.Component),ef=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],tf=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;return Object(x.a)(this,n),(e=t.apply(this,arguments)).onStepClick=function(t){var n=e.props,r=n.onChange,o=n.current;r&&o!==t&&r(t)},e}return Object(E.a)(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.prefixCls,o=n.style,i=void 0===o?{}:o,a=n.className,c=n.children,u=n.direction,s=n.type,l=n.labelPlacement,f=n.iconPrefix,p=n.status,d=n.size,h=n.current,v=n.progressDot,m=n.stepIcon,g=n.initial,b=n.icons,w=n.onChange,_=Object(Rt.a)(n,ef),x="navigation"===s,E=v?"vertical":l,S=O()(r,"".concat(r,"-").concat(u),a,(e={},Object(y.a)(e,"".concat(r,"-").concat(d),d),Object(y.a)(e,"".concat(r,"-label-").concat(E),"horizontal"===u),Object(y.a)(e,"".concat(r,"-dot"),!!v),Object(y.a)(e,"".concat(r,"-navigation"),x),e));return P.a.createElement("div",Object.assign({className:S,style:i},_),Object(Nt.a)(c).map((function(e,n){var o=g+n,a=Object(j.a)({stepNumber:"".concat(o+1),stepIndex:o,key:o,prefixCls:r,iconPrefix:f,wrapperStyle:i,progressDot:v,stepIcon:m,icons:b,onStepClick:w&&t.onStepClick},e.props);return"error"===p&&n===h-1&&(a.className="".concat(r,"-next-error")),e.props.status||(a.status=o===h?p:o<h?"finish":"wait"),a.active=o===h,Object(k.cloneElement)(e,a)})))}}]),n}(P.a.Component);tf.Step=$l,tf.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var nf=tf,rf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},of=function(e){var t,n=e.percent,r=e.size,o=e.className,i=e.direction,a=e.responsive,c=rf(e,["percent","size","className","direction","responsive"]),u=Object(uu.a)(a).xs,s=k.useContext(dt.b),l=s.getPrefixCls,f=s.direction,p=k.useCallback((function(){return a&&u?"vertical":i}),[u,i]),d=l("steps",e.prefixCls),h=l("",e.iconPrefix),v=O()((t={},Object(y.a)(t,"".concat(d,"-rtl"),"rtl"===f),Object(y.a)(t,"".concat(d,"-with-progress"),void 0!==n),t),o),g={finish:k.createElement(_s.a,{className:"".concat(d,"-finish-icon")}),error:k.createElement(kt.a,{className:"".concat(d,"-error-icon")})};return k.createElement(nf,Object(m.a)({icons:g},c,{size:r,direction:p(),stepIcon:function(e){var t=e.node;if("process"===e.status&&void 0!==n){var o="small"===r?32:40;return k.createElement("div",{className:"".concat(d,"-progress-icon")},k.createElement(Ks,{type:"circle",percent:n,width:o,strokeWidth:4,format:function(){return null}}),t)}return t},prefixCls:d,iconPrefix:h,className:v}))};of.Step=nf.Step,of.defaultProps={current:0,responsive:!0};var af=of,cf=n("Sdc0"),uf=n("VeAG"),sf=n("vONN");var lf=function(e){return null};var ff=function(e){return null};function pf(e){return null==e?[]:Array.isArray(e)?e:[e]}function df(e,t){if(!t&&"number"!=typeof t)return e;for(var n=pf(t),r=e,o=0;o<n.length;o+=1){if(!r)return null;r=r[n[o]]}return r}function hf(e){var t=[],n={};return e.forEach((function(e){for(var r=e||{},o=r.key,i=r.dataIndex,a=o||pf(i).join("-")||"RC_TABLE_KEY";n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)})),t}function vf(e){return null!=e}var yf=k.createContext(!1),mf=n("99DC");var gf,bf={Context:gf=k.createContext(null),Provider:function(e){var t=e.value,n=e.children,r=k.useRef(t);r.current=t;var o=k.useState((function(){return{getValue:function(){return r.current},listeners:new Set}})),i=Object(g.a)(o,1)[0];return Object(Ta.a)((function(){i.listeners.forEach((function(e){e(t)}))}),[t]),k.createElement(gf.Provider,{value:i},n)}},Of=k.createContext(null),wf=k.createContext({renderWithProps:!1}),_f=["colSpan","rowSpan","style","className"];function xf(e,t){var n,r,o,i=e.prefixCls,a=e.className,c=e.record,u=e.index,s=e.renderIndex,l=e.dataIndex,f=e.render,p=e.children,d=e.component,h=void 0===d?"td":d,v=e.colSpan,m=e.rowSpan,b=e.fixLeft,w=e.fixRight,_=e.firstFixLeft,x=e.lastFixLeft,E=e.firstFixRight,S=e.lastFixRight,C=e.appendNode,P=e.additionalProps,T=void 0===P?{}:P,A=e.ellipsis,L=e.align,R=e.rowType,N=e.isSticky,I=e.hovering,D=e.onHover,F="".concat(i,"-cell"),z=k.useContext(wf),B=k.useContext(yf),U=k.useContext(Of).allColumnsFixedLeft,V=k.useMemo((function(){if(vf(p))return[p];var e,t=df(c,l),n=t,r=void 0;if(f){var o=f(t,c,s);!(e=o)||"object"!==Object(M.a)(e)||Array.isArray(e)||k.isValidElement(e)?n=o:(n=o.children,r=o.props,z.renderWithProps=!0)}return[n,r]}),[z.renderWithProps?Math.random():0,p,l,z,c,f,s]),H=Object(g.a)(V,2),G=H[0],W=H[1],Y=G;"object"!==Object(M.a)(Y)||Array.isArray(Y)||k.isValidElement(Y)||(Y=null),A&&(x||E)&&(Y=k.createElement("span",{className:"".concat(F,"-content")},Y));var K=W||{},X=K.colSpan,q=K.rowSpan,Z=K.style,J=K.className,Q=Object(Rt.a)(K,_f),$=null!==(n=void 0!==X?X:v)&&void 0!==n?n:1,ee=null!==(r=void 0!==q?q:m)&&void 0!==r?r:1;if(0===$||0===ee)return null;var te={},ne="number"==typeof b&&B,re="number"==typeof w&&B;ne&&(te.position="sticky",te.left=b),re&&(te.position="sticky",te.right=w);var oe={};L&&(oe.textAlign=L);var ie,ae=function(e){var t,n=e.ellipsis,r=e.rowType,o=e.children,i=!0===n?{showTitle:!0}:n;return i&&(i.showTitle||"header"===r)&&("string"==typeof o||"number"==typeof o?t=o.toString():k.isValidElement(o)&&"string"==typeof o.props.children&&(t=o.props.children)),t}({rowType:R,ellipsis:A,children:G}),ce=Object(j.a)(Object(j.a)(Object(j.a)({title:ae},Q),T),{},{colSpan:1!==$?$:null,rowSpan:1!==ee?ee:null,className:O()(F,a,(o={},Object(y.a)(o,"".concat(F,"-fix-left"),ne&&B),Object(y.a)(o,"".concat(F,"-fix-left-first"),_&&B),Object(y.a)(o,"".concat(F,"-fix-left-last"),x&&B),Object(y.a)(o,"".concat(F,"-fix-left-all"),x&&U&&B),Object(y.a)(o,"".concat(F,"-fix-right"),re&&B),Object(y.a)(o,"".concat(F,"-fix-right-first"),E&&B),Object(y.a)(o,"".concat(F,"-fix-right-last"),S&&B),Object(y.a)(o,"".concat(F,"-ellipsis"),A),Object(y.a)(o,"".concat(F,"-with-append"),C),Object(y.a)(o,"".concat(F,"-fix-sticky"),(ne||re)&&N&&B),Object(y.a)(o,"".concat(F,"-row-hover"),!W&&I),o),T.className,J),style:Object(j.a)(Object(j.a)(Object(j.a)(Object(j.a)({},T.style),oe),te),Z),onMouseEnter:function(e){var t;c&&D(u,u+ee-1),null==T||null===(t=T.onMouseEnter)||void 0===t||t.call(T,e)},onMouseLeave:function(e){var t;c&&D(-1,-1),null==T||null===(t=T.onMouseLeave)||void 0===t||t.call(T,e)},ref:(ie=h,"string"==typeof ie||Object(Ca.c)(ie)?t:null)});return k.createElement(h,ce,C,Y)}var Ef=k.forwardRef(xf);Ef.displayName="Cell";var Sf=["expanded","className","hovering"],Cf=k.memo(Ef,(function(e,t){return t.shouldCellUpdate?Sf.every((function(n){return e[n]===t[n]}))&&!t.shouldCellUpdate(t.record,e.record):tt()(e,t)})),jf=k.forwardRef((function(e,t){var n,r,o,i,a,c,u,s,l,f,p,d=e.index,h=e.additionalProps,v=void 0===h?{}:h,y=e.colSpan,b=e.rowSpan,O=v.colSpan,w=v.rowSpan,_=null!=y?y:O,x=null!=b?b:w,E=(n=bf,r=function(e){var t=function(e,t,n,r){return e<=r&&e+t-1>=n}(d,x||1,null==e?void 0:e.startRow,null==e?void 0:e.endRow);return{onHover:null==e?void 0:e.onHover,hovering:t}},o=Object(mf.a)(r),i=k.useContext(null==n?void 0:n.Context),c=(a=i||{}).listeners,u=a.getValue,s=k.useState((function(){return o(i?u():null)})),l=Object(g.a)(s,2),f=l[0],p=l[1],Object(Ta.a)((function(){if(i)return c.add(e),function(){c.delete(e)};function e(e){p((function(t){var n=o(e);return tt()(t,n)?t:n}))}}),[i]),f),S=E.onHover,C=E.hovering;return k.createElement(Cf,Object(m.a)({},e,{colSpan:_,rowSpan:x,hovering:C,ref:t,onHover:S}))}));jf.displayName="WrappedCell";var kf=jf,Pf=k.createContext(null);function Tf(e,t,n,r,o){var i,a,c=n[e]||{},u=n[t]||{};"left"===c.fixed?i=r.left[e]:"right"===u.fixed&&(a=r.right[t]);var s=!1,l=!1,f=!1,p=!1,d=n[t+1],h=n[e-1];if("rtl"===o){if(void 0!==i)p=!(h&&"left"===h.fixed);else if(void 0!==a){f=!(d&&"right"===d.fixed)}}else if(void 0!==i){s=!(d&&"left"===d.fixed)}else if(void 0!==a){l=!(h&&"right"===h.fixed)}return{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:l,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}function Mf(e){var t,n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,i=e.rowComponent,a=e.cellComponent,c=e.onHeaderRow,u=e.index,s=k.useContext(Pf),l=s.prefixCls,f=s.direction;c&&(t=c(n.map((function(e){return e.column})),u));var p=hf(n.map((function(e){return e.column})));return k.createElement(i,t,n.map((function(e,t){var n,i=e.column,c=Tf(e.colStart,e.colEnd,o,r,f);return i&&i.onHeaderCell&&(n=e.column.onHeaderCell(i)),k.createElement(kf,Object(m.a)({},e,{ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:l,key:p[t]},c,{additionalProps:n,rowType:"header"}))})))}Mf.displayName="HeaderRow";var Af=Mf;var Lf=function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=k.useContext(Pf),a=i.prefixCls,c=i.getComponent,u=k.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,c=n.children;return c&&c.length>0&&(a=e(c,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}));return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o<n;o+=1)r(o);return t}(n)}),[n]),s=c(["header","wrapper"],"thead"),l=c(["header","row"],"tr"),f=c(["header","cell"],"th");return k.createElement(s,{className:"".concat(a,"-thead")},u.map((function(e,n){return k.createElement(Af,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:l,cellComponent:f,onHeaderRow:o,index:n})})))},Rf=k.createContext(null);var Nf=function(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.className,a=e.expanded,c=e.colSpan,u=e.isEmpty,s=k.useContext(Pf).scrollbarSize,l=k.useContext(Rf),f=l.fixHeader,p=l.fixColumn,d=l.componentWidth,h=l.horizonScroll;return k.useMemo((function(){var e=n;return(u?h:p)&&(e=k.createElement("div",{style:{width:d-(f?s:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},0!==d&&e)),k.createElement(r,{className:i,style:{display:a?null:"none"}},k.createElement(kf,{component:o,prefixCls:t,colSpan:c},e))}),[n,r,i,a,c,u,s,d,p,f,h])},If=k.createContext(null);function Df(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.renderIndex,a=e.rowKey,c=e.rowExpandable,u=e.expandedKeys,s=e.onRow,l=e.indent,f=void 0===l?0:l,p=e.rowComponent,d=e.cellComponent,h=e.childrenColumnName,v=k.useContext(Pf),y=v.prefixCls,b=v.fixedInfoList,w=k.useContext(Of),_=w.flattenColumns,x=w.expandableType,E=w.expandRowByClick,S=w.onTriggerExpand,C=w.rowClassName,P=w.expandedRowClassName,T=w.indentSize,M=w.expandIcon,A=w.expandedRowRender,L=w.expandIconColumnIndex,R=k.useState(!1),N=Object(g.a)(R,2),I=N[0],D=N[1],F=u&&u.has(e.recordKey);k.useEffect((function(){F&&D(!0)}),[F]);var z="row"===x&&(!c||c(r)),B="nest"===x,U=h&&r&&r[h],V=z||B,H=k.useRef(S);H.current=S;var G,W=function(){H.current.apply(H,arguments)},Y=null==s?void 0:s(r,o);"string"==typeof C?G=C:"function"==typeof C&&(G=C(r,o,f));var K,X=hf(_),q=k.createElement(p,Object(m.a)({},Y,{"data-row-key":a,className:O()(t,"".concat(y,"-row"),"".concat(y,"-row-level-").concat(f),G,Y&&Y.className),style:Object(j.a)(Object(j.a)({},n),Y?Y.style:null),onClick:function(e){var t;E&&V&&W(r,e);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];null==Y||null===(t=Y.onClick)||void 0===t||t.call.apply(t,[Y,e].concat(o))}}),_.map((function(e,t){var n,a,c=e.render,u=e.dataIndex,s=e.className,l=X[t],p=b[t];return t===(L||0)&&B&&(n=k.createElement(k.Fragment,null,k.createElement("span",{style:{paddingLeft:"".concat(T*f,"px")},className:"".concat(y,"-row-indent indent-level-").concat(f)}),M({prefixCls:y,expanded:F,expandable:U,record:r,onExpand:W}))),e.onCell&&(a=e.onCell(r,o)),k.createElement(kf,Object(m.a)({className:s,ellipsis:e.ellipsis,align:e.align,component:d,prefixCls:y,key:l,record:r,index:o,renderIndex:i,dataIndex:u,render:c,shouldCellUpdate:e.shouldCellUpdate,expanded:n&&F},p,{appendNode:n,additionalProps:a}))})));if(z&&(I||F)){var Z=A(r,o,f+1,F),J=P&&P(r,o,f);K=k.createElement(Nf,{expanded:F,className:O()("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(f+1),J),prefixCls:y,component:p,cellComponent:d,colSpan:_.length,isEmpty:!1},Z)}return k.createElement(k.Fragment,null,q,K)}Df.displayName="BodyRow";var Ff=Df;function zf(e,t,n,r,o,i){var a=[];a.push({record:e,indent:t,index:i});var c=o(e),u=null==r?void 0:r.has(c);if(e&&Array.isArray(e[n])&&u)for(var s=0;s<e[n].length;s+=1){var l=zf(e[n][s],t+1,n,r,o,s);a.push.apply(a,Object(V.a)(l))}return a}function Bf(e){var t=e.columnKey,n=e.onColumnResize,r=k.useRef();return k.useEffect((function(){r.current&&n(t,r.current.offsetWidth)}),[]),k.createElement(Dt.a,{data:t},k.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},k.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function Uf(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return k.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},k.createElement(Dt.a.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return k.createElement(Bf,{key:e,columnKey:e,onColumnResize:r})}))))}function Vf(e){var t=e.data,n=e.getRowKey,r=e.measureColumnWidth,o=e.expandedKeys,i=e.onRow,a=e.rowExpandable,c=e.emptyNode,u=e.childrenColumnName,s=k.useContext(If).onColumnResize,l=k.useContext(Pf),f=l.prefixCls,p=l.getComponent,d=k.useContext(Of).flattenColumns,h=function(e,t,n,r){return k.useMemo((function(){if(null==n?void 0:n.size){for(var o=[],i=0;i<(null==e?void 0:e.length);i+=1){var a=e[i];o.push.apply(o,Object(V.a)(zf(a,0,t,n,r,i)))}return o}return null==e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t}}))}),[e,t,n,r])}(t,u,o,n),v=k.useRef({renderWithProps:!1}),y=k.useState(-1),m=Object(g.a)(y,2),b=m[0],O=m[1],w=k.useState(-1),_=Object(g.a)(w,2),x=_[0],E=_[1],S=k.useCallback((function(e,t){O(e),E(t)}),[]),C=k.useMemo((function(){var e,l=p(["body","wrapper"],"tbody"),v=p(["body","row"],"tr"),y=p(["body","cell"],"td");e=t.length?h.map((function(e,t){var r=e.record,c=e.indent,s=e.index,l=n(r,t);return k.createElement(Ff,{key:l,rowKey:l,record:r,recordKey:l,index:t,renderIndex:s,rowComponent:v,cellComponent:y,expandedKeys:o,onRow:i,getRowKey:n,rowExpandable:a,childrenColumnName:u,indent:c})})):k.createElement(Nf,{expanded:!0,className:"".concat(f,"-placeholder"),prefixCls:f,component:v,cellComponent:y,colSpan:d.length,isEmpty:!0},c);var m=hf(d);return k.createElement(l,{className:"".concat(f,"-tbody")},r&&k.createElement(Uf,{prefixCls:f,columnsKey:m,onColumnResize:s}),e)}),[t,f,i,r,o,n,p,c,d,u,s,a,h]);return k.createElement(wf.Provider,{value:v.current},k.createElement(bf.Provider,{value:{startRow:b,endRow:x,onHover:S}},C))}var Hf=k.memo(Vf);Hf.displayName="Body";var Gf=Hf,Wf=["expandable"],Yf="RC_TABLE_INTERNAL_COL_DEFINE";var Kf={},Xf=["children"],qf=["fixed"];function Zf(e){return Object(Nt.a)(e).filter((function(e){return k.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=Object(Rt.a)(n,Xf),i=Object(j.a)({key:t},o);return r&&(i.children=Zf(r)),i}))}function Jf(e){return e.reduce((function(e,t){var n=t.fixed,r=!0===n?"left":n,o=t.children;return o&&o.length>0?[].concat(Object(V.a)(e),Object(V.a)(Jf(o).map((function(e){return Object(j.a)({fixed:r},e)})))):[].concat(Object(V.a)(e),[Object(j.a)(Object(j.a)({},t),{},{fixed:r})])}),[])}var Qf=function(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,c=e.getRowKey,u=e.onTriggerExpand,s=e.expandIcon,l=e.rowExpandable,f=e.expandIconColumnIndex,p=e.direction,d=e.expandRowByClick,h=e.columnWidth,v=e.fixed,m=k.useMemo((function(){return r||Zf(o)}),[r,o]),g=k.useMemo((function(){if(i){var e,t=m.slice();if(!t.includes(Kf)){var r=f||0;r>=0&&t.splice(r,0,Kf)}0;var o=t.indexOf(Kf);t=t.filter((function(e,t){return e!==Kf||t===o}));var p,g=m[o];p="left"!==v&&!v||f?"right"!==v&&!v||f!==m.length?g?g.fixed:null:"right":"left";var b=(e={},Object(y.a)(e,Yf,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),Object(y.a)(e,"title",""),Object(y.a)(e,"fixed",p),Object(y.a)(e,"className","".concat(n,"-row-expand-icon-cell")),Object(y.a)(e,"width",h),Object(y.a)(e,"render",(function(e,t,r){var o=c(t,r),i=a.has(o),f=!l||l(t),p=s({prefixCls:n,expanded:i,expandable:f,record:t,onExpand:u});return d?k.createElement("span",{onClick:function(e){return e.stopPropagation()}},p):p})),e);return t.map((function(e){return e===Kf?b:e}))}return m.filter((function(e){return e!==Kf}))}),[i,m,c,a,s,p]),b=k.useMemo((function(){var e=g;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,g,p]),O=k.useMemo((function(){return"rtl"===p?function(e){return e.map((function(e){var t=e.fixed,n=Object(Rt.a)(e,qf),r=t;return"left"===t?r="right":"right"===t&&(r="left"),Object(j.a)({fixed:r},n)}))}(Jf(b)):Jf(b)}),[b,p]);return[b,O]};function $f(e){var t=Object(k.useRef)(e),n=Object(k.useState)({}),r=Object(g.a)(n,2)[1],o=Object(k.useRef)(null),i=Object(k.useRef)([]);return Object(k.useEffect)((function(){return function(){o.current=null}}),[]),[t.current,function(e){i.current.push(e);var n=Promise.resolve();o.current=n,n.then((function(){if(o.current===n){var e=i.current,a=t.current;i.current=[],e.forEach((function(e){t.current=e(t.current)})),o.current=null,a!==t.current&&r({})}}))}]}var ep=function(e,t,n){return Object(k.useMemo)((function(){for(var r=[],o=[],i=0,a=0,c=0;c<t;c+=1)if("rtl"===n){o[c]=a,a+=e[c]||0;var u=t-c-1;r[u]=i,i+=e[u]||0}else{r[c]=i,i+=e[c]||0;var s=t-c-1;o[s]=a,a+=e[s]||0}return{left:r,right:o}}),[e,t,n])},tp=["columnType"];var np=function(e){for(var t=e.colWidths,n=e.columns,r=[],o=!1,i=(e.columCount||n.length)-1;i>=0;i-=1){var a=t[i],c=n&&n[i],u=c&&c[Yf];if(a||u||o){var s=u||{},l=(s.columnType,Object(Rt.a)(s,tp));r.unshift(k.createElement("col",Object(m.a)({key:i,style:{width:a}},l))),o=!0}}return k.createElement("colgroup",null,r)};var rp=function(e){var t=e.className,n=e.children;return k.createElement("div",{className:t},n)},op=k.createContext({});var ip=["children"];function ap(e){return e.children}ap.Row=function(e){var t=e.children,n=Object(Rt.a)(e,ip);return k.createElement("tr",n,t)},ap.Cell=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=void 0===o?1:o,a=e.rowSpan,c=e.align,u=k.useContext(Pf),s=u.prefixCls,l=u.direction,f=k.useContext(op),p=f.scrollColumnIndex,d=f.stickyOffsets,h=n+i-1+1===p?i+1:i,v=Tf(n,n+h-1,f.flattenColumns,d,l);return k.createElement(kf,Object(m.a)({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:c,colSpan:h,rowSpan:a,render:function(){return r}},v))};var cp=ap;var up=function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=k.useContext(Pf).prefixCls,i=r.length-1,a=r[i],c=k.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:(null==a?void 0:a.scrollbar)?i:null}}),[a,r,i,n]);return k.createElement(op.Provider,{value:c},k.createElement("tfoot",{className:"".concat(o,"-summary")},t))},sp=cp;function lp(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,i=e.expanded,a=e.expandable,c="".concat(n,"-row-expand-icon");if(!a)return k.createElement("span",{className:O()(c,"".concat(n,"-row-spaced"))});return k.createElement("span",{className:O()(c,(t={},Object(y.a)(t,"".concat(n,"-row-expanded"),i),Object(y.a)(t,"".concat(n,"-row-collapsed"),!i),t)),onClick:function(e){o(r,e),e.stopPropagation()}})}var fp=function(e,t){var n,r,o=e.scrollBodyRef,i=e.onScroll,a=e.offsetScroll,c=e.container,u=k.useContext(Pf).prefixCls,s=(null===(n=o.current)||void 0===n?void 0:n.scrollWidth)||0,l=(null===(r=o.current)||void 0===r?void 0:r.clientWidth)||0,f=s&&l*(l/s),p=k.useRef(),d=$f({scrollLeft:0,isHiddenScrollBar:!1}),h=Object(g.a)(d,2),v=h[0],m=h[1],b=k.useRef({delta:0,x:0}),w=k.useState(!1),_=Object(g.a)(w,2),x=_[0],E=_[1],S=function(){E(!1)},C=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(x&&0!==n){var r=b.current.x+e.pageX-b.current.x-b.current.delta;r<=0&&(r=0),r+f>=l&&(r=l-f),i({scrollLeft:r/l*(s+2)}),b.current.x=e.pageX}else x&&E(!1)},P=function(){if(o.current){var e=Ja(o.current).top,t=e+o.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:Ja(c).top+c.clientHeight;t-Object(sf.a)()<=n||e>=n-a?m((function(e){return Object(j.a)(Object(j.a)({},e),{},{isHiddenScrollBar:!0})})):m((function(e){return Object(j.a)(Object(j.a)({},e),{},{isHiddenScrollBar:!1})}))}},T=function(e){m((function(t){return Object(j.a)(Object(j.a)({},t),{},{scrollLeft:e/s*l||0})}))};return k.useImperativeHandle(t,(function(){return{setScrollLeft:T}})),k.useEffect((function(){var e=Object($a.a)(document.body,"mouseup",S,!1),t=Object($a.a)(document.body,"mousemove",C,!1);return P(),function(){e.remove(),t.remove()}}),[f,x]),k.useEffect((function(){var e=Object($a.a)(c,"scroll",P,!1),t=Object($a.a)(window,"resize",P,!1);return function(){e.remove(),t.remove()}}),[c]),k.useEffect((function(){v.isHiddenScrollBar||m((function(e){var t=o.current;return t?Object(j.a)(Object(j.a)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[v.isHiddenScrollBar]),s<=l||!f||v.isHiddenScrollBar?null:k.createElement("div",{style:{height:Object(sf.a)(),width:l,bottom:a},className:"".concat(u,"-sticky-scroll")},k.createElement("div",{onMouseDown:function(e){e.persist(),b.current.delta=e.pageX-v.scrollLeft,b.current.x=0,E(!0),e.preventDefault()},ref:p,className:O()("".concat(u,"-sticky-scroll-bar"),Object(y.a)({},"".concat(u,"-sticky-scroll-bar-active"),x)),style:{width:"".concat(f,"px"),transform:"translate3d(".concat(v.scrollLeft,"px, 0, 0)")}}))},pp=k.forwardRef(fp),dp=Object(ks.a)()?window:null;var hp=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var vp=k.forwardRef((function(e,t){var n=e.className,r=e.noData,o=e.columns,i=e.flattenColumns,a=e.colWidths,c=e.columCount,u=e.stickyOffsets,s=e.direction,l=e.fixHeader,f=e.stickyTopOffset,p=e.stickyBottomOffset,d=e.stickyClassName,h=e.onScroll,v=e.maxContentScroll,m=e.children,g=Object(Rt.a)(e,hp),b=k.useContext(Pf),w=b.prefixCls,_=b.scrollbarSize,x=b.isSticky,E=x&&!l?0:_,S=k.useRef(null),C=k.useCallback((function(e){Object(Ca.b)(t,e),Object(Ca.b)(S,e)}),[]);k.useEffect((function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(h({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=S.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=S.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var P=k.useMemo((function(){return i.every((function(e){return e.width>=0}))}),[i]),T=i[i.length-1],M={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(w,"-cell-scrollbar")}}},A=Object(k.useMemo)((function(){return E?[].concat(Object(V.a)(o),[M]):o}),[E,o]),L=Object(k.useMemo)((function(){return E?[].concat(Object(V.a)(i),[M]):i}),[E,i]),R=Object(k.useMemo)((function(){var e=u.right,t=u.left;return Object(j.a)(Object(j.a)({},u),{},{left:"rtl"===s?[].concat(Object(V.a)(t.map((function(e){return e+E}))),[0]):t,right:"rtl"===s?e:[].concat(Object(V.a)(e.map((function(e){return e+E}))),[0]),isSticky:x})}),[E,u,x]),N=function(e,t){return Object(k.useMemo)((function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(void 0===o)return null;n[r]=o}return n}),[e.join("_"),t])}(a,c);return k.createElement("div",{style:Object(j.a)({overflow:"hidden"},x?{top:f,bottom:p}:{}),ref:C,className:O()(n,Object(y.a)({},d,!!d))},k.createElement("table",{style:{tableLayout:"fixed",visibility:r||N?null:"hidden"}},(!r||!v||P)&&k.createElement(np,{colWidths:N?[].concat(Object(V.a)(N),[E]):[],columCount:c+1,columns:L}),m(Object(j.a)(Object(j.a)({},g),{},{stickyOffsets:R,columns:A,flattenColumns:L}))))}));vp.displayName="FixedHolder";var yp=vp,mp=[],gp={},bp=k.memo((function(e){return e.children}),(function(e,t){return!!tt()(e.props,t.props)&&(e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight)}));function Op(e){var t,n=e.prefixCls,r=e.className,o=e.rowClassName,i=e.style,a=e.data,c=e.rowKey,u=e.scroll,s=e.tableLayout,l=e.direction,f=e.title,p=e.footer,d=e.summary,v=e.id,b=e.showHeader,w=e.components,_=e.emptyText,x=e.onRow,E=e.onHeaderRow,S=e.internalHooks,C=e.transformColumns,P=e.internalRefs,T=e.sticky,A=a||mp,L=!!A.length;var R=k.useCallback((function(e,t){return df(w||{},e)||t}),[w]),N=k.useMemo((function(){return"function"==typeof c?c:function(e){return e&&e[c]}}),[c]),I=function(e){var t,n=e.expandable,r=Object(Rt.a)(e,Wf);return!1===(t="expandable"in e?Object(j.a)(Object(j.a)({},r),n):r).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),D=I.expandIcon,F=I.expandedRowKeys,z=I.defaultExpandedRowKeys,B=I.defaultExpandAllRows,U=I.expandedRowRender,H=I.onExpand,W=I.onExpandedRowsChange,Y=I.expandRowByClick,K=I.rowExpandable,X=I.expandIconColumnIndex,q=I.expandedRowClassName,Z=I.childrenColumnName,J=I.indentSize,Q=D||lp,$=Z||"children",ee=k.useMemo((function(){return U?"row":!!(e.expandable&&"rc-table-internal-hook"===S&&e.expandable.__PARENT_RENDER_ICON__||A.some((function(e){return e&&"object"===Object(M.a)(e)&&e[$]})))&&"nest"}),[!!U,A]),te=k.useState((function(){return z||(B?function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,i){r.push(t(o,i)),e(o[n])}))}(e),r}(A,N,$):[])})),ne=Object(g.a)(te,2),re=ne[0],oe=ne[1],ie=k.useMemo((function(){return new Set(F||re||[])}),[F,re]),ae=k.useCallback((function(e){var t,n=N(e,A.indexOf(e)),r=ie.has(n);r?(ie.delete(n),t=Object(V.a)(ie)):t=[].concat(Object(V.a)(ie),[n]),oe(t),H&&H(!r,e),W&&W(t)}),[N,ie,A,H,W]);var ce,ue,se,le=k.useState(0),fe=Object(g.a)(le,2),pe=fe[0],de=fe[1],he=Qf(Object(j.a)(Object(j.a)(Object(j.a)({},e),I),{},{expandable:!!U,expandedKeys:ie,getRowKey:N,onTriggerExpand:ae,expandIcon:Q,expandIconColumnIndex:X,direction:l}),"rc-table-internal-hook"===S?C:null),ve=Object(g.a)(he,2),ye=ve[0],me=ve[1],ge=k.useMemo((function(){return{columns:ye,flattenColumns:me}}),[ye,me]),be=k.useRef(),Oe=k.useRef(),we=k.useRef(),_e=k.useRef(),xe=k.useRef(),Ee=k.useState(!1),Se=Object(g.a)(Ee,2),Ce=Se[0],je=Se[1],ke=k.useState(!1),Pe=Object(g.a)(ke,2),Te=Pe[0],Me=Pe[1],Ae=$f(new Map),Le=Object(g.a)(Ae,2),Re=Le[0],Ne=Le[1],Ie=hf(me).map((function(e){return Re.get(e)})),De=k.useMemo((function(){return Ie}),[Ie.join("_")]),Fe=ep(De,me.length,l),ze=u&&vf(u.y),Be=u&&vf(u.x)||Boolean(I.fixed),Ue=Be&&me.some((function(e){return e.fixed})),Ve=k.useRef(),He=function(e,t){var n="object"===Object(M.a)(e)?e:{},r=n.offsetHeader,o=void 0===r?0:r,i=n.offsetSummary,a=void 0===i?0:i,c=n.offsetScroll,u=void 0===c?0:c,s=n.getContainer,l=(void 0===s?function(){return dp}:s)()||dp;return k.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:u,container:l}}),[u,o,a,t,l])}(T,n),Ge=He.isSticky,We=He.offsetHeader,Ye=He.offsetSummary,Ke=He.offsetScroll,Xe=He.stickyClassName,qe=He.container,Ze=null==d?void 0:d(A),Je=(ze||Ge)&&k.isValidElement(Ze)&&Ze.type===cp&&Ze.props.fixed;ze&&(ue={overflowY:"scroll",maxHeight:u.y}),Be&&(ce={overflowX:"auto"},ze||(ue={overflowY:"hidden"}),se={width:!0===(null==u?void 0:u.x)?"auto":null==u?void 0:u.x,minWidth:"100%"});var Qe=k.useCallback((function(e,t){Object(G.a)(be.current)&&Ne((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),$e=function(e){var t=Object(k.useRef)(e||null),n=Object(k.useRef)();function r(){window.clearTimeout(n.current)}return Object(k.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),et=Object(g.a)($e,2),tt=et[0],nt=et[1];function rt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e))}var ot=function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===l,i="number"==typeof r?r:n.scrollLeft,a=n||gp;nt()&&nt()!==a||(tt(a),rt(i,Oe.current),rt(i,we.current),rt(i,xe.current),rt(i,null===(t=Ve.current)||void 0===t?void 0:t.setScrollLeft));if(n){var c=n.scrollWidth,u=n.clientWidth;if(c===u)return je(!1),void Me(!1);o?(je(-i<c-u),Me(-i>0)):(je(i>0),Me(i<c-u))}},it=function(){Be&&we.current?ot({currentTarget:we.current}):(je(!1),Me(!1))},at=k.useRef(!1);k.useEffect((function(){at.current&&it()}),[Be,a,ye.length]),k.useEffect((function(){at.current=!0}),[]);var ct=k.useState(0),ut=Object(g.a)(ct,2),st=ut[0],lt=ut[1],ft=k.useState(!0),pt=Object(g.a)(ft,2),dt=pt[0],ht=pt[1];k.useEffect((function(){we.current instanceof Element?lt(Object(sf.b)(we.current).width):lt(Object(sf.b)(_e.current).width),ht(Object(uf.a)("position","sticky"))}),[]),k.useEffect((function(){"rc-table-internal-hook"===S&&P&&(P.body.current=we.current)}));var vt,yt=R(["table"],"table"),mt=k.useMemo((function(){return s||(Ue?"max-content"===(null==u?void 0:u.x)?"auto":"fixed":ze||Ge||me.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[ze,Ue,me,s,Ge]),gt={colWidths:De,columCount:me.length,stickyOffsets:Fe,onHeaderRow:E,fixHeader:ze,scroll:u},bt=k.useMemo((function(){return L?null:"function"==typeof _?_():_}),[L,_]),Ot=k.createElement(Gf,{data:A,measureColumnWidth:ze||Be||Ge,expandedKeys:ie,rowExpandable:K,getRowKey:N,onRow:x,emptyNode:bt,childrenColumnName:$}),wt=k.createElement(np,{colWidths:me.map((function(e){return e.width})),columns:me}),_t=R(["body"]);if(ze||Ge){var xt;"function"==typeof _t?(xt=_t(A,{scrollbarSize:st,ref:we,onScroll:ot}),gt.colWidths=me.map((function(e,t){var n=e.width,r=t===ye.length-1?n-st:n;return"number"!=typeof r||Number.isNaN(r)?(Object(h.a)(!1,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):r}))):xt=k.createElement("div",{style:Object(j.a)(Object(j.a)({},ce),ue),onScroll:ot,ref:we,className:O()("".concat(n,"-body"))},k.createElement(yt,{style:Object(j.a)(Object(j.a)({},se),{},{tableLayout:mt})},wt,Ot,!Je&&Ze&&k.createElement(up,{stickyOffsets:Fe,flattenColumns:me},Ze)));var Et=Object(j.a)(Object(j.a)(Object(j.a)({noData:!A.length,maxContentScroll:Be&&"max-content"===u.x},gt),ge),{},{direction:l,stickyClassName:Xe,onScroll:ot});vt=k.createElement(k.Fragment,null,!1!==b&&k.createElement(yp,Object(m.a)({},Et,{stickyTopOffset:We,className:"".concat(n,"-header"),ref:Oe}),(function(e){return k.createElement(k.Fragment,null,k.createElement(Lf,e),"top"===Je&&k.createElement(up,e,Ze))})),xt,Je&&"top"!==Je&&k.createElement(yp,Object(m.a)({},Et,{stickyBottomOffset:Ye,className:"".concat(n,"-summary"),ref:xe}),(function(e){return k.createElement(up,e,Ze)})),Ge&&k.createElement(pp,{ref:Ve,offsetScroll:Ke,scrollBodyRef:we,onScroll:ot,container:qe}))}else vt=k.createElement("div",{style:Object(j.a)(Object(j.a)({},ce),ue),className:O()("".concat(n,"-content")),onScroll:ot,ref:we},k.createElement(yt,{style:Object(j.a)(Object(j.a)({},se),{},{tableLayout:mt})},wt,!1!==b&&k.createElement(Lf,Object(m.a)({},gt,ge)),Ot,Ze&&k.createElement(up,{stickyOffsets:Fe,flattenColumns:me},Ze)));var St=Object($r.a)(e,{aria:!0,data:!0}),Ct=k.createElement("div",Object(m.a)({className:O()(n,r,(t={},Object(y.a)(t,"".concat(n,"-rtl"),"rtl"===l),Object(y.a)(t,"".concat(n,"-ping-left"),Ce),Object(y.a)(t,"".concat(n,"-ping-right"),Te),Object(y.a)(t,"".concat(n,"-layout-fixed"),"fixed"===s),Object(y.a)(t,"".concat(n,"-fixed-header"),ze),Object(y.a)(t,"".concat(n,"-fixed-column"),Ue),Object(y.a)(t,"".concat(n,"-scroll-horizontal"),Be),Object(y.a)(t,"".concat(n,"-has-fix-left"),me[0]&&me[0].fixed),Object(y.a)(t,"".concat(n,"-has-fix-right"),me[me.length-1]&&"right"===me[me.length-1].fixed),t)),style:i,id:v,ref:be},St),k.createElement(bp,{pingLeft:Ce,pingRight:Te,props:Object(j.a)(Object(j.a)({},e),{},{stickyOffsets:Fe,mergedExpandedKeys:ie})},f&&k.createElement(rp,{className:"".concat(n,"-title")},f(A)),k.createElement("div",{ref:_e,className:"".concat(n,"-container")},vt),p&&k.createElement(rp,{className:"".concat(n,"-footer")},p(A))));Be&&(Ct=k.createElement(Dt.a,{onResize:function(e){var t=e.width;t!==pe&&(it(),de(be.current?be.current.offsetWidth:t))}},Ct));var jt=k.useMemo((function(){return{prefixCls:n,getComponent:R,scrollbarSize:st,direction:l,fixedInfoList:me.map((function(e,t){return Tf(t,t,me,Fe,l)})),isSticky:Ge}}),[n,R,st,l,me,Fe,Ge]),kt=k.useMemo((function(){return Object(j.a)(Object(j.a)({},ge),{},{tableLayout:mt,rowClassName:o,expandedRowClassName:q,expandIcon:Q,expandableType:ee,expandRowByClick:Y,expandedRowRender:U,onTriggerExpand:ae,expandIconColumnIndex:X,indentSize:J,allColumnsFixedLeft:ge.flattenColumns.every((function(e){return"left"===e.fixed}))})}),[ge,mt,o,q,Q,ee,Y,U,ae,X,J]),Pt=k.useMemo((function(){return{componentWidth:pe,fixHeader:ze,fixColumn:Ue,horizonScroll:Be}}),[pe,ze,Ue,Be]),Tt=k.useMemo((function(){return{onColumnResize:Qe}}),[Qe]);return k.createElement(yf.Provider,{value:dt},k.createElement(Pf.Provider,{value:jt},k.createElement(Of.Provider,{value:kt},k.createElement(Rf.Provider,{value:Pt},k.createElement(If.Provider,{value:Tt},Ct)))))}Op.EXPAND_COLUMN=Kf,Op.Column=ff,Op.ColumnGroup=lf,Op.Summary=sp,Op.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var wp=Op,_p=n("zAh6");var xp=function(e){return null};var Ep=function(e){return null};var Sp=function(e){return function(t){var n,r=t.prefixCls,o=t.onExpand,i=t.record,a=t.expanded,c=t.expandable,u="".concat(r,"-row-expand-icon");return k.createElement("button",{type:"button",onClick:function(e){o(i,e),e.stopPropagation()},className:O()(u,(n={},Object(y.a)(n,"".concat(u,"-spaced"),!c),Object(y.a)(n,"".concat(u,"-expanded"),c&&a),Object(y.a)(n,"".concat(u,"-collapsed"),c&&!a),n)),"aria-label":a?e.collapse:e.expand})}};function Cp(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function jp(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function kp(e,t){return"function"==typeof e?e(t):e}var Pp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Tp=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:Pp}))};Tp.displayName="FilterFilled";var Mp=k.forwardRef(Tp),Ap=n("nnRT"),Lp=n.n(Ap),Rp=n("UuAG"),Np={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Ip=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:Np}))};Ip.displayName="HolderOutlined";var Dp=k.forwardRef(Ip),Fp=n("hh2X"),zp=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Bp=function(e,t){var n=e.className,r=e.style,o=e.motion,i=e.motionNodes,a=e.motionType,c=e.onMotionStart,u=e.onMotionEnd,s=e.active,l=e.treeNodeRequiredProps,f=Object(Rt.a)(e,zp),p=k.useState(!0),d=Object(g.a)(p,2),h=d[0],v=d[1],y=k.useContext(eo).prefixCls,b=k.useRef(!1),w=function(){b.current||u(),b.current=!0};return Object(k.useEffect)((function(){i&&"hide"===a&&h&&v(!1)}),[i]),Object(k.useEffect)((function(){return i&&c(),function(){i&&w()}}),[]),i?k.createElement(Pn.b,Object(m.a)({ref:t,visible:h},o,{motionAppear:"show"===a,onAppearEnd:w,onLeaveEnd:w}),(function(e,t){var n=e.className,r=e.style;return k.createElement("div",{ref:t,className:O()("".concat(y,"-treenode-motion"),n),style:r},i.map((function(e){var t=Object(m.a)({},e.data),n=e.title,r=e.key,o=e.isStart,i=e.isEnd;delete t.children;var a=So(r,l);return k.createElement(ao,Object(m.a)({},t,a,{title:n,active:s,data:e.data,key:r,isStart:o,isEnd:i}))})))})):k.createElement(ao,Object(m.a)({domRef:t,className:n,style:r},f,{active:s}))};Bp.displayName="MotionTreeNode";var Up=k.forwardRef(Bp);function Vp(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.key===n}));if(o){var a=t.findIndex((function(e){return e.key===o.key}));return t.slice(i+1,a)}return t.slice(i+1)}var Hp=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Gp={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Wp=function(){},Yp="RC_TREE_MOTION_".concat(Math.random()),Kp={key:Yp},Xp={key:Yp,level:0,index:0,pos:"0",node:Kp,nodes:[Kp]},qp={parent:null,children:[],pos:Xp.pos,data:Kp,title:null,key:Yp,isStart:[],isEnd:[]};function Zp(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function Jp(e){return bo(e.key,e.pos)}var Qp=k.forwardRef((function(e,t){var n=e.prefixCls,r=e.data,o=(e.selectable,e.checkable,e.expandedKeys),i=e.selectedKeys,a=e.checkedKeys,c=e.loadedKeys,u=e.loadingKeys,s=e.halfCheckedKeys,l=e.keyEntities,f=e.disabled,p=e.dragging,d=e.dragOverNodeKey,h=e.dropPosition,v=e.motion,y=e.height,b=e.itemHeight,O=e.virtual,w=e.focusable,_=e.activeItem,x=e.focused,E=e.tabIndex,S=e.onKeyDown,C=e.onFocus,j=e.onBlur,P=e.onActiveChange,T=e.onListChangeStart,M=e.onListChangeEnd,A=Object(Rt.a)(e,Hp),L=k.useRef(null),R=k.useRef(null);k.useImperativeHandle(t,(function(){return{scrollTo:function(e){L.current.scrollTo(e)},getIndentWidth:function(){return R.current.offsetWidth}}}));var N=k.useState(o),I=Object(g.a)(N,2),D=I[0],F=I[1],z=k.useState(r),B=Object(g.a)(z,2),U=B[0],V=B[1],H=k.useState(r),G=Object(g.a)(H,2),W=G[0],Y=G[1],K=k.useState([]),X=Object(g.a)(K,2),q=X[0],Z=X[1],J=k.useState(null),Q=Object(g.a)(J,2),$=Q[0],ee=Q[1],te=k.useRef(r);function ne(){var e=te.current;V(e),Y(e),Z([]),ee(null),M()}te.current=r,k.useEffect((function(){F(o);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(D,o);if(null!==e.key)if(e.add){var t=U.findIndex((function(t){return t.key===e.key})),n=Zp(Vp(U,r,e.key),O,y,b),i=U.slice();i.splice(t+1,0,qp),Y(i),Z(n),ee("show")}else{var a=r.findIndex((function(t){return t.key===e.key})),c=Zp(Vp(r,U,e.key),O,y,b),u=r.slice();u.splice(a+1,0,qp),Y(u),Z(c),ee("hide")}else U!==r&&(V(r),Y(r))}),[o,r]),k.useEffect((function(){p||ne()}),[p]);var re=v?W:r,oe={expandedKeys:o,selectedKeys:i,loadedKeys:c,loadingKeys:u,checkedKeys:a,halfCheckedKeys:s,dragOverNodeKey:d,dropPosition:h,keyEntities:l};return k.createElement(k.Fragment,null,x&&_&&k.createElement("span",{style:Gp,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(_)),k.createElement("div",null,k.createElement("input",{style:Gp,disabled:!1===w||f,tabIndex:!1!==w?E:null,onKeyDown:S,onFocus:C,onBlur:j,value:"",onChange:Wp,"aria-label":"for screen reader"})),k.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},k.createElement("div",{className:"".concat(n,"-indent")},k.createElement("div",{ref:R,className:"".concat(n,"-indent-unit")}))),k.createElement(Fp.a,Object(m.a)({},A,{data:re,itemKey:Jp,height:y,fullHeight:!1,virtual:O,itemHeight:b,prefixCls:"".concat(n,"-list"),ref:L,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return Jp(e)===Yp}))&&ne()}}),(function(e){var t=e.pos,n=Object(m.a)({},e.data),r=e.title,o=e.key,i=e.isStart,a=e.isEnd,c=bo(o,t);delete n.key,delete n.children;var u=So(c,oe);return k.createElement(Up,Object(m.a)({},n,u,{title:r,active:!!_&&o===_.key,pos:t,data:e.data,isStart:i,isEnd:a,motion:v,motionNodes:o===Yp?q:null,motionType:$,onMotionStart:T,onMotionEnd:ne,treeNodeRequiredProps:oe,onMouseMove:function(){P(null)}}))})))}));Qp.displayName="NodeList";var $p=Qp;var ed=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;Object(x.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).destroyed=!1,e.delayedDragEnterLogic=void 0,e.loadingRetryTimes={},e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Oo()},e.dragStartMousePosition=null,e.dragNode=void 0,e.currentMouseOverDroppableNodeKey=null,e.listRef=k.createRef(),e.onNodeDragStart=function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=e.props.onDragStart,c=n.props.eventKey;e.dragNode=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var u=co(o,c);e.setState({draggingNodeKey:c,dragChildrenKeys:fo(c,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(u),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:Co(n.props)})},e.onNodeDragEnter=function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,c=r.flattenNodes,u=r.indent,s=e.props,l=s.onDragEnter,f=s.onExpand,p=s.allowDrop,d=s.direction,h=n.props,v=h.pos,y=h.eventKey,m=Object(Qr.a)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==y&&(e.currentMouseOverDroppableNodeKey=y),m){var g=ho(t,m,n,u,e.dragStartMousePosition,p,c,i,o,d),b=g.dropPosition,O=g.dropLevelOffset,w=g.dropTargetKey,_=g.dropContainerKey,x=g.dropTargetPos,E=g.dropAllowed,S=g.dragOverNodeKey;-1===a.indexOf(w)&&E?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),m.props.eventKey!==n.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[v]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var r=Object(V.a)(o),a=i[n.props.eventKey];a&&(a.children||[]).length&&(r=uo(o,n.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(r),null==f||f(r,{node:Co(n.props),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),m.props.eventKey!==w||0!==O?(e.setState({dragOverNodeKey:S,dropPosition:b,dropLevelOffset:O,dropTargetKey:w,dropContainerKey:_,dropTargetPos:x,dropAllowed:E}),null==l||l({event:t,node:Co(n.props),expandedKeys:o})):e.resetDragState()):e.resetDragState()}else e.resetDragState()},e.onNodeDragOver=function(t,n){var r=e.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,c=r.expandedKeys,u=r.indent,s=e.props,l=s.onDragOver,f=s.allowDrop,p=s.direction,d=Object(Qr.a)(e).dragNode;if(d){var h=ho(t,d,n,u,e.dragStartMousePosition,f,i,a,c,p),v=h.dropPosition,y=h.dropLevelOffset,m=h.dropTargetKey,g=h.dropContainerKey,b=h.dropAllowed,O=h.dropTargetPos,w=h.dragOverNodeKey;-1===o.indexOf(m)&&b&&(d.props.eventKey===m&&0===y?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():v===e.state.dropPosition&&y===e.state.dropLevelOffset&&m===e.state.dropTargetKey&&g===e.state.dropContainerKey&&O===e.state.dropTargetPos&&b===e.state.dropAllowed&&w===e.state.dragOverNodeKey||e.setState({dropPosition:v,dropLevelOffset:y,dropTargetKey:m,dropContainerKey:g,dropTargetPos:O,dropAllowed:b,dragOverNodeKey:w}),null==l||l({event:t,node:Co(n.props)}))}},e.onNodeDragLeave=function(t,n){e.currentMouseOverDroppableNodeKey!==n.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null==r||r({event:t,node:Co(n.props)})},e.onWindowDragEnd=function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==r||r({event:t,node:Co(n.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,c=i.dropPosition,u=i.dropTargetKey,s=i.dropTargetPos,l=i.dropAllowed;if(l){var f=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==u){var p=Object(j.a)(Object(j.a)({},So(u,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===u,data:e.state.keyEntities[u].node}),d=-1!==a.indexOf(u);Object(h.a)(!d,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var v=so(s),y={event:t,node:Co(p),dragNode:e.dragNode?Co(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(a),dropToGap:0!==c,dropPosition:c+Number(v[v.length-1])};o||null==f||f(y),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,a=n.expanded,c=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var u=i.filter((function(e){return e.key===c}))[0],s=Co(Object(j.a)(Object(j.a)({},So(c,e.getTreeNodeRequiredProps())),{},{data:u.data}));e.setExpandedKeys(a?co(o,c):uo(o,c)),e.onNodeExpand(t,s)}},e.onNodeClick=function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)},e.onNodeDoubleClick=function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)},e.onNodeSelect=function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,c=e.props,u=c.onSelect,s=c.multiple,l=n.selected,f=n[a.key],p=!l,d=(r=p?s?uo(r,f):[f]:co(r,f)).map((function(e){var t=i[e];return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null==u||u(r,{event:"select",selected:p,node:n,selectedNodes:d,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,r){var o,i=e.state,a=i.keyEntities,c=i.checkedKeys,u=i.halfCheckedKeys,s=e.props,l=s.checkStrictly,f=s.onCheck,p=n.key,d={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(l){var h=r?uo(c,p):co(c,p);o={checked:h,halfChecked:co(u,p)},d.checkedNodes=h.map((function(e){return a[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:h})}else{var v=Gr([].concat(Object(V.a)(c),[p]),!0,a),y=v.checkedKeys,m=v.halfCheckedKeys;if(!r){var g=new Set(y);g.delete(p);var b=Gr(Array.from(g),{checked:!1,halfCheckedKeys:m},a);y=b.checkedKeys,m=b.halfCheckedKeys}o=y,d.checkedNodes=[],d.checkedNodesPositions=[],d.halfCheckedKeys=m,y.forEach((function(e){var t=a[e];if(t){var n=t.node,r=t.pos;d.checkedNodes.push(n),d.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:m})}null==f||f(o,d)},e.onNodeLoad=function(t){var n=t.key,r=new Promise((function(r,o){e.setState((function(i){var a=i.loadedKeys,c=void 0===a?[]:a,u=i.loadingKeys,s=void 0===u?[]:u,l=e.props,f=l.loadData,p=l.onLoad;return f&&-1===c.indexOf(n)&&-1===s.indexOf(n)?(f(t).then((function(){var o=uo(e.state.loadedKeys,n);null==p||p(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:co(e.loadingKeys,n)}})),r()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:co(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var i=e.state.loadedKeys;Object(h.a)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:uo(i,n)}),r()}o(t)})),{loadingKeys:uo(s,n)}):null}))}));return r.catch((function(){})),r},e.onNodeMouseEnter=function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})},e.onNodeContextMenu=function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t||t.apply(void 0,r)},e.onBlur=function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t||t.apply(void 0,r)},e.getTreeNodeRequiredProps=function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}},e.setExpandedKeys=function(t){var n=e.state,r=_o(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:r},!0)},e.onNodeExpand=function(t,n){var r=e.state.expandedKeys,o=e.state,i=o.listChanging,a=o.fieldNames,c=e.props,u=c.onExpand,s=c.loadData,l=n.expanded,f=n[a.key];if(!i){var p=r.indexOf(f),d=!l;if(Object(h.a)(l&&-1!==p||!l&&-1===p,"Expand state not sync with index check"),r=d?uo(r,f):co(r,f),e.setExpandedKeys(r),null==u||u(r,{node:n,expanded:d,nativeEvent:t.nativeEvent}),d&&s){var v=e.onNodeLoad(n);v&&v.then((function(){var t=_o(e.state.treeData,r,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=co(e.state.expandedKeys,f);e.setExpandedKeys(t)}))}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))},e.onActiveChange=function(t){var n=e.state.activeKey,r=e.props.onActiveChange;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t}),null==r||r(t))},e.getActiveItem=function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.key===n}))||null},e.offsetActiveKey=function(t){var n=e.state,r=n.flattenNodes,o=n.activeKey,i=r.findIndex((function(e){return e.key===o}));-1===i&&t<0&&(i=r.length);var a=r[i=(i+t+r.length)%r.length];if(a){var c=a.key;e.onActiveChange(c)}else e.onActiveChange(null)},e.onKeyDown=function(t){var n=e.state,r=n.activeKey,o=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,c=e.props,u=c.onKeyDown,s=c.checkable,l=c.selectable;switch(t.which){case A.a.UP:e.offsetActiveKey(-1),t.preventDefault();break;case A.a.DOWN:e.offsetActiveKey(1),t.preventDefault()}var f=e.getActiveItem();if(f&&f.data){var p=e.getTreeNodeRequiredProps(),d=!1===f.data.isLeaf||!!(f.data[a.children]||[]).length,h=Co(Object(j.a)(Object(j.a)({},So(r,p)),{},{data:f.data,active:!0}));switch(t.which){case A.a.LEFT:d&&o.includes(r)?e.onNodeExpand({},h):f.parent&&e.onActiveChange(f.parent.key),t.preventDefault();break;case A.a.RIGHT:d&&!o.includes(r)?e.onNodeExpand({},h):f.children&&f.children.length&&e.onActiveChange(f.children[0].key),t.preventDefault();break;case A.a.ENTER:case A.a.SPACE:!s||h.disabled||!1===h.checkable||h.disableCheckbox?s||!l||h.disabled||!1===h.selectable||e.onNodeSelect({},h):e.onNodeCheck({},h,!i.includes(r))}}null==u||u(t)},e.setUncontrolledState=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,a={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(o=!0,a[n]=t[n])})),!o||n&&!i||e.setState(Object(j.a)(Object(j.a)({},a),r))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return Object(E.a)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,n=this.state,r=n.focused,o=n.flattenNodes,i=n.keyEntities,a=n.draggingNodeKey,c=n.activeKey,u=n.dropLevelOffset,s=n.dropContainerKey,l=n.dropTargetKey,f=n.dropPosition,p=n.dragOverNodeKey,d=n.indent,h=this.props,v=h.prefixCls,g=h.className,b=h.style,w=h.showLine,_=h.focusable,x=h.tabIndex,E=void 0===x?0:x,S=h.selectable,C=h.showIcon,j=h.icon,P=h.switcherIcon,T=h.draggable,A=h.checkable,L=h.checkStrictly,R=h.disabled,N=h.motion,I=h.loadData,D=h.filterTreeNode,F=h.height,z=h.itemHeight,B=h.virtual,U=h.titleRender,V=h.dropIndicatorRender,H=h.onContextMenu,G=h.onScroll,W=h.direction,Y=h.rootClassName,K=h.rootStyle,X=Object($r.a)(this.props,{aria:!0,data:!0});return T&&(t="object"===Object(M.a)(T)?T:"function"==typeof T?{nodeDraggable:T}:{}),k.createElement(eo.Provider,{value:{prefixCls:v,selectable:S,showIcon:C,icon:j,switcherIcon:P,draggable:t,draggingNodeKey:a,checkable:A,checkStrictly:L,disabled:R,keyEntities:i,dropLevelOffset:u,dropContainerKey:s,dropTargetKey:l,dropPosition:f,dragOverNodeKey:p,indent:d,direction:W,dropIndicatorRender:V,loadData:I,filterTreeNode:D,titleRender:U,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},k.createElement("div",{role:"tree",className:O()(v,g,Y,(e={},Object(y.a)(e,"".concat(v,"-show-line"),w),Object(y.a)(e,"".concat(v,"-focused"),r),Object(y.a)(e,"".concat(v,"-active-focused"),null!==c),e)),style:K},k.createElement($p,Object(m.a)({ref:this.listRef,prefixCls:v,style:b,data:o,disabled:R,selectable:S,checkable:!!A,motion:N,dragging:null!==a,height:F,itemHeight:z,virtual:B,focusable:_,focused:r,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:G},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function i(t){return!r&&t in e||r&&r[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=Oo(e.fieldNames),o.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(Object(h.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=wo(e.children)),n){o.treeData=n;var c=Eo(n,{fieldNames:a});o.keyEntities=Object(j.a)(Object(y.a)({},Yp,Xp),c.keyEntities)}var u,s=o.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?mo(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var l=Object(j.a)({},s);delete l[Yp],o.expandedKeys=Object.keys(l).map((function(e){return l[e].key}))}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?mo(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var f=_o(n||t.treeData,o.expandedKeys||t.expandedKeys,a);o.flattenNodes=f}if((e.selectable&&(i("selectedKeys")?o.selectedKeys=vo(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=vo(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?u=yo(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=yo(e.defaultCheckedKeys)||{}:n&&(u=yo(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),u)){var p=u,d=p.checkedKeys,v=void 0===d?[]:d,m=p.halfCheckedKeys,g=void 0===m?[]:m;if(!e.checkStrictly){var b=Gr(v,!0,s);v=b.checkedKeys,g=b.halfCheckedKeys}o.checkedKeys=v,o.halfCheckedKeys=g}return i("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(k.Component);ed.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r}return k.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1},ed.TreeNode=ao;var td=ed,nd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},rd=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:nd}))};rd.displayName="FileOutlined";var od=k.forwardRef(rd),id={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},ad=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:id}))};ad.displayName="FolderOpenOutlined";var cd=k.forwardRef(ad),ud={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},sd=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:ud}))};sd.displayName="FolderOutlined";var ld,fd=k.forwardRef(sd);function pd(e,t){e.forEach((function(e){var n=e.key,r=e.children;!1!==t(n,e)&&pd(r||[],t)}))}function dd(e){var t=e.treeData,n=e.expandedKeys,r=e.startKey,o=e.endKey,i=[],a=ld.None;if(r&&r===o)return[r];if(!r||!o)return[];return pd(t,(function(e){if(a===ld.End)return!1;if(function(e){return e===r||e===o}(e)){if(i.push(e),a===ld.None)a=ld.Start;else if(a===ld.Start)return a=ld.End,!1}else a===ld.Start&&i.push(e);return-1!==n.indexOf(e)})),i}function hd(e,t){var n=Object(V.a)(t),r=[];return pd(e,(function(e,t){var o=n.indexOf(e);return-1!==o&&(r.push(t),n.splice(o,1)),!!n.length})),r}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(ld||(ld={}));var vd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function yd(e){var t=e.isLeaf,n=e.expanded;return t?k.createElement(od,null):n?k.createElement(cd,null):k.createElement(fd,null)}function md(e){var t=e.treeData,n=e.children;return t||wo(n)}var gd=function(e,t){var n=e.defaultExpandAll,r=e.defaultExpandParent,o=e.defaultExpandedKeys,i=vd(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),a=k.useRef(),c=k.useRef(),u=k.createRef();k.useImperativeHandle(t,(function(){return u.current}));var s,l=k.useState(i.selectedKeys||i.defaultSelectedKeys||[]),f=Object(g.a)(l,2),p=f[0],d=f[1],h=k.useState((s=Eo(md(i)).keyEntities,n?Object.keys(s):r?mo(i.expandedKeys||o||[],s):i.expandedKeys||o)),v=Object(g.a)(h,2),b=v[0],w=v[1];k.useEffect((function(){"selectedKeys"in i&&d(i.selectedKeys)}),[i.selectedKeys]),k.useEffect((function(){"expandedKeys"in i&&w(i.expandedKeys)}),[i.expandedKeys]);var _=k.useContext(dt.b),x=_.getPrefixCls,E=_.direction,S=i.prefixCls,C=i.className,j=vd(i,["prefixCls","className"]),P=x("tree",S),T=O()("".concat(P,"-directory"),Object(y.a)({},"".concat(P,"-directory-rtl"),"rtl"===E),C);return k.createElement(Md,Object(m.a)({icon:yd,ref:u,blockNode:!0},j,{prefixCls:P,className:T,expandedKeys:b,selectedKeys:p,onSelect:function(e,t){var n,r,o=i.multiple,u=t.node,s=t.nativeEvent,l=u.key,f=void 0===l?"":l,p=md(i),h=Object(m.a)(Object(m.a)({},t),{selected:!0}),v=(null==s?void 0:s.ctrlKey)||(null==s?void 0:s.metaKey),y=null==s?void 0:s.shiftKey;o&&v?(r=e,a.current=f,c.current=r,h.selectedNodes=hd(p,r)):o&&y?(r=Array.from(new Set([].concat(Object(V.a)(c.current||[]),Object(V.a)(dd({treeData:p,expandedKeys:b,startKey:f,endKey:a.current}))))),h.selectedNodes=hd(p,r)):(r=[f],a.current=f,c.current=r,h.selectedNodes=hd(p,r)),null===(n=i.onSelect)||void 0===n||n.call(i,r,h),"selectedKeys"in i||d(r)},onExpand:function(e,t){var n;return"expandedKeys"in i||w(e),null===(n=i.onExpand)||void 0===n?void 0:n.call(i,e,t)}}))},bd=k.forwardRef(gd);bd.defaultProps={showIcon:!0,expandAction:"click"};var Od=bd;function wd(e){var t,n=e.dropPosition,r=e.dropLevelOffset,o=e.prefixCls,i=e.indent,a=e.direction,c=void 0===a?"ltr":a,u="ltr"===c?"left":"right",s="ltr"===c?"right":"left",l=(t={},Object(y.a)(t,u,-r*i+4),Object(y.a)(t,s,0),t);switch(n){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[u]=i+4}return P.a.createElement("div",{style:l,className:"".concat(o,"-drop-indicator")})}var _d=n("yiAd"),xd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Ed=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:xd}))};Ed.displayName="MinusSquareOutlined";var Sd=k.forwardRef(Ed),Cd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},jd=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:Cd}))};jd.displayName="PlusSquareOutlined";var kd=k.forwardRef(jd);function Pd(e,t,n,r){var o,i=r.isLeaf,a=r.expanded;if(r.loading)return k.createElement(Fr.a,{className:"".concat(e,"-switcher-loading-icon")});if(n&&"object"===Object(M.a)(n)&&(o=n.showLeafIcon),i)return n?"object"!==Object(M.a)(n)||o?k.createElement(od,{className:"".concat(e,"-switcher-line-icon")}):k.createElement("span",{className:"".concat(e,"-switcher-leaf-line")}):null;var c="".concat(e,"-switcher-icon"),u="function"==typeof t?t(r):t;return Object(Li.b)(u)?Object(Li.a)(u,{className:O()(u.props.className||"",c)}):u||(n?a?k.createElement(Sd,{className:"".concat(e,"-switcher-line-icon")}):k.createElement(kd,{className:"".concat(e,"-switcher-line-icon")}):k.createElement(_d.a,{className:c}))}var Td=k.forwardRef((function(e,t){var n,r=k.useContext(dt.b),o=r.getPrefixCls,i=r.direction,a=r.virtual,c=e.prefixCls,u=e.className,s=e.showIcon,l=e.showLine,f=e.switcherIcon,p=e.blockNode,d=e.children,h=e.checkable,v=e.selectable,g=e.draggable,b=o("tree",c),w=Object(m.a)(Object(m.a)({},e),{showLine:Boolean(l),dropIndicatorRender:wd}),_=k.useMemo((function(){if(!g)return!1;var e={};switch(Object(M.a)(g)){case"function":e.nodeDraggable=g;break;case"object":e=Object(m.a)({},g)}return!1!==e.icon&&(e.icon=e.icon||k.createElement(Dp,null)),e}),[g]);return k.createElement(td,Object(m.a)({itemHeight:20,ref:t,virtual:a},w,{prefixCls:b,className:O()((n={},Object(y.a)(n,"".concat(b,"-icon-hide"),!s),Object(y.a)(n,"".concat(b,"-block-node"),p),Object(y.a)(n,"".concat(b,"-unselectable"),!v),Object(y.a)(n,"".concat(b,"-rtl"),"rtl"===i),n),u),direction:i,checkable:h?k.createElement("span",{className:"".concat(b,"-checkbox-inner")}):h,selectable:v,switcherIcon:function(e){return Pd(b,f,l,e)},draggable:_}),d)}));Td.TreeNode=ao,Td.DirectoryTree=Od,Td.defaultProps={checkable:!1,selectable:!0,showIcon:!1,motion:Object(m.a)(Object(m.a)({},Vo.a),{motionAppear:!1}),blockNode:!1};var Md=Td,Ad=Md,Ld=n("hkKa");var Rd=n("xynK"),Nd=function(e){var t=e.value,n=e.onChange,r=e.filterSearch,o=e.tablePrefixCls,i=e.locale;return r?k.createElement("div",{className:"".concat(o,"-filter-dropdown-search")},k.createElement(Dc.a,{prefix:k.createElement(Rd.a,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:"".concat(o,"-filter-dropdown-search-input")})):null},Id=function(e){return k.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)};function Dd(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function Fd(e){var t=e.filters,n=e.prefixCls,r=e.filteredKeys,o=e.filterMultiple,i=e.searchValue,a=e.filterSearch;return t.map((function(e,t){var c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:"".concat(n,"-dropdown-submenu"),children:Fd({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};var u=o?ai:Xs.a,s={key:void 0!==e.value?c:t,label:k.createElement(k.Fragment,null,k.createElement(u,{checked:r.includes(c)}),k.createElement("span",null,e.text))};return i.trim()?"function"==typeof a?a(i,e)?s:null:Dd(i,e.text)?s:null:s}))}var zd=function(e){var t,n,r,o,i=e.tablePrefixCls,a=e.prefixCls,c=e.column,u=e.dropdownPrefixCls,s=e.columnKey,l=e.filterMultiple,p=e.filterMode,d=void 0===p?"menu":p,h=e.filterSearch,v=void 0!==h&&h,m=e.filterState,b=e.triggerFilter,w=e.locale,_=e.children,x=e.getPopupContainer,E=c.filterDropdownVisible,S=c.onFilterDropdownVisibleChange,C=c.filterResetToDefaultFilteredValue,j=c.defaultFilteredValue,P=k.useState(!1),T=Object(g.a)(P,2),M=T[0],A=T[1],L=!(!m||!(null===(t=m.filteredKeys)||void 0===t?void 0:t.length)&&!m.forceFiltered),R=function(e){A(e),null==S||S(e)},N="boolean"==typeof E?E:M,I=null==m?void 0:m.filteredKeys,D=(n=I||[],r=k.useRef(n),o=Object(Ld.a)(),[function(){return r.current},function(e){r.current=e,o()}]),F=Object(g.a)(D,2),z=F[0],B=F[1],U=function(e){var t=e.selectedKeys;B(t)},V=function(e,t){var n=t.node,r=t.checked;U(l?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};k.useEffect((function(){M&&U({selectedKeys:I||[]})}),[I]);var H=k.useState([]),G=Object(g.a)(H,2),W=G[0],Y=G[1],K=function(e){Y(e)},X=k.useState(""),q=Object(g.a)(X,2),Z=q[0],J=q[1],Q=function(e){var t=e.target.value;J(t)};k.useEffect((function(){M||J("")}),[M]);var $,ee=function(e){var t=e&&e.length?e:null;return null!==t||m&&m.filteredKeys?Lp()(t,null==m?void 0:m.filteredKeys)?null:void b({column:c,key:s,filteredKeys:t}):null},te=function(){R(!1),ee(z())},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},t=e.confirm,n=e.closeDropdown;t&&ee([]),n&&R(!1),J(""),B(C?(j||[]).map((function(e){return String(e)})):[])},re=O()(Object(y.a)({},"".concat(u,"-menu-without-submenu"),!(c.filters||[]).some((function(e){return e.children})))),oe=function(e){if(e.target.checked){var t=Ud(null==c?void 0:c.filters).map((function(e){return String(e)}));B(t)}else B([])},ie=function e(t){return(t.filters||[]).map((function(t,n){var r=String(t.value),o={title:t.text,key:void 0!==t.value?r:n};return t.children&&(o.children=e({filters:t.children})),o}))};if("function"==typeof c.filterDropdown)$=c.filterDropdown({prefixCls:"".concat(u,"-custom"),setSelectedKeys:function(e){return U({selectedKeys:e})},selectedKeys:z(),confirm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0},t=e.closeDropdown;t&&R(!1),ee(z())},clearFilters:ne,filters:c.filters,visible:N});else if(c.filterDropdown)$=c.filterDropdown;else{var ae=z()||[];$=k.createElement(k.Fragment,null,0===(c.filters||[]).length?k.createElement(oa.a,{image:oa.a.PRESENTED_IMAGE_SIMPLE,description:w.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===d?k.createElement(k.Fragment,null,k.createElement(Nd,{filterSearch:v,value:Z,onChange:Q,tablePrefixCls:i,locale:w}),k.createElement("div",{className:"".concat(i,"-filter-dropdown-tree")},l?k.createElement(ai,{checked:ae.length===Ud(c.filters).length,indeterminate:ae.length>0&&ae.length<Ud(c.filters).length,className:"".concat(i,"-filter-dropdown-checkall"),onChange:oe},w.filterCheckall):null,k.createElement(Ad,{checkable:!0,selectable:!1,blockNode:!0,multiple:l,checkStrictly:!l,className:"".concat(u,"-menu"),onCheck:V,checkedKeys:ae,selectedKeys:ae,showIcon:!1,treeData:ie({filters:c.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Z.trim()?function(e){return Dd(Z,e.title)}:void 0}))):k.createElement(k.Fragment,null,k.createElement(Nd,{filterSearch:v,value:Z,onChange:Q,tablePrefixCls:i,locale:w}),k.createElement(ss.a,{selectable:!0,multiple:l,prefixCls:"".concat(u,"-menu"),className:re,onSelect:U,onDeselect:U,selectedKeys:ae,getPopupContainer:x,openKeys:W,onOpenChange:K,items:Fd({filters:c.filters||[],filterSearch:v,prefixCls:a,filteredKeys:z(),filterMultiple:l,searchValue:Z})})),k.createElement("div",{className:"".concat(a,"-dropdown-btns")},k.createElement(f.a,{type:"link",size:"small",disabled:C?Lp()((j||[]).map((function(e){return String(e)})),ae):0===ae.length,onClick:function(){return ne()}},w.filterReset),k.createElement(f.a,{type:"primary",size:"small",onClick:te},w.filterConfirm)))}c.filterDropdown&&($=k.createElement(Rp.a,{selectable:void 0},$));var ce,ue=k.createElement(Id,{className:"".concat(a,"-dropdown")},$);ce="function"==typeof c.filterIcon?c.filterIcon(L):c.filterIcon?c.filterIcon:k.createElement(Mp,null);var se=k.useContext(dt.b).direction;return k.createElement("div",{className:"".concat(a,"-column")},k.createElement("span",{className:"".concat(i,"-column-title")},_),k.createElement(ra.a,{overlay:ue,trigger:["click"],visible:N,onVisibleChange:function(e){e&&void 0!==I&&B(I||[]),R(e),e||c.filterDropdown||te()},getPopupContainer:x,placement:"rtl"===se?"bottomLeft":"bottomRight"},k.createElement("span",{role:"button",tabIndex:-1,className:O()("".concat(a,"-trigger"),{active:L}),onClick:function(e){e.stopPropagation()}},ce)))};function Bd(e,t,n){var r=[];return(e||[]).forEach((function(e,o){var i,a=jp(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){var c=e.filteredValue;"filterDropdown"in e||(c=null!==(i=null==c?void 0:c.map(String))&&void 0!==i?i:c),r.push({column:e,key:Cp(e,a),filteredKeys:c,forceFiltered:e.filtered})}else r.push({column:e,key:Cp(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(Object(V.a)(r),Object(V.a)(Bd(e.children,t,a))))})),r}function Ud(e){var t=[];return(e||[]).forEach((function(e){var n=e.value,r=e.children;t.push(n),r&&(t=[].concat(Object(V.a)(t),Object(V.a)(Ud(r))))})),t}function Vd(e){var t={};return e.forEach((function(e){var n=e.key,r=e.filteredKeys,o=e.column,i=o.filters;if(o.filterDropdown)t[n]=r||null;else if(Array.isArray(r)){var a=Ud(i);t[n]=a.filter((function(e){return r.includes(String(e))}))}else t[n]=null})),t}function Hd(e,t){return t.reduce((function(e,t){var n=t.column,r=n.onFilter,o=n.filters,i=t.filteredKeys;return r&&i&&i.length?e.filter((function(e){return i.some((function(t){var n=Ud(o),i=n.findIndex((function(e){return String(e)===String(t)})),a=-1!==i?n[i]:t;return r(a,e)}))})):e}),e)}var Gd=function(e){var t=e.prefixCls,n=e.dropdownPrefixCls,r=e.mergedColumns,o=e.onFilterChange,i=e.getPopupContainer,a=e.locale,c=k.useState(Bd(r,!0)),u=Object(g.a)(c,2),s=u[0],l=u[1],f=k.useMemo((function(){var e=Bd(r,!1),t=!0;return e.forEach((function(e){void 0!==e.filteredKeys?t=!1:!1})),t?s:e}),[r,s]),p=k.useCallback((function(){return Vd(f)}),[f]),d=function(e){var t=f.filter((function(t){return t.key!==e.key}));t.push(e),l(t),o(Vd(t),t)};return[function(e){return function e(t,n,r,o,i,a,c,u){return r.map((function(r,s){var l=jp(s,u),f=r.filterMultiple,p=void 0===f||f,d=r.filterMode,h=r.filterSearch,v=r;if(v.filters||v.filterDropdown){var y=Cp(v,l),g=o.find((function(e){var t=e.key;return y===t}));v=Object(m.a)(Object(m.a)({},v),{title:function(e){return k.createElement(zd,{tablePrefixCls:t,prefixCls:"".concat(t,"-filter"),dropdownPrefixCls:n,column:v,columnKey:y,filterState:g,filterMultiple:p,filterMode:d,filterSearch:h,triggerFilter:i,locale:c,getPopupContainer:a},kp(r.title,e))}})}return"children"in v&&(v=Object(m.a)(Object(m.a)({},v),{children:e(t,n,v.children,o,i,a,c,l)})),v}))}(t,n,e,f,d,i,a)},f,p]};var Wd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Yd(e,t,n){var r=t&&"object"===Object(M.a)(t)?t:{},o=r.total,i=void 0===o?0:o,a=Wd(r,["total"]),c=Object(k.useState)((function(){return{current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:10}})),u=Object(g.a)(c,2),s=u[0],l=u[1],f=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(s,a,{total:i>0?i:e}),p=Math.ceil((i||e)/f.pageSize);f.current>p&&(f.current=p||1);var d=function(e,t){l({current:null!=e?e:1,pageSize:t||f.pageSize})};return!1===t?[{},function(){}]:[Object(m.a)(Object(m.a)({},f),{onChange:function(e,r){var o;t&&(null===(o=t.onChange)||void 0===o||o.call(t,e,r)),d(e,r),n(e,r||(null==f?void 0:f.pageSize))}}),d]}var Kd=n("0Jwk"),Xd={},qd=[];function Zd(e,t){var n=e||{},r=n.preserveSelectedRowKeys,o=n.selectedRowKeys,i=n.defaultSelectedRowKeys,a=n.getCheckboxProps,c=n.onChange,u=n.onSelect,s=n.onSelectAll,l=n.onSelectInvert,f=n.onSelectNone,p=n.onSelectMultiple,d=n.columnWidth,h=n.type,v=n.selections,b=n.fixed,O=n.renderCell,w=n.hideSelectAll,_=n.checkStrictly,x=void 0===_||_,E=t.prefixCls,S=t.data,C=t.pageData,j=t.getRecordByKey,P=t.getRowKey,A=t.expandType,L=t.childrenColumnName,R=t.locale,N=t.getPopupContainer,I=Object(T.a)(o||i||qd,{value:o}),D=Object(g.a)(I,2),F=D[0],z=D[1],B=k.useRef(new Map),U=Object(k.useCallback)((function(e){if(r){var t=new Map;e.forEach((function(e){var n=j(e);!n&&B.current.has(e)&&(n=B.current.get(e)),t.set(e,n)})),B.current=t}}),[j,r]);k.useEffect((function(){U(F)}),[F]);var H=Object(k.useMemo)((function(){return x?{keyEntities:null}:Eo(S,{externalGetKey:P,childrenPropName:L})}),[S,P,x,L]).keyEntities,G=Object(k.useMemo)((function(){return function e(t,n){var r=[];return(t||[]).forEach((function(t){r.push(t),t&&"object"===Object(M.a)(t)&&n in t&&(r=[].concat(Object(V.a)(r),Object(V.a)(e(t[n],n))))})),r}(C,L)}),[C,L]),W=Object(k.useMemo)((function(){var e=new Map;return G.forEach((function(t,n){var r=P(t,n),o=(a?a(t):null)||{};e.set(r,o)})),e}),[G,P,a]),Y=Object(k.useCallback)((function(e){var t;return!!(null===(t=W.get(P(e)))||void 0===t?void 0:t.disabled)}),[W,P]),K=Object(k.useMemo)((function(){if(x)return[F||[],[]];var e=Gr(F,!0,H,Y);return[e.checkedKeys||[],e.halfCheckedKeys]}),[F,x,H,Y]),X=Object(g.a)(K,2),q=X[0],Z=X[1],J=Object(k.useMemo)((function(){var e="radio"===h?q.slice(0,1):q;return new Set(e)}),[q,h]),Q=Object(k.useMemo)((function(){return"radio"===h?new Set:new Set(Z)}),[Z,h]),$=Object(k.useState)(null),ee=Object(g.a)($,2),te=ee[0],ne=ee[1];k.useEffect((function(){e||z(qd)}),[!!e]);var re=Object(k.useCallback)((function(e,t){var n,o;U(e),r?(n=e,o=e.map((function(e){return B.current.get(e)}))):(n=[],o=[],e.forEach((function(e){var t=j(e);void 0!==t&&(n.push(e),o.push(t))}))),z(n),null==c||c(n,o,{type:t})}),[z,j,c,r]),oe=Object(k.useCallback)((function(e,t,n,r){if(u){var o=n.map((function(e){return j(e)}));u(j(e),t,o,r)}re(n,"single")}),[u,j,re]),ie=Object(k.useMemo)((function(){return!v||w?null:(!0===v?["SELECT_ALL","SELECT_INVERT","SELECT_NONE"]:v).map((function(e){return"SELECT_ALL"===e?{key:"all",text:R.selectionAll,onSelect:function(){re(S.map((function(e,t){return P(e,t)})).filter((function(e){var t=W.get(e);return!(null==t?void 0:t.disabled)||J.has(e)})),"all")}}:"SELECT_INVERT"===e?{key:"invert",text:R.selectInvert,onSelect:function(){var e=new Set(J);C.forEach((function(t,n){var r=P(t,n),o=W.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));var t=Array.from(e);l&&l(t),re(t,"invert")}}:"SELECT_NONE"===e?{key:"none",text:R.selectNone,onSelect:function(){null==f||f(),re(Array.from(J).filter((function(e){var t=W.get(e);return null==t?void 0:t.disabled})),"none")}}:e})).map((function(e){return Object(m.a)(Object(m.a)({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(o)),ne(null)}})}))}),[v,J,C,P,l,re]);return[Object(k.useCallback)((function(t){var n;if(!e)return t.filter((function(e){return e!==Xd}));var r,o,i=Object(V.a)(t),a=new Set(J),c=G.map(P).filter((function(e){return!W.get(e).disabled})),u=c.every((function(e){return a.has(e)})),l=c.some((function(e){return a.has(e)}));if("radio"!==h){var f;if(ie){var v=k.createElement(ss.a,{getPopupContainer:N,items:ie.map((function(e,t){var n=e.key,r=e.text,o=e.onSelect;return{key:n||t,onClick:function(){null==o||o(c)},label:r}}))});f=k.createElement("div",{className:"".concat(E,"-selection-extra")},k.createElement(ra.a,{overlay:v,getPopupContainer:N},k.createElement("span",null,k.createElement(Fc.a,null))))}var g=G.map((function(e,t){var n=P(e,t),r=W.get(n)||{};return Object(m.a)({checked:a.has(n)},r)})).filter((function(e){return e.disabled})),_=!!g.length&&g.length===G.length,S=_&&g.every((function(e){return e.checked})),C=_&&g.some((function(e){return e.checked}));r=!w&&k.createElement("div",{className:"".concat(E,"-selection")},k.createElement(ai,{checked:_?S:!!G.length&&u,indeterminate:_?!S&&C:!u&&l,onChange:function(){var e=[];u?c.forEach((function(t){a.delete(t),e.push(t)})):c.forEach((function(t){a.has(t)||(a.add(t),e.push(t))}));var t=Array.from(a);null==s||s(!u,t.map((function(e){return j(e)})),e.map((function(e){return j(e)}))),re(t,"all"),ne(null)},disabled:0===G.length||_,skipGroup:!0}),f)}o="radio"===h?function(e,t,n){var r=P(t,n),o=a.has(r);return{node:k.createElement(Xs.a,Object(m.a)({},W.get(r),{checked:o,onClick:function(e){return e.stopPropagation()},onChange:function(e){a.has(r)||oe(r,!0,[r],e.nativeEvent)}})),checked:o}}:function(e,t,n){var r,o,i=P(t,n),u=a.has(i),s=Q.has(i),l=W.get(i);return o="nest"===A?s:null!==(r=null==l?void 0:l.indeterminate)&&void 0!==r?r:s,{node:k.createElement(ai,Object(m.a)({},l,{indeterminate:o,checked:u,skipGroup:!0,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=e.nativeEvent,n=t.shiftKey,r=-1,o=-1;if(n&&x){var s=new Set([te,i]);c.some((function(e,t){if(s.has(e)){if(-1!==r)return o=t,!0;r=t}return!1}))}if(-1!==o&&r!==o&&x){var l=c.slice(r,o+1),f=[];u?l.forEach((function(e){a.has(e)&&(f.push(e),a.delete(e))})):l.forEach((function(e){a.has(e)||(f.push(e),a.add(e))}));var d=Array.from(a);null==p||p(!u,d.map((function(e){return j(e)})),f.map((function(e){return j(e)}))),re(d,"multiple")}else{var h=q;if(x){var v=u?co(h,i):uo(h,i);oe(i,!u,v,t)}else{var y=Gr([].concat(Object(V.a)(h),[i]),!0,H,Y),m=y.checkedKeys,g=y.halfCheckedKeys,b=m;if(u){var O=new Set(m);O.delete(i),b=Gr(Array.from(O),{checked:!1,halfCheckedKeys:g},H,Y).checkedKeys}oe(i,!u,b,t)}}ne(u?null:i)}})),checked:u}};if(!i.includes(Xd))if(0===i.findIndex((function(e){var t;return"EXPAND_COLUMN"===(null===(t=e[Yf])||void 0===t?void 0:t.columnType)}))){var T=i,M=Object(Kd.a)(T),L=M[0],R=M.slice(1);i=[L,Xd].concat(Object(V.a)(R))}else i=[Xd].concat(Object(V.a)(i));var I=i.indexOf(Xd),D=(i=i.filter((function(e,t){return e!==Xd||t===I})))[I-1],F=i[I+1],z=b;void 0===z&&(void 0!==(null==F?void 0:F.fixed)?z=F.fixed:void 0!==(null==D?void 0:D.fixed)&&(z=D.fixed)),z&&D&&"EXPAND_COLUMN"===(null===(n=D[Yf])||void 0===n?void 0:n.columnType)&&void 0===D.fixed&&(D.fixed=z);var B=Object(y.a)({fixed:z,width:d,className:"".concat(E,"-selection-column"),title:e.columnTitle||r,render:function(e,t,n){var r=o(e,t,n),i=r.node,a=r.checked;return O?O(a,t,n,i):i}},Yf,{className:"".concat(E,"-selection-col")});return i.map((function(e){return e===Xd?B:e}))}),[P,G,e,q,J,Q,d,ie,A,te,W,p,oe,Y]),J]}var Jd=n("29UP"),Qd={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},$d=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:Qd}))};$d.displayName="CaretUpOutlined";var eh=k.forwardRef($d);function th(e){return"object"===Object(M.a)(e.sorter)&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function nh(e){return"function"==typeof e?e:!(!e||"object"!==Object(M.a)(e)||!e.compare)&&e.compare}function rh(e,t,n){var r=[];function o(e,t){r.push({column:e,key:Cp(e,t),multiplePriority:th(e),sortOrder:e.sortOrder})}return(e||[]).forEach((function(e,i){var a=jp(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(Object(V.a)(r),Object(V.a)(rh(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:Cp(e,a),multiplePriority:th(e),sortOrder:e.defaultSortOrder}))})),r}function oh(e){var t=e.column;return{column:t,order:e.sortOrder,field:t.dataIndex,columnKey:t.key}}function ih(e){var t=e.filter((function(e){return e.sortOrder})).map(oh);return 0===t.length&&e.length?Object(m.a)(Object(m.a)({},oh(e[e.length-1])),{column:void 0}):t[0]||{}}function ah(e,t,n){var r=t.slice().sort((function(e,t){return t.multiplePriority-e.multiplePriority})),o=e.slice(),i=r.filter((function(e){var t=e.column.sorter,n=e.sortOrder;return nh(t)&&n}));return i.length?o.sort((function(e,t){for(var n=0;n<i.length;n+=1){var r=i[n],o=r.column.sorter,a=r.sortOrder,c=nh(o);if(c&&a){var u=c(e,t,a);if(0!==u)return"ascend"===a?u:-u}}return 0})).map((function(e){var r=e[n];return r?Object(m.a)(Object(m.a)({},e),Object(y.a)({},n,ah(r,t,n))):e})):o}function ch(e){var t=e.prefixCls,n=e.mergedColumns,r=e.onSorterChange,o=e.sortDirections,i=e.tableLocale,a=e.showSorterTooltip,c=k.useState(rh(n,!0)),u=Object(g.a)(c,2),s=u[0],l=u[1],f=k.useMemo((function(){var e=!0,t=rh(n,!1);if(!t.length)return s;var r=[];function o(t){e?r.push(t):r.push(Object(m.a)(Object(m.a)({},t),{sortOrder:null}))}var i=null;return t.forEach((function(t){null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))})),r}),[n,s]),p=k.useMemo((function(){var e=f.map((function(e){return{column:e.column,order:e.sortOrder}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[f]);function d(e){var t;t=!1!==e.multiplePriority&&f.length&&!1!==f[0].multiplePriority?[].concat(Object(V.a)(f.filter((function(t){return t.key!==e.key}))),[e]):[e],l(t),r(ih(t),t)}return[function(e){return function e(t,n,r,o,i,a,c,u){return(n||[]).map((function(n,s){var l=jp(s,u),f=n;if(f.sorter){var p=f.sortDirections||i,d=void 0===f.showSorterTooltip?c:f.showSorterTooltip,h=Cp(f,l),v=r.find((function(e){return e.key===h})),g=v?v.sortOrder:null,b=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(p,g),w=p.includes("ascend")&&k.createElement(eh,{className:O()("".concat(t,"-column-sorter-up"),{active:"ascend"===g})}),_=p.includes("descend")&&k.createElement(Jd.a,{className:O()("".concat(t,"-column-sorter-down"),{active:"descend"===g})}),x=a||{},E=x.cancelSort,S=x.triggerAsc,C=x.triggerDesc,j=E;"descend"===b?j=C:"ascend"===b&&(j=S);var P="object"===Object(M.a)(d)?d:{title:j};f=Object(m.a)(Object(m.a)({},f),{className:O()(f.className,Object(y.a)({},"".concat(t,"-column-sort"),g)),title:function(e){var r=k.createElement("div",{className:"".concat(t,"-column-sorters")},k.createElement("span",{className:"".concat(t,"-column-title")},kp(n.title,e)),k.createElement("span",{className:O()("".concat(t,"-column-sorter"),Object(y.a)({},"".concat(t,"-column-sorter-full"),!(!w||!_)))},k.createElement("span",{className:"".concat(t,"-column-sorter-inner")},w,_)));return d?k.createElement(Na.a,Object(m.a)({},P),r):r},onHeaderCell:function(e){var r=n.onHeaderCell&&n.onHeaderCell(e)||{},i=r.onClick,a=r.onKeyDown;return r.onClick=function(e){o({column:n,key:h,sortOrder:b,multiplePriority:th(n)}),null==i||i(e)},r.onKeyDown=function(e){e.keyCode===A.a.ENTER&&(o({column:n,key:h,sortOrder:b,multiplePriority:th(n)}),null==a||a(e))},g&&(r["aria-sort"]="ascend"===g?"ascending":"descending"),r.className=O()(r.className,"".concat(t,"-column-has-sorters")),r.tabIndex=0,r}})}return"children"in f&&(f=Object(m.a)(Object(m.a)({},f),{children:e(t,f.children,r,o,i,a,c,l)})),f}))}(t,e,f,d,o,i,a)},f,p,function(){return ih(f)}]}function uh(e){return[k.useCallback((function(t){return function e(t,n){return t.map((function(t){var r=Object(m.a)({},t);return r.title=kp(t.title,n),"children"in r&&(r.children=e(r.children,n)),r}))}(t,e)}),[e])]}var sh=[];function lh(e,t){var n,r=e.prefixCls,o=e.className,i=e.style,a=e.size,c=e.bordered,u=e.dropdownPrefixCls,s=e.dataSource,l=e.pagination,f=e.rowSelection,p=e.rowKey,d=e.rowClassName,h=e.columns,v=e.children,b=e.childrenColumnName,w=e.onChange,_=e.getPopupContainer,x=e.loading,E=e.expandIcon,S=e.expandable,C=e.expandedRowRender,j=e.expandIconColumnIndex,P=e.indentSize,T=e.scroll,A=e.sortDirections,L=e.locale,R=e.showSorterTooltip,N=void 0===R||R,I=k.useMemo((function(){return h||Zf(v)}),[h,v]),D=k.useMemo((function(){return I.some((function(e){return e.responsive}))}),[I]),F=Object(uu.a)(D),z=k.useMemo((function(){var e=new Set(Object.keys(F).filter((function(e){return F[e]})));return I.filter((function(t){return!t.responsive||t.responsive.some((function(t){return e.has(t)}))}))}),[I,F]),B=Object(St.a)(e,["className","style","columns"]),U=k.useContext(Ct.b),V=k.useContext(dt.b),H=V.locale,G=void 0===H?bc:H,W=V.renderEmpty,Y=V.direction,K=a||U,X=Object(m.a)(Object(m.a)({},G.Table),L),q=s||sh,Z=k.useContext(dt.b).getPrefixCls,J=Z("table",r),Q=Z("dropdown",u),$=Object(m.a)({childrenColumnName:b,expandIconColumnIndex:j},S),ee=$.childrenColumnName,te=void 0===ee?"children":ee,ne=k.useMemo((function(){return q.some((function(e){return null==e?void 0:e[te]}))?"nest":C||S&&S.expandedRowRender?"row":null}),[q]),re={body:k.useRef()},oe=k.useMemo((function(){return"function"==typeof p?p:function(e){return null==e?void 0:e[p]}}),[p]),ie=function(e,t,n){var r=k.useRef({});return[function(o){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){var i=new Map;!function e(r){r.forEach((function(r,o){var a=n(r,o);i.set(a,r),r&&"object"===Object(M.a)(r)&&t in r&&e(r[t]||[])}))}(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap.get(o)}]}(q,te,oe),ae=Object(g.a)(ie,1)[0],ce={},ue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(m.a)(Object(m.a)({},ce),e);n&&(ce.resetPagination(),r.pagination.current&&(r.pagination.current=1),l&&l.onChange&&l.onChange(1,r.pagination.pageSize)),T&&!1!==T.scrollToFirstRowOnChange&&re.body.current&&Object(_p.a)(0,{getContainer:function(){return re.body.current}}),null==w||w(r.pagination,r.filters,r.sorter,{currentDataSource:Hd(ah(q,r.sorterStates,te),r.filterStates),action:t})},se=ch({prefixCls:J,mergedColumns:z,onSorterChange:function(e,t){ue({sorter:e,sorterStates:t},"sort",!1)},sortDirections:A||["ascend","descend"],tableLocale:X,showSorterTooltip:N}),le=Object(g.a)(se,4),fe=le[0],pe=le[1],de=le[2],he=le[3],ve=k.useMemo((function(){return ah(q,pe,te)}),[q,pe]);ce.sorter=he(),ce.sorterStates=pe;var ye=Gd({prefixCls:J,locale:X,dropdownPrefixCls:Q,mergedColumns:z,onFilterChange:function(e,t){ue({filters:e,filterStates:t},"filter",!0)},getPopupContainer:_}),me=Object(g.a)(ye,3),ge=me[0],be=me[1],Oe=me[2],we=Hd(ve,be);ce.filters=Oe(),ce.filterStates=be;var _e=uh(k.useMemo((function(){return Object(m.a)({},de)}),[de])),xe=Object(g.a)(_e,1)[0],Ee=Yd(we.length,l,(function(e,t){ue({pagination:Object(m.a)(Object(m.a)({},ce.pagination),{current:e,pageSize:t})},"paginate")})),Se=Object(g.a)(Ee,2),Ce=Se[0],je=Se[1];ce.pagination=!1===l?{}:function(e,t){var n={current:t.current,pageSize:t.pageSize},r=e&&"object"===Object(M.a)(e)?e:{};return Object.keys(r).forEach((function(e){var r=t[e];"function"!=typeof r&&(n[e]=r)})),n}(l,Ce),ce.resetPagination=je;var ke=k.useMemo((function(){if(!1===l||!Ce.pageSize)return we;var e=Ce.current,t=void 0===e?1:e,n=Ce.total,r=Ce.pageSize,o=void 0===r?10:r;return we.length<n?we.length>o?we.slice((t-1)*o,t*o):we:we.slice((t-1)*o,t*o)}),[!!l,we,Ce&&Ce.current,Ce&&Ce.pageSize,Ce&&Ce.total]),Pe=Zd(f,{prefixCls:J,data:we,pageData:ke,getRowKey:oe,getRecordByKey:ae,expandType:ne,childrenColumnName:te,locale:X,getPopupContainer:_}),Te=Object(g.a)(Pe,2),Me=Te[0],Ae=Te[1];$.__PARENT_RENDER_ICON__=$.expandIcon,$.expandIcon=$.expandIcon||E||Sp(X),"nest"===ne&&void 0===$.expandIconColumnIndex?$.expandIconColumnIndex=f?1:0:$.expandIconColumnIndex>0&&f&&($.expandIconColumnIndex-=1),"number"!=typeof $.indentSize&&($.indentSize="number"==typeof P?P:15);var Le,Re,Ne,Ie=k.useCallback((function(e){return xe(Me(ge(fe(e))))}),[fe,ge,Me]);if(!1!==l&&(null==Ce?void 0:Ce.total)){var De;De=Ce.size?Ce.size:"small"===K||"middle"===K?"small":void 0;var Fe=function(e){return k.createElement(Tu,Object(m.a)({},Ce,{className:O()("".concat(J,"-pagination ").concat(J,"-pagination-").concat(e),Ce.className),size:De}))},ze="rtl"===Y?"left":"right",Be=Ce.position;if(null!==Be&&Array.isArray(Be)){var Ue=Be.find((function(e){return-1!==e.indexOf("top")})),Ve=Be.find((function(e){return-1!==e.indexOf("bottom")})),He=Be.every((function(e){return"none"==="".concat(e)}));Ue||Ve||He||(Re=Fe(ze)),Ue&&(Le=Fe(Ue.toLowerCase().replace("top",""))),Ve&&(Re=Fe(Ve.toLowerCase().replace("bottom","")))}else Re=Fe(ze)}"boolean"==typeof x?Ne={spinning:x}:"object"===Object(M.a)(x)&&(Ne=Object(m.a)({spinning:!0},x));var Ge=O()("".concat(J,"-wrapper"),Object(y.a)({},"".concat(J,"-wrapper-rtl"),"rtl"===Y),o);return k.createElement("div",{ref:t,className:Ge,style:i},k.createElement(Du,Object(m.a)({spinning:!1},Ne),Le,k.createElement(wp,Object(m.a)({},B,{columns:z,direction:Y,expandable:$,prefixCls:J,className:O()((n={},Object(y.a)(n,"".concat(J,"-middle"),"middle"===K),Object(y.a)(n,"".concat(J,"-small"),"small"===K),Object(y.a)(n,"".concat(J,"-bordered"),c),Object(y.a)(n,"".concat(J,"-empty"),0===q.length),n)),data:ke,rowKey:oe,rowClassName:function(e,t,n){var r;return r="function"==typeof d?O()(d(e,t,n)):O()(d),O()(Object(y.a)({},"".concat(J,"-row-selected"),Ae.has(oe(e,t))),r)},emptyText:L&&L.emptyText||(W||zo.a)("Table"),internalHooks:"rc-table-internal-hook",internalRefs:re,transformColumns:Ie})),Re))}var fh=k.forwardRef(lh);fh.defaultProps={rowKey:"key"},fh.SELECTION_COLUMN=Xd,fh.EXPAND_COLUMN=wp.EXPAND_COLUMN,fh.SELECTION_ALL="SELECT_ALL",fh.SELECTION_INVERT="SELECT_INVERT",fh.SELECTION_NONE="SELECT_NONE",fh.Column=xp,fh.ColumnGroup=Ep,fh.Summary=sp;var ph=fh,dh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},hh=Ai.TimePicker,vh=Ai.RangePicker,yh=k.forwardRef((function(e,t){return k.createElement(vh,Object(m.a)({},e,{dropdownClassName:e.popupClassName,picker:"time",mode:void 0,ref:t}))})),mh=k.forwardRef((function(e,t){var n=e.addon,r=e.renderExtraFooter,o=e.popupClassName,i=dh(e,["addon","renderExtraFooter","popupClassName"]),a=k.useMemo((function(){return r||(n||void 0)}),[n,r]);return k.createElement(hh,Object(m.a)({},i,{dropdownClassName:o,mode:void 0,ref:t,renderExtraFooter:a}))}));mh.RangePicker=yh;var gh=mh,bh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Oh=function(e){var t,n,r=e.prefixCls,o=e.className,i=e.color,a=void 0===i?"blue":i,c=e.dot,u=e.pending,s=void 0!==u&&u,l=(e.position,e.label),f=e.children,p=bh(e,["prefixCls","className","color","dot","pending","position","label","children"]),d=(0,k.useContext(dt.b).getPrefixCls)("timeline",r),h=O()((t={},Object(y.a)(t,"".concat(d,"-item"),!0),Object(y.a)(t,"".concat(d,"-item-pending"),s),t),o),v=O()((n={},Object(y.a)(n,"".concat(d,"-item-head"),!0),Object(y.a)(n,"".concat(d,"-item-head-custom"),!!c),Object(y.a)(n,"".concat(d,"-item-head-").concat(a),!0),n)),g=/blue|red|green|gray/.test(a||"")?void 0:a;return k.createElement("li",Object(m.a)({},p,{className:h}),l&&k.createElement("div",{className:"".concat(d,"-item-label")},l),k.createElement("div",{className:"".concat(d,"-item-tail")}),k.createElement("div",{className:v,style:{borderColor:g,color:g}},c),k.createElement("div",{className:"".concat(d,"-item-content")},f))},wh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},_h=function(e){var t,n=k.useContext(dt.b),r=n.getPrefixCls,o=n.direction,i=e.prefixCls,a=e.pending,c=void 0===a?null:a,u=e.pendingDot,s=e.children,l=e.className,f=e.reverse,p=void 0!==f&&f,d=e.mode,h=void 0===d?"":d,v=wh(e,["prefixCls","pending","pendingDot","children","className","reverse","mode"]),g=r("timeline",i),b="boolean"==typeof c?null:c,w=c?k.createElement(Oh,{pending:!!c,dot:u||k.createElement(Fr.a,null)},b):null,_=k.Children.toArray(s);_.push(w),p&&_.reverse();var x=function(e,t){return"alternate"===h?"right"===e.props.position?"".concat(g,"-item-right"):"left"===e.props.position?"".concat(g,"-item-left"):"".concat(g,t%2==0?"-item-left":"-item-right"):"left"===h?"".concat(g,"-item-left"):"right"===h||"right"===e.props.position?"".concat(g,"-item-right"):""},E=_.filter((function(e){return!!e})),S=k.Children.count(E),C="".concat(g,"-item-last"),j=k.Children.map(E,(function(e,t){var n=t===S-2?C:"",r=t===S-1?C:"";return Object(Li.a)(e,{className:O()([e.props.className,!p&&c?n:r,x(e,t)])})})),P=_.some((function(e){var t;return!!(null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.label)})),T=O()(g,(t={},Object(y.a)(t,"".concat(g,"-pending"),!!c),Object(y.a)(t,"".concat(g,"-reverse"),!!p),Object(y.a)(t,"".concat(g,"-").concat(h),!!h&&!P),Object(y.a)(t,"".concat(g,"-label"),P),Object(y.a)(t,"".concat(g,"-rtl"),"rtl"===o),t),l);return k.createElement("ul",Object(m.a)({},v,{className:T}),j)};_h.Item=Oh;var xh=_h,Eh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Sh=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:Eh}))};Sh.displayName="DeleteOutlined";var Ch=k.forwardRef(Sh),jh=n("gDlH"),kh=function(e){var t,n,r=e.renderedText,o=e.renderedEl,i=e.item,a=e.checked,c=e.disabled,u=e.prefixCls,s=e.onClick,l=e.onRemove,f=e.showRemove,p=O()((t={},Object(y.a)(t,"".concat(u,"-content-item"),!0),Object(y.a)(t,"".concat(u,"-content-item-disabled"),c||i.disabled),Object(y.a)(t,"".concat(u,"-content-item-checked"),a),t));return"string"!=typeof r&&"number"!=typeof r||(n=String(r)),k.createElement(ht.a,{componentName:"Transfer",defaultLocale:Ra.a.Transfer},(function(e){var t={className:p,title:n},r=k.createElement("span",{className:"".concat(u,"-content-item-text")},o);return f?k.createElement("li",Object(m.a)({},t),r,k.createElement(jh.a,{disabled:c||i.disabled,className:"".concat(u,"-content-item-remove"),"aria-label":e.remove,onClick:function(){null==l||l(i)}},k.createElement(Ch,null))):(t.onClick=c||i.disabled?void 0:function(){return s(i)},k.createElement("li",Object(m.a)({},t),k.createElement(ai,{className:"".concat(u,"-checkbox"),checked:a,disabled:c||i.disabled}),r))}))},Ph=k.memo(kh),Th=Object(pi.a)("handleFilter","handleClear","checkedKeys");function Mh(e){if(!e)return null;var t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return"object"===Object(M.a)(e)?Object(m.a)(Object(m.a)({},t),e):t}var Ah=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;return Object(x.a)(this,n),(e=t.apply(this,arguments)).state={current:1},e.onItemSelect=function(t){var n=e.props,r=n.onItemSelect,o=n.selectedKeys.indexOf(t.key)>=0;r(t.key,!o)},e.onItemRemove=function(t){var n=e.props.onItemRemove;null==n||n([t.key])},e.onPageChange=function(t){e.setState({current:t})},e.getItems=function(){var t=e.state.current,n=e.props,r=n.pagination,o=n.filteredRenderItems,i=Mh(r),a=o;return i&&(a=o.slice((t-1)*i.pageSize,t*i.pageSize)),a},e}return Object(E.a)(n,[{key:"render",value:function(){var e=this,t=this.state.current,n=this.props,r=n.prefixCls,o=n.onScroll,i=n.filteredRenderItems,a=n.selectedKeys,c=n.disabled,u=n.showRemove,s=Mh(n.pagination),l=null;return s&&(l=k.createElement(Tu,{simple:s.simple,showSizeChanger:s.showSizeChanger,showLessItems:s.showLessItems,size:"small",disabled:c,className:"".concat(r,"-pagination"),total:i.length,pageSize:s.pageSize,current:t,onChange:this.onPageChange})),k.createElement(k.Fragment,null,k.createElement("ul",{className:O()("".concat(r,"-content"),Object(y.a)({},"".concat(r,"-content-show-remove"),u)),onScroll:o},this.getItems().map((function(t){var n=t.renderedEl,o=t.renderedText,i=t.item,s=i.disabled,l=a.indexOf(i.key)>=0;return k.createElement(Ph,{disabled:c||s,key:i.key,item:i,renderedText:o,renderedEl:n,checked:l,prefixCls:r,onClick:e.onItemSelect,onRemove:e.onItemRemove,showRemove:u})}))),l)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.filteredRenderItems,r=e.pagination,o=t.current,i=Mh(r);if(i){var a=Math.ceil(n.length/i.pageSize);if(o>a)return{current:a}}return null}}]),n}(k.Component);function Lh(e){var t=e.placeholder,n=void 0===t?"":t,r=e.value,o=e.prefixCls,i=e.disabled,a=e.onChange,c=e.handleClear,u=k.useCallback((function(e){null==a||a(e),""===e.target.value&&(null==c||c())}),[a]);return k.createElement(Dc.a,{placeholder:n,className:o,value:r,onChange:u,disabled:i,allowClear:!0,prefix:k.createElement(Rd.a,null)})}var Rh=function(){return null};function Nh(e){return e.filter((function(e){return!e.disabled})).map((function(e){return e.key}))}var Ih=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(e){var r;return Object(x.a)(this,n),(r=t.call(this,e)).defaultListBodyRef=k.createRef(),r.handleFilter=function(e){var t=r.props.handleFilter,n=e.target.value;r.setState({filterValue:n}),t(e)},r.handleClear=function(){var e=r.props.handleClear;r.setState({filterValue:""}),e()},r.matchFilter=function(e,t){var n=r.state.filterValue,o=r.props.filterOption;return o?o(n,t):e.indexOf(n)>=0},r.renderListBody=function(e,t){var n=e?e(t):null,o=!!n;return o||(n=k.createElement(Ah,Object(m.a)({ref:r.defaultListBodyRef},t))),{customize:o,bodyContent:n}},r.renderItem=function(e){var t,n=r.props.render,o=(void 0===n?Rh:n)(e),i=!(!(t=o)||Object(Li.b)(t)||"[object Object]"!==Object.prototype.toString.call(t));return{renderedText:i?o.value:o,renderedEl:i?o.label:o,item:e}},r.getSelectAllLabel=function(e,t){var n=r.props,o=n.itemsUnit,i=n.itemUnit,a=n.selectAllLabel;if(a)return"function"==typeof a?a({selectedCount:e,totalCount:t}):a;var c=t>1?o:i;return k.createElement(k.Fragment,null,(e>0?"".concat(e,"/"):"")+t," ",c)},r.state={filterValue:""},r}return Object(E.a)(n,[{key:"componentWillUnmount",value:function(){clearTimeout(this.triggerScrollTimer)}},{key:"getCheckStatus",value:function(e){var t=this.props.checkedKeys;return 0===t.length?"none":e.every((function(e){return t.indexOf(e.key)>=0||!!e.disabled}))?"all":"part"}},{key:"getFilteredItems",value:function(e,t){var n=this,r=[],o=[];return e.forEach((function(e){var i=n.renderItem(e),a=i.renderedText;if(t&&!n.matchFilter(a,e))return null;r.push(e),o.push(i)})),{filteredItems:r,filteredRenderItems:o}}},{key:"getListBody",value:function(e,t,n,r,o,i,a,c,u,s){var l,f,p=this,d=u?k.createElement("div",{className:"".concat(e,"-body-search-wrapper")},k.createElement(Lh,{prefixCls:"".concat(e,"-search"),onChange:this.handleFilter,handleClear:this.handleClear,placeholder:t,value:n,disabled:s})):null,h=this.renderListBody(c,Object(m.a)(Object(m.a)({},Object(St.a)(this.props,Th)),{filteredItems:r,filteredRenderItems:i,selectedKeys:a})),v=h.bodyContent;return l=h.customize?k.createElement("div",{className:"".concat(e,"-body-customize-wrapper")},v):r.length?v:k.createElement("div",{className:"".concat(e,"-body-not-found")},(f="left"===p.props.direction?0:1,Array.isArray(o)?o[f]:o)),k.createElement("div",{className:O()(u?"".concat(e,"-body ").concat(e,"-body-with-search"):"".concat(e,"-body"))},d,l)}},{key:"getCheckBox",value:function(e){var t=e.filteredItems,n=e.onItemSelectAll,r=e.disabled,o=e.prefixCls,i=this.getCheckStatus(t),a="all"===i;return k.createElement(ai,{disabled:r,checked:a,indeterminate:"part"===i,className:"".concat(o,"-checkbox"),onChange:function(){n(t.filter((function(e){return!e.disabled})).map((function(e){return e.key})),!a)}})}},{key:"render",value:function(){var e,t=this,n=this.state.filterValue,r=this.props,o=r.prefixCls,i=r.dataSource,a=r.titleText,c=r.checkedKeys,u=r.disabled,s=r.footer,l=r.showSearch,f=r.style,p=r.searchPlaceholder,d=r.notFoundContent,h=r.selectAll,v=r.selectCurrent,m=r.selectInvert,g=r.removeAll,b=r.removeCurrent,w=r.renderList,_=r.onItemSelectAll,x=r.onItemRemove,E=r.showSelectAll,S=void 0===E||E,C=r.showRemove,j=r.pagination,P=r.direction,T=s&&(s.length<2?s(this.props):s(this.props,{direction:P})),M=O()(o,(e={},Object(y.a)(e,"".concat(o,"-with-pagination"),!!j),Object(y.a)(e,"".concat(o,"-with-footer"),!!T),e)),A=this.getFilteredItems(i,n),L=A.filteredItems,R=A.filteredRenderItems,N=this.getListBody(o,p,n,L,d,R,c,w,l,u),I=T?k.createElement("div",{className:"".concat(o,"-footer")},T):null,D=!C&&!j&&this.getCheckBox({filteredItems:L,onItemSelectAll:_,disabled:u,prefixCls:o}),F=null;if(C){var z=[j?{key:"removeCurrent",onClick:function(){var e,n=Nh(((null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[]).map((function(e){return e.item})));null==x||x(n)},label:b}:null,{key:"removeAll",onClick:function(){null==x||x(Nh(L))},label:g}].filter((function(e){return e}));F=k.createElement(ss.a,{items:z})}else{var B=[{key:"selectAll",onClick:function(){var e=Nh(L);_(e,e.length!==c.length)},label:h},j?{key:"selectCurrent",onClick:function(){var e,n=(null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[];_(Nh(n.map((function(e){return e.item}))),!0)},label:v}:null,{key:"selectInvert",onClick:function(){var e,n;n=Nh(j?((null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[]).map((function(e){return e.item})):L);var r=new Set(c),o=[],i=[];n.forEach((function(e){r.has(e)?i.push(e):o.push(e)})),_(o,!0),_(i,!1)},label:m}];F=k.createElement(ss.a,{items:B})}var U=k.createElement(ra.a,{className:"".concat(o,"-header-dropdown"),overlay:F,disabled:u},k.createElement(Fc.a,null));return k.createElement("div",{className:M,style:f},k.createElement("div",{className:"".concat(o,"-header")},S?k.createElement(k.Fragment,null,D,U):null,k.createElement("span",{className:"".concat(o,"-header-selected")},this.getSelectAllLabel(c.length,L.length)),k.createElement("span",{className:"".concat(o,"-header-title")},a)),N,I)}}]),n}(k.PureComponent);Ih.defaultProps={dataSource:[],titleText:"",showSearch:!1};var Dh=function(e){var t=e.disabled,n=e.moveToLeft,r=e.moveToRight,o=e.leftArrowText,i=void 0===o?"":o,a=e.rightArrowText,c=void 0===a?"":a,u=e.leftActive,s=e.rightActive,l=e.className,p=e.style,d=e.direction,h=e.oneWay;return k.createElement("div",{className:l,style:p},k.createElement(f.a,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:"rtl"!==d?k.createElement(zr.a,null):k.createElement(Dr.a,null)},c),!h&&k.createElement(f.a,{type:"primary",size:"small",disabled:t||!u,onClick:n,icon:"rtl"!==d?k.createElement(Dr.a,null):k.createElement(zr.a,null)},i))},Fh=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(e){var r;Object(x.a)(this,n),(r=t.call(this,e)).separatedDataSource=null,r.setStateKeys=function(e,t){"left"===e?r.setState((function(e){var n=e.sourceSelectedKeys;return{sourceSelectedKeys:"function"==typeof t?t(n||[]):t}})):r.setState((function(e){var n=e.targetSelectedKeys;return{targetSelectedKeys:"function"==typeof t?t(n||[]):t}}))},r.getLocale=function(e,t){return Object(m.a)(Object(m.a)(Object(m.a)({},e),{notFoundContent:t("Transfer")}),r.props.locale)},r.moveTo=function(e){var t=r.props,n=t.targetKeys,o=void 0===n?[]:n,i=t.dataSource,a=void 0===i?[]:i,c=t.onChange,u=r.state,s=u.sourceSelectedKeys,l=u.targetSelectedKeys,f=("right"===e?s:l).filter((function(e){return!a.some((function(t){return!(e!==t.key||!t.disabled)}))})),p="right"===e?f.concat(o):o.filter((function(e){return-1===f.indexOf(e)})),d="right"===e?"left":"right";r.setStateKeys(d,[]),r.handleSelectChange(d,[]),null==c||c(p,e,f)},r.moveToLeft=function(){return r.moveTo("left")},r.moveToRight=function(){return r.moveTo("right")},r.onItemSelectAll=function(e,t,n){r.setStateKeys(e,(function(o){var i=[];return i=n?Array.from(new Set([].concat(Object(V.a)(o),Object(V.a)(t)))):o.filter((function(e){return-1===t.indexOf(e)})),r.handleSelectChange(e,i),i}))},r.onLeftItemSelectAll=function(e,t){return r.onItemSelectAll("left",e,t)},r.onRightItemSelectAll=function(e,t){return r.onItemSelectAll("right",e,t)},r.handleFilter=function(e,t){var n=r.props.onSearch,o=t.target.value;null==n||n(e,o)},r.handleLeftFilter=function(e){return r.handleFilter("left",e)},r.handleRightFilter=function(e){return r.handleFilter("right",e)},r.handleClear=function(e){var t=r.props.onSearch;null==t||t(e,"")},r.handleLeftClear=function(){return r.handleClear("left")},r.handleRightClear=function(){return r.handleClear("right")},r.onItemSelect=function(e,t,n){var o=r.state,i=o.sourceSelectedKeys,a=o.targetSelectedKeys,c="left"===e?Object(V.a)(i):Object(V.a)(a),u=c.indexOf(t);u>-1&&c.splice(u,1),n&&c.push(t),r.handleSelectChange(e,c),r.props.selectedKeys||r.setStateKeys(e,c)},r.onLeftItemSelect=function(e,t){return r.onItemSelect("left",e,t)},r.onRightItemSelect=function(e,t){return r.onItemSelect("right",e,t)},r.onRightItemRemove=function(e){var t=r.props,n=t.targetKeys,o=void 0===n?[]:n,i=t.onChange;r.setStateKeys("right",[]),null==i||i(o.filter((function(t){return!e.includes(t)})),"left",Object(V.a)(e))},r.handleScroll=function(e,t){var n=r.props.onScroll;null==n||n(e,t)},r.handleLeftScroll=function(e){return r.handleScroll("left",e)},r.handleRightScroll=function(e){return r.handleScroll("right",e)},r.handleListStyle=function(e,t){return"function"==typeof e?e({direction:t}):e},r.renderTransfer=function(e){return k.createElement(dt.a,null,(function(t){var n=t.getPrefixCls,o=t.renderEmpty,i=t.direction;return k.createElement(vt.b.Consumer,null,(function(t){var a,c=t.hasFeedback,u=t.status,s=r.props,l=s.prefixCls,f=s.className,p=s.disabled,d=s.operations,h=void 0===d?[]:d,v=s.showSearch,g=s.footer,b=s.style,w=s.listStyle,_=s.operationStyle,x=s.filterOption,E=s.render,S=s.children,C=s.showSelectAll,j=s.oneWay,P=s.pagination,T=s.status,M=n("transfer",l),A=r.getLocale(e,o||zo.a),L=r.state,R=L.sourceSelectedKeys,N=L.targetSelectedKeys,I=Object(Ho.a)(u,T),D=!S&&P,F=r.separateDataSource(),z=F.leftDataSource,B=F.rightDataSource,U=N.length>0,V=R.length>0,H=O()(M,(a={},Object(y.a)(a,"".concat(M,"-disabled"),p),Object(y.a)(a,"".concat(M,"-customize-list"),!!S),Object(y.a)(a,"".concat(M,"-rtl"),"rtl"===i),a),Object(Ho.b)(M,I,c),f),G=r.getTitles(A),W=r.props.selectAllLabels||[];return k.createElement("div",{className:H,style:b},k.createElement(Ih,Object(m.a)({prefixCls:"".concat(M,"-list"),titleText:G[0],dataSource:z,filterOption:x,style:r.handleListStyle(w,"left"),checkedKeys:R,handleFilter:r.handleLeftFilter,handleClear:r.handleLeftClear,onItemSelect:r.onLeftItemSelect,onItemSelectAll:r.onLeftItemSelectAll,render:E,showSearch:v,renderList:S,footer:g,onScroll:r.handleLeftScroll,disabled:p,direction:"rtl"===i?"right":"left",showSelectAll:C,selectAllLabel:W[0],pagination:D},A)),k.createElement(Dh,{className:"".concat(M,"-operation"),rightActive:V,rightArrowText:h[0],moveToRight:r.moveToRight,leftActive:U,leftArrowText:h[1],moveToLeft:r.moveToLeft,style:_,disabled:p,direction:i,oneWay:j}),k.createElement(Ih,Object(m.a)({prefixCls:"".concat(M,"-list"),titleText:G[1],dataSource:B,filterOption:x,style:r.handleListStyle(w,"right"),checkedKeys:N,handleFilter:r.handleRightFilter,handleClear:r.handleRightClear,onItemSelect:r.onRightItemSelect,onItemSelectAll:r.onRightItemSelectAll,onItemRemove:r.onRightItemRemove,render:E,showSearch:v,renderList:S,footer:g,onScroll:r.handleRightScroll,disabled:p,direction:"rtl"===i?"left":"right",showSelectAll:C,selectAllLabel:W[1],showRemove:j,pagination:D},A)))}))}))};var o=e.selectedKeys,i=void 0===o?[]:o,a=e.targetKeys,c=void 0===a?[]:a;return r.state={sourceSelectedKeys:i.filter((function(e){return-1===c.indexOf(e)})),targetSelectedKeys:i.filter((function(e){return c.indexOf(e)>-1}))},r}return Object(E.a)(n,[{key:"getTitles",value:function(e){var t;return null!==(t=this.props.titles)&&void 0!==t?t:e.titles}},{key:"handleSelectChange",value:function(e,t){var n=this.state,r=n.sourceSelectedKeys,o=n.targetSelectedKeys,i=this.props.onSelectChange;i&&("left"===e?i(t,o):i(r,t))}},{key:"separateDataSource",value:function(){var e=this.props,t=e.dataSource,n=e.rowKey,r=e.targetKeys,o=void 0===r?[]:r,i=[],a=new Array(o.length);return t.forEach((function(e){n&&(e=Object(m.a)(Object(m.a)({},e),{key:n(e)}));var t=o.indexOf(e.key);-1!==t?a[t]=e:i.push(e)})),{leftDataSource:i,rightDataSource:a}}},{key:"render",value:function(){return k.createElement(ht.a,{componentName:"Transfer",defaultLocale:Ra.a.Transfer},this.renderTransfer)}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.selectedKeys,n=e.targetKeys;e.pagination,e.children;if(t){var r=n||[];return{sourceSelectedKeys:t.filter((function(e){return!r.includes(e)})),targetSelectedKeys:t.filter((function(e){return r.includes(e)}))}}return null}}]),n}(k.Component);Fh.List=Ih,Fh.Operation=Dh,Fh.Search=Lh,Fh.defaultProps={dataSource:[],locale:{},showSearch:!1,listStyle:function(){}};var zh=Fh,Bh=k.createContext(null),Uh=k.createContext(null);function Vh(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Hh(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable}function Gh(e){return null==e}var Wh={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Yh=function(e,t){var n=Object(Br.e)(),r=n.prefixCls,o=n.multiple,i=n.searchValue,a=n.toggleOpen,c=n.open,u=n.notFoundContent,s=k.useContext(Uh),l=s.virtual,f=s.listHeight,p=s.listItemHeight,d=s.treeData,h=s.fieldNames,v=s.onSelect,y=s.dropdownMatchSelectWidth,b=s.treeExpandAction,O=k.useContext(Bh),w=O.checkable,_=O.checkedKeys,x=O.halfCheckedKeys,E=O.treeExpandedKeys,S=O.treeDefaultExpandAll,C=O.treeDefaultExpandedKeys,j=O.onTreeExpand,P=O.treeIcon,T=O.showTreeIcon,M=O.switcherIcon,L=O.treeLine,R=O.treeNodeFilterProp,N=O.loadData,I=O.treeLoadedKeys,D=O.treeMotion,F=O.onTreeLoad,z=O.keyEntities,B=k.useRef(),U=Object(me.a)((function(){return d}),[c,d],(function(e,t){return t[0]&&e[1]!==t[1]})),H=k.useMemo((function(){return w?{checked:_,halfChecked:x}:null}),[w,_,x]);k.useEffect((function(){var e;c&&!o&&_.length&&(null===(e=B.current)||void 0===e||e.scrollTo({key:_[0]}))}),[c]);var G=String(i).toLowerCase(),W=k.useState(C),Y=Object(g.a)(W,2),K=Y[0],X=Y[1],q=k.useState(null),Z=Object(g.a)(q,2),J=Z[0],Q=Z[1],$=k.useMemo((function(){return E?Object(V.a)(E):i?J:K}),[K,J,E,i]);k.useEffect((function(){i&&Q(function(e,t){var n=[];return function e(r){r.forEach((function(r){n.push(r[t.value]);var o=r[t.children];o&&e(o)}))}(e),n}(d,h))}),[i]);var ee=function(e){e.preventDefault()},te=function(e,t){var n=t.node;w&&Hh(n)||(v(n.key,{selected:!_.includes(n.key)}),o||a(!1))},ne=k.useState(null),re=Object(g.a)(ne,2),oe=re[0],ie=re[1],ae=z[oe];if(k.useImperativeHandle(t,(function(){var e;return{scrollTo:null===(e=B.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case A.a.UP:case A.a.DOWN:case A.a.LEFT:case A.a.RIGHT:null===(t=B.current)||void 0===t||t.onKeyDown(e);break;case A.a.ENTER:if(ae){var n=(null==ae?void 0:ae.node)||{},r=n.selectable,o=n.value;!1!==r&&te(0,{node:{key:oe},selected:!_.includes(o)})}break;case A.a.ESC:a(!1)}},onKeyUp:function(){}}})),0===U.length)return k.createElement("div",{role:"listbox",className:"".concat(r,"-empty"),onMouseDown:ee},u);var ce={fieldNames:h};return I&&(ce.loadedKeys=I),$&&(ce.expandedKeys=$),k.createElement("div",{onMouseDown:ee},ae&&c&&k.createElement("span",{style:Wh,"aria-live":"assertive"},ae.node.value),k.createElement(td,Object(m.a)({ref:B,focusable:!1,prefixCls:"".concat(r,"-tree"),treeData:U,height:f,itemHeight:p,virtual:!1!==l&&!1!==y,multiple:o,icon:P,showIcon:T,switcherIcon:M,showLine:L,loadData:i?null:N,motion:D,activeKey:oe,checkable:w,checkStrictly:!0,checkedKeys:H,selectedKeys:w?[]:_,defaultExpandAll:S},ce,{onActiveChange:ie,onSelect:te,onCheck:te,onExpand:function(e){X(e),Q(e),j&&j(e)},onLoad:F,filterTreeNode:function(e){return!!G&&String(e[R]).toLowerCase().includes(G)},expandAction:b})))},Kh=k.forwardRef(Yh);Kh.displayName="OptionList";var Xh=Kh,qh=function(){return null};function Zh(e,t,n,r){var o=new Set(e);return"SHOW_CHILD"===t?e.filter((function(e){var t=n[e];return!(t&&t.children&&t.children.some((function(e){var t=e.node;return o.has(t[r.value])}))&&t.children.every((function(e){var t=e.node;return Hh(t)||o.has(t[r.value])})))})):"SHOW_PARENT"===t?e.filter((function(e){var t=n[e],r=t?t.parent:null;return!(r&&!Hh(r.node)&&o.has(r.key))})):e}var Jh=["children","value"];function Qh(e){if(!e)return e;var t=Object(j.a)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(h.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function $h(e,t,n){return k.useMemo((function(){return e?n?function(e,t){var n=t.id,r=t.pId,o=t.rootPId,i={},a=[];return e.map((function(e){var t=Object(j.a)({},e),r=t[n];return i[r]=t,t.key=t.key||r,t})).forEach((function(e){var t=e[r],n=i[t];n&&(n.children=n.children||[],n.children.push(e)),(t===o||!n&&null===o)&&a.push(e)})),a}(e,Object(j.a)({id:"id",pId:"pId",rootPId:null},!0!==n?n:{})):e:function e(t){return Object(Nt.a)(t).map((function(t){if(!k.isValidElement(t)||!t.type)return null;var n=t.key,r=t.props,o=r.children,i=r.value,a=Object(Rt.a)(r,Jh),c=Object(j.a)({key:n,value:i},a),u=e(o);return u.length&&(c.children=u),c})).filter((function(e){return e}))}(t)}),[t,n,e])}function ev(e){var t=k.useRef();return t.current=e,k.useCallback((function(){return t.current.apply(t,arguments)}),[])}var tv=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];var nv=k.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,o=void 0===r?"rc-tree-select":r,i=e.value,a=e.defaultValue,c=e.onChange,u=e.onSelect,s=e.onDeselect,l=e.searchValue,f=e.inputValue,p=e.onSearch,d=e.autoClearSearchValue,v=void 0===d||d,b=e.filterTreeNode,O=e.treeNodeFilterProp,w=void 0===O?"value":O,_=e.showCheckedStrategy,x=void 0===_?"SHOW_CHILD":_,E=e.treeNodeLabelProp,S=e.multiple,C=e.treeCheckable,P=e.treeCheckStrictly,A=e.labelInValue,L=e.fieldNames,R=e.treeDataSimpleMode,N=e.treeData,I=e.children,D=e.loadData,F=e.treeLoadedKeys,z=e.onTreeLoad,B=e.treeDefaultExpandAll,U=e.treeExpandedKeys,H=e.treeDefaultExpandedKeys,G=e.onTreeExpand,W=e.treeExpandAction,Y=e.virtual,K=e.listHeight,X=void 0===K?200:K,q=e.listItemHeight,Z=void 0===q?20:q,J=e.onDropdownVisibleChange,Q=e.dropdownMatchSelectWidth,$=void 0===Q||Q,ee=e.treeLine,te=e.treeIcon,ne=e.showTreeIcon,re=e.switcherIcon,oe=e.treeMotion,ie=Object(Rt.a)(e,tv),ae=Object(Ur.a)(n),ce=C&&!P,ue=C||P,se=P||A,le=ue||S;var fe,pe,de=k.useMemo((function(){return function(e){var t=e||{},n=t.label,r=t.value||"value";return{_title:n?[n]:["title","label"],value:r,key:r,children:t.children||"children"}}(L)}),[JSON.stringify(L)]),he=Object(T.a)("",{value:void 0!==l?l:f,postState:function(e){return e||""}}),ve=Object(g.a)(he,2),ye=ve[0],me=ve[1],ge=$h(N,I,R),be=function(e,t){return k.useMemo((function(){return Eo(e,{fieldNames:t,initWrapper:function(e){return Object(j.a)(Object(j.a)({},e),{},{valueEntities:new Map})},processEntity:function(e,n){var r=e.node[t.value];n.valueEntities.set(r,e)}})}),[e,t])}(ge,de),Oe=be.keyEntities,we=be.valueEntities,_e=k.useCallback((function(e){var t=[],n=[];return e.forEach((function(e){we.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}}),[we]),xe=function(e,t,n){var r=n.treeNodeFilterProp,o=n.filterTreeNode,i=n.fieldNames.children;return k.useMemo((function(){if(!t||!1===o)return e;var n;if("function"==typeof o)n=o;else{var a=t.toUpperCase();n=function(e,t){var n=t[r];return String(n).toUpperCase().includes(a)}}return function e(r){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.map((function(r){var a=r[i],c=o||n(t,Qh(r)),u=e(a||[],c);return c||u.length?Object(j.a)(Object(j.a)({},r),{},Object(y.a)({},i,u)):null})).filter((function(e){return e}))}(e)}),[e,t,i,r,o])}(ge,ye,{fieldNames:de,treeNodeFilterProp:w,filterTreeNode:b}),Ee=k.useCallback((function(e){if(e){if(E)return e[E];for(var t=de._title,n=0;n<t.length;n+=1){var r=e[t[n]];if(void 0!==r)return r}}}),[de,E]),Se=k.useCallback((function(e){return Vh(e).map((function(e){return function(e){return!e||"object"!==Object(M.a)(e)}(e)?{value:e}:e}))}),[]),Ce=k.useCallback((function(e){return Se(e).map((function(e){var t,n,r=e.label,o=e.value,i=e.halfChecked,a=we.get(o);a&&(r=null!==(n=r)&&void 0!==n?n:Ee(a.node),t=a.node.disabled);return{label:r,value:o,halfChecked:i,disabled:t}}))}),[we,Ee,Se]),je=Object(T.a)(a,{value:i}),ke=Object(g.a)(je,2),Pe=ke[0],Te=ke[1],Me=k.useMemo((function(){return Se(Pe)}),[Se,Pe]),Ae=k.useMemo((function(){var e=[],t=[];return Me.forEach((function(n){n.halfChecked?t.push(n):e.push(n)})),[e,t]}),[Me]),Le=Object(g.a)(Ae,2),Re=Le[0],Ne=Le[1],Ie=k.useMemo((function(){return Re.map((function(e){return e.value}))}),[Re]),De=function(e,t,n,r){return k.useMemo((function(){var o=e.map((function(e){return e.value})),i=t.map((function(e){return e.value})),a=o.filter((function(e){return!r[e]}));if(n){var c=Gr(o,!0,r);o=c.checkedKeys,i=c.halfCheckedKeys}return[Array.from(new Set([].concat(Object(V.a)(a),Object(V.a)(o)))),i]}),[e,t,n,r])}(Re,Ne,ce,Oe),Fe=Object(g.a)(De,2),ze=Fe[0],Be=Fe[1],Ue=k.useMemo((function(){var e=Zh(ze,x,Oe,de).map((function(e){var t,n,r;return null!==(t=null===(n=Oe[e])||void 0===n||null===(r=n.node)||void 0===r?void 0:r[de.value])&&void 0!==t?t:e})).map((function(e){var t=Re.find((function(t){return t.value===e}));return{value:e,label:null==t?void 0:t.label}})),t=Ce(e),n=t[0];return!le&&n&&Gh(n.value)&&Gh(n.label)?[]:t.map((function(e){var t;return Object(j.a)(Object(j.a)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[de,le,ze,Re,Ce,x,Oe]),Ve=(fe=Ue,pe=k.useRef({valueLabels:new Map}),k.useMemo((function(){var e=pe.current.valueLabels,t=new Map,n=fe.map((function(n){var r,o=n.value,i=null!==(r=n.label)&&void 0!==r?r:e.get(o);return t.set(o,i),Object(j.a)(Object(j.a)({},n),{},{label:i})}));return pe.current.valueLabels=t,[n]}),[fe])),He=Object(g.a)(Ve,1)[0],Ge=ev((function(e,t,n){var r=Ce(e);if(Te(r),v&&me(""),c){var o=e;if(ce){var i=Zh(e,x,Oe,de);o=i.map((function(e){var t=we.get(e);return t?t.node[de.value]:e}))}var a=t||{triggerValue:void 0,selected:void 0},u=a.triggerValue,s=a.selected,l=o;if(P){var f=Ne.filter((function(e){return!o.includes(e.value)}));l=[].concat(Object(V.a)(l),Object(V.a)(f))}var p=Ce(l),d={preValue:Re,triggerValue:u},y=!0;(P||"selection"===n&&!s)&&(y=!1),function(e,t,n,r,o,i){var a=null,c=null;function u(){c||(c=[],function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r.map((function(r,s){var l="".concat(o,"-").concat(s),f=r[i.value],p=n.includes(f),d=e(r[i.children]||[],l,p),h=k.createElement(qh,r,d.map((function(e){return e.node})));if(t===f&&(a=h),p){var v={pos:l,node:h,children:d};return u||c.push(v),v}return null})).filter((function(e){return e}))}(r),c.sort((function(e,t){var r=e.node.props.value,o=t.node.props.value;return n.indexOf(r)-n.indexOf(o)})))}Object.defineProperty(e,"triggerNode",{get:function(){return Object(h.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),u(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Object(h.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),u(),o?c:c.map((function(e){return e.node}))}})}(d,u,e,ge,y,de),ue?d.checked=s:d.selected=s;var m=se?p:p.map((function(e){return e.value}));c(le?m:m[0],se?null:p.map((function(e){return e.label})),d)}})),We=k.useCallback((function(e,t){var n,r=t.selected,o=t.source,i=Oe[e],a=null==i?void 0:i.node,c=null!==(n=null==a?void 0:a[de.value])&&void 0!==n?n:e;if(le){var l=r?[].concat(Object(V.a)(Ie),[c]):ze.filter((function(e){return e!==c}));if(ce){var f,p=_e(l),d=p.missingRawValues,h=p.existRawValues.map((function(e){return we.get(e).key}));if(r)f=Gr(h,!0,Oe).checkedKeys;else f=Gr(h,{checked:!1,halfCheckedKeys:Be},Oe).checkedKeys;l=[].concat(Object(V.a)(d),Object(V.a)(f.map((function(e){return Oe[e].node[de.value]}))))}Ge(l,{selected:r,triggerValue:c},o||"option")}else Ge([c],{selected:!0,triggerValue:c},"option");r||!le?null==u||u(c,Qh(a)):null==s||s(c,Qh(a))}),[_e,we,Oe,de,le,Ie,Ge,ce,u,s,ze,Be]),Ye=k.useCallback((function(e){if(J){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return Object(h.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),J(e,t)}}),[J]),Ke=ev((function(e,t){var n=e.map((function(e){return e.value}));"clear"!==t.type?t.values.length&&We(t.values[0].value,{selected:!1,source:"selection"}):Ge(n,{},"selection")})),Xe=k.useMemo((function(){return{virtual:Y,dropdownMatchSelectWidth:$,listHeight:X,listItemHeight:Z,treeData:xe,fieldNames:de,onSelect:We,treeExpandAction:W}}),[Y,$,X,Z,xe,de,We,W]),qe=k.useMemo((function(){return{checkable:ue,loadData:D,treeLoadedKeys:F,onTreeLoad:z,checkedKeys:ze,halfCheckedKeys:Be,treeDefaultExpandAll:B,treeExpandedKeys:U,treeDefaultExpandedKeys:H,onTreeExpand:G,treeIcon:te,treeMotion:oe,showTreeIcon:ne,switcherIcon:re,treeLine:ee,treeNodeFilterProp:w,keyEntities:Oe}}),[ue,D,F,z,ze,Be,B,U,H,G,te,oe,ne,re,ee,w,Oe]);return k.createElement(Uh.Provider,{value:Xe},k.createElement(Bh.Provider,{value:qe},k.createElement(Br.a,Object(m.a)({ref:t},ie,{id:ae,prefixCls:o,mode:le?"multiple":void 0,displayValues:He,onDisplayValuesChange:Ke,searchValue:ye,onSearch:function(e){me(e),null==p||p(e)},OptionList:Xh,emptyOptions:!ge.length,onDropdownVisibleChange:Ye,dropdownMatchSelectWidth:$}))))}));nv.TreeNode=qh,nv.SHOW_ALL="SHOW_ALL",nv.SHOW_PARENT="SHOW_PARENT",nv.SHOW_CHILD="SHOW_CHILD";var rv=nv,ov=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},iv=function(e,t){var n,r,o=e.prefixCls,i=e.size,a=e.disabled,c=e.bordered,u=void 0===c||c,s=e.className,l=e.treeCheckable,f=e.multiple,p=e.listHeight,d=void 0===p?256:p,h=e.listItemHeight,v=void 0===h?26:h,g=e.placement,b=e.notFoundContent,w=e.switcherIcon,_=e.treeLine,x=e.getPopupContainer,E=e.dropdownClassName,S=e.treeIcon,C=void 0!==S&&S,j=e.transitionName,P=e.choiceTransitionName,T=void 0===P?"":P,M=e.status,A=e.showArrow,L=e.treeExpandAction,R=ov(e,["prefixCls","size","disabled","bordered","className","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","showArrow","treeExpandAction"]),N=k.useContext(dt.b),I=N.getPopupContainer,D=N.getPrefixCls,F=N.renderEmpty,z=N.direction,B=N.virtual,U=N.dropdownMatchSelectWidth,V=k.useContext(Ct.b),H=D("select",o),G=D("select-tree",o),W=D("tree-select",o),Y=O()(E,"".concat(W,"-dropdown"),Object(y.a)({},"".concat(W,"-dropdown-rtl"),"rtl"===z)),K=!(!l&&!f),X=void 0!==A?A:R.loading||!K,q=Object(k.useContext)(vt.b),Z=q.status,J=q.hasFeedback,Q=q.isFormItemInput,$=q.feedbackIcon,ee=Object(Ho.a)(Z,M),te=Object(Uo.a)(Object(m.a)(Object(m.a)({},R),{multiple:K,showArrow:X,hasFeedback:J,feedbackIcon:$,prefixCls:H})),ne=te.suffixIcon,re=te.removeIcon,oe=te.clearIcon;r=void 0!==b?b:(F||zo.a)("Select");var ie=Object(St.a)(R,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),ae=i||V,ce=k.useContext(Bo.b),ue=a||ce,se=O()(!o&&W,(n={},Object(y.a)(n,"".concat(H,"-lg"),"large"===ae),Object(y.a)(n,"".concat(H,"-sm"),"small"===ae),Object(y.a)(n,"".concat(H,"-rtl"),"rtl"===z),Object(y.a)(n,"".concat(H,"-borderless"),!u),Object(y.a)(n,"".concat(H,"-in-form-item"),Q),n),Object(Ho.b)(H,ee,J),s),le=D();return k.createElement(rv,Object(m.a)({virtual:B,dropdownMatchSelectWidth:U,disabled:ue},ie,{ref:t,prefixCls:H,className:se,listHeight:d,listItemHeight:v,treeCheckable:l?k.createElement("span",{className:"".concat(H,"-tree-checkbox-inner")}):l,treeLine:!!_,inputIcon:ne,multiple:f,placement:void 0!==g?g:"rtl"===z?"bottomRight":"bottomLeft",removeIcon:re,clearIcon:oe,switcherIcon:function(e){return Pd(G,w,_,e)},showTreeIcon:C,notFoundContent:r,getPopupContainer:x||I,treeMotion:null,dropdownClassName:Y,choiceTransitionName:Object(Vo.c)(le,"",T),transitionName:Object(Vo.c)(le,Object(Vo.b)(g),j),showArrow:J||A,treeExpandAction:L}))},av=k.forwardRef(iv);av.TreeNode=qh,av.SHOW_ALL="SHOW_ALL",av.SHOW_PARENT="SHOW_PARENT",av.SHOW_CHILD="SHOW_CHILD";var cv=av,uv=n("wFql"),sv=n("p05D"),lv=n("QsI/");function fv(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function pv(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,r)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),fv(t)):e.onSuccess(fv(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var dv=+new Date,hv=0;function vv(){return"rc-upload-".concat(dv,"-").concat(++hv)}var yv=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),c=[a];return".jpg"!==a&&".jpeg"!==a||(c=[".jpg",".jpeg"]),c.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&(Object(h.a)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};var mv=function(e,t,n){var r=function e(r,o){r.path=o||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var o=Array.prototype.slice.apply(n);r=r.concat(o),!o.length?t(r):e()}))}()}(r,(function(t){t.forEach((function(t){e(t,"".concat(o).concat(r.name,"/"))}))}))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},gv=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],bv=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;Object(x.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={uid:vv()},e.reqs={},e.fileInput=void 0,e._isMounted=void 0,e.onChange=function(t){var n=e.props,r=n.accept,o=n.directory,i=t.target.files,a=Object(V.a)(i).filter((function(e){return!o||yv(e,r)}));e.uploadFiles(a),e.reset()},e.onClick=function(t){var n=e.fileInput;if(n){var r=e.props,o=r.children,i=r.onClick;if(o&&"button"===o.type){var a=n.parentNode;a.focus(),a.querySelector("button").blur()}n.click(),i&&i(t)}},e.onKeyDown=function(t){"Enter"===t.key&&e.onClick(t)},e.onFileDrop=function(t){var n=e.props.multiple;if(t.preventDefault(),"dragover"!==t.type)if(e.props.directory)mv(Array.prototype.slice.call(t.dataTransfer.items),e.uploadFiles,(function(t){return yv(t,e.props.accept)}));else{var r=Object(V.a)(t.dataTransfer.files).filter((function(t){return yv(t,e.props.accept)}));!1===n&&(r=r.slice(0,1)),e.uploadFiles(r)}},e.uploadFiles=function(t){var n=Object(V.a)(t),r=n.map((function(t){return t.uid=vv(),e.processFile(t,n)}));Promise.all(r).then((function(t){var n=e.props.onBatchStart;null==n||n(t.map((function(e){return{file:e.origin,parsedFile:e.parsedFile}}))),t.filter((function(e){return null!==e.parsedFile})).forEach((function(t){e.post(t)}))}))},e.processFile=function(){var t=Object(lv.a)(Object(sv.a)().mark((function t(n,r){var o,i,a,c,u,s,l,f,p;return Object(sv.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props.beforeUpload,i=n,!o){t.next=14;break}return t.prev=3,t.next=6,o(n,r);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:c=t.sent,t.next=22;break;case 21:c=a;case 22:if("function"!=typeof(u=e.props.data)){t.next=29;break}return t.next=26,u(n);case 26:s=t.sent,t.next=30;break;case 29:s=u;case 30:return l="object"!==Object(M.a)(i)&&"string"!=typeof i||!i?n:i,f=l instanceof File?l:new File([l],n.name,{type:n.type}),(p=f).uid=n.uid,t.abrupt("return",{origin:n,data:s,parsedFile:p,action:c});case 35:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,n){return t.apply(this,arguments)}}(),e.saveFileInput=function(t){e.fileInput=t},e}return Object(E.a)(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,o=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,c=a.onStart,u=a.customRequest,s=a.name,l=a.headers,f=a.withCredentials,p=a.method,d=r.uid,h=u||pv,v={action:o,filename:s,data:n,file:i,headers:l,withCredentials:f,method:p||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,i)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,i,n),delete t.reqs[d]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,i),delete t.reqs[d]}};c(r),this.reqs[d]=h(v)}}},{key:"reset",value:function(){this.setState({uid:vv()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e,t=this.props,n=t.component,r=t.prefixCls,o=t.className,i=t.disabled,a=t.id,c=t.style,u=t.multiple,s=t.accept,l=t.capture,f=t.children,p=t.directory,d=t.openFileDialogOnClick,h=t.onMouseEnter,v=t.onMouseLeave,g=Object(Rt.a)(t,gv),b=O()((e={},Object(y.a)(e,r,!0),Object(y.a)(e,"".concat(r,"-disabled"),i),Object(y.a)(e,o,o),e)),w=p?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},_=i?{}:{onClick:d?this.onClick:function(){},onKeyDown:d?this.onKeyDown:function(){},onMouseEnter:h,onMouseLeave:v,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return P.a.createElement(n,Object(m.a)({},_,{className:b,role:"button",style:c}),P.a.createElement("input",Object(m.a)({},Object($r.a)(g,{aria:!0,data:!0}),{id:a,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:s},w,{multiple:u,onChange:this.onChange},null!=l?{capture:l}:{})),f)}}]),n}(k.Component);function Ov(){}var wv=function(e){Object(S.a)(n,e);var t=Object(C.a)(n);function n(){var e;Object(x.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).uploader=void 0,e.saveUploader=function(t){e.uploader=t},e}return Object(E.a)(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return P.a.createElement(bv,Object(m.a)({},this.props,{ref:this.saveUploader}))}}]),n}(k.Component);wv.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ov,onError:Ov,onSuccess:Ov,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var _v=wv,xv={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},Ev=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:xv}))};Ev.displayName="FileTwoTone";var Sv=k.forwardRef(Ev),Cv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},jv=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:Cv}))};jv.displayName="PaperClipOutlined";var kv=k.forwardRef(jv),Pv={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},Tv=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:Pv}))};Tv.displayName="PictureTwoTone";var Mv=k.forwardRef(Tv);function Av(e){return Object(m.a)(Object(m.a)({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Lv(e,t){var n=Object(V.a)(t),r=n.findIndex((function(t){return t.uid===e.uid}));return-1===r?n.push(e):n[r]=e,n}function Rv(e,t){var n=void 0!==e.uid?"uid":"name";return t.filter((function(t){return t[n]===e[n]}))[0]}var Nv=function(e){return 0===e.indexOf("image/")};var Iv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Dv=function(e,t){return k.createElement(Mt.a,Object(j.a)(Object(j.a)({},e),{},{ref:t,icon:Iv}))};Dv.displayName="DownloadOutlined";var Fv=k.forwardRef(Dv),zv=k.forwardRef((function(e,t){var n,r,o,i=e.prefixCls,a=e.className,c=e.style,u=e.locale,s=e.listType,l=e.file,f=e.items,p=e.progress,d=e.iconRender,h=e.actionIconRender,v=e.itemRender,b=e.isImgUrl,w=e.showPreviewIcon,_=e.showRemoveIcon,x=e.showDownloadIcon,E=e.previewIcon,S=e.removeIcon,C=e.downloadIcon,j=e.onPreview,P=e.onDownload,T=e.onClose,M=l.status,A=k.useState(M),L=Object(g.a)(A,2),R=L[0],N=L[1];k.useEffect((function(){"removed"!==M&&N(M)}),[M]);var I=k.useState(!1),D=Object(g.a)(I,2),F=D[0],z=D[1],B=k.useRef();k.useEffect((function(){return B.current=setTimeout((function(){z(!0)}),300),function(){window.clearTimeout(B.current)}}),[]);var U="".concat(i,"-span"),V=d(l),H=k.createElement("div",{className:"".concat(i,"-text-icon")},V);if("picture"===s||"picture-card"===s)if("uploading"===R||!l.thumbUrl&&!l.url){var G,W=O()((G={},Object(y.a)(G,"".concat(i,"-list-item-thumbnail"),!0),Object(y.a)(G,"".concat(i,"-list-item-file"),"uploading"!==R),G));H=k.createElement("div",{className:W},V)}else{var Y,K=(null==b?void 0:b(l))?k.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:"".concat(i,"-list-item-image"),crossOrigin:l.crossOrigin}):V,X=O()((Y={},Object(y.a)(Y,"".concat(i,"-list-item-thumbnail"),!0),Object(y.a)(Y,"".concat(i,"-list-item-file"),b&&!b(l)),Y));H=k.createElement("a",{className:X,onClick:function(e){return j(l,e)},href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},K)}var q,Z=O()((n={},Object(y.a)(n,"".concat(i,"-list-item"),!0),Object(y.a)(n,"".concat(i,"-list-item-").concat(R),!0),Object(y.a)(n,"".concat(i,"-list-item-list-type-").concat(s),!0),n)),J="string"==typeof l.linkProps?JSON.parse(l.linkProps):l.linkProps,Q=_?h(("function"==typeof S?S(l):S)||k.createElement(Ch,null),(function(){return T(l)}),i,u.removeFile):null,$=x&&"done"===R?h(("function"==typeof C?C(l):C)||k.createElement(Fv,null),(function(){return P(l)}),i,u.downloadFile):null,ee="picture-card"!==s&&k.createElement("span",{key:"download-delete",className:O()("".concat(i,"-list-item-card-actions"),{picture:"picture"===s})},$,Q),te=O()("".concat(i,"-list-item-name")),ne=l.url?[k.createElement("a",Object(m.a)({key:"view",target:"_blank",rel:"noopener noreferrer",className:te,title:l.name},J,{href:l.url,onClick:function(e){return j(l,e)}}),l.name),ee]:[k.createElement("span",{key:"view",className:te,onClick:function(e){return j(l,e)},title:l.name},l.name),ee],re=w?k.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:l.url||l.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(e){return j(l,e)},title:u.previewFile},"function"==typeof E?E(l):E||k.createElement(Za.a,null)):null,oe="picture-card"===s&&"uploading"!==R&&k.createElement("span",{className:"".concat(i,"-list-item-actions")},re,"done"===R&&$,Q);q=l.response&&"string"==typeof l.response?l.response:(null===(r=l.error)||void 0===r?void 0:r.statusText)||(null===(o=l.error)||void 0===o?void 0:o.message)||u.uploadError;var ie=k.createElement("span",{className:U},H,ne),ae=(0,k.useContext(dt.b).getPrefixCls)(),ce=k.createElement("div",{className:Z},k.createElement("div",{className:"".concat(i,"-list-item-info")},ie),oe,F&&k.createElement(Pn.b,{motionName:"".concat(ae,"-fade"),visible:"uploading"===R,motionDeadline:2e3},(function(e){var t=e.className,n="percent"in l?k.createElement(Ks,Object(m.a)({},p,{type:"line",percent:l.percent})):null;return k.createElement("div",{className:O()("".concat(i,"-list-item-progress"),t)},n)}))),ue=O()("".concat(i,"-list-").concat(s,"-container"),a),se="error"===R?k.createElement(Na.a,{title:q,getPopupContainer:function(e){return e.parentNode}},ce):ce;return k.createElement("div",{className:ue,style:c,ref:t},v?v(se,l,f,{download:P.bind(null,l),preview:j.bind(null,l),remove:T.bind(null,l)}):se)})),Bv=Object(m.a)({},Vo.a);delete Bv.onAppearEnd,delete Bv.onEnterEnd,delete Bv.onLeaveEnd;var Uv=function(e,t){var n,r=e.listType,o=e.previewFile,i=e.onPreview,a=e.onDownload,c=e.onRemove,u=e.locale,s=e.iconRender,l=e.isImageUrl,p=e.prefixCls,d=e.items,h=void 0===d?[]:d,v=e.showPreviewIcon,b=e.showRemoveIcon,w=e.showDownloadIcon,_=e.removeIcon,x=e.previewIcon,E=e.downloadIcon,S=e.progress,C=e.appendAction,j=e.appendActionVisible,P=e.itemRender,T=Object(Ld.a)(),M=k.useState(!1),A=Object(g.a)(M,2),L=A[0],R=A[1];k.useEffect((function(){"picture"!==r&&"picture-card"!==r||(h||[]).forEach((function(e){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",o&&o(e.originFileObj).then((function(t){e.thumbUrl=t||"",T()})))}))}),[r,h,o]),k.useEffect((function(){R(!0)}),[]);var N=function(e,t){if(i)return null==t||t.preventDefault(),i(e)},I=function(e){"function"==typeof a?a(e):e.url&&window.open(e.url)},D=function(e){null==c||c(e)},F=function(e){if(s)return s(e,r);var t="uploading"===e.status,n=l&&l(e)?k.createElement(Mv,null):k.createElement(Sv,null),o=t?k.createElement(Fr.a,null):k.createElement(kv,null);return"picture"===r?o=t?k.createElement(Fr.a,null):n:"picture-card"===r&&(o=t?u.uploading:n),o},z=function(e,t,n,r){var o={type:"text",size:"small",title:r,onClick:function(n){t(),Object(Li.b)(e)&&e.props.onClick&&e.props.onClick(n)},className:"".concat(n,"-list-item-card-actions-btn")};if(Object(Li.b)(e)){var i=Object(Li.a)(e,Object(m.a)(Object(m.a)({},e.props),{onClick:function(){}}));return k.createElement(f.a,Object(m.a)({},o,{icon:i}))}return k.createElement(f.a,Object(m.a)({},o),k.createElement("span",null,e))};k.useImperativeHandle(t,(function(){return{handlePreview:N,handleDownload:I}}));var B=k.useContext(dt.b),U=B.getPrefixCls,H=B.direction,G=U("upload",p),W=O()((n={},Object(y.a)(n,"".concat(G,"-list"),!0),Object(y.a)(n,"".concat(G,"-list-").concat(r),!0),Object(y.a)(n,"".concat(G,"-list-rtl"),"rtl"===H),n)),Y=Object(V.a)(h.map((function(e){return{key:e.uid,file:e}}))),K="picture-card"===r?"animate-inline":"animate",X={motionDeadline:2e3,motionName:"".concat(G,"-").concat(K),keys:Y,motionAppear:L};return"picture-card"!==r&&(X=Object(m.a)(Object(m.a)({},Bv),X)),k.createElement("div",{className:W},k.createElement(Pn.a,Object(m.a)({},X,{component:!1}),(function(e){var t=e.key,n=e.file,o=e.className,i=e.style;return k.createElement(zv,{key:t,locale:u,prefixCls:G,className:o,style:i,file:n,items:h,progress:S,listType:r,isImgUrl:l,showPreviewIcon:v,showRemoveIcon:b,showDownloadIcon:w,removeIcon:_,previewIcon:x,downloadIcon:E,iconRender:F,actionIconRender:z,itemRender:P,onPreview:N,onDownload:I,onClose:D})})),C&&k.createElement(Pn.b,Object(m.a)({},X,{visible:j,forceRender:!0}),(function(e){var t=e.className,n=e.style;return Object(Li.a)(C,(function(e){return{className:O()(e.className,t),style:Object(m.a)(Object(m.a)(Object(m.a)({},n),{pointerEvents:t?"none":void 0}),e.style)}}))})))},Vv=k.forwardRef(Uv);Vv.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,appendActionVisible:!0,previewFile:function(e){return new Promise((function(t){if(e.type&&Nv(e.type)){var n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var r=n.getContext("2d"),o=new Image;if(o.onload=function(){var e=o.width,i=o.height,a=200,c=200,u=0,s=0;e>i?s=-((c=i*(200/e))-a)/2:u=-((a=e*(200/i))-c)/2,r.drawImage(o,u,s,a,c);var l=n.toDataURL();document.body.removeChild(n),t(l)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){var i=new FileReader;i.addEventListener("load",(function(){i.result&&(o.src=i.result)})),i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}else t("")}))},isImageUrl:function(e){if(e.type&&!e.thumbUrl)return Nv(e.type);var t=e.thumbUrl||e.url||"",n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),n=t[t.length-1],r=n.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n}};var Hv=Vv,Gv=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Wv="__LIST_IGNORE_".concat(Date.now(),"__"),Yv=function(e,t){var n,r=e.fileList,o=e.defaultFileList,i=e.onRemove,a=e.showUploadList,c=e.listType,u=e.onPreview,s=e.onDownload,l=e.onChange,f=e.onDrop,p=e.previewFile,d=e.disabled,h=e.locale,v=e.iconRender,b=e.isImageUrl,w=e.progress,_=e.prefixCls,x=e.className,E=e.type,S=e.children,C=e.style,j=e.itemRender,P=e.maxCount,A=k.useContext(Bo.b),L=d||A,R=Object(T.a)(o||[],{value:r,postState:function(e){return null!=e?e:[]}}),N=Object(g.a)(R,2),I=N[0],D=N[1],F=k.useState("drop"),z=Object(g.a)(F,2),B=z[0],U=z[1],H=k.useRef();k.useMemo((function(){var e=Date.now();(r||[]).forEach((function(t,n){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(n,"__"))}))}),[r]);var G=function(e,t,n){var r=Object(V.a)(t);1===P?r=r.slice(-1):P&&(r=r.slice(0,P)),D(r);var o={file:e,fileList:r};n&&(o.event=n),null==l||l(o)},W=function(e){var t=e.filter((function(e){return!e.file[Wv]}));if(t.length){var n=t.map((function(e){return Av(e.file)})),r=Object(V.a)(I);n.forEach((function(e){r=Lv(e,r)})),n.forEach((function(e,n){var o=e;if(t[n].parsedFile)e.status="uploading";else{var i,a=e.originFileObj;try{i=new File([a],a.name,{type:a.type})}catch(c){(i=new Blob([a],{type:a.type})).name=a.name,i.lastModifiedDate=new Date,i.lastModified=(new Date).getTime()}i.uid=e.uid,o=i}G(o,r)}))}},Y=function(e,t,n){try{"string"==typeof e&&(e=JSON.parse(e))}catch(i){}if(Rv(t,I)){var r=Av(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;var o=Lv(r,I);G(r,o)}},K=function(e,t){if(Rv(t,I)){var n=Av(t);n.status="uploading",n.percent=e.percent;var r=Lv(n,I);G(n,r,e)}},X=function(e,t,n){if(Rv(n,I)){var r=Av(n);r.error=e,r.response=t,r.status="error";var o=Lv(r,I);G(r,o)}},q=function(e){var t;Promise.resolve("function"==typeof i?i(e):i).then((function(n){var r;if(!1!==n){var o=function(e,t){var n=void 0!==e.uid?"uid":"name",r=t.filter((function(t){return t[n]!==e[n]}));return r.length===t.length?null:r}(e,I);o&&(t=Object(m.a)(Object(m.a)({},e),{status:"removed"}),null==I||I.forEach((function(e){var n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=H.current)||void 0===r||r.abort(t),G(t,o))}}))},Z=function(e){U(e.type),"drop"===e.type&&(null==f||f(e))};k.useImperativeHandle(t,(function(){return{onBatchStart:W,onSuccess:Y,onProgress:K,onError:X,fileList:I,upload:H.current}}));var J=k.useContext(dt.b),Q=J.getPrefixCls,$=J.direction,ee=Q("upload",_),te=Object(m.a)(Object(m.a)({onBatchStart:W,onError:X,onProgress:K,onSuccess:Y},e),{prefixCls:ee,disabled:L,beforeUpload:function(t,n){return Gv(void 0,void 0,void 0,Object(sv.a)().mark((function r(){var o,i,a,c;return Object(sv.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.beforeUpload,i=e.transformFile,a=t,!o){r.next=13;break}return r.next=5,o(t,n);case 5:if(!1!==(c=r.sent)){r.next=8;break}return r.abrupt("return",!1);case 8:if(delete t[Wv],c!==Wv){r.next=12;break}return Object.defineProperty(t,Wv,{value:!0,configurable:!0}),r.abrupt("return",!1);case 12:"object"===Object(M.a)(c)&&c&&(a=c);case 13:if(!i){r.next=17;break}return r.next=16,i(a);case 16:a=r.sent;case 17:return r.abrupt("return",a);case 18:case"end":return r.stop()}}),r)})))},onChange:void 0});delete te.className,delete te.style,S&&!L||delete te.id;var ne=function(e,t){return a?k.createElement(ht.a,{componentName:"Upload",defaultLocale:Ra.a.Upload},(function(n){var r="boolean"==typeof a?{}:a,o=r.showRemoveIcon,i=r.showPreviewIcon,l=r.showDownloadIcon,f=r.removeIcon,d=r.previewIcon,y=r.downloadIcon;return k.createElement(Hv,{prefixCls:ee,listType:c,items:I,previewFile:p,onPreview:u,onDownload:s,onRemove:q,showRemoveIcon:!L&&o,showPreviewIcon:i,showDownloadIcon:l,removeIcon:f,previewIcon:d,downloadIcon:y,iconRender:v,locale:Object(m.a)(Object(m.a)({},n),h),isImageUrl:b,progress:w,appendAction:e,appendActionVisible:t,itemRender:j})})):e};if("drag"===E){var re,oe=O()(ee,(re={},Object(y.a)(re,"".concat(ee,"-drag"),!0),Object(y.a)(re,"".concat(ee,"-drag-uploading"),I.some((function(e){return"uploading"===e.status}))),Object(y.a)(re,"".concat(ee,"-drag-hover"),"dragover"===B),Object(y.a)(re,"".concat(ee,"-disabled"),L),Object(y.a)(re,"".concat(ee,"-rtl"),"rtl"===$),re),x);return k.createElement("span",null,k.createElement("div",{className:oe,onDrop:Z,onDragOver:Z,onDragLeave:Z,style:C},k.createElement(_v,Object(m.a)({},te,{ref:H,className:"".concat(ee,"-btn")}),k.createElement("div",{className:"".concat(ee,"-drag-container")},S))),ne())}var ie,ae=O()(ee,(n={},Object(y.a)(n,"".concat(ee,"-select"),!0),Object(y.a)(n,"".concat(ee,"-select-").concat(c),!0),Object(y.a)(n,"".concat(ee,"-disabled"),L),Object(y.a)(n,"".concat(ee,"-rtl"),"rtl"===$),n)),ce=(ie=S?void 0:{display:"none"},k.createElement("div",{className:ae,style:ie},k.createElement(_v,Object(m.a)({},te,{ref:H}))));return"picture-card"===c?k.createElement("span",{className:O()("".concat(ee,"-picture-card-wrapper"),x)},ne(ce,!!S)):k.createElement("span",{className:x},ce,ne())},Kv=k.forwardRef(Yv);Kv.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var Xv=Kv,qv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Zv=function(e,t){var n=e.style,r=e.height,o=qv(e,["style","height"]);return k.createElement(Xv,Object(m.a)({ref:t},o,{type:"drag",style:Object(m.a)(Object(m.a)({},n),{height:r})}))};var Jv=k.forwardRef(Zv),Qv=Xv;Qv.Dragger=Jv,Qv.LIST_IGNORE=Wv;var $v=Qv,ey="4.22.4"},gdiE:function(e,t){},gfy7:function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},gh9N:function(e,t,n){"use strict";t.a=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4)))}},gl7v:function(e,t,n){"use strict";var r=n("SEb4"),o=n("Dot1"),i=n("CYhr");function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(a.Cache||i.a),n}a.Cache=i.a;var c=a;var u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,l=function(e){var t=c(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(u,(function(e,n,r,o){t.push(r?o.replace(s,"$1"):n||e)})),t})),f=n("SNCn");t.a=function(e,t){return Object(r.a)(e)?e:Object(o.a)(e,t)?[e]:l(Object(f.a)(e))}},gnsf:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("3yBb");function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function i(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(r.a)())return null;var o,a=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(a.nonce=null===(o=n.csp)||void 0===o?void 0:o.nonce);a.innerHTML=e;var c=i(n),u=c.firstChild;return n.prepend&&c.prepend?c.prepend(a):n.prepend&&u?c.insertBefore(a,u):c.appendChild(a),a}var c=new Map;function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(t);return Array.from(c.get(n).children).find((function(n){return"STYLE"===n.tagName&&n.getAttribute(o(t))===e}))}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i(n);if(!c.has(r)){var s=a("",n),l=s.parentNode;c.set(r,l),l.removeChild(s)}var f=u(t,n);if(f){var p,d,h;if((null===(p=n.csp)||void 0===p?void 0:p.nonce)&&f.nonce!==(null===(d=n.csp)||void 0===d?void 0:d.nonce))f.nonce=null===(h=n.csp)||void 0===h?void 0:h.nonce;return f.innerHTML!==e&&(f.innerHTML=e),f}var v=a(e,n);return v.setAttribute(o(n),t),v}},gtyy:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("zEXi"),o=n("pfNN"),i=n("PGAt");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,o,a=l(f);function f(){return c(this,f),a.apply(this,arguments)}return t=f,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,o=e.usage,i=e.color,a=void 0===i?"#fff":i;return{u_opacity:n,u_color:"basemap"===o?Object(r.Eb)(a):[0,0,0,0]}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,o=void 0!==n&&n,a=t.maskInside,c=void 0===a||a,u=t.usage;this.layer.triangulation=i.o,this.layer.buildLayerModel({moduleName:"polygonTile_"+u,vertexShader:"basemap"===u?'attribute vec3 a_Position;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\n#pragma include "projection"\n\nvoid main() {\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n}':'attribute vec4 a_Color;\nattribute vec3 a_Position;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\n// uniform vec2 u_tileOrigin;\n// uniform float u_coord;\n\nvarying vec4 v_color;\n\n#pragma include "projection"\n#pragma include "picking"\n\nvoid main() {\n v_color = a_Color;\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n // if(u_coord > 0.0) {\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n // } else {\n // vec4 world = vec4(project_mvt_offset_position(vec4(u_tileOrigin, 0.0, 1.0)).xyz, 1.0); // 瓦片起始点的世界坐标\n\n // vec2 pointOffset = a_Position.xy * pow(2.0, u_Zoom); // 瓦片内的点的偏移坐标\n \n // world.xy += pointOffset;\n\n // if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // // Needs to be divided with project_uCommonUnitsPerMeter\n // world.w *= u_PixelsPerMeter.z;\n // }\n\n // gl_Position = u_ViewProjectionMatrix * world + u_ViewportCenterProjection;\n // }\n\n setPickingColor(a_PickingColor);\n}\n\n',fragmentShader:"basemap"===u?"uniform float u_opacity : 1.0;\nuniform vec4 u_color;\n\nvoid main() {\n gl_FragColor = u_color;\n gl_FragColor.a *= u_opacity;\n}\n":'uniform float u_opacity : 1.0;\nvarying vec4 v_color;\n\n#pragma include "picking"\n\nvoid main() {\n gl_FragColor = v_color;\n gl_FragColor.a *= u_opacity;\n gl_FragColor = filterColor(gl_FragColor);\n}\n',triangulation:i.o,depth:{enable:!1},blend:this.getBlend(),stencil:Object(r.bb)(o,c),pick:"basemap"!==u}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){}},{key:"registerBuiltinAttributes",value:function(){}}])&&u(t.prototype,n),o&&u(t,o),Object.defineProperty(t,"prototype",{writable:!1}),f}(o.a)},"h++M":function(e,t,n){var r=n("dw5g"),o=n("TYRa");e.exports=function(e){return o(r(e).toLowerCase())}},"h/Ba":function(e,t,n){},"h/vM":function(e,t,n){"use strict";var r=n("Czhu"),o=n("cxan"),i=n("9fIP"),a=n("MMYH"),c=n("pWxA"),u=n("8K1b"),s=n("AqVP"),l=n("ERkP"),f=n.n(l),p=n("7nmT"),d=n.n(p),h=n("jiyB"),v=n("ioev"),y=n("uO0T"),m=n("uwWy"),g=n("ty86"),b=n("Yu/1"),O=n("O94r"),w=n.n(O);function _(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var x=n("zygG"),E=n("HbGN"),S=n("gh9N"),C=n("B5SY");function j(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function k(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,c=e.maskMotion,u=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var f={};return(c||s||u)&&(f=Object(r.a)({motionAppear:!0},j({motion:c,prefixCls:t,transitionName:s,animation:u}))),l.createElement(C.b,Object(o.a)({},f,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return l.createElement("div",{style:{zIndex:i},className:w()("".concat(t,"-mask"),n)})}))}var P,T=n("4wDe"),M=n("c9Qg");function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function D(){if(void 0!==P)return P;P="";var e=document.createElement("p").style;for(var t in I)t+"Transform"in e&&(P=t);return P}function F(){return D()?"".concat(D(),"TransitionProperty"):"transitionProperty"}function z(){return D()?"".concat(D(),"Transform"):"transform"}function B(e,t){var n=F();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function U(e,t){var n=z();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var V,H=/matrix\((.*)\)/,G=/matrix3d\((.*)\)/;function W(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function Y(e,t,n){var r=n;if("object"!==R(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):V(e,t);for(var o in t)t.hasOwnProperty(o)&&Y(e,o,t[o])}function K(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function X(e){return K(e)}function q(e){return K(e,!0)}function Z(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=X(r),t.top+=q(r),t}function J(e){return null!=e&&e==e.window}function Q(e){return J(e)?e.document:9===e.nodeType?e:e.ownerDocument}var $=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ee=/^(top|right|bottom|left)$/,te="left";function ne(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function re(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function oe(e,t,n){"static"===Y(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=ne("left",n),a=ne("top",n),c=re(i),u=re(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var s,l="",f=Z(e);("left"in t||"top"in t)&&(l=(s=e).style.transitionProperty||s.style[F()]||"",B(e,"none")),"left"in t&&(e.style[c]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[u]="",e.style[a]="".concat(o,"px")),W(e);var p=Z(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var v=ne(h,n),y="left"===h?r:o,m=f[h]-p[h];d[v]=v===h?y+m:y-m}Y(e,d),W(e),("left"in t||"top"in t)&&B(e,l);var g={};for(var b in t)if(t.hasOwnProperty(b)){var O=ne(b,n),w=t[b]-f[b];g[O]=b===O?d[O]+w:d[O]-w}Y(e,g)}function ie(e,t){var n=Z(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(z());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(z());if(r&&"none"!==r){var o,i=r.match(H);if(i)(o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,U(e,"matrix(".concat(o.join(","),")"));else(o=r.match(G)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,U(e,"matrix3d(".concat(o.join(","),")"))}else U(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function ae(e,t){for(var n=0;n<e.length;n++)t(e[n])}function ce(e){return"border-box"===V(e,"boxSizing")}"undefined"!=typeof window&&(V=window.getComputedStyle?function(e,t,n){var r=n,o="",i=Q(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if($.test(n)&&!ee.test(t)){var r=e.style,o=r[te],i=e.runtimeStyle[te];e.runtimeStyle[te]=e.currentStyle[te],r[te]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[te]=o,e.runtimeStyle[te]=i}return""===n?"auto":n});var ue=["margin","border","padding"];function se(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}function le(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var c=void 0;c="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(V(e,c))||0}return a}var fe={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function pe(e,t,n){var r=n;if(J(e))return"width"===t?fe.viewportWidth(e):fe.viewportHeight(e);if(9===e.nodeType)return"width"===t?fe.docWidth(e):fe.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=ce(e),c=0;(null==i||i<=0)&&(i=void 0,(null==(c=V(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=parseFloat(c)||0),void 0===r&&(r=a?1:-1);var u=void 0!==i||a,s=i||c;return-1===r?u?s-le(e,["border","padding"],o):c:u?1===r?s:s+(2===r?-le(e,["border"],o):le(e,["margin"],o)):c+le(e,ue.slice(r),o)}ae(["Width","Height"],(function(e){fe["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],fe["viewport".concat(e)](n))},fe["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var de={position:"absolute",visibility:"hidden",display:"block"};function he(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=pe.apply(void 0,t):se(o,de,(function(){r=pe.apply(void 0,t)})),r}function ve(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}ae(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);fe["outer".concat(t)]=function(t,n){return t&&he(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];fe[e]=function(t,r){var o=r;return void 0!==o?t?(ce(t)&&(o+=le(t,["padding","border"],n)),Y(t,e,o)):void 0:t&&he(t,e,-1)}}));var ye={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Q,offset:function(e,t,n){if(void 0===t)return Z(e);!function(e,t,n){if(n.ignoreShake){var r=Z(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),c=t.top.toFixed(0);if(o===a&&i===c)return}n.useCssRight||n.useCssBottom?oe(e,t,n):n.useCssTransform&&z()in document.body.style?ie(e,t):oe(e,t,n)}(e,t,n||{})},isWindow:J,each:ae,css:Y,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:ve,getWindowScrollLeft:function(e){return X(e)},getWindowScrollTop:function(e){return q(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)ye.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};ve(ye,fe);var me=ye.getParent;function ge(e){if(ye.isWindow(e)||9===e.nodeType)return null;var t,n=ye.getDocument(e).body,r=ye.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:me(e);for(t=me(e);t&&t!==n&&9!==t.nodeType;t=me(t))if("static"!==(r=ye.css(t,"position")))return t;return null}var be=ye.getParent;function Oe(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=ge(e),o=ye.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,c=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===c||"visible"===ye.css(r,"overflow")){if(r===a||r===c)break}else{var u=ye.offset(r);u.left+=r.clientLeft,u.top+=r.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+r.clientWidth),n.bottom=Math.min(n.bottom,u.top+r.clientHeight),n.left=Math.max(n.left,u.left)}r=ge(r)}var s=null;ye.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===ye.css(e,"position")&&(e.style.position="fixed"));var l=ye.getWindowScrollLeft(i),f=ye.getWindowScrollTop(i),p=ye.viewportWidth(i),d=ye.viewportHeight(i),h=c.scrollWidth,v=c.scrollHeight,y=window.getComputedStyle(a);if("hidden"===y.overflowX&&(h=i.innerWidth),"hidden"===y.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=s),t||function(e){if(ye.isWindow(e)||9===e.nodeType)return!1;var t=ye.getDocument(e),n=t.body,r=null;for(r=be(e);r&&r!==n&&r!==t;r=be(r)){if("fixed"===ye.css(r,"position"))return!0}return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,f),n.right=Math.min(n.right,l+p),n.bottom=Math.min(n.bottom,f+d);else{var m=Math.max(h,l+p);n.right=Math.min(n.right,m);var g=Math.max(v,f+d);n.bottom=Math.min(n.bottom,g)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function we(e){var t,n,r;if(ye.isWindow(e)||9===e.nodeType){var o=ye.getWindow(e);t={left:ye.getWindowScrollLeft(o),top:ye.getWindowScrollTop(o)},n=ye.viewportWidth(o),r=ye.viewportHeight(o)}else t=ye.offset(e),n=ye.outerWidth(e),r=ye.outerHeight(e);return t.width=n,t.height=r,t}function _e(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,c=e.top;return"c"===n?c+=i/2:"b"===n&&(c+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:c}}function xe(e,t,n,r,o){var i=_e(t,n[1]),a=_e(e,n[0]),c=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-c[0]+r[0]-o[0]),top:Math.round(e.top-c[1]+r[1]-o[1])}}function Ee(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Se(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Ce(e,t,n){var r=[];return ye.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function je(e,t){return e[t]=-e[t],e}function ke(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Pe(e,t){e[0]=ke(e[0],t.width),e[1]=ke(e[1],t.height)}function Te(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,u=n.source||e;i=[].concat(i),a=[].concat(a);var s={},l=0,f=Oe(u,!(!(c=c||{})||!c.alwaysByViewport)),p=we(u);Pe(i,p),Pe(a,t);var d=xe(p,t,o,i,a),h=ye.merge(p,d);if(f&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&Ee(d,p,f)){var v=Ce(o,/[lr]/gi,{l:"r",r:"l"}),y=je(i,0),m=je(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(xe(p,t,v,y,m),p,f)||(l=1,o=v,i=y,a=m)}if(c.adjustY&&Se(d,p,f)){var g=Ce(o,/[tb]/gi,{t:"b",b:"t"}),b=je(i,1),O=je(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(xe(p,t,g,b,O),p,f)||(l=1,o=g,i=b,a=O)}l&&(d=xe(p,t,o,i,a),ye.mix(h,d));var w=Ee(d,p,f),_=Se(d,p,f);if(w||_){var x=o;w&&(x=Ce(o,/[lr]/gi,{l:"r",r:"l"})),_&&(x=Ce(o,/[tb]/gi,{t:"b",b:"t"})),o=x,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=c.adjustX&&w,s.adjustY=c.adjustY&&_,(s.adjustX||s.adjustY)&&(h=function(e,t,n,r){var o=ye.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),ye.mix(o,i)}(d,p,f,s))}return h.width!==p.width&&ye.css(u,"width",ye.width(u)+h.width-p.width),h.height!==p.height&&ye.css(u,"height",ye.height(u)+h.height-p.height),ye.offset(u,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:s}}function Me(e,t,n){var r=n.target||t;return Te(e,we(r),n,!function(e,t){var n=Oe(e,t),r=we(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport))}Me.__getOffsetParent=ge,Me.__getVisibleRectForElement=Oe;var Ae=n("nnRT"),Le=n.n(Ae),Re=n("LaGA");function Ne(e,t){var n=null,r=null;var o=new Re.default((function(e){var o=Object(x.a)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,c=i.height,u=Math.floor(a),s=Math.floor(c);n===u&&r===s||Promise.resolve().then((function(){t({width:u,height:s})})),n=u,r=s}}));return e&&o.observe(e),function(){o.disconnect()}}function Ie(e){return"function"!=typeof e?null:e()}function De(e){return"object"===Object(T.a)(e)&&e?e:null}var Fe=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,c=e.monitorWindowResize,u=e.monitorBufferTime,s=void 0===u?0:u,l=f.a.useRef({}),p=f.a.useRef(),d=f.a.Children.only(n),h=f.a.useRef({});h.current.disabled=r,h.current.target=o,h.current.align=i,h.current.onAlign=a;var y=function(e,t){var n=f.a.useRef(!1),r=f.a.useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e())return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign;if(!t&&n){var i,a=p.current,c=Ie(n),u=De(n);l.current.element=c,l.current.point=u,l.current.align=r;var s=document.activeElement;return c&&Object(M.a)(c)?i=Me(a,c,r):u&&(i=function(e,t,n){var r,o,i=ye.getDocument(e),a=i.defaultView||i.parentWindow,c=ye.getWindowScrollLeft(a),u=ye.getWindowScrollTop(a),s=ye.viewportWidth(a),l=ye.viewportHeight(a),f={left:r="pageX"in t?t.pageX:c+t.clientX,top:o="pageY"in t?t.pageY:u+t.clientY,width:0,height:0},p=r>=0&&r<=c+s&&o>=0&&o<=u+l,d=[n.points[0],"cc"];return Te(e,f,L(L({},n),{},{points:d}),p)}(a,u,r)),function(e,t){e!==document.activeElement&&Object(v.a)(t,e)&&"function"==typeof e.focus&&e.focus()}(s,a),o&&i&&o(a,i),!0}return!1}),s),b=Object(x.a)(y,2),O=b[0],w=b[1],_=f.a.useRef({cancel:function(){}}),E=f.a.useRef({cancel:function(){}});f.a.useEffect((function(){var e,t,n=Ie(o),r=De(o);p.current!==E.current.element&&(E.current.cancel(),E.current.element=p.current,E.current.cancel=Ne(p.current,O)),l.current.element===n&&((e=l.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&Le()(l.current.align,i)||(O(),_.current.element!==n&&(_.current.cancel(),_.current.element=n,_.current.cancel=Ne(n,O)))})),f.a.useEffect((function(){r?w():O()}),[r]);var S=f.a.useRef(null);return f.a.useEffect((function(){c?S.current||(S.current=Object(g.a)(window,"resize",O)):S.current&&(S.current.remove(),S.current=null)}),[c]),f.a.useEffect((function(){return function(){_.current.cancel(),E.current.cancel(),S.current&&S.current.remove(),w()}}),[]),f.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return O(!0)}}})),f.a.isValidElement(d)&&(d=f.a.cloneElement(d,{ref:Object(m.a)(d.ref,p)})),d},ze=f.a.forwardRef(Fe);ze.displayName="Align";var Be=ze,Ue=n("s1jM"),Ve=n("p05D"),He=n("QsI/"),Ge=n("mDRv"),We=["measure","alignPre","align",null,"motion"],Ye=l.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,c=e.style,u=e.children,s=e.zIndex,f=e.stretch,p=e.destroyPopupOnHide,d=e.forceRender,v=e.align,y=e.point,m=e.getRootDomNode,g=e.getClassNameFromAlign,b=e.onAlign,O=e.onMouseEnter,_=e.onMouseLeave,E=e.onMouseDown,S=e.onTouchStart,k=e.onClick,P=Object(l.useRef)(),T=Object(l.useRef)(),M=Object(l.useState)(),A=Object(x.a)(M,2),L=A[0],R=A[1],N=function(e){var t=l.useState({width:0,height:0}),n=Object(x.a)(t,2),r=n[0],o=n[1];return[l.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){o({width:e.offsetWidth,height:e.offsetHeight})}]}(f),I=Object(x.a)(N,2),D=I[0],F=I[1];var z=function(e,t){var n=Object(Ge.a)(null),r=Object(x.a)(n,2),o=r[0],i=r[1],a=Object(l.useRef)();function c(e){i(e,!0)}function u(){h.a.cancel(a.current)}return Object(l.useEffect)((function(){c("measure")}),[e]),Object(l.useEffect)((function(){switch(o){case"measure":t()}o&&(a.current=Object(h.a)(Object(He.a)(Object(Ve.a)().mark((function e(){var t,n;return Object(Ve.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=We.indexOf(o),(n=We[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),Object(l.useEffect)((function(){return function(){u()}}),[]),[o,function(e){u(),a.current=Object(h.a)((function(){c((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){f&&F(m())})),B=Object(x.a)(z,2),U=B[0],V=B[1],H=Object(l.useState)(0),G=Object(x.a)(H,2),W=G[0],Y=G[1],K=Object(l.useRef)();function X(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function q(e,t){var n=g(t);L!==n&&R(n),Y((function(e){return e+1})),"align"===U&&(null==b||b(e,t))}Object(Ue.a)((function(){"alignPre"===U&&Y(0)}),[U]),Object(Ue.a)((function(){"align"===U&&(W<2?X():V((function(){var e;null===(e=K.current)||void 0===e||e.call(K)})))}),[W]);var Z=Object(r.a)({},j(e));function J(){return new Promise((function(e){K.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Z[e];Z[e]=function(e,n){return V(),null==t?void 0:t(e,n)}})),l.useEffect((function(){Z.motionName||"motion"!==U||V()}),[Z.motionName,U]),l.useImperativeHandle(t,(function(){return{forceAlign:X,getElement:function(){return T.current}}}));var Q=Object(r.a)(Object(r.a)({},D),{},{zIndex:s,opacity:"motion"!==U&&"stable"!==U&&n?0:void 0,pointerEvents:n||"stable"===U?void 0:"none"},c),$=!0;!(null==v?void 0:v.points)||"align"!==U&&"stable"!==U||($=!1);var ee=u;return l.Children.count(u)>1&&(ee=l.createElement("div",{className:"".concat(i,"-content")},u)),l.createElement(C.b,Object(o.a)({visible:n,ref:T,leavedClassName:"".concat(i,"-hidden")},Z,{onAppearPrepare:J,onEnterPrepare:J,removeOnLeave:p,forceRender:d}),(function(e,t){var n=e.className,o=e.style,c=w()(i,a,L,n);return l.createElement(Be,{target:y||m,key:"popup",ref:P,monitorWindowResize:!0,disabled:$,align:v,onAlign:q},l.createElement("div",{ref:t,className:c,onMouseEnter:O,onMouseLeave:_,onMouseDownCapture:E,onTouchStartCapture:S,onClick:k,style:Object(r.a)(Object(r.a)({},o),Q)},ee))}))}));Ye.displayName="PopupInner";var Ke=Ye,Xe=l.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,c=e.children,u=e.mobile,s=(u=void 0===u?{}:u).popupClassName,f=u.popupStyle,p=u.popupMotion,d=void 0===p?{}:p,h=u.popupRender,v=e.onClick,y=l.useRef();l.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return y.current}}}));var m=Object(r.a)({zIndex:a},f),g=c;return l.Children.count(c)>1&&(g=l.createElement("div",{className:"".concat(n,"-content")},c)),h&&(g=h(g)),l.createElement(C.b,Object(o.a)({visible:i,ref:y,removeOnLeave:!0},d),(function(e,t){var o=e.className,i=e.style,a=w()(n,s,o);return l.createElement("div",{ref:t,className:a,onClick:v,style:Object(r.a)(Object(r.a)({},i),m)},g)}))}));Xe.displayName="MobilePopupInner";var qe=Xe,Ze=["visible","mobile"],Je=l.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=Object(E.a)(e,Ze),c=Object(l.useState)(n),u=Object(x.a)(c,2),s=u[0],f=u[1],p=Object(l.useState)(!1),d=Object(x.a)(p,2),h=d[0],v=d[1],y=Object(r.a)(Object(r.a)({},a),{},{visible:s});Object(l.useEffect)((function(){f(n),n&&i&&v(Object(S.a)())}),[n,i]);var m=h?l.createElement(qe,Object(o.a)({},y,{mobile:i,ref:t})):l.createElement(Ke,Object(o.a)({},y,{ref:t}));return l.createElement("div",null,l.createElement(k,y),m)}));Je.displayName="Popup";var Qe=Je,$e=l.createContext(null);function et(){}function tt(){return""}function nt(e){return e?e.ownerDocument:window.document}var rt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var ot,it;t.a=(ot=b.a,(it=function(e){Object(u.a)(n,e);var t=Object(s.a)(n);function n(e){var r,a;return Object(i.a)(this,n),(r=t.call(this,e)).popupRef=l.createRef(),r.triggerRef=l.createRef(),r.portalContainer=void 0,r.attachId=void 0,r.clickOutsideHandler=void 0,r.touchOutsideHandler=void 0,r.contextMenuOutsideHandler1=void 0,r.contextMenuOutsideHandler2=void 0,r.mouseDownTimeout=void 0,r.focusTime=void 0,r.preClickTime=void 0,r.preTouchTime=void 0,r.delayTimer=void 0,r.hasPopupMouseDown=void 0,r.onMouseEnter=function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)},r.onMouseMove=function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)},r.onMouseLeave=function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onPopupMouseEnter=function(){r.clearDelayTimer()},r.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&Object(v.a)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onFocus=function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))},r.onMouseDown=function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()},r.onTouchStart=function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()},r.onBlur=function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)},r.onContextMenu=function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)},r.onContextMenuClose=function(){r.isContextMenuToShow()&&r.close()},r.onClick=function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)},r.onPopupMouseDown=function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)},r.onDocumentClick=function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();Object(v.a)(n,t)&&!r.isContextMenuOnly()||Object(v.a)(o,t)||r.hasPopupMouseDown||r.close()}},r.getRootDomNode=function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=Object(y.a)(r.triggerRef.current);if(t)return t}catch(n){}return d.a.findDOMNode(Object(c.a)(r))},r.getPopupClassNameFromAlign=function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,c=n.alignPoint,u=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var c=i[a];if(_(e[c].points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(i,a,e,c)),u&&t.push(u(e)),t.join(" ")},r.getComponent=function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,c=e.popupMotion,u=e.popupAnimation,s=e.popupTransitionName,f=e.popupStyle,p=e.mask,d=e.maskAnimation,h=e.maskTransitionName,v=e.maskMotion,y=e.zIndex,m=e.popup,g=e.stretch,b=e.alignPoint,O=e.mobile,w=e.forceRender,_=e.onPopupClick,x=r.state,E=x.popupVisible,S=x.point,C=r.getPopupAlign(),j={};return r.isMouseEnterToShow()&&(j.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(j.onMouseLeave=r.onPopupMouseLeave),j.onMouseDown=r.onPopupMouseDown,j.onTouchStart=r.onPopupMouseDown,l.createElement(Qe,Object(o.a)({prefixCls:t,destroyPopupOnHide:n,visible:E,point:b&&S,className:i,align:C,onAlign:a,animation:u,getClassNameFromAlign:r.getPopupClassNameFromAlign},j,{stretch:g,getRootDomNode:r.getRootDomNode,style:f,mask:p,zIndex:y,transitionName:s,maskAnimation:d,maskTransitionName:h,maskMotion:v,ref:r.popupRef,motion:c,mobile:O,forceRender:w,onClick:_}),"function"==typeof m?m():m)},r.attachParent=function(e){h.a.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=Object(h.a)((function(){r.attachParent(e)}))},r.getContainer=function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer},r.setPoint=function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})},r.handlePortalUpdate=function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)},r.triggerContextValue={onPopupMouseDown:r.onPopupMouseDown},a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},rt.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(g.a)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(g.a)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(g.a)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(g.a)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),h.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return Object(r.a)(Object(r.a)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,c=t.autoDestroy,u=l.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var f=w()(u&&u.props&&u.props.className,a);f&&(s.className=f);var p=Object(r.a)({},s);Object(m.c)(u)&&(p.ref=Object(m.a)(this.triggerRef,u.ref));var d,h=l.cloneElement(u,p);return(e||this.popupRef.current||o)&&(d=l.createElement(ot,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(d=null),l.createElement($e.Provider,{value:this.triggerContextValue},h,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(l.Component)).contextType=$e,it.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:tt,getDocument:nt,onPopupVisibleChange:et,afterPopupVisibleChange:et,onPopupAlign:et,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},it)},h4um:function(e,t,n){e.exports=n("9SCj")},h7wP:function(e,t,n){"use strict";n("6JDI"),n("nndn"),e.exports=o;var r=n("1TxV");function o(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}o.Varint=0,o.Fixed64=1,o.Bytes=2,o.Fixed32=5;var i="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function a(e){return e.type===o.Bytes?e.readVarint()+e.pos:e.pos+1}function c(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function u(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var o=n.pos-1;o>=e;o--)n.buf[o+r]=n.buf[o]}function s(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function l(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function f(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function p(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function d(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function h(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function v(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function y(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function m(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function g(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function b(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function O(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}o.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),o=r>>3,i=this.pos;this.type=7&r,e(o,t,this),this.pos===i&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=g(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=O(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=g(this.buf,this.pos)+4294967296*g(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=g(this.buf,this.pos)+4294967296*O(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var e=r.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=r.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,o,i=n.buf;if(o=i[n.pos++],r=(112&o)>>4,o<128)return c(e,r,t);if(o=i[n.pos++],r|=(127&o)<<3,o<128)return c(e,r,t);if(o=i[n.pos++],r|=(127&o)<<10,o<128)return c(e,r,t);if(o=i[n.pos++],r|=(127&o)<<17,o<128)return c(e,r,t);if(o=i[n.pos++],r|=(127&o)<<24,o<128)return c(e,r,t);if(o=i[n.pos++],r|=(1&o)<<31,o<128)return c(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&i?function(e,t,n){return i.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){var r="",o=t;for(;o<n;){var i,a,c,u=e[o],s=null,l=u>239?4:u>223?3:u>191?2:1;if(o+l>n)break;1===l?u<128&&(s=u):2===l?128==(192&(i=e[o+1]))&&(s=(31&u)<<6|63&i)<=127&&(s=null):3===l?(i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&((s=(15&u)<<12|(63&i)<<6|63&a)<=2047||s>=55296&&s<=57343)&&(s=null)):4===l&&(i=e[o+1],a=e[o+2],c=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&((s=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&c)<=65535||s>=1114112)&&(s=null)),null===s?(s=65533,l=1):s>65535&&(s-=65536,r+=String.fromCharCode(s>>>10&1023|55296),s=56320|1023&s),r+=String.fromCharCode(s),o+=l}return r}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==o.Bytes)return e.push(this.readVarint(t));var n=a(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==o.Bytes)return e.push(this.readSVarint());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==o.Bytes)return e.push(this.readBoolean());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==o.Bytes)return e.push(this.readFloat());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==o.Bytes)return e.push(this.readDouble());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==o.Bytes)return e.push(this.readFixed32());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==o.Bytes)return e.push(this.readSFixed32());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==o.Bytes)return e.push(this.readFixed64());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==o.Bytes)return e.push(this.readSFixed64());var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===o.Varint)for(;this.buf[this.pos++]>127;);else if(t===o.Bytes)this.pos=this.readVarint()+this.pos;else if(t===o.Fixed32)this.pos+=4;else{if(t!==o.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var n=new Uint8Array(t);n.set(this.buf),this.buf=n,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),b(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),b(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),b(this.buf,-1&e,this.pos),b(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),b(this.buf,-1&e,this.pos),b(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,r;e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0));if(e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos]=127&e}(n,0,t),function(e,t){var n=(7&e)<<4;if(t.buf[t.pos++]|=n|((e>>>=3)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;t.buf[t.pos++]=127&e}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var r,o,i=0;i<t.length;i++){if((r=t.charCodeAt(i))>55295&&r<57344){if(!o){r>56319||i+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):o=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,o=r;continue}r=o-55296<<10|r-56320|65536,o=null}else o&&(e[n++]=239,e[n++]=191,e[n++]=189,o=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&u(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),r.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),r.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var r=this.pos-n;r>=128&&u(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,o.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,s,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,l,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,d,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,f,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,p,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,h,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,v,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,y,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,m,t)},writeBytesField:function(e,t){this.writeTag(e,o.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,o.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,o.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,o.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,o.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,o.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,o.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,o.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,o.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,o.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}}},hJjP:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),function(e){e[e.LNGLAT=1]="LNGLAT",e[e.LNGLAT_OFFSET=2]="LNGLAT_OFFSET",e[e.VECTOR_TILE=3]="VECTOR_TILE",e[e.IDENTITY=4]="IDENTITY",e[e.P20=5]="P20",e[e.P20_OFFSET=6]="P20_OFFSET",e[e.METER_OFFSET=7]="METER_OFFSET",e[e.P20_2=8]="P20_2"}(r||(r={}));var o={CoordinateSystem:"u_CoordinateSystem",ViewportCenter:"u_ViewportCenter",ViewportCenterProjection:"u_ViewportCenterProjection",PixelsPerDegree:"u_PixelsPerDegree",PixelsPerDegree2:"u_PixelsPerDegree2",PixelsPerMeter:"u_PixelsPerMeter",Mvp:"u_Mvp"}},hNjE:function(e,t){e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},hOO4:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return D}));var r=n("mpCQ"),o=n("pufz"),i=n("V7SB"),a=n("zEXi"),c=n("s6Xb"),u=(n("qzOT"),n("k0uE")),s=n("uNS2"),l=n("LNdp");function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p,d=["id","style","rotation","mapInstance","version","mapSize","interactive"],h=["id","style","rotation","mapInstance","canvas","hasBaseMap"];function v(){v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(k){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=u;var l={};function p(){}function d(){}function h(){}var y={};c(y,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,o)&&(y=g);var b=h.prototype=p.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==f(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=h,c(b,"constructor",h),c(h,"constructor",d),d.displayName=c(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},O(w.prototype),c(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(b),c(b,a,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function O(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){b(i,r,o,a,c,"next",e)}function c(e){b(i,r,o,a,c,"throw",e)}a(void 0)}))}}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=Object(c.injectable)()(p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(p,e);var t,n,r,c,l,f=E(p);function p(){var e;w(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return k(C(e=f.call.apply(f,[this].concat(n))),"version",u.a.L7MAP),k(C(e),"handleMiniCameraChanged",(function(t,n,r,i,a){var c=e.config.offsetCoordinate,u=void 0===c||c;e.viewport.syncWithMapCamera({bearing:i,center:[t,n],viewportHeight:e.map.transform.height,pitch:a,viewportWidth:e.map.transform.width,zoom:r,cameraHeight:0}),e.viewport.getZoom()>12&&u?e.coordinateSystemService.setCoordinateSystem(o.CoordinateSystem.LNGLAT_OFFSET):e.coordinateSystemService.setCoordinateSystem(o.CoordinateSystem.LNGLAT),e.cameraChangedCallback(e.viewport)})),e}return t=p,(n=[{key:"lngLatToMercator",value:function(e,t){throw new Error("Method not implemented.")}},{key:"getModelMatrix",value:function(){throw new Error("Method not implemented.")}},{key:"init",value:(l=O(v().mark((function e(){var t,n,r,o,a,c,l,f,p,h,y,b,O,w,_;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.config,n=t.id,r=void 0===n?"map":n,o=t.style,a=void 0===o?"light":o,c=t.rotation,l=void 0===c?0:c,f=t.mapInstance,p=t.version,h=void 0===p?"L7MAP":p,y=t.mapSize,b=void 0===y?1e4:y,O=t.interactive,w=void 0===O||O,_=g(t,d),this.viewport=new s.a,this.version=h,this.simpleMapCoord.setSize(b),h===u.a.SIMPLE&&_.center&&(_.center=this.simpleMapCoord.unproject(_.center)),f?(this.map=f,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(r),this.map=new i.b(m({container:this.$mapContainer,style:this.getMapStyle(a),bearing:l},_))),this.map.on("load",this.handleCameraChanged),w&&this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"initMiniMap",value:(c=O(v().mark((function e(){var t,n,r,o,c,u,l,f,p,d,y,b=this;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=this.config).id,n=t.style,r=void 0===n?"light":n,o=t.rotation,c=void 0===o?0:o,t.mapInstance,u=t.canvas,l=void 0===u?null:u,f=t.hasBaseMap,p=void 0!==f&&f,d=g(t,h),this.viewport=new s.a,this.$mapContainer=l,this.map=new i.b(m({container:this.$mapContainer,style:this.getMapStyle(r),bearing:c,canvas:l},d)),p?(y=this.map.getCenter(),this.handleMiniCameraChanged(y.lng,y.lat,this.map.getZoom(),this.map.getBearing(),this.map.getPitch()),a.c.document.addEventListener("mapCameaParams",(function(e){var t=e.e,n=t.longitude,r=t.latitude,o=t.scale,i=t.bearing,a=t.pitch;b.handleMiniCameraChanged(n,r,o-1.25,i,a)}))):(this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged());case 5:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"exportMap",value:function(e){var t=this.map.getCanvas();return"jpg"===e?null==t?void 0:t.toDataURL("image/jpeg"):null==t?void 0:t.toDataURL("image/png")}}])&&_(t.prototype,n),r&&_(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(l.a))||p;function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t){return(L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=I(e);if(t){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N(this,n)}}function N(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(i,e);var t,n,r,o=R(i);function i(){return M(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getServiceConstructor",value:function(){return P}}])&&A(t.prototype,n),r&&A(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a)},hShO:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="EllipsisOutlined";t.a=o.forwardRef(c)},hTPx:function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case u:case c:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case y:case s:return e;default:return t}}case i:return t}}}function x(e){return _(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=y,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||_(e)===f},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===y},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===u},t.isStrictMode=function(e){return _(e)===c},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===c||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===b||e.$$typeof===O||e.$$typeof===w||e.$$typeof===g)},t.typeOf=_},hgAf:function(e,t,n){"use strict";n.d(t,"i",(function(){return o})),n.d(t,"g",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"c",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"j",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return v}));var r=n("LNVR");function o(e,t,n){return{r:255*Object(r.a)(e,255),g:255*Object(r.a)(t,255),b:255*Object(r.a)(n,255)}}function i(e,t,n){e=Object(r.a)(e,255),t=Object(r.a)(t,255),n=Object(r.a)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,c=0,u=(o+i)/2;if(o===i)c=0,a=0;else{var s=o-i;switch(c=u>.5?s/(2-o-i):s/(o+i),o){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4}a/=6}return{h:a,s:c,l:u}}function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function c(e,t,n){var o,i,c;if(e=Object(r.a)(e,360),t=Object(r.a)(t,100),n=Object(r.a)(n,100),0===t)i=n,c=n,o=n;else{var u=n<.5?n*(1+t):n+t-n*t,s=2*n-u;o=a(s,u,e+1/3),i=a(s,u,e),c=a(s,u,e-1/3)}return{r:255*o,g:255*i,b:255*c}}function u(e,t,n){e=Object(r.a)(e,255),t=Object(r.a)(t,255),n=Object(r.a)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,c=o,u=o-i,s=0===o?0:u/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4}a/=6}return{h:a,s:s,v:c}}function s(e,t,n){e=6*Object(r.a)(e,360),t=Object(r.a)(t,100),n=Object(r.a)(n,100);var o=Math.floor(e),i=e-o,a=n*(1-t),c=n*(1-i*t),u=n*(1-(1-i)*t),s=o%6;return{r:255*[n,c,a,a,u,n][s],g:255*[u,n,n,c,a,a][s],b:255*[a,a,u,n,n,c][s]}}function l(e,t,n,o){var i=[Object(r.e)(Math.round(e).toString(16)),Object(r.e)(Math.round(t).toString(16)),Object(r.e)(Math.round(n).toString(16))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function f(e,t,n,o,i){var a=[Object(r.e)(Math.round(e).toString(16)),Object(r.e)(Math.round(t).toString(16)),Object(r.e)(Math.round(n).toString(16)),Object(r.e)(p(o))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function p(e){return Math.round(255*parseFloat(e)).toString(16)}function d(e){return h(e)/255}function h(e){return parseInt(e,16)}function v(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}},hh2X:function(e,t,n){"use strict";var r=n("ERkP"),o=n("O94r"),i=n.n(o),a=n("8sde");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=r.forwardRef((function(e,t){var n=e.height,o=e.offset,c=e.children,l=e.prefixCls,f=e.onInnerResize,p={},d={display:"flex",flexDirection:"column"};return void 0!==o&&(p={height:n,position:"relative",overflow:"hidden"},d=u(u({},d),{},{transform:"translateY(".concat(o,"px)"),position:"absolute",left:0,right:0,top:0})),r.createElement("div",{style:p},r.createElement(a.a,{onResize:function(e){e.offsetHeight&&f&&f()}},r.createElement("div",{style:d,className:i()(s({},"".concat(l,"-holder-inner"),l)),ref:t},c)))}));l.displayName="Filler";var f=l,p=n("jiyB");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e){return"touches"in e?e.touches[0].pageY:e.pageY}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(c,e);var t,n,o,a=g(c);function c(){var e;v(this,c);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=a.call.apply(a,[this].concat(n))).moveRaf=null,e.scrollbarRef=r.createRef(),e.thumbRef=r.createRef(),e.visibleTimeout=null,e.state={dragging:!1,pageY:null,startTop:null,visible:!1},e.delayHidden=function(){clearTimeout(e.visibleTimeout),e.setState({visible:!0}),e.visibleTimeout=setTimeout((function(){e.setState({visible:!1})}),2e3)},e.onScrollbarTouchStart=function(e){e.preventDefault()},e.onContainerMouseDown=function(e){e.stopPropagation(),e.preventDefault()},e.patchEvents=function(){window.addEventListener("mousemove",e.onMouseMove),window.addEventListener("mouseup",e.onMouseUp),e.thumbRef.current.addEventListener("touchmove",e.onMouseMove),e.thumbRef.current.addEventListener("touchend",e.onMouseUp)},e.removeEvents=function(){var t;window.removeEventListener("mousemove",e.onMouseMove),window.removeEventListener("mouseup",e.onMouseUp),null===(t=e.scrollbarRef.current)||void 0===t||t.removeEventListener("touchstart",e.onScrollbarTouchStart),e.thumbRef.current&&(e.thumbRef.current.removeEventListener("touchstart",e.onMouseDown),e.thumbRef.current.removeEventListener("touchmove",e.onMouseMove),e.thumbRef.current.removeEventListener("touchend",e.onMouseUp)),p.a.cancel(e.moveRaf)},e.onMouseDown=function(t){var n=e.props.onStartMove;e.setState({dragging:!0,pageY:w(t),startTop:e.getTop()}),n(),e.patchEvents(),t.stopPropagation(),t.preventDefault()},e.onMouseMove=function(t){var n=e.state,r=n.dragging,o=n.pageY,i=n.startTop,a=e.props.onScroll;if(p.a.cancel(e.moveRaf),r){var c=i+(w(t)-o),u=e.getEnableScrollRange(),s=e.getEnableHeightRange(),l=s?c/s:0,f=Math.ceil(l*u);e.moveRaf=Object(p.a)((function(){a(f)}))}},e.onMouseUp=function(){var t=e.props.onStopMove;e.setState({dragging:!1}),t(),e.removeEvents()},e.getSpinHeight=function(){var t=e.props,n=t.height,r=n/t.count*10;return r=Math.max(r,20),r=Math.min(r,n/2),Math.floor(r)},e.getEnableScrollRange=function(){var t=e.props;return t.scrollHeight-t.height||0},e.getEnableHeightRange=function(){return e.props.height-e.getSpinHeight()||0},e.getTop=function(){var t=e.props.scrollTop,n=e.getEnableScrollRange(),r=e.getEnableHeightRange();return 0===t||0===n?0:t/n*r},e.showScroll=function(){var t=e.props,n=t.height;return t.scrollHeight>n},e}return t=c,(n=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,o=this.props.prefixCls,a=this.getSpinHeight(),c=this.getTop(),u=this.showScroll(),s=u&&n;return r.createElement("div",{ref:this.scrollbarRef,className:i()("".concat(o,"-scrollbar"),h({},"".concat(o,"-scrollbar-show"),u)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:s?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},r.createElement("div",{ref:this.thumbRef,className:i()("".concat(o,"-scrollbar-thumb"),h({},"".concat(o,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:a,top:c,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&y(t.prototype,n),o&&y(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.Component);function x(e){var t=e.children,n=e.setRef,o=r.useCallback((function(e){n(e)}),[]);return r.cloneElement(t,{ref:o})}var E=n("uO0T");function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var C=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maps=void 0,this.maps=Object.create(null)}var t,n,r;return t=e,(n=[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}])&&S(t.prototype,n),r&&S(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t,n){var o=T(r.useState(e),2),i=o[0],a=o[1],c=T(r.useState(null),2),u=c[0],s=c[1];return r.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var c={__EMPTY_ITEM__:!0};function u(e){return void 0!==e?n(e):c}for(var s=null,l=1!==Math.abs(i-a),f=0;f<o.length;f+=1){var p=u(r[f]);if(p!==u(o[f])){s=f,l=l||p!==u(o[f+1]);break}}return null===s?null:{index:s,multiple:l}}(i||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),s(e[r.index])),a(e)}),[e]),[u]}function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var R="object"===("undefined"==typeof navigator?"undefined":L(navigator))&&/Firefox/i.test(navigator.userAgent),N=function(e,t){var n=Object(r.useRef)(!1),o=Object(r.useRef)(null);function i(){clearTimeout(o.current),n.current=!0,o.current=setTimeout((function(){n.current=!1}),50)}var a=Object(r.useRef)({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e<0&&a.current.top||e>0&&a.current.bottom;return t&&r?(clearTimeout(o.current),n.current=!1):r&&!n.current||i(),!n.current&&r}};var I=n("s1jM");var D=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function F(){return(F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var W=[],Y={overflowY:"auto",overflowAnchor:"none"};function K(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,a=e.className,c=e.height,u=e.itemHeight,s=e.fullHeight,l=void 0===s||s,d=e.style,h=e.data,v=e.children,y=e.itemKey,m=e.virtual,g=e.component,b=void 0===g?"div":g,O=e.onScroll,w=e.onVisibleChange,S=G(e,D),k=!(!1===m||!c||!u),T=k&&h&&u*h.length>c,M=V(Object(r.useState)(0),2),L=M[0],z=M[1],H=V(Object(r.useState)(!1),2),K=H[0],X=H[1],q=i()(o,a),Z=h||W,J=Object(r.useRef)(),Q=Object(r.useRef)(),$=Object(r.useRef)(),ee=r.useCallback((function(e){return"function"==typeof y?y(e):null==e?void 0:e[y]}),[y]),te={getKey:ee};function ne(e){z((function(t){var n=function(e){var t=e;Number.isNaN(me.current)||(t=Math.min(t,me.current));return t=Math.max(t,0)}("function"==typeof e?e(t):e);return J.current.scrollTop=n,n}))}var re=Object(r.useRef)({start:0,end:Z.length}),oe=Object(r.useRef)(),ie=V(A(Z,ee),1)[0];oe.current=ie;var ae=V(function(e,t,n){var o=j(r.useState(0),2),i=o[0],a=o[1],c=Object(r.useRef)(new Map),u=Object(r.useRef)(new C),s=Object(r.useRef)();function l(){p.a.cancel(s.current)}function f(){l(),s.current=Object(p.a)((function(){c.current.forEach((function(e,t){if(e&&e.offsetParent){var n=Object(E.a)(e),r=n.offsetHeight;u.current.get(t)!==r&&u.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))}))}return Object(r.useEffect)((function(){return l}),[]),[function(r,o){var i=e(r),a=c.current.get(i);o?(c.current.set(i,o),f()):c.current.delete(i),!a!=!o&&(o?null==t||t(r):null==n||n(r))},f,u.current,i]}(ee,null,null),4),ce=ae[0],ue=ae[1],se=ae[2],le=ae[3],fe=r.useMemo((function(){if(!k)return{scrollHeight:void 0,start:0,end:Z.length-1,offset:void 0};var e;if(!T)return{scrollHeight:(null===(e=Q.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:Z.length-1,offset:void 0};for(var t,n,r,o=0,i=Z.length,a=0;a<i;a+=1){var s=Z[a],l=ee(s),f=se.get(l),p=o+(void 0===f?u:f);p>=L&&void 0===t&&(t=a,n=o),p>L+c&&void 0===r&&(r=a),o=p}return void 0===t&&(t=0,n=0),void 0===r&&(r=Z.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,Z.length),offset:n}}),[T,k,L,Z,le,c]),pe=fe.scrollHeight,de=fe.start,he=fe.end,ve=fe.offset;re.current.start=de,re.current.end=he;var ye=pe-c,me=Object(r.useRef)(ye);me.current=ye;var ge=L<=0,be=L>=ye,Oe=N(ge,be);var we=V(function(e,t,n,o){var i=Object(r.useRef)(0),a=Object(r.useRef)(null),c=Object(r.useRef)(null),u=Object(r.useRef)(!1),s=N(t,n);return[function(t){if(e){p.a.cancel(a.current);var n=t.deltaY;i.current+=n,c.current=n,s(n)||(R||t.preventDefault(),a.current=Object(p.a)((function(){var e=u.current?10:1;o(i.current*e),i.current=0})))}},function(t){e&&(u.current=t.detail===c.current)}]}(k,ge,be,(function(e){ne((function(t){return t+e}))})),2),_e=we[0],xe=we[1];!function(e,t,n){var o,i=Object(r.useRef)(!1),a=Object(r.useRef)(0),c=Object(r.useRef)(null),u=Object(r.useRef)(null),s=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageY),r=a.current-t;a.current=t,n(r)&&e.preventDefault(),clearInterval(u.current),u.current=setInterval((function(){(!n(r*=14/15,!0)||Math.abs(r)<=.1)&&clearInterval(u.current)}),16)}},l=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",s),c.current.addEventListener("touchend",l))};o=function(){c.current&&(c.current.removeEventListener("touchmove",s),c.current.removeEventListener("touchend",l))},Object(I.a)((function(){return e&&t.current.addEventListener("touchstart",f),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(u.current)}}),[e])}(k,J,(function(e,t){return!Oe(e,t)&&(_e({preventDefault:function(){},deltaY:e}),!0)})),Object(I.a)((function(){function e(e){k&&e.preventDefault()}return J.current.addEventListener("wheel",_e),J.current.addEventListener("DOMMouseScroll",xe),J.current.addEventListener("MozMousePixelScroll",e),function(){J.current&&(J.current.removeEventListener("wheel",_e),J.current.removeEventListener("DOMMouseScroll",xe),J.current.removeEventListener("MozMousePixelScroll",e))}}),[k]);var Ee=function(e,t,n,o,i,a,c,u){var s=r.useRef();return function(r){if(null!=r){if(p.a.cancel(s.current),"number"==typeof r)c(r);else if(r&&"object"===P(r)){var l,f=r.align;l="index"in r?r.index:t.findIndex((function(e){return i(e)===r.key}));var d=r.offset,h=void 0===d?0:d;!function r(u,d){if(!(u<0)&&e.current){var v=e.current.clientHeight,y=!1,m=d;if(v){for(var g=d||f,b=0,O=0,w=0,_=Math.min(t.length,l),x=0;x<=_;x+=1){var E=i(t[x]);O=b;var S=n.get(E);b=w=O+(void 0===S?o:S),x===l&&void 0===S&&(y=!0)}var C=null;switch(g){case"top":C=O-h;break;case"bottom":C=w-v+h;break;default:var j=e.current.scrollTop;O<j?m="top":w>j+v&&(m="bottom")}null!==C&&C!==e.current.scrollTop&&c(C)}s.current=Object(p.a)((function(){y&&a(),r(u-1,m)}))}}(3)}}else u()}}(J,Z,se,u,ee,ue,ne,(function(){var e;null===(e=$.current)||void 0===e||e.delayHidden()}));r.useImperativeHandle(t,(function(){return{scrollTo:Ee}})),Object(I.a)((function(){if(w){var e=Z.slice(de,he+1);w(e,Z)}}),[de,he,Z]);var Se=function(e,t,n,o,i,a){var c=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=i(e,t+n,{}),u=c(e);return r.createElement(x,{key:u,setRef:function(t){return o(e,t)}},a)}))}(Z,de,he,ce,v,te),Ce=null;return c&&(Ce=B(U({},l?"height":"maxHeight",c),Y),k&&(Ce.overflowY="hidden",K&&(Ce.pointerEvents="none"))),r.createElement("div",F({style:B(B({},d),{},{position:"relative"}),className:q},S),r.createElement(b,{className:"".concat(o,"-holder"),style:Ce,ref:J,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==L&&ne(t),null==O||O(e)}},r.createElement(f,{prefixCls:o,height:pe,offset:ve,onInnerResize:ue,ref:Q},Se)),k&&r.createElement(_,{ref:$,prefixCls:o,scrollTop:L,height:c,scrollHeight:pe,count:Z.length,onScroll:function(e){ne(e)},onStartMove:function(){X(!0)},onStopMove:function(){X(!1)}}))}var X=r.forwardRef(K);X.displayName="List";var q=X;t.a=q},"hj/m":function(e,t,n){"use strict";n.r(t),n.d(t,"create",(function(){return o})),n.d(t,"clone",(function(){return i})),n.d(t,"fromValues",(function(){return a})),n.d(t,"copy",(function(){return c})),n.d(t,"set",(function(){return u})),n.d(t,"add",(function(){return s})),n.d(t,"subtract",(function(){return l})),n.d(t,"multiply",(function(){return f})),n.d(t,"divide",(function(){return p})),n.d(t,"ceil",(function(){return d})),n.d(t,"floor",(function(){return h})),n.d(t,"min",(function(){return v})),n.d(t,"max",(function(){return y})),n.d(t,"round",(function(){return m})),n.d(t,"scale",(function(){return g})),n.d(t,"scaleAndAdd",(function(){return b})),n.d(t,"distance",(function(){return O})),n.d(t,"squaredDistance",(function(){return w})),n.d(t,"length",(function(){return _})),n.d(t,"squaredLength",(function(){return x})),n.d(t,"negate",(function(){return E})),n.d(t,"inverse",(function(){return S})),n.d(t,"normalize",(function(){return C})),n.d(t,"dot",(function(){return j})),n.d(t,"cross",(function(){return k})),n.d(t,"lerp",(function(){return P})),n.d(t,"random",(function(){return T})),n.d(t,"transformMat4",(function(){return M})),n.d(t,"transformQuat",(function(){return A})),n.d(t,"zero",(function(){return L})),n.d(t,"str",(function(){return R})),n.d(t,"exactEquals",(function(){return N})),n.d(t,"equals",(function(){return I})),n.d(t,"sub",(function(){return F})),n.d(t,"mul",(function(){return z})),n.d(t,"div",(function(){return B})),n.d(t,"dist",(function(){return U})),n.d(t,"sqrDist",(function(){return V})),n.d(t,"len",(function(){return H})),n.d(t,"sqrLen",(function(){return G})),n.d(t,"forEach",(function(){return W}));n("6JDI"),n("nndn"),n("ct5l");var r=n("lmpI");function o(){var e=new r.a(4);return r.a!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function i(e){var t=new r.a(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(e,t,n,o){var i=new r.a(4);return i[0]=e,i[1]=t,i[2]=n,i[3]=o,i}function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function u(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function l(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function f(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function p(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function d(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e}function h(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e}function v(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e}function y(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e}function m(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function g(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function b(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e}function O(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2],i=t[3]-e[3];return Math.hypot(n,r,o,i)}function w(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2],i=t[3]-e[3];return n*n+r*r+o*o+i*i}function _(e){var t=e[0],n=e[1],r=e[2],o=e[3];return Math.hypot(t,n,r,o)}function x(e){var t=e[0],n=e[1],r=e[2],o=e[3];return t*t+n*n+r*r+o*o}function E(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e}function S(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e}function C(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n*n+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=n*a,e[1]=r*a,e[2]=o*a,e[3]=i*a,e}function j(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function k(e,t,n,r){var o=n[0]*r[1]-n[1]*r[0],i=n[0]*r[2]-n[2]*r[0],a=n[0]*r[3]-n[3]*r[0],c=n[1]*r[2]-n[2]*r[1],u=n[1]*r[3]-n[3]*r[1],s=n[2]*r[3]-n[3]*r[2],l=t[0],f=t[1],p=t[2],d=t[3];return e[0]=f*s-p*u+d*c,e[1]=-l*s+p*a-d*i,e[2]=l*u-f*a+d*o,e[3]=-l*c+f*i-p*o,e}function P(e,t,n,r){var o=t[0],i=t[1],a=t[2],c=t[3];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e[2]=a+r*(n[2]-a),e[3]=c+r*(n[3]-c),e}function T(e,t){var n,o,i,a,c,u;t=t||1;do{c=(n=2*r.c()-1)*n+(o=2*r.c()-1)*o}while(c>=1);do{u=(i=2*r.c()-1)*i+(a=2*r.c()-1)*a}while(u>=1);var s=Math.sqrt((1-c)/u);return e[0]=t*n,e[1]=t*o,e[2]=t*i*s,e[3]=t*a*s,e}function M(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3];return e[0]=n[0]*r+n[4]*o+n[8]*i+n[12]*a,e[1]=n[1]*r+n[5]*o+n[9]*i+n[13]*a,e[2]=n[2]*r+n[6]*o+n[10]*i+n[14]*a,e[3]=n[3]*r+n[7]*o+n[11]*i+n[15]*a,e}function A(e,t,n){var r=t[0],o=t[1],i=t[2],a=n[0],c=n[1],u=n[2],s=n[3],l=s*r+c*i-u*o,f=s*o+u*r-a*i,p=s*i+a*o-c*r,d=-a*r-c*o-u*i;return e[0]=l*s+d*-a+f*-u-p*-c,e[1]=f*s+d*-c+p*-a-l*-u,e[2]=p*s+d*-u+l*-c-f*-a,e[3]=t[3],e}function L(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e}function R(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}function N(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function I(e,t){var n=e[0],o=e[1],i=e[2],a=e[3],c=t[0],u=t[1],s=t[2],l=t[3];return Math.abs(n-c)<=r.b*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(o-u)<=r.b*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(i-s)<=r.b*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-l)<=r.b*Math.max(1,Math.abs(a),Math.abs(l))}var D,F=l,z=f,B=p,U=O,V=w,H=_,G=x,W=(D=o(),function(e,t,n,r,o,i){var a,c;for(t||(t=4),n||(n=0),c=r?Math.min(r*t+n,e.length):e.length,a=n;a<c;a+=t)D[0]=e[a],D[1]=e[a+1],D[2]=e[a+2],D[3]=e[a+3],o(D,D,i),e[a]=D[0],e[a+1]=D[1],e[a+2]=D[2],e[a+3]=D[3];return e})},hkKa:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("zygG"),o=n("ERkP");function i(){var e=o.useReducer((function(e){return e+1}),0);return Object(r.a)(e,2)[1]}},hlMf:function(e,t,n){"use strict";n.d(t,"a",(function(){return Nn}));var r=n("pfNN"),o=n("RNvQ"),i=n.n(o),a=n("zEXi"),c=n("gbJM"),u=n("Pm61"),s=n("Hv1p"),l=n("pufz"),f=n("Gf+y"),p=n("lY1V"),d=n("mGvo"),h=n.n(d),v=n("PGAt");function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(i,e);var t,n,r,o=O(i);function i(){return m(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.usage,o=e.color,i=void 0===o?"#fff":o;return{u_opacity:h()(n)?n:1,u_color:"basemap"===r?Object(a.Eb)(i):[0,0,0,0]}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"clearModels",value:function(){}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o,c=t.usage;this.layer.buildLayerModel({moduleName:"lineTileSimpleNormal_"+c,vertexShader:"basemap"===c?'attribute vec3 a_Position;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\n#pragma include "projection"\n\nvoid main() {\n vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy, 0.0, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, 0.0, 1.0));\n }\n}':'attribute vec4 a_Color;\nattribute vec3 a_Position;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\n#pragma include "projection"\n\nvarying vec4 v_color;\n\nvoid main() {\n v_color = a_Color; \n\n vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy, 0.0, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, 0.0, 1.0));\n }\n}\n',fragmentShader:"uniform float u_opacity : 1.0;\nuniform vec4 u_color;\n\nvoid main() {\n gl_FragColor = u_color;\n gl_FragColor.a *= u_opacity;\n}\n",triangulation:v.l,primitive:l.gl.LINES,depth:{enable:!1},blend:this.getBlend(),stencil:Object(a.bb)(r,i),pick:!1}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"registerBuiltinAttributes",value:function(){}}])&&g(t.prototype,n),r&&g(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a),E=n("WWiX"),S=n("z/oK"),C=n("gtyy");function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(e,t){if(t&&("object"===j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return D(e)}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(i,e);var t,n,r,o=N(i);function i(){var e;A(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return z(D(e=o.call.apply(o,[this].concat(n))),"needListen",!0),z(D(e),"isVector",!0),z(D(e),"type",e.layerType||"vectorLayer"),z(D(e),"pickedID",null),z(D(e),"sourceEvent",(function(){e.dataState.dataSourceNeedUpdate=!0,e.reRender()})),e}return t=i,(n=[{key:"init",value:function(){var e=this,t=this.container.get(l.TYPES.SceneID);this.configService.setLayerConfig(t,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,"PointLayer"===this.type&&(this.iconService=this.container.get(l.TYPES.IIconService),this.fontService=this.container.get(l.TYPES.IFontService)),this.rendererService=this.container.get(l.TYPES.IRendererService),this.layerService=this.container.get(l.TYPES.ILayerService),this.mapService=this.container.get(l.TYPES.IMapService),this.cameraService=this.container.get(l.TYPES.ICameraService),this.coordinateService=this.container.get(l.TYPES.ICoordinateSystemService),this.shaderModuleService=this.container.get(l.TYPES.IShaderModuleService),this.postProcessingPassFactory=this.container.get(l.TYPES.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(l.TYPES.IFactoryNormalPass),this.styleAttributeService=this.container.get(l.TYPES.IStyleAttributeService),this.pendingStyleAttributes.forEach((function(t){var n=t.attributeName,r=t.attributeField,o=t.attributeValues,i=t.updateOptions;e.styleAttributeService.updateStyleAttribute(n,{scale:M({field:r},e.splitValuesAndCallbackInAttribute(o,e.getLayerConfig()[n]))},i)})),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(l.TYPES.ILayerPlugin);var n,r=k(this.plugins);try{for(r.s();!(n=r.n()).done;)n.value.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(o){r.e(o)}finally{r.f()}return this.hooks.init.call(),this.hooks.afterInit.call(),this}},{key:"renderModels",value:function(e){var t=this;return this.models.forEach((function(n){n.draw({uniforms:t.layerModel.getUninforms()},e)})),this}},{key:"getPickID",value:function(){return this.pickedID}},{key:"setPickID",value:function(){return this.pickedID}},{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new t(this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"getModelType",value:function(){switch(this.layerType){case"PolygonLayer":return C.a;case"LineLayer":return this.getLineModel();case"PointLayer":return this.getPointModel();default:return S.a}}},{key:"getLineModel",value:function(){var e,t=this.styleAttributeService.getLayerStyleAttribute("shape");switch(null==t||null===(e=t.scale)||void 0===e?void 0:e.field){case"tileline":case"line":return p.a;case"simple":return x;default:return p.a}}},{key:"getPointModel",value:function(){var e=this.getEncodedData(),t=this.getLayerConfig().shape2d,n=e.find((function(e){return e.hasOwnProperty("shape")}));if(n){var r=n.shape;return-1!==(null==t?void 0:t.indexOf(r))?S.a:E.a}return S.a}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getDefaultConfig",value:function(){return{}}}])&&L(t.prototype,n),r&&L(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(f.a),U=n("WvW5"),V=n("OApa"),H=n.n(V),G=n("zzo4");var W=function(e,t,n){void 0===n&&(n={});var r=Object(G.c)(e),o=Object(G.c)(t),i=H.a.union(r.coordinates,o.coordinates);return 0===i.length?null:1===i.length?Object(U.k)(i[0],n.properties):Object(U.i)(i,n.properties)};function Y(e){var t={type:"Feature"};return Object.keys(e).forEach((function(n){switch(n){case"type":case"properties":case"geometry":return;default:t[n]=e[n]}})),t.properties=function e(t){var n={};return t?(Object.keys(t).forEach((function(r){var o=t[r];"object"==typeof o?null===o?n[r]=null:o.length?n[r]=o.map((function(e){return e})):n[r]=e(o):n[r]=o})),n):n}(e.properties),t.geometry=K(e.geometry),t}function K(e){var t={type:e.type};return e.bbox&&(t.bbox=e.bbox),"GeometryCollection"===e.type?(t.geometries=e.geometries.map((function(e){return K(e)})),t):(t.coordinates=function e(t){if("object"!=typeof t[0])return t.slice();return t.map((function(t){return e(t)}))}(e.coordinates),t)}var X=function(e){if(!e)throw new Error("geojson is required");switch(e.type){case"Feature":return Y(e);case"FeatureCollection":return function(e){var t={type:"FeatureCollection"};return Object.keys(e).forEach((function(n){switch(n){case"type":case"features":return;default:t[n]=e[n]}})),t.features=e.features.map((function(e){return Y(e)})),t}(e);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return K(e);default:throw new Error("unknown GeoJSON type")}},q=function(e,t){void 0===t&&(t={});var n=Object(G.c)(e);switch(t.properties||"Feature"!==e.type||(t.properties=e.properties),n.type){case"Polygon":return function(e,t){void 0===t&&(t={});var n=Object(G.c)(e).coordinates,r=t.properties?t.properties:"Feature"===e.type?e.properties:{};return Z(n,r)}(n,t);case"MultiPolygon":return function(e,t){void 0===t&&(t={});var n=Object(G.c)(e).coordinates,r=t.properties?t.properties:"Feature"===e.type?e.properties:{},o=[];return n.forEach((function(e){o.push(Z(e,r))})),Object(U.c)(o)}(n,t);default:throw new Error("invalid poly")}};function Z(e,t){return e.length>1?Object(U.h)(e,t):Object(U.g)(e[0],t)}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ee(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re={features:[],featureId:null,vectorTileLayer:null,source:null},oe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ne(this,"outSideEventTimer",null),ne(this,"eventCache",{click:0,mousemove:0,mouseup:0,mousedown:0,contextmenu:0}),this.parentLayer=t.parent,this.mapService=t.mapService,this.rendererService=t.rendererService;var n=this.parentLayer.getSource();this.zoomOffset=n.parser.zoomOffset||0,this.tilesetManager=n.tileset}var t,n,r;return t=e,(n=[{key:"createTile",value:function(e,t){return{layers:[],layerIDList:[]}}},{key:"getFeatureData",value:function(e,t){var n=t.sourceLayer,r=t.featureId,o=t.transforms,i=void 0===o?[]:o,a=t.layerType,u=t.shape;if(!n)return re;var s=e.data.layers[n],l=null==s?void 0:s.features;if(Array.isArray(l)&&l.length>0){var f=[];"LineLayer"===a&&"simple"===u?l.map((function(e){var t=X(e);if("MultiPolygon"===t.geometry.type){var n,r=q(t).features;(n=f).push.apply(n,$(r))}else"Polygon"===t.geometry.type?(t.geometry.type="MultiLineString",f.push(t)):f.push(t)})):f=l;var p=new c.a({type:"FeatureCollection",features:f},{parser:{type:"geojson",featureId:r,cancelExtent:!0},transforms:i});return{features:f,featureId:r,vectorTileLayer:s,source:p}}return re}},{key:"createLayer",value:function(e){var t=e.L7Layer,n=e.tile,r=e.initOptions,o=e.vectorTileLayer,i=e.source,a=e.needListen,c=void 0===a||a,l=r.mask,f=r.color,p=r.layerType,d=r.size,h=r.shape,v=r.usage,y=r.basemapColor,m=r.basemapSize,g=new(t||B)(Q({visible:n.isVisible,tileOrigin:null==o?void 0:o.l7TileOrigin,coord:null==o?void 0:o.l7TileCoord,needListen:c},this.getLayerInitOption(r)));p&&(g.type=p),g.isTileLayer=!0,g.isVector&&"basemap"!==v&&(this.emitEvent([g]),g.select(!0)),g.source(i),this.setStyleAttributeField(g,"shape",h),"basemap"!==v?(this.setScale(g),this.setStyleAttributeField(g,"color",f),this.setStyleAttributeField(g,"size",d)):g.style({color:y,size:m});var b=[g];if(l&&g.isVector){var O=(new u.a).source({type:"FeatureCollection",features:[n.bboxPolygon]},{parser:{type:"geojson",cancelExtent:!0}});b.push(O),g.addMaskLayer(O)}return Object(s.e)(this.parentLayer,b),this.layers=[g],g}},{key:"updateStyle",value:function(e){return""}},{key:"getDefautStyleAttributeField",value:function(e,t){switch(t){case"size":return 1;case"color":return"#fff";case"shape":return Object(s.a)(this.parentLayer.type,e);default:return""}}},{key:"setStyleAttributeField",value:function(e,t,n){if(Array.isArray(n))e[t].apply(e,$(n));else if("string"!=typeof n){var r=this.getDefautStyleAttributeField(e,t);if(!n)return e[t](r),e;var o=this.parseScaleValue(n,t);0===o.length?e[t](r):e[t].apply(e,$(o))}else e[t](n)}},{key:"parseScaleValue",value:function(e,t){if("shape"===t)return"string"==typeof e?[e]:null!=e&&e.field?[null==e?void 0:e.field]:[];var n=e,r=n.field,o=n.values,i=n.callback;return r&&o&&Array.isArray(o)?[r,o]:r&&i?[r,i]:r?[r]:[]}},{key:"getTile",value:function(e,t){var n=this.mapService.getZoom(),r=Math.ceil(n)+this.zoomOffset,o=Object(a.yb)(e,t,r);return this.tilesetManager.tiles.filter((function(e){return e.key==="".concat(o[0],",").concat(o[1],",").concat(r)}))[0]}},{key:"emitEvent",value:function(e,t){var n=this;e.map((function(e){e.once("inited",(function(){e.on("click",(function(r){if(n.eventCache.click=1,"RasterLayer"===n.parentLayer.type){var o=r.lngLat,i=o.lng,a=o.lat,c=n.getTile(i,a);c&&n.getFeatureAndEmitEvent(e,"subLayerClick",r,t,c)}else n.getFeatureAndEmitEvent(e,"subLayerClick",r)})),e.on("mousemove",(function(r){if(n.eventCache.mousemove=1,"RasterLayer"===n.parentLayer.type){var o=r.lngLat,i=o.lng,a=o.lat,c=n.getTile(i,a);c&&n.getFeatureAndEmitEvent(e,"subLayerMouseMove",r,t,c)}else n.getFeatureAndEmitEvent(e,"subLayerMouseMove",r)})),e.on("mouseup",(function(t){n.eventCache.mouseup=1,n.getFeatureAndEmitEvent(e,"subLayerMouseUp",t)})),e.on("mouseenter",(function(r){if("RasterLayer"===n.parentLayer.type){var o=r.lngLat,i=o.lng,a=o.lat,c=n.getTile(i,a);c&&n.getFeatureAndEmitEvent(e,"subLayerMouseMove",r,t,c)}else n.getFeatureAndEmitEvent(e,"subLayerMouseEnter",r)})),e.on("mouseout",(function(t){n.getFeatureAndEmitEvent(e,"subLayerMouseOut",t)})),e.on("mousedown",(function(t){n.eventCache.mousedown=1,n.getFeatureAndEmitEvent(e,"subLayerMouseDown",t)})),e.on("contextmenu",(function(t){n.eventCache.contextmenu=1,n.getFeatureAndEmitEvent(e,"subLayerContextmenu",t)})),e.on("unclick",(function(t){return n.handleOutsideEvent("click","subLayerUnClick",e,t)})),e.on("unmouseup",(function(t){return n.handleOutsideEvent("mouseup","subLayerUnMouseUp",e,t)})),e.on("unmousedown",(function(t){return n.handleOutsideEvent("mousedown","subLayerUnMouseDown",e,t)})),e.on("uncontextmenu",(function(t){return n.handleOutsideEvent("contextmenu","subLayerUnContextmenu",e,t)}))}))}))}},{key:"getCombineFeature",value:function(e){var t=null,n=e[0];return e.map((function(e){var n=U.k(e.coordinates);null===t&&(t=n),t=W(t,n)})),n&&(t.properties=Q({},n)),t}},{key:"getFeatureAndEmitEvent",value:function(e,t,n,r,o){if(!1===r)n.value=Object(s.d)(o,this.mapService,n.x,n.y);else{var i=n.featureId,a=this.getAllFeatures(i);try{n.feature=this.getCombineFeature(a)}catch(c){console.warn("Combine Featuer Err! Return First Feature!"),n.feature=a[0]}}this.parentLayer.emit(t,n)}},{key:"setScale",value:function(e){var t=this.parentLayer.tileLayer.scaleField;Object.keys(t).map((function(n){e.scale(n,t[n])}))}},{key:"getAllFeatures",value:function(e){var t=this.parentLayer.tileLayer.children,n=[];return t.map((function(t){t.getSource().data.dataArray.map((function(t){t._id===e&&n.push(t)}))})),n}},{key:"getLayerInitOption",value:function(e){var t=Q({},e);return delete t.color,delete t.shape,delete t.size,delete t.coords,delete t.sourceLayer,delete t.coords,t}},{key:"handleOutsideEvent",value:function(e,t,n,r){var o=this;this.outSideEventTimer&&(clearTimeout(this.outSideEventTimer),this.outSideEventTimer=null),this.outSideEventTimer=setTimeout((function(){o.eventCache[e]>0?o.eventCache[e]=0:o.getFeatureAndEmitEvent(n,t,r)}),64)}}])&&te(t.prototype,n),r&&te(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ce(e,t){return(ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return se(this,n)}}function se(e,t){if(t&&("object"===ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ce(e,t)}(i,e);var t,n,r,o=ue(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).parentLayer=e.parent,t}return t=i,(n=[{key:"createTile",value:function(e,t){var n=this.getFeatureData(e,t),r=n.features,o=n.vectorTileLayer,i=n.source;if(0===r.length)return{layers:[],layerIDList:[]};var a=this.createLayer({tile:e,initOptions:t,vectorTileLayer:o,source:i});return a.once("modelLoaded",(function(){e.layerLoad()})),{layers:[a],layerIDList:[a.id]}}}])&&ae(t.prototype,n),r&&ae(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(oe);function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t){return(he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=me(e);if(t){var o=me(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ye(this,n)}}function ye(e,t){if(t&&("object"===pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function me(e){return(me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&he(e,t)}(i,e);var t,n,r,o=ve(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).parentLayer=e.parent,t}return t=i,(n=[{key:"createTile",value:function(e,t){var n=this.getFeatureData(e,t),r=n.features,o=n.vectorTileLayer,i=n.source;if(0===r.length)return{layers:[],layerIDList:[]};var a=this.createLayer({tile:e,initOptions:t,vectorTileLayer:o,source:i,needListen:!1});return a.once("modelLoaded",(function(){e.layerLoad()})),{layers:[a],layerIDList:[a.id]}}}])&&de(t.prototype,n),r&&de(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(oe);function be(e){return(be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function we(e,t){return(we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){if(t&&("object"===be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Se=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&we(e,t)}(i,e);var t,n,r,o=_e(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).parentLayer=e.parent,t}return t=i,(n=[{key:"createTile",value:function(e,t){var n=this.getFeatureData(e,t),r=n.features,o=n.vectorTileLayer,i=n.source;if(0===r.length)return{layers:[],layerIDList:[]};var a=this.createLayer({tile:e,initOptions:t,vectorTileLayer:o,source:i});return a.once("modelLoaded",(function(){e.layerLoad()})),{layers:[a],layerIDList:[a.id]}}}])&&Oe(t.prototype,n),r&&Oe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(oe),Ce=n("xOVz");function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pe(e,t){return(Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ae(e);if(t){var o=Ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Me(this,n)}}function Me(e,t){if(t&&("object"===je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pe(e,t)}(i,e);var t,n,r,o=Te(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).parentLayer=e.parent,t}return t=i,(n=[{key:"createTile",value:function(e,t){var n=new c.a(e.data,{parser:{type:"image",extent:e.bounds}}),r=this.createLayer({L7Layer:Ce.a,tile:e,initOptions:t,source:n});return r.once("modelLoaded",(function(){e.layerLoad()})),{layers:[r],layerIDList:[r.id]}}}])&&ke(t.prototype,n),r&&ke(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(oe);function Re(e){return(Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function De(e,t){return(De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Be(e);if(t){var o=Be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ze(this,n)}}function ze(e,t){if(t&&("object"===Re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&De(e,t)}(i,e);var t,n,r,o=Fe(i);function i(){return Ne(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.rendererService.createTexture2D,t=this.layer.getLayerConfig(),n=t.colorTexture,r=void 0===n?e({data:[],width:0,height:0,flipY:!1}):n,o=t.opacity,i=void 0===o?1:o,a=t.clampLow,c=void 0===a||a,u=t.clampHigh,s=void 0===u||u,l=t.noDataValue,f=void 0===l?-9999999:l,p=t.domain,d=void 0===p?[0,1]:p;return{u_opacity:i||1,u_texture:this.texture,u_domain:d,u_clampLow:c,u_clampHigh:void 0!==s?s:c,u_noDataValue:f,u_colorTexture:r}}},{key:"initModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o,c=this.layer.getSource(),u=this.rendererService.createTexture2D,s=c.data.dataArray[0];this.texture=u({data:s.data,width:s.width,height:s.height,format:l.gl.LUMINANCE,type:l.gl.FLOAT}),this.layer.buildLayerModel({moduleName:"rasterTileImageData",vertexShader:'precision highp float;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nattribute vec3 a_Position;\nattribute vec2 a_Uv;\nvarying vec2 v_texCoord;\n#pragma include "projection"\nvoid main() {\n v_texCoord = a_Uv;\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy,0., 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0));\n }\n}\n',fragmentShader:"precision mediump float;\nuniform float u_opacity: 1.0;\nuniform sampler2D u_texture;\nuniform sampler2D u_colorTexture;\nuniform float u_min;\nuniform float u_max;\nuniform vec2 u_domain;\nuniform float u_noDataValue;\nuniform bool u_clampLow: true;\nuniform bool u_clampHigh: true;\nvarying vec2 v_texCoord;\n\n\n\n// float getBlurIndusty() {\n// vec2 u_ViewportSize = vec2(1024);\n\n// float vW = 2.0/u_ViewportSize.x;\n// float vH = 2.0/u_ViewportSize.y;\n// vec2 vUv = v_texCoord;\n// float i11 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y + 1.0 * vH) ).r;\n// float i12 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y + 1.0 * vH) ).r;\n// float i13 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y + 1.0 * vH) ).r;\n\n// float i21 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y) ).r;\n// float i22 = texture2D( u_texture, vec2( vUv.x , vUv.y) ).r;\n// float i23 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y) ).r;\n\n// float i31 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y-1.0*vH) ).r;\n// float i32 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y-1.0*vH) ).r;\n// float i33 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y-1.0*vH) ).r;\n\n// return(\n// i11 + \n// i12 + \n// i13 + \n// i21 + \n// i21 + \n// i22 + \n// i23 + \n// i31 + \n// i32 + \n// i33\n// )/9.0;\n// }\n\nvoid main() {\n\n float value = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)).r;\n\n // float value = getBlurIndusty();\n\n\n if (value == u_noDataValue)\n gl_FragColor = vec4(0.0, 0, 0, 0.0);\n else if ((!u_clampLow && value < u_domain[0]) || (!u_clampHigh && value > u_domain[1]))\n gl_FragColor = vec4(0, 0, 0, 0);\n else {\n float normalisedValue =(value - u_domain[0]) / (u_domain[1] -u_domain[0]);\n vec4 color = texture2D(u_colorTexture,vec2(normalisedValue, 0));\n gl_FragColor = color;\n gl_FragColor.a = gl_FragColor.a * u_opacity ;\n }\n}\n",triangulation:v.j,depth:{enable:!1},stencil:Object(a.bb)(r,i),pick:!1}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"buildModels",value:function(e){this.initModels(e)}},{key:"clearModels",value:function(){var e;null===(e=this.texture)||void 0===e||e.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:l.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:l.gl.DYNAMIC_DRAW,data:[],type:l.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}}])&&Ie(t.prototype,n),r&&Ie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a);function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function We(e,t){return(We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qe(e);if(t){var o=qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(e,t){if(t&&("object"===Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xe(e)}function Xe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Je=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}(i,e);var t,n,r,o=Ye(i);function i(){var e;He(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ze(Xe(e=o.call.apply(o,[this].concat(n))),"type",e.layerType),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new t(this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"getModelType",value:function(){return Ue}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getDefaultConfig",value:function(){return{}}}])&&Ge(t.prototype,n),r&&Ge(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(f.a);function Qe(e){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function et(e,t){return(et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rt(e);if(t){var o=rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nt(this,n)}}function nt(e,t){if(t&&("object"===Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ot=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&et(e,t)}(i,e);var t,n,r,o=tt(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).parentLayer=e.parent,t}return t=i,(n=[{key:"createTile",value:function(e,t){var n=t.colorTexture,r=t.opacity,o=t.domain,i=t.clampHigh,a=t.clampLow,c=t.mask,u=e.data;if(!u.data)return console.warn("raster data not exist!"),{layers:[],layerIDList:[]};var l=new Je({visible:e.isVisible,mask:c}).source(u.data,{parser:{type:"raster",width:u.width,height:u.height,extent:e.bboxPolygon.bbox}}).style({colorTexture:n,opacity:r,domain:o,clampHigh:i,clampLow:a});return this.emitEvent([l],!1),Object(s.e)(this.parentLayer,[l]),l.once("modelLoaded",(function(){e.layerLoad()})),{layers:[l],layerIDList:[l.id]}}}])&&$e(t.prototype,n),r&&$e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(oe);function it(e){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ct(e,t){return(ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ut(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lt(e);if(t){var o=lt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return st(this,n)}}function st(e,t){if(t&&("object"===it(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function lt(e){return(lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ft=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ct(e,t)}(i,e);var t,n,r,o=ut(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).parentLayer=e.parent,t}return t=i,(n=[{key:"createTile",value:function(e,t){var n=t.sourceLayer;if(!n)return{layers:[],layerIDList:[]};var r=e.data.layers[n],o=null==r?void 0:r.features;if(0===o.length)return{layers:[],layerIDList:[]};var i=o[0].properties,a=new B({layerType:"PointLayer",usage:"basemap",needListen:!1}).source([i],{parser:{type:"json",x:"textLng",y:"textLat",cancelExtent:!0}}).shape("key","text").style({size:20,color:"#000",stroke:"#fff",strokeWidth:2}),c=new B({layerType:"LineLayer",usage:"basemap",needListen:!1}).source({type:"FeatureCollection",features:o},{parser:{type:"geojson",cancelExtent:!0}}).shape("simple").style({color:"#000"});return a.isTileLayer=!0,c.isTileLayer=!0,Object(s.e)(this.parentLayer,[c,a]),a.once("modelLoaded",(function(){e.layerLoad()})),c.once("modelLoaded",(function(){e.layerLoad()})),{layers:[c,a],layerIDList:[c.id,a.id]}}}])&&at(t.prototype,n),r&&at(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(oe);function pt(e){return function(e){if(Array.isArray(e))return dt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return dt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var vt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"createTile",value:function(e){return this.tileFactory.createTile(e,this.initOptions)}},{key:"addChild",value:function(e){this.children.push(e)}},{key:"addChilds",value:function(e){var t;(t=this.children).push.apply(t,pt(e))}},{key:"removeChilds",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[],r=[];this.children.filter((function(t){e.includes(t.id)?n.push(t):r.push(t)})),n.map((function(e){return e.destroy(t)})),this.children=r}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);t>-1&&this.children.splice(t,1),e.destroy()}},{key:"getChilds",value:function(e){return this.children.filter((function(t){return e.includes(t.id)}))}},{key:"getChild",value:function(e){return this.children.filter((function(t){return t.id===e}))[0]}},{key:"clearChild",value:function(){this.children.forEach((function(e){e.destroy()})),this.children.slice(0,this.children.length)}},{key:"hasChild",value:function(e){return this.children.includes(e)}},{key:"initTileFactory",value:function(){var e=this.parent.getSource(),t=function(e,t){switch(e){case"PolygonLayer":return Se;case"LineLayer":return fe;case"PointLayer":return ge;case"TileDebugLayer":return ft;case"RasterLayer":return c.b.includes(t.dataType)?ot:Le;default:return console.warn("Current Tile Not Exist!"),Le}}(this.parent.type,e.parser);this.tileFactory=new t({parent:this.parent,mapService:this.mapService,rendererService:this.rendererService})}},{key:"getSourceLayer",value:function(e,t){return"geojsonvt"===e?"geojsonvt":"testTile"===e?"testTile":t}},{key:"destroy",value:function(){}}])&&ht(t.prototype,n),r&&ht(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),yt=n("nnRT"),mt=n.n(yt),gt=n("Gpi5");function bt(e){return(bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wt(e,t){return(wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=St(e);if(t){var o=St(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xt(this,n)}}function xt(e,t){if(t&&("object"===bt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Et(e)}function Et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ct=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wt(e,t)}(i,e);var t,n,r,o=_t(i);function i(){var e,t,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this),t=Et(e),r=[],(n="checkConfigList")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e.cacheConfig=new Map,e}return t=i,(n=[{key:"setConfig",value:function(e,t){this.checkConfigList.includes(e)||this.checkConfigList.push(e),this.cacheConfig.set(e,t)}},{key:"removeConfig",value:function(e){var t=this.checkConfigList.indexOf(e);t>-1&&(this.cacheConfig.delete(e),this.checkConfigList.splice(t,1))}},{key:"checkConfig",value:function(e){var t=this;if(e.inited){var n=e.getLayerConfig(),r=[];this.checkConfigList.map((function(o){var i,a=t.cacheConfig.get(o);if(["color","size","shape"].includes(o)){var c;i=null===(c=e.getAttribute(o))||void 0===c?void 0:c.scale}else{if(!(o in n))return;i=n[o]}mt()(a,i)||(r.push(o),t.setConfig(o,i))})),r.length>0&&(console.warn("tile config cache update!",r),this.emit("updateConfig",r))}}},{key:"getAttributeScale",value:function(e,t){var n=e.getAttribute(t),r={field:void 0,values:void 0,callback:void 0};if(n&&n.scale){var o=n.scale,i=o.field,a=o.values,c=o.callback;r.field=i,r.values=a,r.callback=c}return r}}])&&Ot(t.prototype,n),r&&Ot(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.n(gt).a);function jt(e){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pt(e,t){return(Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lt(e);if(t){var o=Lt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mt(this,n)}}function Mt(e,t){if(t&&("object"===jt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return At(e)}function At(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lt(e){return(Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pt(e,t)}(i,e);var t,n,r,o=Tt(i);function i(e,t,n,r){var a,c,u,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),a=o.call(this),c=At(a),s=!1,(u="isLastPicked")in c?Object.defineProperty(c,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):c[u]=s,a.parent=e,a.rendererService=t,a.pickingService=n,a.children=r,a}return t=i,(n=[{key:"normalRender",value:function(e){var t=this;e.filter((function(e){return e.inited})).filter((function(e){return e.isVisible()})).map((function(e){e.hooks.beforeRenderData.call(),e.hooks.beforeRender.call(),e.masks.length>0&&(t.rendererService.clear({stencil:0,depth:1,framebuffer:null}),e.masks.map((function(e){e.hooks.beforeRenderData.call(),e.hooks.beforeRender.call(),e.render(),e.hooks.afterRender.call()}))),e.render(),e.hooks.afterRender.call()}))}},{key:"pickRender",value:function(e,t){var n=this;"RasterLayer"===this.parent.type&&this.renderMask(this.parent);var r=e.filter((function(e){return n.parent.needPick(t.type)&&e.inited&&e.isVisible()})).some((function(e){e.hooks.beforePickingEncode.call(),e.masks.length>0&&(n.rendererService.clear({stencil:0,depth:1,framebuffer:null}),e.masks.map((function(e){e.hooks.beforeRender.call(),e.render(),e.hooks.afterRender.call()}))),e.renderModels(!0),e.hooks.afterPickingEncode.call();var r=n.pickingService.pickFromPickingFBO(e,t);return r&&"RasterLayer"!==n.parent.type&&(n.emit("pick",{type:t.type,pickedColors:n.pickingService.pickedColors,layer:e}),n.pickingService.pickedTileLayers=[n.parent]),r}));return"RasterLayer"!==this.parent.type&&!r&&this.isLastPicked&&"click"!==t.type&&(this.pickingService.pickedTileLayers=[],this.emit("unpick",{}),this.beforeHighlight([0,0,0])),this.isLastPicked=r,r}},{key:"clearPick",value:function(){this.children.filter((function(e){return e.inited&&e.isVisible()})).map((function(e){e.hooks.beforeSelect.call([0,0,0])})),this.pickingService.pickedTileLayers=[]}},{key:"beforeHighlight",value:function(e){this.children.filter((function(e){return e.inited&&e.isVisible()})).map((function(t){t.hooks.beforeHighlight.call(e)}))}},{key:"beforeSelect",value:function(e){this.children.filter((function(e){return e.inited&&e.isVisible()})).map((function(t){t.hooks.beforeSelect.call(e)}))}},{key:"renderMask",value:function(e){e.inited&&e.isVisible()&&(e.hooks.beforeRender.call(),e.masks.length>0&&(this.rendererService.clear({stencil:0,depth:1,framebuffer:null}),e.masks.map((function(e){e.hooks.beforeRender.call(),e.render(),e.hooks.afterRender.call()}))),e.hooks.afterRender.call())}},{key:"destroy",value:function(){this.removeAllListeners()}}])&&kt(t.prototype,n),r&&kt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(gt.EventEmitter);function Nt(e){return(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function It(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dt(e,t){return(Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bt(e);if(t){var o=Bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zt(this,n)}}function zt(e,t){if(t&&("object"===Nt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Bt(e){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ut=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dt(e,t)}(i,e);var t,n,r,o=Ft(i);function i(e,t,n,r,a){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(c=o.call(this)).parent=e,c.children=e.layerChildren,c.mapService=t,c.rendererService=n,c.transforms=a,c.tilePickManager=new Rt(e,n,r,c.children),c.tileConfigManager=new Ct,c.setSubLayerInitOption(),c.setConfigListener(),c.initTileFactory(),c}return t=i,(n=[{key:"render",value:function(){var e,t;null===(e=this.tileConfigManager)||void 0===e||e.checkConfig(this.parent),null===(t=this.tilePickManager)||void 0===t||t.normalRender(this.children)}},{key:"pickLayers",value:function(e){var t;return null===(t=this.tilePickManager)||void 0===t?void 0:t.pickRender(this.children,e)}},{key:"setSubLayerInitOption",value:function(){var e,t=this.parent.getLayerConfig(),n=t.zIndex,r=void 0===n?0:n,o=t.opacity,i=void 0===o?1:o,c=t.mask,u=void 0!==c&&c,l=t.stroke,f=void 0===l?"#fff":l,p=t.strokeWidth,d=void 0===p?0:p,h=t.strokeOpacity,v=void 0===h?1:h,y=t.clampLow,m=void 0===y||y,g=t.clampHigh,b=void 0===g||g,O=t.domain,w=void 0===O?[0,1]:O,_=t.rampColors,x=void 0===_?{colors:["rgb(166,97,26)","rgb(223,194,125)","rgb(245,245,245)","rgb(128,205,193)","rgb(1,133,113)"],positions:[0,.25,.5,.75,1]}:_,E=t.featureId,S=void 0===E?"id":E,C=t.workerEnabled,j=void 0!==C&&C,k=t.sourceLayer,P=t.pixelConstant,T=void 0===P?0:P,M=t.pixelConstantR,A=void 0===M?65536:M,L=t.pixelConstantG,R=void 0===L?256:L,N=t.pixelConstantB,I=void 0===N?1:N,D=t.pixelConstantRGB,F=void 0===D?.1:D,z=this.tileConfigManager.getAttributeScale(this.parent,"color"),B=this.tileConfigManager.getAttributeScale(this.parent,"size"),U=this.parent.getSource(),V=((null==U||null===(e=U.data)||void 0===e?void 0:e.tilesetOptions)||{}).coords,H=U.getParserType(),G=Object(s.a)(this.parent.type,this.parent);if(this.initOptions={layerType:this.parent.type,transforms:this.transforms,shape:G,zIndex:r,opacity:i,sourceLayer:this.getSourceLayer(H,k),coords:V,featureId:S,color:z,size:B,mask:Object(s.b)(this.parent.type,u),stroke:f,strokeWidth:d,strokeOpacity:v,clampLow:m,clampHigh:b,domain:w,rampColors:x,workerEnabled:j,pixelConstant:T,pixelConstantR:A,pixelConstantG:R,pixelConstantB:I,pixelConstantRGB:F},x){var W=this.rendererService.createTexture2D,Y=Object(a.V)(x),K=W({data:Y.data,width:Y.width,height:Y.height,flipY:!1});this.initOptions.colorTexture=K}}},{key:"setConfigListener",value:function(){var e,t,n,r=this;this.tileConfigManager.setConfig("opacity",this.initOptions.opacity),this.tileConfigManager.setConfig("zIndex",this.initOptions.zIndex),this.tileConfigManager.setConfig("mask",this.initOptions.mask),"RasterLayer"===this.parent.type?(this.tileConfigManager.setConfig("rampColors",this.initOptions.rampColors),this.tileConfigManager.setConfig("domain",this.initOptions.domain),this.tileConfigManager.setConfig("clampHigh",this.initOptions.clampHigh),this.tileConfigManager.setConfig("clampLow",this.initOptions.clampLow),this.tileConfigManager.setConfig("pixelConstant",this.initOptions.pixelConstant),this.tileConfigManager.setConfig("pixelConstantR",this.initOptions.pixelConstantR),this.tileConfigManager.setConfig("pixelConstantG",this.initOptions.pixelConstantG),this.tileConfigManager.setConfig("pixelConstantB",this.initOptions.pixelConstantB),this.tileConfigManager.setConfig("pixelConstantRGB",this.initOptions.pixelConstantRGB)):(this.tileConfigManager.setConfig("stroke",this.initOptions.stroke),this.tileConfigManager.setConfig("strokeWidth",this.initOptions.strokeWidth),this.tileConfigManager.setConfig("strokeOpacity",this.initOptions.strokeOpacity),this.tileConfigManager.setConfig("color",null===(e=this.parent.getAttribute("color"))||void 0===e?void 0:e.scale),this.tileConfigManager.setConfig("shape",null===(t=this.parent.getAttribute("shape"))||void 0===t?void 0:t.scale),this.tileConfigManager.setConfig("size",null===(n=this.parent.getAttribute("size"))||void 0===n?void 0:n.scale)),this.tileConfigManager.on("updateConfig",(function(e){e.map((function(e){return r.updateStyle(e),""}))}))}},{key:"updateStyle",value:function(e){var t=this,n=null;if(["size","color","shape"].includes(e)){var r,o=null===(r=this.parent.getAttribute(e))||void 0===r?void 0:r.scale;if(!o)return;n=o,this.children.map((function(n){return t.tileFactory.setStyleAttributeField(n,e,o),""}))}else{var i=this.parent.getLayerConfig();if(!(e in i))return;var c=i[e];if(n=c,Object(s.f)(this.children,e,c),"rampColors"===e&&c){var u=this.rendererService.createTexture2D,l=Object(a.V)(c);this.initOptions.colorTexture=u({data:l.data,width:l.width,height:l.height,flipY:!1}),Object(s.f)(this.children,"colorTexture",this.initOptions.colorTexture)}}this.initOptions[e]=n}},{key:"destroy",value:function(){this.tilePickManager.destroy()}}])&&It(t.prototype,n),r&&It(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(vt);function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){Kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xt(e){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qt(e){return function(e){if(Array.isArray(e))return Zt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Zt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $t(e,t){return($t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function en(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rn(e);if(t){var o=rn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tn(this,n)}}function tn(e,t){if(t&&("object"===Xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nn(e)}function nn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rn(e){return(rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function on(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var an=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$t(e,t)}(i,e);var t,n,r,o=en(i);function i(){var e;Jt(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return on(nn(e=o.call.apply(o,[this].concat(n))),"type","TMS"),e}return t=i,(n=[{key:"tileUnLoad",value:function(e){this.tileLayerManager.removeChilds(e.layerIDList,!1)}},{key:"tileUpdate",value:function(){var e=this;this.tilesetManager&&(this.tilesetManager.tiles.filter((function(e){return e.isLoaded})).map((function(t){var n;if(null!==(n=t.data)&&void 0!==n&&n.layers&&e.sourceLayer){var r=t.data.layers[e.sourceLayer],o=null==r?void 0:r.features;if(!(Array.isArray(o)&&o.length>0))return}if(t.parentLayerIDList.includes(e.parent.id)){if(!t.isVisibleChange)return;var i=e.tileLayerManager.getChilds(t.layerIDList);Object(s.g)(t,i,e.layerService),e.setPickState(i)}else{var a,c=e.tileLayerManager.createTile(t),u=c.layers,l=c.layerIDList;t.parentLayerIDList.push(e.parent.id),(a=t.layerIDList).push.apply(a,qt(l)),e.tileLayerManager.addChilds(u),e.setPickState(u)}})),this.tilesetManager.isLoaded&&this.parent.emit("tiles-loaded",this.tilesetManager.currentTiles))}}])&&Qt(t.prototype,n),r&&Qt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(function(){function e(t){var n,r=t.parent,o=t.rendererService,a=t.mapService,c=t.layerService,u=t.pickingService,s=t.transforms;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Kt(this,"type","baseTile"),Kt(this,"initedTileset",!1),Kt(this,"pickColors",{select:null,active:null}),Kt(this,"viewchange",i()(this.mapchange,200));var l=r.getSource(),f=((null==l||null===(n=l.data)||void 0===n?void 0:n.tilesetOptions)||{}).sourceLayer;this.sourceLayer=f,this.parent=r,this.mapService=a,this.layerService=c,this.tileLayerManager=new Ut(r,a,o,u,s),this.initTileSetManager(),this.bindSubLayerEvent(),this.bindSubLayerPick(),this.scaleField=this.parent.getScaleOptions()}var t,n,r;return t=e,(n=[{key:"children",get:function(){return this.tileLayerManager.children}},{key:"render",value:function(){this.tileLayerManager&&this.tileLayerManager.render()}},{key:"clearPick",value:function(e){"mousemove"===e&&this.tileLayerManager.tilePickManager.clearPick()}},{key:"clearPickState",value:function(){var e=this;this.children.filter((function(e){return e.inited&&e.isVisible()})).filter((function(e){return null!==e.getCurrentSelectedId()})).map((function(t){e.selectFeature(t,new Uint8Array([0,0,0,0])),t.setCurrentSelectedId(null)}))}},{key:"pickLayers",value:function(e){return this.tileLayerManager.pickLayers(e)}},{key:"tileLoaded",value:function(e){}},{key:"tileError",value:function(e){console.warn("error:",e)}},{key:"tileUnLoad",value:function(e){this.tileLayerManager.removeChilds(e.layerIDList,!1)}},{key:"tileUpdate",value:function(){this.tilesetManager&&this.tilesetManager.isLoaded&&this.parent.emit("tiles-loaded",this.tilesetManager.currentTiles)}},{key:"setPickState",value:function(e){var t=this;if(this.pickColors.select){var n=Object(a.E)(this.pickColors.select);e.map((function(e){t.selectFeature(e,t.pickColors.select),e.setCurrentSelectedId(n)}))}if(this.pickColors.active){var r=Object(a.E)(this.pickColors.active);e.filter((function(e){return e.inited&&e.isVisible()})).map((function(e){e.hooks.beforeHighlight.call(t.pickColors.active),e.setCurrentPickId(r)}))}}},{key:"bindSubLayerPick",value:function(){var e=this;this.tileLayerManager.tilePickManager.on("pick",(function(t){var n=Gt(t.pickedColors,3),r=n[0],o=n[1],i=n[2];if("click"===t.type){var a=e.children.filter((function(e){return e.inited&&e.isVisible()&&e.isVector})).filter((function(e){return e!==t.layer}));e.setSelect(a,[r,o,i])}else e.setHighlight([r,o,i])})),this.tileLayerManager.tilePickManager.on("unpick",(function(){e.pickColors.active=null}))}},{key:"setHighlight",value:function(e){var t=Object(a.E)(e);this.pickColors.active=e,this.children.filter((function(e){return e.inited&&e.isVisible()&&e.isVector})).filter((function(e){return e.getPickID()!==t})).map((function(n){n.setPickID(t),n.hooks.beforeHighlight.call(e)}))}},{key:"setSelect",value:function(e,t){var n=this,r=Object(a.E)(t);e.map((function(e){null===e.getCurrentSelectedId()||r!==e.getCurrentSelectedId()?(n.selectFeature(e,t),e.setCurrentSelectedId(r),n.pickColors.select=t):(n.selectFeature(e,new Uint8Array([0,0,0,0])),e.setCurrentSelectedId(null),n.pickColors.select=null)})),this.layerService.getRenderList().filter((function(e){return e.inited&&!e.isVector&&e.isVisible()&&e.needPick("click")})).filter((function(e){return null!==e.getCurrentSelectedId()})).map((function(e){n.selectFeature(e,new Uint8Array([0,0,0,0])),e.setCurrentSelectedId(null)}))}},{key:"selectFeature",value:function(e,t){var n=Gt(t,3),r=n[0],o=n[1],i=n[2];e.hooks.beforeSelect.call([r,o,i])}},{key:"bindSubLayerEvent",value:function(){var e=this;this.parent.on("subLayerClick",(function(t){e.parent.emit("click",Ht({},t))})),this.parent.on("subLayerMouseMove",(function(t){return e.parent.emit("mousemove",Ht({},t))})),this.parent.on("subLayerMouseUp",(function(t){return e.parent.emit("mouseup",Ht({},t))})),this.parent.on("subLayerMouseEnter",(function(t){return e.parent.emit("mouseenter",Ht({},t))})),this.parent.on("subLayerMouseOut",(function(t){return e.parent.emit("mouseout",Ht({},t))})),this.parent.on("subLayerMouseDown",(function(t){return e.parent.emit("mousedown",Ht({},t))})),this.parent.on("subLayerContextmenu",(function(t){return e.parent.emit("contextmenu",Ht({},t))})),this.parent.on("subLayerUnClick",(function(t){return e.parent.emit("unclick",Ht({},t))})),this.parent.on("subLayerUnMouseMove",(function(t){return e.parent.emit("unmousemove",Ht({},t))})),this.parent.on("subLayerUnMouseUp",(function(t){return e.parent.emit("unmouseup",Ht({},t))})),this.parent.on("subLayerUnMouseDown",(function(t){return e.parent.emit("unmousedown",Ht({},t))})),this.parent.on("subLayerUnContextmenu",(function(t){return e.parent.emit("uncontextmenu",Ht({},t))}))}},{key:"initTileSetManager",value:function(){var e,t=this.parent.getSource();this.tilesetManager=t.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0);var n=this.getCurrentView(),r=n.latLonBounds,o=n.zoom;null===(e=this.tilesetManager)||void 0===e||e.update(o,r)}},{key:"mapchange",value:function(){var e,t=this.getCurrentView(),n=t.latLonBounds,r=t.zoom;if("GAODE1.x"===this.mapService.version){var o=this.parent.getLayerConfig().visible;r<3&&o?(this.parent.updateLayerConfig({visible:!1}),this.layerService.reRender()):r>=3&&!o&&(this.parent.updateLayerConfig({visible:!0}),this.layerService.reRender())}this.lastViewStates&&this.lastViewStates.zoom===r&&this.lastViewStates.latLonBounds.toString()===n.toString()||(this.lastViewStates={zoom:r,latLonBounds:n},null===(e=this.tilesetManager)||void 0===e||e.throttleUpdate(r,n))}},{key:"bindTilesetEvent",value:function(){var e=this;this.tilesetManager&&(this.tilesetManager.on("tile-loaded",(function(e){})),this.tilesetManager.on("tile-unload",(function(t){e.tileUnLoad(t)})),this.tilesetManager.on("tile-error",(function(t,n){e.tileError(t)})),this.tilesetManager.on("tile-update",(function(){e.tileUpdate()})),this.mapService.on("zoomend",(function(){return e.viewchange()})),this.mapService.on("moveend",(function(){return e.viewchange()})))}},{key:"getCurrentView",value:function(){var e=this.mapService.getBounds();return{latLonBounds:[e[0][0],e[0][1],e[1][0],e[1][1]],zoom:this.mapService.getZoom()}}},{key:"destroy",value:function(){var e;null===(e=this.tilesetManager)||void 0===e||e.destroy(),this.tileLayerManager.destroy()}}])&&Yt(t.prototype,n),r&&Yt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());function cn(e){return(cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sn(e,t){return(sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pn(e);if(t){var o=pn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fn(this,n)}}function fn(e,t){if(t&&("object"===cn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function pn(e){return(pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sn(e,t)}(i,e);var t,n,r,o=ln(i);function i(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(r=o.call(this)).parent=e,r.children=e.layerChildren,r.mapService=t,r.rendererService=n,r.setSubLayerInitOption(),r.initTileFactory(),r}return t=i,(n=[{key:"render",value:function(){var e=this;this.children.filter((function(e){return e.inited})).filter((function(e){return e.isVisible()})).map((function(t){t.hooks.beforeRenderData.call(),t.hooks.beforeRender.call(),t.masks.length>0&&(e.rendererService.clear({stencil:0,depth:1,framebuffer:null}),t.masks.map((function(e){e.hooks.beforeRenderData.call(),e.hooks.beforeRender.call(),e.render(),e.hooks.afterRender.call()}))),t.render(),t.hooks.afterRender.call()}))}},{key:"setSubLayerInitOption",value:function(){var e,t,n=this.parent.getLayerConfig(),r=n.zIndex,o=void 0===r?0:r,i=n.opacity,a=void 0===i?1:i,c=n.mask,u=void 0!==c&&c,l=n.stroke,f=void 0===l?"#fff":l,p=n.strokeWidth,d=void 0===p?0:p,h=n.strokeOpacity,v=void 0===h?1:h,y=n.workerEnabled,m=void 0!==y&&y,g=n.sourceLayer,b=this.parent.getSource().getParserType(),O=this.parent.getAttribute("color"),w=(null==O||null===(e=O.scale)||void 0===e?void 0:e.field)||"#fff",_=this.parent.getAttribute("size"),x=(null==_||null===(t=_.scale)||void 0===t?void 0:t.field)||1,E=Object(s.a)(this.parent.type,this.parent);this.initOptions={usage:"basemap",layerType:this.parent.type,shape:E,zIndex:o,opacity:a,sourceLayer:this.getSourceLayer(b,g),basemapColor:w,basemapSize:x,mask:Object(s.b)(this.parent.type,u),stroke:f,strokeWidth:d,strokeOpacity:v,workerEnabled:m}}}])&&un(t.prototype,n),r&&un(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(vt);function hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e){return function(e){if(Array.isArray(e))return gn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function On(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wn(e,t){return(wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sn(e);if(t){var o=Sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xn(this,n)}}function xn(e,t){if(t&&("object"===yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return En(e)}function En(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sn(e){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wn(e,t)}(i,e);var t,n,r,o=_n(i);function i(){var e;bn(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Cn(En(e=o.call.apply(o,[this].concat(n))),"type","BaseMapTMS"),e}return t=i,(n=[{key:"tileUnLoad",value:function(e){this.tileLayerManager.removeChilds(e.layerIDList,!1)}},{key:"tileUpdate",value:function(){var e=this;this.tilesetManager&&(this.tilesetManager.tiles.filter((function(e){return e.isLoaded})).map((function(t){var n;if(null!==(n=t.data)&&void 0!==n&&n.layers&&e.sourceLayer){var r=t.data.layers[e.sourceLayer],o=null==r?void 0:r.features;if(!(Array.isArray(o)&&o.length>0))return}if(t.parentLayerIDList.includes(e.parent.id)){if(!t.isVisibleChange)return;var i=e.tileLayerManager.getChilds(t.layerIDList);Object(s.g)(t,i,e.layerService)}else{var a,c=e.tileLayerManager.createTile(t),u=c.layers,l=c.layerIDList;t.parentLayerIDList.push(e.parent.id),(a=t.layerIDList).push.apply(a,mn(l)),e.tileLayerManager.addChilds(u)}})),this.tilesetManager.isLoaded&&this.parent.emit("tiles-loaded",this.tilesetManager.currentTiles))}}])&&On(t.prototype,n),r&&On(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(function(){function e(t){var n,r=t.parent,o=t.rendererService,a=t.mapService,c=t.layerService;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vn(this,"type","baseTile"),vn(this,"initedTileset",!1),vn(this,"viewchange",i()(this.mapchange,200));var u=r.getSource(),s=((null==u||null===(n=u.data)||void 0===n?void 0:n.tilesetOptions)||{}).sourceLayer;this.sourceLayer=s,this.parent=r,this.mapService=a,this.layerService=c,this.tileLayerManager=new dn(r,a,o),this.initTileSetManager()}var t,n,r;return t=e,(n=[{key:"children",get:function(){return this.tileLayerManager.children}},{key:"render",value:function(){this.tileLayerManager&&this.tileLayerManager.render()}},{key:"tileLoaded",value:function(e){}},{key:"tileError",value:function(e){console.warn("error:",e)}},{key:"tileUnLoad",value:function(e){this.tileLayerManager.removeChilds(e.layerIDList,!1)}},{key:"tileUpdate",value:function(){this.tilesetManager&&this.tilesetManager.isLoaded&&this.parent.emit("tiles-loaded",this.tilesetManager.currentTiles)}},{key:"initTileSetManager",value:function(){var e,t=this.parent.getSource();this.tilesetManager=t.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0);var n=this.getCurrentView(),r=n.latLonBounds,o=n.zoom;null===(e=this.tilesetManager)||void 0===e||e.update(o,r)}},{key:"mapchange",value:function(){var e,t=this.getCurrentView(),n=t.latLonBounds,r=t.zoom;if("GAODE1.x"===this.mapService.version){var o=this.parent.getLayerConfig().visible;r<3&&o?(this.parent.updateLayerConfig({visible:!1}),this.layerService.reRender()):r>=3&&!o&&(this.parent.updateLayerConfig({visible:!0}),this.layerService.reRender())}this.lastViewStates&&this.lastViewStates.zoom===r&&this.lastViewStates.latLonBounds.toString()===n.toString()||(this.lastViewStates={zoom:r,latLonBounds:n},null===(e=this.tilesetManager)||void 0===e||e.throttleUpdate(r,n))}},{key:"bindTilesetEvent",value:function(){var e=this;this.tilesetManager&&(this.tilesetManager.on("tile-loaded",(function(e){})),this.tilesetManager.on("tile-unload",(function(t){e.tileUnLoad(t)})),this.tilesetManager.on("tile-error",(function(t,n){e.tileError(t)})),this.tilesetManager.on("tile-update",(function(){e.tileUpdate()})),this.mapService.on("zoomend",(function(){return e.viewchange()})),this.mapService.on("moveend",(function(){return e.viewchange()})))}},{key:"getCurrentView",value:function(){var e=this.mapService.getBounds();return{latLonBounds:[e[0][0],e[0][1],e[1][0],e[1][1]],zoom:this.mapService.getZoom()}}},{key:"destroy",value:function(){var e;null===(e=this.tilesetManager)||void 0===e||e.destroy()}}])&&hn(t.prototype,n),r&&hn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());function kn(e){return(kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mn(e,t){return(Mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function An(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Rn(e);if(t){var o=Rn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ln(this,n)}}function Ln(e,t){if(t&&("object"===kn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Rn(e){return(Rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mn(e,t)}(i,e);var t,n,r,o=An(i);function i(){return Pn(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getUninforms",value:function(){return{}}},{key:"getTileLayer",value:function(e){switch(e){case"basemap":return jn;default:return an}}},{key:"initModels",value:function(){var e=this.layer.getSource(),t=this.layer.getLayerConfig().usage;if(null!=e&&e.data.isTile&&!this.layer.tileLayer){var n=this.getTileLayer(t);this.layer.tileLayer=new n({parent:this.layer,rendererService:this.rendererService,mapService:this.mapService,layerService:this.layerService,pickingService:this.pickingService,transforms:e.transforms})}return this.buildModels()}},{key:"clearModels",value:function(){}},{key:"buildModels",value:function(){return[]}},{key:"registerBuiltinAttributes",value:function(){}}])&&Tn(t.prototype,n),r&&Tn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a)},htTD:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveInstance=void 0;var o=n("KWcp"),i=n("BEDn"),a=n("2u/a");t.resolveInstance=function(e,t,n){var c,u,s=null;if(t.length>0){var l=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n);u=l,s=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(s=new((c=e).bind.apply(c,r([void 0],u))),t,n)}else s=new e;return function(e,t){if(Reflect.hasMetadata(a.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(a.POST_CONSTRUCT,e);try{t[n.value]()}catch(r){throw new Error(o.POST_CONSTRUCT_ERROR(e.name,r.message))}}}(e,s),s}},hxc7:function(e,t,n){var r,o=n("/qsF"),i=o.PACKET_TYPES_REVERSE,a=o.ERROR_PACKET;"function"==typeof ArrayBuffer&&(r=n("KRNn"));var c=function(e,t){if(r){var n=r.decode(e);return u(n,t)}return{base64:!0,data:e}},u=function(e,t){switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}};e.exports=function(e,t){if("string"!=typeof e)return{type:"message",data:u(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:c(e.substring(1),t)}:i[n]?e.length>1?{type:i[n],data:e.substring(1)}:{type:i[n]}:a}},hy0K:function(e,t,n){var r=n("WhsZ"),o=n("svN1"),i=n("xYad"),a=n("I9M6"),c=n("PSzb"),u=n("N5uj"),s=n("gdHq");e.exports=r(o(["filter"],u,(function(e,t){return a(t)?c((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},s(t)):i(e,t)})))},hyzI:function(e,t,n){var r=n("m5o6"),o=n("d0UJ"),i=n("eask"),a=n("9SKQ"),c=n("e63W");function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},i6bk:function(e,t,n){"use strict";function r(e){return null!=e&&e===e.window}function o(e,t){var n,o;if("undefined"==typeof window)return 0;var i=t?"scrollTop":"scrollLeft",a=0;return r(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[i]:(e instanceof HTMLElement||e)&&(a=e[i]),e&&!r(e)&&"number"!=typeof a&&(a=null===(o=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===o?void 0:o[i]),a}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))},i6qf:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n("mGvo"),o=n.n(r),i=n("pufz"),a=n("zEXi"),c=n("pfNN"),u=n("kam9");function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g='\n#define Animate 0.0\n\nattribute float a_Miter;\nattribute vec4 a_Color;\nattribute vec2 a_Size;\nattribute vec3 a_Normal;\nattribute vec3 a_Position;\n\nattribute vec2 a_iconMapUV;\n\n// dash line\nattribute float a_Total_Distance;\nattribute vec2 a_DistanceAndIndex;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\nuniform float u_icon_step: 100;\n\nuniform float u_heightfixed: 0.0;\nuniform float u_vertexScale: 1.0;\nuniform float u_raisingHeight: 0.0;\n\n#pragma include "projection"\n#pragma include "picking"\n\nvarying vec4 v_color;\n\n// texV 线图层 - 贴图部分的 v 坐标(线的宽度方向)\nvarying vec2 v_iconMapUV;\n\n\nuniform float u_linearColor: 0;\nuniform float u_arrow: 0.0;\nuniform float u_arrowHeight: 3.0;\nuniform float u_arrowWidth: 2.0;\nuniform float u_tailWidth: 1.0;\n\nuniform float u_opacity: 1.0;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\nvec2 calculateArrow(vec2 offset) {\n /*\n * 在支持箭头的时候,第二、第三组顶点是额外插入用于构建顶点的\n */\n float arrowFlag = -1.0;\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // 高德 2.0 的旋转角度不同\n arrowFlag = 1.0;\n }\n float pi = arrowFlag * 3.1415926/2.;\n if(a_Miter < 0.) {\n // 根据线的两侧偏移不同、旋转的方向相反\n pi = -pi;\n }\n highp float angle_sin = sin(pi);\n highp float angle_cos = cos(pi);\n // 计算垂直与线方向的旋转矩阵\n mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos);\n float arrowWidth = u_arrowWidth;\n float arrowHeight = u_arrowHeight;\n\n vec2 arrowOffset = vec2(0.0);\n /*\n * a_DistanceAndIndex.y 用于标记当前顶点属于哪一组(两个顶点一组,构成线的其实是矩形,最简需要四个顶点、两组顶点构成)\n */\n if(a_DistanceAndIndex.y == 0.0) {\n // 箭头尖部\n offset = vec2(0.0);\n } else if(a_DistanceAndIndex.y == 1.0) {\n // 箭头两侧\n arrowOffset = rotation_matrix*(offset * arrowHeight);\n offset += arrowOffset; // 沿线偏移\n offset = offset * arrowWidth; // 垂直线向外偏移(是构建箭头两侧的顶点)\n } else if(a_DistanceAndIndex.y == 2.0 || a_DistanceAndIndex.y == 3.0 || a_DistanceAndIndex.y == 4.0) {\n // 偏移其余的点位(将长度让位给箭头)\n arrowOffset = rotation_matrix*(offset * arrowHeight) * arrowWidth;\n offset += arrowOffset;// 沿线偏移\n }\n\n return offset;\n}\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n float d_texPixelLen; // 贴图的像素长度,根据地图层级缩放\n\n v_iconMapUV = a_iconMapUV;\n d_texPixelLen = project_float_pixel(u_icon_step);\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n d_texPixelLen *= 10.0;\n }\n\n v_color = a_Color;\n\n vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal);\n \n vec2 offset = project_pixel(size.xy);\n\n float lineDistance = a_DistanceAndIndex.x;\n float currentLinePointRatio = lineDistance / a_Total_Distance;\n \n if(u_arrow > 0.0) {\n // 计算箭头\n offset = calculateArrow(offset);\n\n if(a_DistanceAndIndex.y > 4.0) {\n offset *= mix(1.0, u_tailWidth, currentLinePointRatio);\n }\n }\n\n float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // 线横向偏移的距离(向两侧偏移的和)\n float linePixelSize = project_pixel(a_Size.x) * 2.0; // 定点位置偏移,按地图等级缩放后的距离 单侧 * 2\n float texV = lineOffsetWidth/linePixelSize; // 线图层贴图部分的 v 坐标值\n\n // 设置数据集的参数\n styleMappingMat[3][0] = currentLinePointRatio; // 当前点位距离占线总长的比例\n styleMappingMat[3][1] = lineDistance; // 当前顶点的距离\n styleMappingMat[3][2] = d_texPixelLen; // 贴图的像素长度,根据地图层级缩放\n styleMappingMat[3][3] = texV; // 线图层贴图部分的 v 坐标值\n\n vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0));\n\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, a_Size.y, 1.0));\n\n float h = float(a_Position.z) * u_vertexScale; // 线顶点的高度 - 兼容不存在第三个数值的情况 vertex height\n float lineHeight = a_Size.y; // size 第二个参数代表的高度 [linewidth, lineheight]\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n lineHeight *= 0.2; // 保持和 amap/mapbox 一致的效果\n h *= 0.2;\n if(u_heightfixed < 1.0) {\n lineHeight = project_pixel(a_Size.y);\n }\n gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight + h + u_raisingHeight, 1.0));\n } else {\n // mapbox - amap\n \n // 兼容 mapbox 在线高度上的效果表现基本一致\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // mapbox\n // 保持高度相对不变\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n h *= mapboxZoomScale;\n h += u_raisingHeight * mapboxZoomScale;\n if(u_heightfixed > 0.0) {\n lineHeight *= mapboxZoomScale;\n }\n \n } else {\n // amap\n h += u_raisingHeight;\n // lineHeight 顶点偏移高度\n if(u_heightfixed < 1.0) {\n lineHeight *= pow(2.0, 20.0 - u_Zoom);\n }\n }\n\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0));\n }\n\n setPickingColor(a_PickingColor);\n}\n',b={solid:0,dash:1},O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(s,e);var t,n,r,c=d(s);function s(){var e;l(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(v(e=c.call.apply(c,[this].concat(n))),"updateTexture",(function(){var t=e.rendererService.createTexture2D;if(e.texture)return e.texture.update({data:e.iconService.getCanvas()}),void e.layer.render();e.texture=t({data:e.iconService.getCanvas(),mag:i.gl.NEAREST,min:i.gl.NEAREST,premultiplyAlpha:!1,width:1024,height:e.iconService.canvasHeight||128})})),e}return t=s,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.sourceColor,c=e.targetColor,s=e.textureBlend,l=void 0===s?"normal":s,f=e.lineType,p=void 0===f?"solid":f,d=e.dashArray,h=void 0===d?[10,5,0,0]:d,v=e.lineTexture,y=void 0!==v&&v,m=e.iconStep,g=void 0===m?100:m,O=e.vertexHeightScale,w=void 0===O?20:O,_=e.borderWidth,x=void 0===_?0:_,E=e.borderColor,S=void 0===E?"#ccc":E,C=e.raisingHeight,j=void 0===C?0:C,k=e.heightfixed,P=void 0!==k&&k,T=e.linearDir,M=void 0===T?u.b.VERTICAL:T,A=e.blur,L=void 0===A?[1,1,1]:A,R=e.arrow,N=void 0===R?{enable:!1,arrowWidth:2,arrowHeight:3,tailWidth:1}:R;2===h.length&&h.push(0,0),this.rendererService.getDirty()&&this.texture.bind();var I=0,D=[0,0,0,0],F=[0,0,0,0];if(r&&c&&(D=Object(a.Eb)(r),F=Object(a.Eb)(c),I=1),this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n})){this.judgeStyleAttributes({opacity:n});var z=this.layer.getEncodedData(),B=this.calDataFrame(this.cellLength,z,this.cellProperties),U=B.data,V=B.width,H=B.height;this.rowCount=H,this.dataTexture=this.cellLength>0&&U.length>0?this.createTexture2D({flipY:!0,data:U,format:i.gl.LUMINANCE,type:i.gl.FLOAT,width:V,height:H}):this.createTexture2D({flipY:!0,data:[1],format:i.gl.LUMINANCE,type:i.gl.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:o()(n)?n:1,u_textureBlend:l===u.c.NORMAL?0:1,u_line_type:b[p],u_dash_array:h,u_blur:L,u_texture:this.texture,u_line_texture:y?1:0,u_icon_step:g,u_textSize:[1024,this.iconService.canvasHeight||128],u_borderWidth:x,u_borderColor:Object(a.Eb)(S),u_linearDir:M===u.b.VERTICAL?1:0,u_linearColor:I,u_sourceColor:D,u_targetColor:F,u_heightfixed:Number(P),u_vertexScale:w,u_raisingHeight:Number(j),u_arrow:Number(N.enable),u_arrowHeight:N.arrowHeight||3,u_arrowWidth:N.arrowWidth||2,u_tailWidth:void 0===N.tailWidth?1:N.tailWidth}}},{key:"getAnimateUniforms",value:function(){var e=this.layer.getLayerConfig().animateOption;return{u_animate:this.animateOption2Array(e),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(e){this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels(e)}},{key:"clearModels",value:function(){var e,t;null===(e=this.texture)||void 0===e||e.destroy(),null===(t=this.dataTexture)||void 0===t||t.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o,c=t.depth,u=void 0!==c&&c,s=t.workerEnabled,l=void 0!==s&&s,f=t.enablePicking,p=this.getShaders(),d=p.frag,h=p.vert,v=p.type;this.layer.triangulation=a.i,this.layer.buildLayerModel({moduleName:"line"+v,vertexShader:h,fragmentShader:d,triangulation:a.i,depth:{enable:u},blend:this.getBlend(),stencil:Object(a.bb)(r,i),workerEnabled:l,workerOptions:{modelType:"line"+v,enablePicking:f,iconMap:this.iconService.getIconMap()}}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"getShaders",value:function(){var e=this.layer.getLayerConfig(),t=e.sourceColor,n=e.targetColor;return"dash"===e.lineType?{frag:'#define LineTypeSolid 0.0\nuniform float u_opacity : 1.0;\n\nvarying vec4 v_color;\n\n// dash\nvarying vec4 v_dash_array;\n\n#pragma include "picking"\n\nuniform float u_time;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; // 控制运动\n\nvarying mat4 styleMappingMat;\n// [animate, duration, interval, trailLength],\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float d_distance_ratio = styleMappingMat[3].r; // 当前点位距离占线总长的比例\n gl_FragColor = v_color;\n gl_FragColor.a *= opacity; // 全局透明度\n \n float dashLength = mod(d_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w);\n if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) {\n // 实线部分\n } else {\n // 虚线部分\n discard;\n };\n\n gl_FragColor = filterColor(gl_FragColor);\n}\n',vert:'#define LineTypeSolid 0.0\n#define LineTypeDash 1.0\n#define Animate 0.0\n\nattribute float a_Miter;\nattribute vec4 a_Color;\nattribute vec2 a_Size;\nattribute vec3 a_Normal;\nattribute vec3 a_Position;\n\nattribute vec2 a_iconMapUV;\n\n// dash line\nattribute float a_Total_Distance;\nattribute vec2 a_DistanceAndIndex;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform vec4 u_dash_array: [10.0, 5., 0, 0];\n\nuniform float u_vertexScale: 1.0;\n\n#pragma include "projection"\n#pragma include "picking"\n\nvarying vec4 v_color;\nvarying vec4 v_dash_array;\n\nuniform float u_opacity: 1.0;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / a_Total_Distance;\n v_color = a_Color;\n\n vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal);\n vec2 offset = project_pixel(size.xy);\n\n // 设置数据集的参数\n styleMappingMat[3][0] = a_DistanceAndIndex.x / a_Total_Distance; // 当前点位距离占线总长的比例\n styleMappingMat[3][1] = a_DistanceAndIndex.x; // 当前顶点的距离\n\n vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0));\n\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, a_Size.y, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy + offset, project_pixel(a_Size.y), 1.0));\n } else {\n float lineHeight = a_Size.y;\n \n // #define COORDINATE_SYSTEM_P20 5.0\n // #define COORDINATE_SYSTEM_P20_OFFSET 6.0\n // amap1.x\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // 保持高度相对不变\n lineHeight *= pow(2.0, 20.0 - u_Zoom);\n }\n\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight, 1.0));\n }\n\n setPickingColor(a_PickingColor);\n}\n',type:"Dash"}:t&&n?{frag:'varying vec4 v_color;\nuniform float u_linearDir: 1.0;\nuniform float u_linearColor: 0;\nuniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\n\n#pragma include "picking"\n\n\nvarying mat4 styleMappingMat;\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float linearRadio = styleMappingMat[3][0]; // 当前点位距离占线总长的比例\n if(u_linearDir < 1.0) {\n linearRadio = styleMappingMat[3][3];\n }\n\n if(u_linearColor == 1.0) { // 使用渐变颜色\n gl_FragColor = mix(u_sourceColor, u_targetColor, linearRadio);\n } else { // 使用 color 方法传入的颜色\n gl_FragColor = v_color;\n }\n\n gl_FragColor.a *= opacity; // 全局透明度\n gl_FragColor = filterColor(gl_FragColor);\n}\n',vert:g,type:"Linear"}:{frag:'#define Animate 0.0\n#define LineTexture 1.0\nuniform float u_opacity : 1.0;\nuniform float u_textureBlend;\n\nuniform float u_borderWidth: 0.0;\n\nuniform vec3 u_blur;\nuniform vec4 u_borderColor;\nvarying vec4 v_color;\n\n// line texture\nuniform float u_line_texture;\nuniform sampler2D u_texture;\nuniform vec2 u_textSize;\n\nvarying vec2 v_iconMapUV;\n\n#pragma include "picking"\n\nuniform float u_time;\nuniform vec4 u_animate: [ 1, 2., 1.0, 0.2 ]; // 控制运动\n\nvarying mat4 styleMappingMat;\n// [animate, duration, interval, trailLength],\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float animateSpeed = 0.0; // 运动速度\n float d_distance_ratio = styleMappingMat[3].r; // 当前点位距离占线总长的比例\n gl_FragColor = v_color;\n // anti-alias\n // float blur = 1.0 - smoothstep(u_blur, 1., length(v_normal.xy));\n gl_FragColor.a *= opacity; // 全局透明度\n if(u_animate.x == Animate) {\n animateSpeed = u_time / u_animate.y;\n float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + animateSpeed);\n alpha = (alpha + u_animate.w -1.0) / u_animate.w;\n alpha = smoothstep(0., 1., alpha);\n gl_FragColor.a *= alpha;\n }\n\n if(u_line_texture == LineTexture) { // while load texture\n float aDistance = styleMappingMat[3].g; // 当前顶点的距离\n float d_texPixelLen = styleMappingMat[3].b; // 贴图的像素长度,根据地图层级缩放\n float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed);\n float v = styleMappingMat[3].a; // 线图层贴图部分的 v 坐标值\n\n // v = max(smoothstep(0.95, 1.0, v), v);\n vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.;\n \n // gl_FragColor = filterColor(gl_FragColor + texture2D(u_texture, vec2(u, v)));\n // gl_FragColor = filterColor(gl_FragColor + texture2D(u_texture, uv));\n vec4 pattern = texture2D(u_texture, uv);\n\n if(u_textureBlend == 0.0) { // normal\n pattern.a = 0.0;\n gl_FragColor += pattern;\n } else { // replace\n pattern.a *= opacity;\n if(gl_FragColor.a <= 0.0) {\n pattern.a = 0.0;\n }\n gl_FragColor = pattern;\n }\n } \n\n float v = styleMappingMat[3].a;\n float borderWidth = min(0.5, u_borderWidth);\n // 绘制 border\n if(borderWidth > 0.01) {\n float borderOuterWidth = borderWidth/2.0;\n\n if(v >= 1.0 - borderWidth || v <= borderWidth) {\n if(v > borderWidth) {\n float linear = smoothstep(0.0, 1.0, (v - (1.0 - borderWidth))/borderWidth);\n gl_FragColor.rgb = mix(gl_FragColor.rgb, u_borderColor.rgb, linear);\n } else if(v <= borderWidth) {\n float linear = smoothstep(0.0, 1.0, v/borderWidth);\n gl_FragColor.rgb = mix(u_borderColor.rgb, gl_FragColor.rgb, linear);\n }\n }\n\n if(v < borderOuterWidth) {\n gl_FragColor.a = mix(0.0, gl_FragColor.a, v/borderOuterWidth);\n } else if(v > 1.0 - borderOuterWidth) {\n gl_FragColor.a = mix(gl_FragColor.a, 0.0, (v - (1.0 - borderOuterWidth))/borderOuterWidth);\n }\n }\n\n // blur\n float blurV = styleMappingMat[3][3];\n if(blurV < 0.5) {\n gl_FragColor.a *= mix(u_blur.r, u_blur.g, blurV/0.5);\n } else {\n gl_FragColor.a *= mix(u_blur.g, u_blur.b, (blurV - 0.5)/0.5);\n }\n \n gl_FragColor = filterColor(gl_FragColor);\n}\n',vert:g,type:""}}},{key:"registerBuiltinAttributes",value:function(){var e=this;this.styleAttributeService.registerStyleAttribute({name:"distanceAndIndex",type:i.AttributeType.Attribute,descriptor:{name:"a_DistanceAndIndex",buffer:{usage:i.gl.STATIC_DRAW,data:[],type:i.gl.FLOAT},size:2,update:function(e,t,n,r,o,i){return void 0===i?[n[3],10]:[n[3],i]}}}),this.styleAttributeService.registerStyleAttribute({name:"total_distance",type:i.AttributeType.Attribute,descriptor:{name:"a_Total_Distance",buffer:{usage:i.gl.STATIC_DRAW,data:[],type:i.gl.FLOAT},size:1,update:function(e,t,n){return[n[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:i.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:2,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0],n[1]]:[n,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:i.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:i.gl.STATIC_DRAW,data:[],type:i.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:i.AttributeType.Attribute,descriptor:{name:"a_Miter",buffer:{usage:i.gl.STATIC_DRAW,data:[],type:i.gl.FLOAT},size:1,update:function(e,t,n){return[n[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:i.AttributeType.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:2,update:function(t){var n=e.iconService.getIconMap()[t.texture]||{x:0,y:0};return[n.x,n.y]}}})}}])&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(c.a)},iE9o:function(e,t,n){"use strict";n.r(t),n.d(t,"Interpreter",(function(){return H})),n.d(t,"vm",(function(){return r})),n.d(t,"evaluate",(function(){return q})),n.d(t,"Function",(function(){return Z}));var r={};n.r(r),n.d(r,"createContext",(function(){return G})),n.d(r,"compileFunction",(function(){return W})),n.d(r,"runInContext",(function(){return Y})),n.d(r,"runInNewContext",(function(){return K})),n.d(r,"Script",(function(){return X}));n("6JDI"),n("nndn"),n("FtFR");var o=n("T1lr");function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(a(Error)),p=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(a(SyntaxError)),d=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(a(ReferenceError)),h=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(a(TypeError)),v=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(f),y=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(p),m=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(d),g={UnknownError:[3001,"%0",v],ExecutionTimeOutError:[3002,"Script execution timed out after %0ms",v],NodeTypeSyntaxError:[1001,"Unknown node type: %0",m],BinaryOperatorSyntaxError:[1002,"Unknown binary operator: %0",m],LogicalOperatorSyntaxError:[1003,"Unknown logical operator: %0",m],UnaryOperatorSyntaxError:[1004,"Unknown unary operator: %0",m],UpdateOperatorSyntaxError:[1005,"Unknown update operator: %0",m],ObjectStructureSyntaxError:[1006,"Unknown object structure: %0",m],AssignmentExpressionSyntaxError:[1007,"Unknown assignment expression: %0",m],VariableTypeSyntaxError:[1008,"Unknown variable type: %0",m],ParamTypeSyntaxError:[1009,"Unknown param type: %0",m],AssignmentTypeSyntaxError:[1010,"Unknown assignment type: %0",m],FunctionUndefinedReferenceError:[2001,"%0 is not a function",d],VariableUndefinedReferenceError:[2002,"%0 is not defined",d],IsNotConstructor:[2003,"%0 is not a constructor",h]};function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function O(e,t,n){return(O=b()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&w(o,n.prototype),o}).apply(null,arguments)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t){Object.defineProperty(e,"name",{value:t,writable:!1,enumerable:!1,configurable:!0})}var x=Object.prototype.hasOwnProperty,E=Symbol("Break"),S=Symbol("Continue"),C=Symbol("DefaultCase"),j=Symbol("EmptyStatementReturn"),k=Symbol("WithScopeName"),P=Symbol("SuperScopeName"),T=Symbol("RootScopeName"),M=Symbol("GlobalScopeName");function A(e){return"function"==typeof e}var L=function(){function e(e){this.interpreter=e}return e.prototype.generator=function(){var e=this.interpreter;return{getOptions:e.getOptions.bind(e),getCurrentScope:function(){return this.getCurrentScope()}.bind(e),getGlobalScope:function(){return this.getGlobalScope()}.bind(e),getCurrentContext:function(){return this.getCurrentContext()}.bind(e),getExecStartTime:e.getExecStartTime.bind(e)}},e}();function R(e,t,n){if(void 0===n&&(n=!0),!(e instanceof L))throw new Error("Illegal call");if("string"!=typeof t)return t;if(t){var r=e.generator(),o={timeout:r.getOptions().timeout,_initEnv:function(){n||this.setCurrentContext(r.getCurrentContext()),this.execStartTime=r.getExecStartTime(),this.execEndTime=this.execStartTime}},i=n?r.getGlobalScope():r.getCurrentScope();return new H(i,o).evaluate(t)}}function N(e){if(!(e instanceof L))throw new Error("Illegal call");for(var t=e.generator(),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=r.pop(),a=new H(t.getGlobalScope(),t.getOptions()),c="\n\t\t (function anonymous("+r.join(",")+"){\n\t\t "+i+"\n\t\t });\n\t\t ";return a.evaluate(c)}Object.defineProperty(R,"__IS_EVAL_FUNC",{value:!0,writable:!1,enumerable:!1,configurable:!1}),Object.defineProperty(N,"__IS_FUNCTION_FUNC",{value:!0,writable:!1,enumerable:!1,configurable:!1});var I=function(e){this.value=e},D=function(e){this.value=e},F=function(e){this.value=e},z=function(e,t,n){void 0===t&&(t=null),this.name=n,this.parent=t,this.data=e,this.labelStack=[]};function B(){}function U(e,t){return void 0===e&&(e=null),new z(Object.create(null),e,t)}var V={NaN:NaN,Infinity:1/0,undefined:void 0,Object:Object,Array:Array,String:String,Boolean:Boolean,Number:Number,Date:Date,RegExp:RegExp,Error:Error,URIError:URIError,TypeError:TypeError,RangeError:RangeError,SyntaxError:SyntaxError,ReferenceError:ReferenceError,Float32Array:Float32Array,Float64Array:Float64Array,Uint32Array:Uint32Array,Math:Math,parseInt:parseInt,parseFloat:parseFloat,isNaN:isNaN,isFinite:isFinite,decodeURI:decodeURI,decodeURIComponent:decodeURIComponent,encodeURI:encodeURI,encodeURIComponent:encodeURIComponent,escape:escape,unescape:unescape,eval:R,Function:N};"undefined"!=typeof JSON&&(V.JSON=JSON),"undefined"!=typeof Promise&&(V.Promise=Promise),"undefined"!=typeof Set&&(V.Set=Set),"undefined"!=typeof Map&&(V.Map=Map),"undefined"!=typeof Symbol&&(V.Symbol=Symbol),"undefined"!=typeof Proxy&&(V.Proxy=Proxy),"undefined"!=typeof WeakMap&&(V.WeakMap=WeakMap),"undefined"!=typeof WeakSet&&(V.WeakSet=WeakSet),"undefined"!=typeof Reflect&&(V.Reflect=Reflect);var H=function(){function e(t,n){void 0===t&&(t=e.global),void 0===n&&(n={}),this.sourceList=[],this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null),this.isVarDeclMode=!1,this.lastExecNode=null,this.isRunning=!1,this.options={ecmaVersion:n.ecmaVersion||e.ecmaVersion,timeout:n.timeout||0,rootContext:n.rootContext,globalContextInFunction:void 0===n.globalContextInFunction?e.globalContextInFunction:n.globalContextInFunction,_initEnv:n._initEnv},this.context=t||Object.create(null),this.callStack=[],this.initEnvironment(this.context)}var t=e.prototype;return t.initEnvironment=function(e){var t,n;if(e instanceof z)t=e;else{var r=null,o=this.createSuperScope(e);this.options.rootContext&&(r=new z((n=this.options.rootContext,Object.create(n)),o,T)),t=new z(e,r||o,M)}this.globalScope=t,this.currentScope=this.globalScope,this.globalContext=t.data,this.currentContext=t.data,this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null),this.execStartTime=Date.now(),this.execEndTime=this.execStartTime;var i=this.options._initEnv;i&&i.call(this)},t.getExecStartTime=function(){return this.execStartTime},t.getExecutionTime=function(){return this.execEndTime-this.execStartTime},t.setExecTimeout=function(e){void 0===e&&(e=0),this.options.timeout=e},t.getOptions=function(){return this.options},t.getGlobalScope=function(){return this.globalScope},t.getCurrentScope=function(){return this.currentScope},t.getCurrentContext=function(){return this.currentContext},t.isInterruptThrow=function(e){return e instanceof v||e instanceof m||e instanceof y},t.createSuperScope=function(e){var t=Object.assign({},V);return Object.keys(t).forEach((function(n){n in e&&delete t[n]})),new z(t,null,P)},t.setCurrentContext=function(e){this.currentContext=e},t.setCurrentScope=function(e){this.currentScope=e},t.evaluate=function(t){var n;if(void 0===t&&(t=""),t)return n=Object(o.a)(t,{ranges:!0,locations:!0,ecmaVersion:this.options.ecmaVersion||e.ecmaVersion}),this.evaluateNode(n,t)},t.appendCode=function(e){return this.evaluate(e)},t.evaluateNode=function(e,t){var n=this;void 0===t&&(t=""),this.value=void 0,this.source=t,this.sourceList.push(t),this.isRunning=!0,this.execStartTime=Date.now(),this.execEndTime=this.execStartTime,this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null);var r=this.getCurrentScope(),o=this.getCurrentContext(),i=r.labelStack.concat([]),a=this.callStack.concat([]);try{var c=this.createClosure(e);this.addDeclarationsToScope(this.collectDeclVars,this.collectDeclFuncs,this.getCurrentScope()),c()}catch(u){throw u}finally{n.setCurrentScope(r),n.setCurrentContext(o),r.labelStack=i,n.callStack=a,this.execEndTime=Date.now()}return this.isRunning=!1,this.getValue()},t.createErrorMessage=function(e,t,n){var r=e[1].replace("%0",String(t));return null!==n&&(r+=this.getNodePosition(n||this.lastExecNode)),r},t.createError=function(e,t){return new t(e)},t.createThrowError=function(e,t){return this.createError(e,t)},t.createInternalThrowError=function(e,t,n){return this.createError(this.createErrorMessage(e,t,n),e[2])},t.checkTimeout=function(){if(!this.isRunning)return!1;var e=this.options.timeout||0;return Date.now()-this.execStartTime>e},t.getNodePosition=function(e){if(e){return e.loc?" ["+e.loc.start.line+":"+e.loc.start.column+"]":""}return""},t.createClosure=function(e){var t,n=this;switch(e.type){case"BinaryExpression":t=this.binaryExpressionHandler(e);break;case"LogicalExpression":t=this.logicalExpressionHandler(e);break;case"UnaryExpression":t=this.unaryExpressionHandler(e);break;case"UpdateExpression":t=this.updateExpressionHandler(e);break;case"ObjectExpression":t=this.objectExpressionHandler(e);break;case"ArrayExpression":t=this.arrayExpressionHandler(e);break;case"CallExpression":t=this.callExpressionHandler(e);break;case"NewExpression":t=this.newExpressionHandler(e);break;case"MemberExpression":t=this.memberExpressionHandler(e);break;case"ThisExpression":t=this.thisExpressionHandler(e);break;case"SequenceExpression":t=this.sequenceExpressionHandler(e);break;case"Literal":t=this.literalHandler(e);break;case"Identifier":t=this.identifierHandler(e);break;case"AssignmentExpression":t=this.assignmentExpressionHandler(e);break;case"FunctionDeclaration":t=this.functionDeclarationHandler(e);break;case"VariableDeclaration":t=this.variableDeclarationHandler(e);break;case"BlockStatement":case"Program":t=this.programHandler(e);break;case"ExpressionStatement":t=this.expressionStatementHandler(e);break;case"EmptyStatement":t=this.emptyStatementHandler(e);break;case"ReturnStatement":t=this.returnStatementHandler(e);break;case"FunctionExpression":t=this.functionExpressionHandler(e);break;case"IfStatement":t=this.ifStatementHandler(e);break;case"ConditionalExpression":t=this.conditionalExpressionHandler(e);break;case"ForStatement":t=this.forStatementHandler(e);break;case"WhileStatement":t=this.whileStatementHandler(e);break;case"DoWhileStatement":t=this.doWhileStatementHandler(e);break;case"ForInStatement":t=this.forInStatementHandler(e);break;case"WithStatement":t=this.withStatementHandler(e);break;case"ThrowStatement":t=this.throwStatementHandler(e);break;case"TryStatement":t=this.tryStatementHandler(e);break;case"ContinueStatement":t=this.continueStatementHandler(e);break;case"BreakStatement":t=this.breakStatementHandler(e);break;case"SwitchStatement":t=this.switchStatementHandler(e);break;case"LabeledStatement":t=this.labeledStatementHandler(e);break;case"DebuggerStatement":t=this.debuggerStatementHandler(e);break;default:throw this.createInternalThrowError(g.NodeTypeSyntaxError,e.type,e)}return function(){var r=n.options.timeout;if(r&&r>0&&n.checkTimeout())throw n.createInternalThrowError(g.ExecutionTimeOutError,r,null);return n.lastExecNode=e,t.apply(void 0,arguments)}},t.binaryExpressionHandler=function(e){var t=this,n=this.createClosure(e.left),r=this.createClosure(e.right);return function(){var o=n(),i=r();switch(e.operator){case"==":return o==i;case"!=":return o!=i;case"===":return o===i;case"!==":return o!==i;case"<":return o<i;case"<=":return o<=i;case">":return o>i;case">=":return o>=i;case"<<":return o<<i;case">>":return o>>i;case">>>":return o>>>i;case"+":return o+i;case"-":return o-i;case"*":return o*i;case"**":return Math.pow(o,i);case"/":return o/i;case"%":return o%i;case"|":return o|i;case"^":return o^i;case"&":return o&i;case"in":return o in i;case"instanceof":return o instanceof i;default:throw t.createInternalThrowError(g.BinaryOperatorSyntaxError,e.operator,e)}}},t.logicalExpressionHandler=function(e){var t=this,n=this.createClosure(e.left),r=this.createClosure(e.right);return function(){switch(e.operator){case"||":return n()||r();case"&&":return n()&&r();default:throw t.createInternalThrowError(g.LogicalOperatorSyntaxError,e.operator,e)}}},t.unaryExpressionHandler=function(e){var t=this;switch(e.operator){case"delete":var n=this.createObjectGetter(e.argument),r=this.createNameGetter(e.argument);return function(){return delete n()[r()]};default:var o;if("typeof"===e.operator&&"Identifier"===e.argument.type){var i=this.createObjectGetter(e.argument),a=this.createNameGetter(e.argument);o=function(){return i()[a()]}}else o=this.createClosure(e.argument);return function(){var n=o();switch(e.operator){case"-":return-n;case"+":return+n;case"!":return!n;case"~":return~n;case"void":return;case"typeof":return typeof n;default:throw t.createInternalThrowError(g.UnaryOperatorSyntaxError,e.operator,e)}}}},t.updateExpressionHandler=function(e){var t=this,n=this.createObjectGetter(e.argument),r=this.createNameGetter(e.argument);return function(){var o=n(),i=r();switch(t.assertVariable(o,i,e),e.operator){case"++":return e.prefix?++o[i]:o[i]++;case"--":return e.prefix?--o[i]:o[i]--;default:throw t.createInternalThrowError(g.UpdateOperatorSyntaxError,e.operator,e)}}},t.objectExpressionHandler=function(e){var t=this,n=[];var r=Object.create(null);return e.properties.forEach((function(e){var o=e.kind,i=function(e){return"Identifier"===e.type?e.name:"Literal"===e.type?e.value:this.throwError(g.ObjectStructureSyntaxError,e.type,e)}(e.key);r[i]&&"init"!==o||(r[i]={}),r[i][o]=t.createClosure(e.value),n.push({key:i,property:e})})),function(){for(var e={},t=n.length,o=0;o<t;o++){var i=n[o],a=i.key,c=r[a],u=c.init?c.init():void 0,s=c.get?c.get():function(){},l=c.set?c.set():function(e){};if("set"in c||"get"in c){var f={configurable:!0,enumerable:!0,get:s,set:l};Object.defineProperty(e,a,f)}else{var p=i.property,d=p.kind;"Identifier"!==p.key.type||"FunctionExpression"!==p.value.type||"init"!==d||p.value.id||_(u,p.key.name),e[a]=u}}return e}},t.arrayExpressionHandler=function(e){var t=this,n=e.elements.map((function(e){return e?t.createClosure(e):e}));return function(){for(var e=n.length,t=Array(e),r=0;r<e;r++){var o=n[r];o&&(t[r]=o())}return t}},t.safeObjectGet=function(e,t,n){return e[t]},t.createCallFunctionGetter=function(e){var t=this;switch(e.type){case"MemberExpression":var n=this.createClosure(e.object),r=this.createMemberKeyGetter(e),o=this.source;return function(){var i=n(),a=r(),c=t.safeObjectGet(i,a,e);if(!c||!A(c)){var u=o.slice(e.start,e.end);throw t.createInternalThrowError(g.FunctionUndefinedReferenceError,u,e)}return c.__IS_EVAL_FUNC?function(e){return c(new L(t),e,!0)}:c.__IS_FUNCTION_FUNC?function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c.apply(void 0,[new L(t)].concat(n))}:c.bind(i)};default:var i=this.createClosure(e);return function(){var n="";"Identifier"===e.type&&(n=e.name);var r=i();if(!r||!A(r))throw t.createInternalThrowError(g.FunctionUndefinedReferenceError,n,e);if("Identifier"===e.type&&r.__IS_EVAL_FUNC&&"eval"===n)return function(e){var o=t.getScopeFromName(n,t.getCurrentScope()),i=o.name===P||o.name===M||o.name===T;return r(new L(t),e,!i)};if(r.__IS_EVAL_FUNC)return function(e){return r(new L(t),e,!0)};if(r.__IS_FUNCTION_FUNC)return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return r.apply(void 0,[new L(t)].concat(n))};var o=t.options.globalContextInFunction;if("Identifier"===e.type){var a=t.getIdentifierScope(e);a.name===k&&(o=a.data)}return r.bind(o)}}},t.callExpressionHandler=function(e){var t=this,n=this.createCallFunctionGetter(e.callee),r=e.arguments.map((function(e){return t.createClosure(e)}));return function(){return n().apply(void 0,r.map((function(e){return e()})))}},t.functionExpressionHandler=function(e){var t=this,n=this,r=this.source,o=this.collectDeclVars,i=this.collectDeclFuncs;this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null);var a=e.id?e.id.name:"",c=e.params.length,u=e.params.map((function(e){return t.createParamNameGetter(e)})),s=this.createClosure(e.body),l=this.collectDeclVars,f=this.collectDeclFuncs;return this.collectDeclVars=o,this.collectDeclFuncs=i,function(){var t=n.getCurrentScope(),o=function e(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];n.callStack.push(""+a);var c=n.getCurrentScope(),p=U(t,"FunctionScope("+a+")");n.setCurrentScope(p),n.addDeclarationsToScope(l,f,p),a&&(p.data[a]=e),p.data.arguments=arguments,u.forEach((function(e,t){p.data[e()]=o[t]}));var d=n.getCurrentContext();n.setCurrentContext(this);var h=s();if(n.setCurrentContext(d),n.setCurrentScope(c),n.callStack.pop(),h instanceof I)return h.value};return _(o,a),Object.defineProperty(o,"length",{value:c,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(o,"toString",{value:function(){return r.slice(e.start,e.end)},writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(o,"valueOf",{value:function(){return r.slice(e.start,e.end)},writable:!0,configurable:!0,enumerable:!1}),o}},t.newExpressionHandler=function(e){var t=this,n=this.source,r=this.createClosure(e.callee),o=e.arguments.map((function(e){return t.createClosure(e)}));return function(){var i=r();if(!A(i)||i.__IS_EVAL_FUNC){var a=e.callee,c=n.slice(a.start,a.end);throw t.createInternalThrowError(g.IsNotConstructor,c,e)}return i.__IS_FUNCTION_FUNC?i.apply(void 0,[new L(t)].concat(o.map((function(e){return e()})))):O(i,o.map((function(e){return e()})))}},t.memberExpressionHandler=function(e){var t=this.createClosure(e.object),n=this.createMemberKeyGetter(e);return function(){return t()[n()]}},t.thisExpressionHandler=function(e){var t=this;return function(){return t.getCurrentContext()}},t.sequenceExpressionHandler=function(e){var t=this,n=e.expressions.map((function(e){return t.createClosure(e)}));return function(){for(var e,t=n.length,r=0;r<t;r++){e=(0,n[r])()}return e}},t.literalHandler=function(e){return function(){return e.regex?new RegExp(e.regex.pattern,e.regex.flags):e.value}},t.identifierHandler=function(e){var t=this;return function(){var n=t.getCurrentScope(),r=t.getScopeDataFromName(e.name,n);return t.assertVariable(r,e.name,e),r[e.name]}},t.getIdentifierScope=function(e){var t=this.getCurrentScope();return this.getScopeFromName(e.name,t)},t.assignmentExpressionHandler=function(e){var t=this;"Identifier"!==e.left.type||"FunctionExpression"!==e.right.type||e.right.id||(e.right.id={type:"Identifier",name:e.left.name});var n=this.createObjectGetter(e.left),r=this.createNameGetter(e.left),o=this.createClosure(e.right);return function(){var i=n(),a=r(),c=o();switch("="!==e.operator&&t.assertVariable(i,a,e),e.operator){case"=":return i[a]=c;case"+=":return i[a]+=c;case"-=":return i[a]-=c;case"*=":return i[a]*=c;case"**=":return i[a]=Math.pow(i[a],c);case"/=":return i[a]/=c;case"%=":return i[a]%=c;case"<<=":return i[a]<<=c;case">>=":return i[a]>>=c;case">>>=":return i[a]>>>=c;case"&=":return i[a]&=c;case"^=":return i[a]^=c;case"|=":return i[a]|=c;default:throw t.createInternalThrowError(g.AssignmentExpressionSyntaxError,e.type,e)}}},t.functionDeclarationHandler=function(e){if(e.id){var t=this.functionExpressionHandler(e);Object.defineProperty(t,"isFunctionDeclareClosure",{value:!0,writable:!1,configurable:!1,enumerable:!1}),this.funcDeclaration(e.id.name,t)}return function(){return j}},t.getVariableName=function(e){if("Identifier"===e.type)return e.name;throw this.createInternalThrowError(g.VariableTypeSyntaxError,e.type,e)},t.variableDeclarationHandler=function(e){for(var t,n=this,r=[],o=0;o<e.declarations.length;o++){var i=e.declarations[o];this.varDeclaration(this.getVariableName(i.id)),i.init&&r.push({type:"AssignmentExpression",operator:"=",left:i.id,right:i.init})}return r.length&&(t=this.createClosure({type:"BlockStatement",body:r})),function(){if(t){var e=n.isVarDeclMode;n.isVarDeclMode=!0,t(),n.isVarDeclMode=e}return j}},t.assertVariable=function(e,t,n){if(e===this.globalScope.data&&!(t in e))throw this.createInternalThrowError(g.VariableUndefinedReferenceError,t,n)},t.programHandler=function(e){var t=this,n=e.body.map((function(e){return t.createClosure(e)}));return function(){for(var e=j,r=0;r<n.length;r++){var o=n[r],i=t.setValue(o());if(i!==j&&((e=i)instanceof I||e instanceof D||e instanceof F||e===E||e===S))break}return e}},t.expressionStatementHandler=function(e){return this.createClosure(e.expression)},t.emptyStatementHandler=function(e){return function(){return j}},t.returnStatementHandler=function(e){var t=e.argument?this.createClosure(e.argument):B;return function(){return new I(t())}},t.ifStatementHandler=function(e){var t=this.createClosure(e.test),n=this.createClosure(e.consequent),r=e.alternate?this.createClosure(e.alternate):function(){return j};return function(){return t()?n():r()}},t.conditionalExpressionHandler=function(e){return this.ifStatementHandler(e)},t.forStatementHandler=function(e){var t=this,n=B,r=e.test?this.createClosure(e.test):function(){return!0},o=B,i=this.createClosure(e.body);return"ForStatement"===e.type&&(n=e.init?this.createClosure(e.init):n,o=e.update?this.createClosure(e.update):B),function(a){var c,u=j,s="DoWhileStatement"===e.type;for(a&&"LabeledStatement"===a.type&&(c=a.label.name),n();s||r();o()){s=!1;var l=t.setValue(i());if(l!==j&&l!==S){if(l===E)break;if((u=l)instanceof F&&u.value===c)u=j;else if(u instanceof I||u instanceof D||u instanceof F)break}}return u}},t.whileStatementHandler=function(e){return this.forStatementHandler(e)},t.doWhileStatementHandler=function(e){return this.forStatementHandler(e)},t.forInStatementHandler=function(e){var t=this,n=e.left,r=this.createClosure(e.right),o=this.createClosure(e.body);return"VariableDeclaration"===e.left.type&&(this.createClosure(e.left)(),n=e.left.declarations[0].id),function(e){var i,a,c=j;e&&"LabeledStatement"===e.type&&(i=e.label.name);var u=r();for(a in u){t.assignmentExpressionHandler({type:"AssignmentExpression",operator:"=",left:n,right:{type:"Literal",value:a}})();var s=t.setValue(o());if(s!==j&&s!==S){if(s===E)break;if((c=s)instanceof F&&c.value===i)c=j;else if(c instanceof I||c instanceof D||c instanceof F)break}}return c}},t.withStatementHandler=function(e){var t=this,n=this.createClosure(e.object),r=this.createClosure(e.body);return function(){var e=n(),o=t.getCurrentScope(),i=new z(e,o,k);t.setCurrentScope(i);var a=t.setValue(r());return t.setCurrentScope(o),a}},t.throwStatementHandler=function(e){var t=this,n=this.createClosure(e.argument);return function(){throw t.setValue(void 0),n()}},t.tryStatementHandler=function(e){var t=this,n=this.createClosure(e.block),r=e.handler?this.catchClauseHandler(e.handler):null,o=e.finalizer?this.createClosure(e.finalizer):null;return function(){var e,i,a=t.getCurrentScope(),c=t.getCurrentContext(),u=a.labelStack.concat([]),s=t.callStack.concat([]),l=j,f=function(){t.setCurrentScope(a),t.setCurrentContext(c),a.labelStack=u,t.callStack=s};try{(l=t.setValue(n()))instanceof I&&(e=l)}catch(p){if(f(),t.isInterruptThrow(p))throw p;if(r)try{(l=t.setValue(r(p)))instanceof I&&(e=l)}catch(p){if(f(),t.isInterruptThrow(p))throw p;i=p}}if(o)try{(l=o())instanceof I&&(e=l)}catch(p){if(f(),t.isInterruptThrow(p))throw p;i=p}if(i)throw i;return e||l}},t.catchClauseHandler=function(e){var t=this,n=this.createParamNameGetter(e.param),r=this.createClosure(e.body);return function(e){var o,i=t.getCurrentScope().data,a=n(),c=x.call(i,a),u=i[a];return i[a]=e,o=r(),c?i[a]=u:delete i[a],o}},t.continueStatementHandler=function(e){return function(){return e.label?new F(e.label.name):S}},t.breakStatementHandler=function(e){return function(){return e.label?new D(e.label.name):E}},t.switchStatementHandler=function(e){var t=this,n=this.createClosure(e.discriminant),r=e.cases.map((function(e){return t.switchCaseHandler(e)}));return function(){for(var e,o,i,a=n(),c=!1,u=0;u<r.length;u++){var s=r[u](),l=s.testClosure();if(l!==C){if(c||l===a){if(c=!0,(o=t.setValue(s.bodyClosure()))===j)continue;if(o===E)break;if((e=o)instanceof I||e instanceof D||e instanceof F||e===S)break}}else i=s}!c&&i&&((o=t.setValue(i.bodyClosure()))===j||o===E||o===S||(e=o));return e}},t.switchCaseHandler=function(e){var t=e.test?this.createClosure(e.test):function(){return C},n=this.createClosure({type:"BlockStatement",body:e.consequent});return function(){return{testClosure:t,bodyClosure:n}}},t.labeledStatementHandler=function(e){var t=this,n=e.label.name,r=this.createClosure(e.body);return function(){var o,i=t.getCurrentScope();return i.labelStack.push(n),(o=r(e))instanceof D&&o.value===n&&(o=j),i.labelStack.pop(),o}},t.debuggerStatementHandler=function(e){return function(){return j}},t.createParamNameGetter=function(e){if("Identifier"===e.type)return function(){return e.name};throw this.createInternalThrowError(g.ParamTypeSyntaxError,e.type,e)},t.createObjectKeyGetter=function(e){var t;return t="Identifier"===e.type?function(){return e.name}:this.createClosure(e),function(){return t()}},t.createMemberKeyGetter=function(e){return e.computed?this.createClosure(e.property):this.createObjectKeyGetter(e.property)},t.createObjectGetter=function(e){var t=this;switch(e.type){case"Identifier":return function(){return t.getScopeDataFromName(e.name,t.getCurrentScope())};case"MemberExpression":return this.createClosure(e.object);default:throw this.createInternalThrowError(g.AssignmentTypeSyntaxError,e.type,e)}},t.createNameGetter=function(e){switch(e.type){case"Identifier":return function(){return e.name};case"MemberExpression":return this.createMemberKeyGetter(e);default:throw this.createInternalThrowError(g.AssignmentTypeSyntaxError,e.type,e)}},t.varDeclaration=function(e){this.collectDeclVars[e]=void 0},t.funcDeclaration=function(e,t){this.collectDeclFuncs[e]=t},t.addDeclarationsToScope=function(e,t,n){var r=n.data;for(var o in t){var i=t[o];r[o]=i?i():i}for(var a in e)a in r||(r[a]=void 0)},t.getScopeValue=function(e,t){return this.getScopeFromName(e,t).data[e]},t.getScopeDataFromName=function(e,t){return this.getScopeFromName(e,t).data},t.getScopeFromName=function(e,t){var n=t;do{if(e in n.data)return n}while(n=n.parent);return this.globalScope},t.setValue=function(e){var t=this.callStack.length;return this.isVarDeclMode||t||e===j||e===E||e===S||e instanceof D||e instanceof F||(this.value=e instanceof I?e.value:e),e},t.getValue=function(){return this.value},e}();function G(e){return void 0===e&&(e=Object.create(null)),e}function W(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});var r=n.parsingContext,o=void 0===n.timeout?0:n.timeout,i="\n (function anonymous("+t.join(",")+"){\n "+e+"\n });\n ";return new H(r,{ecmaVersion:n.ecmaVersion,timeout:o,rootContext:n.rootContext,globalContextInFunction:n.globalContextInFunction}).evaluate(i)}function Y(e,t,n){return new H(t,n).evaluate(e)}H.version="0.0.3",H.eval=R,H.Function=N,H.ecmaVersion=5,H.globalContextInFunction=void 0,H.global=Object.create(null);var K=Y,X=function(){function e(e){this._code=e}var t=e.prototype;return t.runInContext=function(e){return Y(this._code,e)},t.runInNewContext=function(e){return Y(this._code,e)},e}(),q=function(e,t,n){return Y(e,t,n)},Z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.pop();return W(r||"",t)};t.default=q},iQ7j:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},iZBp:function(e,t,n){"use strict";var r=Symbol.for("@@meta:magical");e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"false"!=={}.FOLKTALE_DOCS&&(t[r]=Object.assign({},e[r]||{},n))}},icSG:function(e,t,n){var r=n("WhsZ"),o=n("P1cI");e.exports=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},r((function(t,n){return new e(t,n)}))}()},icVn:function(e,t,n){"use strict";n.d(t,"d",(function(){return dc})),n.d(t,"e",(function(){return hc})),n.d(t,"b",(function(){return yc})),n.d(t,"a",(function(){return mc}));n("qzOT");var r=n("Gpi5"),o=n.n(r),i=n("s6Xb"),a=n("H4op"),c=n.n(a),u=n("sC+u"),s=n("zEXi"),l=n("VaJR"),f=n.n(l);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m;function g(e,t,n){var r,o=v(t);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i.icon,c=i.xOffset;e[a.id]=d(d({},a),{},{x:c,y:n,image:a.image,width:a.width,height:a.height})}}catch(u){o.e(u)}finally{o.f()}}function b(e){return Math.pow(2,Math.ceil(Math.log2(e)))}function O(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=function(){for(var e=[],t=32;t<128;t++)e.push(String.fromCharCode(t));return e}();function j(e,t,n,r){e.font="".concat(r," ").concat(n,"px ").concat(t),e.fillStyle="black",e.textBaseline="middle"}function k(e,t){for(var n=0;n<e.length;n++)t.data[4*n+3]=e[n]}var P,T=Object(i.injectable)()(m=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),S(this,"iconFontGlyphs",{}),S(this,"cache",new s.h(3))}var t,n,r;return t=e,(n=[{key:"scale",get:function(){return 1}},{key:"canvas",get:function(){var e=this.cache.get(this.key);return e&&e.data}},{key:"mapping",get:function(){var e=this.cache.get(this.key);return e&&e.mapping}},{key:"init",value:function(){this.cache.clear(),this.fontOptions={fontFamily:"sans-serif",fontWeight:"normal",characterSet:C,fontSize:24,buffer:3,sdf:!0,cutoff:.25,radius:8,iconfont:!1},this.key="",this.iconFontMap=new Map}},{key:"addIconGlyphs",value:function(e){var t=this;e.forEach((function(e){t.iconFontGlyphs[e.name]=e.unicode}))}},{key:"addIconFont",value:function(e,t){this.iconFontMap.set(e,t)}},{key:"getIconFontKey",value:function(e){return this.iconFontMap.get(e)||e}},{key:"getGlyph",value:function(e){return this.iconFontGlyphs[e]?String.fromCharCode(parseInt(this.iconFontGlyphs[e],16)):""}},{key:"setFontOptions",value:function(e){this.fontOptions=x(x({},this.fontOptions),e),this.key=this.getKey();var t=this.getNewChars(this.key,this.fontOptions.characterSet),n=this.cache.get(this.key);if(!n||0!==t.length){var r=this.generateFontAtlas(this.key,t,n);this.fontAtlas=r,this.cache.set(this.key,r)}}},{key:"destroy",value:function(){this.cache.clear(),this.iconFontMap.clear()}},{key:"generateFontAtlas",value:function(e,t,n){var r=this.fontOptions,o=r.fontFamily,i=r.fontWeight,a=r.fontSize,c=r.buffer,u=r.sdf,l=r.radius,p=r.cutoff,d=r.iconfont,h=n&&n.data;h||((h=s.c.document.createElement("canvas")).width=1024);var v=h.getContext("2d");j(v,o,a,i);var y=function(e){var t=e.characterSet,n=e.getFontWidth,r=e.fontHeight,o=e.buffer,i=e.maxCanvasWidth,a=e.mapping,c=void 0===a?{}:a,u=e.xOffset,s=void 0===u?0:u,l=e.yOffset,f=void 0===l?0:l,p=0,d=s;Array.from(t).forEach((function(e,t){if(!c[e]){var r=n(e,t);d+30>i&&(d=0,p++),c[e]={x:d,y:f+30*p,width:30,height:30,advance:r},d+=30}}));var h=r+2*o;return{mapping:c,xOffset:d,yOffset:f+p*h,canvasHeight:b(f+(p+1)*h)}}(x({getFontWidth:function(e){return v.measureText(e).width},fontHeight:1*a,buffer:c,characterSet:t,maxCanvasWidth:1024},n&&{mapping:n.mapping,xOffset:n.xOffset,yOffset:n.yOffset})),m=y.mapping,g=y.canvasHeight,w=y.xOffset,_=y.yOffset,E=v.getImageData(0,0,h.width,h.height);if(h.height=g,v.putImageData(E,0,0),j(v,o,a,i),u){var S,C=new f.a(a,c,l,p,o,i),P=v.getImageData(0,0,C.size,C.size),T=O(t);try{for(T.s();!(S=T.n()).done;){var M=S.value;if(d){var A=String.fromCharCode(parseInt(M.replace("&#x","").replace(";",""),16));k(C.draw(A),P)}else k(C.draw(M),P);v.putImageData(P,m[M].x,m[M].y)}}catch(I){T.e(I)}finally{T.f()}}else{var L,R=O(t);try{for(R.s();!(L=R.n()).done;){var N=L.value;v.fillText(N,m[N].x,m[N].y+1*a)}}catch(I){R.e(I)}finally{R.f()}}return{xOffset:w,yOffset:_,mapping:m,data:h,width:h.width,height:h.height}}},{key:"getKey",value:function(){return"key"}},{key:"getNewChars",value:function(e,t){var n=this.cache.get(e);if(!n)return t;var r=[],o=n.mapping,i=new Set(Object.keys(o));return new Set(t).forEach((function(e){i.has(e)||r.push(e)})),r}}])&&E(t.prototype,n),r&&E(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||m;function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(e,t){if(t&&("object"===M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return D(e)}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B,U=Object(i.injectable)()(P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(i,e);var t,n,r,o=N(i);function i(){var e;A(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return z(D(e=o.call.apply(o,[this].concat(n))),"canvasHeight",128),z(D(e),"loadingImageCount",0),e}return t=i,(n=[{key:"isLoading",value:function(){return 0===this.loadingImageCount}},{key:"init",value:function(){this.iconData=[],this.iconMap={},this.canvas=s.c.document.createElement("canvas"),this.canvas.width=128,this.canvas.height=128,this.ctx=this.canvas.getContext("2d")}},{key:"addImage",value:function(e,t){var n=this,r=new Image;if(this.loadingImageCount++,this.hasImage(e))throw new Error("Image Id already exists");this.iconData.push({id:e,size:64}),this.updateIconMap(),this.loadImage(t).then((function(t){r=t;var o=n.iconData.find((function(t){return t.id===e}));o&&(o.image=r,o.width=r.width,o.height=r.height),n.update()}))}},{key:"addImageMini",value:function(e,t,n){var r=this,o=n.getSceneConfig().canvas,i=o.createImage();if(this.loadingImageCount++,this.hasImage(e))throw new Error("Image Id already exists");this.iconData.push({id:e,size:64}),this.updateIconMap(),this.loadImageMini(t,o).then((function(t){i=t;var n=r.iconData.find((function(t){return t.id===e}));n&&(n.image=i,n.width=i.width,n.height=i.height),r.update()}))}},{key:"getTexture",value:function(){return this.texture}},{key:"getIconMap",value:function(){return this.iconMap}},{key:"getCanvas",value:function(){return this.canvas}},{key:"hasImage",value:function(e){return this.iconMap.hasOwnProperty(e)}},{key:"removeImage",value:function(e){this.hasImage(e)&&(this.iconData=this.iconData.filter((function(t){return t.id!==e})),delete this.iconMap[e],this.update())}},{key:"destroy",value:function(){this.removeAllListeners("imageUpdate"),this.iconData=[],this.iconMap={}}},{key:"loadImage",value:function(e){return new Promise((function(t,n){if(e instanceof HTMLImageElement)t(e);else{var r=new Image;r.crossOrigin="anonymous",r.onload=function(){t(r)},r.onerror=function(){n(new Error("Could not load image at "+e))},r.src=e instanceof File?URL.createObjectURL(e):e}}))}},{key:"update",value:function(){this.updateIconMap(),this.updateIconAtlas(),this.loadingImageCount--,0===this.loadingImageCount&&this.emit("imageUpdate")}},{key:"updateIconAtlas",value:function(){var e=this;this.canvas.width=1024,this.canvas.height=this.canvasHeight,Object.keys(this.iconMap).forEach((function(t){var n=e.iconMap[t],r=n.x,o=n.y,i=n.image,a=n.width,c=void 0===a?64:a,u=n.height,s=void 0===u?64:u,l=Math.max(c,s)/64,f=s/l,p=c/l;i&&e.ctx.drawImage(i,r+(64-p)/2,o+(64-f)/2,p,f)}))}},{key:"updateIconMap",value:function(){var e=function(e,t,n){var r,o=0,i=0,a=0,c=[],u={},s=v(e);try{for(s.s();!(r=s.n()).done;){var l=r.value;if(!u[l.id]){var f=l.size;o+f+t>n&&(g(u,c,i),o=0,i=a+i+t,a=0,c=[]),c.push({icon:l,xOffset:o}),o=o+f+t,a=Math.max(a,f)}}}catch(p){s.e(p)}finally{s.f()}return c.length>0&&g(u,c,i),{mapping:u,canvasHeight:b(a+i+t)}}(this.iconData,3,1024),t=e.mapping,n=e.canvasHeight;this.iconMap=t,this.canvasHeight=n}},{key:"loadImageMini",value:function(e,t){return new Promise((function(n,r){var o=t.createImage();o.crossOrigin="anonymous",o.onload=function(){n(o)},o.onerror=function(){r(new Error("Could not load image at "+e))},o.src=e}))}}])&&L(t.prototype,n),r&&L(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.EventEmitter))||P,V=n("K/oH");function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Y,K=Object(i.injectable)()(B=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"init",value:function(){}},{key:"update",value:function(e){this.viewport=e,this.viewMatrixInverse=V.b.create(),V.b.invert(this.viewMatrixInverse,e.getViewMatrix()),this.cameraPosition=[this.viewMatrixInverse[12],this.viewMatrixInverse[13],this.viewMatrixInverse[14]]}},{key:"getProjectionMatrix",value:function(){return this.jitteredProjectionMatrix||this.viewport.getProjectionMatrix()}},{key:"getModelMatrix",value:function(){return this.viewport.getModelMatrix()}},{key:"getViewMatrix",value:function(){return this.viewport.getViewMatrix()}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.getViewMatrixUncentered()}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.getViewProjectionMatrixUncentered()}},{key:"getViewProjectionMatrix",value:function(){return this.overridedViewProjectionMatrix||this.jitteredViewProjectionMatrix||this.viewport.getViewProjectionMatrix()}},{key:"getZoom",value:function(){return this.viewport.getZoom()}},{key:"getZoomScale",value:function(){return this.viewport.getZoomScale()}},{key:"getCenter",value:function(){var e=H(this.viewport.getCenter(),2);return[e[0],e[1]]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(e,t){return this.viewport.projectFlat(e,t)}},{key:"setViewProjectionMatrix",value:function(e){this.overridedViewProjectionMatrix=e}},{key:"jitterProjectionMatrix",value:function(e,t){var n=V.b.fromTranslation(V.b.create(),[e,t,0]);this.jitteredProjectionMatrix=V.b.multiply(V.b.create(),n,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=V.b.multiply(V.b.create(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}])&&W(t.prototype,n),r&&W(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||B;function X(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q,$=Object(i.injectable)()(Y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),J(this,"controls",[]),J(this,"unAddControls",[])}var t,n,r;return t=e,(n=[{key:"init",value:function(e,t){this.container=e.container,this.scene=t,this.mapsService=t.get(u.a.IMapService),this.initControlPos()}},{key:"addControl",value:function(e,t){t.get(u.a.IMapService).map?(e.addTo(this.scene),this.controls.push(e)):this.unAddControls.push(e)}},{key:"getControlByName",value:function(e){return this.controls.find((function(t){return t.controlOption.name===e}))}},{key:"removeControl",value:function(e){var t=this.controls.indexOf(e);return t>-1&&this.controls.splice(t,1),e.remove(),this}},{key:"addControls",value:function(){var e=this;this.unAddControls.forEach((function(t){t.addTo(e.scene),e.controls.push(t)})),this.unAddControls=[]}},{key:"destroy",value:function(){var e,t=X(this.controls);try{for(t.s();!(e=t.n()).done;)e.value.remove()}catch(n){t.e(n)}finally{t.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var e=this.controlCorners={},t="l7-",n=this.controlContainer=s.f.create("div","l7-control-container",this.container);function r(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=r.map((function(e){return t+e})).join(" ");e[r.join("")]=s.f.create("div",o,n)}r(["top","left"]),r(["top","right"]),r(["bottom","left"]),r(["bottom","right"]),r(["top","center"]),r(["right","center"]),r(["left","center"]),r(["bottom","center"])}},{key:"clearControlPos",value:function(){for(var e in this.controlCorners)this.controlCorners[e]&&s.f.remove(this.controlCorners[e]);this.controlContainer&&s.f.remove(this.controlContainer)}}])&&Z(t.prototype,n),r&&Z(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||Y;function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ne,re=Object(i.injectable)()(Q=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),te(this,"markers",[]),te(this,"markerLayers",[]),te(this,"unAddMarkers",[]),te(this,"unAddMarkerLayers",[])}var t,n,r;return t=e,(n=[{key:"addMarkerLayer",value:function(e){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markerLayers.push(e),e.addTo(this.scene)):this.unAddMarkerLayers.push(e)}},{key:"removeMarkerLayer",value:function(e){e.destroy(),this.markerLayers.indexOf(e);var t=this.markerLayers.indexOf(e);t>-1&&this.markerLayers.splice(t,1)}},{key:"addMarker",value:function(e){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(e),e.addTo(this.scene)):this.unAddMarkers.push(e)}},{key:"addMarkers",value:function(){var e=this;this.unAddMarkers.forEach((function(t){t.addTo(e.scene),e.markers.push(t)})),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var e=this;this.unAddMarkerLayers.forEach((function(t){e.markerLayers.push(t),t.addTo(e.scene)})),this.unAddMarkers=[]}},{key:"removeMarker",value:function(e){e.remove(),this.markers.indexOf(e);var t=this.markers.indexOf(e);t>-1&&this.markers.splice(t,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(e){this.scene=e,this.mapsService=e.get(u.a.IMapService)}},{key:"destroy",value:function(){this.markers.forEach((function(e){e.remove()})),this.markers=[],this.markerLayers.forEach((function(e){e.destroy()})),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(e){e.destroy()}}])&&ee(t.prototype,n),r&&ee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||Q;function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ie,ae=Object(i.injectable)()(ne=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"removePopup",value:function(e){e.remove()}},{key:"destroy",value:function(){this.popup.remove()}},{key:"addPopup",value:function(e){this.popup&&this.popup.remove(),this.mapsService.map&&this.mapsService.getMarkerContainer()?(e.addTo(this.scene),this.popup=e):this.unAddPopup=e}},{key:"initPopup",value:function(){this.unAddPopup&&(this.addPopup(this.unAddPopup),this.unAddPopup=null)}},{key:"init",value:function(e){this.scene=e,this.mapsService=e.get(u.a.IMapService)}}])&&oe(t.prototype,n),r&&oe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||ne,ce=n("H8sf"),ue=n.n(ce),se={MapToken:"您正在使用 Demo测试地图token,如果生产环境中使用去对应地图请注册Token",SDK:"请确认引入了mapbox-gl api且在L7之前引入"};function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var he={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},ve={colors:["rgb(103,0,31)","rgb(178,24,43)","rgb(214,96,77)","rgb(244,165,130)","rgb(253,219,199)","rgb(247,247,247)","rgb(209,229,240)","rgb(146,197,222)","rgb(67,147,195)","rgb(33,102,172)","rgb(5,48,97)"],size:10,shape:"circle",scales:{},shape2d:["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],shape3d:["cylinder","triangleColumn","hexagonColumn","squareColumn"],minZoom:-1,maxZoom:24,visible:!0,autoFit:!1,pickingBuffer:0,enablePropagation:!1,zIndex:0,blend:"normal",pickedFeatureID:-1,enableMultiPassRenderer:!1,enablePicking:!0,active:!1,activeColor:"#2f54eb",enableHighlight:!1,enableSelect:!1,highlightColor:"#2f54eb",activeMix:0,selectColor:"blue",selectMix:0,enableTAA:!1,jitterScale:1,enableLighting:!1,animateOption:{enable:!1,interval:.2,duration:4,trailLength:.15},forward:!0},ye=Object(i.injectable)()(ie=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),de(this,"sceneConfigCache",{}),de(this,"layerConfigCache",{})}var t,n,r;return t=e,(n=[{key:"getSceneConfig",value:function(e){return this.sceneConfigCache[e]}},{key:"getSceneWarninfo",value:function(e){return se[e]}},{key:"setSceneConfig",value:function(e,t){this.sceneConfigCache[e]=fe(fe({},he),t)}},{key:"getLayerConfig",value:function(e){return this.layerConfigCache[e]}},{key:"setLayerConfig",value:function(e,t,n){this.layerConfigCache[t]=fe({},ue()({},this.sceneConfigCache[e],ve,n))}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}])&&pe(t.prototype,n),r&&pe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||ie,me=Math.PI/180;function ge(e){var t=e.latitude,n=void 0===t?0:t,r=e.zoom,o=void 0===r?0:r,i=e.scale,a=e.highPrecision,c=void 0!==a&&a,u=e.flipY,s=void 0!==u&&u,l={},f=512*(i=void 0!==i?i:Math.pow(2,o)),p=Math.cos(n*me),d=f/360,h=d/p,v=f/4003e4/p;if(l.pixelsPerMeter=[v,-v,v],l.metersPerPixel=[1/v,-1/v,1/v],l.pixelsPerDegree=[d,-h,v],l.degreesPerPixel=[1/d,-1/h,1/v],c){var y=me*Math.tan(n*me)/p,m=d*y/2,g=f/4003e4*y,b=g/h*v;l.pixelsPerDegree2=[0,-m,g],l.pixelsPerMeter2=[b,0,b],s&&(l.pixelsPerDegree2[1]=-l.pixelsPerDegree2[1],l.pixelsPerMeter2[1]=-l.pixelsPerMeter2[1])}return s&&(l.pixelsPerMeter[1]=-l.pixelsPerMeter[1],l.metersPerPixel[1]=-l.metersPerPixel[1],l.pixelsPerDegree[1]=-l.pixelsPerDegree[1],l.degreesPerPixel[1]=-l.degreesPerPixel[1]),l}var be,Oe,we,_e,xe,Ee=n("hJjP");function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ce,je,ke,Pe,Te,Me,Ae,Le,Re,Ne,Ie,De=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],Fe=(be=Object(i.injectable)(),Oe=Object(i.inject)(u.a.ICameraService),be((_e=function(){function e(){var t,n,r,o,i,a,c;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=!0,(n="needRefresh")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,o=this,i="cameraService",c=this,(a=xe)&&Object.defineProperty(o,i,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(c):void 0})}var t,n,r;return t=e,(n=[{key:"refresh",value:function(e){var t=this.cameraService.getZoom(),n=this.cameraService.getZoomScale(),r=e||this.cameraService.getCenter(),o=ge({latitude:r[1],zoom:t}),i=o.pixelsPerMeter,a=o.pixelsPerDegree;this.viewportCenter=r,this.viewportCenterProjection=[0,0,0,0],this.pixelsPerMeter=i,this.pixelsPerDegree=a,this.pixelsPerDegree2=[0,0,0],this.coordinateSystem===Ee.a.LNGLAT||this.coordinateSystem===Ee.a.P20?this.cameraService.setViewProjectionMatrix(void 0):this.coordinateSystem===Ee.a.LNGLAT_OFFSET?this.calculateLnglatOffset(r,t):this.coordinateSystem===Ee.a.P20_OFFSET&&this.calculateLnglatOffset(r,t,n,!0),this.needRefresh=!1}},{key:"getCoordinateSystem",value:function(){return this.coordinateSystem}},{key:"setCoordinateSystem",value:function(e){this.coordinateSystem=e}},{key:"getViewportCenter",value:function(){return this.viewportCenter}},{key:"getViewportCenterProjection",value:function(){return this.viewportCenterProjection}},{key:"getPixelsPerDegree",value:function(){return this.pixelsPerDegree}},{key:"getPixelsPerDegree2",value:function(){return this.pixelsPerDegree2}},{key:"getPixelsPerMeter",value:function(){return this.pixelsPerMeter}},{key:"calculateLnglatOffset",value:function(e,t,n,r){var o=ge({latitude:e[1],zoom:t,scale:n,flipY:r,highPrecision:!0}),i=o.pixelsPerMeter,a=o.pixelsPerDegree,c=o.pixelsPerDegree2,u=this.cameraService.getViewMatrix(),s=this.cameraService.getProjectionMatrix(),l=V.b.multiply([],s,u),f=this.cameraService.projectFlat([Math.fround(e[0]),Math.fround(e[1])],Math.pow(2,t));this.viewportCenterProjection=V.e.transformMat4([],[f[0],f[1],0,1],l),u=this.cameraService.getViewMatrixUncentered()||u,l=V.b.multiply([],s,u),l=V.b.multiply([],l,De),this.cameraService.setViewProjectionMatrix(l),this.pixelsPerMeter=i,this.pixelsPerDegree=a,this.pixelsPerDegree2=c}}])&&Se(t.prototype,n),r&&Se(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ce=_e.prototype,je="cameraService",ke=[Oe],Pe={configurable:!0,enumerable:!0,writable:!0,initializer:null},Me={},Object.keys(Pe).forEach((function(e){Me[e]=Pe[e]})),Me.enumerable=!!Me.enumerable,Me.configurable=!!Me.configurable,("value"in Me||Me.initializer)&&(Me.writable=!0),Me=ke.slice().reverse().reduce((function(e,t){return t(Ce,je,e)||e}),Me),Te&&void 0!==Me.initializer&&(Me.value=Me.initializer?Me.initializer.call(Te):void 0,Me.initializer=void 0),void 0===Me.initializer&&(Object.defineProperty(Ce,je,Me),Me=null),xe=Me,we=_e))||we),ze=n("wjX+"),Be=n.n(ze),Ue=n("JxUs");function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ye(e,t){return(Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ze(e);if(t){var o=Ze(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xe(this,n)}}function Xe(e,t){if(t&&("object"===Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qe(e)}function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qe={panstart:"dragstart",panmove:"dragging",panend:"dragend",pancancel:"dragcancel"},$e=(Ae=Object(i.injectable)(),Le=Object(i.inject)(u.a.IMapService),Ae((Ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ye(e,t)}(i,e);var t,n,r,o=Ke(i);function i(){var e;Ge(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Je(qe(e=o.call.apply(o,[this].concat(n))),"indragging",!1),He(qe(e),"mapService",Ie,qe(e)),Je(qe(e),"lastClickTime",0),Je(qe(e),"lastClickXY",[-1,-1]),Je(qe(e),"onDrag",(function(t){var n=e.interactionEvent(t);n.type=Qe[n.type],"dragging"===n.type?e.indragging=!0:e.indragging=!1,e.emit(Ue.a.Drag,n)})),Je(qe(e),"onHammer",(function(t){t.srcEvent.stopPropagation();var n=e.interactionEvent(t);e.emit(Ue.a.Hover,n)})),Je(qe(e),"onTouch",(function(t){var n=t.touches[0];e.onHover({x:n.pageX,y:n.pageY,type:"touch"})})),Je(qe(e),"onHover",(function(t){var n=t.clientX,r=t.clientY,o=t.type,i=e.mapService.getMapContainer();if(i)if(s.jb)n=n-i.left-0,r=r-i.top-0;else{var a=i.getBoundingClientRect(),c=a.top;n=n-a.left-i.clientLeft,r=r-c-i.clientTop}var u=e.mapService.containerToLngLat([n,r]);if("click"!==o)"touch"!==o?"click"!==o&&"dblclick"!==o&&e.emit(Ue.a.Hover,{x:n,y:r,lngLat:u,type:o,target:t}):e.isDoubleTap(n,r,u);else{if(!s.jb&&"ontouchstart"in document.documentElement==!0)return;e.isDoubleTap(n,r,u)}})),e}return t=i,(n=[{key:"init",value:function(){this.addEventListenerOnMap(),this.$containter=this.mapService.getMapContainer()}},{key:"destroy",value:function(){this.hammertime&&this.hammertime.destroy(),this.removeEventListenerOnMap(),this.off(Ue.a.Hover)}},{key:"triggerHover",value:function(e){var t=e.x,n=e.y;this.emit(Ue.a.Hover,{x:t,y:n})}},{key:"triggerSelect",value:function(e){this.emit(Ue.a.Select,{featureId:e})}},{key:"triggerActive",value:function(e){this.emit(Ue.a.Active,{featureId:e})}},{key:"handleMiniEvent",value:function(e){this.onHover({clientX:e.touches[0].pageX,clientY:e.touches[0].pageY,type:"touch"})}},{key:"addEventListenerOnMap",value:function(){var e=this.mapService.getMapContainer();if(e)if(s.jb)s.c.document.addEventListener("touchstart",this.handleMiniEvent.bind(this));else{var t=new Be.a.Manager(e);t.add(new Be.a.Tap({event:"dblclick",taps:2})),t.add(new Be.a.Tap({event:"click"})),t.add(new Be.a.Pan({threshold:0,pointers:0})),t.add(new Be.a.Press({})),t.on("dblclick click",this.onHammer),t.on("panstart panmove panend pancancel",this.onDrag),e.addEventListener("mousemove",this.onHover),e.addEventListener("mousedown",this.onHover,!0),e.addEventListener("mouseup",this.onHover),e.addEventListener("contextmenu",this.onHover),this.hammertime=t}}},{key:"removeEventListenerOnMap",value:function(){if(s.jb)s.c.document.removeEventListener("touchstart",this.handleMiniEvent.bind(this));else{var e=this.mapService.getMapContainer();e&&(e.removeEventListener("mousemove",this.onHover),this.hammertime.off("dblclick click",this.onHammer),this.hammertime.off("panstart panmove panend pancancel",this.onDrag),e.removeEventListener("mousedown",this.onHover),e.removeEventListener("mouseup",this.onHover),e.removeEventListener("contextmenu",this.onHover))}}},{key:"interactionEvent",value:function(e){var t,n,r=e.type;"touch"===e.pointerType?(n=Math.floor(e.pointers[0].clientY),t=Math.floor(e.pointers[0].clientX)):(n=Math.floor(e.srcEvent.y),t=Math.floor(e.srcEvent.x));var o=this.mapService.getMapContainer();if(o){var i=o.getBoundingClientRect(),a=i.top;t-=i.left,n-=a}return{x:t,y:n,lngLat:this.mapService.containerToLngLat([t,n]),type:r,target:e.srcEvent}}},{key:"isDoubleTap",value:function(e,t,n){var r=this,o=(new Date).getTime(),i="click";o-this.lastClickTime<400&&Math.abs(this.lastClickXY[0]-e)<10&&Math.abs(this.lastClickXY[1]-t)<10?(this.lastClickTime=0,this.lastClickXY=[-1,-1],this.clickTimer&&clearTimeout(this.clickTimer),i="dblclick",this.emit(Ue.a.Hover,{x:e,y:t,lngLat:n,type:i})):(this.lastClickTime=o,this.lastClickXY=[e,t],this.clickTimer=setTimeout((function(){i="click",r.emit(Ue.a.Hover,{x:e,y:t,lngLat:n,type:i})}),400))}}])&&We(t.prototype,n),r&&We(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a),Ie=function(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}(Ne.prototype,"mapService",[Le],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Re=Ne))||Re),et=0;function tt(e){if(s.jb)return null;var t=e;if("string"==typeof e&&(t=document.getElementById(e)),t){var n=document.createElement("div");return n.style.cssText+="\n position: absolute;\n z-index:2;\n height: 100%;\n width: 100%;\n pointer-events: none;\n ",n.id="l7-scene-".concat(et++),n.classList.add("l7-scene"),t.appendChild(n),n}return null}var nt,rt,ot,it,at,ct,ut,st,lt,ft,pt,dt,ht,vt=n("+NSP");function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bt(){bt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==yt(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function Ot(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function wt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ot(i,r,o,a,c,"next",e)}function c(e){Ot(i,r,o,a,c,"throw",e)}a(void 0)}))}}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){Ct(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Et(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function St(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var kt=(nt=Object(i.injectable)(),rt=Object(i.inject)(u.a.IMapService),ot=Object(i.inject)(u.a.IRendererService),it=Object(i.inject)(u.a.IGlobalConfigService),at=Object(i.inject)(u.a.IInteractionService),ct=Object(i.inject)(u.a.ILayerService),nt((lt=jt((st=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"pickedTileLayers",[]),Et(this,"mapService",lt,this),Et(this,"rendererService",ft,this),Et(this,"configService",pt,this),Et(this,"interactionService",dt,this),Et(this,"layerService",ht,this),Ct(this,"width",0),Ct(this,"height",0),Ct(this,"alreadyInPicking",!1),Ct(this,"pickBufferScale",1),Ct(this,"pickedLayers",[]),Ct(this,"pickFromPickingFBO",(function(e,n){var r=n.x,o=n.y,i=n.lngLat,a=n.type,c=n.target,u=!1,l=t.rendererService,f=l.readPixels,p=l.getContainer,d=t.getContainerSize(p()),h=d.width,v=d.height;h*=s.f.DPR,v*=s.f.DPR;var y=e.getLayerConfig(),m=y.enableHighlight,g=y.enableSelect,b=r*s.f.DPR,O=o*s.f.DPR;if(b>h-1*s.f.DPR||b<0||O>v-1*s.f.DPR||O<0)return!1;var w=f({x:Math.floor(b/t.pickBufferScale),y:Math.floor((v-(o+1)*s.f.DPR)/t.pickBufferScale),width:1,height:1,data:new Uint8Array(4),framebuffer:t.pickingFBO});if(t.pickedColors=w,0!==w[0]||0!==w[1]||0!==w[2]){var _=Object(s.E)(w),x=e.getSource().getFeatureById(_);_!==e.getCurrentPickId()&&"mousemove"===a&&(a="mouseenter");var E={x:r,y:o,type:a,lngLat:i,featureId:_,feature:x,target:c};x&&(u=!0,e.setCurrentPickId(_),t.pickedLayers=[e],t.triggerHoverOnLayer(e,E))}else{var S={x:r,y:o,lngLat:i,type:null!==e.getCurrentPickId()&&"mousemove"===a?"mouseout":"un"+a,featureId:null,target:c,feature:null};t.triggerHoverOnLayer(e,xt(xt({},S),{},{type:"unpick"})),t.triggerHoverOnLayer(e,S),e.setCurrentPickId(null),t.pickedLayers=[]}if(m&&t.highlightPickedFeature(e,w),g&&"click"===a&&(null==w?void 0:w.toString())!==[0,0,0,0].toString()){var C=Object(s.E)(w);null===e.getCurrentSelectedId()||C!==e.getCurrentSelectedId()?(t.selectFeature(e,w),e.setCurrentSelectedId(C)):(t.selectFeature(e,new Uint8Array([0,0,0,0])),e.setCurrentSelectedId(null)),e.isVector||t.layerService.getLayers().filter((function(e){return e.tileLayer})).map((function(e){e.tileLayer.clearPickState()}))}return u}))}var t,n,r,o,i,a;return t=e,(n=[{key:"init",value:function(e){var t=this.rendererService,n=t.createTexture2D,r=t.createFramebuffer,o=t.getContainer,i=this.getContainerSize(o()),a=i.width,c=i.height;a*=s.f.DPR,c*=s.f.DPR,this.pickBufferScale=this.configService.getSceneConfig(e).pickBufferScale||1,this.pickingFBO=r({color:n({width:Math.round(a/this.pickBufferScale),height:Math.round(c/this.pickBufferScale),wrapS:vt.a.CLAMP_TO_EDGE,wrapT:vt.a.CLAMP_TO_EDGE})}),this.interactionService.on(Ue.a.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:(a=wt(bt().mark((function e(t,n,r){var o,i,a,c=this;return bt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=this.rendererService,i=o.useFramebuffer,a=o.clear,o.getContainer,this.resizePickingFBO(),i(this.pickingFBO,(function(){a({framebuffer:c.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),t.hooks.beforePickingEncode.call(),t.renderModels(),t.hooks.afterPickingEncode.call();var e=c.pickBox(t,n);r(e)}));case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return a.apply(this,arguments)})},{key:"pickBox",value:function(e,t){var n=this,r=mt(t.map((function(e){var t=e<0?0:e;return Math.floor(t*s.f.DPR/n.pickBufferScale)})),4),o=r[0],i=r[1],a=r[2],c=r[3],u=this.rendererService,l=u.readPixels,f=u.getContainer,p=this.getContainerSize(f()),d=p.width,h=p.height;if(d*=s.f.DPR,h*=s.f.DPR,o>(d-1)*s.f.DPR/this.pickBufferScale||a<0||i>(h-1)*s.f.DPR/this.pickBufferScale||c<0)return[];for(var v=Math.min(d/this.pickBufferScale,a)-o,y=Math.min(h/this.pickBufferScale,c)-i,m=l({x:o,y:Math.floor(h/this.pickBufferScale-(c+1)),width:v,height:y,data:new Uint8Array(v*y*4),framebuffer:this.pickingFBO}),g=[],b={},O=0;O<m.length/4;O+=1){var w=m.slice(4*O,4*O+4),_=Object(s.E)(w);if(-1!==_&&!b[_]){var x=e.getSource().getFeatureById(_);g.push(xt(xt({},x),{},{pickedFeatureIdx:_})),b[_]=!0}}return g}},{key:"handleCursor",value:function(e,t){var n=e.getLayerConfig(),r=n.cursor,o=void 0===r?"":r;if(n.cursorEnabled){var i="GAODE2.x"===this.mapService.version?this.mapService.getMapContainer():this.mapService.getMarkerContainer(),a=null==i?void 0:i.style.getPropertyValue("cursor");"unmousemove"===t&&""!==a?null==i||i.style.setProperty("cursor",""):"mousemove"===t&&(null==i||i.style.setProperty("cursor",o))}}},{key:"destroy",value:function(){this.pickingFBO.destroy(),this.pickingFBO=null}},{key:"getContainerSize",value:function(e){return e.getContext?{width:e.width/s.f.DPR,height:e.height/s.f.DPR}:e.getBoundingClientRect()}},{key:"pickingAllLayer",value:(i=wt(bt().mark((function e(t){return bt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isPickingAllLayer()){e.next=2;break}return e.abrupt("return");case 2:return this.alreadyInPicking=!0,e.next=5,this.pickingLayers(t);case 5:this.layerService.renderLayers(),this.alreadyInPicking=!1;case 7:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"isPickingAllLayer",value:function(){return!(this.alreadyInPicking||this.layerService.alreadyInRendering||this.interactionService.indragging||!this.layerService.getShaderPickStat())}},{key:"resizePickingFBO",value:function(){var e=this.rendererService.getContainer,t=this.getContainerSize(e()),n=t.width,r=t.height;n*=s.f.DPR,r*=s.f.DPR,this.width===n&&this.height===r||(this.pickingFBO.resize({width:Math.round(n/this.pickBufferScale),height:Math.round(r/this.pickBufferScale)}),this.width=n,this.height=r)}},{key:"pickingLayers",value:(o=wt(bt().mark((function e(t){var n,r,o,i=this;return bt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this.rendererService,r=n.useFramebuffer,o=n.clear,this.resizePickingFBO(),r(this.pickingFBO,(function(){i.layerService.getRenderList().filter((function(e){return e.needPick(t.type)})).reverse().some((function(e){if(o({framebuffer:i.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),i.pickedLayers.filter((function(e){return!e.isVector})).map((function(e){i.selectFeature(e,new Uint8Array([0,0,0,0]))})),i.pickedTileLayers.map((function(e){var n;return null===(n=e.tileLayer)||void 0===n?void 0:n.clearPick(t.type)})),e.tileLayer&&e.tileLayer.pickLayers)return e.tileLayer.pickLayers(t);e.hooks.beforePickingEncode.call(),e.masks.length>0&&e.masks.map((function(e){e.hooks.beforeRenderData.call(),e.hooks.beforeRender.call(),e.render(),e.hooks.afterRender.call()})),e.renderModels(!0),e.hooks.afterPickingEncode.call();var n=i.pickFromPickingFBO(e,t);return i.layerService.pickedLayerId=n?+e.id:-1,n&&!e.getLayerConfig().enablePropagation}))}));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"triggerHoverOnLayer",value:function(e,t){var n,r,o,i;i=!0,null==(n=t)||null===(r=n.target)||void 0===r||null===(o=r.path)||void 0===o||o.map((function(e){var t;null!=e&&e.classList&&(null==e||null===(t=e.classList)||void 0===t||t.forEach((function(e){"l7-marker"!==e&&"l7-popup"!==e||(i=!1)})))})),i&&(this.handleCursor(e,t.type),e.emit(t.type,t))}},{key:"highlightPickedFeature",value:function(e,t){var n=mt(t,3),r=n[0],o=n[1],i=n[2];e.hooks.beforeHighlight.call([r,o,i])}},{key:"selectFeature",value:function(e,t){var n=mt(t,3),r=n[0],o=n[1],i=n[2];e.hooks.beforeSelect.call([r,o,i])}}])&&St(t.prototype,n),r&&St(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"mapService",[rt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ft=jt(st.prototype,"rendererService",[ot],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pt=jt(st.prototype,"configService",[it],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),dt=jt(st.prototype,"interactionService",[at],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ht=jt(st.prototype,"layerService",[ct],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ut=st))||ut),Pt=n("Bcqe"),Tt=n.n(Pt);function Mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rt,Nt,It,Dt,Ft,zt,Bt,Ut=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Mt(this,e),Lt(this,"startTime",0),Lt(this,"oldTime",0),Lt(this,"running",!1),Lt(this,"elapsedTime",0),this.autoStart=t}var t,n,r;return t=e,(n=[{key:"start",value:function(){this.startTime=("undefined"==typeof performance?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var t=("undefined"==typeof performance?Date:performance).now();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}])&&At(t.prototype,n),r&&At(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Vt(e){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ht(){Ht=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==Vt(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function Gt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Wt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function Wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yt(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function Kt(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zt(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Jt=(Rt=Object(i.injectable)(),Nt=Object(i.inject)(u.a.IRendererService),It=Object(i.inject)(u.a.IMapService),Rt((zt=Zt((Ft=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),qt(this,"pickedLayerId",-1),qt(this,"clock",new Ut),qt(this,"alreadyInRendering",!1),qt(this,"layers",[]),qt(this,"layerList",[]),qt(this,"sceneInited",!1),qt(this,"animateInstanceCount",0),qt(this,"shaderPicking",!0),qt(this,"enableRender",!0),Kt(this,"renderService",zt,this),Kt(this,"mapService",Bt,this),qt(this,"reRender",Tt()((function(){t.updateLayerRenderList(),t.renderLayers()}),32)),qt(this,"throttleRenderLayers",Tt()((function(){t.renderLayers()}),16))}var t,n,r,o,i;return t=e,(n=[{key:"add",value:function(e){this.sceneInited&&e.init(),this.layers.push(e),this.updateLayerRenderList()}},{key:"addMask",value:function(e){this.sceneInited&&e.init()}},{key:"initLayers",value:function(){this.sceneInited=!0,this.layers.forEach((function(e){e.inited||e.init()})),this.updateLayerRenderList()}},{key:"getSceneInited",value:function(){return this.sceneInited}},{key:"getRenderList",value:function(){return this.layerList}},{key:"getLayers",value:function(){return this.layers}},{key:"getLayer",value:function(e){return this.layers.find((function(t){return t.id===e}))}},{key:"getLayerByName",value:function(e){return this.layers.find((function(t){return t.name===e}))}},{key:"cleanRemove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.layers.indexOf(e);n>-1&&this.layers.splice(n,1),t&&this.throttleRenderLayers()}},{key:"remove",value:function(e,t){if(t){var n=t.layerChildren.indexOf(e);n>-1&&t.layerChildren.splice(n,1)}else{var r=this.layers.indexOf(e);r>-1&&this.layers.splice(r,1)}this.updateLayerRenderList(),e.destroy()}},{key:"removeAllLayers",value:function(){this.destroy()}},{key:"setEnableRender",value:function(e){this.enableRender=e}},{key:"renderLayers",value:(o=Ht().mark((function e(){var t,n,r;return Ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.alreadyInRendering&&this.enableRender){e.next=2;break}return e.abrupt("return");case 2:this.alreadyInRendering=!0,this.clear(),t=Gt(this.layerList),e.prev=5,t.s();case 7:if((n=t.n()).done){e.next=21;break}if((r=n.value).hooks.beforeRenderData.call(),r.hooks.beforeRender.call(),r.masks.length>0&&(this.renderService.clear({stencil:0,depth:1,framebuffer:null}),r.masks.map((function(e){e.hooks.beforeRenderData.call(),e.hooks.beforeRender.call(),e.render(),e.hooks.afterRender.call()}))),!r.getLayerConfig().enableMultiPassRenderer){e.next=17;break}return e.next=15,r.renderMultiPass();case 15:e.next=18;break;case 17:r.render();case 18:r.hooks.afterRender.call();case 19:e.next=7;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(5),t.e(e.t0);case 26:return e.prev=26,t.f(),e.finish(26);case 29:this.alreadyInRendering=!1;case 30:case"end":return e.stop()}}),e,this,[[5,23,26,29]])})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){Yt(i,n,r,a,c,"next",e)}function c(e){Yt(i,n,r,a,c,"throw",e)}a(void 0)}))},function(){return i.apply(this,arguments)})},{key:"updateLayerRenderList",value:function(){var e=this;this.layerList=[],this.layers.filter((function(e){return e.inited})).filter((function(e){return e.isVisible()})).sort((function(e,t){return e.zIndex-t.zIndex})).forEach((function(t){e.layerList.push(t)}))}},{key:"destroy",value:function(){this.layers.forEach((function(e){e.destroy()})),this.layers=[],this.layerList=[],this.renderLayers()}},{key:"startAnimate",value:function(){0==this.animateInstanceCount++&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){0==--this.animateInstanceCount&&(this.stopRender(),this.clock.stop())}},{key:"getOESTextureFloat",value:function(){return this.renderService.extensionObject.OES_texture_float}},{key:"enableShaderPick",value:function(){this.shaderPicking=!0}},{key:"disableShaderPick",value:function(){this.shaderPicking=!1}},{key:"getShaderPickStat",value:function(){return this.shaderPicking}},{key:"clear",value:function(){var e=Object(s.Eb)(this.mapService.bgColor);this.renderService.clear({color:e,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=s.c.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){s.c.cancelAnimationFrame(this.layerRenderID)}}])&&Xt(t.prototype,n),r&&Xt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"renderService",[Nt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=Zt(Ft.prototype,"mapService",[It],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=Ft))||Dt),Qt=n("2Lg3"),$t=n.n(Qt);function en(e){return function(e){if(Array.isArray(e))return tn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on,an,cn,un,sn,ln,fn=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rn(this,"featureBufferLayout",[]),rn(this,"needRescale",!1),rn(this,"needRemapping",!1),rn(this,"needRegenerateVertices",!1),rn(this,"featureRange",{startIndex:0,endIndex:1/0}),rn(this,"defaultCallback",(function(e){var t;return 0===e.length?(null===(t=n.scale)||void 0===t?void 0:t.defaultValues)||[]:e.map((function(e,t){var r;return(null===(r=n.scale)||void 0===r?void 0:r.scalers[t].func)(e)}))})),this.setProps(t)}var t,n,r;return t=e,(n=[{key:"setProps",value:function(e){Object.assign(this,e)}},{key:"mapping",value:function(e){var t;if(null!==(t=this.scale)&&void 0!==t&&t.callback){var n,r=null===(n=this.scale)||void 0===n?void 0:n.callback.apply(n,en(e));if(!$t()(r))return[r]}return this.defaultCallback(e)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}])&&nn(t.prototype,n),r&&nn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),pn=["modelType"],dn=["buffer","update","name"],hn=["buffer","update","name"],vn=["buffer","update","name"];function yn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mn(e){return function(e){if(Array.isArray(e))return gn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach((function(t){_n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xn,En,Sn,Cn,jn,kn,Pn,Tn,Mn,An,Ln,Rn,Nn,In,Dn,Fn,zn,Bn,Un,Vn,Hn,Gn,Wn,Yn,Kn,Xn,qn,Zn,Jn,Qn,$n,er,tr,nr=(_n(on={},vt.a.FLOAT,4),_n(on,vt.a.UNSIGNED_BYTE,1),_n(on,vt.a.UNSIGNED_SHORT,2),on),rr=(an=Object(i.injectable)(),cn=Object(i.inject)(u.a.IRendererService),an((ln=function(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}((sn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,"rendererService",ln,this),_n(this,"attributes",[]),_n(this,"featureLayout",{sizePerElement:0,elements:[]})}var t,n,r;return t=e,(n=[{key:"registerStyleAttribute",value:function(e){var t=this.getLayerStyleAttribute(e.name||"");return t?t.setProps(e):(t=new fn(e),this.attributes.push(t)),t}},{key:"updateStyleAttribute",value:function(e,t,n){var r=this.getLayerStyleAttribute(e);r||(r=this.registerStyleAttribute(On(On({},t),{},{name:e})));var o=t.scale;o&&r&&(r.scale=o,r.needRescale=!0,r.needRemapping=!0,r.needRegenerateVertices=!0,n&&n.featureRange&&(r.featureRange=n.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(e){return this.attributes.find((function(t){return t.name===e}))}},{key:"getLayerAttributeScale",value:function(e){var t,n=this.getLayerStyleAttribute(e),r=null==n||null===(t=n.scale)||void 0===t?void 0:t.scalers;return r&&r[0]?r[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,o=this.attributes.find((function(t){return t.name===e}));if(o&&o.descriptor){var i=o.descriptor,a=i.update,c=i.buffer,u=i.size,s=void 0===u?0:u,l=nr[c.type||vt.a.FLOAT];if(a){var f=this.featureLayout,p=f.elements,d=f.sizePerElement,h=p.slice(n,r);if(!h.length)return;var v=h[0].offset,y=v*s*l,m=h.map((function(e,n){for(var r=e.featureIdx,o=e.vertices,i=e.normals,c=o.length/d,u=[],s=0;s<c;s++){var l=i?i.slice(3*s,3*s+3):[];u.push.apply(u,mn(a(t[r],r,o.slice(s*d,s*d+d),n,l)))}return u})).reduce((function(e,t){return e.push.apply(e,mn(t)),e}),[]);o.vertexAttribute.updateBuffer({data:m,offset:y})}}}},{key:"createAttributesAndIndicesAscy",value:function(e,t,n){var r=this;this.featureLayout={sizePerElement:0,elements:[]};var o=this.attributes.map((function(e){return e.resetDescriptor(),e.descriptor})).filter((function(e){return e})),i=n.modelType,a=yn(n,pn),c=this.rendererService,u=c.createAttribute,l=c.createBuffer,f=c.createElements,p={};return new Promise((function(n,c){Object(s.R)(i,On({descriptors:r.getDescriptorsWithOutFunc(o),features:e,segmentNumber:t},a)).then((function(e){e.descriptors.forEach((function(e,t){if(e){var n=e.buffer,o=(e.update,e.name,yn(e,dn)),i=u(On({buffer:l(n)},o));p[e.name||""]=i,r.attributes[t].vertexAttribute=i}})),r.featureLayout=e.featureLayout;var t=f({data:e.indices,type:vt.a.UNSIGNED_INT,count:e.indices.length});r.attributesAndIndices={attributes:p,elements:t,count:null},n(r.attributesAndIndices)})).catch((function(e){console.warn(e),c(e)}))}))}},{key:"createAttributesAndIndices",value:function(e,t,n){var r=this;this.featureLayout={sizePerElement:0,elements:[]},t&&(this.triangulation=t);var o=this.attributes.map((function(e){return e.resetDescriptor(),e.descriptor})),i=0,a=0,c=[],u=3;e.forEach((function(e,t){var s=r.triangulation(e,n),l=s.indices,f=s.vertices,p=s.normals,d=s.size,h=s.indexes,v=s.count;"number"==typeof v&&(a+=v),l.forEach((function(e){c.push(e+i)})),u=d;var y=f.length/d;r.featureLayout.sizePerElement=u,r.featureLayout.elements.push({featureIdx:t,vertices:f,normals:p,offset:i}),i+=y;for(var m=function(n){var r=(null==p?void 0:p.slice(3*n,3*n+3))||[],i=f.slice(n*d,n*d+d),a=0;h&&void 0!==h[n]&&(a=h[n]),o.forEach((function(o,c){var u;o&&o.update&&(u=o.buffer.data).push.apply(u,mn(o.update(e,t,i,n,r,a)))}))},g=0;g<y;g++)m(g)}));var s=this.rendererService,l=s.createAttribute,f=s.createBuffer,p=s.createElements,d={};o.forEach((function(e,t){if(e){var n=e.buffer,o=(e.update,e.name,yn(e,hn)),i=l(On({buffer:f(n)},o));d[e.name||""]=i,r.attributes[t].vertexAttribute=i}}));var h=p({data:c,type:vt.a.UNSIGNED_INT,count:c.length});return this.attributesAndIndices={attributes:d,elements:h,count:a},this.attributesAndIndices}},{key:"createAttributes",value:function(e,t){var n=this;this.featureLayout={sizePerElement:0,elements:[]},t&&(this.triangulation=t);var r=this.attributes.map((function(e){return e.resetDescriptor(),e.descriptor})),o=0,i=[],a=3;e.forEach((function(e,t){var c=n.triangulation(e),u=c.indices,s=c.vertices,l=c.normals,f=c.size,p=c.indexes;u.forEach((function(e){i.push(e+o)})),a=f;var d=s.length/f;n.featureLayout.sizePerElement=a,n.featureLayout.elements.push({featureIdx:t,vertices:s,normals:l,offset:o}),o+=d;for(var h=function(n){var o=(null==l?void 0:l.slice(3*n,3*n+3))||[],i=s.slice(n*f,n*f+f),a=0;p&&void 0!==p[n]&&(a=p[n]),r.forEach((function(r,c){var u;r&&r.update&&(u=r.buffer.data).push.apply(u,mn(r.update(e,t,i,n,o,a)))}))},v=0;v<d;v++)h(v)}));var c=this.rendererService,u=c.createAttribute,s=c.createBuffer,l={};return r.forEach((function(e,t){if(e){var r=e.buffer,o=(e.update,e.name,yn(e,vn)),i=u(On({buffer:s(r)},o));l[e.name||""]=i,n.attributes[t].vertexAttribute=i}})),{attributes:l}}},{key:"clearAllAttributes",value:function(){var e;this.attributes.forEach((function(e){e.vertexAttribute&&e.vertexAttribute.destroy()})),null===(e=this.attributesAndIndices)||void 0===e||e.elements.destroy(),this.attributes=[]}},{key:"getDescriptorsWithOutFunc",value:function(e){return e.map((function(e){return{buffer:e.buffer,name:e.name,size:e.size}}))}}])&&wn(t.prototype,n),r&&wn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"rendererService",[cn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),un=sn))||un),or=n("Dxeu"),ir=n("L6QZ"),ar=n.n(ir);function cr(e){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ur(){ur=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==cr(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function sr(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function lr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){sr(i,r,o,a,c,"next",e)}function c(e){sr(i,r,o,a,c,"throw",e)}a(void 0)}))}}function fr(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dr(e,t){return(dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function hr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mr(e);if(t){var o=mr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vr(this,n)}}function vr(e,t){if(t&&("object"===cr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yr(e)}function yr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mr(e){return(mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function br(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Or=(xn=Object(i.injectable)(),En=Object(i.inject)(u.a.SceneID),Sn=Object(i.inject)(u.a.IIconService),Cn=Object(i.inject)(u.a.IFontService),jn=Object(i.inject)(u.a.IControlService),kn=Object(i.inject)(u.a.IGlobalConfigService),Pn=Object(i.inject)(u.a.IMapService),Tn=Object(i.inject)(u.a.ICoordinateSystemService),Mn=Object(i.inject)(u.a.IRendererService),An=Object(i.inject)(u.a.ILayerService),Ln=Object(i.inject)(u.a.ICameraService),Rn=Object(i.inject)(u.a.IInteractionService),Nn=Object(i.inject)(u.a.IPickingService),In=Object(i.inject)(u.a.IShaderModuleService),Dn=Object(i.inject)(u.a.IMarkerService),Fn=Object(i.inject)(u.a.IPopupService),xn((Bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dr(e,t)}(a,e);var t,n,r,o,i=hr(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),gr(yr(e=i.call(this)),"destroyed",!1),gr(yr(e),"loaded",!1),gr(yr(e),"loadFont",!1),gr(yr(e),"fontFamily",""),fr(yr(e),"id",Un,yr(e)),fr(yr(e),"iconService",Vn,yr(e)),fr(yr(e),"fontService",Hn,yr(e)),fr(yr(e),"controlService",Gn,yr(e)),fr(yr(e),"configService",Wn,yr(e)),fr(yr(e),"map",Yn,yr(e)),fr(yr(e),"coordinateSystemService",Kn,yr(e)),fr(yr(e),"rendererService",Xn,yr(e)),fr(yr(e),"layerService",qn,yr(e)),fr(yr(e),"cameraService",Zn,yr(e)),fr(yr(e),"interactionService",Jn,yr(e)),fr(yr(e),"pickingService",Qn,yr(e)),fr(yr(e),"shaderModuleService",$n,yr(e)),fr(yr(e),"markerService",er,yr(e)),fr(yr(e),"popupService",tr,yr(e)),gr(yr(e),"inited",!1),gr(yr(e),"rendering",!1),gr(yr(e),"handleWindowResized",(function(){e.emit("resize"),e.$container&&(e.initContainer(),s.f.triggerResize(),e.coordinateSystemService.needRefresh=!0,e.render())})),gr(yr(e),"handleMapCameraChanged",(function(t){e.cameraService.update(t),e.render()})),e.hooks={init:new or.a},e}return t=a,(n=[{key:"init",value:function(e){var t=this;this.configService.setSceneConfig(this.id,e),this.shaderModuleService.registerBuiltinModules(),this.iconService.init(),this.iconService.on("imageUpdate",(function(){return t.render()})),this.fontService.init(),this.hooks.init.tapPromise("initMap",lr(ur().mark((function e(){return ur().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){t.map.onCameraChanged((function(n){t.cameraService.init(),t.cameraService.update(n),e()})),t.map.init()}));case 2:t.map.onCameraChanged(t.handleMapCameraChanged),t.map.addMarkerContainer(),t.markerService.addMarkers(),t.markerService.addMarkerLayers(),t.popupService.initPopup(),t.interactionService.init(),t.interactionService.on(Ue.a.Drag,t.addSceneEvent.bind(t));case 9:case"end":return e.stop()}}),e)})))),this.hooks.init.tapPromise("initRenderer",lr(ur().mark((function n(){var r,o;return ur().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.map.getOverlayContainer(),t.$container=r||tt(t.configService.getSceneConfig(t.id).id||""),!t.$container){n.next=12;break}return t.canvas=s.f.create("canvas","",t.$container),t.setCanvas(),n.next=7,t.rendererService.init(t.canvas,t.configService.getSceneConfig(t.id),e.gl);case 7:t.initContainer(),ar()(t.$container,t.handleWindowResized),s.c.matchMedia&&(null===(o=s.c.matchMedia("screen and (-webkit-min-device-pixel-ratio: 1.5)"))||void 0===o||o.addListener(t.handleWindowResized)),n.next=13;break;case 12:console.error("容器 id 不存在");case 13:t.pickingService.init(t.id);case 14:case"end":return n.stop()}}),n)})))),this.initPromise=this.hooks.init.promise(),this.render()}},{key:"initMiniScene",value:function(e){var t=this;this.configService.setSceneConfig(this.id,e),this.shaderModuleService.registerBuiltinModules(),this.iconService.init(),this.iconService.on("imageUpdate",(function(){return t.render()})),this.fontService.init(),this.hooks.init.tapPromise("initMap",lr(ur().mark((function e(){return ur().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){t.map.onCameraChanged((function(n){t.cameraService.init(),t.cameraService.update(n),"GAODE2.x"!==t.map.version&&e()})),t.map.initMiniMap()}));case 2:t.map.onCameraChanged(t.handleMapCameraChanged),t.interactionService.init(),t.interactionService.on(Ue.a.Drag,t.addSceneEvent.bind(t));case 5:case"end":return e.stop()}}),e)})))),this.hooks.init.tapPromise("initRenderer",lr(ur().mark((function n(){var r;return ur().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.canvas,t.$container=r||null,!t.$container){n.next=7;break}return n.next=5,t.rendererService.init(e.canvas,t.configService.getSceneConfig(t.id),void 0);case 5:n.next=8;break;case 7:console.error("容器 id 不存在");case 8:t.pickingService.init(t.id);case 9:case"end":return n.stop()}}),n)})))),this.initPromise=this.hooks.init.promise(),this.render()}},{key:"addLayer",value:function(e){this.layerService.sceneService=this,this.layerService.add(e)}},{key:"addMask",value:function(e){this.layerService.sceneService=this,this.layerService.addMask(e)}},{key:"render",value:(o=lr(ur().mark((function e(){return ur().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.rendering&&!this.destroyed){e.next=2;break}return e.abrupt("return");case 2:if(this.rendering=!0,this.inited){e.next=23;break}return e.next=6,this.initPromise;case 6:if(this.destroyed&&this.destroy(),!this.loadFont||!document.fonts){e.next=18;break}return e.prev=8,e.next=11,document.fonts.load("24px ".concat(this.fontFamily),"L7text");case 11:e.next=18;break;case 13:e.prev=13,e.t0=e.catch(8),console.warn("当前环境不支持 document.fonts !"),console.warn("当前环境不支持 iconfont !"),console.warn(e.t0);case 18:this.layerService.initLayers(),this.controlService.addControls(),this.loaded=!0,this.emit("loaded"),this.inited=!0;case 23:this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this.rendering=!1;case 26:case"end":return e.stop()}}),e,this,[[8,13]])}))),function(){return o.apply(this,arguments)})},{key:"addFontFace",value:function(e,t){this.fontFamily=e;var n=document.createElement("style");n.type="text/css",n.innerText="\n @font-face{\n font-family: '".concat(e,"';\n src: url('").concat(t,"') format('woff2'),\n url('").concat(t,"') format('woff'),\n url('").concat(t,"') format('truetype');\n }"),document.getElementsByTagName("head")[0].appendChild(n),this.loadFont=!0}},{key:"getSceneContainer",value:function(){return this.$container}},{key:"exportPng",value:function(e){var t,n=null===(t=this.$container)||void 0===t?void 0:t.getElementsByTagName("canvas")[0];return this.render(),"jpg"===e?null==n?void 0:n.toDataURL("image/jpeg"):null==n?void 0:n.toDataURL("image/png")}},{key:"getSceneConfig",value:function(){return this.configService.getSceneConfig(this.id)}},{key:"getPointSizeRange",value:function(){return this.rendererService.getPointSizeRange()}},{key:"addMarkerContainer",value:function(){var e=this.$container.parentElement;null!==e&&(this.markerContainer=s.f.create("div","l7-marker-container",e))}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"destroy",value:function(){var e,t,n,r=this;this.inited?(this.emit("destroy"),this.pickingService.destroy(),this.layerService.destroy(),setTimeout((function(){var e;null===(e=r.$container)||void 0===e||e.removeChild(r.canvas),r.canvas=null,r.rendererService.destroy()})),this.map.destroy(),this.interactionService.destroy(),this.controlService.destroy(),this.markerService.destroy(),this.fontService.destroy(),this.iconService.destroy(),null===(e=this.$container)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(this.$container),this.removeAllListeners(),this.inited=!1,Object(ir.unbind)(this.$container,this.handleWindowResized),s.c.matchMedia&&(null===(n=s.c.matchMedia("screen and (min-resolution: 2dppx)"))||void 0===n||n.removeListener(this.handleWindowResized))):this.destroyed=!0}},{key:"initContainer",value:function(){var e,t,n=s.f.DPR,r=(null===(e=this.$container)||void 0===e?void 0:e.clientWidth)||400,o=(null===(t=this.$container)||void 0===t?void 0:t.clientHeight)||300,i=this.canvas;i&&(i.width=r*n,i.height=o*n),this.rendererService.viewport({x:0,y:0,width:n*r,height:n*o})}},{key:"setCanvas",value:function(){var e,t,n=s.f.DPR,r=(null===(e=this.$container)||void 0===e?void 0:e.clientWidth)||400,o=(null===(t=this.$container)||void 0===t?void 0:t.clientHeight)||300,i=this.canvas;i.width=r*n,i.height=o*n,i.style.width="100%",i.style.height="100%"}},{key:"addSceneEvent",value:function(e){this.emit(e.type,e)}}])&&pr(t.prototype,n),r&&pr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.EventEmitter),Un=br(Bn.prototype,"id",[En],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vn=br(Bn.prototype,"iconService",[Sn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Hn=br(Bn.prototype,"fontService",[Cn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gn=br(Bn.prototype,"controlService",[jn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wn=br(Bn.prototype,"configService",[kn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yn=br(Bn.prototype,"map",[Pn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Kn=br(Bn.prototype,"coordinateSystemService",[Tn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xn=br(Bn.prototype,"rendererService",[Mn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qn=br(Bn.prototype,"layerService",[An],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zn=br(Bn.prototype,"cameraService",[Ln],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Jn=br(Bn.prototype,"interactionService",[Rn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qn=br(Bn.prototype,"pickingService",[Nn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$n=br(Bn.prototype,"shaderModuleService",[In],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),er=br(Bn.prototype,"markerService",[Dn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tr=br(Bn.prototype,"popupService",[Fn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zn=Bn))||zn),wr=n("jLkM"),_r=n.n(wr);var xr,Er=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g;function Sr(e){var t={};return{content:e=e.replace(Er,(function(e,n,r){var o=r.split(":"),i=o[0].trim(),a="";switch(o.length>1&&(a=o[1].trim()),n){case"bool":a="true"===a;break;case"float":case"int":a=Number(a);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":a=a?a.replace("[","").replace("]","").split(",").reduce((function(e,t){return e.push(Number(t.trim())),e}),[]):new Array(function(e){var t=0;switch(e){case"vec2":case"ivec2":t=2;break;case"vec3":case"ivec3":t=3;break;case"vec4":case"ivec4":case"mat2":t=4;break;case"mat3":t=9;break;case"mat4":t=16}return t}(n)).fill(0)}return t[i]=a,"uniform ".concat(n," ").concat(i,";\n")})),uniforms:t}}function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){Pr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tr,Mr="#define PI 3.14159265359",Ar=/precision\s+(high|low|medium)p\s+float/,Lr=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,Rr=Object(i.injectable)()(xr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Pr(this,"moduleCache",{}),Pr(this,"rawContentCache",{})}var t,n,r;return t=e,(n=[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:Mr,fs:Mr}),this.registerModule("decode",{vs:"#define SHIFT_RIGHT17 1.0 / 131072.0\n#define SHIFT_RIGHT18 1.0 / 262144.0\n#define SHIFT_RIGHT19 1.0 / 524288.0\n#define SHIFT_RIGHT20 1.0 / 1048576.0\n#define SHIFT_RIGHT21 1.0 / 2097152.0\n#define SHIFT_RIGHT22 1.0 / 4194304.0\n#define SHIFT_RIGHT23 1.0 / 8388608.0\n#define SHIFT_RIGHT24 1.0 / 16777216.0\n\n#define SHIFT_LEFT17 131072.0\n#define SHIFT_LEFT18 262144.0\n#define SHIFT_LEFT19 524288.0\n#define SHIFT_LEFT20 1048576.0\n#define SHIFT_LEFT21 2097152.0\n#define SHIFT_LEFT22 4194304.0\n#define SHIFT_LEFT23 8388608.0\n#define SHIFT_LEFT24 16777216.0\n\nvec2 unpack_float(float packedValue) {\n int packedIntValue = int(packedValue);\n int v0 = packedIntValue / 256;\n return vec2(v0, packedIntValue - v0 * 256);\n}\n\nvec4 decode_color(vec2 encodedColor) {\n return vec4(\n unpack_float(encodedColor[0]) / 255.0,\n unpack_float(encodedColor[1]) / 255.0\n );\n}\n",fs:""}),this.registerModule("projection",{vs:"#define TILE_SIZE 512.0\n#define PI 3.1415926536\n#define WORLD_SCALE TILE_SIZE / (PI * 2.0)\n\n#define COORDINATE_SYSTEM_LNGLAT 1.0 // mapbox\n#define COORDINATE_SYSTEM_LNGLAT_OFFSET 2.0 // mapbox offset\n#define COORDINATE_SYSTEM_VECTOR_TILE 3.0\n#define COORDINATE_SYSTEM_IDENTITY 4.0\n#define COORDINATE_SYSTEM_P20 5.0 // amap\n#define COORDINATE_SYSTEM_P20_OFFSET 6.0 // amap offset\n#define COORDINATE_SYSTEM_METER_OFFSET 7.0\n\n#define COORDINATE_SYSTEM_P20_2 8.0 // amap2.0\n\nuniform mat4 u_ViewMatrix;\nuniform mat4 u_ProjectionMatrix;\nuniform mat4 u_ViewProjectionMatrix;\nuniform float u_Zoom : 1;\nuniform float u_ZoomScale : 1;\n\nuniform float u_CoordinateSystem;\nuniform vec2 u_ViewportCenter;\nuniform vec4 u_ViewportCenterProjection;\nuniform vec3 u_PixelsPerDegree;\nuniform vec3 u_PixelsPerDegree2;\nuniform vec3 u_PixelsPerMeter;\n\nuniform vec2 u_ViewportSize;\nuniform float u_DevicePixelRatio;\nuniform float u_FocalDistance;\nuniform vec3 u_CameraPosition;\n\n// uniform mat4 u_Mvp;\n\n// web mercator coords -> world coords\nvec2 project_mercator(vec2 lnglat) {\n float x = lnglat.x;\n return vec2(\n radians(x) + PI,\n PI - log(tan(PI * 0.25 + radians(lnglat.y) * 0.5))\n );\n}\n\nfloat project_scale(float meters) {\n return meters * u_PixelsPerMeter.z;\n}\n\n\n// offset coords -> world coords\nvec4 project_offset(vec4 offset) {\n float dy = offset.y;\n dy = clamp(dy, -1., 1.);\n vec3 pixels_per_unit = u_PixelsPerDegree + u_PixelsPerDegree2 * dy;\n return vec4(offset.xyz * pixels_per_unit, offset.w);\n}\n\nvec3 project_normal(vec3 normal) {\n vec4 normal_modelspace = u_ModelMatrix * vec4(normal, 0.0);\n return normalize(normal_modelspace.xyz * u_PixelsPerMeter);\n}\n\nvec3 project_offset_normal(vec3 vector) {\n if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01\n || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // normals generated by the polygon tesselator are in lnglat offsets instead of meters\n return normalize(vector * u_PixelsPerDegree);\n }\n return project_normal(vector);\n}\n// || u_CoordinateSystem < COORDINATE_SYSTEM_P20_OFFSET + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_P20_OFFSET - 0.01\n// reverse Y\nvec3 reverse_offset_normal(vec3 vector) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 ||u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET ) {\n return vector * vec3(1.0, -1.0, 1.0);\n }\n\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.0\n return vector;\n }\n return vector;\n}\n\nvec4 project_mvt_offset_position(vec4 position) {\n float a = COORDINATE_SYSTEM_LNGLAT_OFFSET;\n float b = COORDINATE_SYSTEM_P20_OFFSET;\n float c = COORDINATE_SYSTEM_LNGLAT;\n if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n return project_offset(vec4(0.0, 0.0, position.z, position.w));\n }\n if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) {\n return vec4(\n project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale,\n project_scale(position.z),\n position.w\n );\n }\n return position;\n}\n\nvec4 project_position(vec4 position) {\n float a = COORDINATE_SYSTEM_LNGLAT_OFFSET;\n float b = COORDINATE_SYSTEM_P20_OFFSET;\n float c = COORDINATE_SYSTEM_LNGLAT;\n if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET\n || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n float X = position.x - u_ViewportCenter.x;\n float Y = position.y - u_ViewportCenter.y;\n return project_offset(vec4(X, Y, position.z, position.w));\n }\n if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) {\n return vec4(\n project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale,\n project_scale(position.z),\n position.w\n );\n }\n\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) {\n return vec4(\n (project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale - vec2(215440491., 106744817.)) * vec2(1., -1.),\n project_scale(position.z),\n position.w\n );\n }\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // return vec4(\n // (position.xy * WORLD_SCALE * u_ZoomScale) * vec2(1., -1.), \n // project_scale(position.z), \n // position.w);\n\n return vec4(\n position.xy, \n project_scale(position.z), \n position.w);\n }\n return position;\n\n // TODO: 瓦片坐标系 & 常规世界坐标系\n}\nvec2 project_pixel_size_to_clipspace(vec2 pixels) {\n vec2 offset = pixels / u_ViewportSize * u_DevicePixelRatio * 2.0;\n return offset * u_FocalDistance;\n}\n\nfloat project_pixel_allmap(float pixel) {\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return pixel * pow(2.0, u_Zoom);\n }\n return pixel;\n}\n\n// 适配纹理贴图的等像素大小\nfloat project_pixel_texture(float pixel) {\n // mapbox zoom > 12\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n return pixel * pow(0.5, u_Zoom);\n }\n\n // amap2 zoom > 12\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom));\n }\n\n // amap zoom > 12\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n return pixel * pow(0.5, u_Zoom);\n }\n \n // amap zoom < 12\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) {\n return pixel * pow(2.0, (20.0 - u_Zoom));\n }\n return pixel * 2.0;\n}\n\n// 在不论什么底图下需要统一处理的时候使用\nfloat project_float_pixel(float pixel) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // mapbox P20 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减1\n return pixel * pow(2.0, (19.0 - u_Zoom));\n }\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // amap P20 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减1\n return pixel * pow(2.0, (19.0 - u_Zoom));\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // amap2 P20_2 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减3\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom));\n }\n return pixel;\n}\n\nfloat project_pixel(float pixel) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // amap P20 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减1\n return pixel * pow(2.0, (19.0 - u_Zoom));\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // amap2 P20_2 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减3\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom));\n }\n return pixel;\n}\nvec2 project_pixel(vec2 pixel) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // P20 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减1\n return pixel * pow(2.0, (19.0 - u_Zoom));\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // P20_2 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减3\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom));\n }\n return pixel * -1.;\n}\nvec3 project_pixel(vec3 pixel) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // P20 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减1\n return pixel * pow(2.0, (19.0 - u_Zoom));\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // P20_2 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减3\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom));\n }\n return pixel * -1.;\n}\n\nvec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET ||\n u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // Needs to be divided with project_uCommonUnitsPerMeter\n position.w *= u_PixelsPerMeter.z;\n }\n\n return viewProjectionMatrix * position + center;\n}\n\n// Projects from common space coordinates to clip space\nvec4 project_common_position_to_clipspace(vec4 position) {\n return project_common_position_to_clipspace(\n position,\n u_ViewProjectionMatrix,\n u_ViewportCenterProjection\n );\n}\n\nvec4 unproject_clipspace_to_position(vec4 clipspacePos, mat4 u_InverseViewProjectionMatrix) {\n vec4 pos = u_InverseViewProjectionMatrix * (clipspacePos - u_ViewportCenterProjection);\n\n if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET ||\n u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // Needs to be divided with project_uCommonUnitsPerMeter\n pos.w = pos.w / u_PixelsPerMeter.z;\n }\n return pos;\n}\n\n\nbool isEqual( float a, float b) {\n return a< b + 0.001 && a > b - 0.001;\n}",fs:""}),this.registerModule("project",{vs:"\n#define E 2.718281828459045\nvec2 ProjectFlat(vec2 lnglat){\n float maxs=85.0511287798;\n float lat=max(min(maxs,lnglat.y),-maxs);\n float scale= 268435456.;\n float d=PI/180.;\n float x=lnglat.x*d;\n float y=lat*d;\n y=log(tan((PI/4.)+(y/2.)));\n\n float a=.5/PI,\n b=.5,\n c=-.5/PI;\n d=.5;\n x=scale*(a*x+b);\n y=scale*(c*y+d);\n return vec2(x,y);\n}\n\nvec2 unProjectFlat(vec2 px){\n float a=.5/PI;\n float b=.5;\n float c=-.5/PI;\n float d=.5;\n float scale = 268435456.;\n float x=(px.x/scale-b)/a;\n float y=(px.y/scale-d)/c;\n y=(atan(pow(E,y))-(PI/4.))*2.;\n d=PI/180.;\n float lat=y/d;\n float lng=x/d;\n return vec2(lng,lat);\n}\n\nfloat pixelDistance(vec2 from, vec2 to) {\n vec2 a1 = ProjectFlat(from);\n vec2 b1 = ProjectFlat(to);\n return distance(a1, b1);\n}\n\n// gaode2.0\nvec2 customProject(vec2 lnglat) { // 经纬度 => 平面坐标\n float t = lnglat.x;\n float e = lnglat.y;\n float Sm = 180.0 / PI;\n float Tm = 6378137.0;\n float Rm = PI / 180.0;\n float r = 85.0511287798;\n e = max(min(r, e), -r);\n t *= Rm;\n e *= Rm;\n e = log(tan(PI / 4.0 + e / 2.0));\n return vec2(t * Tm, e * Tm);\n}\n\nvec2 unProjCustomCoord(vec2 point) { // 平面坐标 => 经纬度\n float Sm = 57.29577951308232; //180 / Math.PI\n float Tm = 6378137.0;\n float t = point.x;\n float e = point.y;\n return vec2(t / Tm * Sm, (2.0 * atan(exp(e / Tm)) - PI / 2.0) * Sm);\n}\n\n\nfloat customPixelDistance(vec2 from, vec2 to) {\n vec2 a1 = ProjectFlat(from);\n vec2 b1 = ProjectFlat(to);\n return distance(a1, b1);\n}",fs:""}),this.registerModule("sdf_2d",{vs:"",fs:"/**\n * 2D signed distance field functions\n * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm\n */\n\nfloat ndot(vec2 a, vec2 b ) { return a.x*b.x - a.y*b.y; }\n\nfloat sdCircle(vec2 p, float r) {\n return length(p) - r;\n}\n\nfloat sdEquilateralTriangle(vec2 p) {\n float k = sqrt(3.0);\n p.x = abs(p.x) - 1.0;\n p.y = p.y + 1.0/k;\n if( p.x + k*p.y > 0.0 ) p = vec2(p.x-k*p.y,-k*p.x-p.y)/2.0;\n p.x -= clamp( p.x, -2.0, 0.0 );\n return -length(p)*sign(p.y);\n}\n\nfloat sdBox(vec2 p, vec2 b) {\n vec2 d = abs(p)-b;\n return length(max(d,vec2(0))) + min(max(d.x,d.y),0.0);\n}\n\nfloat sdPentagon(vec2 p, float r) {\n vec3 k = vec3(0.809016994,0.587785252,0.726542528);\n p.x = abs(p.x);\n p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y);\n p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y);\n p -= vec2(clamp(p.x,-r*k.z,r*k.z),r);\n return length(p)*sign(p.y);\n}\n\nfloat sdHexagon(vec2 p, float r) {\n vec3 k = vec3(-0.866025404,0.5,0.577350269);\n p = abs(p);\n p -= 2.0*min(dot(k.xy,p),0.0)*k.xy;\n p -= vec2(clamp(p.x, -k.z*r, k.z*r), r);\n return length(p)*sign(p.y);\n}\n\nfloat sdOctogon(vec2 p, float r) {\n vec3 k = vec3(-0.9238795325, 0.3826834323, 0.4142135623 );\n p = abs(p);\n p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y);\n p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y);\n p -= vec2(clamp(p.x, -k.z*r, k.z*r), r);\n return length(p)*sign(p.y);\n}\n\nfloat sdHexagram(vec2 p, float r) {\n vec4 k=vec4(-0.5,0.8660254038,0.5773502692,1.7320508076);\n p = abs(p);\n p -= 2.0*min(dot(k.xy,p),0.0)*k.xy;\n p -= 2.0*min(dot(k.yx,p),0.0)*k.yx;\n p -= vec2(clamp(p.x,r*k.z,r*k.w),r);\n return length(p)*sign(p.y);\n}\n\nfloat sdRhombus(vec2 p, vec2 b) {\n vec2 q = abs(p);\n float h = clamp((-2.0*ndot(q,b)+ndot(b,b))/dot(b,b),-1.0,1.0);\n float d = length( q - 0.5*b*vec2(1.0-h,1.0+h) );\n return d * sign( q.x*b.y + q.y*b.x - b.x*b.y );\n}\n\nfloat sdVesica(vec2 p, float r, float d) {\n p = abs(p);\n float b = sqrt(r*r-d*d); // can delay this sqrt\n return ((p.y-b)*d>p.x*b)\n ? length(p-vec2(0.0,b))\n : length(p-vec2(-d,0.0))-r;\n}\n"}),this.registerModule("lighting",{vs:"// Blinn-Phong model\n// apply lighting in vertex shader instead of fragment shader\n// @see https://learnopengl.com/Advanced-Lighting/Advanced-Lighting\nuniform float u_Ambient : 1.0;\nuniform float u_Diffuse : 1.0;\nuniform float u_Specular : 1.0;\nuniform int u_NumOfDirectionalLights : 1;\nuniform int u_NumOfSpotLights : 0;\n\n#define SHININESS 32.0\n#define MAX_NUM_OF_DIRECTIONAL_LIGHTS 3\n#define MAX_NUM_OF_SPOT_LIGHTS 3\n\nstruct DirectionalLight {\n vec3 direction;\n vec3 ambient;\n vec3 diffuse;\n vec3 specular;\n};\n\nstruct SpotLight {\n vec3 position;\n vec3 direction;\n vec3 ambient;\n vec3 diffuse;\n vec3 specular;\n float constant;\n float linear;\n float quadratic;\n float angle;\n float blur;\n float exponent;\n};\n\nuniform DirectionalLight u_DirectionalLights[MAX_NUM_OF_DIRECTIONAL_LIGHTS];\nuniform SpotLight u_SpotLights[MAX_NUM_OF_SPOT_LIGHTS];\n\nvec3 calc_directional_light(DirectionalLight light, vec3 normal, vec3 viewDir) {\n vec3 lightDir = normalize(light.direction);\n // diffuse shading\n float diff = max(dot(normal, lightDir), 0.0);\n // Blinn-Phong specular shading\n vec3 halfwayDir = normalize(lightDir + viewDir);\n float spec = pow(max(dot(normal, halfwayDir), 0.0), SHININESS);\n\n vec3 ambient = light.ambient * u_Ambient;\n vec3 diffuse = light.diffuse * diff * u_Diffuse;\n vec3 specular = light.specular * spec * u_Specular;\n\n return ambient + diffuse + specular;\n}\n\n// vec3 calc_spot_light(SpotLight light, vec3 normal, vec3 fragPos, vec3 viewDir) {\n// vec3 lightDir = normalize(light.position - fragPos);\n// // diffuse shading\n// float diff = max(dot(normal, lightDir), 0.0);\n// // specular shading\n// vec3 reflectDir = reflect(-lightDir, normal);\n// float spec = pow(max(dot(viewDir, reflectDir), 0.0), SHININESS);\n// // attenuation\n// float distance = length(light.position - fragPos);\n// float attenuation = 1.0 / (light.constant + light.linear * distance +\n// light.quadratic * (distance * distance));\n\n// vec3 ambient = light.ambient * u_Ambient;\n// vec3 diffuse = light.diffuse * diff * u_Diffuse;\n// vec3 specular = light.specular * spec * u_Specular;\n\n// float spotEffect = dot(normalize(light.direction), -lightDir);\n// float spotCosCutoff = cos(light.angle / 180.0 * PI);\n// float spotCosOuterCutoff = cos((light.angle + light.blur) / 180.0 * PI);\n// float spotCosInnerCutoff = cos((light.angle - light.blur) / 180.0 * PI);\n// if (spotEffect > spotCosCutoff) {\n// spotEffect = pow(smoothstep(spotCosOuterCutoff, spotCosInnerCutoff, spotEffect), light.exponent);\n// } else {\n// spotEffect = 0.0;\n// }\n\n// return ambient + attenuation * (spotEffect * diffuse + specular);\n// }\n\nvec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) {\n vec3 weight = vec3(0.0);\n for (int i = 0; i < MAX_NUM_OF_DIRECTIONAL_LIGHTS; i++) {\n if (i >= u_NumOfDirectionalLights) {\n break;\n }\n weight += calc_directional_light(u_DirectionalLights[i], normal, viewDir);\n }\n // for (int i = 0; i < MAX_NUM_OF_SPOT_LIGHTS; i++) {\n // if (i >= u_NumOfSpotLights) {\n // break;\n // }\n // weight += calc_spot_light(u_SpotLights[i], normal, position, viewDir);\n // }\n return weight;\n}\n",fs:""}),this.registerModule("light",{vs:"#define ambientRatio 0.5\n#define diffuseRatio 0.3\n#define specularRatio 0.2\n\n\nfloat calc_lighting(vec4 pos) {\n\n vec3 worldPos = vec3(pos * u_ModelMatrix);\n\n vec3 worldNormal = a_Normal;\n // //cal light weight\n vec3 viewDir = normalize(u_CameraPosition - worldPos);\n\n vec3 lightDir = normalize(vec3(1, -10.5, 12));\n\n vec3 halfDir = normalize(viewDir+lightDir);\n // //lambert\n float lambert = dot(worldNormal, lightDir);\n //specular\n float specular = pow(max(0.0, dot(worldNormal, halfDir)), 32.0);\n //sum to light weight\n float lightWeight = ambientRatio + diffuseRatio * lambert + specularRatio * specular;\n\n return lightWeight;\n}\n",fs:""}),this.registerModule("picking",{vs:"attribute vec3 a_PickingColor;\nvarying vec4 v_PickingResult;\n\nuniform vec3 u_PickingColor : [0, 0, 0];\nuniform vec3 u_CurrentSelectedId : [0, 0, 0];\nuniform vec4 u_HighlightColor : [0, 0, 0, 0];\nuniform vec4 u_SelectColor : [0, 0, 0, 0];\nuniform float u_PickingStage : 0.0;\nuniform float u_PickingThreshold : 1.0;\nuniform float u_PickingBuffer: 0.0;\nuniform float u_shaderPick;\nuniform float u_EnableSelect: 0.0;\n\n#define PICKING_NONE 0.0\n#define PICKING_ENCODE 1.0\n#define PICKING_HIGHLIGHT 2.0\n#define COLOR_SCALE 1. / 255.\n\n#define NORMAL 0.0\n#define HIGHLIGHT 1.0\n#define SELECT 2.0\n\nbool isVertexPicked(vec3 vertexColor) {\n return\n abs(vertexColor.r - u_PickingColor.r) < u_PickingThreshold &&\n abs(vertexColor.g - u_PickingColor.g) < u_PickingThreshold &&\n abs(vertexColor.b - u_PickingColor.b) < u_PickingThreshold;\n}\n\n// 判断当前点是否已经被 select 选中\nbool isVertexSelected(vec3 vertexColor) {\n return\n abs(vertexColor.r - u_CurrentSelectedId.r) < u_PickingThreshold &&\n abs(vertexColor.g - u_CurrentSelectedId.g) < u_PickingThreshold &&\n abs(vertexColor.b - u_CurrentSelectedId.b) < u_PickingThreshold;\n}\n\nvoid setPickingColor(vec3 pickingColor) {\n if(u_shaderPick < 0.5) {\n return;\n }\n // compares only in highlight stage\n\n v_PickingResult.a = float((u_PickingStage == PICKING_HIGHLIGHT) && isVertexPicked(pickingColor));\n\n // if (u_EnableSelect == 1.0 && u_PickingStage == PICKING_HIGHLIGHT && isVertexSelected(pickingColor)) {\n // // 选中态\n // v_PickingResult.a = SELECT;\n // } else if (u_PickingStage == PICKING_HIGHLIGHT && isVertexPicked(pickingColor)) {\n // // 高亮态\n // v_PickingResult.a = HIGHLIGHT;\n // } else {\n // v_PickingResult.a = NORMAL;\n // }\n\n // Stores the picking color so that the fragment shader can render it during picking\n v_PickingResult.rgb = pickingColor * COLOR_SCALE;\n}\n\nfloat setPickingSize(float x) {\n return u_PickingStage == PICKING_ENCODE ? x + u_PickingBuffer : x;\n}\n\nfloat setPickingOrder(float z) {\n bool selected = bool(v_PickingResult.a);\n return selected ? z + 1. : 0.;\n}\n",fs:"varying vec4 v_PickingResult;\nuniform vec4 u_HighlightColor : [0, 0, 0, 0];\nuniform vec4 u_SelectColor : [0, 0, 0, 0];\nuniform float u_PickingStage : 0.0;\nuniform float u_shaderPick;\n\nuniform float u_activeMix: 0;\n\n#define PICKING_NONE 0.0\n#define PICKING_ENCODE 1.0\n#define PICKING_HIGHLIGHT 2.0\n#define COLOR_SCALE 1. / 255.\n\n#define HIGHLIGHT 1.0\n#define SELECT 2.0\n\n/*\n * Returns highlight color if this item is selected.\n */\nvec4 filterHighlightColor(vec4 color, float weight) {\n // float selected = v_PickingResult.a;\n bool selected = bool(v_PickingResult.a);\n\n // if (selected == SELECT) {\n if (selected) {\n // // 点击选中状态\n // vec4 selectColor = u_SelectColor * COLOR_SCALE;\n // return selectColor;\n // } else if (selected == HIGHLIGHT) {\n // // hover 高亮状态\n vec4 highLightColor = u_HighlightColor * COLOR_SCALE;\n\n float highLightAlpha = highLightColor.a;\n float highLightRatio = highLightAlpha / (highLightAlpha + color.a * (1.0 - highLightAlpha));\n\n vec3 resultRGB = mix(color.rgb, highLightColor.rgb, highLightRatio);\n return vec4(mix(resultRGB * weight, color.rgb, u_activeMix), color.a);\n } else {\n return color;\n }\n}\n\n/*\n * Returns picking color if picking enabled else unmodified argument.\n */\nvec4 filterPickingColor(vec4 color) {\n vec3 pickingColor = v_PickingResult.rgb;\n if (u_PickingStage == PICKING_ENCODE && length(pickingColor) < 0.001) {\n discard;\n }\n return u_PickingStage == PICKING_ENCODE ? vec4(pickingColor, step(0.001,color.a)): color;\n}\n\n/*\n * Returns picking color if picking is enabled if not\n * highlight color if this item is selected, otherwise unmodified argument.\n */\nvec4 filterColor(vec4 color) {\n // 过滤多余的 shader 计算\n // return color;\n if(u_shaderPick < 0.5) {\n return color; // 暂时去除 直接取消计算在选中时拖拽地图会有问题\n } else {\n return filterPickingColor(filterHighlightColor(color, 1.0));\n }\n \n}\n\nvec4 filterColorAlpha(vec4 color, float alpha) {\n // 过滤多余的 shader 计算\n // return color;\n if(u_shaderPick < 0.5) {\n return color; // 暂时去除 直接取消计算在选中时拖拽地图会有问题\n } else {\n return filterPickingColor(filterHighlightColor(color, alpha));\n }\n}\n\n"}),this.registerModule("styleMapping",{vs:"attribute float a_vertexId;\n\nuniform mat4 u_cellTypeLayout; // 描述数据纹理 cell 结构的矩阵\nuniform sampler2D u_dataTexture; // 数据纹理\n\nbool hasOpacity() { // 判断 cell 中是否存在 opacity 的数据\n return u_cellTypeLayout[1][0] > 0.0 && u_cellTypeLayout[3][3] > 0.0;\n}\n\nbool hasStrokeOpacity() { // 判断 cell 中是否存在 strokeOpacity 的数据\n return u_cellTypeLayout[1][1] > 0.0 && u_cellTypeLayout[3][3] > 0.0;\n}\n\nbool hasStrokeWidth() { // 判断 cell 中是否存在 strokeWidth 的数据\n return u_cellTypeLayout[1][2] > 0.0 && u_cellTypeLayout[3][3] > 0.0;\n}\n\nbool hasStroke() { // 判断 cell 中是否存在 stroke 的数据\n return u_cellTypeLayout[1][3] > 0.0 && u_cellTypeLayout[3][3] > 0.0;\n}\n\nbool hasOffsets() { // 判断 cell 中是否存在 offsets 的数据\n return u_cellTypeLayout[2][0] > 0.0 && u_cellTypeLayout[3][3] > 0.0;\n}\n\nbool hasThetaOffset() { // 判断 cell 中是否存在 thetaOffset 的数据\n return u_cellTypeLayout[2][1] > 0.0 && u_cellTypeLayout[3][3] > 0.0;\n}\n\n// 根据坐标位置先是计算 uv ,然后根据 uv 从数据纹理中取值\nfloat pos2value(vec2 pos, float columnWidth, float rowHeight) {\n float u = (pos.r - 1.0) * columnWidth + columnWidth/2.0;\n float v = 1.0 - ((pos.g - 1.0) * rowHeight + rowHeight/2.0);\n return texture2D(u_dataTexture, vec2(u, v)).r;\n}\n\n/*\n currentRow 当前行\n currentColumn 当前列\n columnCount 有多少列\n nextStep 需要计算当前 cell 后的第几个 cell (当前 cell 则 nextStep = 0)\n*/\nvec2 nextPos(float currentRow, float currentColumn, float columnCount, float nextStep) {\n float nextColumn = currentColumn;\n float nextRow = currentRow;\n if(currentColumn + nextStep <= columnCount){\n nextColumn = currentColumn + nextStep;\n } else {\n nextColumn = mod(currentColumn + nextStep, columnCount); // 不会出现跨两行\n nextRow = currentRow + 1.0;\n }\n return vec2(nextColumn, nextRow);\n}\n\n// 计算当前单个 cell 的大小\nfloat calCellCount() { \n // u_cellTypeLayout\n // cal_height, WIDTH, 0.0, 0.0, // rowCount columnCount - 几行几列\n // 1.0, 1.0, 1.0, 0.0, // opacity strokeOpacity strokeWidth stroke - 1.0 表示有数据映射、0.0 表示没有\n // 1.0, 1.0, 0.0, 0.0, // offsets thetaOffset\n // 0.0, 0.0, 0.0, 0.0\n \n return u_cellTypeLayout[1][0] + // opacity\n u_cellTypeLayout[1][1] + // strokeOpacity\n u_cellTypeLayout[1][2] + // strokeWidth\n u_cellTypeLayout[1][3] * 4.0 + // stroke\n u_cellTypeLayout[2][0] * 2.0 + // offsets\n u_cellTypeLayout[2][1]; // thetaOffset\n}",fs:""}),this.registerModule("styleMappingCalThetaOffset",{vs:"\n// 计算 thetaOffset 和标示在 cell 中取值位置的偏移量 textureOffset\nvec2 calThetaOffsetAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) {\n if(!hasThetaOffset()) { // 数据纹理中不存在 thetaOffset 的时候取默认值(用户在 style 中传入的是常量)\n return vec2(u_thetaOffset, textureOffset);\n } else {\n vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n float textureThetaOffset = pos2value(valuePos, columnWidth, rowHeight);\n return vec2(textureThetaOffset, textureOffset + 1.0);\n }\n}\n",fs:""}),this.registerModule("styleMappingCalOpacity",{vs:"\n// 计算 opacity 和标示在 cell 中取值位置的偏移量 textureOffset\nvec2 calOpacityAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) {\n if(!hasOpacity()) { // 数据纹理中不存在 opacity 的时候取默认值(用户在 style 中传入的是常量)\n return vec2(u_opacity, textureOffset);\n } else {\n vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n float textureOpacity = pos2value(valuePos, columnWidth, rowHeight);\n return vec2(textureOpacity, textureOffset + 1.0);\n }\n}\n",fs:""}),this.registerModule("styleMappingCalStrokeOpacity",{vs:"\n// 计算 strokeOpaicty 和标示在 cell 中取值位置的偏移量 textureOffset\nvec2 calStrokeOpacityAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) {\n if(!hasStrokeOpacity()) {\n return vec2(u_stroke_opacity, textureOffset);\n } else {\n vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n float textureStrokeOpacity = pos2value(valuePos, columnWidth, rowHeight);\n return vec2(textureStrokeOpacity, textureOffset + 1.0);\n }\n}\n",fs:""}),this.registerModule("styleMappingCalStrokeWidth",{vs:"\n// 计算 strokeWidth 和标示在 cell 中取值位置的偏移量 textureOffset\nvec2 calStrokeWidthAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) {\n if(!hasStrokeWidth()) {\n return vec2(u_stroke_width, textureOffset);\n } else {\n vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n float textureStrokeWidth = pos2value(valuePos, columnWidth, rowHeight);\n return vec2(textureStrokeWidth, textureOffset + 1.0);\n }\n}\n",fs:""})}},{key:"registerModule",value:function(e,t){if(!this.rawContentCache[e]){var n=t.vs,r=t.fs,o=t.uniforms,i=Sr(n),a=i.content,c=i.uniforms,u=Sr(r),s=u.content,l=u.uniforms;this.rawContentCache[e]={fs:s,uniforms:jr(jr(jr({},c),l),o),vs:a}}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(e){var t=this;if(this.moduleCache[e])return this.moduleCache[e];var n=this.rawContentCache[e].vs,r=this.rawContentCache[e].fs,o=this.processModule(n,[],"vs"),i=o.content,a=o.includeList,c=this.processModule(r,[],"fs"),u=c.content,s=c.includeList,l=u,f=_r()(a.concat(s).concat(e)).reduce((function(e,n){return jr(jr({},e),t.rawContentCache[n].uniforms)}),{});return Ar.test(u)||(l="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n #else\n precision mediump float;\n#endif\n"+u),this.moduleCache[e]={fs:l.trim(),uniforms:f,vs:i.trim()},this.moduleCache[e]}},{key:"processModule",value:function(e,t,n){var r=this;return{content:e.replace(Lr,(function(e,o){var i=o.split(" ")[0].replace(/"/g,"");if(t.indexOf(i)>-1)return"";var a=r.rawContentCache[i][n];return t.push(i),r.processModule(a,t,n).content})),includeList:t}}}])&&kr(t.prototype,n),r&&kr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||xr,Nr=n("JyD/");function Ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Dr,Fr=Object(i.injectable)()(Tr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return Nr.a.Normal}},{key:"init",value:function(e,t){this.config=t,this.rendererService=e.getContainer().get(u.a.IRendererService),this.cameraService=e.getContainer().get(u.a.ICameraService),this.mapService=e.getContainer().get(u.a.IMapService),this.interactionService=e.getContainer().get(u.a.IInteractionService),this.layerService=e.getContainer().get(u.a.ILayerService),this.shaderModuleService=e.getContainer().get(u.a.IShaderModuleService)}},{key:"render",value:function(e){}}])&&Ir(t.prototype,n),r&&Ir(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())||Tr;function zr(e){return(zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Br(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vr(){return(Vr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Hr(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Hr(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Kr(e)););return e}function Gr(e,t){return(Gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kr(e);if(t){var o=Kr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yr(this,n)}}function Yr(e,t){if(t&&("object"===zr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kr(e){return(Kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xr,qr,Zr,Jr,Qr,$r=Object(i.injectable)()(Dr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gr(e,t)}(i,e);var t,n,r,o=Wr(i);function i(){return Br(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(e,t){Vr(Kr(i.prototype),"init",this).call(this,e,t)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}])&&Ur(t.prototype,n),r&&Ur(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(Fr))||Dr;function eo(e){return(eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function to(){to=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==eo(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function no(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ro(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ro(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oo(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var co,uo=(Xr=Object(i.injectable)(),qr=Object(i.inject)(u.a.IPostProcessor),Xr((Qr=function(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}((Jr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ao(this,"passes",[]),function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,"postProcessor",Qr,this),ao(this,"width",0),ao(this,"height",0)}var t,n,r,o,i;return t=e,(n=[{key:"setLayer",value:function(e){this.layer=e}},{key:"setRenderFlag",value:function(e){this.renderFlag=e}},{key:"getRenderFlag",value:function(){return this.renderFlag}},{key:"getPostProcessor",value:function(){return this.postProcessor}},{key:"render",value:(o=to().mark((function e(){var t,n,r;return to().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=no(this.passes),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,r.render(this.layer);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:return e.next=19,this.postProcessor.render(this.layer);case 19:case"end":return e.stop()}}),e,this,[[1,11,14,17]])})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){oo(i,n,r,a,c,"next",e)}function c(e){oo(i,n,r,a,c,"throw",e)}a(void 0)}))},function(){return i.apply(this,arguments)})},{key:"resize",value:function(e,t){this.width===e&&this.height===t||(this.postProcessor.resize(e,t),this.width=e,this.height=t)}},{key:"add",value:function(e,t){e.getType()===Nr.a.PostProcessing?this.postProcessor.add(e,this.layer,t):(e.init(this.layer,t),this.passes.push(e))}},{key:"insert",value:function(e,t,n){e.init(this.layer,t),this.passes.splice(n,0,e)}},{key:"destroy",value:function(){this.passes.length=0}}])&&io(t.prototype,n),r&&io(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"postProcessor",[qr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zr=Jr))||Zr);function so(e){return(so="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?po(Object(n),!0).forEach((function(t){Eo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mo(){return(mo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=go(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function go(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=xo(e)););return e}function bo(e,t){return(bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xo(e);if(t){var o=xo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wo(this,n)}}function wo(e,t){if(t&&("object"===so(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _o(e)}function _o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xo(e){return(xo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Eo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var So,Co=Object(i.injectable)()(co=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bo(e,t)}(i,e);var t,n,r,o=Oo(i);function i(){var e;vo(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Eo(_o(e=o.call.apply(o,[this].concat(n))),"width",0),Eo(_o(e),"height",0),Eo(_o(e),"alreadyInRendering",!1),Eo(_o(e),"pickFromPickingFBO",(function(t){var n=t.x,r=t.y,o=t.lngLat,i=t.type;if(e.layer.isVisible()&&e.layer.needPick(i)){var a,c=e.rendererService,u=c.getViewportSize,l=c.readPixels,f=c.useFramebuffer,p=u(),d=p.width,h=p.height,v=e.layer.getLayerConfig(),y=v.enableHighlight,m=v.enableSelect,g=n*s.f.DPR,b=r*s.f.DPR;if(!(g>d||g<0||b>h||b<0))f(e.pickingFBO,(function(){var t;if(0!==(a=l({x:Math.round(g),y:Math.round(h-(r+1)*s.f.DPR),width:1,height:1,data:new Uint8Array(4),framebuffer:e.pickingFBO}))[0]||0!==a[1]||0!==a[2]){var c=Object(s.E)(a),u=e.layer.getSource().getFeatureById(c),f={x:n,y:r,type:i,lngLat:o,featureId:c,feature:u};u&&(e.layer.setCurrentPickId(c),e.triggerHoverOnLayer(f))}else{var p={x:n,y:r,lngLat:o,type:null===e.layer.getCurrentPickId()?"un"+i:"mouseout",featureId:null,feature:null};e.triggerHoverOnLayer(ho(ho({},p),{},{type:"unpick"})),e.triggerHoverOnLayer(p),e.layer.setCurrentPickId(null)}y&&e.highlightPickedFeature(a),m&&"click"===i&&(null===(t=a)||void 0===t?void 0:t.toString())!==[0,0,0,0].toString()&&e.selectFeature(a)}))}})),e}return t=i,(n=[{key:"getType",value:function(){return Nr.a.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(e,t){mo(xo(i.prototype),"init",this).call(this,e,t),this.layer=e;var n=this.rendererService,r=n.createTexture2D,o=n.createFramebuffer,a=(0,n.getViewportSize)(),c=a.width,u=a.height;this.pickingFBO=o({color:r({width:c,height:u,wrapS:vt.a.CLAMP_TO_EDGE,wrapT:vt.a.CLAMP_TO_EDGE})}),this.interactionService.on(Ue.a.Hover,this.pickFromPickingFBO),this.interactionService.on(Ue.a.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(Ue.a.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(e){var t=this;if(!this.alreadyInRendering){var n=this.rendererService,r=n.getViewportSize,o=n.useFramebuffer,i=n.clear,a=r(),c=a.width,u=a.height;this.alreadyInRendering=!0,this.width===c&&this.height===u||(this.pickingFBO.resize({width:c,height:u}),this.width=c,this.height=u),o(this.pickingFBO,(function(){i({framebuffer:t.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var n=t.layer.multiPassRenderer.getRenderFlag();t.layer.multiPassRenderer.setRenderFlag(!1),e.hooks.beforePickingEncode.call(),e.render(),e.hooks.afterPickingEncode.call(),t.layer.multiPassRenderer.setRenderFlag(n),t.alreadyInRendering=!1}))}}},{key:"triggerHoverOnLayer",value:function(e){this.layer.emit(e.type,e)}},{key:"highlightPickedFeature",value:function(e){var t=lo(e,3),n=t[0],r=t[1],o=t[2];this.layer.hooks.beforeHighlight.call([n,r,o]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(e){var t=lo(e,3),n=t[0],r=t[1],o=t[2];this.layer.hooks.beforeSelect.call([n,r,o]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(e){var t=e.featureId,n=Object(s.Q)(t);this.selectFeature(new Uint8Array(n))}},{key:"highlightFeatureHandle",value:function(e){var t=e.featureId,n=Object(s.Q)(t);this.highlightPickedFeature(new Uint8Array(n))}}])&&yo(t.prototype,n),r&&yo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(Fr))||co,jo=n("Y/ZZ");function ko(e){return(ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Po(Object(n),!0).forEach((function(t){Mo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ao(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ro(e,t){return(Ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function No(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Do(e);if(t){var o=Do(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Io(this,n)}}function Io(e,t){if(t&&("object"===ko(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Do(e){return(Do=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fo,zo=Object(i.injectable)()(So=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ro(e,t)}(i,e);var t,n,r,o=No(i);function i(){return Ao(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform float u_BloomFinal: 0.0;\nuniform sampler2D u_Texture;\nuniform sampler2D u_Texture2;\n\nuniform vec2 u_ViewportSize: [1.0, 1.0];\nuniform float u_radius: 5.0;\nuniform float u_intensity: 0.3;\nuniform float u_baseRadio: 0.5;\n\n// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl\nvec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) {\n vec4 color = vec4(0.0);\n vec2 off1 = vec2(1.3846153846) * direction;\n vec2 off2 = vec2(3.2307692308) * direction;\n color += texture2D(image, uv) * 0.2270270270;\n color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703;\n color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703;\n return color;\n}\n\nfloat luminance(vec4 color) {\n return 0.2125 * color.r + 0.7154 * color.g + 0.0721 * color.b;\n}\n\nvoid main() {\n // vec4 baseColor = texture2D(u_Texture, v_UV);\n\n float r = sqrt(u_radius);\n\n vec4 c1 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(u_radius, 0.0));\n // c1 *= luminance(c1);\n vec4 c2 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(0.0, u_radius));\n // c2 *= luminance(c2);\n vec4 c3 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(r, r));\n // c3 *= luminance(c3);\n vec4 c4 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(r, -r));\n // c4 *= luminance(c4);\n vec4 inbloomColor = (c1 + c2 + c3 + c4) * 0.25;\n\n // float lum = luminance(inbloomColor);\n // inbloomColor.rgb *= lum;\n\n if(u_BloomFinal > 0.0) {\n vec4 baseColor = texture2D(u_Texture2, v_UV);\n float baselum = luminance(baseColor);\n gl_FragColor = mix(inbloomColor, baseColor, u_baseRadio);\n if(baselum <= 0.2) {\n gl_FragColor = inbloomColor * u_intensity;\n }\n } else {\n gl_FragColor = inbloomColor;\n }\n}"});var e=this.shaderModuleService.getModule("blur-pass"),t=e.vs,n=e.fs,r=e.uniforms,o=this.rendererService.getViewportSize(),i=o.width,a=o.height;return{vs:t,fs:n,uniforms:To(To({},r),{},{u_ViewportSize:[i,a]})}}},{key:"convertOptionsToUniforms",value:function(e){var t={};return $t()(e.bloomRadius)||(t.u_radius=e.bloomRadius),$t()(e.bloomIntensity)||(t.u_intensity=e.bloomIntensity),$t()(e.bloomBaseRadio)||(t.u_baseRadio=e.bloomBaseRadio),t}}])&&Lo(t.prototype,n),r&&Lo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(jo.a))||So;function Bo(e){return(Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(n),!0).forEach((function(t){Ho(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Go(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yo(e,t){return(Yo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ko(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qo(e);if(t){var o=qo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xo(this,n)}}function Xo(e,t){if(t&&("object"===Bo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qo(e){return(qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zo,Jo=Object(i.injectable)()(Fo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yo(e,t)}(i,e);var t,n,r,o=Ko(i);function i(){return Go(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\n\nuniform vec2 u_ViewportSize: [1.0, 1.0];\nuniform vec2 u_BlurDir: [1.0, 0.0];\n\n// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl\nvec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) {\n vec4 color = vec4(0.0);\n vec2 off1 = vec2(1.3846153846) * direction;\n vec2 off2 = vec2(3.2307692308) * direction;\n color += texture2D(image, uv) * 0.2270270270;\n color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703;\n color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703;\n return color;\n}\n\nvoid main() {\n gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir);\n}"});var e=this.shaderModuleService.getModule("blur-pass"),t=e.vs,n=e.fs,r=e.uniforms,o=this.rendererService.getViewportSize(),i=o.width,a=o.height;return{vs:t,fs:n,uniforms:Vo(Vo({},r),{},{u_ViewportSize:[i,a]})}}},{key:"convertOptionsToUniforms",value:function(e){var t={};return $t()(e.blurRadius)||(t.u_BlurDir=[e.blurRadius,0]),t}}])&&Wo(t.prototype,n),r&&Wo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(jo.a))||Fo;function Qo(e){return(Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach((function(t){ti(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ti(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ni(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ri(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oi(e,t){return(oi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ii(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ci(e);if(t){var o=ci(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ai(this,n)}}function ai(e,t){if(t&&("object"===Qo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ci(e){return(ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ui,si=Object(i.injectable)()(Zo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oi(e,t)}(i,e);var t,n,r,o=ii(i);function i(){return ni(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\n\nuniform vec2 u_ViewportSize: [1.0, 1.0];\nuniform vec2 u_BlurDir: [1.0, 0.0];\n\n// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl\nvec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) {\n vec4 color = vec4(0.0);\n vec2 off1 = vec2(1.3846153846) * direction;\n vec2 off2 = vec2(3.2307692308) * direction;\n color += texture2D(image, uv) * 0.2270270270;\n color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703;\n color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703;\n return color;\n}\n\nvoid main() {\n gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir);\n}"});var e=this.shaderModuleService.getModule("blur-pass"),t=e.vs,n=e.fs,r=e.uniforms,o=this.rendererService.getViewportSize(),i=o.width,a=o.height;return{vs:t,fs:n,uniforms:ei(ei({},r),{},{u_ViewportSize:[i,a]})}}},{key:"convertOptionsToUniforms",value:function(e){var t={};return $t()(e.blurRadius)||(t.u_BlurDir=[0,e.blurRadius]),t}}])&&ri(t.prototype,n),r&&ri(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(jo.a))||Zo;function li(e){return(li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(n),!0).forEach((function(t){di(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yi(e,t){return(yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function mi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bi(e);if(t){var o=bi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gi(this,n)}}function gi(e,t){if(t&&("object"===li(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function bi(e){return(bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oi,wi=Object(i.injectable)()(ui=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yi(e,t)}(i,e);var t,n,r,o=mi(i);function i(){return hi(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:'varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\nuniform vec2 u_ViewportSize: [1.0, 1.0];\nuniform vec2 u_Center : [0.5, 0.5];\nuniform float u_Angle : 0;\nuniform float u_Size : 8;\n\n#pragma include "common"\n\nfloat scale = PI / u_Size;\n\nfloat pattern(float u_Angle, vec2 texSize, vec2 texCoord) {\n float s = sin(u_Angle), c = cos(u_Angle);\n vec2 tex = texCoord * texSize - u_Center * texSize;\n vec2 point = vec2(\n c * tex.x - s * tex.y,\n s * tex.x + c * tex.y\n ) * scale;\n return (sin(point.x) * sin(point.y)) * 4.0;\n}\n\n// https://github.com/evanw/glfx.js/blob/master/src/filters/fun/colorhalftone.js\nvec4 colorHalftone_filterColor(vec4 color, vec2 texSize, vec2 texCoord) {\n vec3 cmy = 1.0 - color.rgb;\n float k = min(cmy.x, min(cmy.y, cmy.z));\n cmy = (cmy - k) / (1.0 - k);\n cmy = clamp(\n cmy * 10.0 - 3.0 + vec3(\n pattern(u_Angle + 0.26179, texSize, texCoord),\n pattern(u_Angle + 1.30899, texSize, texCoord),\n pattern(u_Angle, texSize, texCoord)\n ),\n 0.0,\n 1.0\n );\n k = clamp(k * 10.0 - 5.0 + pattern(u_Angle + 0.78539, texSize, texCoord), 0.0, 1.0);\n return vec4(1.0 - cmy - k, color.a);\n}\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n gl_FragColor = colorHalftone_filterColor(gl_FragColor, u_ViewportSize, v_UV);\n}'});var e=this.shaderModuleService.getModule("colorhalftone-pass"),t=e.vs,n=e.fs,r=e.uniforms,o=this.rendererService.getViewportSize(),i=o.width,a=o.height;return{vs:t,fs:n,uniforms:pi(pi({},r),{},{u_ViewportSize:[i,a]})}}}])&&vi(t.prototype,n),r&&vi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(jo.a))||ui;function _i(e){return(_i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ei(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Si(e,t){return(Si=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ci(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ki(e);if(t){var o=ki(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ji(this,n)}}function ji(e,t){if(t&&("object"===_i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ki(e){return(ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pi,Ti=Object(i.injectable)()(Oi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Si(e,t)}(i,e);var t,n,r,o=Ci(i);function i(){return xi(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n}"}),this.shaderModuleService.getModule("copy-pass")}}])&&Ei(t.prototype,n),r&&Ei(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(jo.a))||Oi;function Mi(e){return(Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){Ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ri(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ni(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ii(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Di(e,t){return(Di=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bi(e);if(t){var o=Bi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zi(this,n)}}function zi(e,t){if(t&&("object"===Mi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Bi(e){return(Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ui,Vi=Object(i.injectable)()(Pi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Di(e,t)}(i,e);var t,n,r,o=Fi(i);function i(){return Ni(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\nuniform vec2 u_ViewportSize: [1.0, 1.0];\nuniform vec2 u_Center : [0.5, 0.5];\nuniform float u_Scale : 10;\n\n// https://github.com/evanw/glfx.js/blob/master/src/filters/fun/hexagonalpixelate.js\nvec4 hexagonalPixelate_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) {\n vec2 tex = (texCoord * texSize - u_Center * texSize) / u_Scale;\n tex.y /= 0.866025404;\n tex.x -= tex.y * 0.5;\n vec2 a;\n if (tex.x + tex.y - floor(tex.x) - floor(tex.y) < 1.0) {\n a = vec2(floor(tex.x), floor(tex.y));\n }\n else a = vec2(ceil(tex.x), ceil(tex.y));\n vec2 b = vec2(ceil(tex.x), floor(tex.y));\n vec2 c = vec2(floor(tex.x), ceil(tex.y));\n vec3 TEX = vec3(tex.x, tex.y, 1.0 - tex.x - tex.y);\n vec3 A = vec3(a.x, a.y, 1.0 - a.x - a.y);\n vec3 B = vec3(b.x, b.y, 1.0 - b.x - b.y);\n vec3 C = vec3(c.x, c.y, 1.0 - c.x - c.y);\n float alen = length(TEX - A);\n float blen = length(TEX - B);\n float clen = length(TEX - C);\n vec2 choice;\n if (alen < blen) {\n if (alen < clen) choice = a;\n else choice = c;\n } else {\n if (blen < clen) choice = b;\n else choice = c;\n }\n choice.x += choice.y * 0.5;\n choice.y *= 0.866025404;\n choice *= u_Scale / texSize;\n return texture2D(texture, choice + u_Center);\n}\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n gl_FragColor = hexagonalPixelate_sampleColor(u_Texture, u_ViewportSize, v_UV);\n}"});var e=this.shaderModuleService.getModule("hexagonalpixelate-pass"),t=e.vs,n=e.fs,r=e.uniforms,o=this.rendererService.getViewportSize(),i=o.width,a=o.height;return{vs:t,fs:n,uniforms:Li(Li({},r),{},{u_ViewportSize:[i,a]})}}}])&&Ii(t.prototype,n),r&&Ii(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(jo.a))||Pi;function Hi(e){return(Hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach((function(t){Yi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ki(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qi(e,t){return(qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Zi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qi(e);if(t){var o=Qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ji(this,n)}}function Ji(e,t){if(t&&("object"===Hi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Qi(e){return(Qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $i,ea=Object(i.injectable)()(Ui=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qi(e,t)}(i,e);var t,n,r,o=Zi(i);function i(){return Ki(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\nuniform vec2 u_ViewportSize: [1.0, 1.0];\nuniform float u_Strength : 0.6;\n\nvec4 ink_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) {\n vec2 dx = vec2(1.0 / texSize.x, 0.0);\n vec2 dy = vec2(0.0, 1.0 / texSize.y);\n vec4 color = texture2D(texture, texCoord);\n float bigTotal = 0.0;\n float smallTotal = 0.0;\n vec3 bigAverage = vec3(0.0);\n vec3 smallAverage = vec3(0.0);\n for (float x = -2.0; x <= 2.0; x += 1.0) {\n for (float y = -2.0; y <= 2.0; y += 1.0) {\n vec3 sample = texture2D(texture, texCoord + dx * x + dy * y).rgb;\n bigAverage += sample;\n bigTotal += 1.0;\n if (abs(x) + abs(y) < 2.0) {\n smallAverage += sample;\n smallTotal += 1.0;\n }\n }\n }\n vec3 edge = max(vec3(0.0), bigAverage / bigTotal - smallAverage / smallTotal);\n float power = u_Strength * u_Strength * u_Strength * u_Strength * u_Strength;\n return vec4(color.rgb - dot(edge, edge) * power * 100000.0, color.a);\n}\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n gl_FragColor = ink_sampleColor(u_Texture, u_ViewportSize, v_UV);\n}"});var e=this.shaderModuleService.getModule("ink-pass"),t=e.vs,n=e.fs,r=e.uniforms,o=this.rendererService.getViewportSize(),i=o.width,a=o.height;return{vs:t,fs:n,uniforms:Wi(Wi({},r),{},{u_ViewportSize:[i,a]})}}}])&&Xi(t.prototype,n),r&&Xi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(jo.a))||Ui;function ta(e){return(ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function na(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oa(e,t){return(oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ia(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ca(e);if(t){var o=ca(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return aa(this,n)}}function aa(e,t){if(t&&("object"===ta(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ca(e){return(ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ua,sa=Object(i.injectable)()($i=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oa(e,t)}(i,e);var t,n,r,o=ia(i);function i(){return na(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\nuniform float u_Amount : 0.5;\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\n// https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/noise.js\nvec4 noise_filterColor(vec4 color, vec2 texCoord) {\n float diff = (rand(texCoord) - 0.5) * u_Amount;\n color.r += diff;\n color.g += diff;\n color.b += diff;\n return color;\n}\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n gl_FragColor = noise_filterColor(gl_FragColor, v_UV);\n}"}),this.shaderModuleService.getModule("noise-pass")}}])&&ra(t.prototype,n),r&&ra(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(jo.a))||$i;function la(e){return(la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function da(e,t){return(da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ha(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ya(e);if(t){var o=ya(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return va(this,n)}}function va(e,t){if(t&&("object"===la(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ya(e){return(ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ma,ga,ba,Oa,wa,_a,xa=Object(i.injectable)()(ua=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&da(e,t)}(i,e);var t,n,r,o=ha(i);function i(){return fa(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("sepia-pass",{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:"varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\n\nuniform float u_Amount : 0.5;\n\n// https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/sepia.js\nvec4 sepia_filterColor(vec4 color) {\n float r = color.r;\n float g = color.g;\n float b = color.b;\n color.r =\n min(1.0, (r * (1.0 - (0.607 * u_Amount))) + (g * (0.769 * u_Amount)) + (b * (0.189 * u_Amount)));\n color.g = min(1.0, (r * 0.349 * u_Amount) + (g * (1.0 - (0.314 * u_Amount))) + (b * 0.168 * u_Amount));\n color.b = min(1.0, (r * 0.272 * u_Amount) + (g * 0.534 * u_Amount) + (b * (1.0 - (0.869 * u_Amount))));\n return color;\n}\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n gl_FragColor = sepia_filterColor(gl_FragColor);\n}"}),this.shaderModuleService.getModule("sepia-pass")}}])&&pa(t.prototype,n),r&&pa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(jo.a))||ua;function Ea(e){return(Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sa(){Sa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==Ea(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function Ca(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function ja(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ca(i,r,o,a,c,"next",e)}function c(e){Ca(i,r,o,a,c,"throw",e)}a(void 0)}))}}function ka(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pa(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Ta,Ma=(ma=Object(i.injectable)(),ga=Object(i.inject)(u.a.IRendererService),ba=Object(i.postConstruct)(),ma((_a=Pa((wa=function(){function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,"rendererService",_a,this),r=[],(n="passes")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}var t,n,r,o,i;return t=e,(n=[{key:"getReadFBO",value:function(){return this.readFBO}},{key:"getWriteFBO",value:function(){return this.writeFBO}},{key:"getCurrentFBOTex",value:function(){var e=this.rendererService,t=e.getViewportSize,n=e.createTexture2D,r=t();return n({x:0,y:0,width:r.width,height:r.height,copy:!0})}},{key:"getReadFBOTex",value:function(){var e=this,t=this.rendererService.useFramebuffer;return new Promise((function(n,r){t(e.readFBO,ja(Sa().mark((function t(){return Sa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n(e.getCurrentFBOTex());case 1:case"end":return t.stop()}}),t)}))))}))}},{key:"renderBloomPass",value:(i=ja(Sa().mark((function e(t,n){var r,o;return Sa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getReadFBOTex();case 2:r=e.sent,o=0;case 4:if(!(o<4)){e.next=11;break}return e.next=7,n.render(t,r);case 7:this.swap(),o++,e.next=4;break;case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"render",value:(o=ja(Sa().mark((function e(t){var n,r;return Sa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<this.passes.length)){e.next=15;break}if((r=this.passes[n]).setRenderToScreen(this.isLastEnabledPass(n)),"bloom"!==r.getName()){e.next=9;break}return e.next=7,this.renderBloomPass(t,r);case 7:e.next=12;break;case 9:return e.next=11,r.render(t);case 11:n!==this.passes.length-1&&this.swap();case 12:n++,e.next=1;break;case 15:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"resize",value:function(e,t){this.readFBO.resize({width:e,height:t}),this.writeFBO.resize({width:e,height:t})}},{key:"add",value:function(e,t,n){e.init(t,n),this.passes.push(e)}},{key:"insert",value:function(e,t,n,r){e.init(n,r),this.passes.splice(t,0,e)}},{key:"getPostProcessingPassByName",value:function(e){return this.passes.find((function(t){return t.getName()===e}))}},{key:"init",value:function(){var e=this.rendererService,t=e.createFramebuffer,n=e.createTexture2D;this.readFBO=t({color:n({width:1,height:1,wrapS:vt.a.CLAMP_TO_EDGE,wrapT:vt.a.CLAMP_TO_EDGE})}),this.writeFBO=t({color:n({width:1,height:1,wrapS:vt.a.CLAMP_TO_EDGE,wrapT:vt.a.CLAMP_TO_EDGE})})}},{key:"isLastEnabledPass",value:function(e){for(var t=e+1;t<this.passes.length;t++)if(this.passes[t].isEnabled())return!1;return!0}},{key:"swap",value:function(){var e=this.readFBO;this.readFBO=this.writeFBO,this.writeFBO=e}}])&&ka(t.prototype,n),r&&ka(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()).prototype,"rendererService",[ga],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pa(wa.prototype,"init",[ba],Object.getOwnPropertyDescriptor(wa.prototype,"init"),wa.prototype),Oa=wa))||Oa);function Aa(e){return(Aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function La(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Na(){return(Na="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Ia(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Ia(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ba(e)););return e}function Da(e,t){return(Da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ba(e);if(t){var o=Ba(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return za(this,n)}}function za(e,t){if(t&&("object"===Aa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ba(e){return(Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ua,Va,Ha,Ga,Wa,Ya=Object(i.injectable)()(Ta=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Da(e,t)}(i,e);var t,n,r,o=Fa(i);function i(){return La(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getType",value:function(){return Nr.a.Normal}},{key:"getName",value:function(){return"render"}},{key:"init",value:function(e,t){Na(Ba(i.prototype),"init",this).call(this,e,t)}},{key:"render",value:function(e){var t=this.rendererService,n=t.useFramebuffer,r=t.clear,o=e.multiPassRenderer.getPostProcessor().getReadFBO();n(o,(function(){r({color:[0,0,0,0],depth:1,stencil:0,framebuffer:o}),e.multiPassRenderer.setRenderFlag(!1),e.models.forEach((function(t){t.draw({uniforms:e.layerModel.getUninforms()})})),e.multiPassRenderer.setRenderFlag(!0)}))}}])&&Ra(t.prototype,n),r&&Ra(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(Fr))||Ta;function Ka(e){return(Ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach((function(t){ac(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Za(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Ja(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $a(){return($a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=ec(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function ec(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ic(e)););return e}function tc(e,t){return(tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ic(e);if(t){var o=ic(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rc(this,n)}}function rc(e,t){if(t&&("object"===Ka(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oc(e)}function oc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ic(e){return(ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cc="varying vec2 v_UV;\n\nuniform sampler2D u_Texture;\n\nvoid main() {\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\n}";function uc(e,t){for(var n=0,r=1/t,o=e;o>0;)n+=r*(o%t),o=Math.floor(o/t),r/=t;return n}var sc=1,lc=(Ua=Object(i.injectable)(),Va=Object(i.inject)(u.a.IShaderModuleService),Ua((Wa=function(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}((Ga=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tc(e,t)}(i,e);var t,n,r,o=nc(i);function i(){var e;Ja(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Za(oc(e=o.call.apply(o,[this].concat(n))),"shaderModuleService",Wa,oc(e)),ac(oc(e),"haltonSequence",[]),ac(oc(e),"accumulatingId",0),ac(oc(e),"frame",0),ac(oc(e),"timer",void 0),e}return t=i,(n=[{key:"getType",value:function(){return Nr.a.Normal}},{key:"getName",value:function(){return"taa"}},{key:"init",value:function(e,t){$a(ic(i.prototype),"init",this).call(this,e,t);var n=this.rendererService,r=n.createFramebuffer,o=n.createTexture2D;this.sampleRenderTarget=r({color:o({width:1,height:1,wrapS:vt.a.CLAMP_TO_EDGE,wrapT:vt.a.CLAMP_TO_EDGE})}),this.prevRenderTarget=r({color:o({width:1,height:1,wrapS:vt.a.CLAMP_TO_EDGE,wrapT:vt.a.CLAMP_TO_EDGE})}),this.outputRenderTarget=r({color:o({width:1,height:1,wrapS:vt.a.CLAMP_TO_EDGE,wrapT:vt.a.CLAMP_TO_EDGE})}),this.copyRenderTarget=r({color:o({width:1,height:1,wrapS:vt.a.CLAMP_TO_EDGE,wrapT:vt.a.CLAMP_TO_EDGE})});for(var a=0;a<30;a++)this.haltonSequence.push([uc(a,2),uc(a,3)]);this.blendModel=this.createTriangleModel("blend-pass","uniform float u_opacity : 1.0;\nuniform float u_MixRatio : 0.5;\n\nuniform sampler2D u_Diffuse1;\nuniform sampler2D u_Diffuse2;\n\nvarying vec2 v_UV;\n\nvoid main() {\n vec4 texel1 = texture2D(u_Diffuse1, v_UV);\n vec4 texel2 = texture2D(u_Diffuse2, v_UV);\n gl_FragColor = u_opacity * mix(texel1, texel2, u_MixRatio);\n}\n"),this.outputModel=this.createTriangleModel("copy-pass",cc,{blend:{enable:!0,func:{srcRGB:vt.a.ONE,dstRGB:vt.a.ONE_MINUS_SRC_ALPHA,srcAlpha:vt.a.ONE,dstAlpha:vt.a.ONE_MINUS_SRC_ALPHA},equation:{rgb:vt.a.FUNC_ADD,alpha:vt.a.FUNC_ADD}}}),this.copyModel=this.createTriangleModel("copy-pass",cc)}},{key:"render",value:function(e){var t=this,n=this.rendererService,r=n.clear,o=n.getViewportSize,i=n.useFramebuffer,a=o(),c=a.width,u=a.height;this.sampleRenderTarget.resize({width:c,height:u}),this.prevRenderTarget.resize({width:c,height:u}),this.outputRenderTarget.resize({width:c,height:u}),this.copyRenderTarget.resize({width:c,height:u}),this.resetFrame(),this.stopAccumulating();var l=e.multiPassRenderer.getPostProcessor().getReadFBO();i(l,(function(){r({color:[0,0,0,0],depth:1,stencil:0,framebuffer:l}),e.multiPassRenderer.setRenderFlag(!1),e.render(),e.multiPassRenderer.setRenderFlag(!0)})),this.accumulatingId=sc++,this.timer=s.c.setTimeout((function(){!function n(r){t.accumulatingId&&r===t.accumulatingId&&(t.isFinished()||(t.doRender(e),s.c.requestAnimationFrame((function(){n(r)}))))}(t.accumulatingId)}),50)}},{key:"doRender",value:function(e){var t=this,n=this.rendererService,r=n.clear,o=n.getViewportSize,i=n.useFramebuffer,a=o(),c=a.width,u=a.height,s=e.getLayerConfig().jitterScale,l=void 0===s?1:s,f=this.haltonSequence[this.frame%this.haltonSequence.length];this.cameraService.jitterProjectionMatrix((2*f[0]-1)/c*l,(2*f[1]-1)/u*l),e.multiPassRenderer.setRenderFlag(!1),e.hooks.beforeRender.call(),i(this.sampleRenderTarget,(function(){r({color:[0,0,0,0],depth:1,stencil:0,framebuffer:t.sampleRenderTarget}),e.render()})),e.hooks.afterRender.call(),e.multiPassRenderer.setRenderFlag(!0);var p=e.getLayerConfig();i(this.outputRenderTarget,(function(){t.blendModel.draw({uniforms:{u_opacity:p.opacity||1,u_MixRatio:0===t.frame?1:.9,u_Diffuse1:t.sampleRenderTarget,u_Diffuse2:0===t.frame?e.multiPassRenderer.getPostProcessor().getReadFBO():t.prevRenderTarget}})})),0===this.frame&&r({color:[0,0,0,0],depth:1,stencil:0,framebuffer:this.copyRenderTarget}),this.frame>=1&&(i(this.copyRenderTarget,(function(){t.outputModel.draw({uniforms:{u_Texture:t.outputRenderTarget}})})),i(e.multiPassRenderer.getPostProcessor().getReadFBO(),(function(){t.copyModel.draw({uniforms:{u_Texture:t.copyRenderTarget}})})),e.multiPassRenderer.getPostProcessor().render(e));var d=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=d,this.frame++,this.cameraService.clearJitterProjectionMatrix()}},{key:"isFinished",value:function(){return this.frame>=this.haltonSequence.length}},{key:"resetFrame",value:function(){this.frame=0}},{key:"stopAccumulating",value:function(){this.accumulatingId=0,s.c.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(e,t,n){this.shaderModuleService.registerModule(e,{vs:"attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}",fs:t});var r=this.shaderModuleService.getModule(e),o=r.vs,i=r.fs,a=r.uniforms,c=this.rendererService,u=c.createAttribute,s=c.createBuffer;return(0,c.createModel)(qa({vs:o,fs:i,attributes:{a_Position:u({buffer:s({data:[-4,-4,4,-4,0,4],type:vt.a.FLOAT}),size:2})},uniforms:qa({},a),depth:{enable:!1},count:3},n))}}])&&Qa(t.prototype,n),r&&Qa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(Fr)).prototype,"shaderModuleService",[Va],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ha=Ga))||Ha),fc=new i.Container;fc.bind(u.a.IGlobalConfigService).to(ye).inSingletonScope(),Object(i.decorate)(Object(i.injectable)(),r.EventEmitter),fc.bind(u.a.IEventEmitter).to(r.EventEmitter);var pc=c()(fc,!1),dc=function(e){var t=pc.lazyInject(e);return function(e,n,r){t.call(this,e,n),r&&(r.initializer=function(){return e[n]})}},hc=function(e){var t=pc.lazyMultiInject(e);return function(e,n,r){t.call(this,e,n),r&&(r.initializer=function(){return e[n]})}},vc=(t.c=fc,0);function yc(){var e=new i.Container;return e.parent=fc,e.bind(u.a.SceneID).toConstantValue("".concat(vc++)),e.bind(u.a.IShaderModuleService).to(Rr).inSingletonScope(),e.bind(u.a.ILayerService).to(Jt).inSingletonScope(),e.bind(u.a.ISceneService).to(Or).inSingletonScope(),e.bind(u.a.ICameraService).to(K).inSingletonScope(),e.bind(u.a.ICoordinateSystemService).to(Fe).inSingletonScope(),e.bind(u.a.IInteractionService).to($e).inSingletonScope(),e.bind(u.a.IPickingService).to(kt).inSingletonScope(),e.bind(u.a.IControlService).to($).inSingletonScope(),e.bind(u.a.IMarkerService).to(re).inSingletonScope(),e.bind(u.a.IIconService).to(U).inSingletonScope(),e.bind(u.a.IFontService).to(T).inSingletonScope(),e.bind(u.a.IPopupService).to(ae).inSingletonScope(),e.bind(u.a.INormalPass).to($r).whenTargetNamed("clear"),e.bind(u.a.INormalPass).to(Co).whenTargetNamed("pixelPicking"),e.bind(u.a.INormalPass).to(Ya).whenTargetNamed("render"),e.bind(u.a.INormalPass).to(lc).whenTargetNamed("taa"),e.bind(u.a.IFactoryNormalPass).toFactory((function(e){return function(t){return e.container.getNamed(u.a.INormalPass,t)}})),e.bind(u.a.IPostProcessingPass).to(Ti).whenTargetNamed("copy"),e.bind(u.a.IPostProcessingPass).to(zo).whenTargetNamed("bloom"),e.bind(u.a.IPostProcessingPass).to(Jo).whenTargetNamed("blurH"),e.bind(u.a.IPostProcessingPass).to(si).whenTargetNamed("blurV"),e.bind(u.a.IPostProcessingPass).to(sa).whenTargetNamed("noise"),e.bind(u.a.IPostProcessingPass).to(xa).whenTargetNamed("sepia"),e.bind(u.a.IPostProcessingPass).to(wi).whenTargetNamed("colorHalftone"),e.bind(u.a.IPostProcessingPass).to(Vi).whenTargetNamed("hexagonalPixelate"),e.bind(u.a.IPostProcessingPass).to(ea).whenTargetNamed("ink"),e.bind(u.a.IFactoryPostProcessingPass).toFactory((function(e){return function(t){var n=e.container.getNamed(u.a.IPostProcessingPass,t);return n.setName(t),n}})),e}function mc(e){var t=new i.Container;return t.parent=e,t.bind(u.a.IStyleAttributeService).to(rr).inSingletonScope(),t.bind(u.a.IMultiPassRenderer).to(uo).inSingletonScope(),t.bind(u.a.IPostProcessor).to(Ma).inSingletonScope(),t}},ieLl:function(e,t,n){"use strict";var r=n("yWCo"),o=n("IGGJ");t.__esModule=!0,t.ScrollContainer=void 0;var i=o(n("97Jx")),a=o(n("W/Kd")),c=r(n("ERkP")),u=o(n("7nmT")),s=o(n("aWzz")),l=n("B8dz"),f=n("tYqs"),p={scrollKey:s.default.string.isRequired,shouldUpdateScroll:s.default.func,children:s.default.element.isRequired},d=function(e){function t(t){return e.call(this,t)||this}(0,a.default)(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this,t=u.default.findDOMNode(this),n=this.props,r=n.location,o=n.scrollKey;if(t){t.addEventListener("scroll",(function(){e.props.context.save(r,o,t.scrollTop)}));var i=this.props.context.read(r,o);t.scrollTo(0,i||0)}},n.render=function(){return this.props.children},t}(c.Component),h=function(e){return c.createElement(f.Location,null,(function(t){var n=t.location;return c.createElement(l.ScrollContext.Consumer,null,(function(t){return c.createElement(d,(0,i.default)({},e,{context:t,location:n}))}))}))};t.ScrollContainer=h,h.propTypes=p},ihLV:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return p}));var r=n("cxan"),o=n("85Yc"),i=n("WSTu"),a=n("ERkP"),c=a.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),u=a.createContext(null),s=function(e){var t=Object(i.a)(e,["prefixCls"]);return a.createElement(o.c,Object(r.a)({},t))},l=a.createContext({prefixCls:""}),f=a.createContext({}),p=function(e){var t=e.children,n=e.status,o=e.override,i=Object(a.useContext)(f),c=Object(a.useMemo)((function(){var e=Object(r.a)({},i);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,o,i]);return a.createElement(f.Provider,{value:c},t)}},ioev:function(e,t,n){"use strict";function r(e,t){return!!e&&e.contains(t)}n.d(t,"a",(function(){return r}))},itHI:function(e,t,n){},jCFv:function(e,t){e.exports.pick=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}},jDfB:function(e,t,n){"use strict";e.exports=function(e){return function(t){throw new TypeError(t+" does not have a method '"+e+"'.")}}},jFDj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n("2u/a"),o=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.toString=function(){return this.key===r.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},e}();t.Metadata=o},jLkM:function(e,t,n){var r=n("s+R0");e.exports=function(e){return e&&e.length?r(e):[]}},jSso:function(e,t,n){var r=n("BkAM"),o=n("A43l");e.exports=r((function(e){return o(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}))},jiyB:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function c(e){a.delete(e)}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i+=1;function o(t){if(0===t)c(n),e();else{var i=r((function(){o(t-1)}));a.set(n,i)}}return o(t),n}u.cancel=function(e){var t=a.get(e);return c(t),o(t)}},jrXf:function(e,t){e.exports=function(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}},"jsC+":function(e,t,n){"use strict";var r=n("XBQK");t.a=r.a},jvEv:function(e,t,n){"use strict";e.exports={union:n("8Jfv"),derivations:n("ujcY")}},jynw:function(e,t,n){"use strict";e.exports=function(e,t){!0===t&&(t=0);var n="";if("string"==typeof e)try{n=new URL(e).protocol}catch(o){}else e&&e.constructor===URL&&(n=e.protocol);var r=n.split(/\:|\+/).filter(Boolean);return"number"==typeof t?r[t]:r}},"k/c8":function(e,t,n){},k0uE:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e["GAODE1.x"]="GAODE1.x",e["GAODE2.x"]="GAODE2.x",e.MAPBOX="MAPBOX",e.L7MAP="L7MAP",e.SIMPLE="SIMPLE",e.GLOBEL="GLOBEL"}(r||(r={}))},kG2z:function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},kHoZ:function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},kLXV:function(e,t,n){"use strict";var r,o=n("fGyu"),i=n("cxan"),a=n("5ouU"),c=n("r8k/"),u=n("+Hko"),s=n("TyQ8"),l=n("oV9B"),f=n("ERkP"),p=n("wEI+"),d=n("zjfJ"),h=n("O94r"),v=n.n(h),y=n("lkze"),m=n("EXcs"),g=n("Sp6C"),b=n("7fAn"),O=n("2/Rp"),w=n("zvFY"),_=n("H84U"),x=n("ihLV"),E=n("YMnH"),S=n("R3zJ"),C=n("ul5b"),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object(S.a)()&&document.documentElement.addEventListener("click",(function(e){r={x:e.pageX,y:e.pageY},setTimeout((function(){r=null}),100)}),!0);var k=function(e){var t,n=f.useContext(_.b),o=n.getPopupContainer,a=n.getPrefixCls,c=n.direction,u=function(t){var n=e.onCancel;null==n||n(t)},s=function(t){var n=e.onOk;null==n||n(t)},l=function(t){var n=e.okText,r=e.okType,o=e.cancelText,a=e.confirmLoading;return f.createElement(f.Fragment,null,f.createElement(O.a,Object(i.a)({onClick:u},e.cancelButtonProps),o||t.cancelText),f.createElement(O.a,Object(i.a)({},Object(w.a)(r),{loading:a,onClick:s},e.okButtonProps),n||t.okText))},p=e.prefixCls,h=e.footer,y=e.visible,S=e.wrapClassName,k=e.centered,P=e.getContainer,T=e.closeIcon,M=e.focusTriggerAfterClose,A=void 0===M||M,L=j(e,["prefixCls","footer","visible","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),R=a("modal",p),N=a(),I=f.createElement(E.a,{componentName:"Modal",defaultLocale:Object(C.b)()},l),D=f.createElement("span",{className:"".concat(R,"-close-x")},T||f.createElement(g.a,{className:"".concat(R,"-close-icon")})),F=v()(S,(t={},Object(d.a)(t,"".concat(R,"-centered"),!!k),Object(d.a)(t,"".concat(R,"-wrap-rtl"),"rtl"===c),t));return f.createElement(x.e,{status:!0,override:!0},f.createElement(b.a,Object(i.a)({},L,{getContainer:void 0===P?o:P,prefixCls:R,wrapClassName:F,footer:void 0===h?I:h,visible:y,mousePosition:r,onClose:u,closeIcon:D,focusTriggerAfterClose:A,transitionName:Object(m.c)(N,"zoom",e.transitionName),maskTransitionName:Object(m.c)(N,"fade",e.maskTransitionName)})))};k.defaultProps={width:520,confirmLoading:!1,visible:!1,okType:"primary"};var P=k,T=function(e){var t=e.icon,n=e.onCancel,r=e.onOk,o=e.close,i=e.zIndex,a=e.afterClose,c=e.visible,u=e.keyboard,s=e.centered,l=e.getContainer,h=e.maskStyle,g=e.okText,b=e.okButtonProps,O=e.cancelText,w=e.cancelButtonProps,_=e.direction,x=e.prefixCls,E=e.wrapClassName,S=e.rootPrefixCls,C=e.iconPrefixCls,j=e.bodyStyle,k=e.closable,T=void 0!==k&&k,M=e.closeIcon,A=e.modalRender,L=e.focusTriggerAfterClose,R=e.okType||"primary",N="".concat(x,"-confirm"),I=!("okCancel"in e)||e.okCancel,D=e.width||416,F=e.style||{},z=void 0===e.mask||e.mask,B=void 0!==e.maskClosable&&e.maskClosable,U=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),V=v()(N,"".concat(N,"-").concat(e.type),Object(d.a)({},"".concat(N,"-rtl"),"rtl"===_),e.className),H=I&&f.createElement(y.a,{actionFn:n,close:o,autoFocus:"cancel"===U,buttonProps:w,prefixCls:"".concat(S,"-btn")},O);return f.createElement(p.a,{prefixCls:S,iconPrefixCls:C,direction:_},f.createElement(P,{prefixCls:x,className:V,wrapClassName:v()(Object(d.a)({},"".concat(N,"-centered"),!!e.centered),E),onCancel:function(){return o({triggerCancel:!0})},visible:c,title:"",footer:"",transitionName:Object(m.c)(S,"zoom",e.transitionName),maskTransitionName:Object(m.c)(S,"fade",e.maskTransitionName),mask:z,maskClosable:B,maskStyle:h,style:F,bodyStyle:j,width:D,zIndex:i,afterClose:a,keyboard:u,centered:s,getContainer:l,closable:T,closeIcon:M,modalRender:A,focusTriggerAfterClose:L},f.createElement("div",{className:"".concat(N,"-body-wrapper")},f.createElement("div",{className:"".concat(N,"-body")},t,void 0===e.title?null:f.createElement("span",{className:"".concat(N,"-title")},e.title),f.createElement("div",{className:"".concat(N,"-content")},e.content)),f.createElement("div",{className:"".concat(N,"-btns")},H,f.createElement(y.a,{type:R,actionFn:r,close:o,autoFocus:"ok"===U,buttonProps:b,prefixCls:"".concat(S,"-btn")},g)))))},M=[],A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},L="";function R(e){var t=document.createDocumentFragment(),n=Object(i.a)(Object(i.a)({},e),{close:c,visible:!0});function r(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=r.some((function(e){return e&&e.triggerCancel}));e.onCancel&&a&&e.onCancel.apply(e,[function(){}].concat(Object(o.a)(r.slice(1))));for(var u=0;u<M.length;u++){var s=M[u];if(s===c){M.splice(u,1);break}}Object(l.b)(t)}function a(e){var n=e.okText,r=e.cancelText,o=e.prefixCls,a=A(e,["okText","cancelText","prefixCls"]);setTimeout((function(){var e=Object(C.b)(),c=Object(p.b)(),u=c.getPrefixCls,s=c.getIconPrefixCls,d=u(void 0,L),h=o||"".concat(d,"-modal"),v=s();Object(l.a)(f.createElement(T,Object(i.a)({},a,{prefixCls:h,rootPrefixCls:d,iconPrefixCls:v,okText:n||(a.okCancel?e.okText:e.justOkText),cancelText:r||e.cancelText})),t)}))}function c(){for(var t=this,o=arguments.length,c=new Array(o),u=0;u<o;u++)c[u]=arguments[u];a(n=Object(i.a)(Object(i.a)({},n),{visible:!1,afterClose:function(){"function"==typeof e.afterClose&&e.afterClose(),r.apply(t,c)}}))}return a(n),M.push(c),{destroy:c,update:function(e){a(n="function"==typeof e?e(n):Object(i.a)(Object(i.a)({},n),e))}}}function N(e){return Object(i.a)(Object(i.a)({icon:f.createElement(u.a,null),okCancel:!1},e),{type:"warning"})}function I(e){return Object(i.a)(Object(i.a)({icon:f.createElement(s.a,null),okCancel:!1},e),{type:"info"})}function D(e){return Object(i.a)(Object(i.a)({icon:f.createElement(a.a,null),okCancel:!1},e),{type:"success"})}function F(e){return Object(i.a)(Object(i.a)({icon:f.createElement(c.a,null),okCancel:!1},e),{type:"error"})}function z(e){return Object(i.a)(Object(i.a)({icon:f.createElement(u.a,null),okCancel:!0},e),{type:"confirm"})}var B=n("zygG");var U=n("ZvpZ"),V=function(e,t){var n=e.afterClose,r=e.config,a=f.useState(!0),c=Object(B.a)(a,2),u=c[0],s=c[1],l=f.useState(r),p=Object(B.a)(l,2),d=p[0],h=p[1],v=f.useContext(_.b),y=v.direction,m=v.getPrefixCls,g=m("modal"),b=m(),O=function(){s(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.some((function(e){return e&&e.triggerCancel}));d.onCancel&&r&&d.onCancel.apply(d,[function(){}].concat(Object(o.a)(t.slice(1))))};return f.useImperativeHandle(t,(function(){return{destroy:O,update:function(e){h((function(t){return Object(i.a)(Object(i.a)({},t),e)}))}}})),f.createElement(E.a,{componentName:"Modal",defaultLocale:U.a.Modal},(function(e){return f.createElement(T,Object(i.a)({prefixCls:g,rootPrefixCls:b},d,{close:O,visible:u,afterClose:n,okText:d.okText||(d.okCancel?e.okText:e.justOkText),direction:y,cancelText:d.cancelText||e.cancelText}))}))},H=f.forwardRef(V),G=0,W=f.memo(f.forwardRef((function(e,t){var n=function(){var e=f.useState([]),t=Object(B.a)(e,2),n=t[0],r=t[1];return[n,f.useCallback((function(e){return r((function(t){return[].concat(Object(o.a)(t),[e])})),function(){r((function(t){return t.filter((function(t){return t!==e}))}))}}),[])]}(),r=Object(B.a)(n,2),i=r[0],a=r[1];return f.useImperativeHandle(t,(function(){return{patchElement:a}}),[]),f.createElement(f.Fragment,null,i)})));function Y(e){return R(N(e))}var K=P;K.useModal=function(){var e=f.useRef(null),t=f.useState([]),n=Object(B.a)(t,2),r=n[0],i=n[1];f.useEffect((function(){r.length&&(Object(o.a)(r).forEach((function(e){e()})),i([]))}),[r]);var a=f.useCallback((function(t){return function(n){var r;G+=1;var a,c=f.createRef(),u=f.createElement(H,{key:"modal-".concat(G),config:t(n),ref:c,afterClose:function(){a()}});return a=null===(r=e.current)||void 0===r?void 0:r.patchElement(u),{destroy:function(){function e(){var e;null===(e=c.current)||void 0===e||e.destroy()}c.current?e():i((function(t){return[].concat(Object(o.a)(t),[e])}))},update:function(e){function t(){var t;null===(t=c.current)||void 0===t||t.update(e)}c.current?t():i((function(e){return[].concat(Object(o.a)(e),[t])}))}}}}),[]);return[f.useMemo((function(){return{info:a(I),success:a(D),error:a(F),warning:a(N),confirm:a(z)}}),[]),f.createElement(W,{ref:e})]},K.info=function(e){return R(I(e))},K.success=function(e){return R(D(e))},K.error=function(e){return R(F(e))},K.warning=Y,K.warn=Y,K.confirm=function(e){return R(z(e))},K.destroyAll=function(){for(;M.length;){var e=M.pop();e&&e()}},K.config=function(e){var t=e.rootPrefixCls;L=t};t.a=K},kPKH:function(e,t,n){"use strict";var r=n("/kpp");t.a=r.a},kQdG:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},kYJr:function(e,t,n){"use strict";var r=n("bOZ7"),o=n("leTh"),i=n("7P48"),a=n("USM+"),c=n("iZBp"),u=n("8Jfv"),s=u.tagSymbol,l=u.typeSymbol,f=Object.prototype.toString,p=Object.getPrototypeOf,d=function(e){return null!=e&&("function"==typeof e[i.equals]||"function"==typeof e.equals)},h=function(e){return Object(e)===e&&(!p(e)||!e.toString||f.call(e)===e.toString())},v=function e(t){var n=function(e,n){if(e===n)return!0;var r=d(e),i=d(n);return r?!!i&&o(e,n):t(e,n)},i=function(e,t){return e.prototype.equals=function(e){return r(t)(this[s]+"#equals",e),i=e,(o=this)[l]===i[l]&&o[s]===i[s]&&function(e,t,r){for(var o=0;o<r.length;++o){var i=e[r[o]],a=t[r[o]];if(!n(i,a))return!1}return!0}(this,e,Object.keys(this));var o,i},a(e.prototype),e};return c(e,i,{type:"(Variant, Union) => Void"}),i};e.exports=v((function e(t,n){if(t===n)return!0;var r=d(t),i=d(n);if(r)return!!i&&o(t,n);if(Array.isArray(t)&&Array.isArray(n))return t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if(h(t)&&h(n)){var a=Object.keys(t),c=Object.keys(n),u=new Set(c);return a.length===c.length&&p(t)===p(n)&&a.every((function(e){return u.has(e)&&t[e]===n[e]}))}return!1})),e.exports.withCustomComparison=v},kam9:function(e,t,n){"use strict";var r,o,i,a;n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),function(e){e[e.solid=0]="solid",e[e.dash=1]="dash"}(r||(r={})),function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal"}(o||(o={})),function(e){e.NORMAL="normal",e.REPLACE="replace"}(i||(i={})),function(e){e.ALWAYS="always",e.DRAGEND="dragend"}(a||(a={}))},kbrz:function(e,t,n){var r=n("rXFn"),o=n("GZgP"),i=n("f2p0"),a=n("dw5g");e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,c=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return c[e]()+u}}},"kkM+":function(e,t,n){var r=n("QF3D"),o=n("qeCs"),i=n("IS0S"),a=n("OBn4"),c=n("4+Vk"),u=n("Dhk8"),s=n("c18h"),l=s(r),f=s(o),p=s(i),d=s(a),h=s(c),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||c&&"[object WeakMap]"!=v(new c))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},kn3Q:function(e,t,n){var r=n("HsnV"),o=n("LmOH"),i=n("c72w"),a=n("tPQG"),c=n("QrYh"),u=n("Grae"),s=n("QT01"),l=n("AjPR"),f=n("BjSP"),p=n("tlBq"),d=n("zF5n"),h=n("kkM+"),v=n("3Qlq"),y=n("7No3"),m=n("sD1O"),g=n("wxYD"),b=n("3ajY"),O=n("NbvU"),w=n("tQYX"),_=n("/iLo"),x=n("BlJA"),E=n("zH+d"),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,e.exports=function e(t,n,C,j,k,P){var T,M=1&n,A=2&n,L=4&n;if(C&&(T=k?C(t,j,k,P):C(t)),void 0!==T)return T;if(!w(t))return t;var R=g(t);if(R){if(T=v(t),!M)return s(t,T)}else{var N=h(t),I="[object Function]"==N||"[object GeneratorFunction]"==N;if(b(t))return u(t,M);if("[object Object]"==N||"[object Arguments]"==N||I&&!k){if(T=A||I?{}:m(t),!M)return A?f(t,c(T,t)):l(t,a(T,t))}else{if(!S[N])return k?t:{};T=y(t,N,M)}}P||(P=new r);var D=P.get(t);if(D)return D;P.set(t,T),_(t)?t.forEach((function(r){T.add(e(r,n,C,r,t,P))})):O(t)&&t.forEach((function(r,o){T.set(o,e(r,n,C,o,t,P))}));var F=R?void 0:(L?A?d:p:A?E:x)(t);return o(F||t,(function(r,o){F&&(r=t[o=r]),i(T,o,e(r,n,C,o,t,P))})),T}},kot9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unmanaged=void 0;var r=n("2u/a"),o=n("jFDj"),i=n("tTA5");t.unmanaged=function(){return function(e,t,n){var a=new o.Metadata(r.UNMANAGED_TAG,!0);i.tagParameter(e,t,n,a)}}},kq48:function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n("fRV1"))},kvVz:function(e,t,n){"use strict";e.exports=n("hTPx")},kwr2:function(e,t,n){var r=n("6QIk"),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},kyti:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,n){return e.on(t,n),function(){e.off(t,n)}}},l0By:function(e,t,n){"use strict";var r=n("jynw");e.exports=function e(t){if(Array.isArray(t))return-1!==t.indexOf("ssh")||-1!==t.indexOf("rsync");if("string"!=typeof t)return!1;var n=r(t);if(t=t.substring(t.indexOf("://")+3),e(n))return!0;var o=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!t.match(o)&&t.indexOf("@")<t.indexOf(":")}},lCGK:function(e,t,n){var r=n("vTcl"),o=n("JO7S"),i=n("r8Ni"),a=n("yl2r"),c=n("gdHq"),u=n("/3tq");e.exports=function e(t,n,s,l){if(a(t,n))return!0;if(u(t)!==u(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(u(t)){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===o(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!a(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!a(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1;break;case"Map":case"Set":if(!e(r(t.entries()),r(n.entries()),s,l))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=c(t);if(f.length!==c(n).length)return!1;for(var p=s.length-1;p>=0;){if(s[p]===t)return l[p]===n;p-=1}for(s.push(t),l.push(n),p=f.length-1;p>=0;){var d=f[p];if(!i(d,n)||!e(n[d],t[d],s,l))return!1;p-=1}return s.pop(),l.pop(),!0}},lEbO:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},lKko:function(e,t,n){var r=n("WhsZ"),o=n("qU5+"),i=n("uSMO");e.exports=r((function(e,t){return o(i(e.length,t),e)}))},lL5k:function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},lN3w:function(e,t,n){var r=n("EAGB");e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},lSUb:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],i=t[n],!(o===i||r(o)&&r(i)))return!1;var o,i;return!0}function i(e,t){void 0===t&&(t=o);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}},lUTK:function(e,t,n){"use strict";n("EFp3"),n("x54q"),n("5Dmo")},lY1V:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n("pufz"),o=n("zEXi"),i=n("pfNN"),a=n("PGAt");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(k){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=l;var p={};function d(){}function h(){}function v(){}var y={};s(y,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,o)&&(y=g);var b=v.prototype=d.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,u){var s=f(e[o],e,i);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"==c(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=v,s(b,"constructor",v),s(v,"constructor",h),h.displayName=s(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},O(w.prototype),s(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(b),s(b,a,"Generator"),s(b,o,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function s(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,n,i,c,h,v=d(y);function y(){return l(this,y),v.apply(this,arguments)}return t=y,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.usage,i=e.color,a=void 0===i?"#fff":i,c=e.size,u=void 0===c?1:c;return{u_opacity:Number(n),u_color:"basemap"===r?Object(o.Eb)(a):[0,0,0,0],u_size:"basemap"===r?u:1}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:(c=u().mark((function e(t){var n,r,i,c,s,l,f,p;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this.layer.getLayerConfig(),r=n.mask,i=void 0!==r&&r,c=n.maskInside,s=void 0===c||c,l=n.depth,f=void 0!==l&&l,p=n.usage,this.layer.triangulation=a.e,this.layer.buildLayerModel({moduleName:"lineTile_"+p,vertexShader:"basemap"===p?'attribute float a_Miter;\nattribute vec4 a_Color;\nattribute vec3 a_Normal;\nattribute vec3 a_Position;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float u_size;\n\n#pragma include "projection"\n\nvoid main() {\n\n vec3 size = a_Miter * u_size * reverse_offset_normal(a_Normal);\n \n vec2 offset = project_pixel(size.xy);\n\n vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy + offset, 0.0, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0));\n }\n}\n':'attribute float a_Miter;\nattribute vec4 a_Color;\nattribute vec2 a_Size;\nattribute vec3 a_Normal;\nattribute vec3 a_Position;\n\n// uniform vec2 u_tileOrigin;\n// uniform float u_coord;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\n\n#pragma include "projection"\n#pragma include "picking"\n\nvarying vec4 v_color;\n\nvoid main() {\n v_color = a_Color;\n\n vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal);\n \n vec2 offset = project_pixel(size.xy);\n\n vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0));\n\n // if(u_coord > 0.0) { // 使用经纬度坐标\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy + offset, 0.0, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0));\n }\n // } else { // 使用偏移坐标\n // vec2 pointPos = a_Position.xy;\n // vec4 tileWorld = vec4(project_mvt_offset_position(vec4(u_tileOrigin, 0.0, 1.0)).xyz, 1.0); // 瓦片起始点的世界坐标\n\n // vec2 pointOffset = pointPos * pow(2.0, u_Zoom); // 瓦片内的点的偏移坐标\n \n // tileWorld.xy += pointOffset;\n\n // tileWorld.xy += offset;\n\n // if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // // Needs to be divided with project_uCommonUnitsPerMeter\n // tileWorld.w *= u_PixelsPerMeter.z;\n // }\n // gl_Position = u_ViewProjectionMatrix * tileWorld + u_ViewportCenterProjection;\n // }\n\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:"basemap"===p?"uniform float u_opacity : 1.0;\nuniform vec4 u_color;\n\nvoid main() {\n gl_FragColor = u_color;\n gl_FragColor.a *= u_opacity;\n}\n":'uniform float u_opacity : 1.0;\nvarying vec4 v_color;\n\n#pragma include "picking"\n\nvoid main() {\n gl_FragColor = v_color;\n gl_FragColor.a *= u_opacity;\n gl_FragColor = filterColor(gl_FragColor);\n}\n',triangulation:a.e,blend:this.getBlend(),depth:{enable:f},stencil:Object(o.bb)(i,s),pick:"basemap"!==p}).then((function(e){t([e])})).catch((function(e){console.warn(e),t([])}));case 3:case"end":return e.stop()}}),e,this)})),h=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=c.apply(e,t);function i(e){s(o,n,r,i,a,"next",e)}function a(e){s(o,n,r,i,a,"throw",e)}i(void 0)}))},function(e){return h.apply(this,arguments)})},{key:"registerBuiltinAttributes",value:function(){"basemap"!==this.layer.getLayerConfig().usage&&this.styleAttributeService.registerStyleAttribute({name:"size",type:r.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:2,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0],n[1]]:[n,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:r.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:r.gl.STATIC_DRAW,data:[],type:r.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:r.AttributeType.Attribute,descriptor:{name:"a_Miter",buffer:{usage:r.gl.STATIC_DRAW,data:[],type:r.gl.FLOAT},size:1,update:function(e,t,n){return[n[4]]}}})}}])&&f(t.prototype,n),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),y}(i.a)},leTh:function(e,t,n){"use strict";var r=n("7P48").equals,o=n("CdeR"),i=n("MJCZ")("equals"),a=n("jDfB")("equals"),c=function(e,t){return"function"==typeof e[r]?e[r](t):function(e){return"function"==typeof e.equals}(e)?i(e.equals(t)):a(e)};c.curried=o(2,(function(e,t){return c(t,e)})),c.infix=function(e){return c(this,e)},e.exports=c},lhaq:function(e,t,n){var r=n("gVvV");e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},lhjL:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},lkze:function(e,t,n){"use strict";var r=n("cxan"),o=n("zygG"),i=n("mDRv"),a=n("ERkP"),c=n("2/Rp"),u=n("zvFY");function s(e){return!(!e||!e.then)}t.a=function(e){var t=a.useRef(!1),n=a.useRef(),l=Object(i.a)(!1),f=Object(o.a)(l,2),p=f[0],d=f[1],h=e.close,v=function(){null==h||h.apply(void 0,arguments)};a.useEffect((function(){var t;if(e.autoFocus){var r=n.current;t=setTimeout((function(){return r.focus()}))}return function(){t&&clearTimeout(t)}}),[]);var y=e.type,m=e.children,g=e.prefixCls,b=e.buttonProps;return a.createElement(c.a,Object(r.a)({},Object(u.a)(y),{onClick:function(n){var r=e.actionFn;if(!t.current)if(t.current=!0,r){var o;if(e.emitEvent){if(o=r(n),e.quitOnNullishReturnValue&&!s(o))return t.current=!1,void v(n)}else if(r.length)o=r(h),t.current=!1;else if(!(o=r()))return void v();!function(e){s(e)&&(d(!0),e.then((function(){d(!1,!0),v.apply(void 0,arguments),t.current=!1}),(function(e){console.error(e),d(!1,!0),t.current=!1})))}(o)}else v()},loading:p,prefixCls:g},b,{ref:n}),m)}},lmpI:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return i}));n("6JDI"),n("nndn"),n("ct5l");var r=1e-6,o="undefined"!=typeof Float32Array?Float32Array:Array,i=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)})},lrIw:function(e,t,n){"use strict";var r=n("cxan"),o=n("4wDe"),i=n("zygG"),a=n("O94r"),c=n.n(a),u=n("6Qj0"),s=n("WSTu"),l=n("ERkP"),f=n("H84U"),p=n("2fM7"),d=n("0n0R"),h=p.a.Option;function v(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var y=function(e,t){var n,a=e.prefixCls,y=e.className,m=e.children,g=e.dataSource,b=Object(u.a)(m);if(1===b.length&&Object(d.b)(b[0])&&!v(b[0])){var O=Object(i.a)(b,1);n=O[0]}var w,_=n?function(){return n}:void 0;return w=b.length&&v(b[0])?m:g?g.map((function(e){if(Object(d.b)(e))return e;switch(Object(o.a)(e)){case"string":return l.createElement(h,{key:e,value:e},e);case"object":var t=e.value;return l.createElement(h,{key:t,value:t},e.text);default:return}})):[],l.createElement(f.a,null,(function(n){var o=(0,n.getPrefixCls)("select",a);return l.createElement(p.a,Object(r.a)({ref:t},Object(s.a)(e,["dataSource"]),{prefixCls:o,className:c()("".concat(o,"-auto-complete"),y),mode:p.a.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:_}),w)}))},m=l.forwardRef(y);m.Option=h,t.a=m},lruq:function(e,t,n){},lw3w:function(e,t,n){e.exports=function(){return null}},m2YG:function(e,t,n){var r=n("fWyh");e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},m5o6:function(e,t,n){var r=n("Tv3l"),o=n("+ooz"),i=n("qeCs");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},mAxt:function(e,t,n){var r=n("AuHH"),o=n("695J"),i=n("fkDJ"),a=n("rDK1");function c(t){var n="function"==typeof Map?new Map:void 0;return e.exports=c=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,c(t)}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},mDRv:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("zygG"),o=n("ERkP");function i(e){var t=o.useRef(!1),n=o.useState(e),i=Object(r.a)(n,2),a=i[0],c=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||c(e)}]}},mGvo:function(e,t,n){var r=n("Dhk8"),o=n("tLQN");e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},mGzy:function(e,t,n){var r=n("IBsm").Uint8Array;e.exports=r},mUsV:function(e,t,n){var r=n("5pfJ");e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},mY5j:function(e,t,n){var r=n("cl7Q");function o(t,n){var r=t.geometry,o=r.type;if("LineString"===o)r.coordinates=e.exports.simplify(r.coordinates,n);else if("Polygon"===o||"MultiLineString"===o)for(var i=0;i<r.coordinates.length;i++)r.coordinates[i]=e.exports.simplify(r.coordinates[i],n);else if("MultiPolygon"===o)for(var a=0;a<r.coordinates.length;a++)for(var c=0;c<r.coordinates[a].length;c++)r.coordinates[a][c]=e.exports.simplify(r.coordinates[a][c],n);return t}e.exports=function(e,t,n){return n||(e=JSON.parse(JSON.stringify(e))),e.features?function(e,t){for(var n=0;n<e.features.length;n++)e.features[n]=o(e.features[n],t);return e}(e,t):e.type&&"Feature"===e.type?o(e,t):new Error("FeatureCollection or individual Feature required")},e.exports.simplify=function(e,t){return r(e,t)}},"mg+6":function(e,t,n){var r=n("lhaq"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},"mh/l":function(e,t,n){"use strict";n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return L}));var r=n("zjfJ"),o=n("cxan"),i=n("4wDe"),a=n("+RZ0"),c=n("O94r"),u=n.n(c),s=n("ERkP"),l=n.n(s);function f(e){return!(!e.addonBefore&&!e.addonAfter)}function p(e){return!!(e.prefix||e.suffix||e.allowClear)}function d(e,t,n,r){if(n){var o=t;if("click"===t.type){var i=e.cloneNode(!0);return o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)}if(void 0!==r)return o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o);n(o)}}function h(e){return null==e?"":String(e)}var v=function(e){var t=e.inputElement,n=e.prefixCls,o=e.prefix,a=e.suffix,c=e.addonBefore,d=e.addonAfter,h=e.className,v=e.style,y=e.affixWrapperClassName,m=e.groupClassName,g=e.wrapperClassName,b=e.disabled,O=e.readOnly,w=e.focused,_=e.triggerFocus,x=e.allowClear,E=e.value,S=e.handleReset,C=e.hidden,j=Object(s.useRef)(null),k=Object(s.cloneElement)(t,{value:E,hidden:C});if(p(e)){var P,T="".concat(n,"-affix-wrapper"),M=u()(T,(P={},Object(r.a)(P,"".concat(T,"-disabled"),b),Object(r.a)(P,"".concat(T,"-focused"),w),Object(r.a)(P,"".concat(T,"-readonly"),O),Object(r.a)(P,"".concat(T,"-input-with-clear-btn"),a&&x&&E),P),!f(e)&&h,y),A=(a||x)&&l.a.createElement("span",{className:"".concat(n,"-suffix")},function(){var e;if(!x)return null;var t=!b&&!O&&E,o="".concat(n,"-clear-icon"),c="object"===Object(i.a)(x)&&(null==x?void 0:x.clearIcon)?x.clearIcon:"✖";return l.a.createElement("span",{onClick:S,onMouseDown:function(e){return e.preventDefault()},className:u()(o,(e={},Object(r.a)(e,"".concat(o,"-hidden"),!t),Object(r.a)(e,"".concat(o,"-has-suffix"),!!a),e)),role:"button",tabIndex:-1},c)}(),a);k=l.a.createElement("span",{className:M,style:v,hidden:!f(e)&&C,onMouseDown:function(e){var t;(null===(t=j.current)||void 0===t?void 0:t.contains(e.target))&&(null==_||_())},ref:j},o&&l.a.createElement("span",{className:"".concat(n,"-prefix")},o),Object(s.cloneElement)(t,{style:null,value:E,hidden:null}),A)}if(f(e)){var L="".concat(n,"-group"),R="".concat(L,"-addon"),N=u()("".concat(n,"-wrapper"),L,g),I=u()("".concat(n,"-group-wrapper"),h,m);return l.a.createElement("span",{className:I,style:v,hidden:C},l.a.createElement("span",{className:N},c&&l.a.createElement("span",{className:R},c),Object(s.cloneElement)(k,{style:null,hidden:null}),d&&l.a.createElement("span",{className:R},d)))}return k},y=n("fGyu"),m=n("Czhu"),g=n("zygG"),b=n("HbGN"),O=n("WSTu"),w=n("MSM+"),_=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName"],x=Object(s.forwardRef)((function(e,t){var n=e.autoComplete,o=e.onChange,a=e.onFocus,c=e.onBlur,x=e.onPressEnter,E=e.onKeyDown,S=e.prefixCls,C=void 0===S?"rc-input":S,j=e.disabled,k=e.htmlSize,P=e.className,T=e.maxLength,M=e.suffix,A=e.showCount,L=e.type,R=void 0===L?"text":L,N=e.inputClassName,I=Object(b.a)(e,_),D=Object(w.a)(e.defaultValue,{value:e.value}),F=Object(g.a)(D,2),z=F[0],B=F[1],U=Object(s.useState)(!1),V=Object(g.a)(U,2),H=V[0],G=V[1],W=Object(s.useRef)(null),Y=function(e){W.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}(W.current,e)};Object(s.useImperativeHandle)(t,(function(){return{focus:Y,blur:function(){var e;null===(e=W.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=W.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=W.current)||void 0===e||e.select()},input:W.current}})),Object(s.useEffect)((function(){G((function(e){return(!e||!j)&&e}))}),[j]);var K,X=function(t){void 0===e.value&&B(t.target.value),W.current&&d(W.current,t,o)},q=function(e){x&&"Enter"===e.key&&x(e),null==E||E(e)},Z=function(e){G(!0),null==a||a(e)},J=function(e){G(!1),null==c||c(e)};return l.a.createElement(v,Object(m.a)(Object(m.a)({},I),{},{prefixCls:C,className:P,inputElement:(K=Object(O.a)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName","htmlSize"]),l.a.createElement("input",Object(m.a)(Object(m.a)({autoComplete:n},K),{},{onChange:X,onFocus:Z,onBlur:J,onKeyDown:q,className:u()(C,Object(r.a)({},"".concat(C,"-disabled"),j),N,!f(e)&&!p(e)&&P),ref:W,size:k,type:R}))),handleReset:function(e){B(""),Y(),W.current&&d(W.current,e,o)},value:h(z),focused:H,triggerFocus:Y,suffix:function(){var e=Number(T)>0;if(M||A){var t=Object(y.a)(h(z)).length,n="object"===Object(i.a)(A)?A.formatter({count:t,maxLength:T}):"".concat(t).concat(e?" / ".concat(T):"");return l.a.createElement(l.a.Fragment,null,!!A&&l.a.createElement("span",{className:u()("".concat(C,"-show-count-suffix"),Object(r.a)({},"".concat(C,"-show-count-has-suffix"),!!M))},n),M)}return null}(),disabled:j}))})),E=n("uwWy"),S=n("H84U"),C=n("caoh"),j=n("3Nzz"),k=n("ihLV"),P=n("ATYA");var T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function M(e){return null==e?"":String(e)}function A(e,t,n,r){if(n){var o=t;if("click"===t.type){var i=e.cloneNode(!0);return o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)}if(void 0!==r)return o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o);n(o)}}function L(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var R=Object(s.forwardRef)((function(e,t){var n,c,f,p=e.prefixCls,d=e.bordered,h=void 0===d||d,v=e.status,y=e.size,m=e.disabled,g=e.onBlur,b=e.onFocus,O=e.suffix,w=e.allowClear,_=e.addonAfter,M=e.addonBefore,A=T(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore"]),L=l.a.useContext(S.b),R=L.getPrefixCls,N=L.direction,I=L.input,D=R("input",p),F=Object(s.useRef)(null),z=l.a.useContext(j.b),B=y||z,U=l.a.useContext(C.b),V=m||U,H=Object(s.useContext)(k.b),G=H.status,W=H.hasFeedback,Y=H.feedbackIcon,K=Object(P.a)(G,v),X=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!W,q=Object(s.useRef)(X);Object(s.useEffect)((function(){X&&q.current,q.current=X}),[X]);var Z=Object(s.useRef)([]),J=function(){Z.current.push(window.setTimeout((function(){var e,t,n,r;(null===(e=F.current)||void 0===e?void 0:e.input)&&"password"===(null===(t=F.current)||void 0===t?void 0:t.input.getAttribute("type"))&&(null===(n=F.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(r=F.current)||void 0===r||r.input.removeAttribute("value"))})))};Object(s.useEffect)((function(){return J(),function(){return Z.current.forEach((function(e){return window.clearTimeout(e)}))}}),[]);var Q,$=(W||O)&&l.a.createElement(l.a.Fragment,null,O,W&&Y);return"object"===Object(i.a)(w)&&(null==w?void 0:w.clearIcon)?Q=w:w&&(Q={clearIcon:l.a.createElement(a.a,null)}),l.a.createElement(x,Object(o.a)({ref:Object(E.a)(t,F),prefixCls:D,autoComplete:null==I?void 0:I.autoComplete},A,{disabled:V||void 0,onBlur:function(e){J(),null==g||g(e)},onFocus:function(e){J(),null==b||b(e)},suffix:$,allowClear:Q,addonAfter:_&&l.a.createElement(k.e,{override:!0,status:!0},_),addonBefore:M&&l.a.createElement(k.e,{override:!0,status:!0},M),inputClassName:u()((n={},Object(r.a)(n,"".concat(D,"-sm"),"small"===B),Object(r.a)(n,"".concat(D,"-lg"),"large"===B),Object(r.a)(n,"".concat(D,"-rtl"),"rtl"===N),Object(r.a)(n,"".concat(D,"-borderless"),!h),n),!X&&Object(P.b)(D,K)),affixWrapperClassName:u()((c={},Object(r.a)(c,"".concat(D,"-affix-wrapper-sm"),"small"===B),Object(r.a)(c,"".concat(D,"-affix-wrapper-lg"),"large"===B),Object(r.a)(c,"".concat(D,"-affix-wrapper-rtl"),"rtl"===N),Object(r.a)(c,"".concat(D,"-affix-wrapper-borderless"),!h),c),Object(P.b)("".concat(D,"-affix-wrapper"),K,W)),wrapperClassName:u()(Object(r.a)({},"".concat(D,"-group-rtl"),"rtl"===N)),groupClassName:u()((f={},Object(r.a)(f,"".concat(D,"-group-wrapper-sm"),"small"===B),Object(r.a)(f,"".concat(D,"-group-wrapper-lg"),"large"===B),Object(r.a)(f,"".concat(D,"-group-wrapper-rtl"),"rtl"===N),f),Object(P.b)("".concat(D,"-group-wrapper"),K,W))}))}));t.a=R},miYZ:function(e,t,n){"use strict";n("EFp3"),n("bXwC")},mpCQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r,o,i,a=n("pufz");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f,p,d,h,v,y,m=(r=Object(a.lazyInject)(a.TYPES.IGlobalConfigService),o=function(){function e(t){var n,r,o,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,r="configService",a=this,(o=i)&&Object.defineProperty(n,r,{enumerable:o.enumerable,configurable:o.configurable,writable:o.writable,value:o.initializer?o.initializer.call(a):void 0}),this.config=t}var t,n,r;return t=e,(n=[{key:"setContainer",value:function(e,t,n,r){e.bind(a.TYPES.MapConfig).toConstantValue(u(u({},this.config),{},{id:t,canvas:n,hasBaseMap:r})),e.bind(a.TYPES.IMapService).to(this.getServiceConstructor()).inSingletonScope()}},{key:"getServiceConstructor",value:function(){throw new Error("Method not implemented.")}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),f=o.prototype,p="configService",d=[r],h={configurable:!0,enumerable:!0,writable:!0,initializer:null},y={},Object.keys(h).forEach((function(e){y[e]=h[e]})),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=d.slice().reverse().reduce((function(e,t){return t(f,p,e)||e}),y),v&&void 0!==y.initializer&&(y.value=y.initializer?y.initializer.call(v):void 0,y.initializer=void 0),void 0===y.initializer&&(Object.defineProperty(f,p,y),y=null),i=y,o)},mr32:function(e,t,n){"use strict";var r=n("zjfJ"),o=n("cxan"),i=n("zygG"),a=n("Sp6C"),c=n("O94r"),u=n.n(c),s=n("WSTu"),l=n("ERkP"),f=n("H84U"),p=n("09Wf"),d=n("g0mS"),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},v=function(e){var t,n=e.prefixCls,i=e.className,a=e.checked,c=e.onChange,s=e.onClick,p=h(e,["prefixCls","className","checked","onChange","onClick"]),d=(0,l.useContext(f.b).getPrefixCls)("tag",n),v=u()(d,(t={},Object(r.a)(t,"".concat(d,"-checkable"),!0),Object(r.a)(t,"".concat(d,"-checkable-checked"),a),t),i);return l.createElement("span",Object(o.a)({},p,{className:v,onClick:function(e){null==c||c(!a),null==s||s(e)}}))},y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=new RegExp("^(".concat(p.a.join("|"),")(-inverse)?$")),g=new RegExp("^(".concat(p.b.join("|"),")$")),b=function(e,t){var n,c=e.prefixCls,p=e.className,h=e.style,v=e.children,b=e.icon,O=e.color,w=e.onClose,_=e.closeIcon,x=e.closable,E=void 0!==x&&x,S=y(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),C=l.useContext(f.b),j=C.getPrefixCls,k=C.direction,P=l.useState(!0),T=Object(i.a)(P,2),M=T[0],A=T[1];l.useEffect((function(){"visible"in S&&A(S.visible)}),[S.visible]);var L=function(){return!!O&&(m.test(O)||g.test(O))},R=Object(o.a)({backgroundColor:O&&!L()?O:void 0},h),N=L(),I=j("tag",c),D=u()(I,(n={},Object(r.a)(n,"".concat(I,"-").concat(O),N),Object(r.a)(n,"".concat(I,"-has-color"),O&&!N),Object(r.a)(n,"".concat(I,"-hidden"),!M),Object(r.a)(n,"".concat(I,"-rtl"),"rtl"===k),n),p),F=function(e){e.stopPropagation(),null==w||w(e),e.defaultPrevented||"visible"in S||A(!1)},z="onClick"in S||v&&"a"===v.type,B=Object(s.a)(S,["visible"]),U=b||null,V=U?l.createElement(l.Fragment,null,U,l.createElement("span",null,v)):v,H=l.createElement("span",Object(o.a)({},B,{ref:t,className:D,style:R}),V,E?_?l.createElement("span",{className:"".concat(I,"-close-icon"),onClick:F},_):l.createElement(a.a,{className:"".concat(I,"-close-icon"),onClick:F}):null);return z?l.createElement(d.a,null,H):H},O=l.forwardRef(b);O.CheckableTag=v;t.a=O},mr4r:function(e,t,n){"use strict";t.a=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},myUI:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},n1QJ:function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},n1Tc:function(e,t){var n=1e3,r=6e4,o=60*r,i=24*o;function a(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===c&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return a(e,t,i,"day");if(t>=o)return a(e,t,o,"hour");if(t>=r)return a(e,t,r,"minute");if(t>=n)return a(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},n1rt:function(e,t){function n(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}e.exports=n,n.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},n.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},n.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},n.prototype.solveCurveX=function(e,t){var n,r,o,i,a;for(void 0===t&&(t=1e-6),o=e,a=0;a<8;a++){if(i=this.sampleCurveX(o)-e,Math.abs(i)<t)return o;var c=this.sampleCurveDerivativeX(o);if(Math.abs(c)<1e-6)break;o-=i/c}if((o=e)<(n=0))return n;if(o>(r=1))return r;for(;n<r;){if(i=this.sampleCurveX(o),Math.abs(i-e)<t)return o;e>i?n=o:r=o,o=.5*(r-n)+n}return o},n.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}},n70c:function(e,t,n){var r=n("PxXD");function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},n9Bf:function(e,t,n){},nDih:function(e,t,n){var r=n("Dhk8"),o=n("wxYD"),i=n("tLQN");e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},ncrz:function(e,t,n){"use strict";n("EFp3"),n("YkAm");var r=n("+KLJ"),o=n("r6MD"),i=n("ERkP"),a=n.n(i),c=n("Czhu"),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.6c-3.7 11.6-5.6 23.9-5.6 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1z"}}]},name:"notification",theme:"filled"},s=n("vspj"),l=function(e,t){return i.createElement(s.a,Object(c.a)(Object(c.a)({},e),{},{ref:t,icon:u}))};l.displayName="NotificationFilled";var f=i.forwardRef(l),p=n("O94r"),d=n.n(p),h=n("Mwn6"),v=n.n(h),y=["message","bannerId","localStorageId"];function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.message,n=e.bannerId,c=e.localStorageId,u=b(e,y),s="undefined"!=typeof window;return Object(i.useEffect)((function(){try{var e=s&&localStorage.getItem(c)||"{}";!1!==Object(o.a)(JSON.parse(e),[n])&&s&&localStorage.setItem(c,JSON.stringify(g({},n,!0)))}catch(t){console.error(t)}}),[n]),Object(o.a)(JSON.parse(s&&localStorage.getItem(c)||"{}"),[n])?a.a.createElement(r.a,m({message:t,type:"info",showIcon:!0,icon:a.a.createElement(f,{style:{height:"16px",color:"#4776E8"}}),closable:!0,className:d()("banner-announcement",v.a.bannerAnnouncement),onClose:function(){s&&localStorage.setItem(c,JSON.stringify(g({},n,!1)))}},u)):null}},nfwc:function(e,t,n){"use strict";n.d(t,"a",(function(){return he}));var r=n("Gf+y"),o=n("i6qf"),i=n("sVvE"),a=n("r0HX"),c=n("YM9j"),u=n("sHq1"),s=n("H+8G"),l=n("hlMf"),f=n("mGvo"),p=n.n(f),d=n("pufz"),h=n("zEXi"),v=n("pfNN"),y=n("PGAt");function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(i,e);var t,n,r,o=x(i);function i(){return O(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.heightfixed,o=void 0!==r&&r,i=e.raisingHeight,a=void 0===i?0:i,c=e.topsurface,u=void 0===c||c,s=e.sidesurface,l=void 0===s||s,f=e.sourceColor,v=e.targetColor;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n})){this.judgeStyleAttributes({opacity:n});var y=this.layer.getEncodedData(),m=this.calDataFrame(this.cellLength,y,this.cellProperties),g=m.data,b=m.width,O=m.height;this.rowCount=O,this.dataTexture=this.cellLength>0&&g.length>0?this.createTexture2D({flipY:!0,data:g,format:d.gl.LUMINANCE,type:d.gl.FLOAT,width:b,height:O}):this.createTexture2D({flipY:!0,data:[1],format:d.gl.LUMINANCE,type:d.gl.FLOAT,width:1,height:1})}var w=0,_=[1,1,1,1],x=[1,1,1,1];return f&&v&&(_=Object(h.Eb)(f),x=Object(h.Eb)(v),w=1),{u_topsurface:Number(u),u_sidesurface:Number(l),u_heightfixed:Number(o),u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_raisingHeight:Number(a),u_opacity:p()(n)?n:1,u_linearColor:w,u_sourceColor:_,u_targetColor:x,u_texture:this.texture}}},{key:"initModels",value:function(e){this.loadTexture(),this.buildModels(e)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o,a=this.getShaders(),c=a.frag,u=a.vert,s=a.type;this.layer.buildLayerModel({moduleName:s,vertexShader:u,fragmentShader:c,triangulation:y.i,stencil:Object(h.bb)(r,i)}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"getShaders",value:function(){var e=this.layer.getLayerConfig(),t=e.pickLight;return e.mapTexture?{frag:'uniform sampler2D u_texture;\nuniform float u_opacity: 1.0;\nuniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\nuniform float u_linearColor: 0;\n\nuniform float u_topsurface: 1.0;\nuniform float u_sidesurface: 1.0;\n\nvarying vec4 v_Color;\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n#pragma include "picking"\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float isSide = styleMappingMat[0][3];\n float lightWeight = styleMappingMat[3][1];\n float topU = styleMappingMat[2][2];\n float topV = styleMappingMat[2][3];\n\n float sidey = styleMappingMat[3][0];\n if(isSide < 1.0) {\n // side face\n if(u_sidesurface < 1.0) {\n discard;\n }\n\n if(u_linearColor == 1.0) {\n vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey);\n linearColor.rgb *= lightWeight;\n gl_FragColor = linearColor;\n } else {\n gl_FragColor = v_Color;\n }\n } else {\n\n // top face\n if(u_topsurface < 1.0) {\n discard;\n }\n\n gl_FragColor = texture2D(u_texture, vec2(topU, topV));\n }\n \n\n gl_FragColor.a *= opacity;\n gl_FragColor = filterColor(gl_FragColor);\n}\n',vert:'precision highp float;\n\n#define ambientRatio 0.5\n#define diffuseRatio 0.3\n#define specularRatio 0.2\n\nattribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec3 a_Normal;\nattribute float a_Size;\nattribute vec3 a_uvs;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\nvarying vec4 v_Color;\nuniform float u_heightfixed: 0.0; // 默认不固定\nuniform float u_raisingHeight: 0.0;\nuniform float u_opacity: 1.0;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "light"\n#pragma include "picking"\n\nvoid main() {\n v_Color = a_Color;\n\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - a_Position.z(judge side by a_Position.z)\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - u - v\n 0.0, 0.0, 0.0, 0.0 // sidey\n );\n \n styleMappingMat[0][3] = a_Position.z;\n styleMappingMat[2][2] = a_uvs[0];\n styleMappingMat[2][3] = 1.0 - a_uvs[1];\n styleMappingMat[3][0] = a_uvs[2];\n\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0);\n vec4 project_pos = project_position(pos);\n\n if(u_heightfixed > 0.0) { // 判断几何体是否固定高度\n project_pos.z = a_Position.z * a_Size;\n project_pos.z += u_raisingHeight;\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n project_pos.z *= mapboxZoomScale;\n project_pos.z += u_raisingHeight * mapboxZoomScale;\n }\n }\n\n // project_pos.z += 500000.0; // amap1\n\n // project_pos.z += (500000.0 * 4.0)/pow(2.0, 21.0 - u_Zoom); // mapbox\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n // gl_Position = u_Mvp * (vec4(project_pos.xyz * vec3(1.0, 1.0, -1.0), 1.0));\n gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n\n float lightWeight = calc_lighting(pos);\n styleMappingMat[3][1] = lightWeight;\n\n setPickingColor(a_PickingColor);\n}\n',type:"polygonExtrudeTexture"}:t?{frag:'uniform float u_opacity: 1.0;\nuniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\nuniform float u_linearColor: 0;\n\nuniform float u_topsurface: 1.0;\nuniform float u_sidesurface: 1.0;\n\nvarying vec4 v_Color;\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n#pragma include "picking"\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float isSide = styleMappingMat[0][3];\n float sidey = styleMappingMat[3][0];\n float lightWeight = styleMappingMat[3][1];\n\n if(isSide < 1.0) {\n // side face\n if(u_sidesurface < 1.0) {\n discard;\n }\n \n if( u_linearColor == 1.0) {\n // side use linear\n vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey);\n linearColor.rgb *= lightWeight;\n gl_FragColor = linearColor;\n } else {\n // side notuse linear\n gl_FragColor = v_Color;\n }\n } else {\n // top face\n if(u_topsurface < 1.0) {\n discard;\n }\n gl_FragColor = v_Color;\n }\n\n gl_FragColor.a *= opacity;\n gl_FragColor = filterColorAlpha(gl_FragColor, lightWeight);\n}\n',vert:'precision highp float;\n\n#define ambientRatio 0.5\n#define diffuseRatio 0.3\n#define specularRatio 0.2\n\nattribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec3 a_Normal;\nattribute float a_Size;\nattribute vec3 a_uvs;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\nvarying vec4 v_Color;\nuniform float u_heightfixed: 0.0; // 默认不固定\nuniform float u_raisingHeight: 0.0;\nuniform float u_opacity: 1.0;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "light"\n#pragma include "picking"\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - isSide\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // sidey\n );\n styleMappingMat[0][3] = a_Position.z;\n styleMappingMat[3][0] = a_uvs[2];\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0);\n vec4 project_pos = project_position(pos);\n\n if(u_heightfixed > 0.0) { // 判断几何体是否固定高度\n project_pos.z = a_Position.z * a_Size;\n project_pos.z += u_raisingHeight;\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n project_pos.z *= mapboxZoomScale;\n project_pos.z += u_raisingHeight * mapboxZoomScale;\n }\n }\n\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n // gl_Position = u_Mvp * (vec4(project_pos.xyz * vec3(1.0, 1.0, -1.0), 1.0));\n gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n\n float lightWeight = calc_lighting(pos);\n // v_Color = a_Color;\n v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w);\n\n styleMappingMat[3][1] = lightWeight;\n\n setPickingColor(a_PickingColor);\n}\n',type:"polygonExtrudePickLight"}:{frag:'uniform float u_opacity: 1.0;\nuniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\nuniform float u_linearColor: 0;\n\nuniform float u_topsurface: 1.0;\nuniform float u_sidesurface: 1.0;\n\nvarying vec4 v_Color;\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n#pragma include "picking"\n\nvoid main() {\n float opacity = styleMappingMat[0][0]; \n float isSide = styleMappingMat[0][3];\n float sidey = styleMappingMat[3][0];\n float lightWeight = styleMappingMat[3][1];\n\n if(isSide < 1.0) {\n // side face\n if(u_sidesurface < 1.0) {\n discard;\n }\n\n if(u_linearColor == 1.0) {\n vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey);\n linearColor.rgb *= lightWeight;\n gl_FragColor = linearColor;\n } else {\n gl_FragColor = v_Color;\n }\n\n } else {\n // top face\n if(u_topsurface < 1.0) {\n discard;\n }\n\n gl_FragColor = v_Color;\n }\n\n gl_FragColor.a *= opacity;\n gl_FragColor = filterColor(gl_FragColor);\n}\n',vert:'precision highp float;\n\n#define ambientRatio 0.5\n#define diffuseRatio 0.3\n#define specularRatio 0.2\n\nattribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec3 a_Normal;\nattribute float a_Size;\nattribute vec3 a_uvs;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\nvarying vec4 v_Color;\nuniform float u_heightfixed: 0.0; // 默认不固定\nuniform float u_raisingHeight: 0.0;\nuniform float u_opacity: 1.0;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "light"\n#pragma include "picking"\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - isSide\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0 // sidey\n );\n styleMappingMat[0][3] = a_Position.z;\n styleMappingMat[3][0] = a_uvs[2];\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0);\n vec4 project_pos = project_position(pos);\n\n if(u_heightfixed > 0.0) { // 判断几何体是否固定高度\n project_pos.z = a_Position.z * a_Size;\n project_pos.z += u_raisingHeight;\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n project_pos.z *= mapboxZoomScale;\n project_pos.z += u_raisingHeight * mapboxZoomScale;\n }\n }\n\n // project_pos.z += 500000.0; // amap1\n\n // project_pos.z += (500000.0 * 4.0)/pow(2.0, 21.0 - u_Zoom); // mapbox\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n // gl_Position = u_Mvp * (vec4(project_pos.xyz * vec3(1.0, 1.0, -1.0), 1.0));\n gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n\n float lightWeight = calc_lighting(pos);\n // v_Color = a_Color;\n v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w);\n\n styleMappingMat[3][1] = lightWeight;\n\n setPickingColor(a_PickingColor);\n}\n',type:"polygonExtrude"}}},{key:"clearModels",value:function(){var e,t;null===(e=this.dataTexture)||void 0===e||e.destroy(),null===(t=this.texture)||void 0===t||t.destroy()}},{key:"registerBuiltinAttributes",value:function(){var e=g(this.layer.getSource().extent,4),t=e[0],n=e[1],r=e[2],o=e[3],i=r-t,a=o-n;this.styleAttributeService.registerStyleAttribute({name:"uvs",type:d.AttributeType.Attribute,descriptor:{name:"a_uvs",buffer:{usage:d.gl.STATIC_DRAW,data:[],type:d.gl.FLOAT},size:3,update:function(e,r,o){var c=o[0],u=o[1];return[(c-t)/i,(u-n)/a,o[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:d.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:d.gl.STATIC_DRAW,data:[],type:d.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:d.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:d.gl.DYNAMIC_DRAW,data:[],type:d.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?10:t;return Array.isArray(n)?[n[0]]:[n]}}})}},{key:"loadTexture",value:function(){var e=this,t=this.layer.getLayerConfig().mapTexture,n=this.rendererService.createTexture2D;if(this.texture=n({height:0,width:0}),t){var r=new Image;r.crossOrigin="",r.src=t,r.onload=function(){e.texture=n({data:r,width:r.width,height:r.height,wrapS:d.gl.CLAMP_TO_EDGE,wrapT:d.gl.CLAMP_TO_EDGE,min:d.gl.LINEAR,mag:d.gl.LINEAR}),e.layerService.reRender()}}}}])&&w(t.prototype,n),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(v.a);function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){if(t&&("object"===j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(i,e);var t,n,r,o=M(i);function i(){return k(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.raisingHeight,n=void 0===t?0:t,r=e.opacity,o=void 0===r?1:r,i=e.opacityLinear,a=void 0===i?{enable:!1,dir:"in"}:i;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:o})){this.judgeStyleAttributes({opacity:o});var c=this.layer.getEncodedData(),u=this.calDataFrame(this.cellLength,c,this.cellProperties),s=u.data,l=u.width,f=u.height;this.rowCount=f,this.dataTexture=this.cellLength>0&&s.length>0?this.createTexture2D({flipY:!0,data:s,format:d.gl.LUMINANCE,type:d.gl.FLOAT,width:l,height:f}):this.createTexture2D({flipY:!0,data:[1],format:d.gl.LUMINANCE,type:d.gl.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_raisingHeight:Number(n),u_opacity:p()(o)?o:1,u_opacitylinear:Number(a.enable),u_dir:"in"===a.dir?1:0}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:function(e){var t=this.getModelParams(),n=t.frag,r=t.vert,o=t.triangulation,i=t.type,a=this.layer.getLayerConfig(),c=a.mask,u=void 0!==c&&c,s=a.maskInside,l=void 0===s||s,f=a.workerEnabled,p=void 0!==f&&f,v=a.enablePicking;this.layer.triangulation=o,this.layer.buildLayerModel({moduleName:i,vertexShader:r,fragmentShader:n,triangulation:o,primitive:d.gl.TRIANGLES,depth:{enable:!1},blend:this.getBlend(),stencil:Object(h.bb)(u,l),workerEnabled:p,workerOptions:{modelType:i,enablePicking:v}}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){var e;null===(e=this.dataTexture)||void 0===e||e.destroy()}},{key:"registerBuiltinAttributes",value:function(){var e=this.layer.getLayerConfig().opacityLinear;(void 0===e?{enable:!1,dir:"in"}:e).enable&&this.styleAttributeService.registerStyleAttribute({name:"linear",type:d.AttributeType.Attribute,descriptor:{name:"a_linear",buffer:{usage:d.gl.STATIC_DRAW,data:[],type:d.gl.FLOAT},size:3,update:function(e,t,n){return[n[3],n[4],n[5]]}}})}},{key:"getModelParams",value:function(){var e=this.layer.getLayerConfig().opacityLinear;return(void 0===e?{enable:!1}:e).enable?{frag:'uniform float u_opacity: 1.0;\nvarying vec4 v_Color;\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\n#pragma include "picking"\nuniform float u_opacitylinear: 0.0;\nuniform float u_dir: 1.0;\nvarying vec3 v_linear;\nvarying vec2 v_pos;\n\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n gl_FragColor = v_Color;\n \n if(u_opacitylinear > 0.0) {\n gl_FragColor.a *= u_dir == 1.0 ? 1.0 - length(v_pos - v_linear.xy)/v_linear.z : length(v_pos - v_linear.xy)/v_linear.z;\n }\n\n gl_FragColor.a *= opacity;\n gl_FragColor = filterColor(gl_FragColor);\n}\n',vert:'attribute vec4 a_Color;\nattribute vec3 a_Position;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float u_opacity: 1.0;\nuniform float u_raisingHeight: 0.0;\n\nvarying vec4 v_Color;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "picking"\n\nuniform float u_opacitylinear: 0.0;\n\nattribute vec3 a_linear;\nvarying vec3 v_linear;\nvarying vec2 v_pos;\n\nvoid main() {\n if(u_opacitylinear > 0.0) {\n v_linear = a_linear;\n v_pos = a_Position.xy;\n }\n \n // cal style mapping - 数据纹理映射部分的计算\nstyleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n v_Color = a_Color;\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n project_pos.z += u_raisingHeight;\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n project_pos.z *= mapboxZoomScale;\n project_pos.z += u_raisingHeight * mapboxZoomScale;\n }\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n\n setPickingColor(a_PickingColor);\n}',type:"polygonLinear",triangulation:y.p}:{frag:'uniform float u_opacity: 1.0;\nvarying vec4 v_color;\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\n#pragma include "picking"\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n gl_FragColor = v_color;\n gl_FragColor.a *= opacity;\n gl_FragColor = filterColor(gl_FragColor);\n}\n',vert:'attribute vec4 a_Color;\nattribute vec3 a_Position;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\nuniform float u_opacity: 1.0;\nuniform float u_raisingHeight: 0.0;\n\nvarying vec4 v_color;\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "picking"\n\nvoid main() {\n // cal style mapping - 数据纹理映射部分的计算\nstyleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n\n v_color = a_Color;\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n\n project_pos.z += u_raisingHeight;\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n project_pos.z *= mapboxZoomScale;\n project_pos.z += u_raisingHeight * mapboxZoomScale;\n }\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n\n setPickingColor(a_PickingColor);\n}\n\n',type:"polygonFill",triangulation:h.Bb}}}])&&P(t.prototype,n),r&&P(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(v.a),N=n("k0uE");function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=G(e);if(t){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return H(this,n)}}function H(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}(i,e);var t,n,r,o=V(i);function i(){return z(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.watercolor,o=void 0===r?"#6D99A8":r,i=e.watercolor2,a=void 0===i?"#0F121C":i;return{u_texture1:this.texture1,u_texture2:this.texture2,u_texture3:this.texture3,u_watercolor:Object(h.Eb)(o),u_watercolor2:Object(h.Eb)(a),u_opacity:p()(n)?n:1}}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(e){this.loadTexture(),this.buildModels(e)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o;this.layer.buildLayerModel({moduleName:"polygonOcean",vertexShader:'attribute vec2 a_uv;\nattribute vec3 a_Position;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\nvarying vec2 v_uv;\n\n#pragma include "projection"\n\nvoid main() {\n v_uv = a_uv;\n\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n}\n\n',fragmentShader:"\nuniform float u_time: 0.0;\nuniform float u_opacity: 1.0;\n\nvarying vec2 v_uv;\n\nfloat coast2water_fadedepth = 0.10;\nfloat large_waveheight = .750; // change to adjust the \"heavy\" waves\nfloat large_wavesize = 3.4; // factor to adjust the large wave size\nfloat small_waveheight = 0.6; // change to adjust the small random waves\nfloat small_wavesize = 0.5; // factor to ajust the small wave size\nfloat water_softlight_fact = 15.; // range [1..200] (should be << smaller than glossy-fact)\nfloat water_glossylight_fact= 120.; // range [1..200]\nfloat particle_amount = 70.;\n// vec3 watercolor = vec3(0.43, 0.60, 0.66); // 'transparent' low-water color (RGB)\n// vec3 watercolor2 = vec3(0.06, 0.07, 0.11); // deep-water color (RGB, should be darker than the low-water color)\nuniform vec4 u_watercolor;\nuniform vec4 u_watercolor2;\nvec3 water_specularcolor = vec3(1.3, 1.3, 0.9); // specular Color (RGB) of the water-highlights\n#define light vec3(-0., sin(u_time*0.5)*.5 + .35, 2.8) // position of the sun\n\nuniform sampler2D u_texture1;\nuniform sampler2D u_texture2;\nuniform sampler2D u_texture3;\n\n \n\nfloat hash( float n ) {\n return fract(sin(n)*43758.5453123);\n}\n\n// 2d noise function\nfloat noise1( in vec2 x ) {\n vec2 p = floor(x);\n vec2 f = smoothstep(0.0, 1.0, fract(x));\n float n = p.x + p.y*57.0;\n return mix(mix( hash(n+ 0.0), hash(n+ 1.0),f.x),\n mix( hash(n+ 57.0), hash(n+ 58.0),f.x),f.y);\n}\n\nfloat noise(vec2 p) {\n return texture2D(u_texture2,p*vec2(1./256.)).x;\n}\n\nvec4 highness(vec2 p) {\n vec4 t = texture2D(u_texture1,fract(p));\n float clipped = -2.0-smoothstep(3.,10.,t.a)*6.9-smoothstep(10.,100.,t.a)*89.9-smoothstep(0.,10000.,t.a)*10000.0;\n return clamp(t, 0.0,3.0)+clamp(t/3.0-1.0, 0.0,1.0)+clamp(t/16.0-1.0, 0.0,1.0);\n}\n\nfloat height_map( vec2 p ) {\n vec4 height=highness(p);\n /*\n height = -0.5+\n 0.5*smoothstep(-100.,0.,-height)+\n 2.75*smoothstep(0.,2.,height)+\n 1.75*smoothstep(2.,4.,height)+\n 2.75*smoothstep(4.,16.,height)+\n 1.5*smoothstep(16.,1000.,height);\n */\n\n mat2 m = mat2( 0.9563*1.4, -0.2924*1.4, 0.2924*1.4, 0.9563*1.4 );\n //p = p*6.;\n float f = 0.6000*noise1( p ); p = m*p*1.1*6.;\n f += 0.2500*noise( p ); p = m*p*1.32;\n f += 0.1666*noise( p ); p = m*p*1.11;\n f += 0.0834*noise( p ); p = m*p*1.12;\n f += 0.0634*noise( p ); p = m*p*1.13;\n f += 0.0444*noise( p ); p = m*p*1.14;\n f += 0.0274*noise( p ); p = m*p*1.15;\n f += 0.0134*noise( p ); p = m*p*1.16;\n f += 0.0104*noise( p ); p = m*p*1.17;\n f += 0.0084*noise( p );\n f = .25*f+dot(height,vec4(-.03125,-.125,.25,.25))*.5;\n const float FLAT_LEVEL = 0.92525;\n //f = f*0.25+height*0.75;\n if (f<FLAT_LEVEL)\n f = f;\n else\n f = pow((f-FLAT_LEVEL)/(1.-FLAT_LEVEL), 2.)*(1.-FLAT_LEVEL)*2.0+FLAT_LEVEL; // makes a smooth coast-increase\n return clamp(f, 0., 10.);\n}\n\nvec3 plasma_quintic( float x ) {\n x = clamp( x, 0.0, 1.0);\n vec4 x1 = vec4( 1.0, x, x * x, x * x * x ); // 1 x x2 x3\n vec4 x2 = x1 * x1.w * x; // x4 x5 x6 x7\n return vec3(\n dot( x1.xyzw, vec4( +0.063861086, +1.992659096, -1.023901152, -0.490832805 ) ) + dot( x2.xy, vec2( +1.308442123, -0.914547012 ) ),\n dot( x1.xyzw, vec4( +0.049718590, -0.791144343, +2.892305078, +0.811726816 ) ) + dot( x2.xy, vec2( -4.686502417, +2.717794514 ) ),\n dot( x1.xyzw, vec4( +0.513275779, +1.580255060, -5.164414457, +4.559573646 ) ) + dot( x2.xy, vec2( -1.916810682, +0.570638854 ) ) );\n}\n\nvec4 color(vec2 p){\n vec4 c1 = vec4(1.7,1.6,.9,1);\n vec4 c2 = vec4(.2,.94,.1,1);\n vec4 c3 = vec4(.3,.2,.0,1);\n vec4 c4 = vec4(.99,.99,1.6,1);\n vec4 v = highness(p);\n float los = smoothstep(0.1,1.1,v.b);\n float his = smoothstep(3.5,6.5,v.b);\n float ces = smoothstep(1.,5.,v.a);\n vec4 lo = mix(c1,c2,los);\n vec4 hi = mix(c3,c4,his);\n vec4 ce = mix(lo,hi,ces);\n\n return vec4(plasma_quintic(ces),1).ragb;\n}\n\nvec3 terrain_map( vec2 p )\n{\n return color(p).rgb*0.75+0.25*vec3(0.7, .55, .4)+texture2D(u_texture3, fract(p*5.)).rgb*.5; // test-terrain is simply 'sandstone'\n}\n\nconst mat2 m = mat2( 0.72, -1.60, 1.60, 0.72 );\n\nfloat water_map( vec2 p, float height ) {\n vec2 p2 = p*large_wavesize;\n vec2 shift1 = 0.001*vec2( u_time*160.0*2.0, u_time*120.0*2.0 );\n vec2 shift2 = 0.001*vec2( u_time*190.0*2.0, -u_time*130.0*2.0 );\n\n // coarse crossing 'ocean' waves...\n float f = 0.6000*noise( p );\n f += 0.2500*noise( p*m );\n f += 0.1666*noise( p*m*m );\n float wave = sin(p2.x*0.622+p2.y*0.622+shift2.x*4.269)*large_waveheight*f*height*height ;\n\n p *= small_wavesize;\n f = 0.;\n float amp = 1.0, s = .5;\n for (int i=0; i<9; i++)\n { p = m*p*.947; f -= amp*abs(sin((noise( p+shift1*s )-.5)*2.)); amp = amp*.59; s*=-1.329; }\n \n return wave+f*small_waveheight;\n}\n\nfloat nautic(vec2 p) {\n p *= 18.;\n float f = 0.;\n float amp = 1.0, s = .5;\n for (int i=0; i<3; i++)\n { p = m*p*1.2; f += amp*abs(smoothstep(0., 1., noise( p+u_time*s ))-.5); amp = amp*.5; s*=-1.227; }\n return pow(1.-f, 5.);\n}\n\nfloat particles(vec2 p) {\n p *= 200.;\n float f = 0.;\n float amp = 1.0, s = 1.5;\n for (int i=0; i<3; i++)\n { p = m*p*1.2; f += amp*noise( p+u_time*s ); amp = amp*.5; s*=-1.227; }\n return pow(f*.35, 7.)*particle_amount;\n}\n\nfloat test_shadow( vec2 xy, float height) {\n vec3 r0 = vec3(xy, height);\n vec3 rd = normalize( light - r0 );\n \n float hit = 1.0;\n float t = 0.001;\n for (int j=1; j<25; j++)\n {\n vec3 p = r0 + t*rd;\n float h = height_map( p.xy );\n float height_diff = p.z - h;\n if (height_diff<0.0)\n {\n return 0.0;\n }\n t += 0.01+height_diff*.02;\n hit = min(hit, 2.*height_diff/t); // soft shaddow \n }\n return hit;\n}\n\nvec3 CalcTerrain(vec2 uv, float height) {\n vec3 col = terrain_map( uv );\n vec2 iResolution = vec2(512.);\n float h1 = height_map(uv-vec2(0., 0.5)/ iResolution.xy);\n float h2 = height_map(uv+vec2(0., 0.5)/ iResolution.xy);\n float h3 = height_map(uv-vec2(0.5, 0.)/ iResolution.xy);\n float h4 = height_map(uv+vec2(0.5, 0.)/ iResolution.xy);\n vec3 norm = normalize(vec3(h3-h4, h1-h2, 1.));\n vec3 r0 = vec3(uv, height);\n vec3 rd = normalize( light - r0 );\n float grad = dot(norm, rd);\n col *= grad+pow(grad, 8.);\n float terrainshade = test_shadow( uv, height );\n col = mix(col*.25, col, terrainshade);\n return col;\n}\n\n\nvoid main() {\n vec3 watercolor = u_watercolor.rgb;\n vec3 watercolor2 = u_watercolor2.rgb;\n vec2 uv = v_uv;\n float WATER_LEVEL = 0.84; // Water level (range: 0.0 - 2.0)\n float deepwater_fadedepth = 0.4 + coast2water_fadedepth;\n float height = height_map( uv );\n vec3 col;\n\n float waveheight = clamp(WATER_LEVEL*3.-1.5, 0., 1.);\n float level = WATER_LEVEL + .2*water_map(uv*15. + vec2(u_time*.1), waveheight);\n if (height > level)\n {\n col = CalcTerrain(uv, height);\n }\n if (height <= level)\n {\n vec2 dif = vec2(.0, .01);\n vec2 pos = uv*15. + vec2(u_time*.01);\n float h1 = water_map(pos-dif,waveheight);\n float h2 = water_map(pos+dif,waveheight);\n float h3 = water_map(pos-dif.yx,waveheight);\n float h4 = water_map(pos+dif.yx,waveheight);\n vec3 normwater = normalize(vec3(h3-h4, h1-h2, .125)); // norm-vector of the 'bumpy' water-plane\n uv += normwater.xy*.002*(level-height);\n \n col = CalcTerrain(uv, height);\n\n float coastfade = clamp((level-height)/coast2water_fadedepth, 0., 1.);\n float coastfade2= clamp((level-height)/deepwater_fadedepth, 0., 1.);\n float intensity = col.r*.2126+col.g*.7152+col.b*.0722;\n watercolor = mix(watercolor*intensity, watercolor2, smoothstep(0., 1., coastfade2));\n\n vec3 r0 = vec3(uv, WATER_LEVEL);\n vec3 rd = normalize( light - r0 ); // ray-direction to the light from water-position\n float grad = dot(normwater, rd); // dot-product of norm-vector and light-direction\n float specular = pow(grad, water_softlight_fact); // used for soft highlights \n float specular2= pow(grad, water_glossylight_fact); // used for glossy highlights\n float gradpos = dot(vec3(0., 0., 1.), rd);\n float specular1= smoothstep(0., 1., pow(gradpos, 5.)); // used for diffusity (some darker corona around light's specular reflections...) \n float watershade = test_shadow( uv, level );\n watercolor *= 2.2+watershade;\n watercolor += (.2+.8*watershade) * ((grad-1.0)*.5+specular) * .25;\n watercolor /= (1.+specular1*1.25);\n watercolor += watershade*specular2*water_specularcolor;\n watercolor += watershade*coastfade*(1.-coastfade2)*(vec3(.5, .6, .7)*nautic(uv)+vec3(1., 1., 1.)*particles(uv));\n \n col = mix(col, watercolor, coastfade);\n }\n \n\n float opacity = u_opacity;\n gl_FragColor = vec4(col, opacity); \n}\n",triangulation:y.o,primitive:d.gl.TRIANGLES,depth:{enable:!1},stencil:Object(h.bb)(r,i),pick:!1}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){var e,t,n;null===(e=this.texture1)||void 0===e||e.destroy(),null===(t=this.texture2)||void 0===t||t.destroy(),null===(n=this.texture3)||void 0===n||n.destroy()}},{key:"registerBuiltinAttributes",value:function(){var e=D(this.layer.getSource().extent,4),t=e[0],n=e[1],r=e[2],o=e[3],i=r-t,a=o-n;this.styleAttributeService.registerStyleAttribute({name:"oceanUv",type:d.AttributeType.Attribute,descriptor:{name:"a_uv",buffer:{usage:d.gl.STATIC_DRAW,data:[],type:d.gl.FLOAT},size:2,update:function(e,r,o,c){var u=D(e.version===N.a["GAODE2.x"]?e.originCoordinates[0][c]:o,2),s=u[0],l=u[1];return[(s-t)/i,(l-n)/a]}}})}},{key:"loadTexture",value:function(){var e,t,n,r=this,o=this.rendererService.createTexture2D,i={height:0,width:0};function a(e){return o({data:e,width:e.width,height:e.height,wrapS:d.gl.MIRRORED_REPEAT,wrapT:d.gl.MIRRORED_REPEAT,min:d.gl.LINEAR,mag:d.gl.LINEAR})}this.texture1=o(i),this.texture2=o(i),this.texture3=o(i),e=function(e){r.texture1=a(e[0]),r.texture2=a(e[1]),r.texture3=a(e[2]),r.layerService.reRender()},t=0,n=[],["https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*MJ22QbpuCzIAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*-z2HSIVDsHIAAAAAAAAAAAAAARQnAQ"].map((function(r){var o=new Image;o.crossOrigin="",o.src=r,n.push(o),o.onload=function(){3==++t&&e(n)}}))}}])&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(v.a),Y=n("gtyy");function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q(e,t){return(Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){if(t&&("object"===K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(i,e);var t,n,r,o=$(i);function i(){return Z(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.speed,o=void 0===r?.5:r;return{u_texture:this.texture,u_speed:o,u_opacity:p()(n)?n:1}}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(e){this.loadTexture(),this.buildModels(e)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,i=void 0===o||o;this.layer.buildLayerModel({moduleName:"polygonWater",vertexShader:'attribute vec4 a_Color;\nattribute vec2 a_uv;\nattribute vec3 a_Position;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\nvarying vec4 v_Color;\nvarying vec2 v_uv;\nuniform float u_opacity: 1.0;\n\n\n#pragma include "projection"\n\nvoid main() {\n v_uv = a_uv;\n\n v_Color = a_Color;\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n}\n\n',fragmentShader:"uniform sampler2D u_texture;\nuniform float u_time: 0.0;\nuniform float u_speed: 1.0;\nuniform float u_opacity: 1.0;\n\nvarying vec4 v_Color;\nvarying vec2 v_uv;\n\nfloat rand(vec2 n) { return 0.5 + 0.5 * fract(sin(dot(n.xy, vec2(12.9898, 78.233)))* 43758.5453); }\n\nfloat water(vec3 p) {\n float t = u_time * u_speed;\n p.z += t * 2.; p.x += t * 2.;\n vec3 c1 = texture2D(u_texture, p.xz / 30.).xyz;\n p.z += t * 3.; p.x += t * 0.52;\n vec3 c2 = texture2D(u_texture, p.xz / 30.).xyz;\n p.z += t * 4.; p.x += t * 0.8;\n vec3 c3 = texture2D(u_texture, p.xz / 30.).xyz;\n c1 += c2 - c3;\n float z = (c1.x + c1.y + c1.z) / 3.;\n return p.y + z / 4.;\n}\n\nfloat map(vec3 p) {\n float d = 100.0;\n d = water(p);\n return d;\n}\n\nfloat intersect(vec3 ro, vec3 rd) {\n float d = 0.0;\n for (int i = 0; i <= 100; i++) {\n float h = map(ro + rd * d);\n if (h < 0.1) return d;\n d += h;\n }\n return 0.0;\n}\n\nvec3 norm(vec3 p) {\n float eps = .1;\n return normalize(vec3(\n map(p + vec3(eps, 0, 0)) - map(p + vec3(-eps, 0, 0)),\n map(p + vec3(0, eps, 0)) - map(p + vec3(0, -eps, 0)),\n map(p + vec3(0, 0, eps)) - map(p + vec3(0, 0, -eps))\n ));\n} \n\nfloat calSpc() {\n vec3 l1 = normalize(vec3(1, 1, 1));\n vec3 ro = vec3(-3, 20, -8);\n vec3 rc = vec3(0, 0, 0);\n vec3 ww = normalize(rc - ro);\n vec3 uu = normalize(cross(vec3(0,1,0), ww));\n vec3 vv = normalize(cross(rc - ro, uu));\n vec3 rd = normalize(uu * v_uv.x + vv * v_uv.y + ww);\n float d = intersect(ro, rd);\n vec3 p = ro + rd * d;\n vec3 n = norm(p);\n float spc = pow(max(0.0, dot(reflect(l1, n), rd)), 30.0);\n return spc;\n}\n\nvoid main() {\n float opacity = u_opacity;\n gl_FragColor = v_Color;\n gl_FragColor.a *= opacity;\n\n float spc = calSpc();\n gl_FragColor += spc * 0.4;\n}\n",triangulation:y.o,primitive:d.gl.TRIANGLES,depth:{enable:!1},stencil:Object(h.bb)(r,i),pick:!1}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){var e;null===(e=this.texture)||void 0===e||e.destroy()}},{key:"registerBuiltinAttributes",value:function(){var e=X(this.layer.getSource().extent,4),t=e[0],n=e[1],r=e[2],o=e[3],i=r-t,a=o-n;this.styleAttributeService.registerStyleAttribute({name:"waterUv",type:d.AttributeType.Attribute,descriptor:{name:"a_uv",buffer:{usage:d.gl.STATIC_DRAW,data:[],type:d.gl.FLOAT},size:2,update:function(e,r,o,c){var u=X(e.version===N.a["GAODE2.x"]?e.originCoordinates[0][c]:o,2),s=u[0],l=u[1];return[(s-t)/i,(l-n)/a]}}})}},{key:"loadTexture",value:function(){var e=this,t=this.layer.getLayerConfig().waterTexture,n=this.rendererService.createTexture2D;this.texture=n({height:0,width:0});var r=new Image;r.crossOrigin="",t?(console.warn("L7 recommend:https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ"),r.src=t):r.src="https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ",r.onload=function(){e.texture=n({data:r,width:r.width,height:r.height,wrapS:d.gl.MIRRORED_REPEAT,wrapT:d.gl.MIRRORED_REPEAT,min:d.gl.LINEAR,mag:d.gl.LINEAR}),e.layerService.reRender()}}}])&&J(t.prototype,n),r&&J(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(v.a),re={fill:R,line:o.a,extrude:C,text:s.a,point_fill:a.a,point_image:c.a,point_normal:u.a,point_extrude:i.a,water:ne,ocean:W,vectorpolygon:l.a,tile:Y.a},oe=n("Hv1p");function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ue(e,t){return(ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pe(e);if(t){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return le(this,n)}}function le(e,t){if(t&&("object"===ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fe(e)}function fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var he=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ue(e,t)}(i,e);var t,n,r,o=se(i);function i(){var e;ae(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return de(fe(e=o.call.apply(o,[this].concat(n))),"type","PolygonLayer"),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new re[t](this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getModelType",value:function(){var e,t=this.layerSource.getParserType();if(Object(oe.c)(t))return"vectorpolygon";var n=this.styleAttributeService.getLayerStyleAttribute("shape"),r=null==n||null===(e=n.scale)||void 0===e?void 0:e.field;return"fill"===r?"fill":"extrude"===r?"extrude":"water"===r?"water":"ocean"===r?"ocean":"line"===r?"line":"tile"===r?"tile":this.getPointModelType()}},{key:"getPointModelType",value:function(){var e=this.getEncodedData(),t=this.getLayerConfig(),n=t.shape2d,r=t.shape3d,o=this.iconService.getIconMap(),i=e.find((function(e){return e.hasOwnProperty("shape")}));if(i){var a=i.shape;return"dot"===a?"point_normal":-1!==(null==n?void 0:n.indexOf(a))?"point_fill":-1!==(null==r?void 0:r.indexOf(a))?"point_extrude":o.hasOwnProperty(a)?"point_image":"text"}return"fill"}}])&&ce(t.prototype,n),r&&ce(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a)},nnRT:function(e,t,n){var r=n("NYSw");e.exports=function(e,t){return r(e,t)}},nndn:function(e,t,n){"use strict";var r=n("9JhN"),o=n("cLeC"),i=n("ct80"),a=n("Y9MM"),c=n("LD01"),u=n("qvLe"),s=n("5Dcv"),l=n("8/ho"),f=n("T+0C"),p=n("IBdH"),d=u.aTypedArray,h=u.exportTypedArrayMethod,v=r.Uint16Array,y=v&&o(v.prototype.sort),m=!(!y||i((function(){y(new v(2),null)}))&&i((function(){y(new v(2),{})}))),g=!!y&&!i((function(){if(f)return f<74;if(s)return s<67;if(l)return!0;if(p)return p<602;var e,t,n=new v(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(y(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));h("sort",(function(e){return void 0!==e&&a(e),g?y(this,e):c(d(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!g||m)},nnm9:function(e,t){e.exports=function(){}},nqlD:function(e,t,n){var r=n("ERkP").createContext;e.exports=r,e.exports.default=r},nvU9:function(e,t,n){var r=n("I1fX"),o=n("tQYX"),i=n("a88S"),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||u.test(e)?s(e.slice(2),n?2:8):a.test(e)?NaN:+e}},"o/2+":function(e,t,n){"use strict";var r=n("ERkP"),o=Object(r.createContext)({});t.a=o},"o/zB":function(e,t,n){},o2P7:function(e,t,n){},o3mt:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n("+WmY")),o=i(n("ZEqj"));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if((0,r.default)(e))return o.default.Error("Null plugin options");var t=e.pagesPaths;return(0,r.default)(t)?o.default.Error("Null pluginOptions.pagesPaths"):o.default.Ok(t)}},o7q5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.circularDependencyToException=t.listMetadataForTarget=t.listRegisteredBindingsForServiceIdentifier=t.getServiceIdentifierAsString=t.getFunctionName=void 0;var r=n("KWcp");function o(e){return"function"==typeof e?e.name:"symbol"==typeof e?e.toString():e}function i(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=o,t.listRegisteredBindingsForServiceIdentifier=function(e,t,n){var r="",o=n(e,t);return 0!==o.length&&(r="\nRegistered bindings:",o.forEach((function(e){var t="Object";null!==e.implementationType&&(t=i(e.implementationType)),r=r+"\n "+t,e.constraint.metaData&&(r=r+" - "+e.constraint.metaData)}))),r},t.circularDependencyToException=function e(t){t.childRequests.forEach((function(t){if(function e(t,n){return null!==t.parentRequest&&(t.parentRequest.serviceIdentifier===n||e(t.parentRequest,n))}(t,t.serviceIdentifier)){var n=function(e){return function e(t,n){void 0===n&&(n=[]);var r=o(t.serviceIdentifier);return n.push(r),null!==t.parentRequest?e(t.parentRequest,n):n}(e).reverse().join(" --\x3e ")}(t);throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}e(t)}))},t.listMetadataForTarget=function(e,t){if(t.isTagged()||t.isNamed()){var n="",r=t.getNamedTag(),o=t.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==o&&o.forEach((function(e){n+=e.toString()+"\n"}))," "+e+"\n "+e+" - "+n}return" "+e},t.getFunctionName=i},o83V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n("77ug")),o=a(n("Wdz6")),i=a(n("HFVJ"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){return(0,r.default)(o.default,(0,i.default)(e,t))()}},oCTG:function(e,t,n){var r=n("Syyo"),o=n("bvyN"),i=n("wxYD"),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},oD4t:function(e,t,n){var r=n("VCi3"),o=n("cLeC"),i=n("ZdBB"),a=n("JAL5"),c=n("FXyv"),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(c(e)),n=a.f;return n?u(t,n(e)):t}},oOh1:function(e,t,n){"use strict";var r=n("zjfJ"),o=n("cxan"),i=n("O94r"),a=n.n(i),c=n("gRH6"),u=n("uwWy"),s=n("ERkP"),l=n("H84U"),f=n("caoh"),p=n("ihLV"),d=n("xCex"),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},v=function(e,t){var n,i=s.useContext(d.d),v=s.useContext(d.b),y=s.useContext(l.b),m=y.getPrefixCls,g=y.direction,b=s.useRef(),O=Object(u.a)(t,b),w=Object(s.useContext)(p.b).isFormItemInput,_=e.prefixCls,x=e.className,E=e.children,S=e.style,C=e.disabled,j=h(e,["prefixCls","className","children","style","disabled"]),k=m("radio",_),P="button"===((null==i?void 0:i.optionType)||v)?"".concat(k,"-button"):k,T=Object(o.a)({},j),M=s.useContext(f.b);T.disabled=C||M,i&&(T.name=i.name,T.onChange=function(t){var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},T.checked=e.value===i.value,T.disabled=T.disabled||i.disabled);var A=a()("".concat(P,"-wrapper"),(n={},Object(r.a)(n,"".concat(P,"-wrapper-checked"),T.checked),Object(r.a)(n,"".concat(P,"-wrapper-disabled"),T.disabled),Object(r.a)(n,"".concat(P,"-wrapper-rtl"),"rtl"===g),Object(r.a)(n,"".concat(P,"-wrapper-in-form-item"),w),n),x);return s.createElement("label",{className:A,style:S,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},s.createElement(c.a,Object(o.a)({},T,{type:"radio",prefixCls:P,ref:O})),void 0!==E?s.createElement("span",null,E):null)},y=s.forwardRef(v);t.a=y},oPCT:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"}},oV9B:function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return b}));var r,o=n("p05D"),i=n("QsI/"),a=n("4wDe"),c=n("Czhu"),u=n("7nmT"),s=Object(c.a)({},u),l=s.version,f=s.render,p=s.unmountComponentAtNode;try{Number((l||"").split(".")[0])>=18&&(r=s.createRoot)}catch(w){}function d(e){var t=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Object(a.a)(t)&&(t.usingClientEntryPoint=e)}var h="__rc_react_root__";function v(e,t){r?function(e,t){d(!0);var n=t[h]||r(t);d(!1),n.render(e),t[h]=n}(e,t):function(e,t){f(e,t)}(e,t)}function y(e){return m.apply(this,arguments)}function m(){return(m=Object(i.a)(Object(o.a)().mark((function e(t){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[h])||void 0===e||e.unmount(),delete t[h]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){p(e)}function b(e){return O.apply(this,arguments)}function O(){return(O=Object(i.a)(Object(o.a)().mark((function e(t){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r){e.next=2;break}return e.abrupt("return",y(t));case 2:g(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},ohNV:function(e,t,n){},okt8:function(e,t,n){var r=n("BkAM"),o=n("6/e7"),i=n("qU5+");e.exports=r((function(e){return null!=e&&i(e,o(e))}))},"p/97":function(e,t,n){"use strict";e.exports=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},p05D:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("4wDe");function o(){o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(k){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=l;var p={};function d(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,a)&&(y=g);var b=v.prototype=d.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var o;this._invoke=function(i,a){function c(){return new t((function(o,c){!function o(i,a,c,u){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"==Object(r.a)(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,c,u)}),(function(e){o("throw",e,c,u)})):t.resolve(p).then((function(e){l.value=e,c(l)}),(function(e){return o("throw",e,c,u)}))}u(s.arg)}(i,a,o,c)}))}return o=o?o.then(c,c):c()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=v,s(b,"constructor",v),s(v,"constructor",h),h.displayName=s(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},O(w.prototype),s(w.prototype,c,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(b),s(b,u,"Generator"),s(b,a,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}},p2lg:function(e,t,n){var r=n("tQYX"),o=n("CbIe"),i=n("/UTG"),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var c in e)("constructor"!=c||!t&&a.call(e,c))&&n.push(c);return n}},p2vu:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("ERkP");function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},p8C9:function(e,t,n){"use strict";var r=n("gl7v"),o=n("1HDK");t.a=function(e,t){for(var n=0,i=(t=Object(r.a)(t,e)).length;null!=e&&n<i;)e=e[Object(o.a)(t[n++])];return n&&n==i?e:void 0}},pIod:function(e,t,n){var r=n("y/9h"),o=n("wxYD");e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},pPzx:function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},pWxA:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},peMk:function(e,t,n){var r=n("iQ7j");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},pfNN:function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var r,o,i,a=n("nDih"),c=n.n(a),u=n("mGvo"),s=n.n(u),l=n("nnRT"),f=n.n(l),p=n("pufz"),d=n("zEXi"),h=n("PvqL"),v=n("PmAl");function y(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var O,w,_,x,E,S,C=(r=Object(p.lazyInject)(p.TYPES.IGlobalConfigService),o=function(){function e(t){var n,r,o,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,r="configService",a=this,(o=i)&&Object.defineProperty(n,r,{enumerable:o.enumerable,configurable:o.configurable,writable:o.writable,value:o.initializer?o.initializer.call(a):void 0}),this.layer=t,this.rendererService=t.getContainer().get(p.TYPES.IRendererService),this.pickingService=t.getContainer().get(p.TYPES.IPickingService),this.shaderModuleService=t.getContainer().get(p.TYPES.IShaderModuleService),this.styleAttributeService=t.getContainer().get(p.TYPES.IStyleAttributeService),this.mapService=t.getContainer().get(p.TYPES.IMapService),this.iconService=t.getContainer().get(p.TYPES.IIconService),this.fontService=t.getContainer().get(p.TYPES.IFontService),this.cameraService=t.getContainer().get(p.TYPES.ICameraService),this.layerService=t.getContainer().get(p.TYPES.ILayerService),this.registerBuiltinAttributes(),this.startModelAnimate();var c=this.rendererService.createTexture2D;this.createTexture2D=c,this.DATA_TEXTURE_WIDTH=1024,this.rowCount=1,this.cellLength=0,this.cellProperties=[],this.cacheStyleProperties={thetaOffset:void 0,opacity:void 0,strokeOpacity:void 0,strokeWidth:void 0,stroke:void 0,offsets:void 0},this.stylePropertiesExist={hasThetaOffset:0,hasOpacity:0,hasStrokeOpacity:0,hasStrokeWidth:0,hasStroke:0,hasOffsets:0},this.dataTextureTest=this.layerService.getOESTextureFloat(),this.dataTextureTest||(this.dataTexture=this.createTexture2D({data:new Uint8Array(4),mag:p.gl.NEAREST,min:p.gl.NEAREST,width:1,height:1}))}var t,n,r;return t=e,(n=[{key:"clearLastCalRes",value:function(){this.cellProperties=[],this.cellLength=0,this.stylePropertiesExist={hasThetaOffset:0,hasOpacity:0,hasStrokeOpacity:0,hasStrokeWidth:0,hasStroke:0,hasOffsets:0}}},{key:"getCellTypeLayout",value:function(){return this.dataTextureTest?[this.rowCount,this.DATA_TEXTURE_WIDTH,0,0,this.stylePropertiesExist.hasOpacity,this.stylePropertiesExist.hasStrokeOpacity,this.stylePropertiesExist.hasStrokeWidth,this.stylePropertiesExist.hasStroke,this.stylePropertiesExist.hasOffsets,this.stylePropertiesExist.hasThetaOffset,0,0,0,0,0,1]:[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,-1]}},{key:"dataTextureNeedUpdate",value:function(e){var t=!1;return f()(e.thetaOffset,this.cacheStyleProperties.thetaOffset)||(t=!0,this.cacheStyleProperties.thetaOffset=e.thetaOffset),f()(e.opacity,this.cacheStyleProperties.opacity)||(t=!0,this.cacheStyleProperties.opacity=e.opacity),f()(e.strokeOpacity,this.cacheStyleProperties.strokeOpacity)||(t=!0,this.cacheStyleProperties.strokeOpacity=e.strokeOpacity),f()(e.strokeWidth,this.cacheStyleProperties.strokeWidth)||(t=!0,this.cacheStyleProperties.strokeWidth=e.strokeWidth),f()(e.stroke,this.cacheStyleProperties.stroke)||(t=!0,this.cacheStyleProperties.stroke=e.stroke),f()(e.offsets,this.cacheStyleProperties.offsets)||(t=!0,this.cacheStyleProperties.offsets=e.offsets),void 0===this.dataTexture&&(t=!0),t}},{key:"judgeStyleAttributes",value:function(e){this.clearLastCalRes(),void 0===e.opacity||s()(e.opacity)||(this.cellProperties.push({attr:"opacity",count:1}),this.stylePropertiesExist.hasOpacity=1,this.cellLength+=1),void 0===e.strokeOpacity||s()(e.strokeOpacity)||(this.cellProperties.push({attr:"strokeOpacity",count:1}),this.stylePropertiesExist.hasStrokeOpacity=1,this.cellLength+=1),void 0===e.strokeWidth||s()(e.strokeWidth)||(this.cellProperties.push({attr:"strokeWidth",count:1}),this.stylePropertiesExist.hasStrokeWidth=1,this.cellLength+=1),void 0===e.stroke||this.isStaticColor(e.stroke)||(this.cellProperties.push({attr:"stroke",count:4}),this.stylePropertiesExist.hasStroke=1,this.cellLength+=4),void 0===e.offsets||this.isOffsetStatic(e.offsets)||(this.cellProperties.push({attr:"offsets",count:2}),this.stylePropertiesExist.hasOffsets=1,this.cellLength+=2),void 0===e.thetaOffset||s()(e.thetaOffset)||(this.cellProperties.push({attr:"thetaOffset",count:1}),this.stylePropertiesExist.hasThetaOffset=1,this.cellLength+=1)}},{key:"isStaticColor",value:function(e){return!!c()(e)&&!!Object(h.a)(e)}},{key:"getStrokeColor",value:function(e){if(this.isStaticColor(e)){var t=Object(d.Eb)(e);return t[0]=t[0]?t[0]:0,t[1]=t[1]?t[1]:0,t[2]=t[2]?t[2]:0,t[3]=t[3]?t[3]:0,t}return[0,0,0,0]}},{key:"isOffsetStatic",value:function(e){return!!(Array.isArray(e)&&2===e.length&&s()(e[0])&&s()(e[1]))}},{key:"patchMod",value:function(e,t){for(var n=0;n<t;n++)e.push(-1)}},{key:"patchData",value:function(e,t,n){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i.attr,c=i.count,u=t[a];void 0!==u?"stroke"===a?e.push.apply(e,y(Object(d.Eb)(u))):"offsets"===a?this.isOffsetStatic(u)?e.push(-u[0],u[1]):e.push(0,0):e.push(s()(u)?u:1):this.patchMod(e,c)}}catch(l){o.e(l)}finally{o.f()}}},{key:"calDataFrame",value:function(e,t,n){for(var r=t.length,o=Math.ceil(r*e/this.DATA_TEXTURE_WIDTH),i=o*this.DATA_TEXTURE_WIDTH,a=[],c=0;c<r;c++){var u=t[c];this.patchData(a,u,n)}for(var s=a.length;s<i;s++)a.push(-1);return{data:a,width:this.DATA_TEXTURE_WIDTH,height:o}}},{key:"getBlend",value:function(){var e=this.layer.getLayerConfig().blend,t=void 0===e?"normal":e;return v.a[p.BlendType[t]]}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){return!1}},{key:"buildModels",value:function(e){throw new Error("Method not implemented.")}},{key:"initModels",value:function(e){throw new Error("Method not implemented.")}},{key:"clearModels",value:function(){}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"render",value:function(){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(e){return[e.enable?0:1,e.duration||4,e.interval||.2,e.trailLength||.1]}},{key:"startModelAnimate",value:function(){this.layer.getLayerConfig().animateOption.enable&&this.layer.setAnimateStartTime()}}])&&b(t.prototype,n),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),O=o.prototype,w="configService",_=[r],x={configurable:!0,enumerable:!0,writable:!0,initializer:null},S={},Object.keys(x).forEach((function(e){S[e]=x[e]})),S.enumerable=!!S.enumerable,S.configurable=!!S.configurable,("value"in S||S.initializer)&&(S.writable=!0),S=_.slice().reverse().reduce((function(e,t){return t(O,w,e)||e}),S),E&&void 0!==S.initializer&&(S.value=S.initializer?S.initializer.call(E):void 0,S.initializer=void 0),void 0===S.initializer&&(Object.defineProperty(O,w,S),S=null),i=S,o)},phgI:function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){var t=.5,n=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0;break;default:t=.5}switch(e){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0;break;default:n=.5}return{horizontalAlign:t,verticalAlign:n}}function a(e,t,n,r,o){if(o){var i=e[r],a=i.glyph;if(a)for(var c=t[a].advance*i.scale,u=(e[r].x+c)*o,s=n;s<=r;s++)e[s].x-=u}}function c(e,t,n,o,i,a,c){var u,s=(t-n)*i,l=(-o*c+.5)*a,f=r(e);try{for(f.s();!(u=f.n()).done;){var p=u.value;p.x+=s,p.y+=l}}catch(d){f.e(d)}finally{f.f()}}function u(e,t,n,r,o,u,s){var l=0,f=-8,p=0,d=e.positionedGlyphs,h="right"===u?1:"left"===u?0:.5,v=d.length;n.forEach((function(e){if(e.split("").forEach((function(e){var n=t[e];n&&(d.push({glyph:e,x:l,y:f+0,vertical:!1,scale:1,metrics:n}),l+=n.advance+s)})),d.length!==v){var n=l-s;p=Math.max(n,p),a(d,t,v,d.length-1,h)}l=0,f-=r+5}));var y=i(o),m=y.horizontalAlign,g=y.verticalAlign;c(d,h,m,g,p,r,n.length);var b=f- -8;e.top+=-g*b,e.bottom=e.top-b,e.left+=-m*p,e.right=e.left+p}function s(e,t,n,r,o,u,s){var l=0,f=-8,p=0,d=e.positionedGlyphs,h="right"===u?1:"left"===u?0:.5,v=d.length;n.forEach((function(e){var n=t[e];if(n&&(d.push({glyph:e,x:n.advance/2,y:f+0,vertical:!1,scale:1,metrics:n}),l+=n.advance+s),d.length!==v){var o=l-s;p=Math.max(o,p),a(d,t,v,d.length-1,h)}l=0,f-=r+5}));var y=i(o),m=y.horizontalAlign,g=y.verticalAlign;c(d,h,m,g,p,r,n.length);var b=f- -8;e.top+=-g*b,e.bottom=e.top-b,e.left+=-m*p,e.right=e.left+p}function l(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[0,0],c=arguments.length>7?arguments[7]:void 0,l=e.split("\n"),f=[],p={positionedGlyphs:f,top:a[1],bottom:a[1],left:a[0],right:a[0],lineCount:l.length,text:e};return c?s(p,t,l,n,r,o,i):u(p,t,l,n,r,o,i),!!f.length&&p}function f(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0],o=arguments.length>2?arguments[2]:void 0,i=e.positionedGlyphs,a=void 0===i?[]:i,c=[],u=r(a);try{for(u.s();!(t=u.n()).done;){var s=t.value,l=s.metrics,f=4,p=l.advance*s.scale/2,d=o?[s.x+p,s.y]:[0,0],h=o?[0,0]:[s.x+p+n[0],s.y+n[1]],v=(0-f)*s.scale-p+h[0],y=(0-f)*s.scale+h[1],m=v+l.width*s.scale,g=y+l.height*s.scale,b={x:v,y:y},O={x:m,y:y},w={x:v,y:g},_={x:m,y:g};c.push({tl:b,tr:O,bl:w,br:_,tex:l,glyphOffset:d})}}catch(x){u.e(x)}finally{u.f()}return c}n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f}))},pnw1:function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},pufz:function(e,t,n){"use strict";n.r(t);var r=n("icVn");n.d(t,"container",(function(){return r.c})),n.d(t,"createSceneContainer",(function(){return r.b})),n.d(t,"createLayerContainer",(function(){return r.a})),n.d(t,"lazyInject",(function(){return r.d})),n.d(t,"lazyMultiInject",(function(){return r.e}));var o=n("Y/ZZ");n.d(t,"BasePostProcessingPass",(function(){return o.a}));var i=n("sC+u");n.d(t,"TYPES",(function(){return i.a}));var a=n("HCAP");n.d(t,"packCircleVertex",(function(){return a.a}));var c=n("TJ9i");n.d(t,"BlendType",(function(){return c.a}));var u=n("DxcO");n.d(t,"ScaleTypes",(function(){return u.b})),n.d(t,"StyleScaleType",(function(){return u.c})),n.d(t,"AttributeType",(function(){return u.a}));n("5rtB");var s=n("HOjJ");n.d(t,"MapServiceEvent",(function(){return s.a}));var l=n("hJjP");n.d(t,"CoordinateSystem",(function(){return l.a})),n.d(t,"CoordinateUniform",(function(){return l.b}));n("CLJ7");var f=n("oPCT");n.d(t,"CameraUniform",(function(){return f.a}));n("lruq");var p=n("c7fE");n.d(t,"SceneEventList",(function(){return p.a}));n("VFiX"),n("Q8kS");var d=n("gdiE");for(var h in d)["default","container","createSceneContainer","createLayerContainer","lazyInject","lazyMultiInject","TYPES","packCircleVertex","BasePostProcessingPass","BlendType","ScaleTypes","StyleScaleType","AttributeType","MapServiceEvent","CoordinateSystem","CoordinateUniform","CameraUniform","SceneEventList"].indexOf(h)<0&&function(e){n.d(t,e,(function(){return d[e]}))}(h);var v=n("QRUY");n.d(t,"PositionType",(function(){return v.a}));n("/2nK"),n("/FWC");var y=n("JxUs");n.d(t,"InteractionEvent",(function(){return y.a}));n("fCvj"),n("dt97"),n("Sgyn"),n("3WEw"),n("o/zB"),n("h/Ba");var m=n("JyD/");n.d(t,"PassType",(function(){return m.a}));n("vRIw"),n("n9Bf"),n("+Jg7");var g=n("+NSP");n.d(t,"gl",(function(){return g.a}))},pwpV:function(e,t,n){},"q/0V":function(e,t,n){"use strict";var r=n("FXyv");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},"q/hM":function(e,t,n){var r=n("rxHK"),o=n("WhsZ");e.exports=o((function(e,t){return r(e.length,(function(){return e.apply(t,arguments)}))}))},"q9+l":function(e,t,n){var r=n("1Mu/"),o=n("fD9S"),i=n("/zun"),a=n("FXyv"),c=n("/soe"),u=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=r?i?function(e,t,n){if(a(e),t=c(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=l(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(a(e),t=c(t),a(n),o)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},qBJQ:function(e,t){var n=Math.floor;e.exports=function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=n(t/2))&&(e+=e)}while(t);return r}},qCM6:function(e,t,n){},qHzf:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("zygG"),o=n("ERkP"),i=n("3yBb"),a=0,c=Object(i.a)();function u(e){var t=o.useState(),n=Object(r.a)(t,2),i=n[0],u=n[1];return o.useEffect((function(){var e;u("rc_select_".concat((c?(e=a,a+=1):e="TEST_OR_SSR",e)))}),[]),e||i}},qPgQ:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},"qU5+":function(e,t,n){var r=n("WhsZ"),o=n("lCGK");e.exports=r((function(e,t){return o(e,t,[],[])}))},qVN5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},qVdP:function(e,t,n){"use strict";n("EFp3"),n("KAsB"),n("+L6B"),n("lUTK")},qXKs:function(e,t,n){var r=n("ERkP");function o(e){return r.createElement("svg",e,r.createElement("path",{d:"M 5 3 C 3.9069372 3 3 3.9069372 3 5 L 3 19 C 3 20.093063 3.9069372 21 5 21 L 19 21 C 20.093063 21 21 20.093063 21 19 L 21 12 L 19 12 L 19 19 L 5 19 L 5 5 L 12 5 L 12 3 L 5 3 z M 14 3 L 14 5 L 17.585938 5 L 8.2929688 14.292969 L 9.7070312 15.707031 L 19 6.4140625 L 19 10 L 21 10 L 21 3 L 14 3 z"}))}o.defaultProps={width:"24",height:"24",fill:"#000",viewBox:"0 0 24 24"},e.exports=o,o.default=o},qeCs:function(e,t,n){var r=n("vxC8")(n("IBsm"),"Map");e.exports=r},qjF7:function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},qnot:function(e,t){function n(e,t){if(0!==e.length){r(e[0],t);for(var n=1;n<e.length;n++)r(e[n],!t)}}function r(e,t){for(var n=0,r=0,o=0,i=e.length,a=i-1;o<i;a=o++){var c=(e[o][0]-e[a][0])*(e[a][1]+e[o][1]),u=n+c;r+=Math.abs(n)>=Math.abs(c)?n-u+c:c-u+n,n=u}n+r>=0!=!!t&&e.reverse()}e.exports=function e(t,r){var o,i=t&&t.type;if("FeatureCollection"===i)for(o=0;o<t.features.length;o++)e(t.features[o],r);else if("GeometryCollection"===i)for(o=0;o<t.geometries.length;o++)e(t.geometries[o],r);else if("Feature"===i)e(t.geometry,r);else if("Polygon"===i)n(t.coordinates,r);else if("MultiPolygon"===i)for(o=0;o<t.coordinates.length;o++)n(t.coordinates[o],r);return t}},qrJ5:function(e,t,n){"use strict";var r=n("cxan"),o=n("zjfJ"),i=n("4wDe"),a=n("zygG"),c=n("O94r"),u=n.n(c),s=n("ERkP"),l=n("H84U"),f=n("P80f"),p=n("ACnJ"),d=n("CWQg"),h=n("o/2+"),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},y=(Object(d.a)("top","middle","bottom","stretch"),Object(d.a)("start","end","center","space-around","space-between","space-evenly"),s.forwardRef((function(e,t){var n,c=e.prefixCls,d=e.justify,y=e.align,m=e.className,g=e.style,b=e.children,O=e.gutter,w=void 0===O?0:O,_=e.wrap,x=v(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),E=s.useContext(l.b),S=E.getPrefixCls,C=E.direction,j=s.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),k=Object(a.a)(j,2),P=k[0],T=k[1],M=Object(f.a)(),A=s.useRef(w);s.useEffect((function(){var e=p.a.subscribe((function(e){var t=A.current||0;(!Array.isArray(t)&&"object"===Object(i.a)(t)||Array.isArray(t)&&("object"===Object(i.a)(t[0])||"object"===Object(i.a)(t[1])))&&T(e)}));return function(){return p.a.unsubscribe(e)}}),[]);var L,R=S("row",c),N=(L=[void 0,void 0],(Array.isArray(w)?w:[w,void 0]).forEach((function(e,t){if("object"===Object(i.a)(e))for(var n=0;n<p.b.length;n++){var r=p.b[n];if(P[r]&&void 0!==e[r]){L[t]=e[r];break}}else L[t]=e})),L),I=u()(R,(n={},Object(o.a)(n,"".concat(R,"-no-wrap"),!1===_),Object(o.a)(n,"".concat(R,"-").concat(d),d),Object(o.a)(n,"".concat(R,"-").concat(y),y),Object(o.a)(n,"".concat(R,"-rtl"),"rtl"===C),n),m),D={},F=null!=N[0]&&N[0]>0?N[0]/-2:void 0,z=null!=N[1]&&N[1]>0?N[1]/-2:void 0;if(F&&(D.marginLeft=F,D.marginRight=F),M){var B=Object(a.a)(N,2);D.rowGap=B[1]}else z&&(D.marginTop=z,D.marginBottom=z);var U=Object(a.a)(N,2),V=U[0],H=U[1],G=s.useMemo((function(){return{gutter:[V,H],wrap:_,supportFlexGap:M}}),[V,H,_,M]);return s.createElement(h.a.Provider,{value:G},s.createElement("div",Object(r.a)({},x,{className:I,style:Object(r.a)(Object(r.a)({},D),g),ref:t}),b))})));t.a=y},qvLe:function(e,t,n){"use strict";var r,o,i,a=n("vRDG"),c=n("1Mu/"),u=n("9JhN"),s=n("POgt"),l=n("dSaG"),f=n("eiXn"),p=n("2gZs"),d=n("SRL+"),h=n("WxKw"),v=n("7zCF"),y=n("q9+l").f,m=n("+5th"),g=n("DjlN"),b=n("waID"),O=n("fVMg"),w=n("HYrn"),_=n("zc29"),x=_.enforce,E=_.get,S=u.Int8Array,C=S&&S.prototype,j=u.Uint8ClampedArray,k=j&&j.prototype,P=S&&g(S),T=C&&g(C),M=Object.prototype,A=u.TypeError,L=O("toStringTag"),R=w("TYPED_ARRAY_TAG"),N=a&&!!b&&"Opera"!==p(u.opera),I=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},z=function(e){var t=g(e);if(l(t)){var n=E(t);return n&&f(n,"TypedArrayConstructor")?n.TypedArrayConstructor:z(t)}},B=function(e){if(!l(e))return!1;var t=p(e);return f(D,t)||f(F,t)};for(r in D)(i=(o=u[r])&&o.prototype)?x(i).TypedArrayConstructor=o:N=!1;for(r in F)(i=(o=u[r])&&o.prototype)&&(x(i).TypedArrayConstructor=o);if((!N||!s(P)||P===Function.prototype)&&(P=function(){throw A("Incorrect invocation")},N))for(r in D)u[r]&&b(u[r],P);if((!N||!T||T===M)&&(T=P.prototype,N))for(r in D)u[r]&&b(u[r].prototype,T);if(N&&g(k)!==T&&b(k,T),c&&!f(T,L))for(r in I=!0,y(T,L,{get:function(){return l(this)?this[R]:void 0}}),D)u[r]&&h(u[r],R,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:I&&R,aTypedArray:function(e){if(B(e))return e;throw A("Target is not a typed array")},aTypedArrayConstructor:function(e){if(s(e)&&(!b||m(P,e)))return e;throw A(d(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(c){if(n)for(var o in D){var i=u[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(a){try{i.prototype[e]=t}catch(s){}}}T[e]&&!n||v(T,e,n?t:N&&C[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(c){if(b){if(n)for(r in D)if((o=u[r])&&f(o,e))try{delete o[e]}catch(i){}if(P[e]&&!n)return;try{return v(P,e,n?t:N&&P[e]||t)}catch(i){}}for(r in D)!(o=u[r])||o[e]&&!n||v(o,e,t)}},getTypedArrayConstructor:z,isView:function(e){if(!l(e))return!1;var t=p(e);return"DataView"===t||f(D,t)||f(F,t)},isTypedArray:B,TypedArray:P,TypedArrayPrototype:T}},qzOT:function(e,t,n){(function(e,t){var r;n("6JDI"),n("nndn"),function(n){!function(r){var o="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=a(n);function a(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===o.Reflect?o.Reflect=n:i=a(o.Reflect,i),function(t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,o=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,c={__proto__:[]}instanceof Array,u=!a&&!c,s={create:a?function(){return L(Object.create(null))}:c?function(){return L({__proto__:null})}:function(){return L({})},has:u?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:u?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),f="object"==typeof e&&{}&&"true"==={}.REFLECT_METADATA_USE_MAP_POLYFILL,p=f||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,o=n+1;o<r;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,o)},t.prototype.entries=function(){return new n(this._keys,this._values,a)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function o(e,t){return t}function a(e,t){return[e,t]}}():Map,d=f||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new p}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}():Set,h=new(f||"function"!=typeof WeakMap?function(){var e=s.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=o(e,!1);return void 0!==t&&s.has(t,this._key)},e.prototype.get=function(e){var t=o(e,!1);return void 0!==t?s.get(t,this._key):void 0},e.prototype.set=function(e,t){return o(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=o(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+a()}while(s.has(e,t));return e[t]=!0,t}function o(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:s.create()})}return e[t]}function i(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function a(){var e,t=(e=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):i(new Uint8Array(e),e):i(new Array(e),e));t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var n="",r=0;r<16;++r){var o=t[r];4!==r&&6!==r&&8!==r||(n+="-"),o<16&&(n+="0"),n+=o.toString(16).toLowerCase()}return n}}():WeakMap);function v(e,t,n){var r=h.get(e);if(w(r)){if(!n)return;r=new p,h.set(e,r)}var o=r.get(t);if(w(o)){if(!n)return;o=new p,r.set(t,o)}return o}function y(e,t,n){var r=v(t,n,!1);return!w(r)&&!!r.has(e)}function m(e,t,n){var r=v(t,n,!1);if(!w(r))return r.get(e)}function g(e,t,n,r){v(n,r,!0).set(e,t)}function b(e,t){var n=[],r=v(e,t,!1);if(w(r))return n;for(var o=function(e){var t=P(e,i);if(!j(t))throw new TypeError;var n=t.call(e);if(!x(n))throw new TypeError;return n}(r.keys()),a=0;;){var c=T(o);if(!c)return n.length=a,n;var u=c.value;try{n[a]=u}catch(s){try{M(o)}finally{throw s}}a++}}function O(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function w(e){return void 0===e}function _(e){return null===e}function x(e){return"object"==typeof e?null!==e:"function"==typeof e}function E(e,t){switch(O(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n=3===t?"string":5===t?"number":"default",r=P(e,o);if(void 0!==r){var i=r.call(e,n);if(x(i))throw new TypeError;return i}return function(e,t){if("string"===t){var n=e.toString;if(j(n))if(!x(o=n.call(e)))return o;if(j(r=e.valueOf))if(!x(o=r.call(e)))return o}else{var r;if(j(r=e.valueOf))if(!x(o=r.call(e)))return o;var o,i=e.toString;if(j(i))if(!x(o=i.call(e)))return o}throw new TypeError}(e,"default"===n?"number":n)}function S(e){var t=E(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function C(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function j(e){return"function"==typeof e}function k(e){return"function"==typeof e}function P(e,t){var n=e[t];if(null!=n){if(!j(n))throw new TypeError;return n}}function T(e){var t=e.next();return!t.done&&t}function M(e){var t=e.return;t&&t.call(e)}function A(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===l)return t;if(t!==l)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var o=r.constructor;return"function"!=typeof o||o===e?t:o}function L(e){return e.__=void 0,delete e.__,e}t("decorate",(function(e,t,n,r){if(w(n)){if(!C(e))throw new TypeError;if(!k(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!w(r)&&!_(r)){if(!k(r))throw new TypeError;t=r}}return t}(e,t)}if(!C(e))throw new TypeError;if(!x(t))throw new TypeError;if(!x(r)&&!w(r)&&!_(r))throw new TypeError;return _(r)&&(r=void 0),function(e,t,n,r){for(var o=e.length-1;o>=0;--o){var i=(0,e[o])(t,n,r);if(!w(i)&&!_(i)){if(!x(i))throw new TypeError;r=i}}return r}(e,t,n=S(n),r)})),t("metadata",(function(e,t){return function(n,r){if(!x(n))throw new TypeError;if(!w(r)&&!function(e){switch(O(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),t("defineMetadata",(function(e,t,n,r){if(!x(n))throw new TypeError;return w(r)||(r=S(r)),g(e,t,n,r)})),t("hasMetadata",(function(e,t,n){if(!x(t))throw new TypeError;return w(n)||(n=S(n)),function e(t,n,r){if(y(t,n,r))return!0;var o=A(n);return!_(o)&&e(t,o,r)}(e,t,n)})),t("hasOwnMetadata",(function(e,t,n){if(!x(t))throw new TypeError;return w(n)||(n=S(n)),y(e,t,n)})),t("getMetadata",(function(e,t,n){if(!x(t))throw new TypeError;return w(n)||(n=S(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var o=A(n);return _(o)?void 0:e(t,o,r)}(e,t,n)})),t("getOwnMetadata",(function(e,t,n){if(!x(t))throw new TypeError;return w(n)||(n=S(n)),m(e,t,n)})),t("getMetadataKeys",(function(e,t){if(!x(e))throw new TypeError;return w(t)||(t=S(t)),function e(t,n){var r=b(t,n),o=A(t);if(null===o)return r;var i=e(o,n);if(i.length<=0)return r;if(r.length<=0)return i;for(var a=new d,c=[],u=0,s=r;u<s.length;u++){var l=s[u];a.has(l)||(a.add(l),c.push(l))}for(var f=0,p=i;f<p.length;f++){l=p[f];a.has(l)||(a.add(l),c.push(l))}return c}(e,t)})),t("getOwnMetadataKeys",(function(e,t){if(!x(e))throw new TypeError;return w(t)||(t=S(t)),b(e,t)})),t("deleteMetadata",(function(e,t,n){if(!x(t))throw new TypeError;w(n)||(n=S(n));var r=v(t,n,!1);if(w(r))return!1;if(!r.delete(e))return!1;if(r.size>0)return!0;var o=h.get(t);return o.delete(n),o.size>0||h.delete(t),!0}))}(i)}()}(r||(r={}))}).call(this,n("F63i"),n("fRV1"))},r0HX:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n("mGvo"),o=n.n(r),i=n("pufz"),a=n("zEXi"),c=n("pfNN"),u=n("k0uE");function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){l=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(k){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=u;var p={};function d(){}function h(){}function v(){}var y={};c(y,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,o)&&(y=g);var b=v.prototype=d.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==s(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=v,c(b,"constructor",v),c(v,"constructor",h),h.displayName=c(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},O(w.prototype),c(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(b),c(b,a,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function f(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _="\nuniform float u_additive;\n\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\nvarying vec4 v_data;\nvarying vec4 v_color;\nvarying float v_radius;\nuniform float u_time;\nuniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ];\n\n#pragma include \"sdf_2d\"\n#pragma include \"picking\"\n\nvoid main() {\n\n vec4 textrueStroke = vec4(\n styleMappingMat[1][0],\n styleMappingMat[1][1],\n styleMappingMat[1][2],\n styleMappingMat[1][3]\n );\n\n float opacity = styleMappingMat[0][0];\n\n lowp float antialiasblur = v_data.z;\n float r = v_radius / (v_radius);\n\n float outer_df;\n float inner_df;\n // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica'\n \n outer_df = sdCircle(v_data.xy, 1.0);\n inner_df = sdCircle(v_data.xy, r);\n\n\n float opacity_t = smoothstep(0.0, antialiasblur, outer_df);\n\n float color_t = smoothstep(\n antialiasblur,\n 0.0,\n inner_df\n );\n float PI = 3.14159;\n float N_RINGS = 3.0;\n float FREQ = 1.0;\n\n gl_FragColor = vec4(v_color.rgb, v_color.a * opacity);\n\n float d = length(v_data.xy);\n if(d > 0.5) {\n discard;\n }\n float intensity = clamp(cos(d * PI), 0.0, 1.0) * clamp(cos(2.0 * PI * (d * 2.0 * u_animate.z - u_animate.y * u_time)), 0.0, 1.0);\n \n // 根据叠加模式选择效果\n if(u_additive > 0.0) {\n gl_FragColor *= intensity;\n // 优化水波点 blend additive 模式下有的拾取效果 \n gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a);\n } else {\n gl_FragColor = vec4(gl_FragColor.xyz, gl_FragColor.a * intensity);\n gl_FragColor = filterColor(gl_FragColor);\n }\n}\n",x='attribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec3 a_Extrude;\nattribute float a_Size;\nattribute float a_Shape;\n\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float u_meter2coord;\nuniform float u_meteryScale;\nuniform float u_isMeter;\n\nvarying vec4 v_data;\nvarying vec4 v_color;\nvarying float v_radius;\n\nuniform float u_opacity : 1;\nuniform float u_stroke_opacity : 1;\nuniform float u_stroke_width : 2;\nuniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0];\nuniform vec2 u_offsets;\n\nuniform float u_blur : 0.0;\nuniform float u_raisingHeight: 0.0;\nuniform float u_heightfixed: 0.0;\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n#pragma include "styleMappingCalStrokeOpacity"\n#pragma include "styleMappingCalStrokeWidth"\n\n#pragma include "projection"\n#pragma include "picking"\n\n\nvoid main() {\n vec3 extrude = a_Extrude;\n float shape_type = a_Shape;\n /*\n * setPickingSize 设置拾取大小\n * u_meter2coord 在等面积大小的时候设置单位\n */\n float newSize = setPickingSize(a_Size) * u_meter2coord;\n // float newSize = setPickingSize(a_Size) * 0.00001038445708445579;\n\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1]\n 0.0, 0.0, 0.0, 0.0\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n\n vec2 strokeOpacityAndOffset = calStrokeOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][1] = strokeOpacityAndOffset.r;\n textureOffset = strokeOpacityAndOffset.g;\n\n vec2 strokeWidthAndOffset = calStrokeWidthAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][2] = strokeWidthAndOffset.r;\n textureOffset = strokeWidthAndOffset.g;\n\n vec4 textrueStroke = vec4(-1.0, -1.0, -1.0, -1.0);\n if(hasStroke()) {\n vec2 valueRPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n styleMappingMat[1][0] = pos2value(valueRPos, columnWidth, rowHeight); // R\n textureOffset += 1.0;\n\n vec2 valueGPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n styleMappingMat[1][1] = pos2value(valueGPos, columnWidth, rowHeight); // G\n textureOffset += 1.0;\n\n vec2 valueBPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n styleMappingMat[1][2] = pos2value(valueBPos, columnWidth, rowHeight); // B\n textureOffset += 1.0;\n\n vec2 valueAPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n styleMappingMat[1][3] = pos2value(valueAPos, columnWidth, rowHeight); // A\n textureOffset += 1.0;\n } else {\n if(u_stroke_color == vec4(0.0)) {\n styleMappingMat[1][0] = v_color.r;\n styleMappingMat[1][1] = v_color.g;\n styleMappingMat[1][2] = v_color.b;\n styleMappingMat[1][3] = v_color.a;\n } else {\n styleMappingMat[1][0] = u_stroke_color.r;\n styleMappingMat[1][1] = u_stroke_color.g;\n styleMappingMat[1][2] = u_stroke_color.b;\n styleMappingMat[1][3] = u_stroke_color.a;\n }\n }\n\n vec2 textrueOffsets = vec2(0.0, 0.0);\n if(hasOffsets()) {\n vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x\n textureOffset += 1.0;\n\n vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset);\n textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x\n textureOffset += 1.0;\n } else {\n textrueOffsets = u_offsets;\n }\n\n // cal style mapping\n\n // unpack color(vec2)\n v_color = a_Color;\n\n // radius(16-bit)\n v_radius = newSize;\n\n // anti-alias\n // float antialiased_blur = -max(u_blur, antialiasblur);\n float antialiasblur = -max(2.0 / u_DevicePixelRatio / newSize, u_blur);\n\n vec2 offset = (extrude.xy * (newSize + u_stroke_width) + textrueOffsets);\n vec3 aPosition = a_Position;\n if(u_isMeter < 1.0) {\n // 不以米为实际单位\n offset = project_pixel(offset);\n } else {\n // 以米为实际单位\n if(newSize * pow(2.0, u_Zoom) < 48.0) {\n antialiasblur = max(antialiasblur, -0.05);\n } else if(newSize * pow(2.0, u_Zoom) < 128.0) {\n antialiasblur = max(antialiasblur, -0.6/pow(u_Zoom, 2.0));\n } else {\n antialiasblur = max(antialiasblur, -0.8/pow(u_Zoom, 2.0));\n }\n \n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n aPosition.x += offset.x / u_meteryScale;\n aPosition.y += offset.y;\n offset = vec2(0.0);\n }\n }\n\n // TODP: /abs(extrude.x) 是为了兼容地球模式\n v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type);\n\n\n // vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0));\n vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0));\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0));\n\n float raisingHeight = u_raisingHeight;\n\n if(u_heightfixed < 1.0) { // false\n raisingHeight = project_pixel(u_raisingHeight);\n } else {\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n raisingHeight = u_raisingHeight * mapboxZoomScale;\n }\n }\n \n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * vec4(project_pos.xy + offset, raisingHeight, 1.0);\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, raisingHeight, 1.0));\n }\n \n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0));\n\n setPickingColor(a_PickingColor);\n}\n',E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(g,e);var t,n,r,c,s,d=m(g);function g(){var e;h(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(b(e=d.call.apply(d,[this].concat(n))),"meter2coord",1),w(b(e),"meterYScale",1),w(b(e),"isMeter",!1),w(b(e),"unit","l7size"),e}return t=g,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.strokeOpacity,a=void 0===r?1:r,c=e.strokeWidth,u=void 0===c?0:c,s=e.stroke,l=void 0===s?"rgba(0,0,0,0)":s,f=e.offsets,p=void 0===f?[0,0]:f,d=e.blend,h=e.blur,v=void 0===h?0:h,y=e.raisingHeight,m=void 0===y?0:y,g=e.heightfixed,b=void 0!==g&&g,O=e.unit,w=void 0===O?"l7size":O;if(this.updateUnit(w),this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:n,strokeOpacity:a,strokeWidth:u,stroke:l,offsets:p})){this.judgeStyleAttributes({opacity:n,strokeOpacity:a,strokeWidth:u,stroke:l,offsets:p});var _=this.layer.getEncodedData(),x=this.calDataFrame(this.cellLength,_,this.cellProperties),E=x.data,S=x.width,C=x.height;this.rowCount=C,this.dataTexture=this.cellLength>0&&E.length>0?this.createTexture2D({flipY:!0,data:E,format:i.gl.LUMINANCE,type:i.gl.FLOAT,width:S,height:C}):this.createTexture2D({flipY:!0,data:[1],format:i.gl.LUMINANCE,type:i.gl.FLOAT,width:1,height:1})}return{u_raisingHeight:Number(m),u_heightfixed:Number(b),u_meter2coord:this.meter2coord,u_meteryScale:this.meterYScale,u_isMeter:Number(this.isMeter),u_blur:v,u_additive:"additive"===d?1:0,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:o()(n)?n:1,u_stroke_opacity:o()(a)?a:1,u_stroke_width:o()(u)?u:1,u_stroke_color:this.getStrokeColor(l),u_offsets:this.isOffsetStatic(p)?p:[0,0]}}},{key:"getAnimateUniforms",value:function(){var e=this.layer.getLayerConfig().animateOption,t=void 0===e?{enable:!1}:e;return{u_animate:this.animateOption2Array(t),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),a.k)}},{key:"initModels",value:function(e){this.updateUnit("l7size"),this.buildModels(e)}},{key:"calMeter2Coord",value:function(){var e=p(this.layer.getSource().extent,4),t=e[0],n=e[1],r=e[2],o=e[3],i=[(t+r)/2,(n+o)/2],c=this.mapService.version,s=null===a.c||void 0===a.c?void 0:a.c.mapboxgl;if(c===u.a.MAPBOX&&null!=s&&s.MercatorCoordinate){var l=s.MercatorCoordinate.fromLngLat({lng:i[0],lat:i[1]},0),f=l.meterInMercatorCoordinateUnits(),d=new s.MercatorCoordinate(l.x-f,l.y,l.z).toLngLat(),h=new s.MercatorCoordinate(l.x,l.y-f,l.z).toLngLat();return this.meter2coord=i[0]-d.lng,void(this.meterYScale=(h.lat-i[1])/this.meter2coord)}var v=this.mapService.meterToCoord(i,[t,n]),y=this.mapService.meterToCoord(i,[r===t?r+.1:r,o===n?n+.1:o]);this.meter2coord=(v+y)/2,this.meter2coord||(this.meter2coord=7.70681090738883)}},{key:"buildModels",value:(c=l().mark((function e(t){var n,r,o,i,c,u,s,f,p,d,h,v,y,m,g;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this.layer.getLayerConfig(),r=n.mask,o=void 0!==r&&r,i=n.maskInside,c=void 0===i||i,u=n.animateOption,s=void 0===u?{enable:!1}:u,f=n.workerEnabled,p=void 0!==f&&f,d=n.enablePicking,h=n.shape2d,v=this.getShaders(s),y=v.frag,m=v.vert,g=v.type,this.layer.triangulation=a.k,this.layer.buildLayerModel({moduleName:g,vertexShader:m,fragmentShader:y,triangulation:a.k,depth:{enable:!1},blend:this.getBlend(),stencil:Object(a.bb)(o,c),workerEnabled:p,workerOptions:{modelType:g,enablePicking:d,shape2d:h}}).then((function(e){t([e])})).catch((function(e){console.warn(e),t([])}));case 4:case"end":return e.stop()}}),e,this)})),s=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=c.apply(e,t);function i(e){f(o,n,r,i,a,"next",e)}function a(e){f(o,n,r,i,a,"throw",e)}i(void 0)}))},function(e){return s.apply(this,arguments)})},{key:"getShaders",value:function(e){if(!e.enable)return{frag:"uniform float u_additive;\n\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\nvarying vec4 v_data;\nvarying vec4 v_color;\nvarying float v_radius;\n\n#pragma include \"sdf_2d\"\n#pragma include \"picking\"\n\n\nvoid main() {\n int shape = int(floor(v_data.w + 0.5));\n\n vec4 textrueStroke = vec4(\n styleMappingMat[1][0],\n styleMappingMat[1][1],\n styleMappingMat[1][2],\n styleMappingMat[1][3]\n );\n\n float opacity = styleMappingMat[0][0];\n float stroke_opacity = styleMappingMat[0][1];\n float strokeWidth = styleMappingMat[0][2];\n vec4 strokeColor = textrueStroke == vec4(0) ? v_color : textrueStroke;\n\n lowp float antialiasblur = v_data.z;\n float r = v_radius / (v_radius + strokeWidth);\n\n float outer_df;\n float inner_df;\n // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica'\n if (shape == 0) {\n outer_df = sdCircle(v_data.xy, 1.0);\n inner_df = sdCircle(v_data.xy, r);\n } else if (shape == 1) {\n outer_df = sdEquilateralTriangle(1.1 * v_data.xy);\n inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy);\n } else if (shape == 2) {\n outer_df = sdBox(v_data.xy, vec2(1.));\n inner_df = sdBox(v_data.xy, vec2(r));\n } else if (shape == 3) {\n outer_df = sdPentagon(v_data.xy, 0.8);\n inner_df = sdPentagon(v_data.xy, r * 0.8);\n } else if (shape == 4) {\n outer_df = sdHexagon(v_data.xy, 0.8);\n inner_df = sdHexagon(v_data.xy, r * 0.8);\n } else if (shape == 5) {\n outer_df = sdOctogon(v_data.xy, 1.0);\n inner_df = sdOctogon(v_data.xy, r);\n } else if (shape == 6) {\n outer_df = sdHexagram(v_data.xy, 0.52);\n inner_df = sdHexagram(v_data.xy, r * 0.52);\n } else if (shape == 7) {\n outer_df = sdRhombus(v_data.xy, vec2(1.0));\n inner_df = sdRhombus(v_data.xy, vec2(r));\n } else if (shape == 8) {\n outer_df = sdVesica(v_data.xy, 1.1, 0.8);\n inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8);\n }\n\n float opacity_t = smoothstep(0.0, antialiasblur, outer_df);\n\n float color_t = strokeWidth < 0.01 ? 0.0 : smoothstep(\n antialiasblur,\n 0.0,\n inner_df\n );\n\n if(strokeWidth < 0.01) {\n gl_FragColor = vec4(v_color.rgb, v_color.a * opacity);\n } else {\n gl_FragColor = mix(vec4(v_color.rgb, v_color.a * opacity), strokeColor * stroke_opacity, color_t);\n }\n\n if(u_additive > 0.0) {\n gl_FragColor *= opacity_t;\n gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a);\n } else {\n gl_FragColor.a *= opacity_t;\n gl_FragColor = filterColor(gl_FragColor);\n }\n}\n",vert:x,type:"pointFill"};switch(e.type){case"wave":default:return{frag:_,vert:x,type:"pointWave"}}}},{key:"clearModels",value:function(){var e;null===(e=this.dataTexture)||void 0===e||e.destroy()}},{key:"animateOption2Array",value:function(e){return[e.enable?0:1,e.speed||1,e.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var e=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:i.AttributeType.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:3,update:function(e,t,n,r){var o=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],i=r%4*3;return[o[i],o[i+1],o[i+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:i.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?5:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:i.AttributeType.Attribute,descriptor:{name:"a_Shape",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:1,update:function(t){var n=t.shape,r=void 0===n?2:n;return[e.indexOf(r)]}}})}},{key:"updateUnit",value:function(e){var t=this.mapService.version;this.unit!==e&&("meter"!==this.unit&&"meter"===e&&t!==u.a.L7MAP&&t!==u.a.GLOBEL?(this.isMeter=!0,this.calMeter2Coord()):"meter"===this.unit&&"meter"!==e&&(this.isMeter=!1,this.meter2coord=1),this.unit=e)}}])&&v(t.prototype,n),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),g}(c.a)},r6MD:function(e,t,n){"use strict";var r=n("p8C9");t.a=function(e,t,n){var o=null==e?void 0:Object(r.a)(e,t);return void 0===o?n:o}},r8Ni:function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},"r8k/":function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="CloseCircleOutlined";t.a=o.forwardRef(c)},rCxc:function(e,t,n){},rDK1:function(e,t,n){var r=n("695J"),o=n("TcdR");function i(t,n,a){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},rMMm:function(e,t,n){"use strict";var r=n("IGGJ");t.__esModule=!0,t.onRouteUpdate=t.onRouteUpdateDelayed=t.onClientEntry=void 0;var o=r(n("97Jx")),i=r(n("BqJQ")),a={color:"#29d"};t.onClientEntry=function(e,t){void 0===t&&(t={});var n=(0,o.default)({},a,t),r="\n #nprogress {\n pointer-events: none;\n }\n #nprogress .bar {\n background: "+n.color+";\n position: fixed;\n z-index: 1031;\n top: 0;\n left: 0;\n width: 100%;\n height: 2px;\n }\n #nprogress .peg {\n display: block;\n position: absolute;\n right: 0px;\n width: 100px;\n height: 100%;\n box-shadow: 0 0 10px "+n.color+", 0 0 5px "+n.color+";\n opacity: 1.0;\n -webkit-transform: rotate(3deg) translate(0px, -4px);\n -ms-transform: rotate(3deg) translate(0px, -4px);\n transform: rotate(3deg) translate(0px, -4px);\n }\n #nprogress .spinner {\n display: block;\n position: fixed;\n z-index: 1031;\n top: 15px;\n right: 15px;\n }\n #nprogress .spinner-icon {\n width: 18px;\n height: 18px;\n box-sizing: border-box;\n border: solid 2px transparent;\n border-top-color: "+n.color+";\n border-left-color: "+n.color+";\n border-radius: 50%;\n -webkit-animation: nprogress-spinner 400ms linear infinite;\n animation: nprogress-spinner 400ms linear infinite;\n }\n .nprogress-custom-parent {\n overflow: hidden;\n position: relative;\n }\n .nprogress-custom-parent #nprogress .spinner,\n .nprogress-custom-parent #nprogress .bar {\n position: absolute;\n }\n @-webkit-keyframes nprogress-spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @keyframes nprogress-spinner {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n ",c=document.createElement("style");c.id="nprogress-styles",c.innerHTML=r,document.head.appendChild(c),i.default.configure(n)};t.onRouteUpdateDelayed=function(){i.default.start()};t.onRouteUpdate=function(){i.default.done()}},rSSe:function(e,t,n){},rXFn:function(e,t,n){var r=n("0Ocv");e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},rkDk:function(e,t,n){"use strict";var r=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(!1===n(i[u],u,i))break}return t}}(),o=n("FoV5");var i=function(e,t){return e&&r(e,t,o.a)},a=n("GIvL");var c=function(e,t){return function(n,r){if(null==n)return n;if(!Object(a.a)(n))return e(n,r);for(var o=n.length,i=t?o:-1,c=Object(n);(t?i--:++i<o)&&!1!==r(c[i],i,c););return n}}(i);t.a=c},rmhs:function(e,t,n){var r=n("2ZvR"),o=n("bvyN"),i=n("wxYD"),a=n("3ajY"),c=n("pnw1"),u=n("Qd2C"),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var y in e)!t&&!s.call(e,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,v))||h.push(y);return h}},rmr3:function(e,t,n){var r,o,i,a,c,u,s,l,f,p,d,h,v;n("6JDI"),n("nndn"),o={defaultNoDataValue:-34027999387901484e22,decode:function(e,t){var n=(t=t||{}).encodedMaskData||null===t.encodedMaskData,r=u(e,t.inputOffset||0,n),s=null!==t.noDataValue?t.noDataValue:o.defaultNoDataValue,l=i(r,t.pixelType||Float32Array,t.encodedMaskData,s,t.returnMask),f={width:r.width,height:r.height,pixelData:l.resultPixels,minValue:l.minValue,maxValue:r.pixels.maxValue,noDataValue:s};return l.resultMask&&(f.maskData=l.resultMask),t.returnEncodedMask&&r.mask&&(f.encodedMaskData=r.mask.bitset?r.mask.bitset:null),t.returnFileInfo&&(f.fileInfo=a(r),t.computeUsedBitDepths&&(f.fileInfo.bitDepths=c(r))),f}},i=function(e,t,n,r,o){var i,a,c,u=0,l=e.pixels.numBlocksX,f=e.pixels.numBlocksY,p=Math.floor(e.width/l),d=Math.floor(e.height/f),h=2*e.maxZError,v=Number.MAX_VALUE;n=n||(e.mask?e.mask.bitset:null),a=new t(e.width*e.height),o&&n&&(c=new Uint8Array(e.width*e.height));for(var y,m,g=new Float32Array(p*d),b=0;b<=f;b++){var O=b!==f?d:e.height%f;if(0!==O)for(var w=0;w<=l;w++){var _=w!==l?p:e.width%l;if(0!==_){var x,E,S,C,j=b*e.width*d+w*p,k=e.width-_,P=e.pixels.blocks[u];if(P.encoding<2?(0===P.encoding?x=P.rawData:(s(P.stuffedData,P.bitsPerPixel,P.numValidPixels,P.offset,h,g,e.pixels.maxValue),x=g),E=0):S=2===P.encoding?0:P.offset,n)for(m=0;m<O;m++){for(7&j&&(C=n[j>>3],C<<=7&j),y=0;y<_;y++)7&j||(C=n[j>>3]),128&C?(c&&(c[j]=1),v=v>(i=P.encoding<2?x[E++]:S)?i:v,a[j++]=i):(c&&(c[j]=0),a[j++]=r),C<<=1;j+=k}else if(P.encoding<2)for(m=0;m<O;m++){for(y=0;y<_;y++)v=v>(i=x[E++])?i:v,a[j++]=i;j+=k}else for(v=v>S?S:v,m=0;m<O;m++){for(y=0;y<_;y++)a[j++]=S;j+=k}if(1===P.encoding&&E!==P.numValidPixels)throw"Block and Mask do not match";u++}}}return{resultPixels:a,resultMask:c,minValue:v}},a=function(e){return{fileIdentifierString:e.fileIdentifierString,fileVersion:e.fileVersion,imageType:e.imageType,height:e.height,width:e.width,maxZError:e.maxZError,eofOffset:e.eofOffset,mask:e.mask?{numBlocksX:e.mask.numBlocksX,numBlocksY:e.mask.numBlocksY,numBytes:e.mask.numBytes,maxValue:e.mask.maxValue}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,numBytes:e.pixels.numBytes,maxValue:e.pixels.maxValue,noDataValue:e.noDataValue}}},c=function(e){for(var t=e.pixels.numBlocksX*e.pixels.numBlocksY,n={},r=0;r<t;r++){var o=e.pixels.blocks[r];0===o.encoding?n.float32=!0:1===o.encoding?n[o.bitsPerPixel]=!0:n[0]=!0}return Object.keys(n)},u=function(e,t,n){var r={},o=new Uint8Array(e,t,10);if(r.fileIdentifierString=String.fromCharCode.apply(null,o),"CntZImage"!==r.fileIdentifierString.trim())throw"Unexpected file identifier string: "+r.fileIdentifierString;t+=10;var i=new DataView(e,t,24);if(r.fileVersion=i.getInt32(0,!0),r.imageType=i.getInt32(4,!0),r.height=i.getUint32(8,!0),r.width=i.getUint32(12,!0),r.maxZError=i.getFloat64(16,!0),t+=24,!n)if(i=new DataView(e,t,16),r.mask={},r.mask.numBlocksY=i.getUint32(0,!0),r.mask.numBlocksX=i.getUint32(4,!0),r.mask.numBytes=i.getUint32(8,!0),r.mask.maxValue=i.getFloat32(12,!0),t+=16,r.mask.numBytes>0){var a=new Uint8Array(Math.ceil(r.width*r.height/8)),c=(i=new DataView(e,t,r.mask.numBytes)).getInt16(0,!0),u=2,s=0;do{if(c>0)for(;c--;)a[s++]=i.getUint8(u++);else{var l=i.getUint8(u++);for(c=-c;c--;)a[s++]=l}c=i.getInt16(u,!0),u+=2}while(u<r.mask.numBytes);if(-32768!==c||s<a.length)throw"Unexpected end of mask RLE encoding";r.mask.bitset=a,t+=r.mask.numBytes}else 0==(r.mask.numBytes|r.mask.numBlocksY|r.mask.maxValue)&&(r.mask.bitset=new Uint8Array(Math.ceil(r.width*r.height/8)));i=new DataView(e,t,16),r.pixels={},r.pixels.numBlocksY=i.getUint32(0,!0),r.pixels.numBlocksX=i.getUint32(4,!0),r.pixels.numBytes=i.getUint32(8,!0),r.pixels.maxValue=i.getFloat32(12,!0),t+=16;var f=r.pixels.numBlocksX,p=r.pixels.numBlocksY,d=f+(r.width%f>0?1:0),h=p+(r.height%p>0?1:0);r.pixels.blocks=new Array(d*h);for(var v=0,y=0;y<h;y++)for(var m=0;m<d;m++){var g=0,b=e.byteLength-t;i=new DataView(e,t,Math.min(10,b));var O={};r.pixels.blocks[v++]=O;var w=i.getUint8(0);if(g++,O.encoding=63&w,O.encoding>3)throw"Invalid block encoding ("+O.encoding+")";if(2!==O.encoding){if(0!==w&&2!==w){if(w>>=6,O.offsetType=w,2===w)O.offset=i.getInt8(1),g++;else if(1===w)O.offset=i.getInt16(1,!0),g+=2;else{if(0!==w)throw"Invalid block offset type";O.offset=i.getFloat32(1,!0),g+=4}if(1===O.encoding)if(w=i.getUint8(g),g++,O.bitsPerPixel=63&w,w>>=6,O.numValidPixelsType=w,2===w)O.numValidPixels=i.getUint8(g),g++;else if(1===w)O.numValidPixels=i.getUint16(g,!0),g+=2;else{if(0!==w)throw"Invalid valid pixel count type";O.numValidPixels=i.getUint32(g,!0),g+=4}}var _;if(t+=g,3!==O.encoding)if(0===O.encoding){var x=(r.pixels.numBytes-1)/4;if(x!==Math.floor(x))throw"uncompressed block has invalid length";_=new ArrayBuffer(4*x),new Uint8Array(_).set(new Uint8Array(e,t,4*x));var E=new Float32Array(_);O.rawData=E,t+=4*x}else if(1===O.encoding){var S=Math.ceil(O.numValidPixels*O.bitsPerPixel/8),C=Math.ceil(S/4);_=new ArrayBuffer(4*C),new Uint8Array(_).set(new Uint8Array(e,t,S)),O.stuffedData=new Uint32Array(_),t+=S}}else t++}return r.eofOffset=t,r},s=function(e,t,n,r,o,i,a){var c,u,s,l=(1<<t)-1,f=0,p=0,d=Math.ceil((a-r)/o),h=4*e.length-Math.ceil(t*n/8);for(e[e.length-1]<<=8*h,c=0;c<n;c++){if(0===p&&(s=e[f++],p=32),p>=t)u=s>>>p-t&l,p-=t;else{var v=t-p;u=(s&l)<<v&l,u+=(s=e[f++])>>>(p=32-v)}i[c]=u<d?r+u*o:a}return i},p=o,d=function(){"use strict";var e=function(e,t,n,r,o,i,a,c){var u,s,l,f,p,d=(1<<n)-1,h=0,v=0,y=4*e.length-Math.ceil(n*r/8);if(e[e.length-1]<<=8*y,o)for(u=0;u<r;u++)0===v&&(l=e[h++],v=32),v>=n?(s=l>>>v-n&d,v-=n):(s=(l&d)<<(f=n-v)&d,s+=(l=e[h++])>>>(v=32-f)),t[u]=o[s];else for(p=Math.ceil((c-i)/a),u=0;u<r;u++)0===v&&(l=e[h++],v=32),v>=n?(s=l>>>v-n&d,v-=n):(s=(l&d)<<(f=n-v)&d,s+=(l=e[h++])>>>(v=32-f)),t[u]=s<p?i+s*a:c},t=function(e,t,n,r,o,i){var a,c=(1<<t)-1,u=0,s=0,l=0,f=0,p=0,d=[],h=4*e.length-Math.ceil(t*n/8);e[e.length-1]<<=8*h;var v=Math.ceil((i-r)/o);for(s=0;s<n;s++)0===f&&(a=e[u++],f=32),f>=t?(p=a>>>f-t&c,f-=t):(p=(a&c)<<(l=t-f)&c,p+=(a=e[u++])>>>(f=32-l)),d[s]=p<v?r+p*o:i;return d.unshift(r),d},n=function(e,t,n,r,o,i,a,c){var u,s,l,f,p=(1<<n)-1,d=0,h=0,v=0;if(o)for(u=0;u<r;u++)0===h&&(l=e[d++],h=32,v=0),h>=n?(s=l>>>v&p,h-=n,v+=n):(s=l>>>v&p,h=32-(f=n-h),s|=((l=e[d++])&(1<<f)-1)<<n-f,v=f),t[u]=o[s];else{var y=Math.ceil((c-i)/a);for(u=0;u<r;u++)0===h&&(l=e[d++],h=32,v=0),h>=n?(s=l>>>v&p,h-=n,v+=n):(s=l>>>v&p,h=32-(f=n-h),s|=((l=e[d++])&(1<<f)-1)<<n-f,v=f),t[u]=s<y?i+s*a:c}return t},r=function(e,t,n,r,o,i){var a,c=(1<<t)-1,u=0,s=0,l=0,f=0,p=0,d=0,h=[],v=Math.ceil((i-r)/o);for(s=0;s<n;s++)0===f&&(a=e[u++],f=32,d=0),f>=t?(p=a>>>d&c,f-=t,d+=t):(p=a>>>d&c,f=32-(l=t-f),p|=((a=e[u++])&(1<<l)-1)<<t-l,d=l),h[s]=p<v?r+p*o:i;return h.unshift(r),h},o=function(e,t,n,r){var o,i,a,c,u=(1<<n)-1,s=0,l=0,f=4*e.length-Math.ceil(n*r/8);for(e[e.length-1]<<=8*f,o=0;o<r;o++)0===l&&(a=e[s++],l=32),l>=n?(i=a>>>l-n&u,l-=n):(i=(a&u)<<(c=n-l)&u,i+=(a=e[s++])>>>(l=32-c)),t[o]=i;return t},i=function(e,t,n,r){var o,i,a,c,u=(1<<n)-1,s=0,l=0,f=0;for(o=0;o<r;o++)0===l&&(a=e[s++],l=32,f=0),l>=n?(i=a>>>f&u,l-=n,f+=n):(i=a>>>f&u,l=32-(c=n-l),i|=((a=e[s++])&(1<<c)-1)<<n-c,f=c),t[o]=i;return t},a={HUFFMAN_LUT_BITS_MAX:12,computeChecksumFletcher32:function(e){for(var t=65535,n=65535,r=e.length,o=Math.floor(r/2),i=0;o;){var a=o>=359?359:o;o-=a;do{t+=e[i++]<<8,n+=t+=e[i++]}while(--a);t=(65535&t)+(t>>>16),n=(65535&n)+(n>>>16)}return 1&r&&(n+=t+=e[i]<<8),((n=(65535&n)+(n>>>16))<<16|(t=(65535&t)+(t>>>16)))>>>0},readHeaderInfo:function(e,t){var n=t.ptr,r=new Uint8Array(e,n,6),o={};if(o.fileIdentifierString=String.fromCharCode.apply(null,r),0!==o.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+o.fileIdentifierString;n+=6;var i,a=new DataView(e,n,8),c=a.getInt32(0,!0);if(o.fileVersion=c,n+=4,c>=3&&(o.checksum=a.getUint32(4,!0),n+=4),a=new DataView(e,n,12),o.height=a.getUint32(0,!0),o.width=a.getUint32(4,!0),n+=8,c>=4?(o.numDims=a.getUint32(8,!0),n+=4):o.numDims=1,a=new DataView(e,n,40),o.numValidPixel=a.getUint32(0,!0),o.microBlockSize=a.getInt32(4,!0),o.blobSize=a.getInt32(8,!0),o.imageType=a.getInt32(12,!0),o.maxZError=a.getFloat64(16,!0),o.zMin=a.getFloat64(24,!0),o.zMax=a.getFloat64(32,!0),n+=40,t.headerInfo=o,t.ptr=n,c>=3&&(i=c>=4?52:48,this.computeChecksumFletcher32(new Uint8Array(e,n-i,o.blobSize-14))!==o.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(e,t){var n=t.headerInfo,r=this.getDataTypeArray(n.imageType),o=n.numDims*this.getDataTypeSize(n.imageType),i=this.readSubArray(e,t.ptr,r,o),a=this.readSubArray(e,t.ptr+o,r,o);t.ptr+=2*o;var c,u=!0;for(c=0;c<n.numDims;c++)if(i[c]!==a[c]){u=!1;break}return n.minValues=i,n.maxValues=a,u},readSubArray:function(e,t,n,r){var o;if(n===Uint8Array)o=new Uint8Array(e,t,r);else{var i=new ArrayBuffer(r);new Uint8Array(i).set(new Uint8Array(e,t,r)),o=new n(i)}return o},readMask:function(e,t){var n,r,o=t.ptr,i=t.headerInfo,a=i.width*i.height,c=i.numValidPixel,u=new DataView(e,o,4),s={};if(s.numBytes=u.getUint32(0,!0),o+=4,(0===c||a===c)&&0!==s.numBytes)throw"invalid mask";if(0===c)n=new Uint8Array(Math.ceil(a/8)),s.bitset=n,r=new Uint8Array(a),t.pixels.resultMask=r,o+=s.numBytes;else if(s.numBytes>0){n=new Uint8Array(Math.ceil(a/8));var l=(u=new DataView(e,o,s.numBytes)).getInt16(0,!0),f=2,p=0,d=0;do{if(l>0)for(;l--;)n[p++]=u.getUint8(f++);else for(d=u.getUint8(f++),l=-l;l--;)n[p++]=d;l=u.getInt16(f,!0),f+=2}while(f<s.numBytes);if(-32768!==l||p<n.length)throw"Unexpected end of mask RLE encoding";r=new Uint8Array(a);var h=0,v=0;for(v=0;v<a;v++)7&v?(h=n[v>>3],h<<=7&v):h=n[v>>3],128&h&&(r[v]=1);t.pixels.resultMask=r,s.bitset=n,o+=s.numBytes}return t.ptr=o,t.mask=s,!0},readDataOneSweep:function(e,t,n,r){var o,i=t.ptr,c=t.headerInfo,u=c.numDims,s=c.width*c.height,l=c.imageType,f=c.numValidPixel*a.getDataTypeSize(l)*u,p=t.pixels.resultMask;if(n===Uint8Array)o=new Uint8Array(e,i,f);else{var d=new ArrayBuffer(f);new Uint8Array(d).set(new Uint8Array(e,i,f)),o=new n(d)}if(o.length===s*u)t.pixels.resultPixels=r?a.swapDimensionOrder(o,s,u,n,!0):o;else{t.pixels.resultPixels=new n(s*u);var h=0,v=0,y=0,m=0;if(u>1){if(r){for(v=0;v<s;v++)if(p[v])for(m=v,y=0;y<u;y++,m+=s)t.pixels.resultPixels[m]=o[h++]}else for(v=0;v<s;v++)if(p[v])for(m=v*u,y=0;y<u;y++)t.pixels.resultPixels[m+y]=o[h++]}else for(v=0;v<s;v++)p[v]&&(t.pixels.resultPixels[v]=o[h++])}return i+=f,t.ptr=i,!0},readHuffmanTree:function(e,t){var n=this.HUFFMAN_LUT_BITS_MAX,r=new DataView(e,t.ptr,16);if(t.ptr+=16,r.getInt32(0,!0)<2)throw"unsupported Huffman version";var o=r.getInt32(4,!0),i=r.getInt32(8,!0),u=r.getInt32(12,!0);if(i>=u)return!1;var s=new Uint32Array(u-i);a.decodeBits(e,t,s);var l,f,p,d,h=[];for(l=i;l<u;l++)h[f=l-(l<o?0:o)]={first:s[l-i],second:null};var v=e.byteLength-t.ptr,y=Math.ceil(v/4),m=new ArrayBuffer(4*y);new Uint8Array(m).set(new Uint8Array(e,t.ptr,v));var g,b=new Uint32Array(m),O=0,w=0;for(g=b[0],l=i;l<u;l++)(d=h[f=l-(l<o?0:o)].first)>0&&(h[f].second=g<<O>>>32-d,32-O>=d?32===(O+=d)&&(O=0,g=b[++w]):(O+=d-32,g=b[++w],h[f].second|=g>>>32-O));var _=0,x=0,E=new c;for(l=0;l<h.length;l++)void 0!==h[l]&&(_=Math.max(_,h[l].first));x=_>=n?n:_;var S,C,j,k,P,T=[];for(l=i;l<u;l++)if((d=h[f=l-(l<o?0:o)].first)>0)if(S=[d,f],d<=x)for(C=h[f].second<<x-d,j=1<<x-d,p=0;p<j;p++)T[C|p]=S;else for(C=h[f].second,P=E,k=d-1;k>=0;k--)C>>>k&1?(P.right||(P.right=new c),P=P.right):(P.left||(P.left=new c),P=P.left),0!==k||P.val||(P.val=S[1]);return{decodeLut:T,numBitsLUTQick:x,numBitsLUT:_,tree:E,stuffedData:b,srcPtr:w,bitPos:O}},readHuffman:function(e,t,n,r){var o,i,c,u,s,l,f,p,d,h=t.headerInfo.numDims,v=t.headerInfo.height,y=t.headerInfo.width,m=y*v,g=this.readHuffmanTree(e,t),b=g.decodeLut,O=g.tree,w=g.stuffedData,_=g.srcPtr,x=g.bitPos,E=g.numBitsLUTQick,S=g.numBitsLUT,C=0===t.headerInfo.imageType?128:0,j=t.pixels.resultMask,k=0;x>0&&(_++,x=0);var P,T=w[_],M=1===t.encodeMode,A=new n(m*h),L=A;if(h<2||M){for(P=0;P<h;P++)if(h>1&&(L=new n(A.buffer,m*P,m),k=0),t.headerInfo.numValidPixel===y*v)for(p=0,l=0;l<v;l++)for(f=0;f<y;f++,p++){if(i=0,s=u=T<<x>>>32-E,32-x<E&&(s=u|=w[_+1]>>>64-x-E),b[s])i=b[s][1],x+=b[s][0];else for(s=u=T<<x>>>32-S,32-x<S&&(s=u|=w[_+1]>>>64-x-S),o=O,d=0;d<S;d++)if(!(o=u>>>S-d-1&1?o.right:o.left).left&&!o.right){i=o.val,x=x+d+1;break}x>=32&&(x-=32,T=w[++_]),c=i-C,M?(c+=f>0?k:l>0?L[p-y]:k,c&=255,L[p]=c,k=c):L[p]=c}else for(p=0,l=0;l<v;l++)for(f=0;f<y;f++,p++)if(j[p]){if(i=0,s=u=T<<x>>>32-E,32-x<E&&(s=u|=w[_+1]>>>64-x-E),b[s])i=b[s][1],x+=b[s][0];else for(s=u=T<<x>>>32-S,32-x<S&&(s=u|=w[_+1]>>>64-x-S),o=O,d=0;d<S;d++)if(!(o=u>>>S-d-1&1?o.right:o.left).left&&!o.right){i=o.val,x=x+d+1;break}x>=32&&(x-=32,T=w[++_]),c=i-C,M?(f>0&&j[p-1]?c+=k:l>0&&j[p-y]?c+=L[p-y]:c+=k,c&=255,L[p]=c,k=c):L[p]=c}}else for(p=0,l=0;l<v;l++)for(f=0;f<y;f++)if(p=l*y+f,!j||j[p])for(P=0;P<h;P++,p+=m){if(i=0,s=u=T<<x>>>32-E,32-x<E&&(s=u|=w[_+1]>>>64-x-E),b[s])i=b[s][1],x+=b[s][0];else for(s=u=T<<x>>>32-S,32-x<S&&(s=u|=w[_+1]>>>64-x-S),o=O,d=0;d<S;d++)if(!(o=u>>>S-d-1&1?o.right:o.left).left&&!o.right){i=o.val,x=x+d+1;break}x>=32&&(x-=32,T=w[++_]),c=i-C,L[p]=c}t.ptr=t.ptr+4*(_+1)+(x>0?4:0),t.pixels.resultPixels=A,h>1&&!r&&(t.pixels.resultPixels=a.swapDimensionOrder(A,m,h,n))},decodeBits:function(a,c,u,s,l){var f=c.headerInfo,p=f.fileVersion,d=0,h=a.byteLength-c.ptr>=5?5:a.byteLength-c.ptr,v=new DataView(a,c.ptr,h),y=v.getUint8(0);d++;var m=y>>6,g=0===m?4:3-m,b=(32&y)>0,O=31&y,w=0;if(1===g)w=v.getUint8(d),d++;else if(2===g)w=v.getUint16(d,!0),d+=2;else{if(4!==g)throw"Invalid valid pixel count type";w=v.getUint32(d,!0),d+=4}var _,x,E,S,C,j,k,P,T,M=2*f.maxZError,A=f.numDims>1?f.maxValues[l]:f.zMax;if(b){for(c.counter.lut++,P=v.getUint8(d),d++,S=Math.ceil((P-1)*O/8),C=Math.ceil(S/4),x=new ArrayBuffer(4*C),E=new Uint8Array(x),c.ptr+=d,E.set(new Uint8Array(a,c.ptr,S)),k=new Uint32Array(x),c.ptr+=S,T=0;P-1>>>T;)T++;S=Math.ceil(w*T/8),C=Math.ceil(S/4),x=new ArrayBuffer(4*C),(E=new Uint8Array(x)).set(new Uint8Array(a,c.ptr,S)),_=new Uint32Array(x),c.ptr+=S,j=p>=3?r(k,O,P-1,s,M,A):t(k,O,P-1,s,M,A),p>=3?n(_,u,T,w,j):e(_,u,T,w,j)}else c.counter.bitstuffer++,T=O,c.ptr+=d,T>0&&(S=Math.ceil(w*T/8),C=Math.ceil(S/4),x=new ArrayBuffer(4*C),(E=new Uint8Array(x)).set(new Uint8Array(a,c.ptr,S)),_=new Uint32Array(x),c.ptr+=S,p>=3?null==s?i(_,u,T,w):n(_,u,T,w,!1,s,M,A):null==s?o(_,u,T,w):e(_,u,T,w,!1,s,M,A))},readTiles:function(e,t,n,r){var o=t.headerInfo,i=o.width,c=o.height,u=i*c,s=o.microBlockSize,l=o.imageType,f=a.getDataTypeSize(l),p=Math.ceil(i/s),d=Math.ceil(c/s);t.pixels.numBlocksY=d,t.pixels.numBlocksX=p,t.pixels.ptr=0;var h,v,y,m,g,b,O,w,_,x,E=0,S=0,C=0,j=0,k=0,P=0,T=0,M=0,A=0,L=0,R=0,N=0,I=0,D=0,F=0,z=new n(s*s),B=c%s||s,U=i%s||s,V=o.numDims,H=t.pixels.resultMask,G=t.pixels.resultPixels,W=o.fileVersion>=5?14:15,Y=o.zMax;for(C=0;C<d;C++)for(k=C!==d-1?s:B,j=0;j<p;j++)for(L=C*i*s+j*s,R=i-(P=j!==p-1?s:U),w=0;w<V;w++){if(V>1?(x=G,L=C*i*s+j*s,G=new n(t.pixels.resultPixels.buffer,u*w*f,u),Y=o.maxValues[w]):x=null,T=e.byteLength-t.ptr,v={},F=0,M=(h=new DataView(e,t.ptr,Math.min(10,T))).getUint8(0),F++,_=o.fileVersion>=5?4&M:0,A=M>>6&255,(M>>2&W)!=(j*s>>3&W))throw"integrity issue";if(_&&0===w)throw"integrity issue";if((g=3&M)>3)throw t.ptr+=F,"Invalid block encoding ("+g+")";if(2!==g)if(0===g){if(_)throw"integrity issue";if(t.counter.uncompressed++,t.ptr+=F,N=(N=k*P*f)<(I=e.byteLength-t.ptr)?N:I,y=new ArrayBuffer(N%f==0?N:N+f-N%f),new Uint8Array(y).set(new Uint8Array(e,t.ptr,N)),m=new n(y),D=0,H)for(E=0;E<k;E++){for(S=0;S<P;S++)H[L]&&(G[L]=m[D++]),L++;L+=R}else for(E=0;E<k;E++){for(S=0;S<P;S++)G[L++]=m[D++];L+=R}t.ptr+=D*f}else if(b=a.getDataTypeUsed(_&&l<6?4:l,A),O=a.getOnePixel(v,F,b,h),F+=a.getDataTypeSize(b),3===g)if(t.ptr+=F,t.counter.constantoffset++,H)for(E=0;E<k;E++){for(S=0;S<P;S++)H[L]&&(G[L]=_?Math.min(Y,x[L]+O):O),L++;L+=R}else for(E=0;E<k;E++){for(S=0;S<P;S++)G[L]=_?Math.min(Y,x[L]+O):O,L++;L+=R}else if(t.ptr+=F,a.decodeBits(e,t,z,O,w),F=0,_)if(H)for(E=0;E<k;E++){for(S=0;S<P;S++)H[L]&&(G[L]=z[F++]+x[L]),L++;L+=R}else for(E=0;E<k;E++){for(S=0;S<P;S++)G[L]=z[F++]+x[L],L++;L+=R}else if(H)for(E=0;E<k;E++){for(S=0;S<P;S++)H[L]&&(G[L]=z[F++]),L++;L+=R}else for(E=0;E<k;E++){for(S=0;S<P;S++)G[L++]=z[F++];L+=R}else{if(_)if(H)for(E=0;E<k;E++)for(S=0;S<P;S++)H[L]&&(G[L]=x[L]),L++;else for(E=0;E<k;E++)for(S=0;S<P;S++)G[L]=x[L],L++;t.counter.constant++,t.ptr+=F}}V>1&&!r&&(t.pixels.resultPixels=a.swapDimensionOrder(t.pixels.resultPixels,u,V,n))},formatFileInfo:function(e){return{fileIdentifierString:e.headerInfo.fileIdentifierString,fileVersion:e.headerInfo.fileVersion,imageType:e.headerInfo.imageType,height:e.headerInfo.height,width:e.headerInfo.width,numValidPixel:e.headerInfo.numValidPixel,microBlockSize:e.headerInfo.microBlockSize,blobSize:e.headerInfo.blobSize,maxZError:e.headerInfo.maxZError,pixelType:a.getPixelType(e.headerInfo.imageType),eofOffset:e.eofOffset,mask:e.mask?{numBytes:e.mask.numBytes}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,maxValue:e.headerInfo.zMax,minValue:e.headerInfo.zMin,noDataValue:e.noDataValue}}},constructConstantSurface:function(e,t){var n=e.headerInfo.zMax,r=e.headerInfo.zMin,o=e.headerInfo.maxValues,i=e.headerInfo.numDims,a=e.headerInfo.height*e.headerInfo.width,c=0,u=0,s=0,l=e.pixels.resultMask,f=e.pixels.resultPixels;if(l)if(i>1){if(t)for(c=0;c<i;c++)for(s=c*a,n=o[c],u=0;u<a;u++)l[u]&&(f[s+u]=n);else for(u=0;u<a;u++)if(l[u])for(s=u*i,c=0;c<i;c++)f[s+i]=o[c]}else for(u=0;u<a;u++)l[u]&&(f[u]=n);else if(i>1&&r!==n)if(t)for(c=0;c<i;c++)for(s=c*a,n=o[c],u=0;u<a;u++)f[s+u]=n;else for(u=0;u<a;u++)for(s=u*i,c=0;c<i;c++)f[s+c]=o[c];else for(u=0;u<a*i;u++)f[u]=n},getDataTypeArray:function(e){var t;switch(e){case 0:t=Int8Array;break;case 1:t=Uint8Array;break;case 2:t=Int16Array;break;case 3:t=Uint16Array;break;case 4:t=Int32Array;break;case 5:t=Uint32Array;break;case 6:t=Float32Array;break;case 7:t=Float64Array;break;default:t=Float32Array}return t},getPixelType:function(e){var t;switch(e){case 0:t="S8";break;case 1:t="U8";break;case 2:t="S16";break;case 3:t="U16";break;case 4:t="S32";break;case 5:t="U32";break;case 6:t="F32";break;case 7:t="F64";break;default:t="F32"}return t},isValidPixelValue:function(e,t){if(null==t)return!1;var n;switch(e){case 0:n=t>=-128&&t<=127;break;case 1:n=t>=0&&t<=255;break;case 2:n=t>=-32768&&t<=32767;break;case 3:n=t>=0&&t<=65536;break;case 4:n=t>=-2147483648&&t<=2147483647;break;case 5:n=t>=0&&t<=4294967296;break;case 6:n=t>=-34027999387901484e22&&t<=34027999387901484e22;break;case 7:n=t>=-17976931348623157e292&&t<=17976931348623157e292;break;default:n=!1}return n},getDataTypeSize:function(e){var t=0;switch(e){case 0:case 1:t=1;break;case 2:case 3:t=2;break;case 4:case 5:case 6:t=4;break;case 7:t=8;break;default:t=e}return t},getDataTypeUsed:function(e,t){var n=e;switch(e){case 2:case 4:n=e-t;break;case 3:case 5:n=e-2*t;break;case 6:n=0===t?e:1===t?2:1;break;case 7:n=0===t?e:e-2*t+1;break;default:n=e}return n},getOnePixel:function(e,t,n,r){var o=0;switch(n){case 0:o=r.getInt8(t);break;case 1:o=r.getUint8(t);break;case 2:o=r.getInt16(t,!0);break;case 3:o=r.getUint16(t,!0);break;case 4:o=r.getInt32(t,!0);break;case 5:o=r.getUInt32(t,!0);break;case 6:o=r.getFloat32(t,!0);break;case 7:o=r.getFloat64(t,!0);break;default:throw"the decoder does not understand this pixel type"}return o},swapDimensionOrder:function(e,t,n,r,o){var i=0,a=0,c=0,u=0,s=e;if(n>1)if(s=new r(t*n),o)for(i=0;i<t;i++)for(u=i,c=0;c<n;c++,u+=t)s[u]=e[a++];else for(i=0;i<t;i++)for(u=i,c=0;c<n;c++,u+=t)s[a++]=e[u];return s}},c=function(e,t,n){this.val=e,this.left=t,this.right=n};return{decode:function(e,t){var n=(t=t||{}).noDataValue,r=0,o={};if(o.ptr=t.inputOffset||0,o.pixels={},a.readHeaderInfo(e,o)){var i=o.headerInfo,c=i.fileVersion,u=a.getDataTypeArray(i.imageType);if(c>5)throw"unsupported lerc version 2."+c;a.readMask(e,o),i.numValidPixel===i.width*i.height||o.pixels.resultMask||(o.pixels.resultMask=t.maskData);var s=i.width*i.height;o.pixels.resultPixels=new u(s*i.numDims),o.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var l,f=!t.returnPixelInterleavedDims;if(0!==i.numValidPixel)if(i.zMax===i.zMin)a.constructConstantSurface(o,f);else if(c>=4&&a.checkMinMaxRanges(e,o))a.constructConstantSurface(o,f);else{var p=new DataView(e,o.ptr,2),d=p.getUint8(0);if(o.ptr++,d)a.readDataOneSweep(e,o,u,f);else if(c>1&&i.imageType<=1&&Math.abs(i.maxZError-.5)<1e-5){var h=p.getUint8(1);if(o.ptr++,o.encodeMode=h,h>2||c<4&&h>1)throw"Invalid Huffman flag "+h;h?a.readHuffman(e,o,u,f):a.readTiles(e,o,u,f)}else a.readTiles(e,o,u,f)}o.eofOffset=o.ptr,t.inputOffset?(l=o.headerInfo.blobSize+t.inputOffset-o.ptr,Math.abs(l)>=1&&(o.eofOffset=t.inputOffset+o.headerInfo.blobSize)):(l=o.headerInfo.blobSize-o.ptr,Math.abs(l)>=1&&(o.eofOffset=o.headerInfo.blobSize));var v={width:i.width,height:i.height,pixelData:o.pixels.resultPixels,minValue:i.zMin,maxValue:i.zMax,validPixelCount:i.numValidPixel,dimCount:i.numDims,dimStats:{minValues:i.minValues,maxValues:i.maxValues},maskData:o.pixels.resultMask};if(o.pixels.resultMask&&a.isValidPixelValue(i.imageType,n)){var y=o.pixels.resultMask;for(r=0;r<s;r++)y[r]||(v.pixelData[r]=n);v.noDataValue=n}return o.noDataValue=n,t.returnFileInfo&&(v.fileInfo=a.formatFileInfo(o)),v}},getBandCount:function(e){for(var t=0,n=0,r={ptr:0,pixels:{}};n<e.byteLength-58;)a.readHeaderInfo(e,r),n+=r.headerInfo.blobSize,t++,r.ptr=n;return t}}}(),l=new ArrayBuffer(4),f=new Uint8Array(l),new Uint32Array(l)[0]=1,h=1===f[0],v={decode:function(e,t){if(!h)throw"Big endian system is not supported.";var n,r,o=(t=t||{}).inputOffset||0,i=new Uint8Array(e,o,10),a=String.fromCharCode.apply(null,i);if("CntZImage"===a.trim())n=p,r=1;else{if("Lerc2"!==a.substring(0,5))throw"Unexpected file identifier string: "+a;n=d,r=2}for(var c,u,s,l,f,v,y=0,m=e.byteLength-10,g=[],b={width:0,height:0,pixels:[],pixelType:t.pixelType,mask:null,statistics:[]},O=0;o<m;){var w=n.decode(e,{inputOffset:o,encodedMaskData:c,maskData:s,returnMask:0===y,returnEncodedMask:0===y,returnFileInfo:!0,returnPixelInterleavedDims:t.returnPixelInterleavedDims,pixelType:t.pixelType||null,noDataValue:t.noDataValue||null});o=w.fileInfo.eofOffset,s=w.maskData,0===y&&(c=w.encodedMaskData,b.width=w.width,b.height=w.height,b.dimCount=w.dimCount||1,b.pixelType=w.pixelType||w.fileInfo.pixelType,b.mask=s),r>1&&(s&&g.push(s),w.fileInfo.mask&&w.fileInfo.mask.numBytes>0&&O++),y++,b.pixels.push(w.pixelData),b.statistics.push({minValue:w.minValue,maxValue:w.maxValue,noDataValue:w.noDataValue,dimStats:w.dimStats})}if(r>1&&O>1){for(v=b.width*b.height,b.bandMasks=g,(s=new Uint8Array(v)).set(g[0]),l=1;l<g.length;l++)for(u=g[l],f=0;f<v;f++)s[f]=s[f]&u[f];b.maskData=s}return b}},void 0===(r=function(){return v}.apply(t,[]))||(e.exports=r)},rqe8:function(e,t,n){"use strict";var r,o=n("ERkP"),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,s=[];function l(){u=e(s.map((function(e){return e.props}))),f.canUseDOM?t(u):n&&(u=n(u))}var f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return u},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=u;return u=void 0,s=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),l()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",c),f}}},rxHK:function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,a){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,a,c){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,a,c,u){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,a,c,u,s){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,a,c,u,s,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},rzlk:function(e,t,n){"use strict";n.r(t);var r=n("ERkP"),o=n.n(r),i=n("aWzz"),a=n.n(i),c=n("emEt"),u=n("IOVJ");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){var t=e.location,n=c.default.loadPageSync(t.pathname);return n?o.a.createElement(u.a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({location:t,pageResources:n},n.json)):null};f.propTypes={location:a.a.shape({pathname:a.a.string.isRequired}).isRequired},t.default=f},"s+R0":function(e,t,n){var r=n("JBn+"),o=n("OfKG"),i=n("sCL+"),a=n("S0iI"),c=n("9TP6"),u=n("XlL0");e.exports=function(e,t,n){var s=-1,l=o,f=e.length,p=!0,d=[],h=d;if(n)p=!1,l=i;else if(f>=200){var v=t?null:c(e);if(v)return u(v);p=!1,l=a,h=new r}else h=t?[]:d;e:for(;++s<f;){var y=e[s],m=t?t(y):y;if(y=n||0!==y?y:0,p&&m==m){for(var g=h.length;g--;)if(h[g]===m)continue e;t&&h.push(m),d.push(y)}else l(h,m,n)||(h!==d&&h.push(m),d.push(y))}return d}},s1jM:function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n("ERkP"),o=n("3yBb"),i=Object(o.a)()?r.useLayoutEffect:r.useEffect;t.a=i;var a=function(e,t){var n=r.useRef(!0);i((function(){if(!n.current)return e()}),t),i((function(){return n.current=!1,function(){n.current=!0}}),[])}},s6Xb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiBindToService=t.getServiceIdentifierAsString=t.typeConstraint=t.namedConstraint=t.taggedConstraint=t.traverseAncerstors=t.decorate=t.id=t.MetadataReader=t.postConstruct=t.targetName=t.multiInject=t.unmanaged=t.optional=t.LazyServiceIdentifer=t.inject=t.named=t.tagged=t.injectable=t.ContainerModule=t.AsyncContainerModule=t.TargetTypeEnum=t.BindingTypeEnum=t.BindingScopeEnum=t.Container=t.METADATA_KEY=void 0;var r=n("2u/a");t.METADATA_KEY=r;var o=n("DKDb");Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return o.Container}});var i=n("BEDn");Object.defineProperty(t,"BindingScopeEnum",{enumerable:!0,get:function(){return i.BindingScopeEnum}}),Object.defineProperty(t,"BindingTypeEnum",{enumerable:!0,get:function(){return i.BindingTypeEnum}}),Object.defineProperty(t,"TargetTypeEnum",{enumerable:!0,get:function(){return i.TargetTypeEnum}});var a=n("7teX");Object.defineProperty(t,"AsyncContainerModule",{enumerable:!0,get:function(){return a.AsyncContainerModule}}),Object.defineProperty(t,"ContainerModule",{enumerable:!0,get:function(){return a.ContainerModule}});var c=n("Ki3S");Object.defineProperty(t,"injectable",{enumerable:!0,get:function(){return c.injectable}});var u=n("Mpot");Object.defineProperty(t,"tagged",{enumerable:!0,get:function(){return u.tagged}});var s=n("Uskr");Object.defineProperty(t,"named",{enumerable:!0,get:function(){return s.named}});var l=n("RFCa");Object.defineProperty(t,"inject",{enumerable:!0,get:function(){return l.inject}}),Object.defineProperty(t,"LazyServiceIdentifer",{enumerable:!0,get:function(){return l.LazyServiceIdentifer}});var f=n("Xj5T");Object.defineProperty(t,"optional",{enumerable:!0,get:function(){return f.optional}});var p=n("kot9");Object.defineProperty(t,"unmanaged",{enumerable:!0,get:function(){return p.unmanaged}});var d=n("tlN7");Object.defineProperty(t,"multiInject",{enumerable:!0,get:function(){return d.multiInject}});var h=n("G+fR");Object.defineProperty(t,"targetName",{enumerable:!0,get:function(){return h.targetName}});var v=n("NTKS");Object.defineProperty(t,"postConstruct",{enumerable:!0,get:function(){return v.postConstruct}});var y=n("1DJ1");Object.defineProperty(t,"MetadataReader",{enumerable:!0,get:function(){return y.MetadataReader}});var m=n("+OwM");Object.defineProperty(t,"id",{enumerable:!0,get:function(){return m.id}});var g=n("tTA5");Object.defineProperty(t,"decorate",{enumerable:!0,get:function(){return g.decorate}});var b=n("BOOC");Object.defineProperty(t,"traverseAncerstors",{enumerable:!0,get:function(){return b.traverseAncerstors}}),Object.defineProperty(t,"taggedConstraint",{enumerable:!0,get:function(){return b.taggedConstraint}}),Object.defineProperty(t,"namedConstraint",{enumerable:!0,get:function(){return b.namedConstraint}}),Object.defineProperty(t,"typeConstraint",{enumerable:!0,get:function(){return b.typeConstraint}});var O=n("o7q5");Object.defineProperty(t,"getServiceIdentifierAsString",{enumerable:!0,get:function(){return O.getServiceIdentifierAsString}});var w=n("+AaY");Object.defineProperty(t,"multiBindToService",{enumerable:!0,get:function(){return w.multiBindToService}})},"s7f+":function(e,t,n){"use strict";function r(e,t,n){n=n||2;var r,i,c,u,s,l,d,h=t&&t.length,y=h?t[0]*n:e.length,m=o(e,0,y,n,!0),g=[];if(!m||m.next===m.prev)return g;if(h&&(m=function(e,t,n,r){var i,a,c,u,s,l=[];for(i=0,a=t.length;i<a;i++)c=t[i]*r,u=i<a-1?t[i+1]*r:e.length,(s=o(e,c,u,r,!1))===s.next&&(s.steiner=!0),l.push(v(s));for(l.sort(f),i=0;i<l.length;i++)n=p(l[i],n);return n}(e,t,m,n)),e.length>80*n){r=c=e[0],i=u=e[1];for(var b=n;b<y;b+=n)(s=e[b])<r&&(r=s),(l=e[b+1])<i&&(i=l),s>c&&(c=s),l>u&&(u=l);d=0!==(d=Math.max(c-r,u-i))?32767/d:0}return a(m,g,n,r,i,d,0),g}function o(e,t,n,r,o){var i,a;if(o===k(e,t,n,r)>0)for(i=t;i<n;i+=r)a=S(i,e[i],e[i+1],a);else for(i=n-r;i>=t;i-=r)a=S(i,e[i],e[i+1],a);return a&&b(a,a.next)&&(C(a),a=a.next),a}function i(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!b(r,r.next)&&0!==g(r.prev,r,r.next))r=r.next;else{if(C(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function a(e,t,n,r,o,f,p){if(e){!p&&f&&function(e,t,n,r){var o=e;do{0===o.z&&(o.z=h(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,a,c,u,s=1;do{for(n=e,e=null,i=null,a=0;n;){for(a++,r=n,c=0,t=0;t<s&&(c++,r=r.nextZ);t++);for(u=s;c>0||u>0&&r;)0!==c&&(0===u||!r||n.z<=r.z)?(o=n,n=n.nextZ,c--):(o=r,r=r.nextZ,u--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,s*=2}while(a>1)}(o)}(e,r,o,f);for(var d,v,y=e;e.prev!==e.next;)if(d=e.prev,v=e.next,f?u(e,r,o,f):c(e))t.push(d.i/n|0),t.push(e.i/n|0),t.push(v.i/n|0),C(e),e=v.next,y=v.next;else if((e=v)===y){p?1===p?a(e=s(i(e),t,n),t,n,r,o,f,2):2===p&&l(e,t,n,r,o,f):a(i(e),t,n,r,o,f,1);break}}}function c(e){var t=e.prev,n=e,r=e.next;if(g(t,n,r)>=0)return!1;for(var o=t.x,i=n.x,a=r.x,c=t.y,u=n.y,s=r.y,l=o<i?o<a?o:a:i<a?i:a,f=c<u?c<s?c:s:u<s?u:s,p=o>i?o>a?o:a:i>a?i:a,d=c>u?c>s?c:s:u>s?u:s,h=r.next;h!==t;){if(h.x>=l&&h.x<=p&&h.y>=f&&h.y<=d&&y(o,c,i,u,a,s,h.x,h.y)&&g(h.prev,h,h.next)>=0)return!1;h=h.next}return!0}function u(e,t,n,r){var o=e.prev,i=e,a=e.next;if(g(o,i,a)>=0)return!1;for(var c=o.x,u=i.x,s=a.x,l=o.y,f=i.y,p=a.y,d=c<u?c<s?c:s:u<s?u:s,v=l<f?l<p?l:p:f<p?f:p,m=c>u?c>s?c:s:u>s?u:s,b=l>f?l>p?l:p:f>p?f:p,O=h(d,v,t,n,r),w=h(m,b,t,n,r),_=e.prevZ,x=e.nextZ;_&&_.z>=O&&x&&x.z<=w;){if(_.x>=d&&_.x<=m&&_.y>=v&&_.y<=b&&_!==o&&_!==a&&y(c,l,u,f,s,p,_.x,_.y)&&g(_.prev,_,_.next)>=0)return!1;if(_=_.prevZ,x.x>=d&&x.x<=m&&x.y>=v&&x.y<=b&&x!==o&&x!==a&&y(c,l,u,f,s,p,x.x,x.y)&&g(x.prev,x,x.next)>=0)return!1;x=x.nextZ}for(;_&&_.z>=O;){if(_.x>=d&&_.x<=m&&_.y>=v&&_.y<=b&&_!==o&&_!==a&&y(c,l,u,f,s,p,_.x,_.y)&&g(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=w;){if(x.x>=d&&x.x<=m&&x.y>=v&&x.y<=b&&x!==o&&x!==a&&y(c,l,u,f,s,p,x.x,x.y)&&g(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function s(e,t,n){var r=e;do{var o=r.prev,a=r.next.next;!b(o,a)&&O(o,r,r.next,a)&&x(o,a)&&x(a,o)&&(t.push(o.i/n|0),t.push(r.i/n|0),t.push(a.i/n|0),C(r),C(r.next),r=e=a),r=r.next}while(r!==e);return i(r)}function l(e,t,n,r,o,c){var u=e;do{for(var s=u.next.next;s!==u.prev;){if(u.i!==s.i&&m(u,s)){var l=E(u,s);return u=i(u,u.next),l=i(l,l.next),a(u,t,n,r,o,c,0),void a(l,t,n,r,o,c,0)}s=s.next}u=u.next}while(u!==e)}function f(e,t){return e.x-t.x}function p(e,t){var n=function(e,t){var n,r=t,o=e.x,i=e.y,a=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var c=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(c<=o&&c>a&&(a=c,n=r.x<r.next.x?r:r.next,c===o))return n}r=r.next}while(r!==t);if(!n)return null;var u,s=n,l=n.x,f=n.y,p=1/0;r=n;do{o>=r.x&&r.x>=l&&o!==r.x&&y(i<f?o:a,i,l,f,i<f?a:o,i,r.x,r.y)&&(u=Math.abs(i-r.y)/(o-r.x),x(r,e)&&(u<p||u===p&&(r.x>n.x||r.x===n.x&&d(n,r)))&&(n=r,p=u)),r=r.next}while(r!==s);return n}(e,t);if(!n)return t;var r=E(n,e);return i(r,r.next),i(n,n.next)}function d(e,t){return g(e.prev,e,t.prev)<0&&g(t.next,e,e.next)<0}function h(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function v(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function y(e,t,n,r,o,i,a,c){return(o-a)*(t-c)>=(e-a)*(i-c)&&(e-a)*(r-c)>=(n-a)*(t-c)&&(n-a)*(i-c)>=(o-a)*(r-c)}function m(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&O(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(x(e,t)&&x(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(g(e.prev,e,t.prev)||g(e,t.prev,t))||b(e,t)&&g(e.prev,e,e.next)>0&&g(t.prev,t,t.next)>0)}function g(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function b(e,t){return e.x===t.x&&e.y===t.y}function O(e,t,n,r){var o=_(g(e,t,n)),i=_(g(e,t,r)),a=_(g(n,r,e)),c=_(g(n,r,t));return o!==i&&a!==c||(!(0!==o||!w(e,n,t))||(!(0!==i||!w(e,r,t))||(!(0!==a||!w(n,e,r))||!(0!==c||!w(n,t,r)))))}function w(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function _(e){return e>0?1:e<0?-1:0}function x(e,t){return g(e.prev,e,e.next)<0?g(e,t,e.next)>=0&&g(e,e.prev,t)>=0:g(e,t,e.prev)<0||g(e,e.next,t)<0}function E(e,t){var n=new j(e.i,e.x,e.y),r=new j(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function S(e,t,n,r){var o=new j(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function C(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function j(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function k(e,t,n,r){for(var o=0,i=t,a=n-r;i<n;i+=r)o+=(e[a]-e[i])*(e[i+1]+e[a+1]),a=i;return o}n("tQbP"),e.exports=r,e.exports.default=r,r.deviation=function(e,t,n,r){var o=t&&t.length,i=o?t[0]*n:e.length,a=Math.abs(k(e,0,i,n));if(o)for(var c=0,u=t.length;c<u;c++){var s=t[c]*n,l=c<u-1?t[c+1]*n:e.length;a-=Math.abs(k(e,s,l,n))}var f=0;for(c=0;c<r.length;c+=3){var p=r[c]*n,d=r[c+1]*n,h=r[c+2]*n;f+=Math.abs((e[p]-e[h])*(e[d+1]-e[p+1])-(e[p]-e[d])*(e[h+1]-e[p+1]))}return 0===a&&0===f?0:Math.abs((f-a)/a)},r.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var a=0;a<t;a++)n.vertices.push(e[o][i][a]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n}},"sC+u":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={IEventEmitter:Symbol.for("IEventEmitter"),ISceneService:Symbol.for("ISceneService"),IGlobalConfigService:Symbol.for("IGlobalConfigService"),ICameraService:Symbol.for("ICameraService"),ICoordinateSystemService:Symbol.for("ICoordinateSystemService"),ILayerService:Symbol.for("ILayerService"),ILayerMappingService:Symbol.for("ILayerMappingService"),ILayerStyleService:Symbol.for("ILayerStyleService"),IMapService:Symbol.for("IMapService"),IMarkerService:Symbol.for("IMarkerService"),IPopupService:Symbol.for("PopupService"),IFactoryMapService:Symbol.for("Factory<IMapService>"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory<IPostProcessingPass>"),IFactoryNormalPass:Symbol.for("Factory<IFactoryNormalPass>"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")}},"sCL+":function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},sD1O:function(e,t,n){var r=n("vGGS"),o=n("/wCD"),i=n("CbIe");e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},sHq1:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("mGvo"),o=n.n(r),i=n("pufz"),a=n("zEXi"),c=n("pfNN");function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e){var t=e.coordinates;return{vertices:v(t),indices:[0],size:t.length}}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(u,e);var t,n,r,c=p(u);function u(){return s(this,u),c.apply(this,arguments)}return t=u,(n=[{key:"getDefaultStyle",value:function(){return{blend:"additive"}}},{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig().opacity,t=void 0===e?1:e;return{u_opacity:o()(t)?t:1}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.mask,r=void 0!==n&&n,o=t.maskInside,c=void 0===o||o;this.layer.triangulation=m,this.layer.buildLayerModel({moduleName:"pointNormal",vertexShader:'\nattribute vec3 a_Position;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nattribute float a_Size;\nattribute vec4 a_Color;\n\nvarying vec4 v_color;\n\n#pragma include "projection"\n#pragma include "project"\n\nvoid main() {\n v_color = a_Color;\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * vec4(a_Position.xy, a_Position.z, 1.0);\n } else {\n vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.);\n gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy),project_pos.z,project_pos.w));\n }\n\n gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio;\n}\n',fragmentShader:"uniform float u_opacity : 1;\nvarying vec4 v_color;\nvoid main() {\n gl_FragColor = v_color;\n gl_FragColor.a *= u_opacity;\n}\n",triangulation:m,depth:{enable:!1},primitive:i.gl.POINTS,blend:this.getBlend(),stencil:Object(a.bb)(r,c),pick:!1}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:i.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0]]:[n]}}})}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(c.a)},sRHE:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},sVvE:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n("mGvo"),o=n.n(r),i=n("pufz"),a=n("zEXi"),c=n("pfNN"),u=n("PGAt");function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){l=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(k){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=u;var p={};function d(){}function h(){}function v(){}var y={};c(y,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,o)&&(y=g);var b=v.prototype=d.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==s(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=v,c(b,"constructor",v),c(v,"constructor",h),h.displayName=c(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},O(w.prototype),c(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(b),c(b,a,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function f(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(g,e);var t,n,r,c,s,y=v(g);function g(){var e;p(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b(m(e=y.call.apply(y,[this].concat(n))),"raiseCount",0),b(m(e),"raiseRepeat",0),e}return t=g,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.animateOption,n=void 0===t?{enable:!1,speed:.01,repeat:!1}:t,r=e.opacity,c=void 0===r?1:r,u=e.sourceColor,s=e.targetColor,l=e.pickLight,f=void 0!==l&&l,p=e.heightfixed,d=void 0!==p&&p,h=e.opacityLinear,v=void 0===h?{enable:!1,dir:"up"}:h,y=e.lightEnable,m=void 0===y||y;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:c})){this.judgeStyleAttributes({opacity:c});var g=this.layer.getEncodedData(),b=this.calDataFrame(this.cellLength,g,this.cellProperties),O=b.data,w=b.width,_=b.height;this.rowCount=_,this.dataTexture=this.cellLength>0&&O.length>0?this.createTexture2D({flipY:!0,data:O,format:i.gl.LUMINANCE,type:i.gl.FLOAT,width:w,height:_}):this.createTexture2D({flipY:!0,data:[1],format:i.gl.LUMINANCE,type:i.gl.FLOAT,width:1,height:1})}var x=0,E=[0,0,0,0],S=[0,0,0,0];if(u&&s&&(E=Object(a.Eb)(u),S=Object(a.Eb)(s),x=1),this.raiseCount<1&&this.raiseRepeat>0&&n.enable){var C=n.speed,j=void 0===C?.01:C;this.raiseCount+=j,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(f),u_heightfixed:Number(d),u_r:n.enable&&this.raiseRepeat>0?this.raiseCount:1,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:o()(c)?c:1,u_linearColor:x,u_sourceColor:E,u_targetColor:S,u_opacitylinear:Number(v.enable),u_opacitylinear_dir:"up"===v.dir?1:0,u_lightEnable:Number(m)}}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:(c=l().mark((function e(t){var n,r,o,i,c;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this.layer.getLayerConfig(),r=n.depth,o=void 0===r||r,i=n.animateOption.repeat,c=void 0===i?1:i,this.raiseRepeat=c,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:'precision highp float;\n\n#define pi 3.1415926535\n#define ambientRatio 0.5\n#define diffuseRatio 0.3\n#define specularRatio 0.2\n\nattribute vec3 a_Position;\nattribute vec3 a_Pos;\nattribute vec4 a_Color;\nattribute vec3 a_Size;\nattribute vec3 a_Normal;\n\nuniform float u_heightfixed: 0.0; // 默认不固定\nuniform float u_r;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nvarying vec4 v_color;\n\nuniform float u_opacity : 1;\nuniform float u_lightEnable: 1;\n\nvarying mat4 styleMappingMat; // 用于将在顶点着色器中计算好的样式值传递给片元\n\n#pragma include "styleMapping"\n#pragma include "styleMappingCalOpacity"\n\n#pragma include "projection"\n#pragma include "light"\n#pragma include "picking"\n\nfloat getYRadian(float x, float z) {\n if(x > 0.0 && z > 0.0) {\n return atan(x/z);\n } else if(x > 0.0 && z <= 0.0){\n return atan(-z/x) + pi/2.0;\n } else if(x <= 0.0 && z <= 0.0) {\n return pi + atan(x/z); //atan(x/z) + \n } else {\n return atan(z/-x) + pi*3.0/2.0;\n }\n}\n\nfloat getXRadian(float y, float r) {\n return atan(y/r);\n}\n\nvoid main() {\n\n // cal style mapping - 数据纹理映射部分的计算\n styleMappingMat = mat4(\n 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty\n 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - lightWeight\n 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - linearZ(垂直方向 0 - 1 的值)\n 0.0, 0.0, 0.0, 0.0\n );\n\n float rowCount = u_cellTypeLayout[0][0]; // 当前的数据纹理有几行\n float columnCount = u_cellTypeLayout[0][1]; // 当看到数据纹理有几列\n float columnWidth = 1.0/columnCount; // 列宽\n float rowHeight = 1.0/rowCount; // 行高\n float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets\n float id = a_vertexId; // 第n个顶点\n float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // 起始点在第几行\n float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // 起始点在第几列\n \n // cell 固定顺序 opacity -> strokeOpacity -> strokeWidth -> stroke ... \n // 按顺序从 cell 中取值、若没有则自动往下取值\n float textureOffset = 0.0; // 在 cell 中取值的偏移量\n\n vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight);\n styleMappingMat[0][0] = opacityAndOffset.r;\n textureOffset = opacityAndOffset.g;\n // cal style mapping - 数据纹理映射部分的计算\n vec3 size = a_Size * a_Position;\n\n // a_Position.z 是在构建网格的时候传入的标准值 0 - 1,在插值器插值可以获取 0~1 线性渐变的值\n styleMappingMat[2][3] = a_Position.z;\n\n vec3 offset = size; // 控制圆柱体的大小 - 从标准单位圆柱体进行偏移\n if(u_heightfixed < 1.0) { // 圆柱体不固定高度\n \n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // P20 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减1\n offset = offset * pow(2.0, (19.0 - u_Zoom));\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // P20_2 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减3\n offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom));\n }\n } else {// 圆柱体固定高度 ( 处理 mapbox )\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n offset *= 4.0/pow(2.0, 21.0 - u_Zoom);\n }\n }\n\n\n vec4 project_pos = project_position(vec4(a_Pos.xy, 0., 1.0));\n\n // u_r 控制圆柱的生长\n vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0);\n\n // 圆柱光照效果\n float lightWeight = 1.0;\n if(u_lightEnable > 0.0) { // 取消三元表达式,增强健壮性\n lightWeight = calc_lighting(pos);\n }\n styleMappingMat[1][3] = lightWeight;\n\n v_color =vec4(a_Color.rgb * lightWeight, a_Color.w);\n\n // gl_Position = project_common_position_to_clipspace(pos);\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * pos;\n } else {\n gl_Position = project_common_position_to_clipspace(pos);\n }\n\n setPickingColor(a_PickingColor);\n}\n',fragmentShader:'varying vec4 v_color;\nuniform float u_opacity: 1.0;\n\nuniform float u_pickLight: 0.0;\n\n#pragma include "picking"\n\nvarying mat4 styleMappingMat; // 传递从片元中传递的映射数据\n\nuniform float u_linearColor: 0;\nuniform vec4 u_sourceColor;\nuniform vec4 u_targetColor;\n\nuniform float u_opacitylinear: 0.0;\nuniform float u_opacitylinear_dir: 1.0;\n\nvoid main() {\n float opacity = styleMappingMat[0][0];\n float lightWeight = styleMappingMat[1][3];\n float barLinearZ = styleMappingMat[2][3];\n\n // 设置圆柱的底色\n if(u_linearColor == 1.0) { // 使用渐变颜色\n gl_FragColor = mix(u_sourceColor, u_targetColor, barLinearZ);\n gl_FragColor.rgb *= lightWeight;\n } else { // 使用 color 方法传入的颜色\n gl_FragColor = v_color;\n }\n\n // 应用透明度\n gl_FragColor.a *= opacity;\n\n // 开启透明度渐变\n if(u_opacitylinear > 0.0) {\n gl_FragColor.a *= u_opacitylinear_dir > 0.0 ? (1.0 - barLinearZ): barLinearZ;\n }\n\n // picking\n if(u_pickLight > 0.0) {\n gl_FragColor = filterColorAlpha(gl_FragColor, lightWeight);\n } else {\n gl_FragColor = filterColor(gl_FragColor);\n }\n}\n',triangulation:u.f,blend:this.getBlend(),cull:{enable:!0,face:Object(a.Y)(this.mapService.version)},depth:{enable:o}}).then((function(e){t([e])})).catch((function(e){console.warn(e),t([])}));case 3:case"end":return e.stop()}}),e,this)})),s=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=c.apply(e,t);function i(e){f(o,n,r,i,a,"next",e)}function a(e){f(o,n,r,i,a,"throw",e)}i(void 0)}))},function(e){return s.apply(this,arguments)})},{key:"clearModels",value:function(){var e;null===(e=this.dataTexture)||void 0===e||e.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:i.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:3,update:function(e){var t=e.size;if(t){var n=[];return Array.isArray(t)&&(n=2===t.length?[t[0],t[0],t[1]]:t),Array.isArray(t)||(n=[t,t,t]),n}return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:i.AttributeType.Attribute,descriptor:{name:"a_Normal",buffer:{usage:i.gl.STATIC_DRAW,data:[],type:i.gl.FLOAT},size:3,update:function(e,t,n,r,o){return o}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:i.AttributeType.Attribute,descriptor:{name:"a_Pos",buffer:{usage:i.gl.DYNAMIC_DRAW,data:[],type:i.gl.FLOAT},size:3,update:function(e){var t=Object(a.C)(e.coordinates);return[t[0],t[1],0]}}})}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),g}(c.a)},sX5C:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},slaK:function(e,t,n){e.exports={footer:"Footer-module--footer--1oDCB",description:"Footer-module--description--13TyJ",more:"Footer-module--more--3UC86",title:"Footer-module--title--1sro_",bottom:"Footer-module--bottom--2ARuv",withMenu:"Footer-module--withMenu--1izIt"}},snMe:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return w}));var r=n("VrFO"),o=n.n(r),i=n("Y9Ll"),a=n.n(i),c=n("KEM+"),u=n.n(c),s=n("ERkP"),l=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230);/g,f={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…"},p=function(e){return f[e]};function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v,y={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(l,p)}},m=Object(s.createContext)();function g(){return y}var b=function(){function e(){o()(this,e),this.usedNamespaces={}}return a()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function O(){return v}var w={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};y=h(h({},y),e)}(e.options.react),function(e){v=e}(e)}}},svN1:function(e,t,n){var r=n("hNjE"),o=n("VvbM");e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var i=Array.prototype.slice.call(arguments,0),a=i.pop();if(!r(a)){for(var c=0;c<e.length;){if("function"==typeof a[e[c]])return a[e[c]].apply(a,i);c+=1}if(o(a)){var u=t.apply(null,i);return u(a)}}return n.apply(this,arguments)}}},sxM7:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="DownOutlined";t.a=o.forwardRef(c)},t0L4:function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},tGbD:function(e,t,n){var r=n("iQ7j");e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},tJVe:function(e,t,n){var r=n("lhaq"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},tLQN:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},tPQG:function(e,t,n){var r=n("LtXa"),o=n("BlJA");e.exports=function(e,t){return e&&r(t,o(t),e)}},tQYX:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},tQbP:function(e,t,n){"use strict";var r=n("ax0f"),o=n("cLeC"),i=n("Y9MM"),a=n("N9G2"),c=n("BIH/"),u=n("ZT8c"),s=n("Kj6D"),l=n("ct80"),f=n("LD01"),p=n("f4p7"),d=n("5Dcv"),h=n("8/ho"),v=n("T+0C"),y=n("IBdH"),m=[],g=o(m.sort),b=o(m.push),O=l((function(){m.sort(void 0)})),w=l((function(){m.sort(null)})),_=p("sort"),x=!l((function(){if(v)return v<70;if(!(d&&d>3)){if(h)return!0;if(y)return y<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:t+r,v:n})}for(m.sort((function(e,t){return t.v-e.v})),r=0;r<m.length;r++)t=m[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:O||!w||!_||!x},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(x)return void 0===e?g(t):g(t,e);var n,r,o=[],l=c(t);for(r=0;r<l;r++)r in t&&b(o,t[r]);for(f(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:s(t)>s(n)?1:-1}}(e)),n=o.length,r=0;r<n;)t[r]=o[r++];for(;r<l;)u(t,r++);return t}})},tTA5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tagProperty=t.tagParameter=t.decorate=void 0;var r=n("KWcp"),o=n("2u/a");function i(e,t,n,o,i){var a={},c="number"==typeof i,u=void 0!==i&&c?i.toString():n;if(c&&void 0!==n)throw new Error(r.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(e,t)&&(a=Reflect.getMetadata(e,t));var s=a[u];if(Array.isArray(s))for(var l=0,f=s;l<f.length;l++){var p=f[l];if(p.key===o.key)throw new Error(r.DUPLICATED_METADATA+" "+p.key.toString())}else s=[];s.push(o),a[u]=s,Reflect.defineMetadata(e,a,t)}function a(e,t){Reflect.decorate(e,t)}function c(e,t){return function(n,r){t(n,r,e)}}t.tagParameter=function(e,t,n,r){i(o.TAGGED,e,t,r,n)},t.tagProperty=function(e,t,n){i(o.TAGGED_PROP,e.constructor,t,n)},t.decorate=function(e,t,n){"number"==typeof n?a([c(n,e)],t):"string"==typeof n?Reflect.decorate([e],t,n):a([e],t)}},tUYG:function(e,t,n){var r=n("Q/gL"),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},tYqs:function(e,t,n){"use strict";n.r(t),n.d(t,"Link",(function(){return A})),n.d(t,"Location",(function(){return b})),n.d(t,"LocationProvider",(function(){return O})),n.d(t,"Match",(function(){return F})),n.d(t,"Redirect",(function(){return D})),n.d(t,"Router",(function(){return x})),n.d(t,"ServerLocation",(function(){return w})),n.d(t,"isRedirect",(function(){return R})),n.d(t,"redirectTo",(function(){return N})),n.d(t,"useLocation",(function(){return z})),n.d(t,"useNavigate",(function(){return B})),n.d(t,"useParams",(function(){return U})),n.d(t,"useMatch",(function(){return V})),n.d(t,"BaseContext",(function(){return _}));var r=n("ERkP"),o=n.n(r),i=n("I9iR"),a=n.n(i),c=n("nqlD"),u=n.n(c),s=n("94VI"),l=n("7kqo");n.d(t,"matchPath",(function(){return l.match}));var f=n("50Kn");n.d(t,"createHistory",(function(){return f.a})),n.d(t,"createMemorySource",(function(){return f.b})),n.d(t,"navigate",(function(){return f.d})),n.d(t,"globalHistory",(function(){return f.c}));var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function d(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e,t){var n=u()(t);return n.displayName=e,n},g=m("Location"),b=function(e){var t=e.children;return o.a.createElement(g.Consumer,null,(function(e){return e?t(e):o.a.createElement(O,null,t)}))},O=function(e){function t(){var n,r;h(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=v(this,e.call.apply(e,[this].concat(i))),r.state={context:r.getContext(),refs:{unlisten:null}},v(r,n)}return y(t,e),t.prototype.getContext=function(){var e=this.props.history;return{navigate:e.navigate,location:e.location}},t.prototype.componentDidCatch=function(e,t){if(!R(e))throw e;(0,this.props.history.navigate)(e.uri,{replace:!0})},t.prototype.componentDidUpdate=function(e,t){t.context.location!==this.state.context.location&&this.props.history._onTransitionComplete()},t.prototype.componentDidMount=function(){var e=this,t=this.state.refs,n=this.props.history;n._onTransitionComplete(),t.unlisten=n.listen((function(){Promise.resolve().then((function(){requestAnimationFrame((function(){e.unmounted||e.setState((function(){return{context:e.getContext()}}))}))}))}))},t.prototype.componentWillUnmount=function(){var e=this.state.refs;this.unmounted=!0,e.unlisten()},t.prototype.render=function(){var e=this.state.context,t=this.props.children;return o.a.createElement(g.Provider,{value:e},"function"==typeof t?t(e):t||null)},t}(o.a.Component);O.defaultProps={history:f.c};var w=function(e){var t=e.url,n=e.children,r=t.indexOf("?"),i=void 0,a="";return r>-1?(i=t.substring(0,r),a=t.substring(r)):i=t,o.a.createElement(g.Provider,{value:{location:{pathname:i,search:a,hash:""},navigate:function(){throw new Error("You can't call navigate on the server.")}}},n)},_=m("Base",{baseuri:"/",basepath:"/"}),x=function(e){return o.a.createElement(_.Consumer,null,(function(t){return o.a.createElement(b,null,(function(n){return o.a.createElement(E,p({},t,n,e))}))}))},E=function(e){function t(){return h(this,t),v(this,e.apply(this,arguments))}return y(t,e),t.prototype.render=function(){var e=this.props,t=e.location,n=e.navigate,r=e.basepath,i=e.primary,a=e.children,c=(e.baseuri,e.component),u=void 0===c?"div":c,s=d(e,["location","navigate","basepath","primary","children","baseuri","component"]),f=o.a.Children.toArray(a).reduce((function(e,t){var n=G(r)(t);return e.concat(n)}),[]),h=t.pathname,v=Object(l.pick)(f,h);if(v){var y=v.params,m=v.uri,g=v.route,b=v.route.value;r=g.default?r:g.path.replace(/\*$/,"");var O=p({},y,{uri:m,location:t,navigate:function(e,t){return n(Object(l.resolve)(e,m),t)}}),w=o.a.cloneElement(b,O,b.props.children?o.a.createElement(x,{location:t,primary:i},b.props.children):void 0),E=i?C:u,S=i?p({uri:m,location:t,component:u},s):s;return o.a.createElement(_.Provider,{value:{baseuri:m,basepath:r}},o.a.createElement(E,S,w))}return null},t}(o.a.PureComponent);E.defaultProps={primary:!0};var S=m("Focus"),C=function(e){var t=e.uri,n=e.location,r=e.component,i=d(e,["uri","location","component"]);return o.a.createElement(S.Consumer,null,(function(e){return o.a.createElement(P,p({},i,{component:r,requestFocus:e,uri:t,location:n}))}))},j=!0,k=0,P=function(e){function t(){var n,r;h(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=v(this,e.call.apply(e,[this].concat(i))),r.state={},r.requestFocus=function(e){!r.state.shouldFocus&&e&&e.focus()},v(r,n)}return y(t,e),t.getDerivedStateFromProps=function(e,t){if(null==t.uri)return p({shouldFocus:!0},e);var n=e.uri!==t.uri,r=t.location.pathname!==e.location.pathname&&e.location.pathname===e.uri;return p({shouldFocus:n||r},e)},t.prototype.componentDidMount=function(){k++,this.focus()},t.prototype.componentWillUnmount=function(){0===--k&&(j=!0)},t.prototype.componentDidUpdate=function(e,t){e.location!==this.props.location&&this.state.shouldFocus&&this.focus()},t.prototype.focus=function(){var e=this.props.requestFocus;e?e(this.node):j?j=!1:this.node&&(this.node.contains(document.activeElement)||this.node.focus())},t.prototype.render=function(){var e=this,t=this.props,n=(t.children,t.style),r=(t.requestFocus,t.component),i=void 0===r?"div":r,a=(t.uri,t.location,d(t,["children","style","requestFocus","component","uri","location"]));return o.a.createElement(i,p({style:p({outline:"none"},n),tabIndex:"-1",ref:function(t){return e.node=t}},a),o.a.createElement(S.Provider,{value:this.requestFocus},this.props.children))},t}(o.a.Component);Object(s.polyfill)(P);var T=function(){},M=o.a.forwardRef;void 0===M&&(M=function(e){return e});var A=M((function(e,t){var n=e.innerRef,r=d(e,["innerRef"]);return o.a.createElement(_.Consumer,null,(function(e){e.basepath;var i=e.baseuri;return o.a.createElement(b,null,(function(e){var a=e.location,c=e.navigate,u=r.to,s=r.state,f=r.replace,h=r.getProps,v=void 0===h?T:h,y=d(r,["to","state","replace","getProps"]),m=Object(l.resolve)(u,i),g=encodeURI(m),b=a.pathname===g,O=Object(l.startsWith)(a.pathname,g);return o.a.createElement("a",p({ref:t||n,"aria-current":b?"page":void 0},y,v({isCurrent:b,isPartiallyCurrent:O,href:m,location:a}),{href:m,onClick:function(e){if(y.onClick&&y.onClick(e),W(e)){e.preventDefault();var t=f;if("boolean"!=typeof f&&b){var n=p({},a.state),r=(n.key,d(n,["key"]));t=Object(l.shallowCompare)(p({},s),r)}c(m,{state:s,replace:t})}}}))}))}))}));function L(e){this.uri=e}A.displayName="Link";var R=function(e){return e instanceof L},N=function(e){throw new L(e)},I=function(e){function t(){return h(this,t),v(this,e.apply(this,arguments))}return y(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.navigate,n=e.to,r=(e.from,e.replace),o=void 0===r||r,i=e.state,a=(e.noThrow,e.baseuri),c=d(e,["navigate","to","from","replace","state","noThrow","baseuri"]);Promise.resolve().then((function(){var e=Object(l.resolve)(n,a);t(Object(l.insertParams)(e,c),{replace:o,state:i})}))},t.prototype.render=function(){var e=this.props,t=(e.navigate,e.to),n=(e.from,e.replace,e.state,e.noThrow),r=e.baseuri,o=d(e,["navigate","to","from","replace","state","noThrow","baseuri"]),i=Object(l.resolve)(t,r);return n||N(Object(l.insertParams)(i,o)),null},t}(o.a.Component),D=function(e){return o.a.createElement(_.Consumer,null,(function(t){var n=t.baseuri;return o.a.createElement(b,null,(function(t){return o.a.createElement(I,p({},t,{baseuri:n},e))}))}))},F=function(e){var t=e.path,n=e.children;return o.a.createElement(_.Consumer,null,(function(e){var r=e.baseuri;return o.a.createElement(b,null,(function(e){var o=e.navigate,i=e.location,a=Object(l.resolve)(t,r),c=Object(l.match)(a,i.pathname);return n({navigate:o,location:i,match:c?p({},c.params,{uri:c.uri,path:t}):null})}))}))},z=function(){var e=Object(r.useContext)(g);if(!e)throw new Error("useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return e.location},B=function(){var e=Object(r.useContext)(g);if(!e)throw new Error("useNavigate hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return e.navigate},U=function(){var e=Object(r.useContext)(_);if(!e)throw new Error("useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");var t=z(),n=Object(l.match)(e.basepath,t.pathname);return n?n.params:null},V=function(e){if(!e)throw new Error("useMatch(path: string) requires an argument of a string to match against");var t=Object(r.useContext)(_);if(!t)throw new Error("useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");var n=z(),o=Object(l.resolve)(e,t.baseuri),i=Object(l.match)(o,n.pathname);return i?p({},i.params,{uri:i.uri,path:e}):null},H=function(e){return e.replace(/(^\/+|\/+$)/g,"")},G=function e(t){return function(n){if(!n)return null;if(n.type===o.a.Fragment&&n.props.children)return o.a.Children.map(n.props.children,e(t));if(n.props.path||n.props.default||n.type===D||a()(!1),n.type!==D||n.props.from&&n.props.to||a()(!1),n.type!==D||Object(l.validateRedirect)(n.props.from,n.props.to)||a()(!1),n.props.default)return{value:n,default:!0};var r=n.type===D?n.props.from:n.props.path,i="/"===r?t:H(t)+"/"+H(r);return{value:n,default:n.props.default,path:n.props.children?H(i)+"/*":i}}},W=function(e){return!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}},tjTa:function(e,t,n){var r=n("eiXn"),o=n("oD4t"),i=n("GFpt"),a=n("q9+l");e.exports=function(e,t,n){for(var c=o(t),u=a.f,s=i.f,l=0;l<c.length;l++){var f=c[l];r(e,f)||n&&r(n,f)||u(e,f,s(t,f))}}},tlBq:function(e,t,n){var r=n("pIod"),o=n("70Le"),i=n("BlJA");e.exports=function(e){return r(e,i,o)}},tlN7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiInject=void 0;var r=n("2u/a"),o=n("jFDj"),i=n("tTA5");t.multiInject=function(e){return function(t,n,a){var c=new o.Metadata(r.MULTI_INJECT_TAG,e);"number"==typeof a?i.tagParameter(t,n,a,c):i.tagProperty(t,n,c)}}},tmJt:function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.a=r},tmTm:function(e,t,n){"use strict";n.d(t,"a",(function(){return X}));var r=n("mpCQ"),o=n("OZKJ"),i=n.n(o),a=n("pufz"),c=n("K/oH"),u=n("s6Xb"),s=(n("qzOT"),n("k0uE"));function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=Math.PI/180,v=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"projectionMatrix",c.b.create()),d(this,"viewMatrix",c.b.create()),d(this,"viewProjectionMatrix",c.b.create()),d(this,"ViewProjectionMatrixUncentered",c.b.create()),d(this,"viewUncenteredMatrix",c.b.create())}var t,n,r;return t=e,(n=[{key:"syncWithMapCamera",value:function(e){var t=e.zoom,n=void 0===t?1:t,r=e.pitch,o=void 0===r?0:r,i=e.bearing,a=void 0===i?0:i,u=e.center,s=void 0===u?[0,0]:u,l=e.offsetOrigin,f=void 0===l?[0,0]:l,p=e.cameraHeight,d=void 0===p?1:p,v=e.aspect,y=void 0===v?1:v,m=e.near,g=void 0===m?.1:m,b=e.far,O=void 0===b?1e3:b,w=e.fov,_=void 0===w?0:w;this.zoom=n,this.center=s;var x=o*h,E=(360-a)*h;c.b.perspective(this.projectionMatrix,_,y,g,O);var S=c.d.fromValues(d*Math.sin(x)*Math.sin(E),-d*Math.sin(x)*Math.cos(E),d*Math.cos(x)),C=c.d.fromValues(-Math.cos(x)*Math.sin(E),Math.cos(x)*Math.cos(E),Math.sin(x));c.b.lookAt(this.viewMatrix,S,c.d.fromValues(0,0,0),C),this.viewUncenteredMatrix=c.b.clone(this.viewMatrix),c.b.translate(this.viewMatrix,this.viewMatrix,c.d.fromValues(-f[0],f[1],0)),c.b.multiply(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),c.b.multiply(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 524288}},{key:"getCenter",value:function(){var e=l(this.center,2);return[e[0],e[1]]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(e){var t=Math.max(Math.min(85.0511287798,e[1]),-85.0511287798),n=Math.PI/180,r=e[0]*n,o=t*n;return o=Math.log(Math.tan(Math.PI/4+o/2)),[r=(256<<20)*(.5/Math.PI*r+.5)-215440491,o=-((256<<20)*(-.5/Math.PI*o+(n=.5))-106744817)]}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),y=n("Os+v");function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var g,b=["id","style","minZoom","maxZoom","token","mapInstance","plugin"];function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t,n){return(w=N()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&A(o,n.prototype),o}).apply(null,arguments)}function _(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(){S=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(k){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(C([])));y&&y!==t&&n.call(y,o)&&(h=y);var g=d.prototype=f.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==m(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,c(g,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(O.prototype),c(O.prototype,i,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,a,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function P(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function L(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return R(e)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.forceWebGL=!0;var F=!1,z=[],B=Object(u.injectable)()(g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(d,e);var t,n,r,o,u,l,f,p=(t=d,n=N(),function(){var e,r=I(t);if(n){var o=I(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return L(this,e)});function d(){var e;T(this,d);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return D(R(e=p.call.apply(p,[this].concat(n))),"version",s.a["GAODE1.x"]),D(R(e),"handleCameraChanged",(function(t){var n=t.camera,r=n.fov,o=n.near,i=n.far,c=n.height,u=n.pitch,s=n.rotation,l=n.aspect,f=n.position,p=e.getCenter(),d=p.lng,h=p.lat;if(e.emit("mapchange"),e.cameraChangedCallback){e.viewport.syncWithMapCamera({aspect:l,bearing:360-s,far:i,fov:r,cameraHeight:c,near:o,pitch:u,zoom:e.map.getZoom()-1,center:[d,h],offsetOrigin:[f.x,f.y]});var v=e.config.offsetZoom,y=void 0===v?12:v;e.viewport.getZoom()>y?e.coordinateSystemService.setCoordinateSystem(a.CoordinateSystem.P20_OFFSET):e.coordinateSystemService.setCoordinateSystem(a.CoordinateSystem.P20),e.cameraChangedCallback(e.viewport)}})),e}return r=d,(o=[{key:"getModelMatrix",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[1,1,1],o=this.viewport.projectFlat(e),i=c.b.create();return c.b.translate(i,i,c.d.fromValues(o[0],o[1],t)),c.b.scale(i,i,c.d.fromValues(r[0],r[1],r[2])),c.b.rotateX(i,i,n[0]),c.b.rotateY(i,i,n[1]),c.b.rotateZ(i,i,n[2]),i}},{key:"init",value:(l=S().mark((function e(){var t,n,r,o,a,c,u,s,l,f,p,d,h,y,m=this;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.config,n=t.id,r=t.style,o=void 0===r?"light":r,a=t.minZoom,c=void 0===a?0:a,u=t.maxZoom,s=void 0===u?18:u,l=t.token,f=void 0===l?"15cd8a57710d40c9b7c0e3cc120f1200":l,p=t.mapInstance,d=t.plugin,h=void 0===d?[]:d,y=k(t,b),e.next=3,new Promise((function(e){var t=function(){if(p)m.map=p,m.$mapContainer=m.map.getContainer(),setTimeout((function(){m.map.on("camerachange",m.handleCameraChanged),e()}),30);else{m.$mapContainer=m.creatMapContainer(n);var t=j({mapStyle:m.getMapStyle(o),zooms:[c,s],viewMode:"3D"},y);t.zoom&&(t.zoom+=1);var r=new AMap.Map(m.$mapContainer,t);r.on("camerachange",m.handleCameraChanged),r.on("camerachange",(function(){setTimeout((function(){return m.handleAfterMapChange()}))})),m.map=r,setTimeout((function(){e()}),10)}};F||p?F&&window.AMap||p?t():z.push(t):("15cd8a57710d40c9b7c0e3cc120f1200"===f&&console.warn(m.configService.getSceneWarninfo("MapToken")),F=!0,h.push("Map3D"),i.a.load({key:f,version:"1.4.15",plugins:h}).then((function(e){t(),z.length&&(z.forEach((function(e){return e()})),z=[])})).catch((function(e){throw new Error(e)})))}));case 3:this.viewport=new v;case 4:case"end":return e.stop()}}),e,this)})),f=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=l.apply(e,t);function i(e){P(o,n,r,i,a,"next",e)}function a(e){P(o,n,r,i,a,"throw",e)}i(void 0)}))},function(){return f.apply(this,arguments)})},{key:"meterToCoord",value:function(e,t){var n=AMap.GeometryUtil.distance(w(AMap.LngLat,_(e)),w(AMap.LngLat,_(t))),r=O(this.lngLatToCoord(e),2),o=r[0],i=r[1],a=O(this.lngLatToCoord(t),2),c=a[0],u=a[1];return Math.sqrt(Math.pow(o-c,2)+Math.pow(i-u,2))/n}},{key:"updateView",value:function(e){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(e){var t,n=null===(t=this.getContainer())||void 0===t?void 0:t.getElementsByClassName("amap-layer")[0];return"jpg"===e?null==n?void 0:n.toDataURL("image/jpeg"):null==n?void 0:n.toDataURL("image/png")}},{key:"onCameraChanged",value:function(e){this.cameraChangedCallback=e}}])&&M(r.prototype,o),u&&M(r,u),Object.defineProperty(r,"prototype",{writable:!1}),d}(y.a))||g;function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(e,t){return(G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Y(this,n)}}function Y(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}(i,e);var t,n,r,o=W(i);function i(){return V(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getServiceConstructor",value:function(){return B}}])&&H(t.prototype,n),r&&H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a)},tsqr:function(e,t,n){"use strict";n.d(t,"c",(function(){return k})),n.d(t,"d",(function(){return M})),n.d(t,"a",(function(){return I}));var r,o=n("cxan"),i=n("zjfJ"),a=n("CZO1"),c=n("+RZ0"),u=n("+Gah"),s=n("dRg2"),l=n("QmBg"),f=n("O94r"),p=n.n(f),d=n("8tx+"),h=n("ERkP"),v=n("wEI+"),y=n("zygG"),m=n("8HVG"),g=n("H84U");var b,O,w,_=3,x=1,E="",S="move-up",C=!1,j=!1;function k(){return x++}function P(e,t){var n=e.prefixCls,o=e.getPopupContainer,i=Object(v.b)(),a=i.getPrefixCls,c=i.getRootPrefixCls,u=i.getIconPrefixCls,s=a("message",n||E),l=c(e.rootPrefixCls,s),f=u();if(r)t({prefixCls:s,rootPrefixCls:l,iconPrefixCls:f,instance:r});else{var p={prefixCls:s,transitionName:C?S:"".concat(l,"-").concat(S),style:{top:b},getContainer:O||o,maxCount:w};d.a.newInstance(p,(function(e){r?t({prefixCls:s,rootPrefixCls:l,iconPrefixCls:f,instance:r}):(r=e,t({prefixCls:s,rootPrefixCls:l,iconPrefixCls:f,instance:e}))}))}}var T={info:s.a,success:a.a,error:c.a,warning:u.a,loading:l.a},M=Object.keys(T);function A(e,t,n){var r,o=void 0!==e.duration?e.duration:_,a=T[e.type],c=p()("".concat(t,"-custom-content"),(r={},Object(i.a)(r,"".concat(t,"-").concat(e.type),e.type),Object(i.a)(r,"".concat(t,"-rtl"),!0===j),r));return{key:e.key,duration:o,style:e.style||{},className:e.className,content:h.createElement(v.a,{iconPrefixCls:n},h.createElement("div",{className:c},e.icon||a&&h.createElement(a,null),h.createElement("span",null,e.content))),onClose:e.onClose,onClick:e.onClick}}var L,R,N={open:function(e){var t=e.key||k(),n=new Promise((function(n){var r=function(){return"function"==typeof e.onClose&&e.onClose(),n(!0)};P(e,(function(n){var i=n.prefixCls,a=n.iconPrefixCls;n.instance.notice(A(Object(o.a)(Object(o.a)({},e),{key:t,onClose:r}),i,a))}))})),i=function(){r&&r.removeNotice(t)};return i.then=function(e,t){return n.then(e,t)},i.promise=n,i},config:function(e){void 0!==e.top&&(b=e.top,r=null),void 0!==e.duration&&(_=e.duration),void 0!==e.prefixCls&&(E=e.prefixCls),void 0!==e.getContainer&&(O=e.getContainer,r=null),void 0!==e.transitionName&&(S=e.transitionName,r=null,C=!0),void 0!==e.maxCount&&(w=e.maxCount,r=null),void 0!==e.rtl&&(j=e.rtl)},destroy:function(e){if(r)if(e){(0,r.removeNotice)(e)}else{var t=r.destroy;t(),r=null}}};function I(e,t){e[t]=function(n,r,i){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open(Object(o.a)(Object(o.a)({},n),{type:t})):("function"==typeof r&&(i=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:i}))}}M.forEach((function(e){return I(N,e)})),N.warn=N.warning,N.useMessage=(L=P,R=A,function(){var e,t,n=null,r={add:function(e,t){null==n||n.component.add(e,t)}},i=Object(m.a)(r),a=Object(y.a)(i,2),c=a[0],u=a[1],s=h.useRef({});return s.current.open=function(r){var i=r.prefixCls,a=e("message",i),u=e(),s=r.key||k(),l=new Promise((function(e){var i=function(){return"function"==typeof r.onClose&&r.onClose(),e(!0)};L(Object(o.a)(Object(o.a)({},r),{prefixCls:a,rootPrefixCls:u,getPopupContainer:t}),(function(e){var t=e.prefixCls,a=e.instance;n=a,c(R(Object(o.a)(Object(o.a)({},r),{key:s,onClose:i}),t))}))})),f=function(){n&&n.removeNotice(s)};return f.then=function(e,t){return l.then(e,t)},f.promise=l,f},M.forEach((function(e){return I(s.current,e)})),[s.current,h.createElement(g.a,{key:"holder"},(function(n){return e=n.getPrefixCls,t=n.getPopupContainer,u}))]});t.b=N},twbh:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},ty86:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7nmT"),o=n.n(r);function i(e,t,n,r){var i=o.a.unstable_batchedUpdates?function(e){o.a.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i,r)}}}},tyTC:function(e,t,n){"use strict";var r=Object.prototype;var o=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)};var i=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),a=Object.prototype.hasOwnProperty;t.a=function(e){if(!o(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},uMGO:function(e,t,n){"use strict";n.r(t),n.d(t,"DrawCircle",(function(){return vr})),n.d(t,"DrawFeature",(function(){return nr})),n.d(t,"DrawRect",(function(){return jo})),n.d(t,"DrawPolygon",(function(){return Gr})),n.d(t,"DrawPoint",(function(){return vo})),n.d(t,"DrawLine",(function(){return no})),n.d(t,"DrawMode",(function(){return nn})),n.d(t,"DrawDelete",(function(){return vn})),n.d(t,"DrawRuler",(function(){return Vo})),n.d(t,"DrawControl",(function(){return oi}));var r=n("T1QL"),o=n("WvW5"),i=n("1xil"),a=n.n(i);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"getInstance",value:function(){return this.instance||(this.instance=new this),this.instance}}],(n=null)&&c(t.prototype,n),r&&c(t,r),e}();function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}u.instance=void 0;var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(a,e);var t,n,o,i=d(a);function a(){var e;l(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).styleVariant="line",e}return t=a,(n=[{key:"execute",value:function(e,t){var n=t[this.styleVariant];return[new r.LineLayer({pickingBuffer:3}).source(e).shape("line").color(n.color).size(n.size).style(n.style)]}}])&&f(t.prototype,n),o&&f(t,o),a}(u);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x(e);if(t){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(a,e);var t,n,o,i=w(a);function a(){var e;g(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).styleVariant="point",e}return t=a,(n=[{key:"execute",value:function(e,t){var n,o,i=t[this.styleVariant];return(null===(n=e.features[0])||void 0===n||null===(o=n.properties)||void 0===o?void 0:o.value)?[]:[new r.PointLayer({zIndex:2,pickingBuffer:3}).source(e).shape("circle").color(i.color).size(i.size).style(i.style)]}}])&&b(t.prototype,n),o&&b(t,o),a}(u);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M(e);if(t){var o=M(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(a,e);var t,n,o,i=P(a);function a(){var e;C(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).styleVariant="polygon",e}return t=a,(n=[{key:"execute",value:function(e,t){var n=t[this.styleVariant],o=(new r.PolygonLayer).source(e).shape("fill").color(n.color).size(n.size).style({opacity:n.style.opacity});n.active&&o.active(n.active);var i=(new r.PolygonLayer).source(e).shape("line").color(n.style.stroke).size(n.style.strokeWidth).style({opacity:n.style.strokeOpacity,lineType:n.style.lineType,dashArray:n.style.dashArray});return n.active&&i.active(n.active),[o,i]}}])&&j(t.prototype,n),o&&j(t,o),a}(u);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var o=z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return F(this,n)}}function F(e,t){if(t&&("object"===L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(a,e);var t,n,o,i=D(a);function a(){var e;R(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).styleVariant="point",e}return t=a,(n=[{key:"execute",value:function(e,t){var n,o,i=t[this.styleVariant];return(null===(n=e.features[0])||void 0===n||null===(o=n.properties)||void 0===o?void 0:o.value)?[new r.PointLayer({zIndex:2,pickingBuffer:3}).source(e).style(i.style).shape("value","text").size(14).color(i.color)]:[]}}])&&N(t.prototype,n),o&&N(t,o),a}(u);function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var V=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.strategyMap=void 0,this.strategyMap={}}var t,n,r;return t=e,r=[{key:"defaultRenderer",value:function(){var t=new e;return t.setStrategy(E.getInstance(),"Point"),t.setStrategy(B.getInstance(),"Point"),t.setStrategy(A.getInstance(),"Polygon"),t.setStrategy(y.getInstance(),"LineString"),t}}],(n=[{key:"setStrategy",value:function(e,t){var n=this.strategyMap[t];this.strategyMap[t]=(n||[]).concat(e)}},{key:"renderFeature",value:function(e,t){var n,r,o=null===(n=e.features[0])||void 0===n||null===(r=n.geometry)||void 0===r?void 0:r.type,i=(this.strategyMap[o]||[]).map((function(n){return n.execute(e,t)}));return a()(i)}}])&&U(t.prototype,n),r&&U(t,r),e}();function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var G=V.defaultRenderer(),W=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.drawLayers=[],this.draw=void 0,this.isEnableDrag=void 0,this.isEnableEdit=void 0,this.styleVariant="normal",this.draw=t}var t,n,r;return t=e,(n=[{key:"update",value:function(e){this.removeLayers(),this.drawLayers=G.renderFeature(e,this.draw.getStyle(this.styleVariant)),this.addLayers()}},{key:"on",value:function(e,t){this.drawLayers[0].on(e,t)}},{key:"off",value:function(e,t){this.drawLayers[0].off(e,t)}},{key:"emit",value:function(e,t){this.drawLayers[0].emit(e,t)}},{key:"updateData",value:function(e){0===this.drawLayers.length&&this.update(e),this.drawLayers.forEach((function(t){return t.setData(e)}))}},{key:"destroy",value:function(){this.removeLayers()}},{key:"removeLayers",value:function(){var e=this;0!==this.drawLayers.length&&this.drawLayers.forEach((function(t){return e.draw.scene.removeLayer(t)}))}},{key:"addLayers",value:function(){var e=this;this.drawLayers.forEach((function(t){return e.draw.scene.addLayer(t)}))}},{key:"show",value:function(){this.drawLayers.forEach((function(e){return e.show()}))}},{key:"hide",value:function(){this.drawLayers.forEach((function(e){return e.hide()}))}}])&&H(t.prototype,n),r&&H(t,r),e}(),Y=function(e){return"LineString"===e.geometry.type},K=function(e){return"Polygon"===e.geometry.type},X=n("zzo4");var q=function(e,t,n){void 0===n&&(n={});var r=Object(X.a)(e),i=Object(X.a)(t),a=Object(o.a)(i[1]-r[1]),c=Object(o.a)(i[0]-r[0]),u=Object(o.a)(r[1]),s=Object(o.a)(i[1]),l=Math.pow(Math.sin(a/2),2)+Math.pow(Math.sin(c/2),2)*Math.cos(u)*Math.cos(s);return Object(o.m)(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),n.units)};function Z(e,t){var n,r,o,i,a,c,u,s,l,f,p=0,d="FeatureCollection"===e.type,h="Feature"===e.type,v=d?e.features.length:1;for(n=0;n<v;n++){for(c=d?e.features[n].geometry:h?e.geometry:e,s=d?e.features[n].properties:h?e.properties:{},l=d?e.features[n].bbox:h?e.bbox:void 0,f=d?e.features[n].id:h?e.id:void 0,a=(u=!!c&&"GeometryCollection"===c.type)?c.geometries.length:1,o=0;o<a;o++)if(null!==(i=u?c.geometries[o]:c))switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(i,p,s,l,f))return!1;break;case"GeometryCollection":for(r=0;r<i.geometries.length;r++)if(!1===t(i.geometries[r],p,s,l,f))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,p,s,l,f))return!1;p++}}function J(e){var t=0;if(e&&e.length>0){t+=Math.abs(Q(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(Q(e[n]))}return t}function Q(e){var t,n,r,o,i,a,c=0,u=e.length;if(u>2){for(a=0;a<u;a++)a===u-2?(r=u-2,o=u-1,i=0):a===u-1?(r=u-1,o=0,i=1):(r=a,o=a+1,i=a+2),t=e[r],n=e[o],c+=($(e[i][0])-$(t[0]))*Math.sin($(n[1]));c=6378137*c*6378137/2}return c}function $(e){return e*Math.PI/180}var ee=function(e){return function(e,t,n){var r=n;return Z(e,(function(e,o,i,a,c){r=0===o&&void 0===n?e:t(r,e,o,i,a,c)})),r}(e,(function(e,t){return e+function e(t){var n,r=0;switch(t.type){case"Polygon":return J(t.coordinates);case"MultiPolygon":for(n=0;n<t.coordinates.length;n++)r+=J(t.coordinates[n]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(n=0;n<t.geometries.length;n++)r+=e(t.geometries[n]);return r}}(t)}),0)},te=function(e,t){return q(e,t,{units:"kilometers"}).toFixed(2)+"km"};function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t,n){return t&&oe(e.prototype,t),n&&oe(e,n),e}function ae(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ce(e,t)}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fe(e);if(t){var o=fe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return se(this,n)}}function se(e,t){if(t&&("object"===ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return le(e)}function le(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=new V,de=function(e){ae(n,e);var t=ue(n);function n(){var e;re(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).styleVariant="polygon",e}return ie(n,[{key:"execute",value:function(e,t){var n=t[this.styleVariant],i=(new r.PolygonLayer).source(e).shape("fill").color(n.color).style({opacity:n.style.opacity}).active(n.active),a=e.features[0],c=[];if(K(a)){var u=a.geometry.coordinates[0];c=Object(o.c)(u.map((function(e,t){if(u[t+1])return Object(o.g)([e,u[t+1]])})).filter(Boolean))}var s=t.line,l=new r.LineLayer({pickingBuffer:3}).source(c).color(s.style.stroke).size(s.style.strokeWidth).style({opacity:s.style.strokeOpacity,lineType:s.style.lineType,dashArray:s.style.dashArray}).active(s.active);return l.setBlend("max"),[i,l]}}]),n}(u),he=function(e){ae(n,e);var t=ue(n);function n(){var e;re(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).styleVariant="line",e}return ie(n,[{key:"execute",value:function(e,t){var n=t[this.styleVariant],i=e.features[0],a=[];if(Y(i)){var c=i.geometry.coordinates;a=Object(o.c)(c.map((function(e,t){if(c[t+1])return Object(o.g)([e,c[t+1]])})).filter(Boolean))}var u=new r.LineLayer({pickingBuffer:5}).source(a).color(n.style.stroke).size(n.style.strokeWidth).style({opacity:n.style.strokeOpacity,lineType:n.style.lineType,dashArray:n.style.dashArray}).active(n.active);return u.setBlend("max"),[u]}}]),n}(u);pe.setStrategy(de.getInstance(),"Polygon"),pe.setStrategy(he.getInstance(),"LineString");var ve,ye,me,ge=function(e){ae(n,e);var t=ue(n);function n(e){var o;return re(this,n),(o=t.call(this,e)).styleVariant="ruler",o.popup=void 0,o.currentFeature=void 0,o.popup=new r.Popup({closeButton:!1,anchor:"left",closeOnClick:!1}),o.draw.scene.addPopup(o.popup),Object(r.bindAll)(["onMouseEnter","onMouseOut"],le(o)),o}return ie(n,[{key:"update",value:function(e){var t=this;if(0!==e.features.length){this.removeLayers();var n=e.features[0],r=this.draw.getStyle(this.styleVariant);this.drawLayers=pe.renderFeature(Object(o.c)([n]),r),this.drawLayers.forEach((function(e){e.on("mouseout",t.onMouseOut),e.on("mouseenter",t.onMouseEnter)})),this.addLayers()}}},{key:"onMouseEnter",value:function(e){var t,n=e.lngLat||e.lnglat,r=e.feature,o="";if(Y(r)){var i=r.geometry.coordinates;o=te(i[0],i[1])}K(r)&&(t=r.geometry,o=(ee(t)/1e6).toFixed(2)+"km^2"),this.popup.open(),this.popup.setLnglat(n),this.popup.setText(o||"")}},{key:"onMouseOut",value:function(e){this.popup.close()}}]),n}(W);function be(e,t,n,r){void 0===r&&(r={});var i=Object(X.a)(e),a=Object(o.a)(i[0]),c=Object(o.a)(i[1]),u=Object(o.a)(n),s=Object(o.f)(t,r.units),l=Math.asin(Math.sin(c)*Math.cos(s)+Math.cos(c)*Math.sin(s)*Math.cos(u)),f=a+Math.atan2(Math.sin(u)*Math.sin(s)*Math.cos(c),Math.cos(s)-Math.sin(c)*Math.sin(l)),p=Object(o.l)(f),d=Object(o.l)(l);return Object(o.j)([p,d],r.properties)}!function(e){e.CREATE="draw.create",e.DELETE="draw.delete",e.Move="draw.move",e.Edit="draw.edit",e.UPDATE="draw.update",e.CHANGE="draw.change",e.SELECTION_CHANGE="draw.selectionchange",e.MODE_CHANGE="draw.modechange",e.ACTIONABLE="draw.actionable",e.RENDER="draw.render",e.COMBINE_FEATURES="draw.combine",e.UNCOMBINE_FEATURES="draw.uncombine",e.ADD_POINT="draw.addpoint",e.MEASURE="draw.measure",e.MULTI_SELECT="draw.multiselect"}(ve||(ve={})),function(e){e.DRAW_Circle="draw_circle",e.DRAW_Rect="draw_rect",e.DRAW_LINE_STRING="draw_line_string",e.DRAW_POLYGON="draw_polygon",e.DRAW_POINT="draw_point",e.SIMPLE_SELECT="simple_select",e.DIRECT_SELECT="direct_select",e.STATIC="static",e.RULER="ruler"}(ye||(ye={})),function(e){e.FEATURE="Feature",e.POLYGON="Polygon",e.LINE_STRING="LineString",e.POINT="Point",e.FEATURE_COLLECTION="FeatureCollection",e.MULTI_PREFIX="Multi",e.MULTI_POINT="MultiPoint",e.MULTI_LINE_STRING="MultiLineString",e.MULTI_POLYGON="MultiPolygon"}(me||(me={}));var Oe=function(e,t,n){void 0===n&&(n={});for(var r=n.steps||64,i=n.properties?n.properties:!Array.isArray(e)&&"Feature"===e.type&&e.properties?e.properties:{},a=[],c=0;c<r;c++)a.push(be(e,t,-360*c/r,n).geometry.coordinates);return a.push(a[0]),Object(o.k)([a],i)};function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e,t,n){var r=q(Object(o.j)(e),Object(o.j)(t),n);return Oe(e,r,{units:n.units,steps:n.steps,properties:_e(_e({},n),{},{active:!0,type:"circle",radius:r,startPoint:{lng:e[0],lat:e[1]},endPoint:{lng:t[0],lat:t[1]}})})}function Se(e,t,n){var r=Math.min(e[0],t[0]),o=Math.min(e[1],t[1]),i=Math.max(e[0],t[0]),a=Math.max(e[1],t[1]);return{type:"Feature",properties:_e({type:"rect",active:!0,startPoint:{lng:e[0],lat:e[1]},endPoint:{lng:t[0],lat:t[1]}},n),geometry:{type:"Polygon",coordinates:[[[r,o],[r,a],[i,a],[i,o],[r,o]]]}}}function Ce(e,t){var n=e.map((function(e){return[e.lng,e.lat]}));return e.length<2?Object(o.j)(n[0],t):e.length<3?Object(o.g)(n,t):(n.push(n[0]),Object(o.k)([n],t))}function je(e,t){var n=e.map((function(e){return[e.lng,e.lat]}));return e.length>0&&e.length<2?Object(o.j)(n[0],t):e.length>=2?Object(o.g)(n,t):{type:"FeatureCollection",features:[]}}function ke(e){var t=e.map((function(e,t){return Object(o.j)([e.lng,e.lat],{active:!0,id:t.toString()})}));return Object(o.c)(t)}var Pe=function(e,t){return e.forEach((function(e){var n,r=e.geometry,o=r.type,i=r.coordinates;switch(o){case me.POINT:n=Te(i,t);break;case me.LINE_STRING:case me.MULTI_POINT:n=Me(i,t);break;case me.POLYGON:case me.MULTI_LINE_STRING:n=Ae(i,t);break;case me.MULTI_POLYGON:n=i.map((function(e){return Ae(e,t)}))}n&&(r.coordinates=n)})),e};function Te(e,t){return[e[0]+t.lng,e[1]+t.lat]}function Me(e,t){return e.map((function(e){return Te(e,t)}))}function Ae(e,t){return e.map((function(e){return Me(e,t)}))}function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ne(e,t){return(Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ze(e);if(t){var o=ze(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return De(this,n)}}function De(e,t){if(t&&("object"===Le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fe(e)}function Fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ze(e){return(ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Be=V.defaultRenderer(),Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ne(e,t)}(a,e);var t,n,o,i=Ie(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).styleVariant="normal",Object(r.bindAll)(["onDeleteClick","onClick"],Fe(t)),t}return t=a,(n=[{key:"update",value:function(e){if(this.drawLayers.length>0)this.updateData(e);else{this.removeLayers();var t=this.draw.getStyle(this.styleVariant);this.drawLayers=Be.renderFeature(e,t),this.addFilter(),this.addLayers()}}},{key:"enableSelect",value:function(){if(!this.isEnableDrag&&this.draw.selectEnable){var e=this.drawLayers[0];e&&(e.on("click",this.onClick),this.isEnableDrag=!0)}}},{key:"disableSelect",value:function(){this.isEnableDrag&&(this.drawLayers[0].off("click",this.onClick),this.isEnableDrag=!1)}},{key:"enableDelete",value:function(){this.disableSelect(),this.drawLayers[0].on("click",this.onDeleteClick)}},{key:"disableDelete",value:function(){this.drawLayers[0].off("click",this.onDeleteClick)}},{key:"addFilter",value:function(){this.drawLayers.forEach((function(e){return e.filter("active",(function(e){return!e}))}))}},{key:"onClick",value:function(e){this.draw.getDrawable()&&(this.draw.source.setFeatureUnActive(this.draw.getCurrentFeature()),this.draw.setCurrentFeature(e.feature),this.draw.source.setFeatureActive(e.feature),this.updateData(this.draw.source.data),this.draw.emit(ve.MODE_CHANGE,ye.SIMPLE_SELECT))}},{key:"onDeleteClick",value:function(e){this.draw.source.removeFeature(e.feature),this.updateData(this.draw.source.data)}}])&&Re(t.prototype,n),o&&Re(t,o),a}(W);function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ge(e,t){return(Ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function We(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xe(e);if(t){var o=Xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ye(this,n)}}function Ye(e,t){if(t&&("object"===Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ke(e)}function Ke(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xe(e){return(Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qe=V.defaultRenderer(),Ze=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ge(e,t)}(a,e);var t,n,o,i=We(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).styleVariant="active",Object(r.bindAll)(["onMouseMove","onUnMouseMove","onClick","onUnClick"],Ke(t)),t}return t=a,(n=[{key:"update",value:function(e){this.removeLayers();var t=this.draw.getStyle(this.styleVariant);this.drawLayers=qe.renderFeature(e,t),this.addLayers()}},{key:"enableSelect",value:function(){if(this.show(),!this.isEnableDrag){var e=this.drawLayers[0];e.on("mouseenter",this.onMouseMove),e.on("mouseout",this.onUnMouseMove),this.draw.editEnable&&e.on("click",this.onClick),e.on("unclick",this.onUnClick),this.isEnableDrag=!0}}},{key:"disableSelect",value:function(){if(this.isEnableDrag){var e=this.drawLayers[0];e.off("mouseenter",this.onMouseMove),e.off("mouseout",this.onUnMouseMove),e.off("click",this.onClick),e.off("unclick",this.onUnClick),this.isEnableDrag=!1}}},{key:"enableEdit",value:function(){this.isEnableEdit||(this.drawLayers[0].on("unclick",this.onUnClick),this.isEnableDrag=!0)}},{key:"disableEdit",value:function(){this.isEnableEdit&&(this.drawLayers[0].off("unclick",this.onUnClick),this.isEnableDrag=!1)}},{key:"onMouseMove",value:function(e){this.draw.setCursor("move"),this.draw.selectMode.enable(),this.draw.measureMode.enable()}},{key:"onUnMouseMove",value:function(e){this.draw.resetCursor(),this.draw.selectMode.disable()}},{key:"onClick",value:function(e){this.draw.getDrawable()&&(this.draw.selectMode.disable(),this.draw.editMode.enable(),this.disableSelect(),this.draw.resetCursor(),this.enableEdit(),this.draw.setCurrentFeature(e.feature),this.draw.emit(ve.MODE_CHANGE,ye.DIRECT_SELECT))}},{key:"onUnClick",value:function(e){this.draw.selectMode.disable(),this.draw.editMode.disable(),this.draw.source.setFeatureUnActive(this.draw.getCurrentFeature()),this.disableSelect(),this.disableEdit(),this.hide(),this.draw.emit(ve.MODE_CHANGE,ye.STATIC)}}])&&He(t.prototype,n),o&&He(t,o),a}(W);function Je(e){return(Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $e(e,t){return($e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rt(e);if(t){var o=rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tt(this,n)}}function tt(e,t){if(t&&("object"===Je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nt(e)}function nt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ot=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$e(e,t)}(a,e);var t,n,o,i=et(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).styleVariant="active",Object(r.bindAll)(["onMouseEnter","onMouseOut","onClick"],nt(t)),t}return t=a,(n=[{key:"enableSelect",value:function(){}},{key:"disableSelect",value:function(){}},{key:"enableEdit",value:function(){if(!this.isEnableEdit){var e=this.drawLayers[0];e.on("mouseenter",this.onMouseEnter),e.on("mouseout",this.onMouseOut),e.on("click",this.onClick),this.isEnableEdit=!0}}},{key:"disableEdit",value:function(){if(this.isEnableEdit){var e=this.drawLayers[0];e.off("mouseenter",this.onMouseEnter),e.off("mouseout",this.onMouseOut),e.off("click",this.onClick),this.isEnableEdit=!1}}},{key:"onMouseEnter",value:function(e){this.draw.setCursor("move"),this.draw.setCurrentVertex(e.feature),this.draw.editMode.enable()}},{key:"onMouseOut",value:function(e){this.draw.resetCursor(),this.draw.editMode.disable()}},{key:"onClick",value:function(e){this.draw.getDrawable()&&(this.draw.setCurrentVertex(e.feature),this.draw.editMode.enable())}}])&&Qe(t.prototype,n),o&&Qe(t,o),a}(W),it={meters:6371008.8,metres:6371008.8,millimeters:6371008800,millimetres:6371008800,centimeters:637100880,centimetres:637100880,kilometers:6371.0088,kilometres:6371.0088,miles:3958.761333810546,nauticalmiles:6371008.8/1852,inches:6371008.8*39.37,yards:6371008.8/1.0936,feet:20902260.511392,radians:1,degrees:6371008.8/111325};function at(e,t){if(null==e)throw new Error("radians is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var n=it[t||"kilometers"];if(!n)throw new Error(t+" units is invalid");return e*n}function ct(e){if(null==e)throw new Error("radians is required");return 180*(e%(2*Math.PI))/Math.PI}function ut(e){if(null==e)throw new Error("degrees is required");return e%360*Math.PI/180}function st(e){return!!e&&e.constructor===Object}function lt(e){if(!e)throw new Error("coord is required");if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates;if(Array.isArray(e)&&e.length>=2&&void 0===e[0].length&&void 0===e[1].length)return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function ft(e,t,n){if(!st(n=n||{}))throw new Error("options is invalid");if(!0===n.final)return function(e,t){var n=ft(t,e);return n=(n+180)%360}(e,t);var r=lt(e),o=lt(t),i=ut(r[0]),a=ut(o[0]),c=ut(r[1]),u=ut(o[1]),s=Math.sin(a-i)*Math.cos(u),l=Math.cos(c)*Math.sin(u)-Math.sin(c)*Math.cos(u)*Math.cos(a-i);return ct(Math.atan2(s,l))}var pt=ft,dt={meters:6371008.8,metres:6371008.8,millimeters:6371008800,millimetres:6371008800,centimeters:637100880,centimetres:637100880,kilometers:6371.0088,kilometres:6371.0088,miles:3958.761333810546,nauticalmiles:6371008.8/1852,inches:6371008.8*39.37,yards:6371008.8/1.0936,feet:20902260.511392,radians:1,degrees:6371008.8/111325};function ht(e,t,n){if(!Ot(n=n||{}))throw new Error("options is invalid");var r=n.bbox,o=n.id;if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");r&&wt(r),o&&_t(o);var i={type:"Feature"};return o&&(i.id=o),r&&(i.bbox=r),i.properties=t||{},i.geometry=e,i}function vt(e,t,n){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!bt(e[0])||!bt(e[1]))throw new Error("coordinates must contain numbers");return ht({type:"Point",coordinates:e},t,n)}function yt(e,t){if(null==e)throw new Error("distance is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var n=dt[t||"kilometers"];if(!n)throw new Error(t+" units is invalid");return e/n}function mt(e){if(null==e)throw new Error("radians is required");return 180*(e%(2*Math.PI))/Math.PI}function gt(e){if(null==e)throw new Error("degrees is required");return e%360*Math.PI/180}function bt(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function Ot(e){return!!e&&e.constructor===Object}function wt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!bt(e))throw new Error("bbox must only contain numbers")}))}function _t(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}var xt=function(e,t,n,r){if(!Ot(r=r||{}))throw new Error("options is invalid");var o=r.units,i=r.properties,a=function(e){if(!e)throw new Error("coord is required");if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates;if(Array.isArray(e)&&e.length>=2&&void 0===e[0].length&&void 0===e[1].length)return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}(e),c=gt(a[0]),u=gt(a[1]),s=gt(n),l=yt(t,o),f=Math.asin(Math.sin(u)*Math.cos(l)+Math.cos(u)*Math.sin(l)*Math.cos(s));return vt([mt(c+Math.atan2(Math.sin(s)*Math.sin(l)*Math.cos(u),Math.cos(l)-Math.sin(u)*Math.sin(f))),mt(f)],i)};var Et=function(e,t,n){if(!st(n=n||{}))throw new Error("options is invalid");var r=n.units,o=lt(e),i=lt(t),a=ut(i[1]-o[1]),c=ut(i[0]-o[0]),u=ut(o[1]),s=ut(i[1]),l=Math.pow(Math.sin(a/2),2)+Math.pow(Math.sin(c/2),2)*Math.cos(u)*Math.cos(s);return at(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),r)};var St=function(e,t){var n=Et(e,t),r=pt(e,t);return xt(e,n/2,r)};function Ct(e){return(Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jt(e){return function(e){if(Array.isArray(e))return kt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return kt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mt(e,t){return(Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function At(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Rt(e);if(t){var o=Rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lt(this,n)}}function Lt(e,t){if(t&&("object"===Ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Rt(e){return(Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nt=V.defaultRenderer(),It=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mt(e,t)}(a,e);var t,n,r,i=At(a);function a(){var e;Pt(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).showLine=!0,e}return t=a,(n=[{key:"update",value:function(e){if(!e.features.every(Y))throw new Error("All features must be LineString in order to calculate distance.");this.removeLayers();var t,n=e.features.map((function(e){var t,n,r=null==e||null===(t=e.geometry)||void 0===t?void 0:t.coordinates[0],o=null==e||null===(n=e.geometry)||void 0===n?void 0:n.coordinates[1],i=te(r,o),a=St(r,o);return a.properties.value=i,a})),r=this.draw.getStyle("active");this.drawLayers=Nt.renderFeature(Object(o.c)(n),r),this.showLine&&(t=this.drawLayers).push.apply(t,jt(Nt.renderFeature(e,r))),this.addLayers()}}])&&Tt(t.prototype,n),r&&Tt(t,r),a}(W),Dt=n("Gpi5"),Ft=n("H8sf"),zt=n.n(Ft),Bt=n("qnot"),Ut=n.n(Bt),Vt=n("c2re"),Ht=n.n(Vt);function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Wt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=void 0,this.data=Ut()(t||this.getDefaultData(),!0)}var t,n,r;return t=e,(n=[{key:"addFeature",value:function(e){this.data.features.push(e)}},{key:"getData",value:function(){return{type:"FeatureCollection",features:Ht()(this.data.features)}}},{key:"getFeature",value:function(e){return this.data.features.find((function(t){var n;return(null==t||null===(n=t.properties)||void 0===n?void 0:n.id)===e}))}},{key:"removeAllFeatures",value:function(){this.data=this.getDefaultData()}},{key:"removeFeature",value:function(e){var t=this.getFeatureIndex(e);void 0!==t&&this.data.features.splice(t,1)}},{key:"setFeatureActive",value:function(e){var t,n=this.getFeature(null==e||null===(t=e.properties)||void 0===t?void 0:t.id);n&&n.properties&&(n.properties.active=!0)}},{key:"setFeatureUnActive",value:function(e){var t,n=this.getFeature(null==e||null===(t=e.properties)||void 0===t?void 0:t.id);n&&n.properties&&(n.properties.active=!1)}},{key:"clearFeatureActive",value:function(){this.data.features.forEach((function(e){e&&e.properties&&(e.properties.active=!1)}))}},{key:"updateFeature",value:function(e){this.removeFeature(e),this.addFeature(e)}},{key:"destroy",value:function(){this.data=this.getDefaultData()}},{key:"getDefaultData",value:function(){return{type:"FeatureCollection",features:[]}}},{key:"getFeatureIndex",value:function(e){return this.data.features.findIndex((function(t){var n,r;return(null==t||null===(n=t.properties)||void 0===n?void 0:n.id)===(null==e||null===(r=e.properties)||void 0===r?void 0:r.id)}))}}])&&Gt(t.prototype,n),r&&Gt(t,r),e}(),Yt={multiSelect:{polygon:{shape:"fill",color:"#black",style:{stroke:"black",strokeWidth:1,strokeOpacity:1,lineType:"dash",dashArray:[1,1]}}},active:{point:{type:"PointLayer",shape:"circle",color:"#fbb03b",size:5,style:{stroke:"#fff",strokeWidth:2}},line:{type:"LineLayer",shape:"line",color:"#fbb03b",size:1,style:{opacity:1,lineType:"dash",dashArray:[2,2]}},polygon:{shape:"fill",color:"#fbb03b",style:{opacity:.1,stroke:"#fbb03b",strokeWidth:1,strokeOpacity:1,lineType:"dash",dashArray:[2,2]}}},normal:{polygon:{type:"PolygonLayer",shape:"fill",color:"#3bb2d0",style:{opacity:.1,stroke:"#3bb2d0",strokeWidth:1,strokeOpacity:1,lineType:"solid",dashArray:[2,2]}},line:{type:"LineLayer",shape:"line",size:1,color:"#3bb2d0",style:{opacity:1}},point:{type:"PointLayer",shape:"circle",color:"#3bb2d0",size:3,style:{stroke:"#fff",strokeWidth:2}}},normal_point:{type:"PointLayer",shape:"circle",color:"#3bb2d0",size:3,style:{stroke:"#fff",strokeWidth:2}},mid_point:{point:{type:"PointLayer",shape:"circle",color:"#fbb03b",size:3,style:{}}},ruler:{polygon:{type:"PolygonLayer",shape:"fill",active:{color:"#FB93FF"},color:"#883BF2",style:{opacity:.1,stroke:"#883BF2",strokeWidth:1,strokeOpacity:1,lineType:"solid",dashArray:[2,2]}},line:{type:"LineLayer",shape:"line",size:1,color:"#883BF2",active:{color:"#FB93FF"},style:{stroke:"#883BF2",strokeWidth:1,strokeOpacity:1,lineType:"solid"}},point:{type:"PointLayer",shape:"circle",color:"#883BF2",size:3,style:{stroke:"#fff",strokeWidth:2}}}};function Kt(e){return(Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zt(e,t){return(Zt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=en(e);if(t){var o=en(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qt(this,n)}}function Qt(e,t){if(t&&("object"===Kt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $t(e)}function $t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function en(e){return(en=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tn=0,nn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zt(e,t)}(a,e);var t,n,o,i=Jt(a);function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Xt(this,a),(t=i.call(this)).source=void 0,t.scene=void 0,t.type=void 0,t.title=void 0,t.isEnable=!1,t.options={style:Yt},t.drawStatus="Drawing",t.currentFeature=void 0,t.currentVertex=void 0,t.popup=void 0,t.drawMode=void 0,t.drawable=!0;var o=n.data;return t.scene=e,t.source=new Wt(o),t.options=zt()(t.options,t.getDefaultOptions(),n),t.title=t.getOption("title"),Object(r.bindAll)(["onDragStart","onDragging","onDragEnd","onClick","onCheckDrawable"],$t(t)),t}return t=a,(n=[{key:"getDrawMode",value:function(){return this.drawMode}},{key:"enable",value:function(){this.scene.setMapStatus({dragEnable:!1}),this.isEnable||(this.drawStatus="Drawing",this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.scene.on("click",this.onClick),this.scene.on("mousemove",this.onCheckDrawable),this.setCursor(this.getOption("cursor")),this.isEnable=!0)}},{key:"resetDraw",value:function(){}},{key:"disable",value:function(){this.isEnable&&(this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.scene.off("click",this.onClick),this.scene.off("mousemove",this.onCheckDrawable),this.resetCursor(),this.scene.setMapStatus({dragEnable:!0}),this.isEnable=!1,this.drawStatus="DrawFinish")}},{key:"onCheckDrawable",value:function(e){var t=e.lnglat,n=this.getOption("checkDrawable");n&&"Drawing"===this.drawStatus&&(n(t,this)?(this.setCursor(this.getOption("cursor")),this.drawable=!0):(this.setCursor("not-allowed"),this.drawable=!1))}},{key:"setCurrentFeature",value:function(e){this.currentFeature=e,this.source.setFeatureActive(e)}},{key:"setCurrentVertex",value:function(e){this.currentVertex=e}},{key:"deleteCurrentFeature",value:function(){throw new Error("子类未实现该方法")}},{key:"getCurrentVertex",value:function(){return this.currentVertex}},{key:"getCurrentFeature",value:function(){return this.currentFeature}},{key:"getOption",value:function(e){return this.options[e]}},{key:"setOption",value:function(e,t){return this.options[e]=t}},{key:"getStyle",value:function(e){return this.getOption("style")[e]}},{key:"getUniqId",value:function(){return tn++}},{key:"setCursor",value:function(e){var t=this.scene.getMapCanvasContainer();if(t){var n,r,o=null!==(n=this.getOption("rewriteCursor"))&&void 0!==n?n:{};t.style.cursor=null!==(r=o[e])&&void 0!==r?r:e}}},{key:"resetCursor",value:function(){var e=this.scene.getMapCanvasContainer();e&&e.removeAttribute("style")}},{key:"getCursor",value:function(){var e,t=this.scene.getMapCanvasContainer();if(t)return null!==(e=t.style.cursor)&&void 0!==e?e:""}},{key:"destroy",value:function(){tn=0,this.removeAllListeners(),this.disable()}},{key:"getDrawable",value:function(){return this.drawable}},{key:"setDrawMode",value:function(e){this.drawMode=e}},{key:"getDefaultOptions",value:function(){return{}}},{key:"onClick",value:function(e){return null}}])&&qt(t.prototype,n),o&&qt(t,o),a}(Dt.EventEmitter);function rn(e){return(rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function un(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ln(e,t,n){return(ln="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=hn(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function fn(e,t){return(fn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hn(e);if(t){var o=hn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dn(this,n)}}function dn(e,t){if(t&&("object"===rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function hn(e){return(hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fn(e,t)}(i,e);var t,n,r,o=pn(i);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return un(this,i),o.call(this,e,t)}return t=i,(n=[{key:"enable",value:function(){this.emit(ve.DELETE,"")}},{key:"disable",value:function(){return null}},{key:"getDefaultOptions",value:function(){return an(an({},ln(hn(i.prototype),"getDefaultOptions",this).call(this)),{},{title:"删除图形"})}},{key:"onDragStart",value:function(e){throw new Error("Method not implemented.")}},{key:"onDragging",value:function(e){}},{key:"onDragEnd",value:function(){throw new Error("Method not implemented.")}},{key:"onClick",value:function(){return null}}])&&sn(t.prototype,n),r&&sn(t,r),i}(nn);function yn(e){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bn(e,t){return(bn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function On(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_n(e);if(t){var o=_n(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wn(this,n)}}function wn(e,t){if(t&&("object"===yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _n(e){return(_n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bn(e,t)}(i,e);var t,n,r,o=On(i);function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return mn(this,i),(t=o.call(this,e,n)).endPoint=void 0,t.onDragStart=function(e){},t.onDragging=function(e){t.endPoint=e.lngLat,t.emit(ve.Edit,t.endPoint)},t.onDragEnd=function(){t.emit(ve.UPDATE,t.currentFeature),t.resetCursor(),t.disable()},t.onClick=function(){return null},t}return t=i,(n=[{key:"setEditFeature",value:function(e){this.currentFeature=e}},{key:"getDefaultOptions",value:function(){return{steps:64,units:"kilometers",cursor:"move"}}}])&&gn(t.prototype,n),r&&gn(t,r),i}(nn);function En(e){return(En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jn(e,t){return(jn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tn(e);if(t){var o=Tn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pn(this,n)}}function Pn(e,t){if(t&&("object"===En(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Tn(e){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jn(e,t)}(i,e);var t,n,r,o=kn(i);function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Sn(this,i),(t=o.call(this,e,n)).center=void 0,t.dragStartPoint=void 0,t}return t=i,(n=[{key:"setSelectedFeature",value:function(e){this.currentFeature=e}},{key:"onDragStart",value:function(e){this.scene.setMapStatus({dragEnable:!1}),this.dragStartPoint=e.lngLat}},{key:"getDefaultOptions",value:function(){return{steps:64,units:"kilometers",cursor:"move"}}},{key:"onDragging",value:function(e){var t={lng:e.lngLat.lng-this.dragStartPoint.lng,lat:e.lngLat.lat-this.dragStartPoint.lat};this.emit(ve.Move,t),this.dragStartPoint=e.lngLat}},{key:"onDragEnd",value:function(){this.emit(ve.UPDATE,this.currentFeature)}},{key:"onClick",value:function(){return null}}])&&Cn(t.prototype,n),r&&Cn(t,r),i}(nn);function An(e){return(An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nn(e,t){return(Nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function In(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fn(e);if(t){var o=Fn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dn(this,n)}}function Dn(e,t){if(t&&("object"===An(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fn(e){return(Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nn(e,t)}(i,e);var t,n,r,o=In(i);function i(){return Ln(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"update",value:function(e){}},{key:"on",value:function(e,t){}},{key:"off",value:function(e,t){}},{key:"emit",value:function(e,t){}},{key:"updateData",value:function(e){}},{key:"destroy",value:function(){}},{key:"removeLayers",value:function(){}},{key:"addLayers",value:function(){}},{key:"show",value:function(){}},{key:"hide",value:function(){}}])&&Rn(t.prototype,n),r&&Rn(t,r),i}(W);function Bn(e){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Un(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hn(e,t){return(Hn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yn(e);if(t){var o=Yn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wn(this,n)}}function Wn(e,t){if(t&&("object"===Bn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Yn(e){return(Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Kn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hn(e,t)}(i,e);var t,n,r,o=Gn(i);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Un(this,i),o.call(this,e,t)}return t=i,(n=[{key:"setSelectedFeature",value:function(e){this.currentFeature=e,this.emit(ve.MEASURE,this.currentFeature)}},{key:"onDragStart",value:function(e){}},{key:"getDefaultOptions",value:function(){return{steps:64,units:"kilometers",cursor:"move"}}},{key:"onDragging",value:function(e){}},{key:"onDragEnd",value:function(){}},{key:"onClick",value:function(){}}])&&Vn(t.prototype,n),r&&Vn(t,r),i}(nn);function Xn(e){return(Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jn(e,t){return(Jn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tr(e);if(t){var o=tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $n(this,n)}}function $n(e,t){if(t&&("object"===Xn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return er(e)}function er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tr(e){return(tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jn(e,t)}(c,e);var t,n,i,a=Qn(c);function c(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return qn(this,c),(t=a.call(this,e,n)).selectMode=void 0,t.editMode=void 0,t.measureMode=void 0,t.deleteMode=void 0,t.editEnable=void 0,t.showDistance=void 0,t.selectEnable=void 0,t.normalLayer=void 0,t.drawLayer=void 0,t.drawVertexLayer=void 0,t.drawDistanceLayer=void 0,t.onModeChange=function(e){var n,r,i,a;switch(t.setDrawMode(e),e){case ye.DIRECT_SELECT:if(!t.editEnable)return;t.editMode.enable(),t.editMode.setEditFeature(t.currentFeature),t.drawLayer.updateData(Object(o.c)([t.currentFeature])),t.drawVertexLayer.updateData(Object(o.c)(null===(n=t.currentFeature)||void 0===n||null===(r=n.properties)||void 0===r?void 0:r.pointFeatures)),t.drawVertexLayer.show(),t.drawVertexLayer.enableEdit(),t.drawDistanceLayer.show(),t.showOtherLayer(),t.drawStatus="DrawEdit";break;case ye.SIMPLE_SELECT:if(!t.selectEnable)return t.drawLayer.hide(),t.drawVertexLayer.hide(),t.hideOtherLayer(),void t.emit(ve.MODE_CHANGE,ye.STATIC);t.selectMode.setSelectedFeature(t.currentFeature),t.selectMode.enable(),t.measureMode.setSelectedFeature(t.currentFeature),t.measureMode.enable(),t.drawLayer.updateData(Object(o.c)([t.currentFeature])),t.drawLayer.enableSelect(),t.drawVertexLayer.updateData(Object(o.c)(null===(i=t.currentFeature)||void 0===i||null===(a=i.properties)||void 0===a?void 0:a.pointFeatures)),t.drawVertexLayer.disableEdit(),t.drawVertexLayer.show(),t.drawDistanceLayer.show(),t.drawLayer.show(),t.showOtherLayer(),t.drawStatus="DrawSelected";break;case ye.STATIC:if(!t.getOption("showFeature"))return;t.source.updateFeature(t.currentFeature),t.selectMode.disable(),t.editMode.disable(),t.measureMode.disable(),t.source.clearFeatureActive(),t.drawVertexLayer.hide(),t.drawDistanceLayer.hide(),t.drawVertexLayer.disableEdit(),t.hideOtherLayer(),t.normalLayer.update(t.source.data),t.normalLayer.enableSelect(),t.drawStatus="DrawFinish"}},t.onDrawCreate=function(e){t.source.addFeature(e)},t.onDrawUpdate=function(e){t.source.updateFeature(t.currentFeature),t.emit(ve.UPDATE,t.currentFeature)},t.onDrawMove=function(e){"DrawSelected"!==t.drawStatus&&"DrawFinish"!==t.drawStatus||t.moveFeature(e)},t.onDrawEdit=function(e){t.editFeature(e)},t.onDrawDelete=function(){"DrawSelected"===t.drawStatus&&(t.clear(),t.source.removeFeature(t.currentFeature),t.normalLayer.update(t.source.data),t.drawLayer.disableSelect(),t.selectMode.disable(),t.currentFeature=null)},t.addKeyDownEvent=function(e){var n=e||window.event;n&&8===n.keyCode&&t.deleteMode.enable(),n&&90===n.keyCode&&n.ctrlKey&&"Drawing"===t.drawStatus&&t.removeLatestVertex()},t.selectEnable=t.getOption("selectEnable"),t.editEnable=t.getOption("editEnable"),t.showDistance=t.getOption("showDistance"),t.drawLayer=new Ze(er(t)),t.drawVertexLayer=new ot(er(t)),t.showDistance?t.drawDistanceLayer=new It(er(t)):t.drawDistanceLayer=new zn(er(t)),t.normalLayer=new Ue(er(t)),t.selectMode=new Mn(t.scene,{}),t.editMode=new xn(t.scene,{}),t.deleteMode=new vn(t.scene,{}),t.measureMode=new Kn(t.scene,{}),t.selectMode.on(ve.UPDATE,t.onDrawUpdate),t.selectMode.on(ve.Move,t.onDrawMove),t.editMode.on(ve.MODE_CHANGE,t.onModeChange),t.editMode.on(ve.UPDATE,t.onDrawUpdate),t.editMode.on(ve.Edit,t.onDrawEdit),t.selectMode.on(ve.MODE_CHANGE,t.onModeChange),t.deleteMode.on(ve.DELETE,t.onDrawDelete),t.on(ve.CREATE,t.onDrawCreate),t.on(ve.MODE_CHANGE,t.onModeChange),document.addEventListener("keydown",t.addKeyDownEvent),t.options.data&&t.initData()&&(t.normalLayer.update(t.source.data),t.normalLayer.enableSelect()),t}return t=c,(n=[{key:"setCurrentFeature",value:function(e){this.currentFeature=e,this.pointFeatures=e.properties.pointFeatures,this.source.setFeatureActive(e)}},{key:"deleteCurrentFeature",value:function(){this.deleteMode.enable()}},{key:"disableLayer",value:function(){this.drawLayer.disableSelect()}},{key:"enableLayer",value:function(){this.drawLayer.enableSelect()}},{key:"getData",value:function(){return this.source.getData()}},{key:"resetData",value:function(e){this.source=new Wt(e),this.options=zt()(this.options,this.getDefaultOptions(),{data:e}),this.initData(),this.normalLayer.update(this.source.data),this.normalLayer.enableSelect(),this.normalLayer.show()}},{key:"removeAllData",value:function(){this.resetData()}},{key:"clear",value:function(){this.drawLayer.disableSelect(),this.drawLayer.disableEdit(),this.drawLayer.hide(),this.drawVertexLayer.hide(),this.hideOtherLayer(),this.emit(ve.MODE_CHANGE,ye.STATIC)}},{key:"reset",value:function(){this.drawLayer.show(),this.drawVertexLayer.show(),this.showOtherLayer()}},{key:"addVertex",value:function(e){throw new Error("子类未实现该方法")}},{key:"onRemove",value:function(){this.destroy(),this.selectMode.destroy(),this.editMode.destroy(),this.measureMode.destroy(),this.source.destroy(),this.drawLayer.destroy(),this.drawVertexLayer.destroy(),this.normalLayer.destroy(),document.removeEventListener("keydown",this.addKeyDownEvent)}},{key:"getDefaultOptions",value:function(){return{steps:64,units:"kilometers",cursor:"crosshair",editEnable:!0,selectEnable:!0,showFeature:!0,enableCustomDraw:!0}}},{key:"initData",value:function(){return!1}},{key:"addDrawPopup",value:function(e,t){var n=new r.Popup({anchor:"left",closeButton:!1}).setLnglat(e).setText("半径:".concat(t.toFixed(2),"千米"));this.scene.addPopup(n),this.popup=n}}])&&Zn(t.prototype,n),i&&Zn(t,i),c}(nn);function rr(e){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){ar(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sr(e,t,n){return(sr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=hr(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function lr(e,t){return(lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hr(e);if(t){var o=hr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pr(this,n)}}function pr(e,t){if(t&&("object"===rr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dr(e)}function dr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hr(e){return(hr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lr(e,t)}(c,e);var t,n,i,a=fr(c);function c(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cr(this,c),(t=a.call(this,e,n)).startPoint=void 0,t.endPoint=void 0,t.pointFeatures=void 0,t.centerLayer=void 0,t.drawRulerLayer=void 0,Object(r.bindAll)(["onMeasure"],dr(t)),t.type="circle",t.on(ve.MODE_CHANGE,t.addDistanceLayerEvent),t.setDrawMode(ye.DRAW_Circle),t.drawRulerLayer=new ge(dr(t)),t}return t=c,(n=[{key:"onMeasure",value:function(e){this.drawRulerLayer.update(Object(o.c)([e]))}},{key:"enableMeasure",value:function(){this.measureMode.on(ve.MEASURE,this.onMeasure)}},{key:"disableMeasure",value:function(){this.measureMode.off(ve.MEASURE,this.onMeasure)}},{key:"drawFinish",value:function(){return null}},{key:"addDistanceLayerEvent",value:function(e){switch(e){case ye.SIMPLE_SELECT:this.drawDistanceLayer.update(this.getDistanceLineString()),this.drawDistanceLayer.show();break;case ye.STATIC:this.drawDistanceLayer.hide()}}},{key:"getDistanceLineString",value:function(){return Object(o.c)([Object(o.g)([[this.startPoint.lng,this.startPoint.lat],[this.endPoint.lng,this.endPoint.lat]])])}},{key:"setCurrentFeature",value:function(e){this.currentFeature=e,this.pointFeatures=e.properties.pointFeatures,this.startPoint=e.properties.startPoint,this.endPoint=e.properties.endPoint,this.source.setFeatureActive(e)}},{key:"removeLatestVertex",value:function(){return null}},{key:"getDefaultOptions",value:function(){return ir(ir({},sr(hr(c.prototype),"getDefaultOptions",this).call(this)),{},{title:"绘制圆"})}},{key:"onDragStart",value:function(e){"Drawing"!==this.drawStatus&&this.drawLayer.emit("unclick",null),this.startPoint=e.lngLat,this.setCursor("grabbing"),this.initCenterLayer(),this.centerLayer.setData([this.startPoint])}},{key:"onDragging",value:function(e){this.endPoint=e.lngLat;var t=this.createFeature(),n=t.properties;this.drawLayer.update(Object(o.c)([t])),this.drawVertexLayer.update(Object(o.c)(n.pointFeatures)),this.drawDistanceLayer.update(this.getDistanceLineString())}},{key:"onDragEnd",value:function(){var e=this.createFeature("".concat(this.getUniqId())),t=e.properties;this.drawLayer.update(Object(o.c)([e])),this.drawVertexLayer.update(Object(o.c)(t.pointFeatures)),this.drawDistanceLayer.update(this.getDistanceLineString()),this.emit(ve.CREATE,this.currentFeature),this.emit(ve.MODE_CHANGE,ye.SIMPLE_SELECT),this.disable()}},{key:"moveFeature",value:function(e){var t=Pe([this.currentFeature],e),n=Pe(this.pointFeatures,e);this.drawLayer.updateData(Object(o.c)(t)),this.drawVertexLayer.updateData(Object(o.c)(n)),this.drawDistanceLayer.update(this.getDistanceLineString());var r=Te([this.startPoint.lng,this.startPoint.lat],e);this.startPoint={lat:r[1],lng:r[0]};var i=Te([this.endPoint.lng,this.endPoint.lat],e),a={lat:i[1],lng:i[0]};t[0].properties=ir(ir({},t[0].properties),{},{startPoint:this.startPoint,endPoint:a,pointFeatures:n}),this.centerLayer.setData([this.startPoint]),this.setCurrentFeature(t[0]);var c=ir({},t[0]);this.emit(ve.CHANGE,c)}},{key:"createFeature",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0",t=ke([this.endPoint]),n=Ee([this.startPoint.lng,this.startPoint.lat],[this.endPoint.lng,this.endPoint.lat],{pointFeatures:t.features,units:this.getOption("units"),steps:this.getOption("steps"),id:e});return this.setCurrentFeature(n),n}},{key:"editFeature",value:function(e){this.endPoint=e;var t=this.createFeature(),n=t.properties;this.drawLayer.updateData(Object(o.c)([t])),this.drawVertexLayer.updateData(Object(o.c)(n.pointFeatures)),this.drawDistanceLayer.update(this.getDistanceLineString()),this.emit(ve.CHANGE,Object(o.c)([t]).features[0])}},{key:"showOtherLayer",value:function(){var e,t;this.drawDistanceLayer.show(),this.centerLayer.setData([null===(e=this.currentFeature)||void 0===e||null===(t=e.properties)||void 0===t?void 0:t.startPoint]),this.centerLayer.show()}},{key:"hideOtherLayer",value:function(){this.currentFeature&&(this.centerLayer.hide(),this.drawDistanceLayer.hide())}},{key:"initCenterLayer",value:function(){var e=this.getStyle("active").point,t=(new r.PointLayer).source([this.startPoint],{parser:{type:"json",x:"lng",y:"lat"}}).shape("circle").color(e.color).size(e.size).style(e.style);this.scene.addLayer(t),this.centerLayer=t}}])&&ur(t.prototype,n),i&&ur(t,i),c}(nr),yr=n("VtSi"),mr=n.n(yr);function gr(e){return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Or(e,t){return(Or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Er(e);if(t){var o=Er(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _r(this,n)}}function _r(e,t){if(t&&("object"===gr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xr(e)}function xr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Er(e){return(Er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sr=V.defaultRenderer(),Cr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Or(e,t)}(c,e);var t,n,i,a=wr(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).styleVariant="mid_point",Object(r.bindAll)(["onMouseEnter","onClick","onMouseOut"],xr(t)),t}return t=c,(n=[{key:"update",value:function(e){this.removeLayers();var t=this.calcMidPointData(e),n=this.draw.getStyle(this.styleVariant);this.drawLayers=Sr.renderFeature(t,n),this.addLayers(),this.enableEdit()}},{key:"updateData",value:function(e){var t=this.calcMidPointData(e);this.drawLayers.forEach((function(e){return e.setData(t)}))}},{key:"enableEdit",value:function(){var e=this.drawLayers[0];e.on("mouseenter",this.onMouseEnter),e.on("mouseout",this.onMouseOut),e.on("click",this.onClick)}},{key:"disableEdit",value:function(){var e=this.drawLayers[0];e.off("mouseenter",this.onMouseEnter),e.off("mouseout",this.onMouseOut),e.off("click",this.onClick)}},{key:"onMouseEnter",value:function(e){this.draw.setCursor("pointer")}},{key:"onMouseOut",value:function(e){this.draw.resetCursor()}},{key:"onClick",value:function(e){this.draw.getDrawable()&&this.draw.addVertex(e.feature)}},{key:"calcMidPointData",value:function(e){var t=this,n=[];return e.features.forEach((function(r,o){var i=r;if("line"!==t.draw.type||o!==e.features.length-1){var a=o!==e.features.length-1?e.features[o+1]:e.features[0],c=St(i,a);c.properties.id=o,n.push(c)}})),Object(o.c)(n)}}])&&br(t.prototype,n),i&&br(t,i),c}(W);function jr(e){return(jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kr(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function Pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(n),!0).forEach((function(t){Mr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ar(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||Rr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(e){return function(e){if(Array.isArray(e))return Nr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rr(e,t){if(e){if("string"==typeof e)return Nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(e,t):void 0}}function Nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fr(e,t,n){return(Fr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Hr(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function zr(e,t){return(zr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Br(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hr(e);if(t){var o=Hr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ur(this,n)}}function Ur(e,t){if(t&&("object"===jr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vr(e)}function Vr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hr(e){return(Hr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zr(e,t)}(s,e);var t,n,i,a,c,u=Br(s);function s(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ir(this,s),(t=u.call(this,e,n)).startPoint=void 0,t.endPoint=void 0,t.points=[],t.pointFeatures=void 0,t.drawMidVertexLayer=void 0,t.drawRulerLayer=void 0,Object(r.bindAll)(["onMouseMove","onDblClick","onMeasure"],Vr(t)),t.type="polygon",t.setDrawMode(ye.DRAW_POLYGON),t.drawMidVertexLayer=new Cr(Vr(t)),t.on(ve.MODE_CHANGE,t.addMidLayerEvent),t.on(ve.MODE_CHANGE,t.addDistanceLayerEvent),t.drawRulerLayer=new ge(Vr(t)),t.drawDistanceLayer.showLine=!1,t}return t=s,(n=[{key:"onMeasure",value:function(e){this.drawRulerLayer.update(Object(o.c)([e]))}},{key:"enableMeasure",value:function(){this.measureMode.on(ve.MEASURE,this.onMeasure)}},{key:"disableMeasure",value:function(){this.measureMode.off(ve.MEASURE,this.onMeasure)}},{key:"addDistanceLayerEvent",value:function(e){switch(e){case ye.SIMPLE_SELECT:this.drawDistanceLayer.update(this.getDistanceLineString()),this.drawDistanceLayer.show();break;case ye.STATIC:this.drawDistanceLayer.hide()}}},{key:"getDistanceLineString",value:function(){var e=[];if(this.currentFeature&&K(this.currentFeature)){var t=this.currentFeature.geometry.coordinates[0];e=t.map((function(e,n){if(t[n+1])return Object(o.g)([e,t[n+1]])})).filter(Boolean)}return Object(o.c)(e)}},{key:"enable",value:function(){Fr(Hr(s.prototype),"enable",this).call(this),this.scene.on("mousemove",this.onMouseMove),this.scene.on("dblclick",this.onDblClick)}},{key:"disable",value:function(){Fr(Hr(s.prototype),"disable",this).call(this),this.scene.off("mousemove",this.onMouseMove),this.scene.off("dblclick",this.onDblClick)}},{key:"drawFinish",value:function(e){(function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=0,r=0,o=0,i=e.length,a=i-1;o<i;a=o++){var c=(e[o].lng-e[a].lng)*(e[a].lat+e[o].lat),u=n+c;r+=Math.abs(n)>=Math.abs(c)?n-u+c:c-u+n,n=u}return n+r>=0!=!t})(this.points)||(this.points=this.points.reverse());var t=this.createFeature(Lr(this.points)),n=t.properties;this.drawLayer.update(Object(o.c)([t])),this.drawVertexLayer.update(Object(o.c)(n.pointFeatures)),this.emit(ve.CREATE,this.currentFeature),this.emit(ve.MODE_CHANGE,ye.SIMPLE_SELECT),this.points=[],this.disable()}},{key:"addVertex",value:function(e){var t,n,r=e.properties.id,i=null==e||null===(t=e.geometry)||void 0===t?void 0:t.coordinates,a=Ar(i,2),c=a[0],u=a[1],s=this.currentFeature,l=[];if("Polygon"===(null==s||null===(n=s.geometry)||void 0===n?void 0:n.type)){var f,p=null==s||null===(f=s.geometry)||void 0===f?void 0:f.coordinates;p[0].splice(r+1,0,i);for(var d=0;d<p[0].length-1;d++)l.push({lng:p[0][d][0],lat:p[0][d][1]})}else{var h,v=null==s||null===(h=s.geometry)||void 0===h?void 0:h.coordinates;v.splice(r+1,0,i);var y,m=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Rr(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(v);try{for(m.s();!(y=m.n()).done;){var g=y.value;l.push({lng:g[0],lat:g[1]})}}catch(O){m.e(O)}finally{m.f()}}var b=ke(l);this.pointFeatures=b.features,this.drawLayer.updateData(Object(o.c)([s])),this.drawVertexLayer.updateData(b),this.drawMidVertexLayer.updateData(Object(o.c)(this.pointFeatures)),s.properties.pointFeatures=b.features,this.setCurrentFeature(s),this.emit(ve.ADD_POINT,{lng:c,lat:u},l)}},{key:"removeLatestVertex",value:function(){if(this.points.length<2)this.resetDraw();else{for(this.points.pop();0!==this.points.length&&"custom"===(null===(e=this.points[this.points.length-1])||void 0===e?void 0:e.type);){var e;this.points.pop()}var t=this.createFeature(this.points);this.drawLayer.update(Object(o.c)([t]));var n=this.points.length?[this.points[0]]:[];this.points.length>1&&n.push(this.points[this.points.length-1]),this.drawVertexLayer.update(Object(o.c)(ke(n).features)),this.onDraw()}}},{key:"resetDraw",value:function(){this.points=[],this.drawLayer.destroy(),this.drawVertexLayer.destroy(),this.drawMidVertexLayer.destroy(),this.normalLayer.destroy(),this.disable(),this.enable(),this.drawStatus="Drawing"}},{key:"getDefaultOptions",value:function(){return Tr(Tr({},Fr(Hr(s.prototype),"getDefaultOptions",this).call(this)),{},{title:"绘制多边形"})}},{key:"onDragStart",value:function(e){return null}},{key:"onDragging",value:function(e){return null}},{key:"onDragEnd",value:function(){return null}},{key:"isEqualsPrePoint",value:function(e){var t=this.points.length;if(0==t)return!1;var n=this.points[t-1];return n.lat===e.lat&&n.lng===e.lng}},{key:"onClick",value:(a=mr.a.mark((function e(t){var n,r,i,a,c,u;return mr.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.getDrawable()){e.next=2;break}return e.abrupt("return");case 2:if("Drawing"!==this.drawStatus&&this.drawLayer.emit("unclick",null),n=t.lngLat||t.lnglat,!this.isEqualsPrePoint(n)){e.next=6;break}return e.abrupt("return");case 6:if(r=this.getOption("customDraw"),this.endPoint=n,!(this.getOption("enableCustomDraw")&&r&&this.points.length>0)){e.next=16;break}return e.next=11,r(this.points[this.points.length-1],this.endPoint);case 11:for(i=e.sent,a=0;a<i.length-1;a++)this.points.push(Tr(Tr({},i[a]),{},{type:"custom"}));this.points.push(n),e.next=17;break;case 16:this.points.push(n);case 17:c=this.createFeature(this.points),u=ke([this.points[0],this.endPoint]),this.drawLayer.update(Object(o.c)([c])),this.drawVertexLayer.update(Object(o.c)(u.features)),this.onDraw(),this.emit(ve.ADD_POINT,n,this.points);case 23:case"end":return e.stop()}}),e,this)})),c=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=a.apply(e,t);function i(e){kr(o,n,r,i,c,"next",e)}function c(e){kr(o,n,r,i,c,"throw",e)}i(void 0)}))},function(e){return c.apply(this,arguments)})},{key:"onMouseMove",value:function(e){var t=e.lngLat||e.lnglat;if(0!==this.points.length){var n=this.points.slice();n.push(t);var r=this.createFeature(n);this.drawLayer.update(Object(o.c)([r]))}}},{key:"onDblClick",value:function(e){var t=e.lngLat||e.lnglat;this.points.length<2||(this.isEqualsPrePoint(t)||this.points.push(t),this.drawFinish())}},{key:"moveFeature",value:function(e){var t=Pe([this.currentFeature],e),n=Pe(this.pointFeatures,e);this.drawLayer.updateData(Object(o.c)(t)),this.drawDistanceLayer.update(this.getDistanceLineString()),this.drawVertexLayer.updateData(Object(o.c)(n)),t[0].properties=Tr(Tr({},t[0].properties),{},{pointFeatures:n}),this.setCurrentFeature(t[0])}},{key:"createFeature",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=ke(e);this.pointFeatures=r.features;var o=Ce(e,{id:t||this.getUniqId(),type:"polygon",active:n,pointFeatures:this.pointFeatures});return this.setCurrentFeature(o),o}},{key:"editFeature",value:function(e){var t=this.currentVertex;if(t){var n,r=1*t.properties.id;t.geometry.coordinates=[e.lng,e.lat],this.pointFeatures[r].geometry.coordinates=[e.lng,e.lat],this.drawVertexLayer.updateData(Object(o.c)(this.pointFeatures)),this.drawMidVertexLayer.updateData(Object(o.c)(this.pointFeatures)),this.drawDistanceLayer.update(this.getDistanceLineString()),this.editPolygonVertex(r,e),this.drawLayer.updateData(Object(o.c)([this.currentFeature]));var i=this.currentFeature;i.properties=Tr(Tr({},null===(n=this.currentFeature)||void 0===n?void 0:n.properties),{},{pointFeatures:this.pointFeatures}),this.setCurrentFeature(i)}}},{key:"onDraw",value:function(){var e=this;this.drawVertexLayer.on("mousemove",(function(t){e.setCursor("pointer")})),this.drawVertexLayer.on("mouseout",(function(){e.setCursor(e.getOption("cursor"))})),this.drawVertexLayer.on("click",(function(t){e.resetCursor(),e.drawFinish(t)}))}},{key:"showOtherLayer",value:function(){return null}},{key:"hideOtherLayer",value:function(){return null}},{key:"addMidLayerEvent",value:function(e){switch(e){case ye.DIRECT_SELECT:this.drawMidVertexLayer.update(Object(o.c)(this.pointFeatures)),this.drawMidVertexLayer.show();break;case ye.STATIC:this.drawMidVertexLayer.hide()}}},{key:"initData",value:function(){var e=this,t=[];return this.source.data.features.forEach((function(n){if("Polygon"===n.geometry.type){var r,o=n.geometry.coordinates[0].map((function(e){return{lng:e[0],lat:e[1]}}));t.push(e.createFeature(o.slice(1),null==n||null===(r=n.properties)||void 0===r?void 0:r.id,!1))}})),this.source.data.features=t,!0}},{key:"editPolygonVertex",value:function(e,t){var n,r=this.currentFeature;if("Polygon"===(null==r||null===(n=r.geometry)||void 0===n?void 0:n.type)){var i,a=null==r||null===(i=r.geometry)||void 0===i?void 0:i.coordinates;a[0][e]=[t.lng,t.lat],0==-e&&(a[0][a[0].length-1]=[t.lng,t.lat])}else{var c;(null==r||null===(c=r.geometry)||void 0===c?void 0:c.coordinates)[e]=[t.lng,t.lat]}this.setCurrentFeature(r),this.drawLayer.updateData(Object(o.c)([this.currentFeature]))}}])&&Dr(t.prototype,n),i&&Dr(t,i),s}(nr);function Wr(e){return(Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(n),!0).forEach((function(t){Xr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jr(e,t,n){return(Jr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=to(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Qr(e,t){return(Qr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=to(e);if(t){var o=to(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eo(this,n)}}function eo(e,t){if(t&&("object"===Wr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var no=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qr(e,t)}(a,e);var t,n,r,i=$r(a);function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return qr(this,a),(t=i.call(this,e,n)).setDrawMode(ye.DRAW_LINE_STRING),t.type="line",t}return t=a,(n=[{key:"getDefaultOptions",value:function(){return Kr(Kr({},Jr(to(a.prototype),"getDefaultOptions",this).call(this)),{},{title:"绘制线"})}},{key:"moveFeature",value:function(e){var t=Pe([this.currentFeature],e),n=Pe(this.pointFeatures,e);return this.drawLayer.updateData(Object(o.c)(t)),this.drawVertexLayer.updateData(Object(o.c)(n)),this.currentFeature=t[0],this.pointFeatures=n,this.currentFeature}},{key:"createFeature",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=ke(e);this.pointFeatures=r.features;var o=je(e,{id:t||this.getUniqId(),type:"line",active:n,pointFeatures:this.pointFeatures});return this.setCurrentFeature(o),o}},{key:"initData",value:function(){var e=this,t=[];return this.source.data.features.forEach((function(n){if(Y(n)){var r,o=n.geometry.coordinates.map((function(e){return{lng:e[0],lat:e[1]}}));t.push(e.createFeature(o,null==n||null===(r=n.properties)||void 0===r?void 0:r.id,!1))}})),this.source.data.features=t,!0}}])&&Zr(t.prototype,n),r&&Zr(t,r),a}(Gr);function ro(e){return(ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){ao(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function co(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function so(e,t,n){return(so="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ho(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function lo(e,t){return(lo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ho(e);if(t){var o=ho(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return po(this,n)}}function po(e,t){if(t&&("object"===ro(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ho(e){return(ho=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lo(e,t)}(a,e);var t,n,r,i=fo(a);function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return co(this,a),(t=i.call(this,e,n)).pointFeatures=void 0,t.type="point",t.setDrawMode(ye.DRAW_POINT),t}return t=a,(n=[{key:"drawFinish",value:function(){this.emit(ve.CREATE,this.currentFeature),this.emit(ve.MODE_CHANGE,ye.SIMPLE_SELECT),this.disable()}},{key:"removeLatestVertex",value:function(){return null}},{key:"getDefaultOptions",value:function(){return io(io({},so(ho(a.prototype),"getDefaultOptions",this).call(this)),{},{title:"绘制点"})}},{key:"onDragStart",value:function(e){return null}},{key:"onDragging",value:function(e){return null}},{key:"onDragEnd",value:function(){return null}},{key:"onClick",value:function(e){if(this.getDrawable()){"Drawing"!==this.drawStatus&&this.drawLayer.emit("unclick",null);var t=e.lngLat||e.lnglat,n=this.createFeature(t);this.drawLayer.update(Object(o.c)([n])),this.drawVertexLayer.update(Object(o.c)([n])),this.drawFinish()}}},{key:"moveFeature",value:function(e){var t=Pe([this.currentFeature],e);return this.drawLayer.updateData(Object(o.c)(t)),this.drawVertexLayer.updateData(Object(o.c)(t)),this.currentFeature=t[0],this.pointFeatures=t,this.currentFeature.properties=io(io({},this.currentFeature.properties),{},{pointFeatures:t}),this.currentFeature}},{key:"createFeature",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(o.j)([e.lng,e.lat],{id:t||this.getUniqId(),type:"point",active:n,pointFeatures:[Object(o.j)([e.lng,e.lat])]});return this.setCurrentFeature(r),r}},{key:"initData",value:function(){var e=this,t=[];return this.source.data.features.forEach((function(n){if("Point"===n.geometry.type){var r,o={lng:n.geometry.coordinates[0],lat:n.geometry.coordinates[1]};t.push(e.createFeature(o,null==n||null===(r=n.properties)||void 0===r?void 0:r.id,!1))}})),this.source.data.features=t,!0}},{key:"editFeature",value:function(e){this.createFeature(e)}},{key:"showOtherLayer",value:function(){return null}},{key:"hideOtherLayer",value:function(){return null}}])&&uo(t.prototype,n),r&&uo(t,r),a}(nr);function yo(e){return(yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(n),!0).forEach((function(t){bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _o(e,t,n){return(_o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Co(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function xo(e,t){return(xo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Eo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Co(e);if(t){var o=Co(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return So(this,n)}}function So(e,t){if(t&&("object"===yo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Co(e){return(Co=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var jo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xo(e,t)}(i,e);var t,n,r,o=Eo(i);function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Oo(this,i),(t=o.call(this,e,n)).type="rect",t.setDrawMode(ye.DRAW_Rect),t}return t=i,(n=[{key:"drawFinish",value:function(){return null}},{key:"getDefaultOptions",value:function(){return go(go({},_o(Co(i.prototype),"getDefaultOptions",this).call(this)),{},{title:"绘制矩形"})}},{key:"createFeature",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0",t=ke([this.endPoint]),n=Se([this.startPoint.lng,this.startPoint.lat],[this.endPoint.lng,this.endPoint.lat],{id:e,pointFeatures:t.features});return this.setCurrentFeature(n),n}}])&&wo(t.prototype,n),r&&wo(t,r),i}(vr);function ko(e){return(ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Po(e){return function(e){if(Array.isArray(e))return To(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return To(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return To(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function To(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach((function(t){Lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function No(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Io(e,t,n){return(Io="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Uo(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Do(e,t){return(Do=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Uo(e);if(t){var o=Uo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zo(this,n)}}function zo(e,t){if(t&&("object"===ko(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bo(e)}function Bo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uo(e){return(Uo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Do(e,t)}(c,e);var t,n,i,a=Fo(c);function c(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ro(this,c),(t=a.call(this,e,n)).infoPopup=void 0,t.isAreaClosed=!1,t.setDrawMode(ye.RULER),t.type="line",t.infoPopup=new r.Popup({anchor:"left",closeButton:!1,closeOnClick:!1}),t.drawRulerLayer=new ge(Bo(t)),t.scene.addPopup(t.infoPopup),t.drawLayer.styleVariant="ruler",t.drawVertexLayer.styleVariant="ruler",t.drawMidVertexLayer.styleVariant="ruler",t.drawDistanceLayer.styleVariant="ruler",t.enableMeasure(),t}return t=c,(n=[{key:"enable",value:function(){this.drawRulerLayer.destroy(),this.drawMidVertexLayer.destroy(),this.drawDistanceLayer.destroy(),this.drawLayer.destroy(),this.drawVertexLayer.destroy(),Io(Uo(c.prototype),"enable",this).call(this)}},{key:"resetDraw",value:function(){Io(Uo(c.prototype),"resetDraw",this).call(this)}},{key:"getDefaultOptions",value:function(){return Ao(Ao({},Io(Uo(c.prototype),"getDefaultOptions",this).call(this)),{},{editEnable:!1,title:"测距"})}},{key:"drawFinish",value:function(e){if(e){var t,n,r=(null===(t=e.feature)||void 0===t||null===(n=t.geometry)||void 0===n?void 0:n.coordinates)||[];this.isEqualsFirstPoint({lng:r[0],lat:r[1]})&&(this.isAreaClosed=!0)}var i=this.createFeature(Po(this.points)),a=i.properties;this.drawLayer.update(Object(o.c)([i])),this.drawVertexLayer.update(Object(o.c)(a.pointFeatures)),this.emit(ve.CREATE,this.currentFeature),this.emit(ve.MODE_CHANGE,ye.SIMPLE_SELECT),this.points=[],this.isAreaClosed=!1,this.infoPopup.close(),this.disable()}},{key:"onMouseMove",value:function(e){this.infoPopup.open(),Io(Uo(c.prototype),"onMouseMove",this).call(this,e);var t=e.lngLat||e.lnglat;this.updatePopup(t)}},{key:"isEqualsFirstPoint",value:function(e){if(this.points.length<=1)return!1;var t=this.points[0];return t.lat===e.lat&&t.lng===e.lng}},{key:"updatePopup",value:function(e){if(this.infoPopup.setLnglat(e),0===this.points.length)return this.infoPopup.setText("请点击对应位置增加节点");var t,n=this.points[this.points.length-1],r=te([e.lng,e.lat],[n.lng,n.lat]);t=1===this.points.length?"点击连续测距":2===this.points.length?"双击结束线段绘制":"按起始点闭合线段",this.infoPopup.setText(r+t)}},{key:"moveFeature",value:function(e){return this.currentFeature}},{key:"createFeature",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.isAreaClosed){var r=ke(e);this.pointFeatures=r.features;var o=Ce(e,{id:t||this.getUniqId(),type:"polygon",active:n,pointFeatures:this.pointFeatures});return this.setCurrentFeature(o),o}var i=ke(e);this.pointFeatures=i.features;var a=je(e,{id:t||this.getUniqId(),type:"line",active:n,pointFeatures:this.pointFeatures});return this.setCurrentFeature(a),a}}])&&No(t.prototype,n),i&&No(t,i),c}(Gr);n("rCxc");function Ho(e){return(Ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Go(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yo(e,t){return(Yo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ko(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zo(e);if(t){var o=Zo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xo(this,n)}}function Xo(e,t){if(t&&("object"===Ho(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qo(e)}function qo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zo(e){return(Zo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jo(e){return(Jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $o(e,t){return($o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ei(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ni(e);if(t){var o=ni(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ti(this,n)}}function ti(e,t){if(t&&("object"===Jo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ni(e){return(ni=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ri={point:vo,line:no,polygon:Gr,circle:vr,rect:jo,ruler:Vo,multiSelect:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yo(e,t)}(a,e);var t,n,r,i=Ko(a);function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Go(this,a),(t=i.call(this,e,n)).startPoint=void 0,t.endPoint=void 0,t.drawDistanceLayer=new zn(qo(t)),t.drawLayer.styleVariant="multiSelect",t}return t=a,(n=[{key:"drawFinish",value:function(){}},{key:"moveFeature",value:function(e){}},{key:"editFeature",value:function(e){}},{key:"hideOtherLayer",value:function(){}},{key:"removeLatestVertex",value:function(){}},{key:"showOtherLayer",value:function(){}},{key:"onDragStart",value:function(e){"Drawing"!==this.drawStatus&&this.drawLayer.emit("unclick",null),this.startPoint=e.lngLat,this.setCursor("crosshair")}},{key:"onDragging",value:function(e){this.endPoint=e.lngLat;var t=this.createFeature();this.drawLayer.update(Object(o.c)([t]))}},{key:"onDragEnd",value:function(){this.drawLayer.update(Object(o.c)([])),this.emit(ve.MULTI_SELECT,{startPoint:this.startPoint,endPoint:this.endPoint}),this.disable()}},{key:"createFeature",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0",t=Se([this.startPoint.lng,this.startPoint.lat],[this.endPoint.lng,this.endPoint.lat],{id:e,pointFeatures:[]});return t}}])&&Wo(t.prototype,n),r&&Wo(t,r),a}(nr)},oi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$o(e,t)}(c,e);var t,n,i,a=ei(c);function c(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=a.call(this,t)).draw={},n.currentDraw=void 0,n.scene=void 0,n.onButtonClick=function(e,t){for(var r in n.draw)r===e?n.draw[r].enable():n.draw[r].disable()},n.onDeleteMode=function(e,t){if(t.stopPropagation(),n.currentDraw)return n.currentDraw.deleteMode.enable(),n.emit("draw.delete"),!1},n.onModeChange=function(e,t){t===ye.SIMPLE_SELECT&&(n.currentDraw=n.draw[e]),t===ye.STATIC&&n.mapsService.setMapStatus({dragEnable:!0})},n.scene=e,n}return t=c,(n=[{key:"getDefault",value:function(){return{position:r.PositionType.TOPLEFT,controls:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0,delete:!0},name:"draw"}}},{key:"onAdd",value:function(){var e="l7-control-draw "+this.controlOption.layout,t=this.controlOption.controls,n=r.DOM.create("div",e);return this.addControls(t,n),this.addControlEvent(),n}},{key:"onRemove",value:function(){for(var e in this.draw)this.draw[e]&&this.draw[e].destroy()}},{key:"getDraw",value:function(e){return this.controlOption.controls[e]?this.draw[e]:null}},{key:"getAllData",value:function(){var e={};for(var t in this.draw)this.draw[t]&&(e[t]=this.draw[t].getData());return e}},{key:"removeAllData",value:function(){for(var e in this.draw)this.draw[e]&&this.draw[e].removeAllData()}},{key:"addControls",value:function(e,t){var n=this.controlOption.style;for(var r in e)if(ri[r]&&!1!==e[r]){var i=Object(o.e)(e[r])?e[r]:{};n&&(i.style=n);var a=new ri[r](this.scene,i);a.on(ve.MODE_CHANGE,this.onModeChange.bind(null,r)),this.draw[r]=a,this.createButton(a.title,"draw-"+r,t,"click",this.onButtonClick.bind(null,r))}else if("delete"===r&&!1!==e[r]){var c=new vn(this.scene);c.on(ve.MODE_CHANGE,this.onModeChange.bind(null,r)),this.createButton(c.title,"draw-"+r,t,"mousedown",this.onDeleteMode.bind(null,r))}}},{key:"addControlEvent",value:function(){var e=this,t=function(t){e.draw[t]&&[ve.CREATE,ve.UPDATE,ve.DELETE,ve.MULTI_SELECT].forEach((function(n){e.draw[t].on(n,(function(r){e.emit(n,{drawType:t,feature:r})}))}))};for(var n in this.draw)t(n)}},{key:"createButton",value:function(e,t,n,o,i){var a=r.DOM.create("button",t,n);return a.title=e,a.addEventListener(o,i,!1),a}}])&&Qo(t.prototype,n),i&&Qo(t,i),c}(r.Control)},uNS2:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("VfWM");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"syncWithMapCamera",value:function(e){var t=e.center,n=e.zoom,o=e.pitch,a=e.bearing,c=e.viewportHeight,u=e.viewportWidth,s=this.viewport?{width:this.viewport.width,height:this.viewport.height,longitude:this.viewport.center[0],latitude:this.viewport.center[1],zoom:this.viewport.zoom,pitch:this.viewport.pitch,bearing:this.viewport.bearing}:{};this.viewport=new r.a(i(i({},s),{},{width:u,height:c,longitude:t&&t[0],latitude:t&&t[1],zoom:n,pitch:o,bearing:a}))}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(e,t){return this.viewport.projectFlat(e,t)}}])&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},uO0T:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7nmT"),o=n.n(r);function i(e){return e instanceof HTMLElement?e:o.a.findDOMNode(e)}},uOPO:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="LeftOutlined";t.a=o.forwardRef(c)},uSMO:function(e,t,n){var r=n("WhsZ"),o=n("TPFc");e.exports=r((function(e,t){return o(e>=0?t.length-e:0,t)}))},uWVk:function(e,t,n){"use strict";var r=n("ERkP"),o=Object(r.createContext)({});t.a=o},ujcY:function(e,t,n){"use strict";e.exports={serialization:n("QXnW"),equality:n("kYJr"),debugRepresentation:n("NRJf")}},ul5b:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n("cxan"),o=n("ZvpZ"),i=Object(r.a)({},o.a.Modal);function a(e){i=e?Object(r.a)(Object(r.a)({},i),e):Object(r.a)({},o.a.Modal)}function c(){return i}},uotq:function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}},uqcd:function(e,t,n){var r=n("VrFO"),o=n("Y9Ll"),i=n("5Yy7"),a=n("N+ot"),c=n("AuHH");function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}var s=n("8M93"),l=n("bnMc"),f=n("dMso"),p=n("jCFv").pick,d=n("3fuC"),h=n("KQpv")("engine.io-client:polling-xhr");function v(){}var y=null!=new s({xdomain:!1}).responseType,m=function(e){"use strict";i(n,e);var t=u(n);function n(e){var o;if(r(this,n),o=t.call(this,e),"undefined"!=typeof location){var i="https:"===location.protocol,a=location.port;a||(a=i?443:80),o.xd="undefined"!=typeof location&&e.hostname!==location.hostname||a!==e.port,o.xs=e.secure!==i}var c=e&&e.forceBase64;return o.supportsBinary=y&&!c,o}return o(n,[{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new g(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this.request({method:"POST",data:e}),r=this;n.on("success",t),n.on("error",(function(e){r.onError("xhr post error",e)}))}},{key:"doPoll",value:function(){h("xhr poll");var e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e}}]),n}(l),g=function(e){"use strict";i(n,e);var t=u(n);function n(e,o){var i;return r(this,n),(i=t.call(this)).opts=o,i.method=o.method||"GET",i.uri=e,i.async=!1!==o.async,i.data=void 0!==o.data?o.data:null,i.create(),i}return o(n,[{key:"create",value:function(){var e=p(this.opts,"agent","enablesXDR","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;var t=this.xhr=new s(e),r=this;try{h("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var o in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&t.setRequestHeader(o,this.opts.extraHeaders[o])}catch(i){}if("POST"===this.method)try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{t.setRequestHeader("Accept","*/*")}catch(i){}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),this.hasXDR()?(t.onload=function(){r.onLoad()},t.onerror=function(){r.onError(t.responseText)}):t.onreadystatechange=function(){4===t.readyState&&(200===t.status||1223===t.status?r.onLoad():setTimeout((function(){r.onError("number"==typeof t.status?t.status:0)}),0))},h("xhr data %s",this.data),t.send(this.data)}catch(i){return void setTimeout((function(){r.onError(i)}),0)}"undefined"!=typeof document&&(this.index=n.requestsCount++,n.requests[this.index]=this)}},{key:"onSuccess",value:function(){this.emit("success"),this.cleanup()}},{key:"onData",value:function(e){this.emit("data",e),this.onSuccess()}},{key:"onError",value:function(e){this.emit("error",e),this.cleanup(!0)}},{key:"cleanup",value:function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=v:this.xhr.onreadystatechange=v,e)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete n.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&this.onData(e)}},{key:"hasXDR",value:function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR}},{key:"abort",value:function(){this.cleanup()}}]),n}(f);if(g.requestsCount=0,g.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",b);else if("function"==typeof addEventListener){addEventListener("onpagehide"in d?"pagehide":"unload",b,!1)}function b(){for(var e in g.requests)g.requests.hasOwnProperty(e)&&g.requests[e].abort()}e.exports=m,e.exports.Request=g},uwWy:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return s}));var r=n("4wDe"),o=n("kvVz"),i=n("p2vu");function a(e,t){"function"==typeof e?e(t):"object"===Object(r.a)(e)&&e&&"current"in e&&(e.current=t)}function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){a(t,e)}))}}function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(i.a)((function(){return c.apply(void 0,t)}),t,(function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))}))}function s(e){var t,n,r=Object(o.isMemo)(e)?e.type.type:e.type;return!("function"==typeof r&&!(null===(t=r.prototype)||void 0===t?void 0:t.render))&&!("function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}},"v9+8":function(e,t,n){var r=n("fLdg"),o=n("GVul"),i=n("m2YG"),a=n("dw5g");e.exports=function(e,t,n){e=a(e);var c=(t=i(t))?o(e):0;return t&&c<t?r(t-c,n)+e:e}},vGGS:function(e,t,n){var r=n("tQYX"),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},vLTl:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n("okt8")),o=s(n("eX5m")),i=s(n("PBP+")),a=s(n("Dl9d")),c=s(n("hy0K")),u=s(n("o3mt"));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){return(0,u.default)(e).map((0,c.default)((function(e){return(0,a.default)(e,t)}))).map((0,i.default)(o.default,r.default))}},vONN:function(e,t,n){"use strict";var r;function o(e){if("undefined"==typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),r=i-a}return r}function i(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?o():n}function a(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:i(n),height:i(r)}}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}))},vRDG:function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},vRIw:function(e,t,n){},vTcl:function(e,t){e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},vabA:function(e,t,n){(function(t){var r=n("VrFO"),o=n("Y9Ll"),i=n("5Yy7"),a=n("N+ot"),c=n("AuHH");function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}var s=n("Y3rH"),l=n("5w0e"),f=n("5dAn"),p=n("73V4"),d=n("jCFv").pick,h=n("e1KB"),v=h.WebSocket,y=h.usingBrowserWebSocket,m=h.defaultBinaryType,g=n("KQpv")("engine.io-client:websocket"),b="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),O=function(e){"use strict";i(a,e);var n=u(a);function a(e){var t;return r(this,a),(t=n.call(this,e)).supportsBinary=!e.forceBase64,t}return o(a,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=b?{}:d(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=y&&!b?t?new v(e,t):new v(e):new v(e,t,n)}catch(r){return this.emit("error",r)}this.ws.binaryType=this.socket.binaryType||m,this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}}},{key:"write",value:function(e){var n=this;this.writable=!1;for(var r=e.length,o=0,i=r;o<i;o++)!function(e){l.encodePacket(e,n.supportsBinary,(function(o){var i={};y||(e.options&&(i.compress=e.options.compress),n.opts.perMessageDeflate&&("string"==typeof o?t.byteLength(o):o.length)<n.opts.perMessageDeflate.threshold&&(i.compress=!1));try{y?n.ws.send(o):n.ws.send(o,i)}catch(c){g("websocket closed before onclose event")}--r||a()}))}(e[o]);function a(){n.emit("flush"),setTimeout((function(){n.writable=!0,n.emit("drain")}),0)}}},{key:"onClose",value:function(){s.prototype.onClose.call(this)}},{key:"doClose",value:function(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}},{key:"uri",value:function(){var e=this.query||{},t=this.opts.secure?"wss":"ws",n="";return this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=p()),this.supportsBinary||(e.b64=1),(e=f.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+e}},{key:"check",value:function(){return!(!v||"__initialize"in v&&this.name===a.prototype.name)}}]),a}(s);e.exports=O}).call(this,n("+ZX+").Buffer)},"vj+E":function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e,t){if("object"!==(void 0===t?"undefined":r(t)))throw new TypeError(e+" expects an Object, but was given "+t+".")}},vspj:function(e,t,n){"use strict";var r=n("Czhu"),o=n("zygG"),i=n("zjfJ"),a=n("HbGN"),c=n("ERkP"),u=n("O94r"),s=n.n(u),l=n("uWVk"),f=n("8j0R"),p=["icon","className","onClick","style","primaryColor","secondaryColor"],d={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var h=function(e){var t=e.icon,n=e.className,o=e.onClick,i=e.style,c=e.primaryColor,u=e.secondaryColor,s=Object(a.a)(e,p),l=d;if(c&&(l={primaryColor:c,secondaryColor:u||Object(f.b)(c)}),Object(f.f)(),Object(f.g)(Object(f.c)(t),"icon should be icon definiton, but got ".concat(t)),!Object(f.c)(t))return null;var h=t;return h&&"function"==typeof h.icon&&(h=Object(r.a)(Object(r.a)({},h),{},{icon:h.icon(l.primaryColor,l.secondaryColor)})),Object(f.a)(h.icon,"svg-".concat(h.name),Object(r.a)({className:n,onClick:o,style:i,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};h.displayName="IconReact",h.getTwoToneColors=function(){return Object(r.a)({},d)},h.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;d.primaryColor=t,d.secondaryColor=n||Object(f.b)(t),d.calculated=!!n};var v=h;function y(e){var t=Object(f.d)(e),n=Object(o.a)(t,2),r=n[0],i=n[1];return v.setTwoToneColors({primaryColor:r,secondaryColor:i})}var m=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];y("#1890ff");var g=c.forwardRef((function(e,t){var n,u=e.className,p=e.icon,d=e.spin,h=e.rotate,y=e.tabIndex,g=e.onClick,b=e.twoToneColor,O=Object(a.a)(e,m),w=c.useContext(l.a).prefixCls,_=void 0===w?"anticon":w,x=s()(_,(n={},Object(i.a)(n,"".concat(_,"-").concat(p.name),!!p.name),Object(i.a)(n,"".concat(_,"-spin"),!!d||"loading"===p.name),n),u),E=y;void 0===E&&g&&(E=-1);var S=h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0,C=Object(f.d)(b),j=Object(o.a)(C,2),k=j[0],P=j[1];return c.createElement("span",Object(r.a)(Object(r.a)({role:"img","aria-label":p.name},O),{},{ref:t,tabIndex:E,onClick:g,className:x}),c.createElement(v,{icon:p,primaryColor:k,secondaryColor:P,style:S}))}));g.displayName="AntdIcon",g.getTwoToneColor=function(){var e=v.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},g.setTwoToneColor=y;t.a=g},vxC8:function(e,t,n){var r=n("5nKN"),o=n("4p/L");e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},wBNo:function(e,t,n){var r=n("0ECu"),o=n("dw5g"),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},wC3K:function(e,t,n){var r=n("Pz+s");e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},"wEI+":function(e,t,n){"use strict";n.d(t,"b",(function(){return F}));var r=n("cxan"),o=n("uWVk"),i=n("85Yc"),a=n("p2vu"),c=n("ERkP"),u=n("9fIP"),s=n("MMYH"),l=n("8K1b"),f=n("AqVP"),p=n("lSUb"),d=n("ul5b"),h=n("YlG9"),v=function(e){Object(l.a)(n,e);var t=Object(f.a)(n);function n(e){var o;return Object(u.a)(this,n),(o=t.call(this,e)).getMemoizedContextValue=Object(p.a)((function(e){return Object(r.a)(Object(r.a)({},e),{exist:!0})})),Object(d.a)(e.locale&&e.locale.Modal),o}return Object(s.a)(n,[{key:"componentDidMount",value:function(){Object(d.a)(this.props.locale&&this.props.locale.Modal)}},{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&Object(d.a)(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){Object(d.a)()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children,r=this.getMemoizedContextValue(t);return c.createElement(h.a.Provider,{value:r},n)}}]),n}(c.Component);v.defaultProps={locale:{}};var y=n("YMnH"),m=n("ZvpZ"),g=n("tsqr"),b=n("TeRw"),O=n("H84U"),w=n("fuOX"),_=n("hgAf"),x=n("qVN5"),E=n("Rdeb"),S=n("LNVR"),C=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=Object(_.d)(t)),this.originalInput=t;var o=Object(E.a)(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Object(S.b)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=Object(_.h)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Object(_.h)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Object(_.g)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Object(_.g)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Object(_.f)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),Object(_.j)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Object(S.a)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Object(S.a)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Object(_.f)(this.r,this.g,this.b,!1),t=0,n=Object.entries(x.a);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Object(S.c)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Object(S.c)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Object(S.c)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Object(S.c)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+c)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();var j=n("3yBb"),k=n("gnsf"),P="-ant-".concat(Date.now(),"-").concat(Math.random());function T(e,t){var n=function(e,t){var n={},r=function(e,t){var n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=function(e,t){var o=new C(e),i=Object(w.a)(o.toRgbString());n["".concat(t,"-color")]=r(o),n["".concat(t,"-color-disabled")]=i[1],n["".concat(t,"-color-hover")]=i[4],n["".concat(t,"-color-active")]=i[7],n["".concat(t,"-color-outline")]=o.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=i[1],n["".concat(t,"-color-deprecated-border")]=i[3]};if(t.primaryColor){o(t.primaryColor,"primary");var i=new C(t.primaryColor),a=Object(w.a)(i.toRgbString());a.forEach((function(e,t){n["primary-".concat(t+1)]=e})),n["primary-color-deprecated-l-35"]=r(i,(function(e){return e.lighten(35)})),n["primary-color-deprecated-l-20"]=r(i,(function(e){return e.lighten(20)})),n["primary-color-deprecated-t-20"]=r(i,(function(e){return e.tint(20)})),n["primary-color-deprecated-t-50"]=r(i,(function(e){return e.tint(50)})),n["primary-color-deprecated-f-12"]=r(i,(function(e){return e.setAlpha(.12*e.getAlpha())}));var c=new C(a[0]);n["primary-color-active-deprecated-f-30"]=r(c,(function(e){return e.setAlpha(.3*e.getAlpha())})),n["primary-color-active-deprecated-d-02"]=r(c,(function(e){return e.darken(2)}))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");var u=Object.keys(n).map((function(t){return"--".concat(e,"-").concat(t,": ").concat(n[t],";")}));return"\n :root {\n ".concat(u.join("\n"),"\n }\n ").trim()}(e,t);Object(j.a)()&&Object(k.a)(n,"".concat(P,"-dynamic-theme"))}var M,A,L=n("caoh"),R=n("3Nzz"),N=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"];function I(){return M||"ant"}function D(){return A||"anticon"}var F=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(I(),"-").concat(e):I())},getIconPrefixCls:D,getRootPrefixCls:function(e,t){return e||(M||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):I()))}}},z=function(e){var t,n,u=e.children,s=e.csp,l=e.autoInsertSpaceInButton,f=e.form,p=e.locale,d=e.componentSize,h=e.direction,y=e.space,g=e.virtual,b=e.dropdownMatchSelectWidth,w=e.legacyLocale,_=e.parentContext,x=e.iconPrefixCls,E=e.componentDisabled,S=c.useCallback((function(t,n){var r=e.prefixCls;if(n)return n;var o=r||_.getPrefixCls("");return t?"".concat(o,"-").concat(t):o}),[_.getPrefixCls,e.prefixCls]),C=Object(r.a)(Object(r.a)({},_),{csp:s,autoInsertSpaceInButton:l,locale:p||w,direction:h,space:y,virtual:g,dropdownMatchSelectWidth:b,getPrefixCls:S});N.forEach((function(t){var n=e[t];n&&(C[t]=n)}));var j=Object(a.a)((function(){return C}),C,(function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((function(n){return e[n]!==t[n]}))})),k=c.useMemo((function(){return{prefixCls:x,csp:s}}),[x,s]),P=u,T={};return p&&(T=(null===(t=p.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=m.a.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),f&&f.validateMessages&&(T=Object(r.a)(Object(r.a)({},T),f.validateMessages)),Object.keys(T).length>0&&(P=c.createElement(i.c,{validateMessages:T},u)),p&&(P=c.createElement(v,{locale:p,_ANT_MARK__:"internalMark"},P)),(x||s)&&(P=c.createElement(o.a.Provider,{value:k},P)),d&&(P=c.createElement(R.a,{size:d},P)),void 0!==E&&(P=c.createElement(L.a,{disabled:E},P)),c.createElement(O.b.Provider,{value:j},P)},B=function(e){return c.useEffect((function(){e.direction&&(g.b.config({rtl:"rtl"===e.direction}),b.a.config({rtl:"rtl"===e.direction}))}),[e.direction]),c.createElement(y.a,null,(function(t,n,o){return c.createElement(O.a,null,(function(t){return c.createElement(z,Object(r.a)({parentContext:t,legacyLocale:o},e))}))}))};B.ConfigContext=O.b,B.SizeContext=R.b,B.config=function(e){var t=e.prefixCls,n=e.iconPrefixCls,r=e.theme;void 0!==t&&(M=t),void 0!==n&&(A=n),r&&T(I(),r)};t.a=B},wFql:function(e,t,n){"use strict";var r=n("cxan"),o=n("4wDe"),i=n("ERkP"),a=n("zjfJ"),c=n("zygG"),u=n("Szl1"),s=n("aRoJ"),l=n("xdJY"),f=n("O94r"),p=n.n(f),d=n("061g"),h=n.n(d),v=n("8sde"),y=n("6Qj0"),m=n("s1jM"),g=n("MSM+"),b=n("WSTu"),O=n("uwWy"),w=n("H84U"),_=n("YMnH"),x=n("gDlH"),E=n("VeAG"),S=n("3S7+"),C=n("Czhu"),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},k=n("vspj"),P=function(e,t){return i.createElement(k.a,Object(C.a)(Object(C.a)({},e),{},{ref:t,icon:j}))};P.displayName="EnterOutlined";var T=i.forwardRef(P),M=n("tmJt"),A=n("whJP"),L=n("0n0R"),R=function(e){var t=e.prefixCls,n=e["aria-label"],r=e.className,o=e.style,u=e.direction,s=e.maxLength,l=e.autoSize,f=void 0===l||l,d=e.value,h=e.onSave,v=e.onCancel,y=e.onEnd,m=e.component,g=e.enterIcon,b=void 0===g?i.createElement(T,null):g,O=i.useRef(),w=i.useRef(!1),_=i.useRef(),x=i.useState(d),E=Object(c.a)(x,2),S=E[0],C=E[1];i.useEffect((function(){C(d)}),[d]),i.useEffect((function(){if(O.current&&O.current.resizableTextArea){var e=O.current.resizableTextArea.textArea;e.focus();var t=e.value.length;e.setSelectionRange(t,t)}}),[]);var j=function(){h(S.trim())},k=m?"".concat(t,"-").concat(m):"",P=p()(t,"".concat(t,"-edit-content"),Object(a.a)({},"".concat(t,"-rtl"),"rtl"===u),r,k);return i.createElement("div",{className:P,style:o},i.createElement(A.a,{ref:O,maxLength:s,value:S,onChange:function(e){var t=e.target;C(t.value.replace(/[\n\r]/g,""))},onKeyDown:function(e){var t=e.keyCode;w.current||(_.current=t)},onKeyUp:function(e){var t=e.keyCode,n=e.ctrlKey,r=e.altKey,o=e.metaKey,i=e.shiftKey;_.current!==t||w.current||n||r||o||i||(t===M.a.ENTER?(j(),null==y||y()):t===M.a.ESC&&v())},onCompositionStart:function(){w.current=!0},onCompositionEnd:function(){w.current=!1},onBlur:function(){j()},"aria-label":n,rows:1,autoSize:f}),null!==b?Object(L.a)(b,{className:"".concat(t,"-edit-content-confirm")}):null)};function N(e,t){return i.useMemo((function(){var n=!!e;return[n,Object(r.a)(Object(r.a)({},t),n&&"object"===Object(o.a)(e)?e:null)]}),[e])}var I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},D=function(e,t){var n=e.prefixCls,o=e.component,c=void 0===o?"article":o,u=e.className,s=e["aria-label"],l=e.setContentRef,f=e.children,d=I(e,["prefixCls","component","className","aria-label","setContentRef","children"]),h=i.useContext(w.b),v=h.getPrefixCls,y=h.direction,m=t;l&&(m=Object(O.a)(t,l));var g=c,b=v("typography",n),_=p()(b,Object(a.a)({},"".concat(b,"-rtl"),"rtl"===y),u);return i.createElement(g,Object(r.a)({className:_,"aria-label":s,ref:m},d),f)};var F=i.forwardRef(D);function z(e){var t=Object(o.a)(e);return"string"===t||"number"===t}function B(e,t){for(var n=0,r=[],o=0;o<e.length;o+=1){if(n===t)return r;var i=e[o],a=n+(z(i)?String(i).length:1);if(a>t){var c=t-n;return r.push(String(i).slice(0,c)),r}r.push(i),n=a}return e}var U=function(e){var t=e.enabledMeasure,n=e.children,o=e.text,a=e.width,u=e.rows,s=e.onEllipsis,l=i.useState([0,0,0]),f=Object(c.a)(l,2),p=f[0],d=f[1],h=i.useState(0),v=Object(c.a)(h,2),g=v[0],b=v[1],O=Object(c.a)(p,3),w=O[0],_=O[1],x=O[2],E=i.useState(0),S=Object(c.a)(E,2),C=S[0],j=S[1],k=i.useRef(null),P=i.useRef(null),T=i.useMemo((function(){return Object(y.a)(o)}),[o]),M=i.useMemo((function(){return function(e){var t=0;return e.forEach((function(e){z(e)?t+=String(e).length:t+=1})),t}(T)}),[T]),A=i.useMemo((function(){return t&&3===g?n(B(T,_),_<M):n(T,!1)}),[t,g,n,T,_,M]);Object(m.a)((function(){t&&a&&M&&(b(1),d([0,Math.ceil(M/2),M]))}),[t,a,o,M,u]),Object(m.a)((function(){var e;1===g&&j((null===(e=k.current)||void 0===e?void 0:e.offsetHeight)||0)}),[g]),Object(m.a)((function(){var e,t;if(C)if(1===g)((null===(e=P.current)||void 0===e?void 0:e.offsetHeight)||0)<=u*C?(b(4),s(!1)):b(2);else if(2===g)if(w!==x){var n=(null===(t=P.current)||void 0===t?void 0:t.offsetHeight)||0,r=w,o=x;w===x-1?o=w:n<=u*C?r=_:o=_;var i=Math.ceil((r+o)/2);d([r,i,o])}else b(3),s(!0)}),[g,w,x,u,C]);var L,R,N={width:a,whiteSpace:"normal",margin:0,padding:0},I=function(e,t,n){return i.createElement("span",{"aria-hidden":!0,ref:t,style:Object(r.a)({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none"},n)},e)};return i.createElement(i.Fragment,null,A,t&&3!==g&&4!==g&&i.createElement(i.Fragment,null,I("lg",k,{wordBreak:"keep-all",whiteSpace:"nowrap"}),1===g?I(n(T,!1),P,N):(L=P,R=B(T,_),I(n(R,!0),L,N))))};var V=function(e){var t=e.enabledEllipsis,n=e.isEllipsis,o=e.children,a=e.tooltipProps;return(null==a?void 0:a.title)&&t?i.createElement(S.a,Object(r.a)({visible:!!n&&void 0},a),o):o},H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function G(e,t,n){return!0===e||void 0===e?t:e||n&&t}function W(e){return Array.isArray(e)?e:[e]}var Y=i.forwardRef((function(e,t){var n,f,d,C=e.prefixCls,j=e.className,k=e.style,P=e.type,T=e.disabled,M=e.children,A=e.ellipsis,L=e.editable,I=e.copyable,D=e.component,z=e.title,B=H(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),Y=i.useContext(w.b),K=Y.getPrefixCls,X=Y.direction,q=Object(_.b)("Text")[0],Z=i.useRef(null),J=i.useRef(null),Q=K("typography",C),$=Object(b.a)(B,["mark","code","delete","underline","strong","keyboard","italic"]),ee=N(L),te=Object(c.a)(ee,2),ne=te[0],re=te[1],oe=Object(g.a)(!1,{value:re.editing}),ie=Object(c.a)(oe,2),ae=ie[0],ce=ie[1],ue=re.triggerType,se=void 0===ue?["icon"]:ue,le=function(e){var t;e&&(null===(t=re.onStart)||void 0===t||t.call(re)),ce(e)};n=function(){var e;ae||null===(e=J.current)||void 0===e||e.focus()},f=[ae],d=i.useRef(!1),i.useEffect((function(){d.current?n():d.current=!0}),f);var fe=function(e){null==e||e.preventDefault(),le(!0)},pe=N(I),de=Object(c.a)(pe,2),he=de[0],ve=de[1],ye=i.useState(!1),me=Object(c.a)(ye,2),ge=me[0],be=me[1],Oe=i.useRef(),we={};ve.format&&(we.format=ve.format);var _e=function(){clearTimeout(Oe.current)},xe=function(e){var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),h()(ve.text||String(M)||"",we),be(!0),_e(),Oe.current=setTimeout((function(){be(!1)}),3e3),null===(t=ve.onCopy)||void 0===t||t.call(ve,e)};i.useEffect((function(){return _e}),[]);var Ee=i.useState(!1),Se=Object(c.a)(Ee,2),Ce=Se[0],je=Se[1],ke=i.useState(!1),Pe=Object(c.a)(ke,2),Te=Pe[0],Me=Pe[1],Ae=i.useState(!1),Le=Object(c.a)(Ae,2),Re=Le[0],Ne=Le[1],Ie=i.useState(!1),De=Object(c.a)(Ie,2),Fe=De[0],ze=De[1],Be=i.useState(!1),Ue=Object(c.a)(Be,2),Ve=Ue[0],He=Ue[1],Ge=N(A,{expandable:!1}),We=Object(c.a)(Ge,2),Ye=We[0],Ke=We[1],Xe=Ye&&!Re,qe=Ke.rows,Ze=void 0===qe?1:qe,Je=i.useMemo((function(){return!Xe||void 0!==Ke.suffix||Ke.onEllipsis||Ke.expandable||ne||he}),[Xe,Ke,ne,he]);Object(m.a)((function(){Ye&&!Je&&(je(Object(E.a)("webkitLineClamp")),Me(Object(E.a)("textOverflow")))}),[Je,Ye]);var Qe=i.useMemo((function(){return!Je&&(1===Ze?Te:Ce)}),[Je,Te,Ce]),$e=Xe&&(Qe?Ve:Fe),et=Xe&&1===Ze&&Qe,tt=Xe&&Ze>1&&Qe,nt=function(e){var t;Ne(!0),null===(t=Ke.onExpand)||void 0===t||t.call(Ke,e)},rt=i.useState(0),ot=Object(c.a)(rt,2),it=ot[0],at=ot[1],ct=function(e){var t;ze(e),Fe!==e&&(null===(t=Ke.onEllipsis)||void 0===t||t.call(Ke,e))};i.useEffect((function(){var e=Z.current;if(Ye&&Qe&&e){var t=tt?e.offsetHeight<e.scrollHeight:e.offsetWidth<e.scrollWidth;Ve!==t&&He(t)}}),[Ye,Qe,M,tt]);var ut={};ut=!0===Ke.tooltip?{title:M}:i.isValidElement(Ke.tooltip)?{title:Ke.tooltip}:"object"===Object(o.a)(Ke.tooltip)?Object(r.a)({title:M},Ke.tooltip):{title:Ke.tooltip};var st=i.useMemo((function(){var e=function(e){return["string","number"].includes(Object(o.a)(e))};if(Ye&&!Qe)return e(M)?M:e(z)?z:e(ut.title)?ut.title:void 0}),[Ye,Qe,z,ut.title,$e]);if(ae)return i.createElement(R,{value:"string"==typeof M?M:"",onSave:function(e){var t;null===(t=re.onChange)||void 0===t||t.call(re,e),le(!1)},onCancel:function(){var e;null===(e=re.onCancel)||void 0===e||e.call(re),le(!1)},onEnd:re.onEnd,prefixCls:Q,className:j,style:k,direction:X,component:D,maxLength:re.maxLength,autoSize:re.autoSize,enterIcon:re.enterIcon});var lt=function(){if(ne){var e=re.icon,t=re.tooltip,n=Object(y.a)(t)[0]||q.edit,r="string"==typeof n?n:"";return se.includes("icon")?i.createElement(S.a,{key:"edit",title:!1===t?"":n},i.createElement(x.a,{ref:J,className:"".concat(Q,"-edit"),onClick:fe,"aria-label":r},e||i.createElement(l.a,{role:"button"}))):null}},ft=function(){if(he){var e=ve.tooltips,t=ve.icon,n=W(e),r=W(t),o=ge?G(n[1],q.copied):G(n[0],q.copy),a=ge?q.copied:q.copy,c="string"==typeof o?o:a;return i.createElement(S.a,{key:"copy",title:o},i.createElement(x.a,{className:p()("".concat(Q,"-copy"),ge&&"".concat(Q,"-copy-success")),onClick:xe,"aria-label":c},ge?G(r[1],i.createElement(u.a,null),!0):G(r[0],i.createElement(s.a,null),!0)))}};return i.createElement(v.a,{onResize:function(e){var t=e.offsetWidth;at(t)},disabled:!Xe||Qe},(function(n){var o;return i.createElement(V,{tooltipProps:ut,enabledEllipsis:Xe,isEllipsis:$e},i.createElement(F,Object(r.a)({className:p()((o={},Object(a.a)(o,"".concat(Q,"-").concat(P),P),Object(a.a)(o,"".concat(Q,"-disabled"),T),Object(a.a)(o,"".concat(Q,"-ellipsis"),Ye),Object(a.a)(o,"".concat(Q,"-single-line"),Xe&&1===Ze),Object(a.a)(o,"".concat(Q,"-ellipsis-single-line"),et),Object(a.a)(o,"".concat(Q,"-ellipsis-multiple-line"),tt),o),j),style:Object(r.a)(Object(r.a)({},k),{WebkitLineClamp:tt?Ze:void 0}),component:D,ref:Object(O.a)(n,Z,t),direction:X,onClick:se.includes("text")?fe:null,"aria-label":st,title:z},$),i.createElement(U,{enabledMeasure:Xe&&!Qe,text:M,rows:Ze,width:it,onEllipsis:ct},(function(t,n){var r=t;return t.length&&n&&st&&(r=i.createElement("span",{key:"show-content","aria-hidden":!0},r)),function(e,t){var n=e.mark,r=e.code,o=e.underline,a=e.delete,c=e.strong,u=e.keyboard,s=e.italic,l=t;function f(e,t){e&&(l=i.createElement(t,{},l))}return f(c,"strong"),f(o,"u"),f(a,"del"),f(r,"code"),f(n,"mark"),f(u,"kbd"),f(s,"i"),l}(e,i.createElement(i.Fragment,null,r,function(e){return[e&&i.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),Ke.suffix,(t=e,[t&&(r=Ke.expandable,o=Ke.symbol,r?(n=o||q.expand,i.createElement("a",{key:"expand",className:"".concat(Q,"-expand"),onClick:nt,"aria-label":q.expand},n)):null),lt(),ft()])];var t,n,r,o}(n)))}))))}))})),K=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},X=function(e,t){var n=e.ellipsis,o=e.rel,a=K(e,["ellipsis","rel"]),c=i.useRef(null);i.useImperativeHandle(t,(function(){return c.current}));var u=Object(r.a)(Object(r.a)({},a),{rel:void 0===o&&"_blank"===a.target?"noopener noreferrer":o});return delete u.navigate,i.createElement(Y,Object(r.a)({},u,{ref:c,ellipsis:!!n,component:"a"}))},q=i.forwardRef(X),Z=function(e,t){return i.createElement(Y,Object(r.a)({ref:t},e,{component:"div"}))},J=i.forwardRef(Z),Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},$=function(e,t){var n=e.ellipsis,a=Q(e,["ellipsis"]),c=i.useMemo((function(){return n&&"object"===Object(o.a)(n)?Object(b.a)(n,["expandable","rows"]):n}),[n]);return i.createElement(Y,Object(r.a)({ref:t},a,{ellipsis:c,component:"span"}))},ee=i.forwardRef($),te=n("CWQg"),ne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},re=Object(te.b)(1,2,3,4,5),oe=function(e,t){var n,o=e.level,a=void 0===o?1:o,c=ne(e,["level"]);return n=-1!==re.indexOf(a)?"h".concat(a):"h1",i.createElement(Y,Object(r.a)({ref:t},c,{component:n}))},ie=i.forwardRef(oe),ae=F;ae.Text=ee,ae.Link=q,ae.Title=ie,ae.Paragraph=J;t.a=ae},wHo0:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("fGyu"),o=n("c9Qg");function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Object(o.a)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),c=null;return i&&!Number.isNaN(a)?c=a:r&&null===c&&(c=0),r&&e.disabled&&(c=null),null!==c&&(c>=0||t&&c<0)}return!1}function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(r.a)(e.querySelectorAll("*")).filter((function(e){return i(e,t)}));return i(e,t)&&n.unshift(e),n}},wIdy:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n("K/oH");function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(t,n,r){var o,i,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a=[],(i="boxCells")in(o=this)?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a;var c=this.boxCells;this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(n/r);for(var u=0;u<this.xCellCount*this.yCellCount;u++)c.push([]);this.boxKeys=[],this.bboxes=[],this.width=t,this.height=n,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/n,this.boxUid=0}var t,n,r;return t=e,(n=[{key:"insert",value:function(e,t,n,r,o){this.forEachCell(t,n,r,o,this.insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(o)}},{key:"query",value:function(e,t,n,r,o){return this.queryHitTest(e,t,n,r,!1,o)}},{key:"hitTest",value:function(e,t,n,r,o){return this.queryHitTest(e,t,n,r,!0,o)}},{key:"insertBoxCell",value:function(e,t,n,r,o,i){this.boxCells[o].push(i)}},{key:"queryHitTest",value:function(e,t,n,r,o,i){if(n<0||e>this.width||r<0||t>this.height)return!o&&[];var a=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(o)return!0;for(var c=0;c<this.boxKeys.length;c++)a.push({key:this.boxKeys[c],x1:this.bboxes[4*c],y1:this.bboxes[4*c+1],x2:this.bboxes[4*c+2],y2:this.bboxes[4*c+3]});return i?a.filter(i):a}var u={hitTest:o,seenUids:{box:{},circle:{}}};return this.forEachCell(e,t,n,r,this.queryCell,a,u,i),o?a.length>0:a}},{key:"queryCell",value:function(e,t,n,r,i,a,c,u){var s=c.seenUids,l=this.boxCells[i];if(null!==l){var f,p=this.bboxes,d=o(l);try{for(d.s();!(f=d.n()).done;){var h=f.value;if(!s.box[h]){s.box[h]=!0;var v=4*h;if(e<=p[v+2]&&t<=p[v+3]&&n>=p[v+0]&&r>=p[v+1]&&(!u||u(this.boxKeys[h]))){if(c.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[h],x1:p[v],y1:p[v+1],x2:p[v+2],y2:p[v+3]})}}}}catch(y){d.e(y)}finally{d.f()}}return!1}},{key:"forEachCell",value:function(e,t,n,r,o,i,a,c){for(var u=this.convertToXCellCoord(e),s=this.convertToYCellCoord(t),l=this.convertToXCellCoord(n),f=this.convertToYCellCoord(r),p=u;p<=l;p++)for(var d=s;d<=f;d++){var h=this.xCellCount*d+p;if(o.call(this,e,t,n,r,h,i,a,c))return}}},{key:"convertToXCellCoord",value:function(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}},{key:"convertToYCellCoord",value:function(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function e(t,n){var r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i=100,(o="viewportPadding")in(r=this)?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,this.width=t,this.height=n,this.viewportPadding=Math.max(t,n),this.grid=new c(t+this.viewportPadding,n+this.viewportPadding,25),this.screenRightBoundary=t+this.viewportPadding,this.screenBottomBoundary=n+this.viewportPadding,this.gridRightBoundary=t+2*this.viewportPadding,this.gridBottomBoundary=n+2*this.viewportPadding}var t,n,o;return t=e,(n=[{key:"placeCollisionBox",value:function(e){var t=e.x1+e.anchorPointX+this.viewportPadding,n=e.y1+e.anchorPointY+this.viewportPadding,r=e.x2+e.anchorPointX+this.viewportPadding,o=e.y2+e.anchorPointY+this.viewportPadding;return!this.isInsideGrid(t,n,r,o)||this.grid.hitTest(t,n,r,o)?{box:[]}:{box:[t,n,r,o]}}},{key:"insertCollisionBox",value:function(e,t){var n={featureIndex:t};this.grid.insert(n,e[0],e[1],e[2],e[3])}},{key:"project",value:function(e,t,n){var o=r.e.fromValues(t,n,0,1),i=r.e.create(),a=r.b.fromValues.apply(r.b,u(e));return r.e.transformMat4(i,o,a),{x:(i[0]/i[3]+1)/2*this.width+this.viewportPadding,y:(-i[1]/i[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(e,t,n,r){return n>=0&&e<this.gridRightBoundary&&r>=0&&t<this.gridBottomBoundary}}])&&l(t.prototype,n),o&&l(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},wPmp:function(e,t,n){"use strict";var r=n("ERkP"),o=n.n(r),i=n("Vgyk"),a=n("Wbzz"),c=function(e){var t=e.description,n=e.lang,r=void 0===n?"":n,c=e.meta,u=void 0===c?[]:c,s=e.title,l=e.titleSuffix,f=Object(a.useStaticQuery)("3000541721").site,p=t||f.siteMetadata.description;return o.a.createElement(i.a,{htmlAttributes:{lang:r},title:s,titleTemplate:"%s | ".concat(l||f.siteMetadata.title),meta:[{name:"description",content:p},{property:"og:title",content:s},{property:"og:description",content:p},{property:"og:image",content:"https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:title",content:s},{name:"twitter:description",content:p},{property:"twitter:image",content:"https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png"}].concat(u)})};c.defaultProps={lang:"en",meta:[],description:""},t.a=c},waID:function(e,t,n){var r=n("cLeC"),o=n("FXyv"),i=n("8+RD");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},wbXe:function(e,t,n){"use strict";var r=n("eT/W"),o=r.Error,i=r.Ok;e.exports=function(e,t){return e.matchWith({Nothing:function(){return o(t)},Just:function(e){var t=e.value;return i(t)}})}},wgY5:function(e,t,n){(function(e){n("tQbP"),e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function u(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,r){return Et(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function v(e){if(null==e._isValid){var t=h(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function y(e){var t=d(NaN);return null!=e?p(h(t),e):h(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var m=r.momentProperties=[],g=!1;function b(e,t){var n,r,o,i=m.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=h(t)),u(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)u(o=t[r=m[n]])||(e[r]=o);return e}function O(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===g&&(g=!0,r.updateOffset(this),g=!1)}function w(e){return e instanceof O||null!=e&&null!=e._isAMomentObject}function _(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var o,i,c,u=[],s=arguments.length;for(i=0;i<s;i++){if(o="","object"==typeof arguments[i]){for(c in o+="\n["+i+"] ",arguments[0])a(arguments[0],c)&&(o+=c+": "+arguments[0][c]+", ");o=o.slice(0,-2)}else o=arguments[i];u.push(o)}_(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,S={};function C(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),S[e]||(_(t),S[e]=!0)}function j(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e,t){var n,r=p({},e);for(n in t)a(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&i(e[n])&&(r[n]=p({},r[n]));return r}function P(e){null!=e&&this.set(e)}function T(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},R={};function N(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(R[e]=o),t&&(R[t[0]]=function(){return T(o.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function I(e,t){return e.isValid()?(t=D(t,e.localeData()),L[t]=L[t]||function(e){var t,n,r,o=e.match(M);for(t=0,n=o.length;t<n;t++)R[o[t]]?o[t]=R[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=j(o[r])?o[r].call(t,e):o[r];return i}}(t),L[t](e)):e.localeData().invalidDate()}function D(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;n>=0&&A.test(e);)e=e.replace(A,r),A.lastIndex=0,n-=1;return e}var F={};function z(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function B(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function U(e){var t,n,r={};for(n in e)a(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var V={};function H(e,t){V[e]=t}function G(e){return e%4==0&&e%100!=0||e%400==0}function W(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Y(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=W(t)),n}function K(e,t){return function(n){return null!=n?(q(this,e,n),r.updateOffset(this,t),this):X(this,e)}}function X(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&G(e.year())&&1===e.month()&&29===e.date()?(n=Y(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),we(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z,J=/\d/,Q=/\d\d/,$=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,ae=/\d{1,4}/,ce=/[+-]?\d{1,6}/,ue=/\d+/,se=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function de(e,t,n){Z[e]=j(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return a(Z,e)?Z[e](t._strict,t._locale):new RegExp(ve(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function ve(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Z={};var ye,me={};function ge(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),s(t)&&(o=function(e,n){n[t]=Y(e)}),r=e.length,n=0;n<r;n++)me[e[n]]=o}function be(e,t){ge(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function Oe(e,t,n){null!=t&&a(me,e)&&me[e](t,n._a,n,e)}function we(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?G(e)?29:28:31-r%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},N("M",["MM",2],"Mo",(function(){return this.month()+1})),N("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),N("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),z("month","M"),H("month",8),de("M",ne),de("MM",ne,Q),de("MMM",(function(e,t){return t.monthsShortRegex(e)})),de("MMMM",(function(e,t){return t.monthsRegex(e)})),ge(["M","MM"],(function(e,t){t[1]=Y(e)-1})),ge(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[1]=o:h(n).invalidMonth=e}));var _e="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),xe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ee=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se=pe,Ce=pe;function je(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=ye.call(this._shortMonthsParse,a))?o:null:-1!==(o=ye.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=ye.call(this._shortMonthsParse,a))||-1!==(o=ye.call(this._longMonthsParse,a))?o:null:-1!==(o=ye.call(this._longMonthsParse,a))||-1!==(o=ye.call(this._shortMonthsParse,a))?o:null}function ke(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Y(t);else if(!s(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),we(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Pe(e){return null!=e?(ke(this,e),r.updateOffset(this,!0),this):X(this,"Month")}function Te(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=d([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=ve(r[t]),o[t]=ve(o[t]);for(t=0;t<24;t++)i[t]=ve(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Me(e){return G(e)?366:365}N("Y",0,0,(function(){var e=this.year();return e<=9999?T(e,4):"+"+e})),N(0,["YY",2],0,(function(){return this.year()%100})),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),z("year","y"),H("year",1),de("Y",se),de("YY",ne,Q),de("YYYY",ae,ee),de("YYYYY",ce,te),de("YYYYYY",ce,te),ge(["YYYYY","YYYYYY"],0),ge("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):Y(e)})),ge("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),ge("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return Y(e)+(Y(e)>68?1900:2e3)};var Ae=K("FullYear",!0);function Le(e,t,n,r,o,i,a){var c;return e<100&&e>=0?(c=new Date(e+400,t,n,r,o,i,a),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,n,r,o,i,a),c}function Re(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ne(e,t,n){var r=7+t-n;return-(7+Re(e,0,r).getUTCDay()-t)%7+r-1}function Ie(e,t,n,r,o){var i,a,c=1+7*(t-1)+(7+n-r)%7+Ne(e,r,o);return c<=0?a=Me(i=e-1)+c:c>Me(e)?(i=e+1,a=c-Me(e)):(i=e,a=c),{year:i,dayOfYear:a}}function De(e,t,n){var r,o,i=Ne(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Fe(o=e.year()-1,t,n):a>Fe(e.year(),t,n)?(r=a-Fe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Fe(e,t,n){var r=Ne(e,t,n),o=Ne(e+1,t,n);return(Me(e)-r+o)/7}function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),H("week",5),H("isoWeek",5),de("w",ne),de("ww",ne,Q),de("W",ne),de("WW",ne,Q),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=Y(e)})),N("d",0,"do","day"),N("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),N("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),N("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),de("d",ne),de("e",ne),de("E",ne),de("dd",(function(e,t){return t.weekdaysMinRegex(e)})),de("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),de("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=Y(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ve="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=pe,Ge=pe,We=pe;function Ye(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ye.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ye.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=ye.call(this._weekdaysParse,a))||-1!==(o=ye.call(this._shortWeekdaysParse,a))||-1!==(o=ye.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ye.call(this._shortWeekdaysParse,a))||-1!==(o=ye.call(this._weekdaysParse,a))||-1!==(o=ye.call(this._minWeekdaysParse,a))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,a))||-1!==(o=ye.call(this._weekdaysParse,a))||-1!==(o=ye.call(this._shortWeekdaysParse,a))?o:null}function Ke(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],c=[],u=[],s=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),r=ve(this.weekdaysMin(n,"")),o=ve(this.weekdaysShort(n,"")),i=ve(this.weekdays(n,"")),a.push(r),c.push(o),u.push(i),s.push(r),s.push(o),s.push(i);a.sort(e),c.sort(e),u.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xe(){return this.hours()%12||12}function qe(e,t){N(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ze(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Xe),N("k",["kk",2],0,(function(){return this.hours()||24})),N("hmm",0,0,(function(){return""+Xe.apply(this)+T(this.minutes(),2)})),N("hmmss",0,0,(function(){return""+Xe.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)})),N("Hmm",0,0,(function(){return""+this.hours()+T(this.minutes(),2)})),N("Hmmss",0,0,(function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)})),qe("a",!0),qe("A",!1),z("hour","h"),H("hour",13),de("a",Ze),de("A",Ze),de("H",ne),de("h",ne),de("k",ne),de("HH",ne,Q),de("hh",ne,Q),de("kk",ne,Q),de("hmm",re),de("hmmss",oe),de("Hmm",re),de("Hmmss",oe),ge(["H","HH"],3),ge(["k","kk"],(function(e,t,n){var r=Y(e);t[3]=24===r?0:r})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[3]=Y(e),h(n).bigHour=!0})),ge("hmm",(function(e,t,n){var r=e.length-2;t[3]=Y(e.substr(0,r)),t[4]=Y(e.substr(r)),h(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=Y(e.substr(0,r)),t[4]=Y(e.substr(r,2)),t[5]=Y(e.substr(o)),h(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var r=e.length-2;t[3]=Y(e.substr(0,r)),t[4]=Y(e.substr(r))})),ge("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=Y(e.substr(0,r)),t[4]=Y(e.substr(r,2)),t[5]=Y(e.substr(o))}));var Je,Qe=K("Hours",!0),$e={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:_e,monthsShort:xe,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:Ve,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function rt(e){return e?e.toLowerCase().replace("_","-"):e}function ot(t){var n=null;if(void 0===et[t]&&void 0!==e&&e&&e.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(t))try{n=Je._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),it(n)}catch(r){et[t]=null}return et[t]}function it(e,t){var n;return e&&((n=u(t)?ct(e):at(e,t))?Je=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Je._abbr}function at(e,t){if(null!==t){var n,r=$e;if(t.abbr=e,null!=et[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new P(k(r,t)),tt[e]&&tt[e].forEach((function(e){at(e.name,e.config)})),it(e),et[e]}return delete et[e],null}function ct(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Je;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=rt(e[i]).split("-")).length,n=(n=rt(e[i+1]))?n.split("-"):null;t>0;){if(r=ot(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&nt(o,n)>=t-1)break;t--}i++}return Je}(e)}function ut(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>we(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var st=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],dt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,vt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function mt(e){var t,n,r,o,i,a,c=e._i,u=st.exec(c)||lt.exec(c),s=pt.length,l=dt.length;if(u){for(h(e).iso=!0,t=0,n=s;t<n;t++)if(pt[t][1].exec(u[1])){o=pt[t][0],r=!1!==pt[t][2];break}if(null==o)return void(e._isValid=!1);if(u[3]){for(t=0,n=l;t<n;t++)if(dt[t][1].exec(u[3])){i=(u[2]||" ")+dt[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(u[4]){if(!ft.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),_t(e)}else e._isValid=!1}function gt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n,r,o,i,a,c,u,s=vt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(s){if(n=s[4],r=s[3],o=s[2],i=s[5],a=s[6],c=s[7],u=[gt(n),xe.indexOf(r),parseInt(o,10),parseInt(i,10),parseInt(a,10)],c&&u.push(parseInt(c,10)),t=u,!function(e,t,n){return!e||Ue.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(s[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return yt[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(s[8],s[9],s[10]),e._d=Re.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Ot(e,t,n){return null!=e?e:null!=t?t:n}function wt(e){var t,n,o,i,a,c=[];if(!e._d){for(o=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,o,i,a,c,u,s;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=Ot(t.GG,e._a[0],De(St(),1,4).year),r=Ot(t.W,1),((o=Ot(t.E,1))<1||o>7)&&(u=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,s=De(St(),i,a),n=Ot(t.gg,e._a[0],s.year),r=Ot(t.w,s.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i),r<1||r>Fe(n,i,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(c=Ie(n,r,o,i,a),e._a[0]=c.year,e._dayOfYear=c.dayOfYear)}(e),null!=e._dayOfYear&&(a=Ot(e._a[0],o[0]),(e._dayOfYear>Me(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Re(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=o[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Re:Le).apply(null,c),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}function _t(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],h(e).empty=!0;var t,n,o,i,a,c,u,s=""+e._i,l=s.length,f=0;for(u=(o=D(e._f,e._locale).match(M)||[]).length,t=0;t<u;t++)i=o[t],(n=(s.match(he(i,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),f+=n.length),R[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),Oe(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-f,s.length>0&&h(e).unusedInput.push(s),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(c=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(c,e._a[0])),wt(e),ut(e)}else bt(e);else mt(e)}function xt(e){var t=e._i,n=e._f;return e._locale=e._locale||ct(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new O(ut(t)):(l(t)?e._d=t:o(n)?function(e){var t,n,r,o,i,a,c=!1,u=e._f.length;if(0===u)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<u;o++)i=0,a=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],_t(t),v(t)&&(a=!0),i+=h(t).charsLeftOver,i+=10*h(t).unusedTokens.length,h(t).score=i,c?i<r&&(r=i,n=t):(null==r||i<r||a)&&(r=i,n=t,a&&(c=!0));p(e,n||t)}(e):n?_t(e):function(e){var t=e._i;u(t)?e._d=new Date(r.now()):l(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ht.exec(e._i);null===t?(mt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),wt(e)):i(t)?function(e){if(!e._d){var t=U(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),wt(e)}}(e):s(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),v(e)||(e._d=null),e))}function Et(e,t,n,r,a){var u,s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&c(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=a,s._l=n,s._i=e,s._f=t,s._strict=r,(u=new O(ut(xt(s))))._nextDay&&(u.add(1,"d"),u._nextDay=void 0),u}function St(e,t,n,r){return Et(e,t,n,r,!1)}r.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Ct=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),jt=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function kt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Pt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Tt(e){var t=U(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,c=t.day||0,u=t.hour||0,s=t.minute||0,l=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,o=Pt.length;for(t in e)if(a(e,t)&&(-1===ye.call(Pt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[Pt[n]]){if(r)return!1;parseFloat(e[Pt[n]])!==Y(e[Pt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+f+1e3*l+6e4*s+1e3*u*60*60,this._days=+c+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=ct(),this._bubble()}function Mt(e){return e instanceof Tt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,t){N(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+T(~~(e/60),2)+t+T(~~e%60,2)}))}Lt("Z",":"),Lt("ZZ",""),de("Z",fe),de("ZZ",fe),ge(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Nt(fe,e)}));var Rt=/([\+\-]|\d\d)/gi;function Nt(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(Rt)||["-",0,0])[1]+Y(n[2]))?0:"+"===n[0]?r:-r}function It(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(w(e)||l(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):St(e).local()}function Dt(e){return-Math.round(e._d.getTimezoneOffset())}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var zt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var n,r,o,i,c,u,l=e,f=null;return Mt(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:s(e)||!isNaN(+e)?(l={},t?l[t]=+e:l.milliseconds=+e):(f=zt.exec(e))?(n="-"===f[1]?-1:1,l={y:0,d:Y(f[2])*n,h:Y(f[3])*n,m:Y(f[4])*n,s:Y(f[5])*n,ms:Y(At(1e3*f[6]))*n}):(f=Bt.exec(e))?(n="-"===f[1]?-1:1,l={y:Vt(f[2],n),M:Vt(f[3],n),w:Vt(f[4],n),d:Vt(f[5],n),h:Vt(f[6],n),m:Vt(f[7],n),s:Vt(f[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(i=St(l.from),c=St(l.to),o=i.isValid()&&c.isValid()?(c=It(c,i),i.isBefore(c)?u=Ht(i,c):((u=Ht(c,i)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(l={}).ms=o.milliseconds,l.M=o.months),r=new Tt(l),Mt(e)&&a(e,"_locale")&&(r._locale=e._locale),Mt(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Vt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ht(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Wt(this,Ut(n,r),e),this}}function Wt(e,t,n,o){var i=t._milliseconds,a=At(t._days),c=At(t._months);e.isValid()&&(o=null==o||o,c&&ke(e,X(e,"Month")+c*n),a&&q(e,"Date",X(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&r.updateOffset(e,a||c))}Ut.fn=Tt.prototype,Ut.invalid=function(){return Ut(NaN)};var Yt=Gt(1,"add"),Kt=Gt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function qt(e){return w(e)||l(e)||Xt(e)||s(e)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!s(t)&&Xt(e)})).length),t&&n}(e)||function(e){var t,n,r=i(e)&&!c(e),o=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=u.length;for(t=0;t<s;t+=1)n=u[t],o=o||a(e,n);return r&&o}(e)||null==e}function Zt(e){var t,n=i(e)&&!c(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)r=r||a(e,o[t]);return n&&r}function Jt(e,t){if(e.date()<t.date())return-Jt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ct(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $t=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function en(){return this._locale}function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function an(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(ve(a[e].name)),n.push(ve(a[e].abbr)),o.push(ve(a[e].narrow)),i.push(ve(a[e].name)),i.push(ve(a[e].abbr)),i.push(ve(a[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function cn(e,t){N(0,[e,e.length],0,t)}function un(e,t,n,r,o){var i;return null==e?De(this,r,o).year:(t>(i=Fe(e,r,o))&&(t=i),sn.call(this,e,t,n,r,o))}function sn(e,t,n,r,o){var i=Ie(e,t,n,r,o),a=Re(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),de("N",on),de("NN",on),de("NNN",on),de("NNNN",(function(e,t){return t.erasNameRegex(e)})),de("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?h(n).era=o:h(n).invalidEra=e})),de("y",ue),de("yy",ue),de("yyy",ue),de("yyyy",ue),de("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),ge(["y","yy","yyy","yyyy"],0),ge(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),N(0,["gg",2],0,(function(){return this.weekYear()%100})),N(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),de("G",se),de("g",se),de("GG",ne,Q),de("gg",ne,Q),de("GGGG",ae,ee),de("gggg",ae,ee),de("GGGGG",ce,te),de("ggggg",ce,te),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=Y(e)})),be(["gg","GG"],(function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)})),N("Q",0,"Qo","quarter"),z("quarter","Q"),H("quarter",7),de("Q",J),ge("Q",(function(e,t){t[1]=3*(Y(e)-1)})),N("D",["DD",2],"Do","date"),z("date","D"),H("date",9),de("D",ne),de("DD",ne,Q),de("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],2),ge("Do",(function(e,t){t[2]=Y(e.match(ne)[0])}));var ln=K("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),H("dayOfYear",4),de("DDD",ie),de("DDDD",$),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Y(e)})),N("m",["mm",2],0,"minute"),z("minute","m"),H("minute",14),de("m",ne),de("mm",ne,Q),ge(["m","mm"],4);var fn=K("Minutes",!1);N("s",["ss",2],0,"second"),z("second","s"),H("second",15),de("s",ne),de("ss",ne,Q),ge(["s","ss"],5);var pn,dn,hn=K("Seconds",!1);for(N("S",0,0,(function(){return~~(this.millisecond()/100)})),N(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),N(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),N(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),N(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),N(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),N(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),z("millisecond","ms"),H("millisecond",16),de("S",ie,J),de("SS",ie,Q),de("SSS",ie,$),pn="SSSS";pn.length<=9;pn+="S")de(pn,ue);function vn(e,t){t[6]=Y(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ge(pn,vn);dn=K("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var yn=O.prototype;function mn(e){return e}yn.add=Yt,yn.calendar=function(e,t){1===arguments.length&&(arguments[0]?qt(arguments[0])?(e=arguments[0],t=void 0):Zt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||St(),o=It(n,this).startOf("day"),i=r.calendarFormat(this,o)||"sameElse",a=t&&(j(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,St(n)))},yn.clone=function(){return new O(this)},yn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=It(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":i=Jt(this,r)/12;break;case"month":i=Jt(this,r);break;case"quarter":i=Jt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:W(i)},yn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},yn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=I(this,e);return this.localeData().postformat(t)},yn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.fromNow=function(e){return this.from(St(),e)},yn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.toNow=function(e){return this.to(St(),e)},yn.get=function(e){return j(this[e=B(e)])?this[e]():this},yn.invalidAt=function(){return h(this).overflow},yn.isAfter=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},yn.isBefore=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},yn.isBetween=function(e,t,n,r){var o=w(e)?e:St(e),i=w(t)?t:St(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n)))},yn.isSame=function(e,t){var n,r=w(e)?e:St(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},yn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},yn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},yn.isValid=function(){return v(this)},yn.lang=$t,yn.locale=Qt,yn.localeData=en,yn.max=jt,yn.min=Ct,yn.parsingFlags=function(){return p({},h(this))},yn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:V[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=U(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(j(this[e=B(e)]))return this[e](t);return this},yn.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},yn.subtract=Kt,yn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},yn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},yn.toDate=function(){return new Date(this.valueOf())},yn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?I(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):j(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(n,"Z")):I(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(yn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yn.toJSON=function(){return this.isValid()?this.toISOString():null},yn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yn.unix=function(){return Math.floor(this.valueOf()/1e3)},yn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},yn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},yn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},yn.eraYear=function(){var e,t,n,o,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,o=this.clone().startOf("day").valueOf(),i[e].since<=o&&o<=i[e].until||i[e].until<=o&&o<=i[e].since)return(this.year()-r(i[e].since).year())*n+i[e].offset;return this.year()},yn.year=Ae,yn.isLeapYear=function(){return G(this.year())},yn.weekYear=function(e){return un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},yn.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},yn.quarter=yn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},yn.month=Pe,yn.daysInMonth=function(){return we(this.year(),this.month())},yn.week=yn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},yn.isoWeek=yn.isoWeeks=function(e){var t=De(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},yn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},yn.weeksInWeekYear=function(){var e=this.localeData()._week;return Fe(this.weekYear(),e.dow,e.doy)},yn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},yn.isoWeeksInISOWeekYear=function(){return Fe(this.isoWeekYear(),1,4)},yn.date=ln,yn.day=yn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},yn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},yn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},yn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},yn.hour=yn.hours=Qe,yn.minute=yn.minutes=fn,yn.second=yn.seconds=hn,yn.millisecond=yn.milliseconds=dn,yn.utcOffset=function(e,t,n){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Nt(fe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=Dt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?Wt(this,Ut(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Dt(this)},yn.utc=function(e){return this.utcOffset(0,e)},yn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dt(this),"m")),this},yn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Nt(le,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},yn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},yn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yn.isLocal=function(){return!!this.isValid()&&!this._isUTC},yn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yn.isUtc=Ft,yn.isUTC=Ft,yn.zoneAbbr=function(){return this._isUTC?"UTC":""},yn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yn.dates=x("dates accessor is deprecated. Use date instead.",ln),yn.months=x("months accessor is deprecated. Use month instead",Pe),yn.years=x("years accessor is deprecated. Use year instead",Ae),yn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),yn.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=xt(t))._a?(e=t._isUTC?d(t._a):St(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&Y(e[r])!==Y(t[r]))&&a++;return a+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var gn=P.prototype;function bn(e,t,n,r){var o=ct(),i=d().set(r,t);return o[n](i,e)}function On(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=bn(e,r,n,"month");return o}function wn(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var o,i=ct(),a=e?i._week.dow:0,c=[];if(null!=n)return bn(t,(n+a)%7,r,"day");for(o=0;o<7;o++)c[o]=bn(t,(o+a)%7,r,"day");return c}gn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return j(r)?r.call(t,n):r},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(M).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=mn,gn.postformat=mn,gn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return j(o)?o(e,t,n,r):o.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return j(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)a(e,n)&&(j(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.eras=function(e,t){var n,o,i,a=this._eras||ct("en")._eras;for(n=0,o=a.length;n<o;++n){switch(typeof a[n].since){case"string":i=r(a[n].since).startOf("day"),a[n].since=i.valueOf()}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=r(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}}return a},gn.erasParse=function(e,t,n){var r,o,i,a,c,u=this.eras();for(e=e.toUpperCase(),r=0,o=u.length;r<o;++r)if(i=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),c=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(i===e)return u[r];break;case"NNNNN":if(c===e)return u[r]}else if([i,a,c].indexOf(e)>=0)return u[r]},gn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},gn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},gn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},gn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},gn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ee).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ee.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return je.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},gn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Te.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Ce),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Te.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Se),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return De(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ze(n,this._week.dow):e?n[e.day()]:n},gn.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ye.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=We),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Y(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=x("moment.lang is deprecated. Use moment.locale instead.",it),r.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ct);var _n=Math.abs;function xn(e,t,n,r){var o=Ut(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function En(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function Cn(e){return 146097*e/4800}function jn(e){return function(){return this.as(e)}}var kn=jn("ms"),Pn=jn("s"),Tn=jn("m"),Mn=jn("h"),An=jn("d"),Ln=jn("w"),Rn=jn("M"),Nn=jn("Q"),In=jn("y");function Dn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=Dn("milliseconds"),zn=Dn("seconds"),Bn=Dn("minutes"),Un=Dn("hours"),Vn=Dn("days"),Hn=Dn("months"),Gn=Dn("years"),Wn=Math.round,Yn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Kn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Xn=Math.abs;function qn(e){return(e>0)-(e<0)||+e}function Zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,c,u=Xn(this._milliseconds)/1e3,s=Xn(this._days),l=Xn(this._months),f=this.asSeconds();return f?(e=W(u/60),t=W(e/60),u%=60,e%=60,n=W(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",i=qn(this._months)!==qn(f)?"-":"",a=qn(this._days)!==qn(f)?"-":"",c=qn(this._milliseconds)!==qn(f)?"-":"",o+"P"+(n?i+n+"Y":"")+(l?i+l+"M":"")+(s?a+s+"D":"")+(t||e||u?"T":"")+(t?c+t+"H":"")+(e?c+e+"M":"")+(u?c+r+"S":"")):"P0D"}var Jn=Tt.prototype;return Jn.isValid=function(){return this._isValid},Jn.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},Jn.add=function(e,t){return xn(this,e,t,1)},Jn.subtract=function(e,t){return xn(this,e,t,-1)},Jn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Sn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Cn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Jn.asMilliseconds=kn,Jn.asSeconds=Pn,Jn.asMinutes=Tn,Jn.asHours=Mn,Jn.asDays=An,Jn.asWeeks=Ln,Jn.asMonths=Rn,Jn.asQuarters=Nn,Jn.asYears=In,Jn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Y(this._months/12):NaN},Jn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,c=this._months,u=this._data;return i>=0&&a>=0&&c>=0||i<=0&&a<=0&&c<=0||(i+=864e5*En(Cn(c)+a),a=0,c=0),u.milliseconds=i%1e3,e=W(i/1e3),u.seconds=e%60,t=W(e/60),u.minutes=t%60,n=W(t/60),u.hours=n%24,a+=W(n/24),o=W(Sn(a)),c+=o,a-=En(Cn(o)),r=W(c/12),c%=12,u.days=a,u.months=c,u.years=r,this},Jn.clone=function(){return Ut(this)},Jn.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},Jn.milliseconds=Fn,Jn.seconds=zn,Jn.minutes=Bn,Jn.hours=Un,Jn.days=Vn,Jn.weeks=function(){return W(this.days()/7)},Jn.months=Hn,Jn.years=Gn,Jn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=Yn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},Yn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=Ut(e).abs(),i=Wn(o.as("s")),a=Wn(o.as("m")),c=Wn(o.as("h")),u=Wn(o.as("d")),s=Wn(o.as("M")),l=Wn(o.as("w")),f=Wn(o.as("y")),p=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||c<=1&&["h"]||c<n.h&&["hh",c]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(p=p||l<=1&&["w"]||l<n.w&&["ww",l]),(p=p||s<=1&&["M"]||s<n.M&&["MM",s]||f<=1&&["y"]||["yy",f])[2]=t,p[3]=+e>0,p[4]=r,Kn.apply(null,p)}(this,!o,i,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},Jn.toISOString=Zn,Jn.toString=Zn,Jn.toJSON=Zn,Jn.locale=Qt,Jn.localeData=en,Jn.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zn),Jn.lang=$t,N("X",0,0,"unix"),N("x",0,0,"valueOf"),de("x",se),de("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date(Y(e))})),r.version="2.29.4",t=St,r.fn=yn,r.min=function(){var e=[].slice.call(arguments,0);return kt("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return kt("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=d,r.unix=function(e){return St(1e3*e)},r.months=function(e,t){return On(e,t,"months")},r.isDate=l,r.locale=it,r.invalid=y,r.duration=Ut,r.isMoment=w,r.weekdays=function(e,t,n){return wn(e,t,n,"weekdays")},r.parseZone=function(){return St.apply(null,arguments).parseZone()},r.localeData=ct,r.isDuration=Mt,r.monthsShort=function(e,t){return On(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return wn(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,r,o=$e;null!=et[e]&&null!=et[e].parentLocale?et[e].set(k(et[e]._config,t)):(null!=(r=ot(e))&&(o=r._config),t=k(o,t),null==r&&(t.abbr=e),(n=new P(t)).parentLocale=et[e],et[e]=n),it(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===it()&&it(e)):null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return E(et)},r.weekdaysShort=function(e,t,n){return wn(e,t,n,"weekdaysShort")},r.normalizeUnits=B,r.relativeTimeRounding=function(e){return void 0===e?Wn:"function"==typeof e&&(Wn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Yn[e]&&(void 0===t?Yn[e]:(Yn[e]=t,"s"===e&&(Yn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=yn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n("aYSr")(e))},wh7w:function(e,t,n){"use strict";var r=n("Go5w");var o=function(){this.__data__=new r.a,this.size=0};var i=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var a=function(e){return this.__data__.get(e)};var c=function(e){return this.__data__.has(e)},u=n("OJPH"),s=n("CYhr");var l=function(e,t){var n=this.__data__;if(n instanceof r.a){var o=n.__data__;if(!u.a||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new s.a(o)}return n.set(e,t),this.size=n.size,this};function f(e){var t=this.__data__=new r.a(e);this.size=t.size}f.prototype.clear=o,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=c,f.prototype.set=l;var p=f,d=n("XhxR");var h=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},v=n("aPP9");var y=function(e,t,n,r,o,i){var a=1&n,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var s=i.get(e),l=i.get(t);if(s&&l)return s==t&&l==e;var f=-1,p=!0,y=2&n?new d.a:void 0;for(i.set(e,t),i.set(t,e);++f<c;){var m=e[f],g=t[f];if(r)var b=a?r(g,m,f,t,e,i):r(m,g,f,e,t,i);if(void 0!==b){if(b)continue;p=!1;break}if(y){if(!h(t,(function(e,t){if(!Object(v.a)(y,t)&&(m===e||o(m,e,n,r,i)))return y.push(t)}))){p=!1;break}}else if(m!==g&&!o(m,g,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p},m=n("GAvS"),g=n("fw2E").a.Uint8Array,b=n("HVAe");var O=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var w=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},_=m.a?m.a.prototype:void 0,x=_?_.valueOf:void 0;var E=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new g(e),new g(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Object(b.a)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var c=O;case"[object Set]":var u=1&r;if(c||(c=w),e.size!=t.size&&!u)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var l=y(c(e),c(t),r,o,i,a);return a.delete(e),l;case"[object Symbol]":if(x)return x.call(e)==x.call(t)}return!1},S=n("gFym"),C=n("SEb4");var j=function(e,t,n){var r=t(e);return Object(C.a)(e)?r:Object(S.a)(r,n(e))},k=n("aGtQ");var P=function(){return[]},T=Object.prototype.propertyIsEnumerable,M=Object.getOwnPropertySymbols,A=M?function(e){return null==e?[]:(e=Object(e),Object(k.a)(M(e),(function(t){return T.call(e,t)})))}:P,L=n("FoV5");var R=function(e){return j(e,L.a,A)},N=Object.prototype.hasOwnProperty;var I=function(e,t,n,r,o,i){var a=1&n,c=R(e),u=c.length;if(u!=R(t).length&&!a)return!1;for(var s=u;s--;){var l=c[s];if(!(a?l in t:N.call(t,l)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var d=!0;i.set(e,t),i.set(t,e);for(var h=a;++s<u;){var v=e[l=c[s]],y=t[l];if(r)var m=a?r(y,v,l,t,e,i):r(v,y,l,e,t,i);if(!(void 0===m?v===y||o(v,y,n,r,i):m)){d=!1;break}h||(h="constructor"==l)}if(d&&!h){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(d=!1)}return i.delete(e),i.delete(t),d},D=n("EaxY"),F=n("TPB+"),z=n("HuQ3"),B="[object Object]",U=Object.prototype.hasOwnProperty;var V=function(e,t,n,r,o,i){var a=Object(C.a)(e),c=Object(C.a)(t),u=a?"[object Array]":Object(D.a)(e),s=c?"[object Array]":Object(D.a)(t),l=(u="[object Arguments]"==u?B:u)==B,f=(s="[object Arguments]"==s?B:s)==B,d=u==s;if(d&&Object(F.a)(e)){if(!Object(F.a)(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new p),a||Object(z.a)(e)?y(e,t,n,r,o,i):E(e,t,u,n,r,o,i);if(!(1&n)){var h=l&&U.call(e,"__wrapped__"),v=f&&U.call(t,"__wrapped__");if(h||v){var m=h?e.value():e,g=v?t.value():t;return i||(i=new p),o(m,g,n,r,i)}}return!!d&&(i||(i=new p),I(e,t,n,r,o,i))},H=n("gfy7");var G=function e(t,n,r,o,i){return t===n||(null==t||null==n||!Object(H.a)(t)&&!Object(H.a)(n)?t!=t&&n!=n:V(t,n,r,o,e,i))};var W=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var c=n[o];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<i;){var u=(c=n[o])[0],s=e[u],l=c[1];if(a&&c[2]){if(void 0===s&&!(u in e))return!1}else{var f=new p;if(r)var d=r(s,l,u,e,t,f);if(!(void 0===d?G(l,s,3,r,f):d))return!1}}return!0},Y=n("gDU4");var K=function(e){return e==e&&!Object(Y.a)(e)};var X=function(e){for(var t=Object(L.a)(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,K(o)]}return t};var q=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};var Z=function(e){var t=X(e);return 1==t.length&&t[0][2]?q(t[0][0],t[0][1]):function(n){return n===e||W(n,e,t)}},J=n("r6MD");var Q=function(e,t){return null!=e&&t in Object(e)},$=n("gl7v"),ee=n("PYp2"),te=n("E2Zb"),ne=n("FT6E"),re=n("1HDK");var oe=function(e,t,n){for(var r=-1,o=(t=Object($.a)(t,e)).length,i=!1;++r<o;){var a=Object(re.a)(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Object(ne.a)(o)&&Object(te.a)(a,o)&&(Object(C.a)(e)||Object(ee.a)(e))};var ie=function(e,t){return null!=e&&oe(e,t,Q)},ae=n("Dot1");var ce=function(e,t){return Object(ae.a)(e)&&K(t)?q(Object(re.a)(e),t):function(n){var r=Object(J.a)(n,e);return void 0===r&&r===t?ie(n,e):G(t,r,3)}},ue=n("KpjL"),se=n("3A0n"),le=n("p8C9");var fe=function(e){return function(t){return Object(le.a)(t,e)}};var pe=function(e){return Object(ae.a)(e)?Object(se.a)(Object(re.a)(e)):fe(e)};t.a=function(e){return"function"==typeof e?e:null==e?ue.a:"object"==typeof e?Object(C.a)(e)?ce(e[0],e[1]):Z(e):pe(e)}},whJP:function(e,t,n){"use strict";var r=n("4wDe"),o=n("zjfJ"),i=n("cxan"),a=n("zygG"),c=n("fGyu"),u=n("O94r"),s=n.n(u),l=n("UfwH"),f=n("MSM+"),p=n("WSTu"),d=n("ERkP"),h=n("H84U"),v=n("caoh"),y=n("3Nzz"),m=n("ihLV"),g=n("ATYA"),b=n("9fIP"),O=n("MMYH"),w=n("8K1b"),_=n("AqVP"),x=n("+RZ0"),E=n("0n0R"),S=n("CWQg"),C=Object(S.a)("text","input");var j=function(e){Object(w.a)(n,e);var t=Object(_.a)(n);function n(){return Object(b.a)(this,n),t.apply(this,arguments)}return Object(O.a)(n,[{key:"renderClearIcon",value:function(e){var t,n=this.props,r=n.value,i=n.disabled,a=n.readOnly,c=n.handleReset,u=n.suffix,l=!i&&!a&&r,f="".concat(e,"-clear-icon");return d.createElement(x.a,{onClick:c,onMouseDown:function(e){return e.preventDefault()},className:s()((t={},Object(o.a)(t,"".concat(f,"-hidden"),!l),Object(o.a)(t,"".concat(f,"-has-suffix"),!!u),t),f),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(e,t,n){var r,i=this.props,a=i.value,c=i.allowClear,u=i.className,l=i.style,f=i.direction,p=i.bordered,h=i.hidden,v=i.status,y=n.status,m=n.hasFeedback;if(!c)return Object(E.a)(t,{value:a});var b,O=s()("".concat(e,"-affix-wrapper"),"".concat(e,"-affix-wrapper-textarea-with-clear-btn"),Object(g.b)("".concat(e,"-affix-wrapper"),Object(g.a)(y,v),m),(r={},Object(o.a)(r,"".concat(e,"-affix-wrapper-rtl"),"rtl"===f),Object(o.a)(r,"".concat(e,"-affix-wrapper-borderless"),!p),Object(o.a)(r,"".concat(u),!((b=this.props).addonBefore||b.addonAfter)&&u),r));return d.createElement("span",{className:O,style:l,hidden:h},Object(E.a)(t,{style:null,value:a}),this.renderClearIcon(e))}},{key:"render",value:function(){var e=this;return d.createElement(m.b.Consumer,null,(function(t){var n=e.props,r=n.prefixCls,o=n.inputType,i=n.element;if(o===C[0])return e.renderTextAreaWithClearIcon(r,i,t)}))}}]),n}(d.Component),k=n("mh/l"),P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function T(e,t){return Object(c.a)(e||"").slice(0,t).join("")}function M(e,t,n,r){var o=n;return e?o=T(n,r):Object(c.a)(t||"").length<n.length&&Object(c.a)(n||"").length>r&&(o=t),o}var A=d.forwardRef((function(e,t){var n,u=e.prefixCls,b=e.bordered,O=void 0===b||b,w=e.showCount,_=void 0!==w&&w,x=e.maxLength,E=e.className,S=e.style,C=e.size,A=e.disabled,L=e.onCompositionStart,R=e.onCompositionEnd,N=e.onChange,I=e.status,D=P(e,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","status"]),F=d.useContext(h.b),z=F.getPrefixCls,B=F.direction,U=d.useContext(y.b),V=d.useContext(v.b),H=A||V,G=d.useContext(m.b),W=G.status,Y=G.hasFeedback,K=G.isFormItemInput,X=G.feedbackIcon,q=Object(g.a)(W,I),Z=d.useRef(null),J=d.useRef(null),Q=d.useState(!1),$=Object(a.a)(Q,2),ee=$[0],te=$[1],ne=d.useRef(),re=d.useRef(0),oe=Object(f.a)(D.defaultValue,{value:D.value}),ie=Object(a.a)(oe,2),ae=ie[0],ce=ie[1],ue=D.hidden,se=function(e,t){void 0===D.value&&(ce(e),null==t||t())},le=Number(x)>0,fe=z("input",u);d.useImperativeHandle(t,(function(){var e;return{resizableTextArea:null===(e=Z.current)||void 0===e?void 0:e.resizableTextArea,focus:function(e){var t,n;Object(k.d)(null===(n=null===(t=Z.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:function(){var e;return null===(e=Z.current)||void 0===e?void 0:e.blur()}}}));var pe=d.createElement(l.a,Object(i.a)({},Object(p.a)(D,["allowClear"]),{disabled:H,className:s()((n={},Object(o.a)(n,"".concat(fe,"-borderless"),!O),Object(o.a)(n,E,E&&!_),Object(o.a)(n,"".concat(fe,"-sm"),"small"===U||"small"===C),Object(o.a)(n,"".concat(fe,"-lg"),"large"===U||"large"===C),n),Object(g.b)(fe,q)),style:_?void 0:S,prefixCls:fe,onCompositionStart:function(e){te(!0),ne.current=ae,re.current=e.currentTarget.selectionStart,null==L||L(e)},onChange:function(e){var t=e.target.value;!ee&&le&&(t=M(e.target.selectionStart>=x+1||e.target.selectionStart===t.length||!e.target.selectionStart,ae,t,x));se(t),Object(k.c)(e.currentTarget,e,N,t)},onCompositionEnd:function(e){var t;te(!1);var n=e.currentTarget.value;le&&(n=M(re.current>=x+1||re.current===(null===(t=ne.current)||void 0===t?void 0:t.length),ne.current,n,x));n!==ae&&(se(n),Object(k.c)(e.currentTarget,e,N,n)),null==R||R(e)},ref:Z})),de=Object(k.b)(ae);ee||!le||null!==D.value&&void 0!==D.value||(de=T(de,x));var he=d.createElement(j,Object(i.a)({disabled:H},D,{prefixCls:fe,direction:B,inputType:"text",value:de,element:pe,handleReset:function(e){var t,n,r;se(""),null===(t=Z.current)||void 0===t||t.focus(),Object(k.c)(null===(r=null===(n=Z.current)||void 0===n?void 0:n.resizableTextArea)||void 0===r?void 0:r.textArea,e,N)},ref:J,bordered:O,status:I,style:_?void 0:S}));if(_||Y){var ve,ye=Object(c.a)(de).length,me="";return me="object"===Object(r.a)(_)?_.formatter({count:ye,maxLength:x}):"".concat(ye).concat(le?" / ".concat(x):""),d.createElement("div",{hidden:ue,className:s()("".concat(fe,"-textarea"),(ve={},Object(o.a)(ve,"".concat(fe,"-textarea-rtl"),"rtl"===B),Object(o.a)(ve,"".concat(fe,"-textarea-show-count"),_),Object(o.a)(ve,"".concat(fe,"-textarea-in-form-item"),K),ve),Object(g.b)("".concat(fe,"-textarea"),q,Y),E),style:S,"data-count":me},he,Y&&d.createElement("span",{className:"".concat(fe,"-textarea-suffix")},X))}return he}));t.a=A},"wjX+":function(e,t,n){var r;n("tQbP"),function(o,i,a,c){"use strict";var u,s="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,l="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram),f=s||l,p=["","webkit","Moz","MS","ms","o"],d=f?"":i.createElement("div"),h=Math.round,v=Math.abs,y=Date.now;function m(e,t,n){return setTimeout(E(e,n),t)}function g(e,t,n){return!!Array.isArray(e)&&(b(e,n[t],n),!0)}function b(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function O(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),e.apply(this,arguments)}}u="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var w=O((function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&void 0===e[r[o]])&&(e[r[o]]=t[r[o]]),o++;return e}),"extend","Use `assign`."),_=O((function(e,t){return w(e,t,!0)}),"merge","Use `assign`.");function x(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&u(r,n)}function E(e,t){return function(){return e.apply(t,arguments)}}function S(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function C(e,t){return void 0===e?t:e}function j(e,t,n){b(M(t),(function(t){e.addEventListener(t,n,!1)}))}function k(e,t,n){b(M(t),(function(t){e.removeEventListener(t,n,!1)}))}function P(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function T(e,t){return e.indexOf(t)>-1}function M(e){return e.trim().split(/\s+/g)}function A(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function L(e){return Array.prototype.slice.call(e,0)}function R(e,t,n){for(var r=[],o=[],i=0;i<e.length;){var a=t?e[i][t]:e[i];A(o,a)<0&&r.push(e[i]),o[i]=a,i++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function N(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i<p.length;){if((r=(n=p[i])?n+o:t)in e)return r;i++}}var I=1;function D(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var F="ontouchstart"in o,z=void 0!==N(o,"PointerEvent"),B=F&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),U=["x","y"],V=["clientX","clientY"];function H(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){S(e.options.enable,[e])&&n.handler(t)},this.init()}function G(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,i=1&t&&r-o==0,a=12&t&&r-o==0;n.isFirst=!!i,n.isFinal=!!a,i&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=W(t));o>1&&!n.firstMultiple?n.firstMultiple=W(t):1===o&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,c=a?a.center:i.center,u=t.center=Y(r);t.timeStamp=y(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=Z(c,u),t.distance=q(c,u),function(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},i=e.prevInput||{};1!==t.eventType&&4!==i.eventType||(o=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}(n,t),t.offsetDirection=X(t.deltaX,t.deltaY);var s=K(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=s.x,t.overallVelocityY=s.y,t.overallVelocity=v(s.x)>v(s.y)?s.x:s.y,t.scale=a?(l=a.pointers,f=r,q(f[0],f[1],V)/q(l[0],l[1],V)):1,t.rotation=a?function(e,t){return Z(t[1],t[0],V)+Z(e[1],e[0],V)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,i,a=e.lastInterval||t,c=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(c>25||void 0===a.velocity)){var u=t.deltaX-a.deltaX,s=t.deltaY-a.deltaY,l=K(c,u,s);r=l.x,o=l.y,n=v(l.x)>v(l.y)?l.x:l.y,i=X(u,s),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,i=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=i}(n,t);var l,f;var p=e.element;P(t.srcEvent.target,p)&&(p=t.srcEvent.target);t.target=p}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function W(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:y(),pointers:t,center:Y(t),deltaX:e.deltaX,deltaY:e.deltaY}}function Y(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,r=0,o=0;o<t;)n+=e[o].clientX,r+=e[o].clientY,o++;return{x:h(n/t),y:h(r/t)}}function K(e,t,n){return{x:t/e||0,y:n/e||0}}function X(e,t){return e===t?1:v(e)>=v(t)?e<0?2:4:t<0?8:16}function q(e,t,n){n||(n=U);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function Z(e,t,n){n||(n=U);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&j(this.element,this.evEl,this.domHandler),this.evTarget&&j(this.target,this.evTarget,this.domHandler),this.evWin&&j(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(D(this.element),this.evWin,this.domHandler)}};var J={mousedown:1,mousemove:2,mouseup:4};function Q(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,H.apply(this,arguments)}x(Q,H,{handler:function(e){var t=J[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var $={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ee={2:"touch",3:"pen",4:"mouse",5:"kinect"},te="pointerdown",ne="pointermove pointerup pointercancel";function re(){this.evEl=te,this.evWin=ne,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}f||!o.MSPointerEvent||o.PointerEvent||(te="MSPointerDown",ne="MSPointerMove MSPointerUp MSPointerCancel"),x(re,H,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=$[r],i=ee[e.pointerType]||e.pointerType,a="touch"==i,c=A(t,e.pointerId,"pointerId");1&o&&(0===e.button||a)?c<0&&(t.push(e),c=t.length-1):12&o&&(n=!0),c<0||(t[c]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(c,1))}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ie(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,H.apply(this,arguments)}function ae(e,t){var n=L(e.touches),r=L(e.changedTouches);return 12&t&&(n=R(n.concat(r),"identifier",!0)),[n,r]}x(ie,H,{handler:function(e){var t=oe[e.type];if(1===t&&(this.started=!0),this.started){var n=ae.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var ce={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ue(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},H.apply(this,arguments)}function se(e,t){var n=L(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,a=L(e.changedTouches),c=[],u=this.target;if(i=n.filter((function(e){return P(e.target,u)})),1===t)for(o=0;o<i.length;)r[i[o].identifier]=!0,o++;for(o=0;o<a.length;)r[a[o].identifier]&&c.push(a[o]),12&t&&delete r[a[o].identifier],o++;return c.length?[R(i.concat(c),"identifier",!0),c]:void 0}x(ue,H,{handler:function(e){var t=ce[e.type],n=se.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});function le(){H.apply(this,arguments);var e=E(this.handler,this);this.touch=new ue(this.manager,e),this.mouse=new Q(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function fe(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,pe.call(this,t)):12&e&&pe.call(this,t)}function pe(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function de(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var o=this.lastTouches[r],i=Math.abs(t-o.x),a=Math.abs(n-o.y);if(i<=25&&a<=25)return!0}return!1}x(le,H,{handler:function(e,t,n){var r="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)fe.call(this,t,n);else if(o&&de.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var he=f?void 0:N(d.style,"touchAction"),ve=void 0!==he,ye=function(){if(!ve)return!1;var e={};if(f)return e;var t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||o.CSS.supports("touch-action",n)})),e}();function me(e,t){this.manager=e,this.set(t)}me.prototype={set:function(e){"compute"==e&&(e=this.compute()),ve&&this.manager.element.style&&ye[e]&&(this.manager.element.style[he]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return b(this.manager.recognizers,(function(t){S(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(T(e,"none"))return"none";var t=T(e,"pan-x"),n=T(e,"pan-y");if(t&&n)return"none";if(t||n)return t?"pan-x":"pan-y";if(T(e,"manipulation"))return"manipulation";return"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,o=T(r,"none")&&!ye.none,i=T(r,"pan-y")&&!ye["pan-y"],a=T(r,"pan-x")&&!ye["pan-x"];if(o){var c=1===e.pointers.length,u=e.distance<2,s=e.deltaTime<250;if(c&&u&&s)return}if(!a||!i)return o||i&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function ge(e){this.options=u({},this.defaults,e||{}),this.id=I++,this.manager=null,this.options.enable=C(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function be(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Oe(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function we(e,t){var n=t.manager;return n?n.get(e):e}function _e(){ge.apply(this,arguments)}function xe(){_e.apply(this,arguments),this.pX=null,this.pY=null}function Ee(){_e.apply(this,arguments)}function Se(){ge.apply(this,arguments),this._timer=null,this._input=null}function Ce(){_e.apply(this,arguments)}function je(){_e.apply(this,arguments)}function ke(){ge.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Pe(e,t){return(t=t||{}).recognizers=C(t.recognizers,Pe.defaults.preset),new Te(e,t)}ge.prototype={defaults:{},set:function(e){return u(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(g(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=we(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return g(e,"dropRecognizeWith",this)||(e=we(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(g(e,"requireFailure",this))return this;var t=this.requireFail;return-1===A(t,e=we(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(g(e,"dropRequireFailure",this))return this;e=we(e,this);var t=A(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+be(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+be(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=u({},e);if(!S(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},x(_e,ge,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,o=this.attrTest(e);return r&&(8&n||!o)?16|t:r||o?4&n?8|t:2&t?4|t:2:32}}),x(xe,_e,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,o=e.direction,i=e.deltaX,a=e.deltaY;return o&t.direction||(6&t.direction?(o=0===i?1:i<0?2:4,n=i!=this.pX,r=Math.abs(e.deltaX)):(o=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return _e.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Oe(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),x(Ee,_e,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),x(Se,ge,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=m((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=y(),this.manager.emit(this.options.event,this._input)))}}),x(Ce,_e,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),x(je,_e,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return xe.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&v(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Oe(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),x(ke,ge,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&o&&n){if(4!=e.eventType)return this.failTimeout();var i=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||q(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&i?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=m((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=m((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Pe.VERSION="2.0.7",Pe.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Ce,{enable:!1}],[Ee,{enable:!1},["rotate"]],[je,{direction:6}],[xe,{direction:6},["swipe"]],[ke],[ke,{event:"doubletap",taps:2},["tap"]],[Se]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Te(e,t){var n;this.options=u({},Pe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(z?re:B?ue:F?le:Q))(n,G),this.touchAction=new me(this,this.options.touchAction),Me(this,!0),b(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Me(e,t){var n,r=e.element;r.style&&(b(e.options.cssProps,(function(o,i){n=N(r.style,i),t?(e.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}(Te.prototype={set:function(e){return u(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,o=t.curRecognizer;(!o||o&&8&o.state)&&(o=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),i++}},get:function(e){if(e instanceof ge)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(g(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(g(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=A(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return b(M(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return b(M(e),(function(e){t?n[e]&&n[e].splice(A(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){if(f)return;var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&Me(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},f)||(u(Pe,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Te,Input:H,TouchAction:me,TouchInput:ue,MouseInput:Q,PointerEventInput:re,TouchMouseInput:le,SingleTouchInput:ie,Recognizer:ge,AttrRecognizer:_e,Tap:ke,Pan:xe,Swipe:je,Pinch:Ee,Rotate:Ce,Press:Se,on:j,off:k,each:b,merge:_,extend:w,assign:u,inherit:x,bindFn:E,prefixed:N}),("undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Hammer=Pe,void 0===(r=function(){return Pe}.call(t,n,t,e))||(e.exports=r))}("undefined"!=typeof window?window:{console:null,MSPointerEvent:null,PointerEvent:null,CSS:null},document)},wpQC:function(e,t,n){var r=n("R3TX"),o=n("R5u7");e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,c=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(n[0],n[1],c)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}},wxYD:function(e,t){var n=Array.isArray;e.exports=n},x54q:function(e,t,n){},x5qa:function(e,t,n){"use strict";n.r(t),n.d(t,"WorldLayer",(function(){return ct})),n.d(t,"CountryLayer",(function(){return Ee})),n.d(t,"ProvinceLayer",(function(){return ee})),n.d(t,"CityLayer",(function(){return le})),n.d(t,"CountyLayer",(function(){return Re})),n.d(t,"DrillDownLayer",(function(){return Ke})),n.d(t,"RegionLayer",(function(){return Ue})),n.d(t,"setDataConfig",(function(){return s})),n.d(t,"setDataLevel",(function(){return f})),n.d(t,"getDataConfig",(function(){return l})),n.d(t,"DataConfig",(function(){return p})),n.d(t,"DRILL_TYPE_LIST",(function(){return fe})),n.d(t,"RegionList",(function(){return pe})),n.d(t,"getRegionByAdcode",(function(){return ut}));var r=n("H8sf"),o=n.n(r),i=n("VtSi"),a=n.n(i),c=2,u={1:{world:{fill:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/35bb8365-1926-471c-b357-db2c02ff3a81.bin"},line:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/8ec671c3-a4f9-4fdf-8e88-85d2ab1d8930.bin"},label:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/90c51eb3-04d7-402f-bd05-95e4bd27dd62.bin",parser:{type:"geojson"}},nationalBoundaries:{type:"json",url:"https://gw.alipayobjects.com/os/bmw-prod/ee493a41-0558-4c0e-bee6-520276c4f1a8.json"}},country:{CHN:{1:{fill:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/380370e0-76aa-4240-8874-5732de77e71d.bin"},line:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/70ec087e-c48a-4b76-8825-6452f17bae7a.bin"},provinceLine:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/778ad7ba-5a3f-4ed6-a94a-b8ab8acae9d6.bin"},label:{type:"json",url:"https://gw.alipayobjects.com/os/bmw-prod/36832a45-68f8-4b51-b006-9dec71f92a23.json"}},2:{fill:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/feeb1f06-11c6-4495-84c9-f41ea6f77123.bin"},line:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/8bfbfe7e-bd0e-4bbe-84d8-629f4dc7abc4.bin"},cityLine:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/8bfbfe7e-bd0e-4bbe-84d8-629f4dc7abc4.bin"},provinceLine:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/778ad7ba-5a3f-4ed6-a94a-b8ab8acae9d6.bin"}},3:{fill:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/24a9ee83-2be1-4fc1-b187-769ac939269d.bin"},line:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/bc97875a-90f2-42c0-a62c-43d2efd7460d.bin"},countryLine:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/bc97875a-90f2-42c0-a62c-43d2efd7460d.bin"},cityLine:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/8bfbfe7e-bd0e-4bbe-84d8-629f4dc7abc4.bin"},provinceLine:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/778ad7ba-5a3f-4ed6-a94a-b8ab8acae9d6.bin"}},nationalBoundaries:{type:"json",url:"https://gw.alipayobjects.com/os/bmw-prod/ee493a41-0558-4c0e-bee6-520276c4f1a8.json"},nationalBoundaries2:{type:"json",url:"https://gw.alipayobjects.com/os/bmw-prod/f2189cc4-662b-4358-8573-36f0f918b7ca.json"},island:{type:"json",url:"https://gw.alipayobjects.com/os/bmw-prod/fe49b393-1147-4769-94ed-70471f4ff15d.json"}}},province:{11e4:""}},2:{world:{fill:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/ad26cd25-96ea-40fd-935d-7e21a5c08893.bin"},line:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/62f61f5f-cca7-4137-845d-13c8f9969664.bin"},label:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/90c51eb3-04d7-402f-bd05-95e4bd27dd62.bin",parser:{type:"geojson"}},nationalBoundaries:{type:"json",url:"https://gw.alipayobjects.com/os/bmw-prod/ee493a41-0558-4c0e-bee6-520276c4f1a8.json"}},country:{CHN:{1:{fill:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/71ac4de3-bb14-449d-a97d-2b98e25ec8df.bin"},line:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/70ec087e-c48a-4b76-8825-6452f17bae7a.bin"},provinceLine:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/0024caaf-86b2-4e75-a3d1-6d2146490b67.bin"},label:{type:"json",url:"https://gw.alipayobjects.com/os/bmw-prod/36832a45-68f8-4b51-b006-9dec71f92a23.json"}},2:{fill:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/522c6496-c711-4581-88db-c3741cd39abd.bin"},line:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/f6a4e2b1-359b-43a6-921c-39d2088d1dab.bin"},cityLine:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/f6a4e2b1-359b-43a6-921c-39d2088d1dab.bin"},provinceLine:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/0024caaf-86b2-4e75-a3d1-6d2146490b67.bin"}},3:{fill:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/524f7de2-7d69-4fa7-8da3-7ff42fa69ee4.bin"},countryLine:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/bc97875a-90f2-42c0-a62c-43d2efd7460d.bin"},cityLine:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/8bfbfe7e-bd0e-4bbe-84d8-629f4dc7abc4.bin"},provinceLine:{type:"pbf",url:"https://gw.alipayobjects.com/os/bmw-prod/778ad7ba-5a3f-4ed6-a94a-b8ab8acae9d6.bin"}},nationalBoundaries:{type:"json",url:"https://gw.alipayobjects.com/os/bmw-prod/ee493a41-0558-4c0e-bee6-520276c4f1a8.json"},nationalBoundaries2:{type:"json",url:"https://gw.alipayobjects.com/os/bmw-prod/f2189cc4-662b-4358-8573-36f0f918b7ca.json"},island:{type:"json",url:"https://gw.alipayobjects.com/os/bmw-prod/fe49b393-1147-4769-94ed-70471f4ff15d.json"}}}}};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;o()(u[t],e)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return u[e]}function f(e){c=e}var p=u[c],d=n("T1QL"),h=n("Gpi5"),v=n("D/HN"),y=n.n(v),m=n("tQYX"),g=n.n(m),b=n("PuIx"),O=n.n(b),w=n("h7wP"),_=n.n(w),x=n("mY5j"),E=n.n(x);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(){return(A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=L(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function L(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=D(e)););return e}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=D(e);if(t){var o=D(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=["loaded"];function z(e,t){if(Array.isArray(t))return t}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(u,e);var t,n,r,o,i,c=N(u);function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return T(this,u),(t=c.call(this)).fillLayer=void 0,t.lineLayer=void 0,t.labelLayer=void 0,t.bubbleLayer=void 0,t.loaded=!1,t.scene=void 0,t.options=void 0,t.layers=[],t.fillData=void 0,t.layerType=void 0,t.popup=void 0,t.scene=e,t.options=O()(t.getDefaultOption(),n,z),f(t.options.geoDataLevel),t}return t=u,(n=[{key:"destroy",value:function(){var e=this;this.layers.forEach((function(t){return e.scene.removeLayer(t)})),this.layers.length=0}},{key:"show",value:function(){this.layers.forEach((function(e){return e.show()}))}},{key:"hide",value:function(){this.layers.forEach((function(e){return e.hide()}))}},{key:"setOption",value:function(e){this.options=O()(this.options,e,z)}},{key:"getFillData",value:function(){return this.fillData}},{key:"getOptions",value:function(){return this.options}},{key:"getLayer",value:function(e){return this[e+"Layer"]}},{key:"on",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fill";return-1!==F.indexOf(e)?A(D(u.prototype),"on",this).call(this,e,t):this.loaded&&this.getLayer(r)?this.getLayer(r).on(e,t):A(D(u.prototype),"once",this).call(this,"loaded",(function(){n.getLayer(r).on(e,t)})),this}},{key:"off",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fill";return-1!==F.indexOf(e)?A(D(u.prototype),"on",this).call(this,e,t):this.getLayer(r)&&(this.loaded&&this.getLayer(r)?this.getLayer(r).off(e,t):A(D(u.prototype),"once",this).call(this,"loaded",(function(){n.getLayer(r).off(e,t)}))),this}},{key:"updateData",value:function(e,t){var n;this.setOption({data:e,joinBy:t});var r=this.options,o=r.data,i=void 0===o?[]:o,a=r.joinBy;if(this.fillLayer.setData(this.fillData,{transforms:0===i.length?[]:[{type:"join",sourceField:a[1],targetField:a[0],data:i}]}),this.options.bubble&&!1!==(null===(n=this.options.bubble)||void 0===n?void 0:n.enable)){var c={};i.forEach((function(e){c[e[a[1]]]=e}));var u=this.fillData.features.map((function(e){return k(k({},e.properties),{},{center:[e.properties.x,e.properties.y]})})).filter((function(e){return c[e[a[0]]]}));this.bubbleLayer.setData(u,{transforms:0===i.length?[]:[{type:"join",sourceField:a[1],targetField:a[0],data:i}]})}}},{key:"fetchData",value:(o=a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("pbf"!==t.type){e.next=11;break}return e.next=3,fetch(t.url);case 3:return e.next=5,e.sent.arrayBuffer();case 5:return n=e.sent,r=y.a.decode(new _.a(n)),!1!==this.options.simplifyTolerance&&(r=E()(r,this.options.simplifyTolerance||.8)),e.abrupt("return",r);case 11:if(!g()(t.url)){e.next=15;break}e.t0=t.url,e.next=18;break;case 15:return e.next=17,fetch(t.url);case 17:e.t0=e.sent.json();case 18:return e.abrupt("return",e.t0);case 19:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){C(i,n,r,a,c,"next",e)}function c(e){C(i,n,r,a,c,"throw",e)}a(void 0)}))},function(e){return i.apply(this,arguments)})},{key:"getDefaultOption",value:function(){return{zIndex:0,visible:!0,viewType:"normal",enablePropagation:!0,geoDataLevel:2,regionType:"province",depth:1,adcode:[],joinBy:["name","name"],simplifyTolerance:!1,label:{enable:!0,color:"#000",field:"name",size:10,stroke:"#fff",strokeWidth:2,textAllowOverlap:!0,opacity:1,textOffset:[0,0],padding:[5,5]},bubble:{enable:!1,shape:"circle",color:"#1AA9FF",size:15,style:{opacity:1,stroke:"#fff",strokeWidth:1}},fill:{scale:null,color:"#ddd",style:{opacity:1},activeColor:!1},autoFit:!0,showBorder:!0,strokeOpacity:1,stroke:"#bdbdbd",strokeVisible:!0,strokeWidth:.6,cityStroke:"#636363",cityStrokeWidth:.6,countyStrokeWidth:.6,provinceStrokeWidth:.6,provinceStroke:"#f0f0f0",provinceStrokeVisible:!0,countyStroke:"#525252",coastlineStroke:"#4190da",coastlineWidth:.6,nationalStroke:"#c994c7",nationalWidth:.5,chinaNationalStroke:"gray",chinaNationalWidth:1,popup:{enable:!0,openTriggerEvent:"mousemove",closeTriggerEvent:"mouseout",option:{},Html:function(e){return"".concat(e.name)}}}}},{key:"addFillLayer",value:function(e){var t,n=this,r=this.options,o=(r.popup,r.data),i=void 0===o?[]:o,a=r.fill,c=r.autoFit,u=r.joinBy,s=r.visible,l=r.enablePropagation,f=r.zIndex;this.fillData=e;var p,h=new d.PolygonLayer({autoFit:c,visible:s,enablePropagation:l,zIndex:f}).source(e,{transforms:0===i.length?[]:[{type:"join",sourceField:u[1],targetField:u[0],data:i}]});if(this.setLayerAttribute(h,"color",a.color),this.setLayerAttribute(h,"filter",a.filter),a.scale&&g()(a.color)&&h.scale("color",{type:a.scale,field:null==a||null===(p=a.color)||void 0===p?void 0:p.field}),h.shape("fill").style(a.style),a.activeColor&&h.active({color:a.activeColor}),this.fillLayer=h,this.layers.push(h),this.scene.addLayer(h),this.options.onClick&&this.fillLayer.on("click",(function(e){n.options&&n.options.onClick&&n.options.onClick(e,n.layerType)})),this.options.bubble&&!1!==(null===(t=this.options.bubble)||void 0===t?void 0:t.enable)){var v=e.features.map((function(e){return k(k({},e.properties),{},{center:[e.properties.x,e.properties.y]})}));this.addBubbleLayer(v)}this.addPopup()}},{key:"updateLayerAttribute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fill",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=this.getLayer(e);this.setLayerAttribute(r,t,n)}},{key:"enablePopup",value:function(){this.setOption({popup:k(k({},this.options.popup),{},{enable:!0})})}},{key:"disablePopup",value:function(){this.setOption({popup:k(k({},this.options.popup),{},{enable:!1})})}},{key:"addFillLine",value:function(e){var t=this.options,n=t.stroke,r=t.strokeWidth,o=t.zIndex,i=t.visible,a=t.strokeOpacity,c=new d.LineLayer({zIndex:o+.1,visible:i}).source(e).color(n).size(r).style({opacity:a});this.scene.addLayer(c),this.layers.push(c),this.lineLayer=c}},{key:"addLabelLayer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"json",n=this.addLabel(e,t);this.scene.addLayer(n),this.layers.push(n),this.labelLayer=n}},{key:"addBubbleLayer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"json",n=this.options,r=n.bubble,o=n.zIndex,i=n.data,a=void 0===i?[]:i,c=n.joinBy,u=n.visible,s=new d.PointLayer({zIndex:o+.3,visible:u}).source(e,{parser:{type:t,coordinates:"center"},transforms:0===a.length?[]:[{type:"join",sourceField:c[1],targetField:c[0],data:a}]});return this.setLayerAttribute(s,"color",r.color),this.setLayerAttribute(s,"size",r.size),this.setLayerAttribute(s,"shape",r.shape),this.setLayerAttribute(s,"filter",r.filter),r.scale&&s.scale(r.scale.field,{type:r.scale.type}),s.style(r.style),this.scene.addLayer(s),this.layers.push(s),this.bubbleLayer=s,s}},{key:"addLabel",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"json",n=this.options,r=n.label,o=n.zIndex,i=n.visible,a=new d.PointLayer({zIndex:o+5,visible:i}).source(e,{parser:{type:t,coordinates:"center"}}).shape(r.field,"text").style(r);return this.setLayerAttribute(a,"color",r.color),this.setLayerAttribute(a,"size",r.size),this.setLayerAttribute(a,"filter",r.filter),a}},{key:"addPopup",value:function(){var e,t=this,n=this.options.popup;(e=n.triggerLayer?"bubble"===n.triggerLayer?this.bubbleLayer:this.fillLayer:this.options.bubble.enable?this.bubbleLayer:this.fillLayer).on(n.openTriggerEvent,(function(e){if(n.enable){var r=n.Html?n.Html(e.feature.properties?e.feature.properties:e.feature):"";t.popup=new d.Popup(k({closeButton:!1},n.option)).setLnglat(e.lngLat).setHTML(r),t.scene.addPopup(t.popup)}})),e.on(n.closeTriggerEvent,(function(e){t.popup&&t.popup.remove()}))}},{key:"setLayerAttribute",value:function(e,t,n){n&&(g()(n)?e[t](n.field,n.values):e[t](n))}}])&&M(t.prototype,n),r&&M(t,r),u}(h.EventEmitter);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(){return(X="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=q(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function q(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$(e)););return e}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$(e);if(t){var o=$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Q(this,n)}}function Q(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Z(e,t)}(s,e);var t,n,r,i,c,u=J(s);function s(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Y(this,s),(t=u.call(this,e,n)).fillRawData=void 0,t.lineRawData=void 0,t.labelRawData=void 0,t.layerType="Province",t.addProvinceFillLayer(),t}return t=s,(n=[{key:"updateDistrict",value:function(e,t,n){if(e||!Array.isArray(e)||0!==e.length){var r=this.options,o=r.label,i=r.showBorder;this.setOption({adcode:e});var a=this.filterData(this.fillRawData,e),c=this.filterData(this.lineRawData,e),u=this.filterLabelData(this.labelRawData,e);this.fillData=a,this.updateData(t,n),i&&this.lineLayer.setData(c),o.enable&&this.labelLayer&&this.labelLayer.setData(u),this.show()}else this.hide()}},{key:"getDefaultOption",value:function(){var e=X($(s.prototype),"getDefaultOption",this).call(this);return o()({},e,{adcode:["110000"],depth:2,label:{field:"NAME_CHN",textAllowOverlap:!1},popup:{enable:!0,Html:function(e){return"<span>".concat(e.NAME_CHN,"</span>")}}})}},{key:"filterData",value:function(e,t){var n=Array.isArray(t)?t:[t];return{type:"FeatureCollection",features:e.features.filter((function(e){var t=e.properties,r=t.adcode_pro,o=t.adcode;return-1!==n.indexOf(r)||-1!==n.indexOf(o)||-1!==n.indexOf(""+r)||-1!==n.indexOf(""+o)}))}}},{key:"filterLabelData",value:function(e,t){var n=Array.isArray(t)?t:[t];return e.filter((function(e){var t=e.adcode_pro,r=e.adcode;return-1!==n.indexOf(t)||-1!==n.indexOf(r)||-1!==n.indexOf(""+t)||-1!==n.indexOf(""+r)}))}},{key:"addProvinceFillLayer",value:(i=a.a.mark((function e(){var t,n,r,o,i,c,u,s,f;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.options,n=t.depth,r=t.adcode,o=t.label,i=t.showBorder,c=l(this.options.geoDataLevel).country.CHN[n],e.next=4,this.fetchData(c.fill);case 4:u=e.sent,this.labelRawData=u.features.map((function(e){return H(H({},e.properties),{},{center:[e.properties.x,e.properties.y]})})),s=this.filterData(u,r),this.fillData=s,f=this.filterLabelData(this.labelRawData,r),this.fillRawData=u,this.addFillLayer(s),o.enable&&this.addLabelLayer(f),this.lineRawData=u,i&&this.addFillLine(s),this.emit("loaded"),this.loaded=!0;case 16:case"end":return e.stop()}}),e,this)})),c=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){W(o,n,r,a,c,"next",e)}function c(e){W(o,n,r,a,c,"throw",e)}a(void 0)}))},function(){return c.apply(this,arguments)})}])&&K(t.prototype,n),r&&K(t,r),s}(B);function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(){return(oe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=ie(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function ie(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=se(e)););return e}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=se(e);if(t){var o=se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ue(this,n)}}function ue(e,t){if(t&&("object"===te(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ae(e,t)}(a,e);var t,n,r,i=ce(a);function a(){var e;ne(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).layerType="City",e}return t=a,(n=[{key:"getDefaultOption",value:function(){var e=oe(se(a.prototype),"getDefaultOption",this).call(this);return o()({},e,{adcode:["110000"],depth:3})}},{key:"filterData",value:function(e,t){var n=Array.isArray(t)?t:[t];return{type:"FeatureCollection",features:e.features.filter((function(e){var t=e.properties,r=t.adcode_cit,o=t.adcode;return-1!==n.indexOf(r)||-1!==n.indexOf(""+r)||-1!==n.indexOf(o)||-1!==n.indexOf(""+o)}))}}},{key:"filterLabelData",value:function(e,t){var n=Array.isArray(t)?t:[t];return e.filter((function(e){var t=e.adcode_cit,r=e.adcode;return-1!==n.indexOf(t)||-1!==n.indexOf(""+t)||-1!==n.indexOf(r)||-1!==n.indexOf(""+r)}))}}])&&re(t.prototype,n),r&&re(t,r),a}(ee),fe=["Country","Region","Province","City","County"],pe={100:{name:"华北区",code:"100",child:[11e4,12e4,13e4,15e4,21e4,22e4,23e4,37e4],center:[118.740234375,42.87596410238256]},101:{name:"华东区",code:"101",child:[32e4,34e4,31e4],center:[118.564453125,31.765537409484374]},102:{name:"华南区",code:"102",child:[44e4,45e4,46e4],center:[110.709228515625,22.238259929564308]},103:{name:"华西区",code:"103",child:[5e5,51e4,52e4,53e4],center:[90.263671875,36.73888412439431]},104:{name:"华中区",code:"104",child:[33e4,35e4,36e4,42e4,43e4],center:[118.05908203124999,28.38173504322308]},301:{name:"中西区",code:"301",child:[14e4,41e4,54e4,61e4,62e4,63e4,64e4,65e4],center:[109.1162109375,35.209721645221386]},701:{name:"港澳台",code:"701",child:[71e4,81e4,82e4]}};function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function me(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ye(i,r,o,a,c,"next",e)}function c(e){ye(i,r,o,a,c,"throw",e)}a(void 0)}))}}function ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oe(e,t){return(Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xe(e);if(t){var o=xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _e(this,n)}}function _e(e,t){if(t&&("object"===de(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oe(e,t)}(y,e);var t,n,r,o,i,c,u,s,f,p,h,v=we(y);function y(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ge(this,y),(t=v.call(this,e,n)).layerType="Country",t.fillRawData=void 0,t.init(),t}return t=y,(n=[{key:"init",value:(h=me(a.a.mark((function e(){var t,n,r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.options,n=t.depth,r=t.showBorder,e.next=3,this.addProvinceFill();case 3:return e.next=5,this.addProvinceLabel();case 5:if(o=l(this.options.geoDataLevel).country.CHN[n],!r){e.next=15;break}return e.next=9,this.addProvinceLine(o.provinceLine);case 9:if(2!==n){e.next=12;break}return e.next=12,this.addCityBorder(o.fill);case 12:if(3!==n){e.next=15;break}return e.next=15,this.addCountyBorder(o.fill);case 15:this.emit("loaded"),this.loaded=!0;case 17:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"addProvinceFill",value:(p=me(a.a.mark((function e(){var t,n,r,o,i,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.options,n=t.depth,r=t.adcode,o=l(this.options.geoDataLevel).country.CHN[n],e.next=4,this.fetchData(o.fill);case 4:i=e.sent,this.fillRawData=i,c=i,r&&Array.isArray(r)&&0!==r.length&&(c=this.filterData(i,r)),this.fillData=c,this.addFillLayer(c);case 10:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"addProvinceLabel",value:(f=me(a.a.mark((function e(){var t,n,r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.options.depth,!(r=l(this.options.geoDataLevel).country.CHN[n]).label){e.next=8;break}return e.next=5,this.fetchData(r.label);case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=null;case 9:(o=e.t0)&&(null===(t=this.options.label)||void 0===t?void 0:t.enable)&&("standard"===this.getOptions().viewType?(this.addLabelLayer(o.filter((function(e){return"澳门"!==e.name}))),this.addMCLabel()):this.addLabelLayer(o));case 11:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"addProvinceLine",value:(s=me(a.a.mark((function e(t){var n,r,o,i,c,u,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchData(t);case 2:n=e.sent,r=n.features.filter((function(e){return"1"===e.properties.type})),o=n.features.filter((function(e){return"4"===e.properties.type})),i={type:"FeatureCollection",features:r},c={type:"FeatureCollection",features:o},u=n.features.filter((function(e){var t=e.properties.type;return"1"!==t&&"4"!==t})),s={type:"FeatureCollection",features:u},this.addNationBorder(s,i,c);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"addNormalProvinceLine",value:(u=me(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(e){return u.apply(this,arguments)})},{key:"addNationBorder",value:(c=me(a.a.mark((function e(t,n,r){var o,i,c,u,s,l,f,p,h,v,y,m,g;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(o=this.options).nationalStroke,i=o.provinceStroke,c=o.provinceStrokeWidth,o.nationalWidth,u=o.chinaNationalStroke,s=o.chinaNationalWidth,l=o.coastlineStroke,f=o.coastlineWidth,p=o.showBorder,o.stroke,o.strokeWidth,h=o.visible,v=o.zIndex,o.strokeOpacity,y=new d.LineLayer({zIndex:v+.1,visible:h&&p}).source(t).size("type",(function(e){return"3"===e?c:"2"===e?f:"0"===e?s:"#fff"})).shape("line").color("type",(function(e){return"3"===e?i:"2"===e?l:"0"===e?u:"#fff"})),m=new d.LineLayer({zIndex:v+.1,visible:h&&p}).source(n).size(s).shape("line").color(u).style({lineType:"dash",dashArray:[2,2]}),g=new d.LineLayer({zIndex:v+.1,visible:h&&p}).source(r).size(c).shape("line").color(i).style({lineType:"dash",dashArray:[4,2,2,2]}),this.scene.addLayer(y),this.scene.addLayer(m),this.scene.addLayer(g),this.layers.push(y,m,g);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"addCityBorder",value:(i=me(a.a.mark((function e(t){var n,r,o,i,c,u,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchData(t);case 2:n=e.sent,r=this.options,o=r.cityStroke,i=r.cityStrokeWidth,c=r.visible,u=r.strokeOpacity,s=new d.LineLayer({zIndex:2,visible:c}).source(n).color(o).size(i).style({opacity:u}),this.scene.addLayer(s),this.layers.push(s);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"addCountyBorder",value:(o=me(a.a.mark((function e(t){var n,r,o,i,c,u,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchData(t);case 2:n=e.sent,r=this.options,o=r.countyStrokeWidth,i=r.countyStroke,c=r.visible,u=r.strokeOpacity,s=new d.LineLayer({zIndex:2,visible:c}).source(n).color(i).size(o).style({opacity:u}),this.scene.addLayer(s),this.layers.push(s);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"addMCLabel",value:function(){var e=[{name:"澳门",center:[113.537747,22.187009]}],t=this.addText(e,{maxZoom:2.9},[-45,-10]),n=this.addText(e,{minZoom:3,maxZoom:4},[-35,-10]),r=this.addText(e,{minZoom:4.1},[0,0]);this.scene.addLayer(r),this.scene.addLayer(t),this.scene.addLayer(n),this.layers.push(r,t,n)}},{key:"filterData",value:function(e,t){var n=Array.isArray(t)?t:[t];return{type:"FeatureCollection",features:e.features.filter((function(e){var t=e.properties,r=t.REGION_CODE,o=t.adcode_pro;return-1!==n.indexOf("86")||-1!==n.indexOf(86)||-1!==n.indexOf(r)||-1!==n.indexOf(""+r)||-1!==n.indexOf(o)||-1!==n.indexOf(""+o)}))}}},{key:"addText",value:function(e,t,n){var r=this.options,o=r.label,i=r.zIndex,a=r.visible;return new d.PointLayer(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({zIndex:i+.4,visible:a},t)).source(e,{parser:{type:"json",coordinates:"center"}}).color(o.color).shape("name","text").size(o.size).style({opacity:o.opacity,stroke:o.stroke,strokeWidth:o.strokeWidth,textAllowOverlap:o.textAllowOverlap,textOffset:n})}},{key:"addRegionLabel",value:function(){Object.values(pe).map((function(e){return e}))}}])&&be(t.prototype,n),r&&be(t,r),y}(B);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ke(){return(ke="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=Pe(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Pe(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Le(e)););return e}function Te(e,t){return(Te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Le(e);if(t){var o=Le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ae(this,n)}}function Ae(e,t){if(t&&("object"===Se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Le(e){return(Le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Te(e,t)}(a,e);var t,n,r,i=Me(a);function a(){var e;Ce(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).layerType="County",e}return t=a,(n=[{key:"getDefaultOption",value:function(){var e=ke(Le(a.prototype),"getDefaultOption",this).call(this);return o()({},e,{adcode:["110100"],depth:3})}},{key:"filterData",value:function(e,t){var n=Array.isArray(t)?t:[t];return{type:"FeatureCollection",features:e.features.filter((function(e){var t=e.properties.adcode;return-1!==n.indexOf(t)||-1!==n.indexOf(""+t)}))}}},{key:"filterLabelData",value:function(e,t){var n=Array.isArray(t)?t:[t];return e.filter((function(e){var t=e.adcode;return-1!==n.indexOf(t)||-1!==n.indexOf(""+t)}))}}])&&je(t.prototype,n),r&&je(t,r),a}(ee);function Ne(e){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t){return(De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Be(e);if(t){var o=Be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ze(this,n)}}function ze(e,t){if(t&&("object"===Ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&De(e,t)}(n,e);var t=Fe(n);function n(){var e;Ie(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).layerType="Region",e}return n}(ee);function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){Ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ye(e,t){if(Array.isArray(t))return t}var Ke=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.drillState=void 0,this.options=void 0,this.regionLayer=void 0,this.cityLayer=void 0,this.countyLayer=void 0,this.provinceLayer=void 0,this.scene=void 0,this.layers=[],this.drillList=void 0,this.options=O()(this.getDefaultOption(),n,Ye),this.drillState=this.options.viewStart,this.scene=t,this.drillList=this.getViewList(),this.initLayers(t),this.initLayerEvent(),this.scene.setMapStatus({doubleClickZoom:!1})}var t,n,r;return t=e,(n=[{key:"getDefaultOption",value:function(){return{drillDepth:2,drillStart:1,customTrigger:!1,autoUpdateData:!0,regionDrill:!1,drillDownTriggerEvent:"click",drillUpTriggerEvent:"undblclick",provinceData:[],viewStart:"Country",viewEnd:"County",cityData:[],countyData:[],city:{adcode:[],depth:2},region:{adcode:[],depth:1},county:{adcode:[]}}}},{key:"addCountryEvent",value:function(){var e=this,t=this.options,n=t.drillDownTriggerEvent,r=t.drillDownEvent;this.provinceLayer.fillLayer.on(n,(function(t){var n=t.feature.properties.adcode,o="Province";if(e.drillState="Province",e.options.regionDrill){var i=t.feature.properties.REGION_CODE;n=pe[i].child,e.drillState="Region",o="Region"}e.options.autoUpdateData&&e.drillDown(n),-1!==e.drillList.indexOf(o)&&(e.provinceLayer.hide(),r&&r(t.feature.properties,o,n))}))}},{key:"addRegionEvent",value:function(){var e=this,t=this.options,n=t.drillDownTriggerEvent,r=t.drillUpTriggerEvent,o=t.drillUpEvent,i=t.drillDownEvent;this.regionLayer.fillLayer.on(r,(function(t){e.drillUp("Country"),-1!==e.drillList.indexOf("Country")&&o&&o({from:"region",to:"country"})})),this.regionLayer.fillLayer.on(n,(function(t){e.drillState="Province",e.options.autoUpdateData&&e.drillDown(t.feature.properties.adcode),-1!==e.drillList.indexOf("Province")&&(e.regionLayer.hide(),i&&i(t.feature.properties,"Province",t.feature.properties.adcode))}))}},{key:"addProvinceEvent",value:function(){var e=this,t=this.options,n=t.drillDownTriggerEvent,r=t.drillUpTriggerEvent,o=t.drillUpEvent,i=t.drillDownEvent;this.cityLayer.fillLayer.on(r,(function(){e.drillState="Province";var t=e.options.regionDrill?"Region":"Country";e.drillUp(t),-1!==e.drillList.indexOf(t)&&o&&o({to:t,from:"Province"})})),this.cityLayer.fillLayer.on(n,(function(t){e.drillState="City",e.options.autoUpdateData&&e.drillDown(t.feature.properties.adcode),-1!==e.drillList.indexOf("City")&&i&&i(t.feature.properties,"City",t.feature.properties.adcode)}))}},{key:"addCityEvent",value:function(){var e=this,t=this.options,n=(t.drillDownTriggerEvent,t.drillUpTriggerEvent),r=t.drillUpEvent;this.countyLayer.fillLayer.on(n,(function(){e.drillUp("Province"),-1!==e.drillList.indexOf("Province")&&r&&r({to:"Province",from:"city"})}))}},{key:"show",value:function(){this.layers.forEach((function(e){return e.show()}))}},{key:"hide",value:function(){this.layers.forEach((function(e){return e.hide()}))}},{key:"destroy",value:function(){this.layers.forEach((function(e){return e.destroy()}))}},{key:"showProvinceView",value:function(e,t,n){this.cityLayer.show(),this.cityLayer.updateDistrict(e,t,n),this.cityLayer.fillLayer.fitBounds(),this.options.regionDrill?this.regionLayer.hide():this.provinceLayer.hide(),this.drillState="Province"}},{key:"showCityView",value:function(e,t,n){this.countyLayer.show();var r="".concat(e);"5000"===r.substr(0,4)?r=[r.substr(0,2)+"0100",r.substr(0,2)+"0200"]:"00"===r.substr(2,2)&&"810000"!==r&&"820000"!==r&&(r=[r.substr(0,2)+"0100"]),this.countyLayer.updateDistrict(r,t,n),this.countyLayer.fillLayer.fitBounds(),this.cityLayer.hide(),this.drillState="City"}},{key:"showRegionView",value:function(e,t,n){this.regionLayer.show(),this.regionLayer.updateDistrict(e,t,n),this.regionLayer.fillLayer.fitBounds(),this.provinceLayer.hide(),this.drillState="Region"}},{key:"drillUp",value:function(e){if(-1!==this.drillList.indexOf(e))switch(e){case"Province":this.cityLayer.show(),this.cityLayer.fillLayer.fitBounds(),this.countyLayer.hide(),this.drillState="Province";break;case"Country":this.provinceLayer.show(),this.provinceLayer.fillLayer.fitBounds(),this.options.regionDrill?this.regionLayer.hide():this.cityLayer.hide(),this.drillState="Country";break;case"Region":this.options.regionDrill&&(this.regionLayer.show(),this.regionLayer.fillLayer.fitBounds(),this.cityLayer.hide(),this.drillState="Region")}}},{key:"drillDown",value:function(e,t,n){if(-1!==this.drillList.indexOf(this.drillState))switch(this.drillState){case"Province":this.showProvinceView(e,t,n);break;case"Region":this.showRegionView(e,t,n);break;case"City":this.showCityView(e,t,n)}}},{key:"updateData",value:function(e,t,n){switch(e){case"Country":case"province":this.provinceLayer.updateData(t,n);break;case"Region":case"region":this.regionLayer.updateData(t,n);break;case"Province":case"city":this.cityLayer.updateData(t,n);break;case"City":case"county":this.countyLayer.updateData(t,n)}}},{key:"getLayerOption",value:function(e){var t=this.options,n=t.joinBy,r=t.label,o=t.bubble,i=t.fill,a=t.popup,c=t.geoDataLevel,u=t.onClick,s=e.toLowerCase()+"Data";return He({data:this.options[s],joinBy:n,label:r,bubble:o,fill:i,popup:a,onClick:u,geoDataLevel:c},this.options[e.toLowerCase()])}},{key:"initLayers",value:function(e){var t=this.getViewList();-1!==t.indexOf("Country")&&(this.provinceLayer=new Ee(e,He({},this.getLayerOption("Province")))),-1!==t.indexOf("Region")&&(this.regionLayer=new Ue(e,this.getLayerOption("Region"))),-1!==t.indexOf("Province")&&(this.cityLayer=new ee(e,this.getLayerOption("City"))),-1!==t.indexOf("City")&&(this.countyLayer=new le(e,this.getLayerOption("County")))}},{key:"initLayerEvent",value:function(){var e=this,t=this.getViewList();this.options.customTrigger||(-1!==t.indexOf("Country")&&this.provinceLayer.on("loaded",(function(){e.addCountryEvent(),"Country"!==e.options.viewStart&&e.provinceLayer.hide(),e.layers.push(e.provinceLayer)})),-1!==t.indexOf("Region")&&this.regionLayer.on("loaded",(function(){e.addRegionEvent(),"Region"!==e.options.viewStart&&e.regionLayer.hide(),e.layers.push(e.regionLayer)})),-1!==t.indexOf("Province")&&this.cityLayer.on("loaded",(function(){e.addProvinceEvent(),"Province"!==e.options.viewStart&&e.cityLayer.hide(),e.layers.push(e.cityLayer)})),-1!==t.indexOf("City")&&this.countyLayer.on("loaded",(function(){e.addCityEvent(),"City"!==e.options.viewStart&&e.countyLayer.hide(),e.layers.push(e.countyLayer)})))}},{key:"getViewList",value:function(){var e=this.options,t=e.viewStart,n=e.viewEnd,r=fe;this.options.regionDrill||-1===r.indexOf("Region")||r.splice(1,1);var o=r.indexOf(t),i=r.indexOf(n);if(-1===o||-1===i||i<o)throw new Error("下钻 viewStart, viewEnd 参数错误");return r.slice(o,i+1)}},{key:"getProperties",value:function(e,t){var n=Array.isArray(t)?t:[t],r=e.features.filter((function(e){var t=e.properties.adcode;return-1!==n.indexOf(t)||-1!==n.indexOf(""+t)}));return r[0]?r[0].properties:{}}},{key:"enablePopup",value:function(){this.cityLayer&&this.cityLayer.enablePopup(),this.countyLayer&&this.countyLayer.enablePopup(),this.provinceLayer&&this.provinceLayer.enablePopup(),this.regionLayer&&this.regionLayer.enablePopup()}},{key:"disablePopup",value:function(){this.cityLayer&&this.cityLayer.disablePopup(),this.countyLayer&&this.countyLayer.disablePopup(),this.provinceLayer&&this.provinceLayer.disablePopup(),this.regionLayer&&this.regionLayer.disablePopup()}}])&&We(t.prototype,n),r&&We(t,r),e}();function Xe(e){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){Je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return et(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rt(e,t){return(rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ot(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=at(e);if(t){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return it(this,n)}}function it(e,t){if(t&&("object"===Xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function at(e){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ct=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rt(e,t)}(u,e);var t,n,r,o,i,c=ot(u);function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return tt(this,u),(t=c.call(this,e,n)).loadData().then((function(e){var n,r=$e(e,3),o=r[0],i=r[1],a=r[2];t.addFillLayer(o),t.options.showBorder&&t.addFillLine(i),(null===(n=t.options.label)||void 0===n?void 0:n.enable)&&t.addLabelLayer(a,"json"),t.emit("loaded"),t.loaded=!0})),t}return t=u,(n=[{key:"addFillLine",value:function(e){var t={type:"FeatureCollection",features:e.features.filter((function(e){return"10"===e.properties.type||"1"===e.properties.type||"11"===e.properties.type||"8"===e.properties.type}))},n={type:"FeatureCollection",features:e.features.filter((function(e){return"10"!==e.properties.type&&"1"!==e.properties.type&&"11"!==e.properties.type&&"8"!==e.properties.type}))};this.addNationBorder(n,t)}},{key:"loadData",value:(o=a.a.mark((function e(){var t,n,r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l(this.options.geoDataLevel).world,e.next=3,this.fetchData(t.fill);case 3:return n=e.sent,e.next=6,this.fetchData(t.line);case 6:return r=e.sent,o=n.features.map((function(e){return Ze(Ze({},e.properties),{},{center:[e.properties.x,e.properties.y]})})),e.abrupt("return",[n,r,o]);case 9:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){Qe(i,n,r,a,c,"next",e)}function c(e){Qe(i,n,r,a,c,"throw",e)}a(void 0)}))},function(){return i.apply(this,arguments)})},{key:"addNationBorder",value:function(e,t){var n=this.options,r=n.nationalStroke,o=n.nationalWidth,i=n.coastlineStroke,a=n.chinaNationalStroke,c=n.chinaNationalWidth,u=n.coastlineWidth,s=n.visible,l=n.zIndex,f=new d.LineLayer({zIndex:l+.1,visible:s}).source(e).size("type",(function(e){return"0"===e?c:"2"===e||"9"===e?u:o})).color("type",(function(e){return"0"===e?a:"2"===e||"9"===e?i:r})),p=new d.LineLayer({zIndex:l+.1,visible:s}).source(t).size("type",(function(e){return"1"===e?c:o})).shape("line").color("type",(function(e){return"1"===e?a:r})).style({lineType:"dash",dashArray:[2,2]});this.scene.addLayer(f),this.scene.addLayer(p),this.layers.push(f,p)}}])&&nt(t.prototype,n),r&&nt(t,r),u}(B);function ut(e){return Object.values(pe).find((function(t){return-1!==t.child.indexOf(e)}))}},xBT8:function(e,t,n){var r=n("BTUq"),o=n("nvU9");e.exports=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=o(n))==n?n:0),void 0!==t&&(t=(t=o(t))==t?t:0),r(o(e),t,n)}},xCex:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c}));var r=n("ERkP"),o=r.createContext(null),i=o.Provider;t.d=o;var a=r.createContext(null),c=a.Provider},xOVz:function(e,t,n){"use strict";n.d(t,"a",(function(){return H}));var r=n("Gf+y"),o=n("nnRT"),i=n.n(o),a=n("pufz"),c=n("zEXi"),u=n("pfNN"),s=n("PGAt");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(u,e);var t,n,r,o=h(u);function u(){return f(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=e.clampLow,r=void 0===n||n,o=e.clampHigh,a=void 0===o||o,c=e.noDataValue,u=void 0===c?-9999999:c,s=e.domain,l=void 0===s?[0,1]:s,f=e.rampColors,p=e.pixelConstant,d=void 0===p?0:p,h=e.pixelConstantR,v=void 0===h?65536:h,y=e.pixelConstantG,m=void 0===y?256:y,g=e.pixelConstantB,b=void 0===g?1:g,O=e.pixelConstantRGB,w=void 0===O?.1:O;return i()(this.rampColors,f)||(this.updateColorTexture(),this.rampColors=f),{u_opacity:t||1,u_texture:this.texture,u_pixelConstant:d,u_pixelConstantR:v,u_pixelConstantG:m,u_pixelConstantB:b,u_pixelConstantRGB:w,u_domain:l,u_clampLow:r,u_clampHigh:void 0!==a?a:r,u_noDataValue:u,u_colorTexture:this.colorTexture}}},{key:"initModels",value:function(e){var t=this,n=this.layer.getLayerConfig(),r=n.mask,o=void 0!==r&&r,i=n.maskInside,u=void 0===i||i,l=n.rampColorsData,f=n.rampColors,p=this.layer.getSource(),d=this.rendererService.createTexture2D;this.texture=d({height:0,width:0}),p.data.images.then((function(e){t.texture=d({data:e[0],width:e[0].width,height:e[0].height}),t.layerService.reRender()}));var h=l||Object(c.V)(f);this.colorTexture=d({data:h.data,width:h.width,height:h.height,flipY:!1}),this.layer.buildLayerModel({moduleName:"RasterImage",vertexShader:'precision highp float;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nattribute vec3 a_Position;\nattribute vec2 a_Uv;\nvarying vec2 v_texCoord;\n#pragma include "projection"\nvoid main() {\n v_texCoord = a_Uv;\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0));\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy,0., 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0));\n }\n}\n',fragmentShader:"precision mediump float;\nuniform float u_opacity: 1.0;\n\nuniform sampler2D u_texture;\nuniform sampler2D u_colorTexture;\n\nvarying vec2 v_texCoord;\n\nuniform vec2 u_domain;\nuniform float u_noDataValue;\nuniform bool u_clampLow: true;\nuniform bool u_clampHigh: true;\n\nuniform float u_pixelConstant;\nuniform float u_pixelConstantR;\nuniform float u_pixelConstantG;\nuniform float u_pixelConstantB;\nuniform float u_pixelConstantRGB;\n\nvoid main() {\n vec4 baseColor = texture2D(u_texture, vec2(v_texCoord.x, v_texCoord.y));\n\n float r = baseColor.r;\n float g = baseColor.g;\n float b = baseColor.b;\n\n float value = u_pixelConstant + ((r * u_pixelConstantR + g * u_pixelConstantG + b * u_pixelConstantB) * u_pixelConstantRGB);\n if (value == u_noDataValue) {\n gl_FragColor = vec4(0.0, 0, 0, 0.0);\n } else if ((!u_clampLow && value < u_domain[0]) || (!u_clampHigh && value > u_domain[1])) {\n gl_FragColor = vec4(0, 0, 0, 0);\n } else {\n float normalisedValue =(value - u_domain[0]) / (u_domain[1] - u_domain[0]);\n vec4 color = texture2D(u_colorTexture, vec2(normalisedValue, 0));\n gl_FragColor = color;\n gl_FragColor.a = gl_FragColor.a * u_opacity ;\n }\n}\n",triangulation:s.j,primitive:a.gl.TRIANGLES,depth:{enable:!1},blend:this.getBlend(),stencil:Object(c.bb)(o,u),pick:!1}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){var e,t;null===(e=this.texture)||void 0===e||e.destroy(),null===(t=this.colorTexture)||void 0===t||t.destroy()}},{key:"buildModels",value:function(e){this.initModels(e)}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:a.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:a.gl.DYNAMIC_DRAW,data:[],type:a.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}},{key:"updateColorTexture",value:function(){var e=this.rendererService.createTexture2D,t=this.layer.getLayerConfig().rampColors,n=Object(c.V)(t);this.colorTexture=e({data:n.data,width:n.width,height:n.height,flipY:!1})}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.a);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(i,e);var t,n,r,o=_(i);function i(){return b(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getUninforms",value:function(){return{u_opacity:this.layer.getLayerConfig().opacity||1,u_texture:this.texture}}},{key:"initModels",value:function(e){var t=this,n=this.layer.getLayerConfig(),r=n.mask,o=void 0!==r&&r,i=n.maskInside,u=void 0===i||i,l=this.layer.getSource(),f=this.rendererService.createTexture2D;if(this.texture=f({height:0,width:0}),c.jb){var p=this.layerService.sceneService.getSceneConfig().canvas.createImage();p.crossOrigin="anonymous",p.src=l.data.originData,p.onload=function(){t.texture=f({data:p,width:p.width,height:p.height}),t.layerService.reRender()}}else l.data.images.then((function(e){t.texture=f({data:e[0],width:e[0].width,height:e[0].height,mag:a.gl.LINEAR,min:a.gl.LINEAR}),t.layerService.reRender()}));this.layer.buildLayerModel({moduleName:"rasterImage",vertexShader:'precision highp float;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nattribute vec3 a_Position;\nattribute vec2 a_Uv;\nvarying vec2 v_texCoord;\n#pragma include "projection"\nvoid main() {\n v_texCoord = a_Uv;\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0));\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy,0., 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0));\n }\n}\n',fragmentShader:"precision mediump float;\nuniform float u_opacity: 1.0;\nuniform sampler2D u_texture;\nvarying vec2 v_texCoord;\nvoid main() {\n vec4 color = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y));\n gl_FragColor = color;\n gl_FragColor.a *= u_opacity;\n}\n",triangulation:s.j,primitive:a.gl.TRIANGLES,blend:{enable:!0},depth:{enable:!1},stencil:Object(c.bb)(o,u),pick:!1}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){var e;null===(e=this.texture)||void 0===e||e.destroy()}},{key:"buildModels",value:function(e){this.initModels(e)}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:a.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:a.gl.DYNAMIC_DRAW,data:[],type:a.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}}])&&O(t.prototype,n),r&&O(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(u.a);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return(P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var o=A(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L={image:S,dataImage:m,tileDataImage:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(i,e);var t,n,r,o=T(i);function i(){return j(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getUninforms",value:function(){var e=this.rendererService.createTexture2D,t=this.layer.getLayerConfig(),n=t.opacity,r=t.clampLow,o=void 0===r||r,i=t.clampHigh,a=void 0===i||i,c=t.noDataValue,u=void 0===c?-9999999:c,s=t.domain,l=void 0===s?[0,1]:s,f=t.colorTexture,p=void 0===f?e({height:0,width:0}):f,d=t.pixelConstant,h=void 0===d?0:d,v=t.pixelConstantR,y=void 0===v?65536:v,m=t.pixelConstantG,g=void 0===m?256:m,b=t.pixelConstantB,O=void 0===b?1:b,w=t.pixelConstantRGB,_=void 0===w?.1:w;return{u_opacity:n||1,u_texture:this.texture,u_pixelConstant:h,u_pixelConstantR:y,u_pixelConstantG:g,u_pixelConstantB:O,u_pixelConstantRGB:_,u_domain:l,u_clampLow:o,u_clampHigh:void 0!==a?a:o,u_noDataValue:u,u_colorTexture:p}}},{key:"initModels",value:function(e){var t=this,n=this.layer.getLayerConfig(),r=n.mask,o=void 0!==r&&r,i=n.maskInside,u=void 0===i||i,l=this.layer.getSource(),f=this.rendererService.createTexture2D;this.texture=f({height:0,width:0}),l.data.images.then((function(e){t.texture=f({data:e[0],width:e[0].width,height:e[0].height}),t.layerService.reRender()})),this.layer.buildLayerModel({moduleName:"RasterTileDataImage",vertexShader:'precision highp float;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nattribute vec3 a_Position;\nattribute vec2 a_Uv;\nvarying vec2 v_texCoord;\n#pragma include "projection"\nvoid main() {\n v_texCoord = a_Uv;\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0));\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy,0., 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0));\n }\n}\n',fragmentShader:"precision mediump float;\nuniform float u_opacity: 1.0;\n\nuniform sampler2D u_texture;\nuniform sampler2D u_colorTexture;\n\nvarying vec2 v_texCoord;\n\nuniform vec2 u_domain;\nuniform float u_noDataValue;\nuniform bool u_clampLow: true;\nuniform bool u_clampHigh: true;\n\nuniform float u_pixelConstant;\nuniform float u_pixelConstantR;\nuniform float u_pixelConstantG;\nuniform float u_pixelConstantB;\nuniform float u_pixelConstantRGB;\n\nvoid main() {\n vec4 baseColor = texture2D(u_texture, vec2(v_texCoord.x, v_texCoord.y));\n\n float r = baseColor.r;\n float g = baseColor.g;\n float b = baseColor.b;\n\n float value = u_pixelConstant + ((r * u_pixelConstantR + g * u_pixelConstantG + b * u_pixelConstantB) * u_pixelConstantRGB);\n if (value == u_noDataValue) {\n gl_FragColor = vec4(0.0, 0, 0, 0.0);\n } else if ((!u_clampLow && value < u_domain[0]) || (!u_clampHigh && value > u_domain[1])) {\n gl_FragColor = vec4(0, 0, 0, 0);\n } else {\n float normalisedValue =(value - u_domain[0]) / (u_domain[1] - u_domain[0]);\n vec4 color = texture2D(u_colorTexture, vec2(normalisedValue, 0));\n gl_FragColor = color;\n gl_FragColor.a = gl_FragColor.a * u_opacity ;\n }\n}\n",triangulation:s.j,primitive:a.gl.TRIANGLES,depth:{enable:!1},blend:this.getBlend(),stencil:Object(c.bb)(o,u),pick:!1}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){var e;null===(e=this.texture)||void 0===e||e.destroy()}},{key:"buildModels",value:function(e){this.initModels(e)}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:a.AttributeType.Attribute,descriptor:{name:"a_Uv",buffer:{usage:a.gl.DYNAMIC_DRAW,data:[],type:a.gl.FLOAT},size:2,update:function(e,t,n){return[n[3],n[4]]}}})}}])&&k(t.prototype,n),r&&k(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(u.a)};function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function D(e,t){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=U(e);if(t){var o=U(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return B(e)}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D(e,t)}(i,e);var t,n,r,o=F(i);function i(){var e;N(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return V(B(e=o.call.apply(o,[this].concat(n))),"type","ImageLayer"),e}return t=i,(n=[{key:"buildModels",value:function(){var e=this,t=this.getModelType();this.layerModel=new L[t](this),this.layerModel.initModels((function(t){e.dispatchModelLoad(t)}))}},{key:"rebuildModels",value:function(){var e=this;this.layerModel.buildModels((function(t){e.dispatchModelLoad(t)}))}},{key:"getConfigSchema",value:function(){return{properties:{opacity:{type:"number",minimum:0,maximum:1}}}}},{key:"getDefaultConfig",value:function(){return{image:{},dataImage:{},tileDataImage:{}}[this.getModelType()]}},{key:"getModelType",value:function(){var e,t=this.styleAttributeService.getLayerStyleAttribute("shape"),n=null==t||null===(e=t.scale)||void 0===e?void 0:e.field;return"dataImage"===n?"dataImage":"image"===n?"image":"tileDataImage"===n?"tileDataImage":"image"}}])&&I(t.prototype,n),r&&I(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.a)},xYad:function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,o=[];n<r;)e(t[n])&&(o[o.length]=t[n]),n+=1;return o}},xbhO:function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return k}));var r=window.document,o=window.Math,i=window.HTMLElement,a=window.XMLHttpRequest,c=function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n])},u=function(e){return function(t,n,r){var o=e.createElement(t);if(null!=n)for(var i in n){var a=n[i];null!=a&&(null!=o[i]?o[i]=a:o.setAttribute(i,a))}return null!=r&&c(r,(function(t){o.appendChild("string"==typeof t?e.createTextNode(t):t)})),o}},s=u(r),l=function(e,t){return{}.hasOwnProperty.call(e,t)},f=function(e){return(""+e).toLowerCase()},p="github.com",d=a&&"prototype"in a&&"withCredentials"in a.prototype,h=d&&i&&"attachShadow"in i.prototype&&!("prototype"in i.prototype.attachShadow),v=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},y=function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},m={light:".btn:focus-visible,.social-count:focus-visible{outline:2px solid #0969da;outline-offset:-2px}.btn{color:#24292f;background-color:#ebf0f4;border-color:#ccd1d5;border-color:rgba(27,31,36,.15);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%23f6f8fa'/%3e%3cstop offset='90%25' stop-color='%23ebf0f4'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #f6f8fa, #ebf0f4 90%);background-image:linear-gradient(180deg, #f6f8fa, #ebf0f4 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFF6F8FA', endColorstr='#FFEAEFF3')}:root .btn{filter:none}.btn:hover,.btn:focus{background-color:#e9ebef;background-position:0 -0.5em;border-color:#caccd1;border-color:rgba(27,31,36,.15);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%23f3f4f6'/%3e%3cstop offset='90%25' stop-color='%23e9ebef'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #f3f4f6, #e9ebef 90%);background-image:linear-gradient(180deg, #f3f4f6, #e9ebef 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFF3F4F6', endColorstr='#FFE8EAEE')}:root .btn:hover,:root .btn:focus{filter:none}.btn:active{background-color:#e5e9ed;border-color:#c7cbcf;border-color:rgba(27,31,36,.15);box-shadow:inset 0 .15em .3em rgba(27,31,36,.15);background-image:none;filter:none}.social-count{color:#24292f;background-color:#fff;border-color:#ddddde;border-color:rgba(27,31,36,.15)}.social-count:hover,.social-count:focus{color:#0969da}.octicon-heart{color:#bf3989}",light_high_contrast:".btn:focus-visible,.social-count:focus-visible{outline:2px solid #0349b4;outline-offset:-2px}.btn{color:#0e1116;background-color:#e7ecf0;border-color:#2f3237;border-color:rgba(1,4,9,.8);background-image:none;filter:none}.btn:hover,.btn:focus{background-color:#c4cdd5;background-position:0 -0.5em;border-color:#282c32;border-color:rgba(1,4,9,.8);background-image:none;filter:none}.btn:active{background-color:#d8dde1;border-color:#2c2f34;border-color:rgba(1,4,9,.8);box-shadow:inset 0 .15em .3em rgba(1,4,9,.15)}.social-count{color:#0e1116;background-color:#fff;border-color:#34363a;border-color:rgba(1,4,9,.8)}.social-count:hover,.social-count:focus{color:#0349b4}.octicon-heart{color:#971368}",dark:".btn:focus-visible,.social-count:focus-visible{outline:2px solid #58a6ff;outline-offset:-2px}.btn{color:#c9d1d9;background-color:#1a1e23;border-color:#2f3439;border-color:rgba(240,246,252,.1);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%2321262d'/%3e%3cstop offset='90%25' stop-color='%231a1e23'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #21262d, #1a1e23 90%);background-image:linear-gradient(180deg, #21262d, #1a1e23 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FF21262D', endColorstr='#FF191D22')}:root .btn{filter:none}.btn:hover,.btn:focus{background-color:#292e33;background-position:0 -0.5em;border-color:#8b949e;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%2330363d'/%3e%3cstop offset='90%25' stop-color='%23292e33'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #30363d, #292e33 90%);background-image:linear-gradient(180deg, #30363d, #292e33 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FF30363D', endColorstr='#FF282D32')}:root .btn:hover,:root .btn:focus{filter:none}.btn:active{background-color:#161719;border-color:#8b949e;box-shadow:inset 0 .15em .3em rgba(1,4,9,.15);background-image:none;filter:none}.social-count{color:#c9d1d9;background-color:#0d1117;border-color:#24282e;border-color:rgba(240,246,252,.1)}.social-count:hover,.social-count:focus{color:#58a6ff}.octicon-heart{color:#db61a2}",dark_dimmed:".btn:focus-visible,.social-count:focus-visible{outline:2px solid #539bf5;outline-offset:-2px}.btn{color:#adbac7;background-color:#30363d;border-color:#40464e;border-color:rgba(205,217,229,.1);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%23373e47'/%3e%3cstop offset='90%25' stop-color='%2330363d'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #373e47, #30363d 90%);background-image:linear-gradient(180deg, #373e47, #30363d 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FF373E47', endColorstr='#FF2F353C')}:root .btn{filter:none}.btn:hover,.btn:focus{background-color:#3c444d;background-position:0 -0.5em;border-color:#768390;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%23444c56'/%3e%3cstop offset='90%25' stop-color='%233c444d'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #444c56, #3c444d 90%);background-image:linear-gradient(180deg, #444c56, #3c444d 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FF444C56', endColorstr='#FF3B434C')}:root .btn:hover,:root .btn:focus{filter:none}.btn:active{background-color:#2e3031;border-color:#768390;box-shadow:inset 0 .15em .3em rgba(28,33,40,.15);background-image:none;filter:none}.social-count{color:#adbac7;background-color:#22272e;border-color:#333940;border-color:rgba(205,217,229,.1)}.social-count:hover,.social-count:focus{color:#539bf5}.octicon-heart{color:#c96198}",dark_high_contrast:".btn:focus-visible,.social-count:focus-visible{outline:2px solid #71b7ff;outline-offset:-2px}.btn{color:#f0f3f6;background-color:#272b33;border-color:#7a828e;background-image:none;filter:none}.btn:hover,.btn:focus{background-color:#4a515b;background-position:0 -0.5em;border-color:#bdc4cc;background-image:none;filter:none}.btn:active{background-color:#1d1d1f;border-color:#bdc4cc;box-shadow:inset 0 .15em .3em rgba(1,4,9,.15)}.social-count{color:#f0f3f6;background-color:#0a0c10;border-color:#7a828e}.social-count:hover,.social-count:focus{color:#71b7ff}.octicon-heart{color:#ef6eb1}"},g=function(e,t){return"@media(prefers-color-scheme:"+e+"){"+m[l(m,t)?t:e]+"}"},b=function(e){if(null==e)return m.light;if(l(m,e))return m[e];var t=function(e,t,n,r){null==t&&(t="&"),null==n&&(n="="),null==r&&(r=window.decodeURIComponent);var o={};return c(e.split(t),(function(e){if(""!==e){var t=e.split(n);o[r(t[0])]=null!=t[1]?r(t.slice(1).join(n)):void 0}})),o}(e,";",":",(function(e){return e.replace(/^[ \t\n\f\r]+|[ \t\n\f\r]+$/g,"")}));return m[l(m,t["no-preference"])?t["no-preference"]:"light"]+g("light",t.light)+g("dark",t.dark)},O={"comment-discussion":{heights:{16:{width:16,path:'<path fill-rule="evenodd" d="M1.5 2.75a.25.25 0 01.25-.25h8.5a.25.25 0 01.25.25v5.5a.25.25 0 01-.25.25h-3.5a.75.75 0 00-.53.22L3.5 11.44V9.25a.75.75 0 00-.75-.75h-1a.25.25 0 01-.25-.25v-5.5zM1.75 1A1.75 1.75 0 000 2.75v5.5C0 9.216.784 10 1.75 10H2v1.543a1.457 1.457 0 002.487 1.03L7.061 10h3.189A1.75 1.75 0 0012 8.25v-5.5A1.75 1.75 0 0010.25 1h-8.5zM14.5 4.75a.25.25 0 00-.25-.25h-.5a.75.75 0 110-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0114.25 12H14v1.543a1.457 1.457 0 01-2.487 1.03L9.22 12.28a.75.75 0 111.06-1.06l2.22 2.22v-2.19a.75.75 0 01.75-.75h1a.25.25 0 00.25-.25v-5.5z"></path>'}}},download:{heights:{16:{width:16,path:'<path fill-rule="evenodd" d="M7.47 10.78a.75.75 0 001.06 0l3.75-3.75a.75.75 0 00-1.06-1.06L8.75 8.44V1.75a.75.75 0 00-1.5 0v6.69L4.78 5.97a.75.75 0 00-1.06 1.06l3.75 3.75zM3.75 13a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5z"></path>'}}},eye:{heights:{16:{width:16,path:'<path fill-rule="evenodd" d="M1.679 7.932c.412-.621 1.242-1.75 2.366-2.717C5.175 4.242 6.527 3.5 8 3.5c1.473 0 2.824.742 3.955 1.715 1.124.967 1.954 2.096 2.366 2.717a.119.119 0 010 .136c-.412.621-1.242 1.75-2.366 2.717C10.825 11.758 9.473 12.5 8 12.5c-1.473 0-2.824-.742-3.955-1.715C2.92 9.818 2.09 8.69 1.679 8.068a.119.119 0 010-.136zM8 2c-1.981 0-3.67.992-4.933 2.078C1.797 5.169.88 6.423.43 7.1a1.619 1.619 0 000 1.798c.45.678 1.367 1.932 2.637 3.024C4.329 13.008 6.019 14 8 14c1.981 0 3.67-.992 4.933-2.078 1.27-1.091 2.187-2.345 2.637-3.023a1.619 1.619 0 000-1.798c-.45-.678-1.367-1.932-2.637-3.023C11.671 2.992 9.981 2 8 2zm0 8a2 2 0 100-4 2 2 0 000 4z"></path>'}}},heart:{heights:{16:{width:16,path:'<path fill-rule="evenodd" d="M4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.565 20.565 0 008 13.393a20.561 20.561 0 003.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.75.75 0 01-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5zM8 14.25l-.345.666-.002-.001-.006-.003-.018-.01a7.643 7.643 0 01-.31-.17 22.075 22.075 0 01-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.08 22.08 0 01-3.744 2.584l-.018.01-.006.003h-.002L8 14.25zm0 0l.345.666a.752.752 0 01-.69 0L8 14.25z"></path>'}}},"issue-opened":{heights:{16:{width:16,path:'<path d="M8 9.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"></path><path fill-rule="evenodd" d="M8 0a8 8 0 100 16A8 8 0 008 0zM1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0z"></path>'}}},"mark-github":{heights:{16:{width:16,path:'<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>'}}},package:{heights:{16:{width:16,path:'<path fill-rule="evenodd" d="M8.878.392a1.75 1.75 0 00-1.756 0l-5.25 3.045A1.75 1.75 0 001 4.951v6.098c0 .624.332 1.2.872 1.514l5.25 3.045a1.75 1.75 0 001.756 0l5.25-3.045c.54-.313.872-.89.872-1.514V4.951c0-.624-.332-1.2-.872-1.514L8.878.392zM7.875 1.69a.25.25 0 01.25 0l4.63 2.685L8 7.133 3.245 4.375l4.63-2.685zM2.5 5.677v5.372c0 .09.047.171.125.216l4.625 2.683V8.432L2.5 5.677zm6.25 8.271l4.625-2.683a.25.25 0 00.125-.216V5.677L8.75 8.432v5.516z"></path>'}}},play:{heights:{16:{width:16,path:'<path fill-rule="evenodd" d="M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zM6.379 5.227A.25.25 0 006 5.442v5.117a.25.25 0 00.379.214l4.264-2.559a.25.25 0 000-.428L6.379 5.227z"></path>'}}},"repo-forked":{heights:{16:{width:16,path:'<path fill-rule="evenodd" d="M5 3.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm0 2.122a2.25 2.25 0 10-1.5 0v.878A2.25 2.25 0 005.75 8.5h1.5v2.128a2.251 2.251 0 101.5 0V8.5h1.5a2.25 2.25 0 002.25-2.25v-.878a2.25 2.25 0 10-1.5 0v.878a.75.75 0 01-.75.75h-4.5A.75.75 0 015 6.25v-.878zm3.75 7.378a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm3-8.75a.75.75 0 100-1.5.75.75 0 000 1.5z"></path>'}}},"repo-template":{heights:{16:{width:16,path:'<path fill-rule="evenodd" d="M6 .75A.75.75 0 016.75 0h2.5a.75.75 0 010 1.5h-2.5A.75.75 0 016 .75zm5 0a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0V1.5h-.75A.75.75 0 0111 .75zM4.992.662a.75.75 0 01-.636.848c-.436.063-.783.41-.846.846a.75.75 0 01-1.485-.212A2.501 2.501 0 014.144.025a.75.75 0 01.848.637zM2.75 4a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 012.75 4zm10.5 0a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75zM2.75 8a.75.75 0 01.75.75v.268A1.72 1.72 0 013.75 9h.5a.75.75 0 010 1.5h-.5a.25.25 0 00-.25.25v.75c0 .28.114.532.3.714a.75.75 0 01-1.05 1.072A2.495 2.495 0 012 11.5V8.75A.75.75 0 012.75 8zm10.5 0a.75.75 0 01.75.75v4.5a.75.75 0 01-.75.75h-2.5a.75.75 0 010-1.5h1.75v-2h-.75a.75.75 0 010-1.5h.75v-.25a.75.75 0 01.75-.75zM6 9.75A.75.75 0 016.75 9h2.5a.75.75 0 010 1.5h-2.5A.75.75 0 016 9.75zm-1 2.5v3.25a.25.25 0 00.4.2l1.45-1.087a.25.25 0 01.3 0L8.6 15.7a.25.25 0 00.4-.2v-3.25a.25.25 0 00-.25-.25h-3.5a.25.25 0 00-.25.25z"></path>'}}},star:{heights:{16:{width:16,path:'<path fill-rule="evenodd" d="M8 .25a.75.75 0 01.673.418l1.882 3.815 4.21.612a.75.75 0 01.416 1.279l-3.046 2.97.719 4.192a.75.75 0 01-1.088.791L8 12.347l-3.766 1.98a.75.75 0 01-1.088-.79l.72-4.194L.818 6.374a.75.75 0 01.416-1.28l4.21-.611L7.327.668A.75.75 0 018 .25zm0 2.445L6.615 5.5a.75.75 0 01-.564.41l-3.097.45 2.24 2.184a.75.75 0 01.216.664l-.528 3.084 2.769-1.456a.75.75 0 01.698 0l2.77 1.456-.53-3.084a.75.75 0 01.216-.664l2.24-2.183-3.096-.45a.75.75 0 01-.564-.41L8 2.694v.001z"></path>'}}}},w=function(e,t){e=f(e).replace(/^octicon-/,""),l(O,e)||(e="mark-github");var n=t>=24&&24 in O[e].heights?24:16,r=O[e].heights[n];return'<svg viewBox="0 0 '+r.width+" "+n+'" width="'+t*r.width/n+'" height="'+t+'" class="octicon octicon-'+e+'" aria-hidden="true">'+r.path+"</svg>"},_={},x=function(e,t){var n=_[e]||(_[e]=[]);if(!(n.push(t)>1)){var r=function(e){var t;return function(){t||(t=1,e.apply(this,arguments))}}((function(){for(delete _[e];t=n.shift();)t.apply(null,arguments)}));if(d){var o=new a;v(o,"abort",r),v(o,"error",r),v(o,"load",(function(){var e;try{e=JSON.parse(this.responseText)}catch(t){return void r(t)}r(200!==this.status,e)})),o.open("GET",e),o.send()}else{var i=this||window;i._=function(e){i._=null,r(200!==e.meta.status,e.data)};var c=u(i.document)("script",{async:!0,src:e+(-1!==e.indexOf("?")?"&":"?")+"callback=_"}),s=function(){i._&&i._({meta:{}})};v(c,"load",s),v(c,"error",s),function(e,t,n){if(null!=e.readyState){v(e,"readystatechange",(function r(){if(t.test(e.readyState))return y(e,"readystatechange",r),n.apply(this,arguments)}))}}(c,/de|m/,s),i.document.getElementsByTagName("head")[0].appendChild(c)}}},E=function(e,t,n){var r=u(e.ownerDocument),o=e.appendChild(r("style",{type:"text/css"})),i="body{margin:0}a{text-decoration:none;outline:0}.widget{display:inline-block;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;font-size:0;line-height:0;white-space:nowrap}.btn,.social-count{position:relative;display:inline-block;display:inline-flex;height:14px;padding:2px 5px;font-size:11px;font-weight:600;line-height:14px;vertical-align:bottom;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:repeat-x;background-position:-1px -1px;background-size:110% 110%;border:1px solid}.btn{border-radius:.25em}.btn:not(:last-child){border-radius:.25em 0 0 .25em}.social-count{border-left:0;border-radius:0 .25em .25em 0}.widget-lg .btn,.widget-lg .social-count{height:16px;padding:5px 10px;font-size:12px;line-height:16px}.octicon{display:inline-block;vertical-align:text-top;fill:currentColor;overflow:visible}"+b(t["data-color-scheme"]);o.styleSheet?o.styleSheet.cssText=i:o.appendChild(e.ownerDocument.createTextNode(i));var a="large"===f(t["data-size"]),c=r("a",{className:"btn",href:t.href,rel:"noopener",target:"_blank",title:t.title||void 0,"aria-label":t["aria-label"]||void 0,innerHTML:w(t["data-icon"],a?16:14)+" "},[r("span",{},[t["data-text"]||""])]),s=e.appendChild(r("div",{className:"widget"+(a?" widget-lg":"")},[c])),l=c.hostname.replace(/\.$/,"");if(("."+l).substring(l.length-p.length)!=="."+p)return c.removeAttribute("href"),void n(s);var d=(" /"+c.pathname).split(/\/+/);if(((l===p||l==="gist."+p)&&"archive"===d[3]||l===p&&"releases"===d[3]&&("download"===d[4]||"latest"===d[4]&&"download"===d[5])||l==="codeload."+p)&&(c.target="_top"),"true"===f(t["data-show-count"])&&l===p&&"marketplace"!==d[1]&&"sponsors"!==d[1]&&"orgs"!==d[1]&&"users"!==d[1]&&"-"!==d[1]){var h,v;if(!d[2]&&d[1])v="followers",h="?tab=followers";else if(!d[3]&&d[2])v="stargazers_count",h="/stargazers";else if(d[4]||"subscription"!==d[3])if(d[4]||"fork"!==d[3]){if("issues"!==d[3])return void n(s);v="open_issues_count",h="/issues"}else v="forks_count",h="/network/members";else v="subscribers_count",h="/watchers";var y=d[2]?"/repos/"+d[1]+"/"+d[2]:"/users/"+d[1];x.call(this,"https://api.github.com"+y,(function(e,t){if(!e){var o=t[v];s.appendChild(r("a",{className:"social-count",href:t.html_url+h,rel:"noopener",target:"_blank","aria-label":o+" "+v.replace(/_count$/,"").replace("_"," ").slice(0,o<2?-1:void 0)+" on GitHub"},[(""+o).replace(/\B(?=(\d{3})+(?!\d))/g,",")]))}n(s)}))}else n(s)},S=window.devicePixelRatio||1,C=function(e){return(S>1?o.ceil(o.round(e*S)/S*2)/2:o.ceil(e))||0},j=function(e,t){e.style.width=t[0]+"px",e.style.height=t[1]+"px"},k=function(e,t){if(null!=e&&null!=t)if(e.getAttribute&&(e=function(e){var t={href:e.href,title:e.title,"aria-label":e.getAttribute("aria-label")};return c(["icon","color-scheme","text","size","show-count"],(function(n){var r="data-"+n;t[r]=e.getAttribute(r)})),null==t["data-text"]&&(t["data-text"]=e.textContent||e.innerText),t}(e)),h){var n=s("span");E(n.attachShadow({mode:"closed"}),e,(function(){t(n)}))}else{var i=s("iframe",{src:"javascript:0",title:e.title||void 0,allowtransparency:!0,scrolling:"no",frameBorder:0});j(i,[0,0]),i.style.border="none";v(i,"load",(function n(){var a,c=i.contentWindow;try{a=c.document.body}catch(u){return void r.body.appendChild(i.parentNode.removeChild(i))}y(i,"load",n),E.call(c,a,e,(function(n){var r=function(e){var t=e.offsetWidth,n=e.offsetHeight;if(e.getBoundingClientRect){var r=e.getBoundingClientRect();t=o.max(t,C(r.width)),n=o.max(n,C(r.height))}return[t,n]}(n);i.parentNode.removeChild(i),function(e,t,n){v(e,t,(function r(){return y(e,t,r),n.apply(this,arguments)}))}(i,"load",(function(){j(i,r)})),i.src="https://unpkg.com/github-buttons@2.22.0/dist/buttons.html#"+(i.name=function(e,t,n,r){null==t&&(t="&"),null==n&&(n="="),null==r&&(r=window.encodeURIComponent);var o=[];for(var i in e){var a=e[i];null!=a&&o.push(r(i)+n+r(a))}return o.join(t)}(e)),t(i)}))})),r.body.appendChild(i)}}},xdJY:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="EditOutlined";t.a=o.forwardRef(c)},xgf2:function(e,t,n){var r=n("9JhN"),o=n("RJmV"),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},xk3d:function(e,t,n){"use strict";n.r(t),n.d(t,"AMapScene",(function(){return h})),n.d(t,"MapboxScene",(function(){return w})),n.d(t,"AMapSceneV2",(function(){return k})),n.d(t,"MapScene",(function(){return N})),n.d(t,"Scene",(function(){return F})),n.d(t,"Control",(function(){return G})),n.d(t,"CustomControl",(function(){return J})),n.d(t,"PolygonLayer",(function(){return ge})),n.d(t,"LineLayer",(function(){return be})),n.d(t,"PointLayer",(function(){return Oe})),n.d(t,"HeatmapLayer",(function(){return we})),n.d(t,"RasterLayer",(function(){return _e})),n.d(t,"ImageLayer",(function(){return xe})),n.d(t,"CityBuildingLayer",(function(){return Ee})),n.d(t,"LayerEvent",(function(){return Ce})),n.d(t,"useSceneValue",(function(){return a})),n.d(t,"SceneContext",(function(){return i})),n.d(t,"useLayerValue",(function(){return $})),n.d(t,"LayerContext",(function(){return Q})),n.d(t,"ColorComponent",(function(){return je})),n.d(t,"Popup",(function(){return De})),n.d(t,"Marker",(function(){return Ge})),n.d(t,"SceneEvent",(function(){return Ye})),n.d(t,"LoadImage",(function(){return Xe}));var r=n("ERkP"),o=n.n(r),i=Object(r.createContext)({});function a(){return Object(r.useContext)(i)}var c=n("T1QL"),u=n("tmTm");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=o.a.memo((function(e){var t=e.style,n=e.className,a=e.map,s=e.option,f=e.onSceneLoaded,d=e.children,h=Object(r.useRef)(null),v=p(Object(r.useState)(),2),y=v[0],m=v[1];return Object(r.useEffect)((function(){var e=new c.Scene(l(l({id:h.current},s),{},{map:new u.a(a)}));return e.on("loaded",(function(){m(e),f&&f(e)})),function(){e.destroy()}}),[]),Object(r.useEffect)((function(){y&&a.style&&y.setMapStyle(a.style)}),[JSON.stringify(a.style)]),Object(r.useEffect)((function(){y&&a.zoom&&y.setZoom(a.zoom)}),[a.zoom]),Object(r.useEffect)((function(){y&&a.center&&y.setCenter(a.center)}),[JSON.stringify(a.center)]),Object(r.useEffect)((function(){y&&a.pitch&&y.setPitch(a.pitch)}),[a.pitch]),Object(r.useEffect)((function(){y&&a.rotation&&y.setRotation(a.rotation)}),[a.rotation]),o.a.createElement(i.Provider,{value:y},o.a.createElement("div",{ref:h,className:n,style:t},y&&d))})),v=n("P2D4");function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w=o.a.memo((function(e){var t=e.style,n=e.className,a=e.map,u=e.option,s=e.onSceneLoaded,l=Object(r.createRef)(),f=b(Object(r.useState)(),2),p=f[0],d=f[1];return Object(r.useEffect)((function(){var e=new c.Scene(m(m({id:l.current},u),{},{map:new v.a(a)}));return e.on("loaded",(function(){d(e),s&&s(e)})),function(){e.destroy()}}),[]),Object(r.useEffect)((function(){p&&a.style&&p.setMapStyle(a.style)}),[JSON.stringify(a.style)]),Object(r.useEffect)((function(){p&&a.zoom&&p.setZoom(a.zoom)}),[a.zoom]),Object(r.useEffect)((function(){p&&a.center&&p.setCenter(a.center)}),[JSON.stringify(a.center)]),Object(r.useEffect)((function(){p&&void 0!==a.pitch&&p.setPitch(a.pitch||0)}),[a.pitch]),Object(r.useEffect)((function(){p&&a.rotation&&p.setRotation(a.rotation)}),[a.rotation]),o.a.createElement(i.Provider,{value:p},Object(r.createElement)("div",{ref:l,style:t,className:n},p&&e.children))})),_=n("bSuG");function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var k=o.a.memo((function(e){var t=e.style,n=e.className,a=e.map,u=e.option,s=e.onSceneLoaded,l=e.children,f=Object(r.useRef)(null),p=C(Object(r.useState)(),2),d=p[0],h=p[1];return Object(r.useEffect)((function(){var e=new c.Scene(E(E({id:f.current},u),{},{map:new _.a(a)}));return e.on("loaded",(function(){h(e),s&&s(e)})),function(){e.destroy()}}),[]),Object(r.useEffect)((function(){d&&a.style&&d.setMapStyle(a.style)}),[JSON.stringify(a.style)]),Object(r.useEffect)((function(){d&&a.zoom&&d.setZoom(a.zoom)}),[a.zoom]),Object(r.useEffect)((function(){d&&a.center&&d.setCenter(a.center)}),[JSON.stringify(a.center)]),Object(r.useEffect)((function(){d&&a.pitch&&d.setPitch(a.pitch)}),[a.pitch]),Object(r.useEffect)((function(){d&&a.rotation&&d.setRotation(a.rotation)}),[a.rotation]),o.a.createElement(i.Provider,{value:d},o.a.createElement("div",{ref:f,className:n,style:t},d&&l))})),P=n("hOO4");function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var N=o.a.memo((function(e){var t=e.style,n=e.className,a=e.map,u=e.option,s=e.onSceneLoaded,l=e.children,f=Object(r.useRef)(null),p=L(Object(r.useState)(),2),d=p[0],h=p[1];return Object(r.useEffect)((function(){var e=new c.Scene(M(M({id:f.current},u),{},{map:new P.default(a)}));return e.on("loaded",(function(){h(e),s&&s(e)})),function(){e.destroy()}}),[]),Object(r.useEffect)((function(){d&&a.style&&d.setMapStyle(a.style)}),[JSON.stringify(a.style)]),Object(r.useEffect)((function(){d&&a.zoom&&d.setZoom(a.zoom)}),[a.zoom]),Object(r.useEffect)((function(){d&&a.center&&d.setCenter(a.center)}),[JSON.stringify(a.center)]),Object(r.useEffect)((function(){d&&a.pitch&&d.setPitch(a.pitch)}),[a.pitch]),Object(r.useEffect)((function(){d&&a.rotation&&d.setRotation(a.rotation)}),[a.rotation]),o.a.createElement(i.Provider,{value:d},o.a.createElement("div",{ref:f,className:n,style:t},d&&l))}));function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var F=o.a.memo((function(e){var t=e.style,n=e.className,a=e.map,u=e.children,s=Object(r.useRef)(null),l=I(Object(r.useState)(),2),f=l[0],p=l[1];return Object(r.useEffect)((function(){var e=new c.Scene({id:s.current,map:a});return e.on("loaded",(function(){p(e)})),function(){e.destroy()}}),[]),o.a.createElement(i.Provider,{value:f},o.a.createElement("div",{ref:s,className:n,style:t},f&&u))})),z=["type","position"];function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var G=o.a.memo((function(e){var t=a(),n=Object(r.useRef)(),o=e.type,i=e.position,u=H(e,z);return Object(r.useEffect)((function(){var e;switch(o){case"scale":e=new c.Scale({position:i||"bottomright"});break;case"zoom":e=new c.Zoom(U({position:i||"topright"},u));break;case"logo":e=new c.Logo(U({position:i||"bottomleft"},u));case"layer":e=new c.Layers(U({position:i||"bottomleft"},u))}return n.current=e,t.addControl(e),function(){n.current=void 0,t.removeControl(e)}}),[o]),Object(r.useEffect)((function(){n.current&&n.current.setPosition(i||"bottomleft")}),[i]),null})),W=n("7nmT");function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var X=r.useEffect,q=r.useState,Z=/\B([A-Z])/g;function J(e){var t=e.className,n=e.style,r=e.children,o=e.position,i=Y(q(),2),u=i[0],s=i[1],l=a(),f=Y(q((function(){return document.createElement("div")})),1)[0];return X((function(){var e=new c.Control({position:o});return e.onAdd=function(){if(t&&(f.className=t),n){var e=Object.keys(n).map((function(e){return"".concat((t=e,t.replace(Z,"-$1").toLowerCase()),":").concat(n[e]);var t})).join(";");f.style.cssText=e}return f},e.onRemove=function(){},s(e),l.addControl(e),function(){l.removeControl(e)}}),[]),X((function(){u&&u.setPosition(o||"bottomleft")}),[o]),Object(W.createPortal)(r,f)}var Q=Object(r.createContext)({});function $(){return Object(r.useContext)(Q)}var ee=n("nsO7"),te=(r.useEffect,r.memo((function(e){var t=e.layer,n=e.active;return t.active(n.option),null}),ee.isEqual)),ne=(r.useEffect,r.memo((function(e){var t=e.layer,n=e.animate;return t.animate(n),null}),ee.isEqual)),re=(r.useEffect,r.memo((function(e){var t=e.layer,n=e.color;return n.field?t.color(n.field,n.values):t.color(n.values),null}),ee.isEqual)),oe=r.memo((function(e){var t=e.layer,n=e.filter;return n.field&&t.filter(n.field,n.values),null}),ee.isEqual),ie=r.memo((function(e){var t=e.layer,n=e.scale;return t.scale(n.values),null}),ee.isEqual),ae=(r.useEffect,r.memo((function(e){var t=e.layer,n=e.select;return t.select(n.option),null}),ee.isEqual)),ce=r.memo((function(e){var t=e.layer,n=e.shape;return n.field?t.shape(n.field,n.values):t.shape(n.values),null}),ee.isEqual),ue=r.memo((function(e){var t=e.layer,n=e.size;return n.field?t.size(n.field,n.values):t.size(n.values),null}),ee.isEqual),se=["data"];function le(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fe=r.memo((function(e){var t=e.layer,n=e.source,r=n.data,o=le(n,se);return t.inited?t.setData(r,o):t.source(r,o),o.autoFit&&t.fitBounds(o&&o.fitBoundsOptions),null}),ee.isEqual),pe=(r.useEffect,r.memo((function(e){var t=e.layer,n=e.style;return t.style(n),null}),ee.isEqual));function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return he(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ve=r.useEffect,ye=r.useState;function me(e,t){var n=t.source,o=t.color,i=t.shape,u=t.style,s=t.size,l=t.scale,f=t.active,p=t.select,d=t.filter,h=t.animate,v=t.options,y=t.onLayerLoaded,m=a(),g=de(ye((function(){var t;switch(e){case"polygonLayer":t=new c.PolygonLayer(v);break;case"lineLayer":t=new c.LineLayer(v);break;case"pointLayer":t=new c.PointLayer(v);break;case"heatmapLayer":t=new c.HeatmapLayer(v);break;case"rasterLayer":t=new c.RasterLayer(v);break;case"imageLayer":t=new c.ImageLayer(v);break;case"citybuildingLayer":t=new c.CityBuildingLayer(v);break;default:t=new c.PolygonLayer(v)}return t.on("inited",(function(){y&&y(t,m)})),t})),1)[0];return ve((function(){return m.addLayer(g),function(){m.removeLayer(g)}}),[]),ve((function(){g.inited&&v&&g.updateLayerConfig(v)}),[null==v?void 0:v.minZoom,null==v?void 0:v.maxZoom,null==v?void 0:v.visible]),ve((function(){g.inited&&(null==v?void 0:v.zIndex)&&g.setIndex(v.zIndex)}),[null==v?void 0:v.zIndex]),ve((function(){g.inited&&(null==v?void 0:v.blend)&&g.setBlend(v.blend)}),[null==v?void 0:v.blend]),ve((function(){m.render()})),r.createElement(Q.Provider,{value:g},r.createElement(fe,{layer:g,source:n}),l&&r.createElement(ie,{layer:g,scale:l}),o&&r.createElement(re,{layer:g,color:o}),s&&r.createElement(ue,{layer:g,size:s}),i&&r.createElement(ce,{layer:g,shape:i}),u&&r.createElement(pe,{layer:g,style:u}),f&&r.createElement(te,{layer:g,active:f}),p&&r.createElement(ae,{layer:g,select:p}),d&&r.createElement(oe,{layer:g,filter:d}),h&&r.createElement(ne,{layer:g,animate:h}),t.children)}var ge=r.memo((function(e){return me("polygonLayer",e)})),be=r.memo((function(e){return me("lineLayer",e)})),Oe=r.memo((function(e){return me("pointLayer",e)})),we=r.memo((function(e){return me("heatmapLayer",e)})),_e=r.memo((function(e){return me("rasterLayer",e)})),xe=r.memo((function(e){return me("imageLayer",e)})),Ee=r.memo((function(e){return me("citybuildingLayer",e)})),Se=r.useEffect,Ce=r.memo((function(e){var t=e.type,n=e.handler,r=$();return Se((function(){return r.off(t,n),r.on(t,n),function(){r.off(t,n)}}),[t,n]),null})),je=r.memo((function(e){var t=e.items,n=void 0===t?[{title:"1",color:"rgb(239,243,255)"},{title:"10",color:"rgb(198,219,239)"},{title:"30",color:"rgb(158,202,225)"},{title:"50",color:"rgb(107,174,214)"},{title:"60",color:"rgb(49,130,189)"},{title:"100",color:"rgb(8,81,156)"}]:t;return r.createElement("div",null,r.createElement("div",null,n.map((function(e,t){return r.createElement("div",{key:t,style:{background:e.color,height:"100%",display:"inline-block",cursor:"pointer",width:(100-n.length)/n.length+"%",marginRight:"1%",padding:5}})}))),r.createElement("div",null,n.map((function(e,t){return r.createElement("div",{key:t,style:{background:"#fff",height:"100%",display:"inline-block",textAlign:"left",cursor:"pointer",width:(100-n.length)/n.length+"%",marginRight:"1%"}},e.title)}))))}));function ke(e){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach((function(t){Me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Le(e,t){return(Le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ie(e);if(t){var o=Ie(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ne(this,n)}}function Ne(e,t){if(t&&("object"===ke(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ie(e){return(Ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var De=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Le(e,t)}(u,e);var t,n,o,a=Re(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).el=void 0,t.scene=void 0,t.popup=void 0,t.el=document.createElement("div"),t}return t=u,(n=[{key:"componentDidMount",value:function(){var e,t=this.props,n=t.lnglat,r=t.children,o=t.option,i=t.lngLat,a=new c.Popup(Te(Te({},o),{},{stopPropagation:null===(e=this.props.option)||void 0===e?void 0:e.stopPropagation}));n&&a.setLnglat(n),i&&a.setLnglat(i),r&&a.setDOMContent(this.el),this.popup=a,this.scene.addPopup(a)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a,u,s=Array.isArray(e.lnglat)?e.lnglat:[null==e||null===(t=e.lnglat)||void 0===t?void 0:t.lng,null==e||null===(n=e.lnglat)||void 0===n?void 0:n.lat],l=Array.isArray(this.props.lnglat)?this.props.lnglat:[null===(r=this.props)||void 0===r||null===(o=r.lnglat)||void 0===o?void 0:o.lng,null===(i=this.props)||void 0===i||null===(a=i.lnglat)||void 0===a?void 0:a.lat];s.toString()!==l.toString()&&(this.popup.remove(),this.popup=new c.Popup(Te(Te({},this.props.option),{},{stopPropagation:null===(u=this.props.option)||void 0===u?void 0:u.stopPropagation})),this.popup.setLnglat(this.props.lnglat),this.popup.setDOMContent(this.el),this.scene.addPopup(this.popup))}},{key:"componentWillUnmount",value:function(){this.popup.remove()}},{key:"render",value:function(){var e=this;return r.createElement(i.Consumer,{},(function(t){return t&&(e.scene=t),Object(W.createPortal)(e.props.children,e.el)}))}}])&&Ae(t.prototype,n),o&&Ae(t,o),u}(r.PureComponent);function Fe(e){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=He(e);if(t){var o=He(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){if(t&&("object"===Fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function He(e){return(He=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Be(e,t)}(u,e);var t,n,o,a=Ue(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).el=void 0,t.scene=void 0,t.marker=void 0,t.el=document.createElement("div"),t}return t=u,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.lnglat,n=e.children,r=e.option,o=e.onMarkerLoaded,i=new c.Marker(r);t&&i.setLnglat(t),n&&i.setElement(this.el),this.marker=i,o&&o(i),this.scene.addMarker(i)}},{key:"componentDidUpdate",value:function(e){var t;(null==e?void 0:e.lnglat.toString())!==(null===(t=this.props)||void 0===t?void 0:t.lnglat.toString())&&this.marker.setLnglat(this.props.lnglat)}},{key:"componentWillUnmount",value:function(){this.marker&&this.marker.remove()}},{key:"render",value:function(){var e=this;return r.createElement(i.Consumer,{},(function(t){return t&&(e.scene=t),Object(W.createPortal)(e.props.children,e.el)}))}}])&&ze(t.prototype,n),o&&ze(t,o),u}(r.PureComponent),We=r.useEffect,Ye=r.memo((function(e){var t=e.type,n=e.handler,r=a();return We((function(){return r.on(t,n),function(){r.off(t,n)}}),[t]),null})),Ke=r.useEffect,Xe=r.memo((function(e){var t=e.name,n=e.url,r=a();return Ke((function(){r.addImage(t,n)}),[t,n]),null}))},xnAt:function(e,t,n){"use strict";var r=n("IGGJ");t.__esModule=!0,t.default=function(e,t,n){var r=v(n,t);return e.addEventListener("click",r),function(){return e.removeEventListener("click",r)}},t.routeThroughBrowserOrApp=t.hashShouldBeFollowed=t.pathIsNotHandledByApp=t.urlsAreOnSameOrigin=t.authorIsForcingNavigation=t.anchorsTargetIsEquivalentToSelf=t.findClosestAnchor=t.navigationWasHandledElsewhere=t.slashedPathname=t.userIsForcingNavigation=void 0;var o=r(n("lL5k")),i=n("Wbzz"),a=function(e){return 0!==e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey};t.userIsForcingNavigation=a;var c=function(e){return"/"===e[0]?e:"/"+e};t.slashedPathname=c;var u=function(e){return e.defaultPrevented};t.navigationWasHandledElsewhere=u;var s=function(e){for(;e.parentNode;e=e.parentNode)if("a"===e.nodeName.toLowerCase())return e;return null};t.findClosestAnchor=s;var l=function(e){return!1===e.hasAttribute("target")||null==e.target||["_self",""].includes(e.target)||"_parent"===e.target&&(!e.ownerDocument.defaultView.parent||e.ownerDocument.defaultView.parent===e.ownerDocument.defaultView)||"_top"===e.target&&(!e.ownerDocument.defaultView.top||e.ownerDocument.defaultView.top===e.ownerDocument.defaultView)};t.anchorsTargetIsEquivalentToSelf=l;var f=function(e){return!0===e.hasAttribute("download")||!1===l(e)};t.authorIsForcingNavigation=f;var p=function(e,t){return e.protocol===t.protocol&&e.host===t.host};t.urlsAreOnSameOrigin=p;var d=function(e,t){return!1===t.test(c(e.pathname))||-1!==e.pathname.search(/^.*\.((?!htm)[a-z0-9]{1,5})$/i)};t.pathIsNotHandledByApp=d;var h=function(e,t){return""!==t.hash&&(""===t.pathname||t.pathname===e.pathname)};t.hashShouldBeFollowed=h;var v=function(e,t){return function(n){if(window.___failedResources)return!0;if(a(n))return!0;if(u(n))return!0;var r=s(n.target);if(null==r)return!0;if(f(r))return!0;var l=document.createElement("a");""!==r.href&&(l.href=r.href),"SVGAnimatedString"in window&&r.href instanceof SVGAnimatedString&&(l.href=r.href.animVal);var v=document.createElement("a");if(v.href=window.location.href,!1===p(v,l))return!0;var y=new RegExp("^"+(0,o.default)((0,i.withPrefix)("/")));if(d(l,y))return!0;if(h(v,l))return!0;if(t.excludePattern&&new RegExp(t.excludePattern).test(l.pathname))return!0;n.preventDefault();var m=c(l.pathname).replace(y,"/");return e(""+m+l.search+l.hash),!1}};t.routeThroughBrowserOrApp=v},xtsi:function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n("LeKB"),i=n("emEt").publicLoader,a=i.getResourcesForPathname,c=i.getResourcesForPathnameSync,u=i.getResourceURLsForPathname,s=i.loadPage,l=i.loadPageSync;t.apiRunner=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;var f=o.map((function(n){if(n.plugin[e]){t.getResourcesForPathnameSync=c,t.getResourcesForPathname=a,t.getResourceURLsForPathname=u,t.loadPage=s,t.loadPageSync=l;var r=n.plugin[e](t,n.options);return r&&i&&(t=i({args:t,result:r,plugin:n})),r}}));return(f=f.filter((function(e){return"undefined"!==r(e)}))).length>0?f:n?[n]:[]},t.apiRunnerAsync=function(e,t,n){return o.reduce((function(n,r){return r.plugin[e]?n.then((function(){return r.plugin[e](t,r.options)})):n}),Promise.resolve())}},xyj9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;var r=n("BDtw");t.deconstructPacket=function(e){var t=[],n=e.data,o=e;return o.data=function e(t,n){if(!t)return t;if(r.isBinary(t)){var o={_placeholder:!0,num:n.length};return n.push(t),o}if(Array.isArray(t)){for(var i=new Array(t.length),a=0;a<t.length;a++)i[a]=e(t[a],n);return i}if("object"==typeof t&&!(t instanceof Date)){var c={};for(var u in t)t.hasOwnProperty(u)&&(c[u]=e(t[u],n));return c}return t}(n,t),o.attachments=t.length,{packet:o,buffers:t}},t.reconstructPacket=function(e,t){return e.data=function e(t,n){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<n.length)return n[t.num];throw new Error("illegal attachments")}if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=e(t[r],n);else if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&(t[o]=e(t[o],n));return t}(e.data,t),e.attachments=void 0,e}},xynK:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="SearchOutlined";t.a=o.forwardRef(c)},"y/9h":function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},y7Du:function(e,t,n){"use strict";var r,o=n("LB+V"),i=n("fw2E").a["__core-js_shared__"],a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";var c=function(e){return!!a&&a in e},u=n("gDU4"),s=n("XKHd"),l=/^\[object .+?Constructor\]$/,f=Function.prototype,p=Object.prototype,d=f.toString,h=p.hasOwnProperty,v=RegExp("^"+d.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var y=function(e){return!(!Object(u.a)(e)||c(e))&&(Object(o.a)(e)?v:l).test(Object(s.a)(e))};var m=function(e,t){return null==e?void 0:e[t]};t.a=function(e,t){var n=m(e,t);return y(n)?n:void 0}},yObT:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return o}));var o=function(){function e(t){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=1e4,(r="size")in(n=this)?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.size=t||1e4}var t,n,o;return t=e,(n=[{key:"setSize",value:function(e){this.size=e}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(e){return(180+e)/360*this.size}},{key:"mercatorYfromLat",value:function(e){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(e){return e/this.size*360-180}},{key:"latFromMercatorY",value:function(e){var t=180-360*(1-e/this.size);return 360/Math.PI*Math.atan(Math.exp(t*Math.PI/180))-90}},{key:"project",value:function(e){return[this.mercatorXfromLng(e[0]),this.mercatorYfromLat(e[1])]}},{key:"unproject",value:function(e){return[this.lngFromMercatorX(e[0]),this.latFromMercatorY(e[1])]}}])&&r(t.prototype,n),o&&r(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},yRya:function(e,t,n){var r=n("cLeC"),o=n("eiXn"),i=n("N4z3"),a=n("H17f").indexOf,c=n("1odi"),u=r([].push);e.exports=function(e,t){var n,r=i(e),s=0,l=[];for(n in r)!o(c,n)&&o(r,n)&&u(l,n);for(;t.length>s;)o(r,n=t[s++])&&(~a(l,n)||u(l,n));return l}},yWCo:function(e,t,n){var r=n("T0aG").default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var u=a?Object.getOwnPropertyDescriptor(e,c):null;u&&(u.get||u.set)?Object.defineProperty(i,c,u):i[c]=e[c]}return i.default=e,n&&n.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},yZHP:function(e,t,n){var r=n("tlBq"),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,c){var u=1&n,s=r(e),l=s.length;if(l!=r(t).length&&!u)return!1;for(var f=l;f--;){var p=s[f];if(!(u?p in t:o.call(t,p)))return!1}var d=c.get(e),h=c.get(t);if(d&&h)return d==t&&h==e;var v=!0;c.set(e,t),c.set(t,e);for(var y=u;++f<l;){var m=e[p=s[f]],g=t[p];if(i)var b=u?i(g,m,p,t,e,c):i(m,g,p,e,t,c);if(!(void 0===b?m===g||a(m,g,n,i,c):b)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var O=e.constructor,w=t.constructor;O==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof O&&O instanceof O&&"function"==typeof w&&w instanceof w||(v=!1)}return c.delete(e),c.delete(t),v}},yiAd:function(e,t,n){"use strict";var r=n("Czhu"),o=n("ERkP"),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},a=n("vspj"),c=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};c.displayName="CaretDownFilled";t.a=o.forwardRef(c)},yl2r:function(e,t,n){var r=n("WhsZ");e.exports=r((function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}))},"z/7U":function(e,t,n){"use strict";t.__esModule=!0,t.SessionStorage=void 0;var r=function(){function e(){}var t=e.prototype;return t.read=function(e,t){var n=this.getStateKey(e,t);try{var r=window.sessionStorage.getItem(n);return r?JSON.parse(r):0}catch(o){return window&&window.___GATSBY_REACT_ROUTER_SCROLL&&window.___GATSBY_REACT_ROUTER_SCROLL[n]?window.___GATSBY_REACT_ROUTER_SCROLL[n]:0}},t.save=function(e,t,n){var r=this.getStateKey(e,t),o=JSON.stringify(n);try{window.sessionStorage.setItem(r,o)}catch(i){window&&window.___GATSBY_REACT_ROUTER_SCROLL||(window.___GATSBY_REACT_ROUTER_SCROLL={}),window.___GATSBY_REACT_ROUTER_SCROLL[r]=JSON.parse(o)}},t.getStateKey=function(e,t){var n="@@scroll|"+e.pathname;return null==t?n:n+"|"+t},e}();t.SessionStorage=r},"z/oK":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("pufz"),o=n("zEXi"),i=n("pfNN"),a=n("PGAt");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(p,e);var t,n,i,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return t=p,(n=[{key:"getUninforms",value:function(){var e=this.layer.getLayerConfig(),t=e.opacity,n=void 0===t?1:t,r=e.strokeOpacity,o=void 0===r?1:r,i=e.strokeWidth,a=void 0===i?0:i,c=e.stroke,u=void 0===c?"rgba(0,0,0,0)":c;return{u_additive:"additive"===e.blend?1:0,u_opacity:Number(n),u_stroke_opacity:Number(o),u_stroke_width:Number(a),u_stroke_color:this.getStrokeColor(u)}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),a.g)}},{key:"initModels",value:function(e){this.buildModels(e)}},{key:"buildModels",value:function(e){var t=this.layer.getLayerConfig(),n=t.workerEnabled,r=void 0!==n&&n,i=t.usage;this.layer.triangulation=a.g,this.layer.buildLayerModel({moduleName:"pointTile_"+i,vertexShader:'attribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec3 a_Extrude;\nattribute float a_Size;\nattribute float a_Shape;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\n\n// uniform vec2 u_tileOrigin;\n// uniform float u_coord;\n\nvarying vec4 v_data;\nvarying vec4 v_color;\nvarying float v_radius;\n\nuniform float u_opacity : 1;\nuniform float u_stroke_opacity : 1;\nuniform float u_stroke_width : 2;\nuniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0];\n\n#pragma include "projection"\n#pragma include "picking"\n\nvoid main() {\n vec3 extrude = a_Extrude;\n float shape_type = a_Shape;\n float newSize = setPickingSize(a_Size);\n\n // cal style mapping\n\n v_color = a_Color;\n v_radius = newSize;\n\n // anti-alias\n // float antialiased_blur = -max(u_blur, antialiasblur);\n float antialiasblur = -max(2.0 / u_DevicePixelRatio / a_Size, 0.0);\n\n vec2 offset = (extrude.xy * (newSize + u_stroke_width));\n offset = project_pixel(offset);\n\n v_data = vec4(extrude.x, extrude.y, antialiasblur,shape_type);\n\n vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom);\n }\n\n// if(u_coord > 0.0) {\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * vec4(project_pos.xy + offset, 0.0, 1.0);\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0));\n }\n// } else {\n\n // vec2 pointPos = a_Position.xy;\n // vec4 world = vec4(project_mvt_offset_position(vec4(u_tileOrigin, 0.0, 1.0)).xyz, 1.0); // 瓦片起始点的世界坐标\n\n // vec2 pointOffset = pointPos * pow(2.0, u_Zoom); // 瓦片内的点的偏移坐标\n \n // world.xy += offset;\n // world.xy += pointOffset;\n\n // if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // // Needs to be divided with project_uCommonUnitsPerMeter\n // world.w *= u_PixelsPerMeter.z;\n // }\n\n // gl_Position = u_ViewProjectionMatrix * world + u_ViewportCenterProjection;\n// }\n\n \n setPickingColor(a_PickingColor);\n\n\n}\n',fragmentShader:"uniform float u_additive;\n\nuniform float u_opacity : 1;\nuniform float u_stroke_opacity : 1;\nuniform float u_stroke_width : 2;\nuniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0];\n\nvarying vec4 v_data;\nvarying vec4 v_color;\nvarying float v_radius;\n\n#pragma include \"sdf_2d\"\n#pragma include \"picking\"\n\nvoid main() {\n int shape = int(floor(v_data.w + 0.5));\n\n\n lowp float antialiasblur = v_data.z;\n float r = v_radius / (v_radius + u_stroke_width);\n\n float outer_df;\n float inner_df;\n // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica'\n if (shape == 0) {\n outer_df = sdCircle(v_data.xy, 1.0);\n inner_df = sdCircle(v_data.xy, r);\n } else if (shape == 1) {\n outer_df = sdEquilateralTriangle(1.1 * v_data.xy);\n inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy);\n } else if (shape == 2) {\n outer_df = sdBox(v_data.xy, vec2(1.));\n inner_df = sdBox(v_data.xy, vec2(r));\n } else if (shape == 3) {\n outer_df = sdPentagon(v_data.xy, 0.8);\n inner_df = sdPentagon(v_data.xy, r * 0.8);\n } else if (shape == 4) {\n outer_df = sdHexagon(v_data.xy, 0.8);\n inner_df = sdHexagon(v_data.xy, r * 0.8);\n } else if (shape == 5) {\n outer_df = sdOctogon(v_data.xy, 1.0);\n inner_df = sdOctogon(v_data.xy, r);\n } else if (shape == 6) {\n outer_df = sdHexagram(v_data.xy, 0.52);\n inner_df = sdHexagram(v_data.xy, r * 0.52);\n } else if (shape == 7) {\n outer_df = sdRhombus(v_data.xy, vec2(1.0));\n inner_df = sdRhombus(v_data.xy, vec2(r));\n } else if (shape == 8) {\n outer_df = sdVesica(v_data.xy, 1.1, 0.8);\n inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8);\n }\n\n\n float opacity_t = smoothstep(0.0, antialiasblur, outer_df);\n\n float color_t = u_stroke_width < 0.01 ? 0.0 : smoothstep(\n antialiasblur,\n 0.0,\n inner_df\n );\n\n if(u_stroke_width < 0.01) {\n gl_FragColor = vec4(v_color.rgb, v_color.a * u_opacity);\n } else {\n gl_FragColor = mix(vec4(v_color.rgb, v_color.a * u_opacity), u_stroke_color * u_stroke_opacity, color_t);\n }\n\n if(u_additive > 0.0) {\n gl_FragColor *= opacity_t;\n gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a);\n } else {\n gl_FragColor.a *= opacity_t;\n gl_FragColor = filterColor(gl_FragColor);\n }\n}\n",triangulation:a.g,depth:{enable:!1},cull:{enable:!0,face:Object(o.Y)(this.mapService.version)},blend:this.getBlend(),workerEnabled:r,workerOptions:{modelType:"pointTile"},pick:"basemap"!==i}).then((function(t){e([t])})).catch((function(t){console.warn(t),e([])}))}},{key:"clearModels",value:function(){}},{key:"registerBuiltinAttributes",value:function(){var e=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:r.AttributeType.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:3,update:function(e,t,n,r){var o=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],i=r%4*3;return[o[i],o[i+1],o[i+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:r.AttributeType.Attribute,descriptor:{name:"a_Size",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:1,update:function(e){var t=e.size,n=void 0===t?5:t;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:r.AttributeType.Attribute,descriptor:{name:"a_Shape",buffer:{usage:r.gl.DYNAMIC_DRAW,data:[],type:r.gl.FLOAT},size:1,update:function(t){var n=t.shape,r=void 0===n?2:n;return[e.layer.getLayerConfig().shape2d.indexOf(r)]}}})}}])&&s(t.prototype,n),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),p}(i.a)},z4cw:function(e,t,n){var r=n("LOVC"),o=n("q9+l");e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},z9Ev:function(e,t,n){var r=n("VCi3"),o=n("POgt"),i=n("+5th"),a=n("TbR9"),c=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,c(e))}},z9Jh:function(e,t){e.exports=function(e){return e!=e}},zAh6:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("jiyB");function o(e,t,n,r){var o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}var i=n("i6bk");function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getContainer,a=void 0===n?function(){return window}:n,c=t.callback,u=t.duration,s=void 0===u?450:u,l=a(),f=Object(i.a)(l,!0),p=Date.now(),d=function t(){var n=Date.now()-p,a=o(n>s?s:n,f,e,s);Object(i.b)(l)?l.scrollTo(window.pageXOffset,a):l instanceof HTMLDocument||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=a:l.scrollTop=a,n<s?Object(r.a)(t):"function"==typeof c&&c()};Object(r.a)(d)}},zEXi:function(e,t,n){"use strict";n.d(t,"P",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return r})),n.d(t,"l",(function(){return o})),n.d(t,"kb",(function(){return Jt})),n.d(t,"mb",(function(){return Qt})),n.d(t,"jb",(function(){return $t})),n.d(t,"wb",(function(){return en})),n.d(t,"c",(function(){return tn})),n.d(t,"a",(function(){return nn})),n.d(t,"b",(function(){return rn})),n.d(t,"O",(function(){return Ct})),n.d(t,"N",(function(){return jt})),n.d(t,"M",(function(){return kt})),n.d(t,"F",(function(){return Pt})),n.d(t,"J",(function(){return Gt})),n.d(t,"K",(function(){return Wt})),n.d(t,"L",(function(){return Yt})),n.d(t,"G",(function(){return Xt})),n.d(t,"H",(function(){return qt})),n.d(t,"I",(function(){return Zt})),n.d(t,"d",(function(){return Xn})),n.d(t,"ub",(function(){return Zn})),n.d(t,"ab",(function(){return Qn})),n.d(t,"X",(function(){return $n})),n.d(t,"Cb",(function(){return er})),n.d(t,"Z",(function(){return nr})),n.d(t,"w",(function(){return rr})),n.d(t,"db",(function(){return or})),n.d(t,"T",(function(){return lr})),n.d(t,"Hb",(function(){return fr})),n.d(t,"rb",(function(){return pr})),n.d(t,"vb",(function(){return dr})),n.d(t,"tb",(function(){return hr})),n.d(t,"ob",(function(){return vr})),n.d(t,"Jb",(function(){return yr})),n.d(t,"q",(function(){return mr})),n.d(t,"Ib",(function(){return gr})),n.d(t,"r",(function(){return br})),n.d(t,"s",(function(){return Or})),n.d(t,"sb",(function(){return wr})),n.d(t,"Db",(function(){return _r})),n.d(t,"Ab",(function(){return xr})),n.d(t,"z",(function(){return Er})),n.d(t,"x",(function(){return Sr})),n.d(t,"xb",(function(){return Cr})),n.d(t,"B",(function(){return jr})),n.d(t,"A",(function(){return Pr})),n.d(t,"W",(function(){return Tr})),n.d(t,"U",(function(){return Mr})),n.d(t,"C",(function(){return Ar})),n.d(t,"D",(function(){return Lr})),n.d(t,"h",(function(){return Ir})),n.d(t,"y",(function(){return Br})),n.d(t,"g",(function(){return Vr})),n.d(t,"hb",(function(){return Gr})),n.d(t,"Eb",(function(){return Wr})),n.d(t,"E",(function(){return Yr})),n.d(t,"Q",(function(){return Kr})),n.d(t,"V",(function(){return Xr})),n.d(t,"u",(function(){return Ur})),n.d(t,"t",(function(){return qr})),n.d(t,"v",(function(){return Zr})),n.d(t,"bb",(function(){return Jr})),n.d(t,"p",(function(){return Ci})),n.d(t,"Fb",(function(){return Ri})),n.d(t,"R",(function(){return Ii})),n.d(t,"Y",(function(){return Vi})),n.d(t,"ib",(function(){return An})),n.d(t,"nb",(function(){return Ln})),n.d(t,"cb",(function(){return Rn})),n.d(t,"lb",(function(){return Hi})),n.d(t,"S",(function(){return Gi})),n.d(t,"gb",(function(){return Wi})),n.d(t,"o",(function(){return Fi})),n.d(t,"j",(function(){return zi})),n.d(t,"m",(function(){return Oa})),n.d(t,"n",(function(){return Fa})),n.d(t,"yb",(function(){return ta})),n.d(t,"zb",(function(){return na})),n.d(t,"Gb",(function(){return ra})),n.d(t,"eb",(function(){return oa})),n.d(t,"fb",(function(){return ia})),n.d(t,"i",(function(){return ti})),n.d(t,"k",(function(){return ni})),n.d(t,"Bb",(function(){return ri})),n.d(t,"pb",(function(){return tc})),n.d(t,"qb",(function(){return nc}));var r={};n.r(r),n.d(r,"getContainer",(function(){return cn})),n.d(r,"trim",(function(){return un})),n.d(r,"splitWords",(function(){return sn})),n.d(r,"create",(function(){return ln})),n.d(r,"remove",(function(){return fn})),n.d(r,"addClass",(function(){return pn})),n.d(r,"removeClass",(function(){return dn})),n.d(r,"hasClass",(function(){return hn})),n.d(r,"setClass",(function(){return vn})),n.d(r,"getClass",(function(){return yn})),n.d(r,"empty",(function(){return mn})),n.d(r,"setTransform",(function(){return bn})),n.d(r,"triggerResize",(function(){return On})),n.d(r,"printCanvas",(function(){return wn})),n.d(r,"getViewPortScale",(function(){return _n})),n.d(r,"DPR",(function(){return xn}));var o={};function i(e){var t=0;e+="x";for(var n=Math.floor(65745979961613.07),r=0;r<e.length;r++)t>n&&(t=Math.floor(t/137)),t=131*t+e.charCodeAt(r);return t}function a(e){for(var t=5381,n=(e=e.toString()).length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}n.r(o),n.d(o,"sum",(function(){return Cn})),n.d(o,"max",(function(){return En})),n.d(o,"min",(function(){return Sn})),n.d(o,"mean",(function(){return jn})),n.d(o,"mode",(function(){return kn})),n.d(o,"statMap",(function(){return Pn})),n.d(o,"getColumn",(function(){return Tn})),n.d(o,"getSatByColumn",(function(){return Mn}));var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function u(e){this.message=e}function s(e){for(var t,n,r,o,i="",a=0,u=(e=String(e)).length%3;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");i+=c.charAt((t=n<<16|r<<8|o)>>18&63)+c.charAt(t>>12&63)+c.charAt(t>>6&63)+c.charAt(63&t)}return u?i.slice(0,u-3)+"===".substring(u):i}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}u.prototype=new Error,u.prototype.name="InvalidCharacterError";var f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.buffers=t,this.type=n}var t,n,r;return t=e,(n=[{key:"arraybuffer",value:function(){return Promise.resolve(this.buffers[0])}},{key:"stream",value:function(){throw new Error("not implemented")}},{key:"text",value:function(){throw new Error("not implemented")}},{key:"slice",value:function(e,t,n){throw new Error("not implemented")}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),p=n("BkQE"),d="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM?my.getSystemInfoSync().pixelRatio:p.a.devicePixelRatio;function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var y=v((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cancelBubble=!1,this.cancelable=!1,this.target=null,this.currentTarget=null,this.preventDefault=function(){},this.stopPropagation=function(){},this.type=t,this.timeStamp=Date.now()}));function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var O=new WeakMap,w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),O.set(this,{})}var t,n,r;return t=e,(n=[{key:"addEventListener",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=O.get(this);r||(r={}),r[e]||(r[e]=[]),r[e].push(t),O.set(this,r),n.capture,n.once,n.passive}},{key:"removeEventListener",value:function(e,t){var n=O.get(this);if(n){var r=n[e];if(r&&r.length>0)for(var o=r.length;o--;o>0)if(r[o]===t){r.splice(o,1);break}}}},{key:"dispatchEvent",value:function(e){var t=O.get(this)[e.type];if(t){var n,r=m(t);try{for(r.s();!(n=r.n()).done;)(0,n.value)(e)}catch(o){r.e(o)}finally{r.f()}}}}])&&b(t.prototype,n),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return(E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(i,e);var t,n,r,o=S(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).childNodes=[],e}return t=i,(n=[{key:"appendChild",value:function(e){this.childNodes.push(e)}},{key:"cloneNode",value:function(){var e=Object.create(this);return Object.assign(e,this),e}},{key:"removeChild",value:function(e){var t=this.childNodes.findIndex((function(t){return t===e}));return t>-1?this.childNodes.splice(t,1):null}}])&&x(t.prototype,n),r&&x(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(w);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=R(e);if(t){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return L(this,n)}}function L(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N,I,D,F,z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(i,e);var t,n,r,o=A(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).className="",e.children=[],e}return t=i,(n=[{key:"setAttribute",value:function(e,t){this[e]=t}},{key:"getAttribute",value:function(e){return this[e]}},{key:"setAttributeNS",value:function(e,t){this[e]=t}},{key:"getAttributeNS",value:function(e){return this[e]}}])&&T(t.prototype,n),r&&T(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(k);if("undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM){var B=my.getSystemInfoSync();N=B.screenWidth,I=B.screenHeight,D=B.windowWidth,F=B.windowHeight}else{var U=p.a.innerWidth,V=p.a.innerHeight;N=U,I=V,D=U,F=V}var H={width:N,height:I,availWidth:D,availHeight:F,availLeft:0,availTop:0},G=H.availWidth,W=H.availHeight,Y={style:[]};function K(e,t){var n,r;"parentNode"in e||(n=0===t?function(){return null}:1===t?function(){return Y}:function(){return null},Object.defineProperty(e,"parentNode",{enumerable:!0,get:n}));"parentElement"in e||(r=0===t?function(){return null}:1===t?function(){return Y}:function(){return null},Object.defineProperty(e,"parentElement",{enumerable:!0,get:r}))}function X(e){e.style=e.style||{},Object.assign(e.style,{top:"0px",left:"0px",width:G+"px",height:W+"px",margin:"0px",padding:"0px"})}function q(e){"clientLeft"in e||(e.clientLeft=0,e.clientTop=0),"clientWidth"in e||(e.clientWidth=G,e.clientHeight=W),"getBoundingClientRect"in e||(e.getBoundingClientRect=function(){return{x:0,y:0,top:0,left:0,width:this.clientWidth,height:this.clientHeight,right:this.clientWidth,bottom:this.clientHeight}})}function Z(e){"offsetLeft"in e||(e.offsetLeft=0,e.offsetTop=0),"offsetWidth"in e||(e.offsetWidth=G,e.offsetHeight=W)}function J(e){"scrollLeft"in e||(e.scrollLeft=0,e.scrollTop=0),"scrollWidth"in e||(e.scrollWidth=G,e.scrollHeight=W)}function Q(e){var t=function(){return!0};e.classList=[],e.classList.add=t,e.classList.remove=t,e.classList.contains=t,e.classList.toggle=t}function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e,t){return(ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ae(e);if(t){var o=ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oe(this,n)}}function oe(e,t){if(t&&("object"===$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ie(e)}function ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ce(){}var ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(i,e);var t,n,r,o=re(i);function i(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;return te(this,i),(e=o.call(this)).className="",e.children=[],e.focus=ce,e.blur=ce,e.insertBefore=ce,e.appendChild=ce,e.removeChild=ce,e.remove=ce,e.innerHTML="",e.tagName=t.toUpperCase(),K(ie(e),n),X(ie(e)),Q(ie(e)),q(ie(e)),Z(ie(e)),J(ie(e)),e}return t=i,n&&ee(t.prototype,n),r&&ee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(z);function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fe(e,t){return(fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=he(e);if(t){var o=he(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return de(this,n)}}function de(e,t){if(t&&("object"===se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function he(e){return(he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fe(e,t)}(i,e);var t,n,r,o=pe(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"addTextTrack",value:function(){}},{key:"captureStream",value:function(){}},{key:"fastSeek",value:function(){}},{key:"load",value:function(){}},{key:"pause",value:function(){}},{key:"play",value:function(){}}])&&le(t.prototype,n),r&&le(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(ue);function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,t){return(ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=we(e);if(t){var o=we(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oe(this,n)}}function Oe(e,t){if(t&&("object"===ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function we(e){return(we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ge(e,t)}(i,e);var t,n,r,o=be(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,"video")}return t=i,n&&me(t.prototype,n),r&&me(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(ve),xe={};function Ee(){return xe}function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ce(e,t,n){return t&&Se(e.prototype,t),n&&Se(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var je=Ce((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=Ee(),n=t.createImage&&t.createImage()||{};return"tagName"in n||(n.tagName="IMG",n.__proto__=e.prototype),K(n),Q(n),Object.assign(n,{addEventListener:function(e,t){n["on".concat(e)]=t.bind(n)},removeEventListener:function(e){n["on".concat(e)]=null}}),n})),ke={href:"",protocol:"",host:""};function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ae(e,t,n){return t&&Me(e.prototype,t),n&&Me(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Le(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Re(e,t)}function Re(e,t){return(Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=De(e);if(t){var o=De(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ie(this,n)}}function Ie(e,t){if(t&&("object"===Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fe=function(e){Le(n,e);var t=Ne(n);function n(){return Te(this,n),t.call(this,"body",0)}return Ae(n,[{key:"addEventListener",value:function(e,t){}},{key:"removeEventListener",value:function(e,t,n){}},{key:"dispatchEvent",value:function(e){}}]),n}(ue),ze=function(e){Le(n,e);var t=Ne(n);function n(){return Te(this,n),t.call(this,"html",0)}return Ae(n,[{key:"addEventListener",value:function(e,t){}},{key:"removeEventListener",value:function(e,t){}},{key:"dispatchEvent",value:function(e){}}]),n}(ue),Be={},Ue={readyState:"complete",visibilityState:"visible",hidden:!1,fullscreen:!0,scripts:[],style:{},location:ke,ontouchstart:null,ontouchmove:null,ontouchend:null,onvisibilitychange:null,parentNode:null,parentElement:null,head:null,body:null,documentElement:{style:[]},createElement:function(e){return"canvas"===(e=e.toLowerCase())?my.createOffscreenCanvas(1024,128,"2d"):"img"===e?new je:"video"===e?new _e:new ue(e)},createElementNS:function(e,t){return this.createElement(t)},createTextNode:function(e){return e},getElementById:function(e){return null},getElementsByTagName:function(e){return e=e.toLowerCase(),[]},getElementsByTagNameNS:function(e,t){return this.getElementsByTagName(t)},getElementsByName:function(e){return[]},querySelector:function(e){return null},querySelectorAll:function(e){return[]},addEventListener:function(e,t,n){Be[e]||(Be[e]=[]),Be[e].push(t)},removeEventListener:function(e,t){var n=Be[e];if(n&&n.length>0)for(var r=n.length;r--;r>0)if(n[r]===t){n.splice(r,1);break}},dispatchEvent:function(e){var t=e.type,n=Be[t];if(n)for(var r=0;r<n.length;r++)n[r](e);e.target&&"function"==typeof e.target["on"+t]&&e.target["on"+t](e)},createEvent:function(e){return new y(e)}};Ue.documentElement=new ze,Ue.head=new ue("head"),Ue.body=new Fe;var Ve=Object;function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ye,Ke,Xe,qe,Ze=function(){function e(){Ge(this,e);var t=arguments.length;if(2===t){if("number"==typeof arguments[0]&&"number"==typeof arguments[1])return this._w=arguments[0],this._h=arguments[1],void(this._data=new Uint8ClampedArray(this._w*this._h*4))}else 3===t&&"object"===He(arguments[0])&&"number"==typeof arguments[1]&&"number"==typeof arguments[2]&&(this._data=arguments[0],this._w=arguments[1],this._h=arguments[2]);throw new Error("ImageData: params error")}var t,n,r;return t=e,(n=[{key:"width",get:function(){return this._w}},{key:"height",get:function(){return this._h}},{key:"data",get:function(){return this._data}}])&&We(t.prototype,n),r&&We(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();if("undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM){var Je=my.getSystemInfoSync();Ye=Je.system,Ke=Je.platform,Xe=Je.language}else{var Qe={versions:(qe=p.a.navigator.userAgent,{trident:qe.indexOf("Trident")>-1,presto:qe.indexOf("Presto")>-1,webKit:qe.indexOf("AppleWebKit")>-1,gecko:qe.indexOf("Gecko")>-1&&-1===qe.indexOf("KHTML"),mobile:!!qe.match(/AppleWebKit.*Mobile.*/),ios:!!qe.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:qe.indexOf("Android")>-1||qe.indexOf("Linux")>-1,iPhone:qe.indexOf("iPhone")>-1,iPad:qe.indexOf("iPad")>-1,webApp:-1===qe.indexOf("Safari"),weixin:qe.indexOf("MicroMessenger")>-1,qq:" qq"===qe.match(/\sQQ/i)}),language:(p.a.navigator.browserLanguage||p.a.navigator.language).toLowerCase()};Qe.versions.android?Ke="android":Qe.versions.trident?Ke="IE":Qe.versions.presto?Ke="Opera":Qe.versions.webKit?Ke="webKit":Qe.versions.gecko?Ke="Firefox":Qe.versions.mobile?Ke="mobile":Qe.versions.ios?Ke="ios":Qe.versions.iPhone?Ke="iPhone":Qe.versions.iPad?Ke="ipad":Qe.versions.webApp?Ke="webApp":Qe.versions.weixin?Ke="weixin":Qe.versions.qq&&(Ke="qq"),Ye=p.a.navigator.userAgent,Xe=Qe.language}var $e=-1!==Ye.toLowerCase().indexOf("android")?"Android; CPU Android 6.0":"iPhone; CPU iPhone OS 10_3_1 like Mac OS X",et="Mozilla/5.0 (".concat($e,") AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E8301 MicroMessenger/6.6.0 MiniGame NetType/WIFI Language/").concat(Xe),tt={platform:Ke,language:Xe,appVersion:"5.0 (".concat($e,") AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"),userAgent:et},nt=0;function rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var it=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";rt(this,e),0!=t.indexOf("http://")&&0!=t.indexOf("https://")?this.href=n+t:this.href=t}var t,n,r;return t=e,r=[{key:"createObjectURL",value:function(e){var t=e.buffers[0],n=e.type,r=function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,o=0;o<r;o++)t+=String.fromCharCode(n[o]);return s(t)}(t);return"data:".concat(n,";base64, ")+r}}],(n=null)&&ot(t.prototype,n),r&&ot(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function at(e){return(at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ut(e,t){return(ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function st(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ft(e);if(t){var o=ft(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lt(this,n)}}function lt(e,t){if(t&&("object"===at(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ft(e){return(ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pt=new Map,dt=new Map,ht=new Map;var vt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ut(e,t)}(i,e);var t,n,r,o=st(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).onabort=null,e.onerror=null,e.onload=null,e.onloadstart=null,e.onprogress=null,e.ontimeout=null,e.onloadend=null,e.onreadystatechange=null,e.readyState=0,e.response=null,e.responseText=null,e._responseType="text",e.responseXML=null,e.status=0,e.statusText="",e.upload={},e.withCredentials=!1,pt.set("requestHeader",{"content-type":"application/x-www-form-urlencoded"}),e}return t=i,(n=[{key:"responseType",set:function(e){this._responseType=e}},{key:"abort",value:function(){var e=ht.get("requestTask");e&&e.abort()}},{key:"getAllResponseHeaders",value:function(){var e=dt.get("responseHeader");return Object.keys(e).map((function(t){return"".concat(t,": ").concat(e[t])})).join("\n")}},{key:"getResponseHeader",value:function(e){return dt.get("responseHeader")[e]}},{key:"open",value:function(e,t,n){this._method=e,this._url=t}},{key:"overrideMimeType",value:function(){}},{key:"send",value:function(){}},{key:"setRequestHeader",value:function(e,t){var n=pt.get("requestHeader");n[e]=t,pt.set("requestHeader",n)}},{key:"addEventListener",value:function(e,t){var n=this;"function"==typeof t&&(this["on"+e]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.target=e.target||n,t.call(n,e)})}},{key:"removeEventListener",value:function(e,t){this["on"+e]===t&&(this["on"+e]=null)}}])&&ct(t.prototype,n),r&&ct(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(w);function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gt(e,t){return(gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wt(e);if(t){var o=wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ot(this,n)}}function Ot(e,t){if(t&&("object"===yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function wt(e){return(wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}vt.UNSEND=0,vt.OPENED=1,vt.HEADERS_RECEIVED=2,vt.LOADING=3,vt.DONE=4;var _t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&>(e,t)}(i,e);var t,n,r,o=bt(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).touches=[],t.targetTouches=[],t.changedTouches=[],t.target=Ee(),t.currentTarget=Ee(),t}return t=i,n&&mt(t.prototype,n),r&&mt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(y);function xt(e){var t=e||{},n=t.x,r=void 0===n?0:n,o=t.y,i=void 0===o?0:o,a=t.clientX,c=void 0===a?0:a,u=t.clientY,s=void 0===u?0:u;-1!==Object.keys(e).indexOf("x")?(e.pageX=e.clientX=r,e.pageY=e.clientY=i):(e.x=c,e.y=s)}function Et(e){return function(t){var n=new _t(e);n.changedTouches=t.changedTouches,n.touches=t.touches,n.targetTouches=Array.prototype.slice.call(t.touches),n.timeStamp=t.timeStamp,n.changedTouches.forEach((function(e){return xt(e)})),n.touches.forEach((function(e){return xt(e)})),n.targetTouches.forEach((function(e){return xt(e)})),Ue.dispatchEvent(n)}}var St,Ct=Et("touchstart"),jt=Et("touchmove"),kt=Et("touchend"),Pt=(St="mapCameaParams",function(e){e.type=St,Ue.dispatchEvent(e)});function Tt(e){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function At(e,t){return(At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nt(e);if(t){var o=Nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rt(this,n)}}function Rt(e,t){if(t&&("object"===Tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nt(e){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var It=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&At(e,t)}(i,e);var t,n,r,o=Lt(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).target=Ee(),t.currentTarget=Ee(),t}return t=i,n&&Mt(t.prototype,n),r&&Mt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(y),Dt=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","pageX","pageY","timeStamp"],Ft=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,0,0,0];function zt(e,t,n){for(var r=new It(e),o=0;o<Dt.length;o++){var i=Dt[o];r[i]=t[i]||Ft[o]}return r.type=e,r.target=Ee(),r.currentTarget=Ee(),r.buttons=function(e){var t=0;"touchstart"!==e&&"touchmove"!==e&&"pointerdown"!==e&&"pointermove"!==e||(t=1);return t}(e),r.which=r.buttons,r.pointerId=(t.identifier||0)+2,r.bubbles=!0,r.cancelable=!0,r.button=0,r.width=2*(t.radiusX||.5),r.height=2*(t.radiusY||.5),r.pressure=t.force||.5,r.isPrimary=function(e){return Bt===e.identifier}(t),r.pointerType="touch",r.altKey=n.altKey,r.ctrlKey=n.ctrlKey,r.metaKey=n.metaKey,r.shiftKey=n.shiftKey,n.preventDefault&&(r.preventDefault=function(){n.preventDefault()}),r}var Bt=null;function Ut(e){null===Bt&&(Bt=e.identifier)}function Vt(e){Bt===e.identifier&&(Bt=null)}function Ht(e){return function(t){for(var n=t.changedTouches,r=0;r<n.length;r++){var o=n[r];0===r&&"pointerdown"===e?Ut(o):"pointerup"!==e&&"pointercancel"!==e||Vt(o);var i=zt(e,o,t);Ue.dispatchEvent(i)}}}var Gt=Ht("pointerdown"),Wt=Ht("pointermove"),Yt=Ht("pointerup");function Kt(e){return function(t){t.type=e,Ue.dispatchEvent(t)}}var Xt=Kt("mousedown"),qt=Kt("mousemove"),Zt=Kt("mouseup"),Jt="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,Qt="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram),$t=Jt||Qt,en={atob:function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new u("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o="",i=0,a=0;r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r=c.indexOf(r);return o},btoa:s,devicePixelRatio:d,Blob:f,document:Ue,Element:z,Event:y,EventTarget:w,HTMLCanvasElement:Ve,HTMLElement:ue,HTMLMediaElement:ve,HTMLVideoElement:_e,Image:je,ImageData:Ze,navigator:tt,Node:k,requestAnimationFrame:function(e){var t=Ee();return t.requestAnimationFrame?t.requestAnimationFrame(e):function(e){var t=Date.now(),n=Math.max(nt+23,t);return setTimeout((function(){e(nt=n)}),n-t)}(e)},cancelAnimationFrame:function(e){var t=Ee();return t.cancelAnimationFrame?t.cancelAnimationFrame(e):clearTimeout(e)},screen:H,XMLHttpRequest:vt,performance:{mark:function(e){return null},clearMeasures:function(e){return null},clearMarks:function(e){return null},measure:function(e,t,n){return{duration:0}},now:function(){}},URL:it,WebGLRenderingContext:{GCCSO_SHADER_BINARY_FJ:37472,_3DC_XY_AMD:34810,_3DC_X_AMD:34809,ACTIVE_ATTRIBUTES:35721,ACTIVE_ATTRIBUTE_MAX_LENGTH:35722,ACTIVE_PROGRAM_EXT:33369,ACTIVE_TEXTURE:34016,ACTIVE_UNIFORMS:35718,ACTIVE_UNIFORM_MAX_LENGTH:35719,ALIASED_LINE_WIDTH_RANGE:33902,ALIASED_POINT_SIZE_RANGE:33901,ALL_COMPLETED_NV:34034,ALL_SHADER_BITS_EXT:4294967295,ALPHA:6406,ALPHA16F_EXT:34844,ALPHA32F_EXT:34838,ALPHA8_EXT:32828,ALPHA8_OES:32828,ALPHA_BITS:3413,ALPHA_TEST_FUNC_QCOM:3009,ALPHA_TEST_QCOM:3008,ALPHA_TEST_REF_QCOM:3010,ALREADY_SIGNALED_APPLE:37146,ALWAYS:519,AMD_compressed_3DC_texture:1,AMD_compressed_ATC_texture:1,AMD_performance_monitor:1,AMD_program_binary_Z400:1,ANGLE_depth_texture:1,ANGLE_framebuffer_blit:1,ANGLE_framebuffer_multisample:1,ANGLE_instanced_arrays:1,ANGLE_pack_reverse_row_order:1,ANGLE_program_binary:1,ANGLE_texture_compression_dxt3:1,ANGLE_texture_compression_dxt5:1,ANGLE_texture_usage:1,ANGLE_translated_shader_source:1,ANY_SAMPLES_PASSED_CONSERVATIVE_EXT:36202,ANY_SAMPLES_PASSED_EXT:35887,APPLE_copy_texture_levels:1,APPLE_framebuffer_multisample:1,APPLE_rgb_422:1,APPLE_sync:1,APPLE_texture_format_BGRA8888:1,APPLE_texture_max_level:1,ARM_mali_program_binary:1,ARM_mali_shader_binary:1,ARM_rgba8:1,ARRAY_BUFFER:34962,ARRAY_BUFFER_BINDING:34964,ATC_RGBA_EXPLICIT_ALPHA_AMD:35987,ATC_RGBA_INTERPOLATED_ALPHA_AMD:34798,ATC_RGB_AMD:35986,ATTACHED_SHADERS:35717,BACK:1029,BGRA8_EXT:37793,BGRA_EXT:32993,BGRA_IMG:32993,BINNING_CONTROL_HINT_QCOM:36784,BLEND:3042,BLEND_COLOR:32773,BLEND_DST_ALPHA:32970,BLEND_DST_RGB:32968,BLEND_EQUATION:32777,BLEND_EQUATION_ALPHA:34877,BLEND_EQUATION_RGB:32777,BLEND_SRC_ALPHA:32971,BLEND_SRC_RGB:32969,BLUE_BITS:3412,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,BUFFER:33504,BUFFER_ACCESS_OES:35003,BUFFER_MAPPED_OES:35004,BUFFER_MAP_POINTER_OES:35005,BUFFER_OBJECT_EXT:37201,BUFFER_SIZE:34660,BUFFER_USAGE:34661,BYTE:5120,CCW:2305,CLAMP_TO_BORDER_NV:33069,CLAMP_TO_EDGE:33071,COLOR_ATTACHMENT0:36064,COLOR_ATTACHMENT0_NV:36064,COLOR_ATTACHMENT10_NV:36074,COLOR_ATTACHMENT11_NV:36075,COLOR_ATTACHMENT12_NV:36076,COLOR_ATTACHMENT13_NV:36077,COLOR_ATTACHMENT14_NV:36078,COLOR_ATTACHMENT15_NV:36079,COLOR_ATTACHMENT1_NV:36065,COLOR_ATTACHMENT2_NV:36066,COLOR_ATTACHMENT3_NV:36067,COLOR_ATTACHMENT4_NV:36068,COLOR_ATTACHMENT5_NV:36069,COLOR_ATTACHMENT6_NV:36070,COLOR_ATTACHMENT7_NV:36071,COLOR_ATTACHMENT8_NV:36072,COLOR_ATTACHMENT9_NV:36073,COLOR_ATTACHMENT_EXT:37104,COLOR_BUFFER_BIT:16384,COLOR_BUFFER_BIT0_QCOM:1,COLOR_BUFFER_BIT1_QCOM:2,COLOR_BUFFER_BIT2_QCOM:4,COLOR_BUFFER_BIT3_QCOM:8,COLOR_BUFFER_BIT4_QCOM:16,COLOR_BUFFER_BIT5_QCOM:32,COLOR_BUFFER_BIT6_QCOM:64,COLOR_BUFFER_BIT7_QCOM:128,COLOR_CLEAR_VALUE:3106,COLOR_EXT:6144,COLOR_WRITEMASK:3107,COMPARE_REF_TO_TEXTURE_EXT:34894,COMPILE_STATUS:35713,COMPRESSED_RGBA_ASTC_10x10_KHR:37819,COMPRESSED_RGBA_ASTC_10x5_KHR:37816,COMPRESSED_RGBA_ASTC_10x6_KHR:37817,COMPRESSED_RGBA_ASTC_10x8_KHR:37818,COMPRESSED_RGBA_ASTC_12x10_KHR:37820,COMPRESSED_RGBA_ASTC_12x12_KHR:37821,COMPRESSED_RGBA_ASTC_4x4_KHR:37808,COMPRESSED_RGBA_ASTC_5x4_KHR:37809,COMPRESSED_RGBA_ASTC_5x5_KHR:37810,COMPRESSED_RGBA_ASTC_6x5_KHR:37811,COMPRESSED_RGBA_ASTC_6x6_KHR:37812,COMPRESSED_RGBA_ASTC_8x5_KHR:37813,COMPRESSED_RGBA_ASTC_8x6_KHR:37814,COMPRESSED_RGBA_ASTC_8x8_KHR:37815,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGBA_PVRTC_2BPPV2_IMG:37175,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGBA_PVRTC_4BPPV2_IMG:37176,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_ANGLE:33778,COMPRESSED_RGBA_S3TC_DXT5_ANGLE:33779,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:37851,COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:37848,COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:37849,COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:37850,COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:37852,COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:37853,COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:37840,COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:37841,COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:37842,COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:37843,COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:37844,COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:37845,COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:37846,COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:37847,COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV:35917,COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV:35918,COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV:35919,COMPRESSED_SRGB_S3TC_DXT1_NV:35916,COMPRESSED_TEXTURE_FORMATS:34467,CONDITION_SATISFIED_APPLE:37148,CONSTANT_ALPHA:32771,CONSTANT_COLOR:32769,CONTEXT_FLAG_DEBUG_BIT:2,CONTEXT_ROBUST_ACCESS_EXT:37107,COUNTER_RANGE_AMD:35777,COUNTER_TYPE_AMD:35776,COVERAGE_ALL_FRAGMENTS_NV:36565,COVERAGE_ATTACHMENT_NV:36562,COVERAGE_AUTOMATIC_NV:36567,COVERAGE_BUFFERS_NV:36563,COVERAGE_BUFFER_BIT_NV:32768,COVERAGE_COMPONENT4_NV:36561,COVERAGE_COMPONENT_NV:36560,COVERAGE_EDGE_FRAGMENTS_NV:36566,COVERAGE_SAMPLES_NV:36564,CPU_OPTIMIZED_QCOM:36785,CULL_FACE:2884,CULL_FACE_MODE:2885,CURRENT_PROGRAM:35725,CURRENT_QUERY_EXT:34917,CURRENT_VERTEX_ATTRIB:34342,CW:2304,DEBUG_CALLBACK_FUNCTION:33348,DEBUG_CALLBACK_USER_PARAM:33349,DEBUG_GROUP_STACK_DEPTH:33389,DEBUG_LOGGED_MESSAGES:37189,DEBUG_NEXT_LOGGED_MESSAGE_LENGTH:33347,DEBUG_OUTPUT:37600,DEBUG_OUTPUT_SYNCHRONOUS:33346,DEBUG_SEVERITY_HIGH:37190,DEBUG_SEVERITY_LOW:37192,DEBUG_SEVERITY_MEDIUM:37191,DEBUG_SEVERITY_NOTIFICATION:33387,DEBUG_SOURCE_API:33350,DEBUG_SOURCE_APPLICATION:33354,DEBUG_SOURCE_OTHER:33355,DEBUG_SOURCE_SHADER_COMPILER:33352,DEBUG_SOURCE_THIRD_PARTY:33353,DEBUG_SOURCE_WINDOW_SYSTEM:33351,DEBUG_TYPE_DEPRECATED_BEHAVIOR:33357,DEBUG_TYPE_ERROR:33356,DEBUG_TYPE_MARKER:33384,DEBUG_TYPE_OTHER:33361,DEBUG_TYPE_PERFORMANCE:33360,DEBUG_TYPE_POP_GROUP:33386,DEBUG_TYPE_PORTABILITY:33359,DEBUG_TYPE_PUSH_GROUP:33385,DEBUG_TYPE_UNDEFINED_BEHAVIOR:33358,DECR:7683,DECR_WRAP:34056,DELETE_STATUS:35712,DEPTH24_STENCIL8_OES:35056,DEPTH_ATTACHMENT:36096,DEPTH_STENCIL_ATTACHMENT:33306,DEPTH_BITS:3414,DEPTH_BUFFER_BIT:256,DEPTH_BUFFER_BIT0_QCOM:256,DEPTH_BUFFER_BIT1_QCOM:512,DEPTH_BUFFER_BIT2_QCOM:1024,DEPTH_BUFFER_BIT3_QCOM:2048,DEPTH_BUFFER_BIT4_QCOM:4096,DEPTH_BUFFER_BIT5_QCOM:8192,DEPTH_BUFFER_BIT6_QCOM:16384,DEPTH_BUFFER_BIT7_QCOM:32768,DEPTH_CLEAR_VALUE:2931,DEPTH_COMPONENT:6402,DEPTH_COMPONENT16:33189,DEPTH_COMPONENT16_NONLINEAR_NV:36396,DEPTH_COMPONENT16_OES:33189,DEPTH_COMPONENT24_OES:33190,DEPTH_COMPONENT32_OES:33191,DEPTH_EXT:6145,DEPTH_FUNC:2932,DEPTH_RANGE:2928,DEPTH_STENCIL:34041,DEPTH_STENCIL_OES:34041,DEPTH_TEST:2929,DEPTH_WRITEMASK:2930,DITHER:3024,DMP_shader_binary:1,DONT_CARE:4352,DRAW_BUFFER0_NV:34853,DRAW_BUFFER10_NV:34863,DRAW_BUFFER11_NV:34864,DRAW_BUFFER12_NV:34865,DRAW_BUFFER13_NV:34866,DRAW_BUFFER14_NV:34867,DRAW_BUFFER15_NV:34868,DRAW_BUFFER1_NV:34854,DRAW_BUFFER2_NV:34855,DRAW_BUFFER3_NV:34856,DRAW_BUFFER4_NV:34857,DRAW_BUFFER5_NV:34858,DRAW_BUFFER6_NV:34859,DRAW_BUFFER7_NV:34860,DRAW_BUFFER8_NV:34861,DRAW_BUFFER9_NV:34862,DRAW_BUFFER_EXT:3073,DRAW_FRAMEBUFFER_ANGLE:36009,DRAW_FRAMEBUFFER_APPLE:36009,DRAW_FRAMEBUFFER_BINDING_ANGLE:36006,DRAW_FRAMEBUFFER_BINDING_APPLE:36006,DRAW_FRAMEBUFFER_BINDING_NV:36006,DRAW_FRAMEBUFFER_NV:36009,DST_ALPHA:772,DST_COLOR:774,DYNAMIC_DRAW:35048,ELEMENT_ARRAY_BUFFER:34963,ELEMENT_ARRAY_BUFFER_BINDING:34965,EQUAL:514,ES_VERSION_2_0:1,ETC1_RGB8_OES:36196,ETC1_SRGB8_NV:35054,EXTENSIONS:7939,EXT_blend_minmax:1,EXT_color_buffer_half_float:1,EXT_debug_label:1,EXT_debug_marker:1,EXT_discard_framebuffer:1,EXT_map_buffer_range:1,EXT_multi_draw_arrays:1,EXT_multisampled_render_to_texture:1,EXT_multiview_draw_buffers:1,EXT_occlusion_query_boolean:1,EXT_read_format_bgra:1,EXT_robustness:1,EXT_sRGB:1,EXT_separate_shader_objects:1,EXT_shader_framebuffer_fetch:1,EXT_shader_texture_lod:1,EXT_shadow_samplers:1,EXT_texture_compression_dxt1:1,EXT_texture_filter_anisotropic:1,EXT_texture_format_BGRA8888:1,EXT_texture_rg:1,EXT_texture_storage:1,EXT_texture_type_2_10_10_10_REV:1,EXT_unpack_subimage:1,FALSE:0,FASTEST:4353,FENCE_CONDITION_NV:34036,FENCE_STATUS_NV:34035,FIXED:5132,FJ_shader_binary_GCCSO:1,FLOAT:5126,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,FRAGMENT_SHADER:35632,FRAGMENT_SHADER_BIT_EXT:2,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT:35410,FRAMEBUFFER:36160,FRAMEBUFFER_ATTACHMENT_ANGLE:37795,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES:36052,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT:36204,FRAMEBUFFER_BINDING:36006,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE:36182,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE:36182,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT:36182,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG:37172,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV:36182,FRAMEBUFFER_UNDEFINED_OES:33305,FRAMEBUFFER_UNSUPPORTED:36061,FRONT:1028,FRONT_AND_BACK:1032,FRONT_FACE:2886,FUNC_ADD:32774,FUNC_REVERSE_SUBTRACT:32779,FUNC_SUBTRACT:32778,GENERATE_MIPMAP_HINT:33170,GEQUAL:518,GPU_OPTIMIZED_QCOM:36786,GREATER:516,GREEN_BITS:3411,GUILTY_CONTEXT_RESET_EXT:33363,HALF_FLOAT_OES:36193,HIGH_FLOAT:36338,HIGH_INT:36341,IMG_multisampled_render_to_texture:1,IMG_program_binary:1,IMG_read_format:1,IMG_shader_binary:1,IMG_texture_compression_pvrtc:1,IMG_texture_compression_pvrtc2:1,IMPLEMENTATION_COLOR_READ_FORMAT:35739,IMPLEMENTATION_COLOR_READ_TYPE:35738,INCR:7682,INCR_WRAP:34055,INFO_LOG_LENGTH:35716,INNOCENT_CONTEXT_RESET_EXT:33364,INT:5124,INT_10_10_10_2_OES:36343,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,INVALID_ENUM:1280,INVALID_FRAMEBUFFER_OPERATION:1286,INVALID_OPERATION:1282,INVALID_VALUE:1281,INVERT:5386,KEEP:7680,KHR_debug:1,KHR_texture_compression_astc_ldr:1,LEFT:1030,LEQUAL:515,LESS:513,LINEAR:9729,LINEAR_MIPMAP_LINEAR:9987,LINEAR_MIPMAP_NEAREST:9985,LINES:1,LINE_LOOP:2,LINE_STRIP:3,LINE_WIDTH:2849,LINK_STATUS:35714,LOSE_CONTEXT_ON_RESET_EXT:33362,LOW_FLOAT:36336,LOW_INT:36339,LUMINANCE:6409,LUMINANCE16F_EXT:34846,LUMINANCE32F_EXT:34840,LUMINANCE4_ALPHA4_OES:32835,LUMINANCE8_ALPHA8_EXT:32837,LUMINANCE8_ALPHA8_OES:32837,LUMINANCE8_EXT:32832,LUMINANCE8_OES:32832,LUMINANCE_ALPHA:6410,LUMINANCE_ALPHA16F_EXT:34847,LUMINANCE_ALPHA32F_EXT:34841,MALI_PROGRAM_BINARY_ARM:36705,MALI_SHADER_BINARY_ARM:36704,MAP_FLUSH_EXPLICIT_BIT_EXT:16,MAP_INVALIDATE_BUFFER_BIT_EXT:8,MAP_INVALIDATE_RANGE_BIT_EXT:4,MAP_READ_BIT_EXT:1,MAP_UNSYNCHRONIZED_BIT_EXT:32,MAP_WRITE_BIT_EXT:2,MAX_3D_TEXTURE_SIZE_OES:32883,MAX_COLOR_ATTACHMENTS_NV:36063,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_CUBE_MAP_TEXTURE_SIZE:34076,MAX_DEBUG_GROUP_STACK_DEPTH:33388,MAX_DEBUG_LOGGED_MESSAGES:37188,MAX_DEBUG_MESSAGE_LENGTH:37187,MAX_DRAW_BUFFERS_NV:34852,MAX_EXT:32776,MAX_FRAGMENT_UNIFORM_VECTORS:36349,MAX_LABEL_LENGTH:33512,MAX_MULTIVIEW_BUFFERS_EXT:37106,MAX_RENDERBUFFER_SIZE:34024,MAX_SAMPLES_ANGLE:36183,MAX_SAMPLES_APPLE:36183,MAX_SAMPLES_EXT:36183,MAX_SAMPLES_IMG:37173,MAX_SAMPLES_NV:36183,MAX_SERVER_WAIT_TIMEOUT_APPLE:37137,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,MAX_TEXTURE_SIZE:3379,MAX_VARYING_VECTORS:36348,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VIEWPORT_DIMS:3386,MEDIUM_FLOAT:36337,MEDIUM_INT:36340,MIN_EXT:32775,MIRRORED_REPEAT:33648,MULTISAMPLE_BUFFER_BIT0_QCOM:16777216,MULTISAMPLE_BUFFER_BIT1_QCOM:33554432,MULTISAMPLE_BUFFER_BIT2_QCOM:67108864,MULTISAMPLE_BUFFER_BIT3_QCOM:134217728,MULTISAMPLE_BUFFER_BIT4_QCOM:268435456,MULTISAMPLE_BUFFER_BIT5_QCOM:536870912,MULTISAMPLE_BUFFER_BIT6_QCOM:1073741824,MULTISAMPLE_BUFFER_BIT7_QCOM:2147483648,MULTIVIEW_EXT:37105,NEAREST:9728,NEAREST_MIPMAP_LINEAR:9986,NEAREST_MIPMAP_NEAREST:9984,NEVER:512,NICEST:4354,NONE:0,NOTEQUAL:517,NO_ERROR:0,NO_RESET_NOTIFICATION_EXT:33377,NUM_COMPRESSED_TEXTURE_FORMATS:34466,NUM_PROGRAM_BINARY_FORMATS_OES:34814,NUM_SHADER_BINARY_FORMATS:36345,NV_coverage_sample:1,NV_depth_nonlinear:1,NV_draw_buffers:1,NV_draw_instanced:1,NV_fbo_color_attachments:1,NV_fence:1,NV_framebuffer_blit:1,NV_framebuffer_multisample:1,NV_generate_mipmap_sRGB:1,NV_instanced_arrays:1,NV_read_buffer:1,NV_read_buffer_front:1,NV_read_depth:1,NV_read_depth_stencil:1,NV_read_stencil:1,NV_sRGB_formats:1,NV_shadow_samplers_array:1,NV_shadow_samplers_cube:1,NV_texture_border_clamp:1,NV_texture_compression_s3tc_update:1,NV_texture_npot_2D_mipmap:1,OBJECT_TYPE_APPLE:37138,OES_EGL_image:1,OES_EGL_image_external:1,OES_compressed_ETC1_RGB8_texture:1,OES_compressed_paletted_texture:1,OES_depth24:1,OES_depth32:1,OES_depth_texture:1,OES_element_index_uint:1,OES_fbo_render_mipmap:1,OES_fragment_precision_high:1,OES_get_program_binary:1,OES_mapbuffer:1,OES_packed_depth_stencil:1,OES_required_internalformat:1,OES_rgb8_rgba8:1,OES_standard_derivatives:1,OES_stencil1:1,OES_stencil4:1,OES_surfaceless_context:1,OES_texture_3D:1,OES_texture_float:1,OES_texture_float_linear:1,OES_texture_half_float:1,OES_texture_half_float_linear:1,OES_texture_npot:1,OES_vertex_array_object:1,OES_vertex_half_float:1,OES_vertex_type_10_10_10_2:1,ONE:1,ONE_MINUS_CONSTANT_ALPHA:32772,ONE_MINUS_CONSTANT_COLOR:32770,ONE_MINUS_DST_ALPHA:773,ONE_MINUS_DST_COLOR:775,ONE_MINUS_SRC_ALPHA:771,ONE_MINUS_SRC_COLOR:769,OUT_OF_MEMORY:1285,PACK_ALIGNMENT:3333,PACK_REVERSE_ROW_ORDER_ANGLE:37796,PALETTE4_R5_G6_B5_OES:35730,PALETTE4_RGB5_A1_OES:35732,PALETTE4_RGB8_OES:35728,PALETTE4_RGBA4_OES:35731,PALETTE4_RGBA8_OES:35729,PALETTE8_R5_G6_B5_OES:35735,PALETTE8_RGB5_A1_OES:35737,PALETTE8_RGB8_OES:35733,PALETTE8_RGBA4_OES:35736,PALETTE8_RGBA8_OES:35734,PERCENTAGE_AMD:35779,PERFMON_GLOBAL_MODE_QCOM:36768,PERFMON_RESULT_AMD:35782,PERFMON_RESULT_AVAILABLE_AMD:35780,PERFMON_RESULT_SIZE_AMD:35781,POINTS:0,POLYGON_OFFSET_FACTOR:32824,POLYGON_OFFSET_FILL:32823,POLYGON_OFFSET_UNITS:10752,PROGRAM:33506,PROGRAM_BINARY_ANGLE:37798,PROGRAM_BINARY_FORMATS_OES:34815,PROGRAM_BINARY_LENGTH_OES:34625,PROGRAM_OBJECT_EXT:35648,PROGRAM_PIPELINE_BINDING_EXT:33370,PROGRAM_PIPELINE_OBJECT_EXT:35407,PROGRAM_SEPARABLE_EXT:33368,QCOM_alpha_test:1,QCOM_binning_control:1,QCOM_driver_control:1,QCOM_extended_get:1,QCOM_extended_get2:1,QCOM_perfmon_global_mode:1,QCOM_tiled_rendering:1,QCOM_writeonly_rendering:1,QUERY:33507,QUERY_OBJECT_EXT:37203,QUERY_RESULT_AVAILABLE_EXT:34919,QUERY_RESULT_EXT:34918,R16F_EXT:33325,R32F_EXT:33326,R8_EXT:33321,READ_BUFFER_EXT:3074,READ_BUFFER_NV:3074,READ_FRAMEBUFFER_ANGLE:36008,READ_FRAMEBUFFER_APPLE:36008,READ_FRAMEBUFFER_BINDING_ANGLE:36010,READ_FRAMEBUFFER_BINDING_APPLE:36010,READ_FRAMEBUFFER_BINDING_NV:36010,READ_FRAMEBUFFER_NV:36008,RED_BITS:3410,RED_EXT:6403,RENDERBUFFER:36161,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_BINDING:36007,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_SAMPLES_ANGLE:36011,RENDERBUFFER_SAMPLES_APPLE:36011,RENDERBUFFER_SAMPLES_EXT:36011,RENDERBUFFER_SAMPLES_IMG:37171,RENDERBUFFER_SAMPLES_NV:36011,RENDERBUFFER_STENCIL_SIZE:36181,RENDERBUFFER_WIDTH:36162,RENDERER:7937,RENDER_DIRECT_TO_FRAMEBUFFER_QCOM:36787,REPEAT:10497,REPLACE:7681,REQUIRED_TEXTURE_IMAGE_UNITS_OES:36200,RESET_NOTIFICATION_STRATEGY_EXT:33366,RG16F_EXT:33327,RG32F_EXT:33328,RG8_EXT:33323,RGB:6407,RGB10_A2_EXT:32857,RGB10_EXT:32850,RGB16F_EXT:34843,RGB32F_EXT:34837,RGB565:36194,RGB565_OES:36194,RGB5_A1:32855,RGB5_A1_OES:32855,RGB8_OES:32849,RGBA:6408,RGBA16F_EXT:34842,RGBA32F_EXT:34836,RGBA4:32854,RGBA4_OES:32854,RGBA8_OES:32856,RGB_422_APPLE:35359,RG_EXT:33319,RIGHT:1031,SAMPLER:33510,SAMPLER_2D:35678,SAMPLER_2D_ARRAY_SHADOW_NV:36292,SAMPLER_2D_SHADOW_EXT:35682,SAMPLER_3D_OES:35679,SAMPLER_CUBE:35680,SAMPLER_CUBE_SHADOW_NV:36293,SAMPLER_EXTERNAL_OES:36198,SAMPLES:32937,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_BUFFERS:32936,SAMPLE_COVERAGE:32928,SAMPLE_COVERAGE_INVERT:32939,SAMPLE_COVERAGE_VALUE:32938,SCISSOR_BOX:3088,SCISSOR_TEST:3089,SGX_BINARY_IMG:35850,SGX_PROGRAM_BINARY_IMG:37168,SHADER:33505,SHADER_BINARY_DMP:37456,SHADER_BINARY_FORMATS:36344,SHADER_BINARY_VIV:36804,SHADER_COMPILER:36346,SHADER_OBJECT_EXT:35656,SHADER_SOURCE_LENGTH:35720,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,SHORT:5122,SIGNALED_APPLE:37145,SLUMINANCE8_ALPHA8_NV:35909,SLUMINANCE8_NV:35911,SLUMINANCE_ALPHA_NV:35908,SLUMINANCE_NV:35910,SRC_ALPHA:770,SRC_ALPHA_SATURATE:776,SRC_COLOR:768,SRGB8_ALPHA8_EXT:35907,SRGB8_NV:35905,SRGB_ALPHA_EXT:35906,SRGB_EXT:35904,STACK_OVERFLOW:1283,STACK_UNDERFLOW:1284,STATE_RESTORE:35804,STATIC_DRAW:35044,STENCIL_ATTACHMENT:36128,STENCIL_BACK_FAIL:34817,STENCIL_BACK_FUNC:34816,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,STENCIL_BITS:3415,STENCIL_BUFFER_BIT:1024,STENCIL_BUFFER_BIT0_QCOM:65536,STENCIL_BUFFER_BIT1_QCOM:131072,STENCIL_BUFFER_BIT2_QCOM:262144,STENCIL_BUFFER_BIT3_QCOM:524288,STENCIL_BUFFER_BIT4_QCOM:1048576,STENCIL_BUFFER_BIT5_QCOM:2097152,STENCIL_BUFFER_BIT6_QCOM:4194304,STENCIL_BUFFER_BIT7_QCOM:8388608,STENCIL_CLEAR_VALUE:2961,STENCIL_EXT:6146,STENCIL_FAIL:2964,STENCIL_FUNC:2962,STENCIL_INDEX1_OES:36166,STENCIL_INDEX4_OES:36167,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_TEST:2960,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STREAM_DRAW:35040,SUBPIXEL_BITS:3408,SYNC_CONDITION_APPLE:37139,SYNC_FENCE_APPLE:37142,SYNC_FLAGS_APPLE:37141,SYNC_FLUSH_COMMANDS_BIT_APPLE:1,SYNC_GPU_COMMANDS_COMPLETE_APPLE:37143,SYNC_OBJECT_APPLE:35411,SYNC_STATUS_APPLE:37140,TEXTURE:5890,TEXTURE0:33984,TEXTURE1:33985,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE2:33986,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE3:33987,TEXTURE30:34014,TEXTURE31:34015,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE_2D:3553,TEXTURE_3D_OES:32879,TEXTURE_BINDING_2D:32873,TEXTURE_BINDING_3D_OES:32874,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_BINDING_EXTERNAL_OES:36199,TEXTURE_BORDER_COLOR_NV:4100,TEXTURE_COMPARE_FUNC_EXT:34893,TEXTURE_COMPARE_MODE_EXT:34892,TEXTURE_CUBE_MAP:34067,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_DEPTH_QCOM:35796,TEXTURE_EXTERNAL_OES:36197,TEXTURE_FORMAT_QCOM:35798,TEXTURE_HEIGHT_QCOM:35795,TEXTURE_IMAGE_VALID_QCOM:35800,TEXTURE_IMMUTABLE_FORMAT_EXT:37167,TEXTURE_INTERNAL_FORMAT_QCOM:35797,TEXTURE_MAG_FILTER:10240,TEXTURE_MAX_ANISOTROPY_EXT:34046,TEXTURE_MAX_LEVEL_APPLE:33085,TEXTURE_MIN_FILTER:10241,TEXTURE_NUM_LEVELS_QCOM:35801,TEXTURE_OBJECT_VALID_QCOM:35803,TEXTURE_SAMPLES_IMG:37174,TEXTURE_TARGET_QCOM:35802,TEXTURE_TYPE_QCOM:35799,TEXTURE_USAGE_ANGLE:37794,TEXTURE_WIDTH_QCOM:35794,TEXTURE_WRAP_R_OES:32882,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TIMEOUT_EXPIRED_APPLE:37147,TIMEOUT_IGNORED_APPLE:0x10000000000000000,TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE:37792,TRIANGLES:4,TRIANGLE_FAN:6,TRIANGLE_STRIP:5,TRUE:1,UNKNOWN_CONTEXT_RESET_EXT:33365,UNPACK_ALIGNMENT:3317,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_PIXELS:3316,UNPACK_SKIP_ROWS:3315,UNSIGNALED_APPLE:37144,UNSIGNED_BYTE:5121,UNSIGNED_INT:5125,UNSIGNED_INT64_AMD:35778,UNSIGNED_INT_10_10_10_2_OES:36342,UNSIGNED_INT_24_8_OES:34042,UNSIGNED_INT_2_10_10_10_REV_EXT:33640,UNSIGNED_NORMALIZED_EXT:35863,UNSIGNED_SHORT:5123,UNSIGNED_SHORT_1_5_5_5_REV_EXT:33638,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_4_4_4_4_REV_EXT:33637,UNSIGNED_SHORT_4_4_4_4_REV_IMG:33637,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,UNSIGNED_SHORT_8_8_APPLE:34234,UNSIGNED_SHORT_8_8_REV_APPLE:34235,VALIDATE_STATUS:35715,VENDOR:7936,VERSION:7938,VERTEX_ARRAY_BINDING_OES:34229,VERTEX_ARRAY_OBJECT_EXT:37204,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,VERTEX_ATTRIB_ARRAY_DIVISOR_NV:35070,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_SHADER:35633,VERTEX_SHADER_BIT_EXT:1,VIEWPORT:2978,VIV_shader_binary:1,WAIT_FAILED_APPLE:37149,WRITEONLY_RENDERING_QCOM:34851,WRITE_ONLY_OES:35001,Z400_BINARY_AMD:34624,ZERO:0,RASTERIZER_DISCARD:35977,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444},WebGL2RenderingContext:{},addEventListener:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ue.addEventListener(e,t,n)},removeEventListener:function(e,t,n){Ue.removeEventListener(e,t)},dispatchEvent:function(e){Ue.dispatchEvent(e)},innerWidth:H.availWidth,innerHeight:H.availHeight,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterval},tn=$t?en:p.a,nn=$t?vt:p.a.XMLHttpRequest,rn=$t?ke:p.a.location;function on(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return an(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return an(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function an(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cn(e){var t=e;return"string"==typeof e&&(t=tn.document.getElementById(e)),t}function un(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function sn(e){return un(e).split(/\s+/)}function ln(e,t,n){var r=tn.document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function fn(e){var t=e.parentNode;t&&t.removeChild(e)}function pn(e,t){if(void 0!==e.classList)for(var n=sn(t),r=0,o=n.length;r<o;r++)e.classList.add(n[r]);else if(!hn(e,t)){var i=yn(e);vn(e,(i?i+" ":"")+t)}}function dn(e,t){void 0!==e.classList?e.classList.remove(t):vn(e,un((" "+yn(e)+" ").replace(" "+t+" "," ")))}function hn(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=yn(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function vn(e,t){e instanceof HTMLElement?e.className=t:e.className.baseVal=t}function yn(e){return e instanceof SVGElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function mn(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}var gn=function(e){var t,n,r=null==tn||null===(t=tn.document)||void 0===t||null===(n=t.documentElement)||void 0===n?void 0:n.style;if(!r)return e[0];for(var o in e)if(e[o]&&e[o]in r)return e[o];return e[0]}(["transform","WebkitTransform"]);function bn(e,t){e.style[gn]=t}function On(){if("function"==typeof Event)tn.dispatchEvent(new Event("resize"));else{var e=tn.document.createEvent("UIEvents");e.initUIEvent("resize",!0,!1,tn,0),tn.dispatchEvent(e)}}function wn(e){var t=["padding: "+(e.height/2-8)+"px "+e.width/2+"px;","line-height: "+e.height+"px;","background-image: url("+e.toDataURL()+");"];console.log("%c\n",t.join(""))}function _n(){var e,t=tn.document.querySelector('meta[name="viewport"]');if(!t)return 1;var n=(null===(e=t.content)||void 0===e?void 0:e.split(",")).find((function(e){var t=on(e.split("="),2),n=t[0];t[1];return"initial-scale"===n}));return n?1*n.split("=")[1]:1}var xn=_n()<1?1:tn.devicePixelRatio;function En(e){if(0===e.length)throw new Error("max requires at least one data point");for(var t=e[0],n=1;n<e.length;n++)e[n]>t&&(t=e[n]);return 1*t}function Sn(e){if(0===e.length)throw new Error("min requires at least one data point");for(var t=e[0],n=1;n<e.length;n++)e[n]<t&&(t=e[n]);return 1*t}function Cn(e){if(0===e.length)return 0;for(var t=1*e[0],n=1;n<e.length;n++)t+=1*e[n];return t}function jn(e){if(0===e.length)throw new Error("mean requires at least one data point");return Cn(e)/e.length}function kn(e){if(0===e.length)throw new Error("mean requires at least one data point");if(e.length<3)return e[0];e.sort();for(var t=e[0],n=NaN,r=0,o=1,i=1;i<e.length+1;i++)e[i]!==t?(o>r&&(r=o,n=t),o=1,t=e[i]):o++;return 1*n}var Pn={min:Sn,max:En,mean:jn,sum:Cn,mode:kn};function Tn(e,t){return e.map((function(e){return e[t]}))}function Mn(e,t){return Pn[e](t)}function An(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}function Ln(){return"function"==typeof importScripts}var Rn=Ln()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===window.location.protocol?window.parent:window).location.href};function Nn(e){return(Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function In(){In=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==Nn(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function Dn(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){Bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vn(e,t){if(t&&("object"===Nn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hn(e){var t="function"==typeof Map?new Map:void 0;return(Hn=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Gn(e,arguments,Kn(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Yn(r,e)})(e)}function Gn(e,t,n){return(Gn=Wn()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Yn(o,n.prototype),o}).apply(null,arguments)}function Wn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Yn(e,t){return(Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Kn(e){return(Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yn(e,t)}(c,e);var t,n,r,o,i,a=(t=c,n=Wn(),function(){var e,r=Kn(t);if(n){var o=Kn(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Vn(this,e)});function c(e,t,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(o=a.call(this,"AJAXError: ".concat(t," (").concat(e,"): ").concat(n))).status=e,o.statusText=t,o.url=n,o.body=r,o}return r=c,o&&Un(r.prototype,o),i&&Un(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}(Hn(Error));function qn(e,t){var n=new nn,r=Array.isArray(e.url)?e.url[0]:e.url;for(var o in n.open(e.method||"GET",r,!0),"arrayBuffer"===e.type&&(n.responseType="arraybuffer"),e.headers)e.headers.hasOwnProperty(o)&&n.setRequestHeader(o,e.headers[o]);return"json"===e.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===e.credentials,n.onerror=function(){t(new Error(n.statusText))},n.onload=function(){if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){var o=n.response;if("json"===e.type)try{o=JSON.parse(n.response)}catch(a){return t(a)}t(null,o,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"),n)}else{var i=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});t(new Xn(n.status,n.statusText,r,i))}},n.send(e.body),n}function Zn(e){return new Promise((function(t,n){qn(e,(function(e,r,o,i,a){e?n({err:e,data:null,xhr:a}):t({err:null,data:r,cacheControl:o,expires:i,xhr:a})}))}))}function Jn(e,t){return qn(e,t)}var Qn=function(e,t){return Jn(zn(zn({},e),{},{type:"json"}),t)},$n=function(e,t){return Jn(zn(zn({},e),{},{type:"arrayBuffer"}),t)},er=function(e,t){return Jn(zn(zn({},e),{},{method:"POST"}),t)};var tr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";var nr=function(e,t){return $n(e,(function(e,n){if(e)t(e);else if(n){"function"==typeof createImageBitmap?function(e,t){var n=new Blob([new Uint8Array(e)],{type:"image/png"});createImageBitmap(n).then((function(e){t(null,e)})).catch((function(e){t(new Error("Could not load image because of ".concat(e.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))}))}(n,t):function(e,t){var n=new tn.Image,r=tn.URL||tn.webkitURL;n.crossOrigin="anonymous",n.onload=function(){t(null,n),r.revokeObjectURL(n.src),n.onload=null,window.requestAnimationFrame((function(){n.src=tr}))},n.onerror=function(){return t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var o=new Blob([new Uint8Array(e)],{type:"image/png"});n.src=e.byteLength?r.createObjectURL(o):tr}(n,t)}}))},rr=function(){var e,t=(e=In().mark((function e(t,n,r){var o,i,a,c;return In().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r(t);case 3:o=e.sent,i=o.rasterData,a=o.width,c=o.height,n(null,{data:i,width:a,height:c,min:0,max:8e3}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),n(null,new Error(""+e.t0));case 15:case"end":return e.stop()}}),e,null,[[0,12]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Dn(i,r,o,a,c,"next",e)}function c(e){Dn(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e,n,r){return t.apply(this,arguments)}}(),or=function(e,t,n){return $n(e,(function(e,r){e?t(e):r&&rr(r,t,n)}))},ir=n("WvW5");function ar(e){return"number"==typeof e}function cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ur(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ur(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ur(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sr=2*Math.PI*6378137/2;function lr(e){var t=[1/0,1/0,-1/0,-1/0];return e.forEach((function(e){var n=e.coordinates;!function e(t,n){Array.isArray(n[0])?n.forEach((function(n){e(t,n)})):(t[0]>n[0]&&(t[0]=n[0]),t[1]>n[1]&&(t[1]=n[1]),t[2]<n[0]&&(t[2]=n[0]),t[3]<n[1]&&(t[3]=n[1]));return t}(t,n)})),t}function fr(e,t){return function e(t,n){if(Array.isArray(t[0]))return t.map((function(t){return e(t,n)}));return n(t)}(e,t)}function pr(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{enable:!0,decimal:1},r=(e=yr(e,t))[0],o=e[1],i=r*sr/180,a=Math.log(Math.tan((90+o)*Math.PI/360))/(Math.PI/180);return a=a*sr/180,n.enable&&(i=Number(i.toFixed(n.decimal)),a=Number(a.toFixed(n.decimal))),3===e.length?[i,a,e[2]]:[i,a]}function dr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=e[0],r=e[1],o=n/sr*180,i=r/sr*180;return i=180/Math.PI*(2*Math.atan(Math.exp(i*Math.PI/180))-Math.PI/2),null!=t&&(o=Number(o.toFixed(t)),i=Number(i.toFixed(t))),3===e.length?[o,i,e[2]]:[o,i]}function hr(e){if(null==e)throw new Error("lng is required");return(e>180||e<-180)&&((e%=360)>180&&(e=-360+e),e<-180&&(e=360+e),0===e&&(e=0)),e}function vr(e){if(null==e)throw new Error("lat is required");return(e>90||e<-90)&&((e%=180)>90&&(e=-180+e),e<-90&&(e=180+e),0===e&&(e=0)),e}function yr(e,t){if(!1===t)return e;var n=hr(e[0]),r=vr(e[1]);return r>85&&(r=85),r<-85&&(r=-85),3===e.length?[n,r,e[2]]:[n,r]}function mr(e){var t=Math.max(Math.min(85.0511287798,e[1]),-85.0511287798),n=Math.PI/180,r=e[0]*n,o=t*n;o=Math.log(Math.tan(Math.PI/4+o/2));return r=(256<<20)*(.5/Math.PI*r+.5),o=(256<<20)*(-.5/Math.PI*o+(n=.5)),[Math.floor(r),Math.floor(o)]}function gr(e){var t=.5/Math.PI,n=-.5/Math.PI,r=.5,o=cr(e,2),i=o[0],a=o[1];return i=(i/(256<<20)-.5)/t,a=(a/(256<<20)-r)/n,a=2*(Math.atan(Math.pow(Math.E,a))-Math.PI/4),[i/(r=Math.PI/180),a/r]}function br(e,t){var n=85.0511287798,r=Math.PI/180;return t=Math.max(Math.min(n,t),-n),t*=r,[6378137*(e*=r),6378137*(t=Math.log(Math.tan(Math.PI/4+t/2)))]}function Or(e,t){var n=Math.PI/180;return[e/6378137/n,2*(Math.atan(Math.exp(t/6378137))-Math.PI/4)/n]}function wr(e,t,n){var r=Object(ir.a)(t[1]-e[1]),o=Object(ir.a)(t[0]-e[0]),i=Object(ir.a)(e[1]),a=Object(ir.a)(t[1]),c=Math.pow(Math.sin(r/2),2)+Math.pow(Math.sin(o/2),2)*Math.cos(i)*Math.cos(a);return Object(ir.m)(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),"meters")}function _r(e){var t=Math.PI/180,n=85.0511287798,r=Math.max(Math.min(n,e[1]),-n),o=Math.sin(r*t);return[6378137*e[0]*t,6378137*Math.log((1+o)/(1-o))/2]}function xr(e,t){var n=Math.abs(e[1][1]-e[0][1])*t,r=Math.abs(e[1][0]-e[0][0])*t;return[[e[0][0]-r,e[0][1]-n],[e[1][0]+r,e[1][1]+n]]}function Er(e,t){return e[0][0]<=t[0][0]&&e[0][1]<=t[0][1]&&e[1][0]>=t[1][0]&&e[1][1]>=t[1][1]}function Sr(e){return[[e[0],e[1]],[e[2],e[3]]]}function Cr(e){var t=jr(e,[0,0]);return[e[0]/t,e[1]/t]}function jr(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}function kr(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Pr(e,t){return 180*Math.acos(function(e,t){return e[0]*t[0]+e[1]*t[1]}(e,t)/(kr(e)*kr(t)))/Math.PI}function Tr(e,t){return t[0]>0?t[1]>0?90-180*Math.atan(t[1]/t[0])/Math.PI:90+180*Math.atan(-t[1]/t[0])/Math.PI:t[1]<0?90-180*Math.atan(t[1]/t[0])/Math.PI+180:270+180*Math.atan(t[1]/-t[0])/Math.PI}function Mr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(e&&!(e.length<2)){for(var n=0,r=[],o=0;o<e.length-1;o++){var i=e[o],a=e[o+1],c=jr(i,a);n+=c;var u=[i[0]-a[0],i[1]-a[1]],s=Tr(0,u);if(o>0){var l=r[o-1].rotation;l-s>360-l+s&&(s+=360)}r.push({start:i,end:a,dis:c,rotation:s,duration:0})}return r.map((function(e){e.duration=t*(e.dis/n)})),r}}function Ar(e){if(ar(e[0]))return e;if(ar(e[0][0]))throw new Error("当前数据不支持标注");if(ar(e[0][0][0])){var t=0,n=0,r=0;return e.forEach((function(e){e.forEach((function(e){t+=e[0],n+=e[1],r++}))})),[t/r,n/r,0]}throw new Error("当前数据不支持标注")}function Lr(e){for(var t=e[0],n=e[1],r=e[0],o=e[1],i=0,a=0,c=0,u=0;u<e.length;u+=2){var s=e[u],l=e[u+1];s&&l&&(t=Math.max(s,t),n=Math.max(l,n),r=Math.min(s,r),o=Math.min(l,o),i+=s,a+=l,c++)}return{center:[i/c,a/c],radius:Math.sqrt(Math.pow(t-r,2)+Math.pow(n-o,2))/2}}function Rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ir=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,n=arguments.length>1?arguments[1]:void 0;Rr(this,e),this.limit=t,this.destroy=n||this.defaultDestroy,this.order=[],this.clear()}var t,n,r;return t=e,(n=[{key:"clear",value:function(){var e=this;this.order.forEach((function(t){e.delete(t)})),this.cache={},this.order=[]}},{key:"get",value:function(e){var t=this.cache[e];return t&&(this.deleteOrder(e),this.appendOrder(e)),t}},{key:"set",value:function(e,t){this.cache[e]?(this.delete(e),this.cache[e]=t,this.appendOrder(e)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[e]=t,this.appendOrder(e))}},{key:"delete",value:function(e){var t=this.cache[e];t&&(this.deleteCache(e),this.deleteOrder(e),this.destroy(t,e))}},{key:"deleteCache",value:function(e){delete this.cache[e]}},{key:"deleteOrder",value:function(e){var t=this.order.findIndex((function(t){return t===e}));t>=0&&this.order.splice(t,1)}},{key:"appendOrder",value:function(e){this.order.push(e)}},{key:"defaultDestroy",value:function(e,t){return null}}])&&Nr(t.prototype,n),r&&Nr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Dr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Br(e,t){e.forEach((function(e){t[e]&&(t[e]=t[e].bind(t))}))}var Ur,Vr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;Dr(this,e),zr(this,"duration",16),zr(this,"timestamp",(new Date).getTime()),this.duration=t}var t,n,r;return t=e,(n=[{key:"run",value:function(e){var t=(new Date).getTime(),n=t-this.timestamp;this.timestamp=t,n>=this.duration&&e()}}])&&Fr(t.prototype,n),r&&Fr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Hr=n("PvqL");function Gr(e){return"string"==typeof e&&!!Hr.a(e)}function Wr(e){var t=Hr.a(e),n=[0,0,0,0];return null!=t&&(n[0]=t.r/255,n[1]=t.g/255,n[2]=t.b/255,n[3]=t.opacity),n}function Yr(e){return(e&&e[0])+256*(e&&e[1])+65536*(e&&e[2])-1}function Kr(e){return[e+1&255,e+1>>8&255,e+1>>8>>8&255]}function Xr(e){var t=tn.document.createElement("canvas"),n=t.getContext("2d");t.width=256,t.height=1;var r=null;if(e.weights){var o=0;e.weights.map((function(t,r){var i=e.colors[r]||"rgba(0, 0, 0, 0)",a=o+t;n.fillStyle=i,n.fillRect(256*o,0,256*a,1),o=a}))}else{for(var i=n.createLinearGradient(0,0,256,1),a=e.positions[0],c=e.positions[e.positions.length-1],u=0;u<e.colors.length;++u){var s=(e.positions[u]-a)/(c-a);i.addColorStop(s,e.colors[u])}n.fillStyle=i,n.fillRect(0,0,256,1)}if($t)return r=new Uint8ClampedArray(n.getImageData(0,0,256,1).data),t=null,n=null,{data:r,width:256,height:1};r=n.getImageData(0,0,256,1).data;for(var l=n.createImageData(256,1),f=0;f<l.data.length;f+=4)l.data[f+0]=r[f+0],l.data[f+1]=r[f+1],l.data[f+2]=r[f+2],l.data[f+3]=r[f+3];return t=null,n=null,l}!function(e){e.CENTER="center",e.TOP="top",e["TOP-LEFT"]="top-left",e["TOP-RIGHT"]="top-right",e.BOTTOM="bottom",e["BOTTOM-LEFT"]="bottom-left",e.LEFT="left",e.RIGHT="right"}(Ur||(Ur={}));var qr={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Zr(e,t,n){var r=e.classList;for(var o in qr)qr.hasOwnProperty(o)&&r.remove("l7-".concat(n,"-anchor-").concat(o));r.add("l7-".concat(n,"-anchor-").concat(t))}function Jr(e,t){return{enable:e,mask:255,func:{cmp:514,ref:t?1:0,mask:255}}}function Qr(e,t){if(!e)throw new Error(t||"web worker helper assertion failed.")}"undefined"!=typeof self&&self,"undefined"!=typeof window&&window,"undefined"!=typeof document&&document;var $r="undefined"!=typeof window&&void 0!==window.orientation,eo=function(){function e(e,t){var n=this;this.name=e,this.workerThread=t,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return e.prototype.postMessage=function(e,t){this.workerThread.postMessage({source:"Main thread",type:e,payload:t})},e.prototype.done=function(e){Qr(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(e)},e.prototype.error=function(e){Qr(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(e)},e}(),to=new Map;function no(e){Qr(e.source&&!e.url||!e.source&&e.url);var t=to.get(e.source||e.url);return t||(e.url&&(t=function(e){if(!e.startsWith("http"))return e;return ro((t=e,"try {\n importScripts('"+t+"');\n} catch (error) {\n console.error(error);\n throw error;\n}"));var t}(e.url),to.set(e.url,t)),e.source&&(t=ro(e.source),to.set(e.source,t))),Qr(t),t}function ro(e){var t=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(t)}function oo(e,t,n){void 0===t&&(t=!0);var r=n||new Set;if(e){if(io(e))r.add(e);else if(io(e.buffer))r.add(e.buffer);else if(ArrayBuffer.isView(e));else if(t&&"object"==typeof e)for(var o in e)oo(e[o],t,r)}else;return void 0===n?Array.from(r):[]}function io(e){return!!e&&(e instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&e instanceof MessagePort||("undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas)))}var ao=function(){},co=function(){function e(e){this.terminated=!1,this.loadableURL="";var t=e.name,n=e.source,r=e.url;Qr(n||r),this.name=t,this.source=n,this.url=r,this.onMessage=ao,this.onError=function(e){return console.log(e)},this.worker=this.createBrowserWorker()}return e.isSupported=function(){return"undefined"!=typeof Worker},e.prototype.destroy=function(){this.onMessage=ao,this.onError=ao,this.worker.terminate(),this.terminated=!0},Object.defineProperty(e.prototype,"isRunning",{get:function(){return Boolean(this.onMessage)},enumerable:!1,configurable:!0}),e.prototype.postMessage=function(e,t){t=t||oo(e),this.worker.postMessage(e,t)},e.prototype.getErrorFromErrorEvent=function(e){var t="Failed to load ";return t+="worker "+this.name+" from "+this.url+". ",e.message&&(t+=e.message+" in "),e.lineno&&(t+=":"+e.lineno+":"+e.colno),new Error(t)},e.prototype.createBrowserWorker=function(){var e=this;this.loadableURL=no({source:this.source,url:this.url});var t=new Worker(this.loadableURL,{name:this.name});return t.onmessage=function(t){t.data?e.onMessage(t.data):e.onError(new Error("No data received"))},t.onerror=function(t){e.onError(e.getErrorFromErrorEvent(t)),e.terminated=!0},t.onmessageerror=function(t){return console.error("worker "+e.name+", message error: "+t)},t},e}(),uo=function(){return(uo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},so=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},lo=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},fo=function(){function e(e){this.name="unnamed",this.maxConcurrency=1,this.maxMobileConcurrency=1,this.onDebug=function(){},this.reuseWorkers=!0,this.props={},this.jobQueue=[],this.idleQueue=[],this.count=0,this.isDestroyed=!1,this.source=e.source,this.url=e.url,this.setProps(e)}return e.prototype.destroy=function(){this.idleQueue.forEach((function(e){return e.destroy()})),this.isDestroyed=!0},e.prototype.setProps=function(e){this.props=uo(uo({},this.props),e),void 0!==e.name&&(this.name=e.name),void 0!==e.maxConcurrency&&(this.maxConcurrency=e.maxConcurrency),void 0!==e.maxMobileConcurrency&&(this.maxMobileConcurrency=e.maxMobileConcurrency),void 0!==e.reuseWorkers&&(this.reuseWorkers=e.reuseWorkers),void 0!==e.onDebug&&(this.onDebug=e.onDebug)},e.prototype.startJob=function(e,t,n){return void 0===t&&(t=function(e,t,n){return e.done(n)}),void 0===n&&(n=function(e,t){return e.error(t)}),so(this,void 0,void 0,(function(){var r,o=this;return lo(this,(function(i){switch(i.label){case 0:return r=new Promise((function(r){return o.jobQueue.push({name:e,onMessage:t,onError:n,onStart:r}),o})),this.startQueuedJob(),[4,r];case 1:return[2,i.sent()]}}))}))},e.prototype.startQueuedJob=function(){return so(this,void 0,void 0,(function(){var e,t,n;return lo(this,(function(r){switch(r.label){case 0:if(!this.jobQueue.length)return[2];if(!(e=this.getAvailableWorker()))return[2];if(!(t=this.jobQueue.shift()))return[3,4];this.onDebug({message:"Starting job",name:t.name,backlog:this.jobQueue.length,workerThread:e}),n=new eo(t.name,e),e.onMessage=function(e){return t.onMessage(n,e.type,e.payload)},e.onError=function(e){return t.onError(n,e)},t.onStart(n),r.label=1;case 1:return r.trys.push([1,,3,4]),[4,n.result];case 2:return r.sent(),[3,4];case 3:return this.returnWorkerToQueue(e),[7];case 4:return[2]}}))}))},e.prototype.returnWorkerToQueue=function(e){this.isDestroyed||!this.reuseWorkers||this.count>this.getMaxConcurrency()?(e.destroy(),this.count--):this.idleQueue.push(e),this.isDestroyed||this.startQueuedJob()},e.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count<this.getMaxConcurrency()){this.count++;var e=this.name.toLowerCase()+" (#"+this.count+" of "+this.maxConcurrency+")";return new co({name:e,source:this.source,url:this.url})}return null},e.prototype.getMaxConcurrency=function(){return $r?this.maxMobileConcurrency:this.maxConcurrency},e}(),po=function(){return(po=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ho=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},vo={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},yo=function(){function e(e){this.workerPools=new Map,this.props=po({},vo),this.setProps(e),this.workerPools=new Map}return e.isSupported=function(){return co.isSupported()},e.getWorkerFarm=function(t){return void 0===t&&(t={}),e.workerFarm=e.workerFarm||new e({}),e.workerFarm.setProps(t),e.workerFarm},e.prototype.destroy=function(){var e,t;try{for(var n=ho(this.workerPools.values()),r=n.next();!r.done;r=n.next()){r.value.destroy()}}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e.prototype.setProps=function(e){var t,n;this.props=po(po({},this.props),e);try{for(var r=ho(this.workerPools.values()),o=r.next();!o.done;o=r.next()){o.value.setProps(this.getWorkerPoolProps())}}catch(i){t={error:i}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.getWorkerPool=function(e){var t=e.name,n=e.source,r=e.url,o=this.workerPools.get(t);return o||((o=new fo({name:t,source:n,url:r})).setProps(this.getWorkerPoolProps()),this.workerPools.set(t,o)),o},e.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},e}(),mo=new Map,go=function(){function e(){}return Object.defineProperty(e,"onmessage",{set:function(e){self.onmessage=function(t){if(bo(t)){var n=t.data,r=n.type,o=n.payload;e(r,o)}}},enumerable:!1,configurable:!0}),e.addEventListener=function(e){var t=mo.get(e);t||(t=function(t){if(bo(t)){var n=t.data,r=n.type,o=n.payload;e(r,o)}}),self.addEventListener("message",t)},e.removeEventListener=function(e){var t=mo.get(e);mo.delete(e),self.removeEventListener("message",t)},e.postMessage=function(e,t){if(self){var n={source:"Worker thread",type:e,payload:t},r=oo(t);self.postMessage(n,r)}},e}();function bo(e){var t=e.type,n=e.data;return"message"===t&&n&&"string"==typeof n.source&&"Main thread"===n.source}var Oo,wo,_o=function(){function e(){this._values=[],this._settlers=[],this._closed=!1}return e.prototype[Symbol.asyncIterator]=function(){return this},e.prototype.push=function(e){return this.enqueue(e)},e.prototype.enqueue=function(e){if(this._closed)throw new Error("Closed");if(this._settlers.length>0){if(this._values.length>0)throw new Error("Illegal internal state");var t=this._settlers.shift();e instanceof Error?t.reject(e):t.resolve({value:e})}else this._values.push(e)},e.prototype.close=function(){for(;this._settlers.length>0;){this._settlers.shift().resolve({done:!0})}this._closed=!0},e.prototype.next=function(){var e=this;if(this._values.length>0){var t=this._values.shift();return t instanceof Error?Promise.reject(t):Promise.resolve({done:!1,value:t})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise((function(t,n){e._settlers.push({resolve:t,reject:n})}))},e}(),xo=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Eo=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},So=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},Co=0;function jo(e,t){return void 0===t&&(t={}),new Promise((function(n,r){var o=Co++;go.addEventListener((function e(t,i){if(i.id===o)switch(t){case"done":go.removeEventListener(e),n(i.result);break;case"error":go.removeEventListener(e),r(i.error)}}));var i={id:o,input:e,options:t};go.postMessage("process",i)}))}var ko=n("RZEj"),Po=n.n(ko);function To(e,t){var n=e.color;return n&&n.length?n:[1,1,1,1]}function Mo(e,t,n){return 2===n.length?[n[0],n[1],0]:[n[0],n[1],n[2]]}function Ao(e,t){return e.filter?[1]:[0]}function Lo(e,t,n,r){return[t]}var Ro=n("s7f+"),No=n.n(Ro),Io=n("K/oH");function Do(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||zo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fo(e){return function(e){if(Array.isArray(e))return Bo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zo(e,t){if(e){if("string"==typeof e)return Bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bo(e,t):void 0}}function Bo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Go=Io.c.create(),Wo=(Io.c.create(),Io.c.create()),Yo=Io.c.create(),Ko=Io.c.create();function Xo(e,t,n,r,o){Io.c.add(e,n,r),Io.c.normalize(e,e),t=Io.c.fromValues(-e[1],e[0]);var i=Io.c.fromValues(-n[1],n[0]);return[o/Io.c.dot(t,i),t]}function qo(e,t){return Io.c.set(e,-t[1],t[0])}function Zo(e,t,n){return Io.c.sub(e,t,n),Io.c.normalize(e,e),e}function Jo(e,t){return e[0]===t[0]&&e[1]===t[1]}var Qo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Uo(this,e),Ho(this,"lastFlip",-1),Ho(this,"miter",Io.c.fromValues(0,0)),Ho(this,"started",!1),Ho(this,"dash",!1),Ho(this,"totalDistance",0),Ho(this,"currentIndex",0),this.join=t.join||"miter",this.cap=t.cap||"butt",this.miterLimit=t.miterLimit||10,this.thickness=t.thickness||1,this.dash=t.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}var t,n,r;return t=e,(n=[{key:"extrude_gaode2",value:function(e,t){var n=this.complex;if(e.length<=1)return n;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var r=e.length,o=n.startIndex,i=1;i<r;i++){var a,c,u,s=e[i-1];s.push(null!==(a=t[i-1][2])&&void 0!==a?a:0);var l=t[i-1],f=e[i];f.push(null!==(c=t[i][2])&&void 0!==c?c:0);var p=t[i],d=i<e.length-1?[].concat(Fo(e[i+1]),[null!==(u=t[i+1][2])&&void 0!==u?u:0]):null,h=i<t.length-1?t[i+1]:null;o+=this.segment_gaode2(n,o,s,f,d,l,p,h)}if(this.dash)for(var v=0;v<n.positions.length/6;v++)n.positions[6*v+5]=this.totalDistance;return n.startIndex=n.positions.length/6,n}},{key:"simpleExtrude_gaode2",value:function(e,t){var n=this.complex;if(e.length<=1)return n;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var r=e.length,o=n.startIndex,i=1;i<r;i++){var a,c,u,s=e[i-1];s.push(null!==(a=t[i-1][2])&&void 0!==a?a:0);var l=t[i-1],f=e[i];f.push(null!==(c=t[i][2])&&void 0!==c?c:0);var p=t[i],d=i<e.length-1?[].concat(Fo(e[i+1]),[null!==(u=t[i+1][2])&&void 0!==u?u:0]):null,h=i<t.length-1?t[i+1]:null;o+=this.simpleSegment(n,o,s,f,d,l,p,h)}if(this.dash)for(var v=0;v<n.positions.length/6;v++)n.positions[6*v+5]=this.totalDistance;return n.startIndex=n.positions.length/6,n}},{key:"extrude",value:function(e){var t=this.complex;if(e.length<=1)return t;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var n=e.length,r=t.startIndex,o=1;o<n;o++){var i=e[o-1],a=e[o],c=o<e.length-1?e[o+1]:null;r+=this.segment(t,r,i,a,c)}if(this.dash)for(var u=0;u<t.positions.length/6;u++)t.positions[6*u+5]=this.totalDistance;return t.startIndex=t.positions.length/6,t}},{key:"simpleExtrude",value:function(e){var t=this.complex;if(e.length<=1)return t;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var n=e.length,r=t.startIndex,o=1;o<n;o++){var i=e[o-1],a=e[o],c=o<e.length-1?e[o+1]:null;r+=this.simpleSegment(t,r,i,a,c)}if(this.dash)for(var u=0;u<t.positions.length/6;u++)t.positions[6*u+5]=this.totalDistance;return t.startIndex=t.positions.length/6,t}},{key:"segment_gaode2",value:function(e,t,n,r,o,i,a,c){var u=0,s=e.indices,l=e.positions,f=e.normals,p="square"===this.cap,d="bevel"===this.join,h=mr([a[0],a[1]]),v=mr([i[0],i[1]]);Zo(Wo,r,n);var y=0;if(this.dash&&(y=this.lineSegmentDistance(h,v),this.totalDistance+=y),this.normal||(this.normal=Io.c.create(),qo(this.normal,Wo)),!this.started)if(this.started=!0,p){var m=Io.c.create(),g=Io.c.create();Io.c.add(m,this.normal,Wo),Io.c.add(g,this.normal,Wo),f.push(g[0],g[1],0),f.push(m[0],m[1],0),l.push(n[0],n[1],0|n[2],this.totalDistance-y,-this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),l.push(n[0],n[1],0|n[2],this.totalDistance-y,this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(l,f,n,this.normal,this.thickness,this.totalDistance-y);if(s.push(t+0,t+1,t+2),o){Jo(r,o)&&Io.c.add(o,r,Io.c.normalize(o,Io.c.subtract(o,r,n))),Zo(Yo,o,r);var b=Do(Xo(Ko,Io.c.create(),Wo,Yo,this.thickness),2),O=b[0],w=b[1],_=Io.c.dot(Ko,this.normal)<0?-1:1,x=d;x||"miter"!==this.join||O>this.miterLimit&&(x=!0),x?(f.push(this.normal[0],this.normal[1],0),f.push(w[0],w[1],0),l.push(r[0],r[1],0|r[2],this.totalDistance,-this.thickness*_,0|r[2]),this.complex.indexes.push(this.currentIndex),l.push(r[0],r[1],0|r[2],this.totalDistance,this.thickness*_,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,s.push.apply(s,Fo(this.lastFlip!==-_?[t,t+2,t+3]:[t+2,t+1,t+3])),s.push(t+2,t+3,t+4),qo(Go,Yo),Io.c.copy(this.normal,Go),f.push(this.normal[0],this.normal[1],0),l.push(r[0],r[1],0|r[2],this.totalDistance,-this.thickness*_,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,u+=3):(this.extrusions(l,f,r,w,O,this.totalDistance),s.push.apply(s,Fo(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),_=-1,Io.c.copy(this.normal,w),u+=2),this.lastFlip=_}else{if(qo(this.normal,Wo),p){var E=Io.c.create(),S=Io.c.create();Io.c.sub(S,Wo,this.normal),Io.c.add(E,Wo,this.normal),f.push(S[0],S[1],0),f.push(E[0],E[1],0),l.push(r[0],r[1],0|r[2],this.totalDistance,this.thickness,0|r[2]),this.complex.indexes.push(this.currentIndex),l.push(r[0],r[1],0|r[2],this.totalDistance,this.thickness,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(l,f,r,this.normal,this.thickness,this.totalDistance);s.push.apply(s,Fo(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),u+=2}return u}},{key:"simpleSegment",value:function(e,t,n,r,o){var i=0,a=e.indices,c=e.positions,u=e.normals,s=mr([r[0],r[1]]),l=mr([n[0],n[1]]);Zo(Wo,s,l);var f=0;if(this.dash&&(f=this.lineSegmentDistance(s,l),this.totalDistance+=f),this.normal||(this.normal=Io.c.create(),qo(this.normal,Wo)),this.started||(this.started=!0,this.extrusions(c,u,n,this.normal,this.thickness,this.totalDistance-f)),a.push(t+0,t+1,t+2),o){var p=mr([o[0],o[1]]);Jo(s,p)&&Io.c.add(p,s,Io.c.normalize(p,Io.c.subtract(p,s,l))),Zo(Yo,p,s);var d=Do(Xo(Ko,Io.c.create(),Wo,Yo,this.thickness),2),h=d[0],v=d[1];Io.c.dot(Ko,this.normal),this.extrusions(c,u,r,v,h,this.totalDistance),a.push.apply(a,Fo(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),Io.c.copy(this.normal,v),i+=2,this.lastFlip=-1}else qo(this.normal,Wo),this.extrusions(c,u,r,this.normal,this.thickness,this.totalDistance),a.push.apply(a,Fo(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),i+=2;return i}},{key:"segment",value:function(e,t,n,r,o){var i=0,a=e.indices,c=e.positions,u=e.normals,s="square"===this.cap,l="bevel"===this.join,f=mr([r[0],r[1]]),p=mr([n[0],n[1]]);Zo(Wo,f,p);var d=0;if(this.dash&&(d=this.lineSegmentDistance(f,p),this.totalDistance+=d),this.normal||(this.normal=Io.c.create(),qo(this.normal,Wo)),!this.started)if(this.started=!0,s){var h=Io.c.create(),v=Io.c.create();Io.c.add(h,this.normal,Wo),Io.c.add(v,this.normal,Wo),u.push(v[0],v[1],0),u.push(h[0],h[1],0),c.push(n[0],n[1],0|n[2],this.totalDistance-d,-this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),c.push(n[0],n[1],0|n[2],this.totalDistance-d,this.thickness,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(c,u,n,this.normal,this.thickness,this.totalDistance-d);if(a.push(t+0,t+1,t+2),o){var y=mr([o[0],o[1]]);Jo(f,y)&&Io.c.add(y,f,Io.c.normalize(y,Io.c.subtract(y,f,p))),Zo(Yo,y,f);var m=Do(Xo(Ko,Io.c.create(),Wo,Yo,this.thickness),2),g=m[0],b=m[1],O=Io.c.dot(Ko,this.normal)<0?-1:1,w=l;w||"miter"!==this.join||g>this.miterLimit&&(w=!0),w?(u.push(this.normal[0],this.normal[1],0),u.push(b[0],b[1],0),c.push(r[0],r[1],0|r[2],this.totalDistance,-this.thickness*O,0|r[2]),this.complex.indexes.push(this.currentIndex),c.push(r[0],r[1],0|r[2],this.totalDistance,this.thickness*O,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,a.push.apply(a,Fo(this.lastFlip!==-O?[t,t+2,t+3]:[t+2,t+1,t+3])),a.push(t+2,t+3,t+4),qo(Go,Yo),Io.c.copy(this.normal,Go),u.push(this.normal[0],this.normal[1],0),c.push(r[0],r[1],0|r[2],this.totalDistance,-this.thickness*O,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++,i+=3):(this.extrusions(c,u,r,b,g,this.totalDistance),a.push.apply(a,Fo(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),O=-1,Io.c.copy(this.normal,b),i+=2),this.lastFlip=O}else{if(qo(this.normal,Wo),s){var _=Io.c.create(),x=Io.c.create();Io.c.sub(x,Wo,this.normal),Io.c.add(_,Wo,this.normal),u.push(x[0],x[1],0),u.push(_[0],_[1],0),c.push(r[0],r[1],0|r[2],this.totalDistance,this.thickness,0|r[2]),this.complex.indexes.push(this.currentIndex),c.push(r[0],r[1],0|r[2],this.totalDistance,this.thickness,0|r[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(c,u,r,this.normal,this.thickness,this.totalDistance);a.push.apply(a,Fo(1===this.lastFlip?[t,t+2,t+3]:[t+2,t+1,t+3])),i+=2}return i}},{key:"extrusions",value:function(e,t,n,r,o,i){t.push(r[0],r[1],0),t.push(r[0],r[1],0),e.push(n[0],n[1],0|n[2],i,-o,0|n[2]),this.complex.indexes.push(this.currentIndex),e.push(n[0],n[1],0|n[2],i,o,0|n[2]),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.sqrt(n*n+r*r)}}])&&Vo(t.prototype,n),r&&Vo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function $o(e){return function(e){if(Array.isArray(e))return ei(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ei(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ti(e){var t=e.coordinates,n=e.originCoordinates,r=e.version,o=new Qo({dash:!0,join:"bevel"});if("GAODE2.x"===r){var i=t;Array.isArray(i[0][0])||(i=[t]);var a=n;Array.isArray(a[0][0])||(a=[n]);for(var c=0;c<i.length;c++){var u=i[c],s=a[c];o.extrude_gaode2(u,s)}}else{var l=t;l[0]&&!Array.isArray(l[0][0])&&(l=[t]),l.forEach((function(e){o.extrude(e)}))}var f=o.complex;return{vertices:f.positions,indices:f.indices,normals:f.normals,indexes:f.indexes,size:6}}function ni(e){var t=Ar(e.coordinates);return{vertices:[].concat($o(t),$o(t),$o(t),$o(t)),indices:[0,1,2,2,3,0],size:t.length}}function ri(e){var t=e.coordinates,n=No.a.flatten(t),r=n.vertices,o=n.dimensions,i=n.holes;return{indices:No()(r,i,o),vertices:r,size:o}}function oi(e){return(oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ii(){ii=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==oi(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function ai(e){return function(e){if(Array.isArray(e))return ci(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ci(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ui(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}var si=function(){var e,t=(e=ii().mark((function e(t){var n,r,o,i,a,c,u,s,l;return ii().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.descriptors,r=t.features,o=t.enablePicking,i=t.iconMap,a={a_Color:To,a_Position:Mo,filter:Ao,a_vertexId:Lo,a_PickingColor:function(e){var t=e.id;return o?Kr(t):[0,0,0]},a_DistanceAndIndex:function(e,t,n,r,o,i){return void 0===i?[n[3],10]:[n[3],i]},a_Total_Distance:function(e,t,n,r){return[n[5]]},a_Size:function(e){var t=e.size,n=void 0===t?1:t;return Array.isArray(n)?[n[0],n[1]]:[n,0]},a_Normal:function(e,t,n,r,o){return o},a_Miter:function(e,t,n){return[n[4]]},a_iconMapUV:function(e){var t=e.texture,n=i[t]||{x:0,y:0};return[n.x,n.y]}},c={sizePerElement:0,elements:[]},u=0,s=[],l=3,r.forEach((function(e,t){var r=ti(e),o=r.indices,i=r.vertices,f=r.normals,p=r.size,d=r.indexes;o.forEach((function(e){s.push(e+u)})),l=p;var h=i.length/p;c.sizePerElement=l,c.elements.push({featureIdx:t,vertices:i,normals:f,offset:u}),u+=h;for(var v=function(r){var o=(null==f?void 0:f.slice(3*r,3*r+3))||[],c=i.slice(r*p,r*p+p),u=0;d&&void 0!==d[r]&&(u=d[r]),n.forEach((function(n){var i;n&&a[n.name]&&(i=n.buffer.data).push.apply(i,ai(a[n.name](e,t,c,r,o,u)))}))},y=0;y<h;y++)v(y)})),e.abrupt("return",{descriptors:n,featureLayout:c,indices:s});case 8:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ui(i,r,o,a,c,"next",e)}function c(e){ui(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function li(e){return(li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fi(){fi=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==li(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function pi(e){return function(e){if(Array.isArray(e))return di(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return di(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return di(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function di(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hi(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function vi(e){return(vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yi(){yi=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==vi(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function mi(e){return function(e){if(Array.isArray(e))return gi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gi(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bi(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function Oi(e){return(Oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wi(){wi=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==Oi(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function _i(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function xi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){_i(i,r,o,a,c,"next",e)}function c(e){_i(i,r,o,a,c,"throw",e)}a(void 0)}))}}function Ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ci={pointFill:function(){var e,t=(e=fi().mark((function e(t){var n,r,o,i,a,c,u,s,l;return fi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.descriptors,r=t.features,o=t.enablePicking,i=t.shape2d,a={a_Color:To,a_Position:Mo,filter:Ao,a_vertexId:Lo,a_PickingColor:function(e){var t=e.id;return o?Kr(t):[0,0,0]},a_Shape:function(e){var t=e.shape,n=void 0===t?2:t;return[i.indexOf(n)]},a_Extrude:function(e,t,n,r){var o=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],i=r%4*3;return[o[i],o[i+1],o[i+2]]},a_Size:function(e){var t=e.size,n=void 0===t?5:t;return Array.isArray(n)?[n[0]]:[n]}},c={sizePerElement:0,elements:[]},u=0,s=[],l=3,r.forEach((function(e,t){var r=ni(e),o=r.indices,i=r.vertices,f=r.normals,p=r.size,d=r.indexes;o.forEach((function(e){s.push(e+u)})),l=p;var h=i.length/p;c.sizePerElement=l,c.elements.push({featureIdx:t,vertices:i,normals:f,offset:u}),u+=h;for(var v=function(r){var o=(null==f?void 0:f.slice(3*r,3*r+3))||[],c=i.slice(r*p,r*p+p),u=0;d&&void 0!==d[r]&&(u=d[r]),n.forEach((function(n){var i;n&&a[n.name]&&(i=n.buffer.data).push.apply(i,pi(a[n.name](e,t,c,r,o,u)))}))},y=0;y<h;y++)v(y)})),e.abrupt("return",{descriptors:n,featureLayout:c,indices:s});case 8:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){hi(i,r,o,a,c,"next",e)}function c(e){hi(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),line:si,polygonFill:function(){var e,t=(e=yi().mark((function e(t){var n,r,o,i,a,c,u,s;return yi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.descriptors,r=t.features,o=t.enablePicking,i={a_Color:To,a_Position:Mo,filter:Ao,a_vertexId:Lo,a_PickingColor:function(e){var t=e.id;return o?Kr(t):[0,0,0]}},a={sizePerElement:0,elements:[]},c=0,u=[],s=3,r.forEach((function(e,t){var r=ri(e),o=r.indices,l=r.vertices,f=r.normals,p=r.size,d=r.indexes;o.forEach((function(e){u.push(e+c)})),s=p;var h=l.length/p;a.sizePerElement=s,a.elements.push({featureIdx:t,vertices:l,normals:f,offset:c}),c+=h;for(var v=function(r){var o=(null==f?void 0:f.slice(3*r,3*r+3))||[],a=l.slice(r*p,r*p+p),c=0;d&&void 0!==d[r]&&(c=d[r]),n.forEach((function(n){var u;n&&i[n.name]&&(u=n.buffer.data).push.apply(u,mi(i[n.name](e,t,a,r,o,c)))}))},y=0;y<h;y++)v(y)})),e.abrupt("return",{descriptors:n,featureLayout:a,indices:u});case 8:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){bi(i,r,o,a,c,"next",e)}function c(e){bi(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()},ji=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(n),!0).forEach((function(t){Si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Ci);function ki(){return(ki=xi(wi().mark((function e(t){var n,r;return wi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.workerType,r=t.data,!ji[n]){e.next=3;break}return e.abrupt("return",ji[n](r));case 3:return e.abrupt("return",Promise.reject(new Error('Worker with type "'.concat(n,'" non-existent.'))));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(e,t){var n=this;if("undefined"!=typeof self){var r={process:jo};go.onmessage=function(o,i){return xo(n,void 0,void 0,(function(){var n,a,c,u,s,l,f,p,d,h;return Eo(this,(function(v){switch(v.label){case 0:switch(v.trys.push([0,19,,20]),o){case"process":return[3,1];case"process-in-batches":return[3,3];case"input-batch":return[3,16];case"input-done":return[3,17]}return[3,18];case 1:if(!e)throw new Error("Worker does not support atomic processing");return[4,e(i.input,i.options||{},r)];case 2:return n=v.sent(),go.postMessage("done",{result:n}),[3,18];case 3:if(!t)throw new Error("Worker does not support batched processing");Oo=new _o,wo=i.options||{},a=t(Oo,wo,r),v.label=4;case 4:v.trys.push([4,9,10,15]),c=So(a),v.label=5;case 5:return[4,c.next()];case 6:if((u=v.sent()).done)return[3,8];s=u.value,go.postMessage("output-batch",{result:s}),v.label=7;case 7:return[3,5];case 8:return[3,15];case 9:return l=v.sent(),d={error:l},[3,15];case 10:return v.trys.push([10,,13,14]),u&&!u.done&&(h=c.return)?[4,h.call(c)]:[3,12];case 11:v.sent(),v.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return go.postMessage("done",{}),[3,18];case 16:return Oo.push(i.input),[3,18];case 17:return Oo.close(),[3,18];case 18:return[3,20];case 19:return f=v.sent(),p=f instanceof Error?f.message:"",go.postMessage("error",{error:p}),[3,20];case 20:return[2]}}))}))}}}((function(e){return ki.apply(this,arguments)}));var Pi=new Map;function Ti(e){return(Ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mi(){Mi=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==Ti(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function Ai(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function Li(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ai(i,r,o,a,c,"next",e)}function c(e){Ai(i,r,o,a,c,"throw",e)}a(void 0)}))}}function Ri(e){!function(e,t){Pi.set(e,t)}("l7-worker",e)}function Ni(){var e,t=(e="l7-worker",Pi.get(e));if(!t)throw new Error("get worker failed by workerName: ".concat("l7-worker","."));return t}function Ii(e,t){return Di.apply(this,arguments)}function Di(){return(Di=Li(Mi().mark((function e(t,n){var r,o,i,a,c;return Mi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ni(),o=yo.getWorkerFarm({maxConcurrency:3,reuseWorkers:!0}),i=o.getWorkerPool({name:"l7-worker",source:r}),e.next=5,i.startJob("l7-worker",(function(e,t,n){return e.done(n)}));case 5:return(a=e.sent).postMessage("process",{input:{workerType:t,data:n}}),e.next=9,a.result;case 9:return c=e.sent,e.abrupt("return",c.result);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Ri(Po.a);var Fi,zi,Bi=1029,Ui=1028;function Vi(e){switch(e){case"GAODE1.x":case"GAODE2.x":return Bi;case"MAPBOX":case"SIMPLE":return Ui;case"GLOBEL":return Bi;case"L7MAP":default:return Ui}}function Hi(e){return/(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(e)}function Gi(e){var t=[],n=/\{([a-z])-([a-z])\}/.exec(e);if(n){var r,o=n[1].charCodeAt(0),i=n[2].charCodeAt(0);for(r=o;r<=i;++r)t.push(e.replace(n[0],String.fromCharCode(r)));return t}if(n=/\{(\d+)-(\d+)\}/.exec(e)){for(var a=parseInt(n[2],10),c=parseInt(n[1],10);c<=a;c++)t.push(e.replace(n[0],c.toString()));return t}return t.push(e),t}function Wi(e,t){if(!e||!e.length)throw new Error("url is not allowed to be empty");var n=t.x,r=t.y,o=t.z,i=Gi(e);return i[Math.abs(n+r)%i.length].replace(/\{x\}/g,n.toString()).replace(/\{y\}/g,r.toString()).replace(/\{z\}/g,o.toString()).replace(/\{-y\}/g,(Math.pow(2,o)-r-1).toString())}!function(e){e.Realtime="realtime",e.Overlap="overlap",e.Replace="replace"}(Fi||(Fi={})),function(e){e.Loading="Loading",e.Loaded="Loaded",e.Failure="Failure",e.Cancelled="Cancelled"}(zi||(zi={}));var Yi;function Ki(e){for(;e;){if(e.isLoaded)return e.properties.state|=2,!0;e=e.parent}return!1}function Xi(e){e.children.forEach((function(e){e.isLoaded?e.properties.state|=2:Xi(e)}))}function qi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zi=[-1/0,-1/0,1/0,1/0],Ji=(qi(Yi={},Fi.Realtime,(function(e){e.forEach((function(e){e.isCurrent&&(e.isVisible=e.isLoaded)}))})),qi(Yi,Fi.Overlap,(function(e){e.forEach((function(e){e.properties.state=0})),e.forEach((function(e){e.isCurrent&&!Ki(e)&&Xi(e)})),e.forEach((function(e){e.isVisible=Boolean(2&e.properties.state)}))})),qi(Yi,Fi.Replace,(function(e){e.forEach((function(e){e.properties.state=0})),e.forEach((function(e){e.isCurrent&&Ki(e)})),e.slice().sort((function(e,t){return e.z-t.z})).forEach((function(e){e.isVisible=Boolean(2&e.properties.state),e.children.length&&(e.isVisible||1&e.properties.state)?e.children.forEach((function(e){e.properties.state=1})):e.isCurrent&&Xi(e)}))})),Yi),Qi=function(){};function $i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ea(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ea(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ta(e,t,n){return[Math.floor((e+180)/360*Math.pow(2,n)),Math.floor((1-Math.log(Math.tan(t*Math.PI/180)+1/Math.cos(t*Math.PI/180))/Math.PI)/2*Math.pow(2,n))]}function na(e,t,n){var r=e/Math.pow(2,n)*360-180,o=Math.PI-2*Math.PI*t/Math.pow(2,n);return[r,180/Math.PI*Math.atan(.5*(Math.exp(o)-Math.exp(-o)))]}var ra=function(e,t,n){var r=$i(na(e,t,n),2),o=r[0],i=r[1],a=$i(na(e+1,t+1,n),2),c=a[0];return[o,a[1],c,i]};function oa(e){var t=e.zoom,n=e.latLonBounds,r=e.maxZoom,o=void 0===r?1/0:r,i=e.minZoom,a=void 0===i?0:i,c=e.zoomOffset,u=void 0===c?0:c,s=e.extent,l=void 0===s?Zi:s,f=Math.ceil(t)+u;if(Number.isFinite(a)&&f<a)return[];Number.isFinite(o)&&f>o&&(f=o);for(var p=$i(n,4),d=p[0],h=p[1],v=p[2],y=p[3],m=[Math.max(d,l[0]),Math.max(h,l[1]),Math.min(v,l[2]),Math.min(y,l[3])],g=[],b=$i(ta(m[0],m[1],f),2),O=b[0],w=b[1],_=$i(ta(m[2],m[3],f),2),x=_[0],E=_[1],S=O;S<=x;S++)for(var C=E;C<=w;C++)g.push({x:S,y:C,z:f});var j=(x+O)/2,k=(w+E)/2,P=function(e,t){return Math.abs(e-j)+Math.abs(t-k)};return g.sort((function(e,t){return P(e.x,e.y)-P(t.x,t.y)})),g}var ia=function(e,t,n){var r=Math.pow(2,n),o=e;return o<0?o+=r:o>r-1&&(o%=r),{warpX:o,warpY:t}},aa=n("Gpi5"),ca=n.n(aa);function ua(e){return(ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sa(){sa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var l={};function f(){}function p(){}function d(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==t&&n.call(y,o)&&(h=y);var m=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==ua(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(m,"constructor",d),c(d,"constructor",p),p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function la(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function fa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pa(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function da(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ha(e,t){return(ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function va(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ga(e);if(t){var o=ga(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ya(this,n)}}function ya(e,t){if(t&&("object"===ua(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ma(e)}function ma(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ga(e){return(ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ba(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ha(e,t)}(c,e);var t,n,r,o,i,a=va(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),ba(ma(t=a.call(this)),"tileSize",256),ba(ma(t),"isVisible",!1),ba(ma(t),"isCurrent",!1),ba(ma(t),"isVisibleChange",!1),ba(ma(t),"parentLayerIDList",[]),ba(ma(t),"layerIDList",[]),ba(ma(t),"loadedLayers",0),ba(ma(t),"parent",null),ba(ma(t),"children",[]),ba(ma(t),"loadedChilds",0),ba(ma(t),"data",null),ba(ma(t),"properties",{}),ba(ma(t),"loadDataId",0);var n=e.x,r=e.y,o=e.z,i=e.tileSize;return t.x=n,t.y=r,t.z=o,t.tileSize=i,t}return t=c,(n=[{key:"isLoading",get:function(){return this.loadStatus===zi.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===zi.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===zi.Failure}},{key:"isCancelled",get:function(){return this.loadStatus===zi.Cancelled}},{key:"isDone",get:function(){return[zi.Loaded,zi.Cancelled,zi.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return ra(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var e=fa(this.bounds,4),t=e[0],n=e[1],r=[(e[2]-t)/2,(e[3]-n)/2];return function(e,t){void 0===t&&(t={});var n=Number(e[0]),r=Number(e[1]),o=Number(e[2]),i=Number(e[3]);if(6===e.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var a=[n,r],c=[n,i],u=[o,i],s=[o,r];return Object(ir.k)([[a,s,u,c,a]],t.properties,{bbox:e,id:t.id})}(this.bounds,{properties:{key:this.key,bbox:this.bounds,center:r,meta:"\n ".concat(this.key,"\n ")}})}},{key:"key",get:function(){return"".concat(this.x,",").concat(this.y,",").concat(this.z)}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:(o=sa().mark((function e(t){var n,r,o,i,a,c,u,s,l,f,p,d,h,v,y,m;return sa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.getData,r=t.onLoad,o=t.onError,this.loadDataId++,i=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=zi.Loading,a=null,e.prev=7,u=this.x,s=this.y,l=this.z,f=this.bounds,p=this.tileSize,d=ia(u,s,l),h=d.warpX,v=d.warpY,y=this.abortController.signal,m={x:h,y:v,z:l,bounds:f,tileSize:p,signal:y},e.next=14,n(m,this);case 14:a=e.sent,e.next=20;break;case 17:e.prev=17,e.t0=e.catch(7),c=e.t0;case 20:if(i===this.loadDataId){e.next=22;break}return e.abrupt("return");case 22:if(!this.isCancelled||a){e.next=24;break}return e.abrupt("return");case 24:if(!c&&a){e.next=28;break}return this.loadStatus=zi.Failure,o(c,this),e.abrupt("return");case 28:this.loadStatus=zi.Loaded,this.data=a,r(this);case 31:case"end":return e.stop()}}),e,this,[[7,17]])})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){la(i,n,r,a,c,"next",e)}function c(e){la(i,n,r,a,c,"throw",e)}a(void 0)}))},function(e){return i.apply(this,arguments)})},{key:"reloadData",value:function(e){this.isLoading&&this.abortLoad(),this.loadData(e)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=zi.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}])&&da(t.prototype,n),r&&da(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(aa.EventEmitter),wa=n("Bcqe"),_a=n.n(wa);function xa(e){return(xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ea(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||Ca(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sa(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ca(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function Ca(e,t){if(e){if("string"==typeof e)return ja(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ja(e,t):void 0}}function ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(n),!0).forEach((function(t){Ia(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ta(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ma(e,t){return(Ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Aa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Na(e);if(t){var o=Na(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return La(this,n)}}function La(e,t){if(t&&("object"===xa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ra(e)}function Ra(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Na(e){return(Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ia(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Da,Fa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ma(e,t)}(i,e);var t,n,r,o=Aa(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Ia(Ra(t=o.call(this)),"currentTiles",[]),Ia(Ra(t),"cacheTiles",new Map),Ia(Ra(t),"throttleUpdate",_a()((function(e,n){t.update(e,n)}),16)),Ia(Ra(t),"onTileLoad",(function(e){t.emit("tile-loaded",e),t.updateTileVisible()})),Ia(Ra(t),"onTileError",(function(e,n){t.emit("tile-error",{error:e,tile:n}),t.updateTileVisible()})),Ia(Ra(t),"onTileUnload",(function(e){t.emit("tile-unload",e)})),t.options={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0,extent:Zi,getTileData:Qi,updateStrategy:Fi.Replace},t.updateOptions(e),t}return t=i,(n=[{key:"isLoaded",get:function(){return this.currentTiles.every((function(e){return e.isDone}))}},{key:"tiles",get:function(){return Array.from(this.cacheTiles.values()).sort((function(e,t){return e.z-t.z}))}},{key:"updateOptions",value:function(e){var t=void 0===e.minZoom?this.options.minZoom:Math.ceil(e.minZoom),n=void 0===e.maxZoom?this.options.maxZoom:Math.floor(e.maxZoom);this.options=Pa(Pa(Pa({},this.options),e),{},{minZoom:t,maxZoom:n})}},{key:"update",value:function(e,t){var n=this,r=Math.ceil(e);if(!this.lastViewStates||this.lastViewStates.zoom!==r||!function(e,t){return Er(Sr(e),Sr(t))}(this.lastViewStates.latLonBoundsBuffer,t)){var o=function(e,t){var n=xr(Sr(e),t);return[Math.max(n[0][0],-900),Math.max(n[0][1],-85.0511287798065),Math.min(n[1][0],900),Math.min(n[1][1],85.0511287798065)]}(t,.2);this.lastViewStates={zoom:r,latLonBounds:t,latLonBoundsBuffer:o};var i=!1,a=this.getTileIndices(r,o);this.currentTiles=a.map((function(e){var t,r,o=e.x,a=e.y,c=e.z,u=n.getTile(o,a,c);return u?(((null===(t=u)||void 0===t?void 0:t.isFailure)||(null===(r=u)||void 0===r?void 0:r.isCancelled))&&u.loadData({getData:n.options.getTileData,onLoad:n.onTileLoad,onError:n.onTileError}),u):(u=n.createTile(o,a,c),i=!0,u)})),i&&(this.resizeCacheTiles(),this.rebuildTileTree()),this.updateTileVisible(),this.pruneRequests()}}},{key:"reloadAll",value:function(){var e,t=Sa(this.cacheTiles);try{for(t.s();!(e=t.n()).done;){var n=Ea(e.value,2),r=n[0],o=n[1];this.currentTiles.includes(o)||(this.cacheTiles.delete(r),this.onTileUnload(o)),this.onTileUnload(o),o.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError})}}catch(i){t.e(i)}finally{t.f()}}},{key:"pruneRequests",value:function(){var e,t=[],n=Sa(this.cacheTiles.values());try{for(n.s();!(e=n.n()).done;){var r=e.value;r.isLoading&&(r.isCurrent||r.isVisible||t.push(r))}}catch(o){n.e(o)}finally{n.f()}for(;t.length>0;)t.shift().abortLoad()}},{key:"destroy",value:function(){var e,t=Sa(this.cacheTiles.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.isLoading&&n.abortLoad()}}catch(r){t.e(r)}finally{t.f()}this.cacheTiles.clear(),this.currentTiles=[],this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var e,t=this.options.updateStrategy,n=new Map,r=Sa(this.cacheTiles.values());try{for(r.s();!(e=r.n()).done;){var o=e.value;n.set(o.key,o.isVisible),o.isCurrent=!1,o.isVisible=!1}}catch(l){r.e(l)}finally{r.f()}var i,a=Sa(this.currentTiles);try{for(a.s();!(i=a.n()).done;){var c=i.value;c.isCurrent=!0,c.isVisible=!0}}catch(l){a.e(l)}finally{a.f()}var u=Array.from(this.cacheTiles.values());"function"==typeof t?t(u):Ji[t](u);var s=!1;Array.from(this.cacheTiles.values()).forEach((function(e){e.isVisible!==n.get(e.key)?(e.isVisibleChange=!0,s=!0):e.isVisibleChange=!1})),s&&this.emit("tile-update")}},{key:"getTileIndices",value:function(e,t){var n=this.options,r=n.tileSize,o=n.extent,i=n.zoomOffset;return oa({maxZoom:Math.floor(this.options.maxZoom),minZoom:Math.ceil(this.options.minZoom),zoomOffset:i,tileSize:r,zoom:e,latLonBounds:t,extent:o})}},{key:"getTileId",value:function(e,t,n){return"".concat(e,",").concat(t,",").concat(n)}},{key:"getTile",value:function(e,t,n){var r=this.getTileId(e,t,n);return this.cacheTiles.get(r)}},{key:"createTile",value:function(e,t,n){var r=this.getTileId(e,t,n),o=new Oa({x:e,y:t,z:n,tileSize:this.options.tileSize});return this.cacheTiles.set(r,o),o.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),o}},{key:"resizeCacheTiles",value:function(){var e=5*this.currentTiles.length;if(this.cacheTiles.size>e){var t,n=Sa(this.cacheTiles);try{for(n.s();!(t=n.n()).done;){var r=Ea(t.value,2),o=r[0],i=r[1];if(i.isVisible||this.currentTiles.includes(i)||(this.cacheTiles.delete(o),this.onTileUnload(i)),this.cacheTiles.size<=e)break}}catch(a){n.e(a)}finally{n.f()}}}},{key:"rebuildTileTree",value:function(){var e,t=Sa(this.cacheTiles.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.parent=null,n.children.length=0}}catch(c){t.e(c)}finally{t.f()}var r,o=Sa(this.cacheTiles.values());try{for(o.s();!(r=o.n()).done;){var i=r.value,a=this.getNearestAncestor(i.x,i.y,i.z);i.parent=a,null!=a&&a.children&&a.children.push(i)}}catch(c){o.e(c)}finally{o.f()}}},{key:"getNearestAncestor",value:function(e,t,n){for(;n>this.options.minZoom;){e=Math.floor(e/2),t=Math.floor(t/2),n-=1;var r=this.getTile(e,t,n);if(r)return r}return null}}])&&Ta(t.prototype,n),r&&Ta(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(ca.a);function za(e){return function(e){if(Array.isArray(e))return Ba(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ba(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ba(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ua(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:30,a=arguments.length>6?arguments[6]:void 0,c=n;return a&&(c=Math.round(n*(i-1))/(i-1)),Ga(e,t,c,r||.314,o)}function Va(e,t){var n=1-t;return(e[0]*n+e[1]*t)*n+(e[1]*n+e[2]*t)*t}function Ha(e,t,n){var r,o,i=[t[0]-e[0],t[1]-e[1]],a=(r=i,o=[0,0],Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2))),c=Math.atan2(i[1],i[0]),u=a/2/Math.cos(n),s=c+n;return[u*Math.cos(s)+e[0],u*Math.sin(s)+e[1]]}function Ga(e,t,n,r,o){if(o===Da["GAODE2.x"]){var i=br(e[0],e[1]),a=br(t[0],t[1]),c=Ha(i,a,r),u=[i[0],c[0],a[0]],s=[i[1],c[1],a[1]];return[].concat(za(Or(Va(u,n),Va(s,n))),[0])}var l=Ha(e,t,r),f=[e[0],l[0],t[0]],p=[e[1],l[1],t[1]];return[Va(f,n),Va(p,n),0]}function Wa(e,t,n,r,o){var i=arguments.length>6?arguments[6]:void 0,a=n;return i&&(a=Math.round(29*n)/29),Ka(e,t,a,o)}function Ya(e,t){var n=1-t;return(e[0]*n+e[1]*t)*n+(e[1]*n+e[2]*t)*t}function Ka(e,t,n,r){var o=[Object(ir.a)(e[0]),Object(ir.a)(e[1])],i=[Object(ir.a)(t[0]),Object(ir.a)(t[1])];if("GAODE2.x"===r){var a=function(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=jr(n,[0,0]),o=Math.atan2(n[1],n[0]),i=r/2/Math.cos(.314),a=o+.314;return[i*Math.cos(a)+e[0],i*Math.sin(a)+e[1]]}(o,i),c=[o[0],a[0],i[0]],u=[o[1],a[1],i[1]];return[Ya(c,n),Ya(u,n),0]}var s=function(e,t){var n=[e[0]-t[0],e[1]-t[1]],r=[Math.sin(n[0]/2),Math.sin(n[1]/2)],o=r[1]*r[1]+Math.cos(e[1])*Math.cos(t[1])*r[0]*r[0];return 2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))}(o,i);if(Math.abs(s-Math.PI)<.001)return[(1-n)*o[0]+n*i[0],(1-n)*o[1]+n*i[1]];var l=Math.sin((1-n)*s)/Math.sin(s),f=Math.sin(n*s)/Math.sin(s),p=[Math.sin(o[0]),Math.sin(o[1])],d=[Math.cos(o[0]),Math.cos(o[1])],h=[Math.sin(i[0]),Math.sin(i[1])],v=[Math.cos(i[0]),Math.cos(i[1])],y=l*d[1]*d[0]+f*v[1]*v[0],m=l*d[1]*p[0]+f*v[1]*h[0],g=l*p[1]+f*h[1];return[Object(ir.l)(Math.atan2(m,y)),Object(ir.l)(Math.atan2(g,Math.sqrt(y*y+m*m)))]}function Xa(e,t,n){return[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n)]}function qa(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}function Za(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ja(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ja(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(n),!0).forEach((function(t){ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tc(e,t){var n=t.featureId,r=e.data.dataArray;return"number"==typeof n&&(r=r.filter((function(e){return e._id===n}))),r.map((function(e){var n=function(e,t){var n=t.offset,r=t.shape,o=t.thetaOffset,i=t.mapVersion,a=t.segmentNumber,c=void 0===a?30:a,u=t.autoFit,s=void 0===u||u,l=e.coordinates;if("line"===r)return function(e,t){for(var n=0,r=[],o=0;o<e.length-1;o++){var i=e[o],a=e[o+1],c=qa(i,a),u=n;n+=c,r.push({p1:i,p2:a,totalDistance:n,distance:c,lastTotalDistance:u})}for(var s,l,f=n*t,p=0;p<r.length;p++){if(r[p].totalDistance>f){var d=r[p].p1,h=Xa(r[p].p2,d,(f-r[p].lastTotalDistance)/r[p].distance);s=h[0],l=h[1];break}}return{_lng:s,_lat:l,_height:0}}(l,n);var f,p,d=l[0],h=l[1];f="string"==typeof o?e[o]||0:o;switch(r){case"arc":p=Ua;break;case"greatcircle":p=Wa;break;default:p=Ua}var v=Za(p(d,h,n,f,i,c,s),3),y=v[0],m=v[1],g=v[2];return{_lng:y,_lat:m,_height:g}}(e,t);return $a($a({},e),n)}))}function nc(e,t){return new Promise((function(n,r){e.inited?n(tc(e,t)):e.once("sourceUpdate",(function(){n(tc(e,t))}))}))}!function(e){e["GAODE1.x"]="GAODE1.x",e["GAODE2.x"]="GAODE2.x",e.MAPBOX="MAPBOX",e.L7MAP="L7MAP",e.SIMPLE="SIMPLE",e.GLOBEL="GLOBEL"}(Da||(Da={}))},zF5n:function(e,t,n){var r=n("pIod"),o=n("Xidw"),i=n("zH+d");e.exports=function(e){return r(e,i,o)}},"zH+d":function(e,t,n){var r=n("rmhs"),o=n("p2lg"),i=n("9y2L");e.exports=function(e){return i(e)?r(e,!0):o(e)}},zKkv:function(e,t,n){var r=n("UdtX"),o=n("BlJA");e.exports=function(e,t){return e&&r(e,t,o)}},zP18:function(e,t,n){e.exports={main:"layout-module--main--2k9yj"}},zWgn:function(e,t){e.exports=function(e){return e}},zaNA:function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},zc29:function(e,t,n){var r,o,i,a=n("cpcO"),c=n("9JhN"),u=n("cLeC"),s=n("dSaG"),l=n("WxKw"),f=n("eiXn"),p=n("xgf2"),d=n("MyxS"),h=n("1odi"),v=c.TypeError,y=c.WeakMap;if(a||p.state){var m=p.state||(p.state=new y),g=u(m.get),b=u(m.has),O=u(m.set);r=function(e,t){if(b(m,e))throw new v("Object already initialized");return t.facade=e,O(m,e,t),t},o=function(e){return g(m,e)||{}},i=function(e){return b(m,e)}}else{var w=d("state");h[w]=!0,r=function(e,t){if(f(e,w))throw new v("Object already initialized");return t.facade=e,l(e,w,t),t},o=function(e){return f(e,w)?e[w]:{}},i=function(e){return f(e,w)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}}}},zeV3:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("cxan"),o=n("zjfJ"),i=n("zygG"),a=n("O94r"),c=n.n(a),u=n("6Qj0"),s=n("ERkP"),l=n("H84U"),f=n("P80f");function p(e){var t=e.className,n=e.direction,i=e.index,a=e.marginDirection,c=e.children,u=e.split,l=e.wrap,f=s.useContext(h),p=f.horizontalSize,d=f.verticalSize,v=f.latestIndex,y={};return f.supportFlexGap||("vertical"===n?i<v&&(y={marginBottom:p/(u?2:1)}):y=Object(r.a)(Object(r.a)({},i<v&&Object(o.a)({},a,p/(u?2:1))),l&&{paddingBottom:d})),null==c?null:s.createElement(s.Fragment,null,s.createElement("div",{className:t,style:y},c),i<v&&u&&s.createElement("span",{className:"".concat(t,"-split"),style:y},u))}var d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},h=s.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),v={small:8,middle:16,large:24};t.b=function(e){var t,n=s.useContext(l.b),a=n.getPrefixCls,y=n.space,m=n.direction,g=e.size,b=void 0===g?(null==y?void 0:y.size)||"small":g,O=e.align,w=e.className,_=e.children,x=e.direction,E=void 0===x?"horizontal":x,S=e.prefixCls,C=e.split,j=e.style,k=e.wrap,P=void 0!==k&&k,T=d(e,["size","align","className","children","direction","prefixCls","split","style","wrap"]),M=Object(f.a)(),A=s.useMemo((function(){return(Array.isArray(b)?b:[b,b]).map((function(e){return function(e){return"string"==typeof e?v[e]:e||0}(e)}))}),[b]),L=Object(i.a)(A,2),R=L[0],N=L[1],I=Object(u.a)(_,{keepEmpty:!0}),D=void 0===O&&"horizontal"===E?"center":O,F=a("space",S),z=c()(F,"".concat(F,"-").concat(E),(t={},Object(o.a)(t,"".concat(F,"-rtl"),"rtl"===m),Object(o.a)(t,"".concat(F,"-align-").concat(D),D),t),w),B="".concat(F,"-item"),U="rtl"===m?"marginLeft":"marginRight",V=0,H=I.map((function(e,t){null!=e&&(V=t);var n=e&&e.key||"".concat(B,"-").concat(t);return s.createElement(p,{className:B,key:n,direction:E,index:t,marginDirection:U,split:C,wrap:P},e)})),G=s.useMemo((function(){return{horizontalSize:R,verticalSize:N,latestIndex:V,supportFlexGap:M}}),[R,N,V,M]);if(0===I.length)return null;var W={};return P&&(W.flexWrap="wrap",M||(W.marginBottom=-N)),M&&(W.columnGap=R,W.rowGap=N),s.createElement("div",Object(r.a)({className:z,style:Object(r.a)(Object(r.a)({},W),j)},T),s.createElement(h.Provider,{value:G},H))}},zjfJ:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},zvFY:function(e,t,n){"use strict";n.d(t,"a",(function(){return M}));var r=n("cxan"),o=n("zjfJ"),i=n("zygG"),a=n("4wDe"),c=n("O94r"),u=n.n(c),s=n("WSTu"),l=n("ERkP"),f=n.n(l),p=n("H84U"),d=n("caoh"),h=n("3Nzz"),v=n("0n0R"),y=n("CWQg"),m=n("g0mS"),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},b=l.createContext(void 0),O=function(e){var t,n=l.useContext(p.b),i=n.getPrefixCls,a=n.direction,c=e.prefixCls,s=e.size,f=e.className,d=g(e,["prefixCls","size","className"]),h=i("btn-group",c),v="";switch(s){case"large":v="lg";break;case"small":v="sm"}var y=u()(h,(t={},Object(o.a)(t,"".concat(h,"-").concat(v),v),Object(o.a)(t,"".concat(h,"-rtl"),"rtl"===a),t),f);return l.createElement(b.Provider,{value:s},l.createElement("div",Object(r.a)({},d,{className:y})))},w=n("QmBg"),_=n("B5SY"),x=function(){return{width:0,opacity:0,transform:"scale(0)"}},E=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}},S=function(e){var t=e.prefixCls,n=!!e.loading;return e.existIcon?f.a.createElement("span",{className:"".concat(t,"-loading-icon")},f.a.createElement(w.a,null)):f.a.createElement(_.b,{visible:n,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:x,onAppearActive:E,onEnterStart:x,onEnterActive:E,onLeaveStart:E,onLeaveActive:x},(function(e,n){var r=e.className,o=e.style;return f.a.createElement("span",{className:"".concat(t,"-loading-icon"),style:o,ref:n},f.a.createElement(w.a,{className:r}))}))},C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},j=/^[\u4e00-\u9fa5]{2}$/,k=j.test.bind(j);function P(e){return"text"===e||"link"===e}function T(e,t){if(null!=e){var n,r=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&k(e.props.children)?Object(v.a)(e,{children:e.props.children.split("").join(r)}):"string"==typeof e?k(e)?l.createElement("span",null,e.split("").join(r)):l.createElement("span",null,e):(n=e,l.isValidElement(n)&&n.type===l.Fragment?l.createElement("span",null,e):e)}}Object(y.a)("default","primary","ghost","dashed","link","text"),Object(y.a)("default","circle","round"),Object(y.a)("submit","button","reset");function M(e){return"danger"===e?{danger:!0}:{type:e}}var A=function(e,t){var n,c=e.loading,f=void 0!==c&&c,v=e.prefixCls,y=e.type,g=void 0===y?"default":y,O=e.danger,w=e.shape,_=void 0===w?"default":w,x=e.size,E=e.disabled,j=e.className,M=e.children,A=e.icon,L=e.ghost,R=void 0!==L&&L,N=e.block,I=void 0!==N&&N,D=e.htmlType,F=void 0===D?"button":D,z=C(e,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),B=l.useContext(h.b),U=l.useContext(d.b),V=E||U,H=l.useContext(b),G=l.useState(!!f),W=Object(i.a)(G,2),Y=W[0],K=W[1],X=l.useState(!1),q=Object(i.a)(X,2),Z=q[0],J=q[1],Q=l.useContext(p.b),$=Q.getPrefixCls,ee=Q.autoInsertSpaceInButton,te=Q.direction,ne=t||l.createRef(),re=function(){return 1===l.Children.count(M)&&!A&&!P(g)},oe="boolean"==typeof f?f:(null==f?void 0:f.delay)||!0;l.useEffect((function(){var e=null;return"number"==typeof oe?e=window.setTimeout((function(){e=null,K(oe)}),oe):K(oe),function(){e&&(window.clearTimeout(e),e=null)}}),[oe]),l.useEffect((function(){if(ne&&ne.current&&!1!==ee){var e=ne.current.textContent;re()&&k(e)?Z||J(!0):Z&&J(!1)}}),[ne]);var ie=function(t){var n=e.onClick;Y||V?t.preventDefault():null==n||n(t)},ae=$("btn",v),ce=!1!==ee,ue=H||x||B,se=ue&&{large:"lg",small:"sm",middle:void 0}[ue]||"",le=Y?"loading":A,fe=Object(s.a)(z,["navigate"]),pe=u()(ae,(n={},Object(o.a)(n,"".concat(ae,"-").concat(_),"default"!==_&&_),Object(o.a)(n,"".concat(ae,"-").concat(g),g),Object(o.a)(n,"".concat(ae,"-").concat(se),se),Object(o.a)(n,"".concat(ae,"-icon-only"),!M&&0!==M&&!!le),Object(o.a)(n,"".concat(ae,"-background-ghost"),R&&!P(g)),Object(o.a)(n,"".concat(ae,"-loading"),Y),Object(o.a)(n,"".concat(ae,"-two-chinese-chars"),Z&&ce&&!Y),Object(o.a)(n,"".concat(ae,"-block"),I),Object(o.a)(n,"".concat(ae,"-dangerous"),!!O),Object(o.a)(n,"".concat(ae,"-rtl"),"rtl"===te),Object(o.a)(n,"".concat(ae,"-disabled"),void 0!==fe.href&&V),n),j),de=A&&!Y?A:l.createElement(S,{existIcon:!!A,prefixCls:ae,loading:!!Y}),he=M||0===M?function(e,t){var n=!1,r=[];return l.Children.forEach(e,(function(e){var t=Object(a.a)(e),o="string"===t||"number"===t;if(n&&o){var i=r.length-1,c=r[i];r[i]="".concat(c).concat(e)}else r.push(e);n=o})),l.Children.map(r,(function(e){return T(e,t)}))}(M,re()&&ce):null;if(void 0!==fe.href)return l.createElement("a",Object(r.a)({},fe,{className:pe,onClick:ie,ref:ne}),de,he);var ve=l.createElement("button",Object(r.a)({},z,{type:F,className:pe,onClick:ie,disabled:V,ref:ne}),de,he);return P(g)?ve:l.createElement(m.a,{disabled:!!Y},ve)},L=l.forwardRef(A);L.Group=O,L.__ANT_BUTTON=!0;t.b=L},zygG:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Umn3");var o=n("HO86"),i=n("kQdG");function a(e,t){return Object(r.a)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},zzo4:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i}));n("WvW5");function r(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function o(e){if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function i(e){return"Feature"===e.type?e.geometry:e}}},[["UxWs",1,0]]]); |